
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int read_dupsession_data(Conf *conf,char *arg)

{
  int iVar1;
  int iVar2;
  void *vdata;
  ssize_t sVar3;
  int iVar4;
  char *pcVar5;
  undefined4 *puVar6;
  int iVar7;
  int in_GS_OFFSET;
  int fd;
  int size;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5e029;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = sscanf(arg,"---[%d,%d]",&fd,&size);
  if (iVar2 != 2) {
    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",
                  appname,arg);
                    /* WARNING: Subroutine does not return */
    exit(1);
  }
  iVar2 = 0;
  vdata = safemalloc(size,1);
  if (0 < size) {
    do {
      sVar3 = read(fd,(void *)((int)vdata + iVar2),size - iVar2);
      if (sVar3 < 1) {
        if (sVar3 != 0) {
          perror("read from pipe");
                    /* WARNING: Subroutine does not return */
          exit(1);
        }
        if (iVar2 < size) {
          pcVar5 = "%s: unexpected EOF in Duplicate Session data\n";
          goto LAB_0005e23a;
        }
        break;
      }
      iVar2 = iVar2 + sVar3;
    } while (iVar2 < size);
  }
  iVar2 = conf_deserialise(conf,vdata,size);
  if ((use_pty_argv != 0) && (iVar2 < size)) {
    iVar4 = iVar2;
    iVar1 = 0;
    do {
      while (iVar7 = iVar1, *(char *)((int)vdata + iVar4) != '\0') {
        iVar4 = iVar4 + 1;
        iVar1 = iVar7;
        if (size <= iVar4) {
          pcVar5 = "%s: malformed Duplicate Session data\n";
LAB_0005e23a:
          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname);
                    /* WARNING: Subroutine does not return */
          exit(1);
        }
      }
      iVar4 = iVar4 + 1;
      iVar1 = iVar7 + 1;
    } while (iVar4 < size);
    pty_argv = (char **)safemalloc(iVar7 + 2,4);
    pty_argv[iVar7 + 1] = (char *)0x0;
    if (iVar2 < size) {
      iVar4 = 0;
      do {
        pcVar5 = (char *)((int)vdata + iVar2);
        while (*(char *)((int)vdata + iVar2) != '\0') {
          iVar2 = iVar2 + 1;
          if (size <= iVar2) goto LAB_0005e1c1;
        }
        if (size <= iVar2) {
LAB_0005e1c1:
                    /* WARNING: Subroutine does not return */
          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");
        }
        iVar2 = iVar2 + 1;
        puVar6 = (undefined4 *)((int)pty_argv + iVar4);
        iVar4 = iVar4 + 4;
        pcVar5 = dupstr(pcVar5);
        *puVar6 = pcVar5;
      } while (iVar2 < size);
    }
  }
  safefree(vdata);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 FUN_0005e020(undefined4 param_1,char *param_2)

{
  int iVar1;
  int iVar2;
  ssize_t sVar3;
  int iVar4;
  undefined4 uVar5;
  char *pcVar6;
  undefined4 *puVar7;
  int iVar8;
  int iVar9;
  int in_GS_OFFSET;
  int local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5e029;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24);
  if (iVar2 != 2) {
    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",
                  PTR_s_pterm_000b4dec,param_2);
                    /* WARNING: Subroutine does not return */
    exit(1);
  }
  iVar8 = 0;
  iVar2 = FUN_00030000(local_24,1);
  if (0 < local_24) {
    do {
      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);
      if (sVar3 < 1) {
        if (sVar3 != 0) {
          perror("read from pipe");
                    /* WARNING: Subroutine does not return */
          exit(1);
        }
        if (iVar8 < local_24) {
          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";
          goto LAB_0005e23a;
        }
        break;
      }
      iVar8 = iVar8 + sVar3;
    } while (iVar8 < local_24);
  }
  iVar8 = FUN_000201a0(param_1,iVar2,local_24);
  if ((DAT_0008a72c != 0) && (iVar8 < local_24)) {
    iVar4 = iVar8;
    iVar1 = 0;
    do {
      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {
        iVar4 = iVar4 + 1;
        iVar1 = iVar9;
        if (local_24 <= iVar4) {
          pcVar6 = "%s: malformed Duplicate Session data\n";
LAB_0005e23a:
          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);
                    /* WARNING: Subroutine does not return */
          exit(1);
        }
      }
      iVar4 = iVar4 + 1;
      iVar1 = iVar9 + 1;
    } while (iVar4 < local_24);
    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);
    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;
    if (iVar8 < local_24) {
      iVar4 = 0;
      do {
        iVar1 = iVar2 + iVar8;
        while (*(char *)(iVar2 + iVar8) != '\0') {
          iVar8 = iVar8 + 1;
          if (local_24 <= iVar8) goto LAB_0005e1c1;
        }
        if (local_24 <= iVar8) {
LAB_0005e1c1:
                    /* WARNING: Subroutine does not return */
          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");
        }
        iVar8 = iVar8 + 1;
        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);
        iVar4 = iVar4 + 4;
        uVar5 = FUN_0002f040(iVar1);
        *puVar7 = uVar5;
      } while (iVar8 < local_24);
    }
  }
  FUN_000301a0(iVar2);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0006c950();
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001a360
ADD EBX,0x577bb
SUB ESP,0x2c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
LEA EAX,[ESP + 0x18]
MOV ESI,dword ptr [ESP + 0x40]
MOV EDI,dword ptr [ESP + 0x44]
PUSH EAX
LEA EAX,[ESP + 0x18]
PUSH EAX
LEA EAX,[EBX + 0xfffd3c38]
PUSH EAX
PUSH EDI
CALL 0x00018220
ADD ESP,0x10
CMP EAX,0x2
JNZ 0x0005e1e0
SUB ESP,0x8
XOR EBP,EBP
PUSH 0x1
PUSH dword ptr [ESP + 0x24]
CALL 0x00030000
MOV EDI,EAX
MOV EAX,dword ptr [ESP + 0x28]
ADD ESP,0x10
TEST EAX,EAX
JG 0x0005e09a
JMP 0x0005e0c6
ADD EBP,EAX
MOV EAX,dword ptr [ESP + 0x18]
CMP EAX,EBP
JLE 0x0005e0c6
SUB ESP,0x4
SUB EAX,EBP
PUSH EAX
LEA EAX,[EDI + EBP*0x1]
PUSH EAX
PUSH dword ptr [ESP + 0x20]
CALL 0x00019b30
ADD ESP,0x10
TEST EAX,EAX
JG 0x0005e090
JNZ 0x0005e211
MOV EAX,dword ptr [ESP + 0x18]
CMP EAX,EBP
JG 0x0005e22c
SUB ESP,0x4
PUSH EAX
PUSH EDI
PUSH ESI
CALL 0x000201a0
ADD ESP,0x10
MOV ESI,EAX
LEA EAX,[EBX + 0xfffd4f48]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0005e144
MOV ECX,dword ptr [ESP + 0x18]
CMP ECX,ESI
JLE 0x0005e144
MOV EAX,ESI
XOR EBP,EBP
JMP 0x0005e0fb
ADD EAX,0x1
CMP ECX,EAX
JLE 0x0005e260
CMP byte ptr [EDI + EAX*0x1],0x0
JNZ 0x0005e0f0
ADD EAX,0x1
LEA EDX,[EBP + 0x1]
CMP ECX,EAX
JLE 0x0005e16b
MOV EBP,EDX
JMP 0x0005e0fb
CMP ECX,ESI
JLE 0x0005e1c1
MOV EDX,dword ptr [ESP + 0xc]
SUB ESP,0xc
ADD ESI,0x1
MOV ECX,dword ptr [EDX]
ADD ECX,EBP
ADD EBP,0x4
MOV dword ptr [ESP + 0x14],ECX
PUSH EAX
CALL 0x0002f040
MOV ECX,dword ptr [ESP + 0x18]
MOV dword ptr [ECX],EAX
MOV ECX,dword ptr [ESP + 0x28]
ADD ESP,0x10
CMP ECX,ESI
JG 0x0005e1a8
SUB ESP,0xc
PUSH EDI
CALL 0x000301a0
ADD ESP,0x10
XOR EAX,EAX
MOV EDX,dword ptr [ESP + 0x1c]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x0005e20c
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x8],EDX
ADD EBP,0x2
SUB ESP,0x8
PUSH 0x4
PUSH EBP
CALL 0x00030000
LEA EDX,[EBX + 0xad4]
MOV ECX,dword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0x1c],EDX
MOV dword ptr [EDX],EAX
MOV EDX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV dword ptr [EAX + EDX*0x4],0x0
CMP ESI,ECX
JGE 0x0005e144
XOR EBP,EBP
LEA ESI,[ESI]
LEA EAX,[EDI + ESI*0x1]
LEA ESI,[ESI]
NOP
CMP byte ptr [EDI + ESI*0x1],0x0
JZ 0x0005e110
ADD ESI,0x1
CMP ESI,ECX
JL 0x0005e1b0
LEA EAX,[EBX + 0xfffd42d4]
PUSH EAX
LEA EAX,[EBX + 0xfffd3c04]
PUSH 0xfb
PUSH EAX
LEA EAX,[EBX + 0xfffd3c60]
PUSH EAX
CALL 0x00019e90
LEA EAX,[EBX + 0xfffff608]
SUB ESP,0xc
PUSH EDI
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0xfffd3d9c]
PUSH EAX
MOV EAX,dword ptr [EBX + 0x810]
PUSH 0x1
PUSH dword ptr [EAX]
CALL 0x000199e0
ADD ESP,0x14
PUSH 0x1
CALL 0x00019690
CALL 0x0006c950
SUB ESP,0xc
LEA EAX,[EBX + 0xfffd3c51]
PUSH EAX
CALL 0x00019860
MOV dword ptr [ESP],0x1
CALL 0x00019690
LEA EAX,[EBX + 0xfffff608]
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0xfffd3dc0]
PUSH EAX
MOV EAX,dword ptr [EBX + 0x810]
PUSH 0x1
PUSH dword ptr [EAX]
CALL 0x000199e0
MOV dword ptr [ESP],0x1
CALL 0x00019690
LEA EAX,[EBX + 0xfffff608]
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0xfffd3df0]
JMP 0x0005e23a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0005e020(undefined4 param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  ssize_t sVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24);\n  if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }\n  iVar8 = 0;\n  iVar2 = FUN_00030000(local_24,1);\n  if (0 < local_24) {\n    do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);\n  }\n  iVar8 = FUN_000201a0(param_1,iVar2,local_24);\n  if ((DAT_0008a72c != 0) && (iVar8 < local_24)) {\n    iVar4 = iVar8;\n    iVar1 = 0;\n    do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);\n    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);\n    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;\n    if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }\n  }\n  FUN_000301a0(iVar2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006c950();\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_0005e020(undefined4 param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  ssize_t sVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24);\n  if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }\n  iVar8 = 0;\n  iVar2 = FUN_00030000(local_24,1);\n  if (0 < local_24) {\n    do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);\n  }\n  iVar8 = FUN_000201a0(param_1,iVar2,local_24);\n  if ((DAT_0008a72c != 0) && (iVar8 < local_24)) {\n    iVar4 = iVar8;\n    iVar1 = 0;\n    do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);\n    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);\n    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;\n    if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }\n  }\n  FUN_000301a0(iVar2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006c950();\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0005e020(undefined4 param_1,char *param_2)" identifier (parameter_list "(undefined4 param_1,char *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  ssize_t sVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24);\n  if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }\n  iVar8 = 0;\n  iVar2 = FUN_00030000(local_24,1);\n  if (0 < local_24) {\n    do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);\n  }\n  iVar8 = FUN_000201a0(param_1,iVar2,local_24);\n  if ((DAT_0008a72c != 0) && (iVar8 < local_24)) {\n    iVar4 = iVar8;\n    iVar1 = 0;\n    do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);\n    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);\n    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;\n    if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }\n  }\n  FUN_000301a0(iVar2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006c950();\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ssize_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5e029;" (assignment_expression "uStack_14 = 0x5e029" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24);" (assignment_expression "iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24)" identifier = (call_expression "sscanf(param_2,"---[%d,%d]",&local_28,&local_24)" identifier (argument_list "(param_2,"---[%d,%d]",&local_28,&local_24)" ( identifier , (string_literal ""---[%d,%d]"" " string_content ") , (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }" if (parenthesized_expression "(iVar2 != 2)" ( (binary_expression "iVar2 != 2" identifier != number_literal) )) (compound_statement "{\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }" { (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2)" identifier (argument_list "(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2)" ( (pointer_expression "*(undefined4 *)PTR_stderr_000b5ff4" * (cast_expression "(undefined4 *)PTR_stderr_000b5ff4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (string_literal ""%s: malformed magic argument `%s\'\n"" " string_content escape_sequence escape_sequence ") , identifier , identifier ))) ;) comment (expression_statement "exit(1);" (call_expression "exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = FUN_00030000(local_24,1);" (assignment_expression "iVar2 = FUN_00030000(local_24,1)" identifier = (call_expression "FUN_00030000(local_24,1)" identifier (argument_list "(local_24,1)" ( identifier , number_literal )))) ;) (if_statement "if (0 < local_24) {\n    do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);\n  }" if (parenthesized_expression "(0 < local_24)" ( (binary_expression "0 < local_24" number_literal < identifier) )) (compound_statement "{\n    do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);\n  }" { (do_statement "do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);" do (compound_statement "{\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    }" { (expression_statement "sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);" (assignment_expression "sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8)" identifier = (call_expression "read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8)" identifier (argument_list "(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8)" ( identifier , (cast_expression "(void *)(iVar2 + iVar8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar8)" ( (binary_expression "iVar2 + iVar8" identifier + identifier) ))) , (binary_expression "local_24 - iVar8" identifier - identifier) )))) ;) (if_statement "if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }" if (parenthesized_expression "(sVar3 < 1)" ( (binary_expression "sVar3 < 1" identifier < number_literal) )) (compound_statement "{\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }" { (if_statement "if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }" if (parenthesized_expression "(sVar3 != 0)" ( (binary_expression "sVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }" { (expression_statement "perror("read from pipe");" (call_expression "perror("read from pipe")" identifier (argument_list "("read from pipe")" ( (string_literal ""read from pipe"" " string_content ") ))) ;) comment (expression_statement "exit(1);" (call_expression "exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (if_statement "if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }" if (parenthesized_expression "(iVar8 < local_24)" ( (binary_expression "iVar8 < local_24" identifier < identifier) )) (compound_statement "{\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }" { (expression_statement "pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";" (assignment_expression "pcVar6 = "%s: unexpected EOF in Duplicate Session data\n"" identifier = (string_literal ""%s: unexpected EOF in Duplicate Session data\n"" " string_content escape_sequence ")) ;) (goto_statement "goto LAB_0005e23a;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "iVar8 = iVar8 + sVar3;" (assignment_expression "iVar8 = iVar8 + sVar3" identifier = (binary_expression "iVar8 + sVar3" identifier + identifier)) ;) }) while (parenthesized_expression "(iVar8 < local_24)" ( (binary_expression "iVar8 < local_24" identifier < identifier) )) ;) })) (expression_statement "iVar8 = FUN_000201a0(param_1,iVar2,local_24);" (assignment_expression "iVar8 = FUN_000201a0(param_1,iVar2,local_24)" identifier = (call_expression "FUN_000201a0(param_1,iVar2,local_24)" identifier (argument_list "(param_1,iVar2,local_24)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((DAT_0008a72c != 0) && (iVar8 < local_24)) {\n    iVar4 = iVar8;\n    iVar1 = 0;\n    do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);\n    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);\n    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;\n    if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }\n  }" if (parenthesized_expression "((DAT_0008a72c != 0) && (iVar8 < local_24))" ( (binary_expression "(DAT_0008a72c != 0) && (iVar8 < local_24)" (parenthesized_expression "(DAT_0008a72c != 0)" ( (binary_expression "DAT_0008a72c != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar8 < local_24)" ( (binary_expression "iVar8 < local_24" identifier < identifier) ))) )) (compound_statement "{\n    iVar4 = iVar8;\n    iVar1 = 0;\n    do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);\n    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);\n    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;\n    if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }\n  }" { (expression_statement "iVar4 = iVar8;" (assignment_expression "iVar4 = iVar8" identifier = identifier) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);" do (compound_statement "{\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    }" { (while_statement "while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }" while (parenthesized_expression "(iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0')" ( (comma_expression "iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0'" (assignment_expression "iVar9 = iVar1" identifier = identifier) , (binary_expression "*(char *)(iVar2 + iVar4) != '\0'" (pointer_expression "*(char *)(iVar2 + iVar4)" * (cast_expression "(char *)(iVar2 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) )))) != (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }" { (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar9;" (assignment_expression "iVar1 = iVar9" identifier = identifier) ;) (if_statement "if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }" if (parenthesized_expression "(local_24 <= iVar4)" ( (binary_expression "local_24 <= iVar4" identifier <= identifier) )) (compound_statement "{\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }" { (expression_statement "pcVar6 = "%s: malformed Duplicate Session data\n";" (assignment_expression "pcVar6 = "%s: malformed Duplicate Session data\n"" identifier = (string_literal ""%s: malformed Duplicate Session data\n"" " string_content escape_sequence ")) ;) (labeled_statement "LAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);" statement_identifier : (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec)" identifier (argument_list "(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec)" ( (pointer_expression "*(undefined4 *)PTR_stderr_000b5ff4" * (cast_expression "(undefined4 *)PTR_stderr_000b5ff4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , identifier , identifier ))) ;)) comment (expression_statement "exit(1);" (call_expression "exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar9 + 1;" (assignment_expression "iVar1 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 < local_24)" ( (binary_expression "iVar4 < local_24" identifier < identifier) )) ;) (expression_statement "DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);" (assignment_expression "DAT_000b62b8 = FUN_00030000(iVar9 + 2,4)" identifier = (call_expression "FUN_00030000(iVar9 + 2,4)" identifier (argument_list "(iVar9 + 2,4)" ( (binary_expression "iVar9 + 2" identifier + number_literal) , number_literal )))) ;) (expression_statement "*(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;" (assignment_expression "*(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0" (pointer_expression "*(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4)" * (cast_expression "(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000b62b8 + (iVar9 + 1) * 4)" ( (binary_expression "DAT_000b62b8 + (iVar9 + 1) * 4" identifier + (binary_expression "(iVar9 + 1) * 4" (parenthesized_expression "(iVar9 + 1)" ( (binary_expression "iVar9 + 1" identifier + number_literal) )) * number_literal)) )))) = number_literal) ;) (if_statement "if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }" if (parenthesized_expression "(iVar8 < local_24)" ( (binary_expression "iVar8 < local_24" identifier < identifier) )) (compound_statement "{\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);" do (compound_statement "{\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      }" { (expression_statement "iVar1 = iVar2 + iVar8;" (assignment_expression "iVar1 = iVar2 + iVar8" identifier = (binary_expression "iVar2 + iVar8" identifier + identifier)) ;) (while_statement "while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }" while (parenthesized_expression "(*(char *)(iVar2 + iVar8) != '\0')" ( (binary_expression "*(char *)(iVar2 + iVar8) != '\0'" (pointer_expression "*(char *)(iVar2 + iVar8)" * (cast_expression "(char *)(iVar2 + iVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar8)" ( (binary_expression "iVar2 + iVar8" identifier + identifier) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }" { (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (if_statement "if (local_24 <= iVar8) goto LAB_0005e1c1;" if (parenthesized_expression "(local_24 <= iVar8)" ( (binary_expression "local_24 <= iVar8" identifier <= identifier) )) (goto_statement "goto LAB_0005e1c1;" goto statement_identifier ;)) })) (if_statement "if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }" if (parenthesized_expression "(local_24 <= iVar8)" ( (binary_expression "local_24 <= iVar8" identifier <= identifier) )) (compound_statement "{\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }" { (labeled_statement "LAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");" statement_identifier : comment (expression_statement "__assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");" (call_expression "__assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data")" identifier (argument_list "("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data")" ( (string_literal ""i < size"" " string_content ") , (string_literal ""unix/gtkmain.c"" " string_content ") , number_literal , (string_literal ""read_dupsession_data"" " string_content ") ))) ;)) })) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);" (assignment_expression "puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4)" identifier = (cast_expression "(undefined4 *)(DAT_000b62b8 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000b62b8 + iVar4)" ( (binary_expression "DAT_000b62b8 + iVar4" identifier + identifier) )))) ;) (expression_statement "iVar4 = iVar4 + 4;" (assignment_expression "iVar4 = iVar4 + 4" identifier = (binary_expression "iVar4 + 4" identifier + number_literal)) ;) (expression_statement "uVar5 = FUN_0002f040(iVar1);" (assignment_expression "uVar5 = FUN_0002f040(iVar1)" identifier = (call_expression "FUN_0002f040(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "*puVar7 = uVar5;" (assignment_expression "*puVar7 = uVar5" (pointer_expression "*puVar7" * identifier) = identifier) ;) }) while (parenthesized_expression "(iVar8 < local_24)" ( (binary_expression "iVar8 < local_24" identifier < identifier) )) ;) })) })) (expression_statement "FUN_000301a0(iVar2);" (call_expression "FUN_000301a0(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006c950();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0006c950();\n  }" { comment (expression_statement "FUN_0006c950();" (call_expression "FUN_0006c950()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint read_dupsession_data(Conf *conf,char *arg)\n\n{\n  int iVar1;\n  int iVar2;\n  void *vdata;\n  ssize_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  int fd;\n  int size;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = sscanf(arg,"---[%d,%d]",&fd,&size);\n  if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  appname,arg);\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }\n  iVar2 = 0;\n  vdata = safemalloc(size,1);\n  if (0 < size) {\n    do {\n      sVar3 = read(fd,(void *)((int)vdata + iVar2),size - iVar2);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar2 < size) {\n          pcVar5 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar2 = iVar2 + sVar3;\n    } while (iVar2 < size);\n  }\n  iVar2 = conf_deserialise(conf,vdata,size);\n  if ((use_pty_argv != 0) && (iVar2 < size)) {\n    iVar4 = iVar2;\n    iVar1 = 0;\n    do {\n      while (iVar7 = iVar1, *(char *)((int)vdata + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar7;\n        if (size <= iVar4) {\n          pcVar5 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar7 + 1;\n    } while (iVar4 < size);\n    pty_argv = (char **)safemalloc(iVar7 + 2,4);\n    pty_argv[iVar7 + 1] = (char *)0x0;\n    if (iVar2 < size) {\n      iVar4 = 0;\n      do {\n        pcVar5 = (char *)((int)vdata + iVar2);\n        while (*(char *)((int)vdata + iVar2) != '\0') {\n          iVar2 = iVar2 + 1;\n          if (size <= iVar2) goto LAB_0005e1c1;\n        }\n        if (size <= iVar2) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar2 = iVar2 + 1;\n        puVar6 = (undefined4 *)((int)pty_argv + iVar4);\n        iVar4 = iVar4 + 4;\n        pcVar5 = dupstr(pcVar5);\n        *puVar6 = pcVar5;\n      } while (iVar2 < size);\n    }\n  }\n  safefree(vdata);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return 0;\n}\n\n" comment comment (function_definition "int read_dupsession_data(Conf *conf,char *arg)\n\n{\n  int iVar1;\n  int iVar2;\n  void *vdata;\n  ssize_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  int fd;\n  int size;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = sscanf(arg,"---[%d,%d]",&fd,&size);\n  if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  appname,arg);\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }\n  iVar2 = 0;\n  vdata = safemalloc(size,1);\n  if (0 < size) {\n    do {\n      sVar3 = read(fd,(void *)((int)vdata + iVar2),size - iVar2);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar2 < size) {\n          pcVar5 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar2 = iVar2 + sVar3;\n    } while (iVar2 < size);\n  }\n  iVar2 = conf_deserialise(conf,vdata,size);\n  if ((use_pty_argv != 0) && (iVar2 < size)) {\n    iVar4 = iVar2;\n    iVar1 = 0;\n    do {\n      while (iVar7 = iVar1, *(char *)((int)vdata + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar7;\n        if (size <= iVar4) {\n          pcVar5 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar7 + 1;\n    } while (iVar4 < size);\n    pty_argv = (char **)safemalloc(iVar7 + 2,4);\n    pty_argv[iVar7 + 1] = (char *)0x0;\n    if (iVar2 < size) {\n      iVar4 = 0;\n      do {\n        pcVar5 = (char *)((int)vdata + iVar2);\n        while (*(char *)((int)vdata + iVar2) != '\0') {\n          iVar2 = iVar2 + 1;\n          if (size <= iVar2) goto LAB_0005e1c1;\n        }\n        if (size <= iVar2) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar2 = iVar2 + 1;\n        puVar6 = (undefined4 *)((int)pty_argv + iVar4);\n        iVar4 = iVar4 + 4;\n        pcVar5 = dupstr(pcVar5);\n        *puVar6 = pcVar5;\n      } while (iVar2 < size);\n    }\n  }\n  safefree(vdata);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return 0;\n}" primitive_type (function_declarator "read_dupsession_data(Conf *conf,char *arg)" identifier (parameter_list "(Conf *conf,char *arg)" ( (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) , (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  void *vdata;\n  ssize_t sVar3;\n  int iVar4;\n  char *pcVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  int fd;\n  int size;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = sscanf(arg,"---[%d,%d]",&fd,&size);\n  if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  appname,arg);\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }\n  iVar2 = 0;\n  vdata = safemalloc(size,1);\n  if (0 < size) {\n    do {\n      sVar3 = read(fd,(void *)((int)vdata + iVar2),size - iVar2);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar2 < size) {\n          pcVar5 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar2 = iVar2 + sVar3;\n    } while (iVar2 < size);\n  }\n  iVar2 = conf_deserialise(conf,vdata,size);\n  if ((use_pty_argv != 0) && (iVar2 < size)) {\n    iVar4 = iVar2;\n    iVar1 = 0;\n    do {\n      while (iVar7 = iVar1, *(char *)((int)vdata + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar7;\n        if (size <= iVar4) {\n          pcVar5 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar7 + 1;\n    } while (iVar4 < size);\n    pty_argv = (char **)safemalloc(iVar7 + 2,4);\n    pty_argv[iVar7 + 1] = (char *)0x0;\n    if (iVar2 < size) {\n      iVar4 = 0;\n      do {\n        pcVar5 = (char *)((int)vdata + iVar2);\n        while (*(char *)((int)vdata + iVar2) != '\0') {\n          iVar2 = iVar2 + 1;\n          if (size <= iVar2) goto LAB_0005e1c1;\n        }\n        if (size <= iVar2) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar2 = iVar2 + 1;\n        puVar6 = (undefined4 *)((int)pty_argv + iVar4);\n        iVar4 = iVar4 + 4;\n        pcVar5 = dupstr(pcVar5);\n        *puVar6 = pcVar5;\n      } while (iVar2 < size);\n    }\n  }\n  safefree(vdata);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *vdata;" primitive_type (pointer_declarator "*vdata" * identifier) ;) (declaration "ssize_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int fd;" primitive_type identifier ;) (declaration "int size;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5e029;" (assignment_expression "uStack_14 = 0x5e029" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = sscanf(arg,"---[%d,%d]",&fd,&size);" (assignment_expression "iVar2 = sscanf(arg,"---[%d,%d]",&fd,&size)" identifier = (call_expression "sscanf(arg,"---[%d,%d]",&fd,&size)" identifier (argument_list "(arg,"---[%d,%d]",&fd,&size)" ( identifier , (string_literal ""---[%d,%d]"" " string_content ") , (pointer_expression "&fd" & identifier) , (pointer_expression "&size" & identifier) )))) ;) (if_statement "if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  appname,arg);\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }" if (parenthesized_expression "(iVar2 != 2)" ( (binary_expression "iVar2 != 2" identifier != number_literal) )) (compound_statement "{\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  appname,arg);\n                    /* WARNING: Subroutine does not return */\n    exit(1);\n  }" { (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  appname,arg);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  appname,arg)" identifier (argument_list "(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  appname,arg)" ( (pointer_expression "*(undefined4 *)PTR_stderr_000b5ff4" * (cast_expression "(undefined4 *)PTR_stderr_000b5ff4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (string_literal ""%s: malformed magic argument `%s\'\n"" " string_content escape_sequence escape_sequence ") , identifier , identifier ))) ;) comment (expression_statement "exit(1);" (call_expression "exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "vdata = safemalloc(size,1);" (assignment_expression "vdata = safemalloc(size,1)" identifier = (call_expression "safemalloc(size,1)" identifier (argument_list "(size,1)" ( identifier , number_literal )))) ;) (if_statement "if (0 < size) {\n    do {\n      sVar3 = read(fd,(void *)((int)vdata + iVar2),size - iVar2);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar2 < size) {\n          pcVar5 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar2 = iVar2 + sVar3;\n    } while (iVar2 < size);\n  }" if (parenthesized_expression "(0 < size)" ( (binary_expression "0 < size" number_literal < identifier) )) (compound_statement "{\n    do {\n      sVar3 = read(fd,(void *)((int)vdata + iVar2),size - iVar2);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar2 < size) {\n          pcVar5 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar2 = iVar2 + sVar3;\n    } while (iVar2 < size);\n  }" { (do_statement "do {\n      sVar3 = read(fd,(void *)((int)vdata + iVar2),size - iVar2);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar2 < size) {\n          pcVar5 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar2 = iVar2 + sVar3;\n    } while (iVar2 < size);" do (compound_statement "{\n      sVar3 = read(fd,(void *)((int)vdata + iVar2),size - iVar2);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar2 < size) {\n          pcVar5 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar2 = iVar2 + sVar3;\n    }" { (expression_statement "sVar3 = read(fd,(void *)((int)vdata + iVar2),size - iVar2);" (assignment_expression "sVar3 = read(fd,(void *)((int)vdata + iVar2),size - iVar2)" identifier = (call_expression "read(fd,(void *)((int)vdata + iVar2),size - iVar2)" identifier (argument_list "(fd,(void *)((int)vdata + iVar2),size - iVar2)" ( identifier , (cast_expression "(void *)((int)vdata + iVar2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vdata + iVar2)" ( (binary_expression "(int)vdata + iVar2" (cast_expression "(int)vdata" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , (binary_expression "size - iVar2" identifier - identifier) )))) ;) (if_statement "if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar2 < size) {\n          pcVar5 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }" if (parenthesized_expression "(sVar3 < 1)" ( (binary_expression "sVar3 < 1" identifier < number_literal) )) (compound_statement "{\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n        if (iVar2 < size) {\n          pcVar5 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }" { (if_statement "if (sVar3 != 0) {\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }" if (parenthesized_expression "(sVar3 != 0)" ( (binary_expression "sVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          perror("read from pipe");\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }" { (expression_statement "perror("read from pipe");" (call_expression "perror("read from pipe")" identifier (argument_list "("read from pipe")" ( (string_literal ""read from pipe"" " string_content ") ))) ;) comment (expression_statement "exit(1);" (call_expression "exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (if_statement "if (iVar2 < size) {\n          pcVar5 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }" if (parenthesized_expression "(iVar2 < size)" ( (binary_expression "iVar2 < size" identifier < identifier) )) (compound_statement "{\n          pcVar5 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }" { (expression_statement "pcVar5 = "%s: unexpected EOF in Duplicate Session data\n";" (assignment_expression "pcVar5 = "%s: unexpected EOF in Duplicate Session data\n"" identifier = (string_literal ""%s: unexpected EOF in Duplicate Session data\n"" " string_content escape_sequence ")) ;) (goto_statement "goto LAB_0005e23a;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "iVar2 = iVar2 + sVar3;" (assignment_expression "iVar2 = iVar2 + sVar3" identifier = (binary_expression "iVar2 + sVar3" identifier + identifier)) ;) }) while (parenthesized_expression "(iVar2 < size)" ( (binary_expression "iVar2 < size" identifier < identifier) )) ;) })) (expression_statement "iVar2 = conf_deserialise(conf,vdata,size);" (assignment_expression "iVar2 = conf_deserialise(conf,vdata,size)" identifier = (call_expression "conf_deserialise(conf,vdata,size)" identifier (argument_list "(conf,vdata,size)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((use_pty_argv != 0) && (iVar2 < size)) {\n    iVar4 = iVar2;\n    iVar1 = 0;\n    do {\n      while (iVar7 = iVar1, *(char *)((int)vdata + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar7;\n        if (size <= iVar4) {\n          pcVar5 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar7 + 1;\n    } while (iVar4 < size);\n    pty_argv = (char **)safemalloc(iVar7 + 2,4);\n    pty_argv[iVar7 + 1] = (char *)0x0;\n    if (iVar2 < size) {\n      iVar4 = 0;\n      do {\n        pcVar5 = (char *)((int)vdata + iVar2);\n        while (*(char *)((int)vdata + iVar2) != '\0') {\n          iVar2 = iVar2 + 1;\n          if (size <= iVar2) goto LAB_0005e1c1;\n        }\n        if (size <= iVar2) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar2 = iVar2 + 1;\n        puVar6 = (undefined4 *)((int)pty_argv + iVar4);\n        iVar4 = iVar4 + 4;\n        pcVar5 = dupstr(pcVar5);\n        *puVar6 = pcVar5;\n      } while (iVar2 < size);\n    }\n  }" if (parenthesized_expression "((use_pty_argv != 0) && (iVar2 < size))" ( (binary_expression "(use_pty_argv != 0) && (iVar2 < size)" (parenthesized_expression "(use_pty_argv != 0)" ( (binary_expression "use_pty_argv != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 < size)" ( (binary_expression "iVar2 < size" identifier < identifier) ))) )) (compound_statement "{\n    iVar4 = iVar2;\n    iVar1 = 0;\n    do {\n      while (iVar7 = iVar1, *(char *)((int)vdata + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar7;\n        if (size <= iVar4) {\n          pcVar5 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar7 + 1;\n    } while (iVar4 < size);\n    pty_argv = (char **)safemalloc(iVar7 + 2,4);\n    pty_argv[iVar7 + 1] = (char *)0x0;\n    if (iVar2 < size) {\n      iVar4 = 0;\n      do {\n        pcVar5 = (char *)((int)vdata + iVar2);\n        while (*(char *)((int)vdata + iVar2) != '\0') {\n          iVar2 = iVar2 + 1;\n          if (size <= iVar2) goto LAB_0005e1c1;\n        }\n        if (size <= iVar2) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar2 = iVar2 + 1;\n        puVar6 = (undefined4 *)((int)pty_argv + iVar4);\n        iVar4 = iVar4 + 4;\n        pcVar5 = dupstr(pcVar5);\n        *puVar6 = pcVar5;\n      } while (iVar2 < size);\n    }\n  }" { (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      while (iVar7 = iVar1, *(char *)((int)vdata + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar7;\n        if (size <= iVar4) {\n          pcVar5 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar7 + 1;\n    } while (iVar4 < size);" do (compound_statement "{\n      while (iVar7 = iVar1, *(char *)((int)vdata + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar7;\n        if (size <= iVar4) {\n          pcVar5 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar7 + 1;\n    }" { (while_statement "while (iVar7 = iVar1, *(char *)((int)vdata + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar7;\n        if (size <= iVar4) {\n          pcVar5 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }" while (parenthesized_expression "(iVar7 = iVar1, *(char *)((int)vdata + iVar4) != '\0')" ( (comma_expression "iVar7 = iVar1, *(char *)((int)vdata + iVar4) != '\0'" (assignment_expression "iVar7 = iVar1" identifier = identifier) , (binary_expression "*(char *)((int)vdata + iVar4) != '\0'" (pointer_expression "*(char *)((int)vdata + iVar4)" * (cast_expression "(char *)((int)vdata + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vdata + iVar4)" ( (binary_expression "(int)vdata + iVar4" (cast_expression "(int)vdata" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) != (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar7;\n        if (size <= iVar4) {\n          pcVar5 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }\n      }" { (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar7;" (assignment_expression "iVar1 = iVar7" identifier = identifier) ;) (if_statement "if (size <= iVar4) {\n          pcVar5 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }" if (parenthesized_expression "(size <= iVar4)" ( (binary_expression "size <= iVar4" identifier <= identifier) )) (compound_statement "{\n          pcVar5 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname);\n                    /* WARNING: Subroutine does not return */\n          exit(1);\n        }" { (expression_statement "pcVar5 = "%s: malformed Duplicate Session data\n";" (assignment_expression "pcVar5 = "%s: malformed Duplicate Session data\n"" identifier = (string_literal ""%s: malformed Duplicate Session data\n"" " string_content escape_sequence ")) ;) (labeled_statement "LAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname);" statement_identifier : (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname)" identifier (argument_list "(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar5,appname)" ( (pointer_expression "*(undefined4 *)PTR_stderr_000b5ff4" * (cast_expression "(undefined4 *)PTR_stderr_000b5ff4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , identifier , identifier ))) ;)) comment (expression_statement "exit(1);" (call_expression "exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar7 + 1;" (assignment_expression "iVar1 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 < size)" ( (binary_expression "iVar4 < size" identifier < identifier) )) ;) (expression_statement "pty_argv = (char **)safemalloc(iVar7 + 2,4);" (assignment_expression "pty_argv = (char **)safemalloc(iVar7 + 2,4)" identifier = (cast_expression "(char **)safemalloc(iVar7 + 2,4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "safemalloc(iVar7 + 2,4)" identifier (argument_list "(iVar7 + 2,4)" ( (binary_expression "iVar7 + 2" identifier + number_literal) , number_literal ))))) ;) (expression_statement "pty_argv[iVar7 + 1] = (char *)0x0;" (assignment_expression "pty_argv[iVar7 + 1] = (char *)0x0" (subscript_expression "pty_argv[iVar7 + 1]" identifier [ (binary_expression "iVar7 + 1" identifier + number_literal) ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar2 < size) {\n      iVar4 = 0;\n      do {\n        pcVar5 = (char *)((int)vdata + iVar2);\n        while (*(char *)((int)vdata + iVar2) != '\0') {\n          iVar2 = iVar2 + 1;\n          if (size <= iVar2) goto LAB_0005e1c1;\n        }\n        if (size <= iVar2) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar2 = iVar2 + 1;\n        puVar6 = (undefined4 *)((int)pty_argv + iVar4);\n        iVar4 = iVar4 + 4;\n        pcVar5 = dupstr(pcVar5);\n        *puVar6 = pcVar5;\n      } while (iVar2 < size);\n    }" if (parenthesized_expression "(iVar2 < size)" ( (binary_expression "iVar2 < size" identifier < identifier) )) (compound_statement "{\n      iVar4 = 0;\n      do {\n        pcVar5 = (char *)((int)vdata + iVar2);\n        while (*(char *)((int)vdata + iVar2) != '\0') {\n          iVar2 = iVar2 + 1;\n          if (size <= iVar2) goto LAB_0005e1c1;\n        }\n        if (size <= iVar2) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar2 = iVar2 + 1;\n        puVar6 = (undefined4 *)((int)pty_argv + iVar4);\n        iVar4 = iVar4 + 4;\n        pcVar5 = dupstr(pcVar5);\n        *puVar6 = pcVar5;\n      } while (iVar2 < size);\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n        pcVar5 = (char *)((int)vdata + iVar2);\n        while (*(char *)((int)vdata + iVar2) != '\0') {\n          iVar2 = iVar2 + 1;\n          if (size <= iVar2) goto LAB_0005e1c1;\n        }\n        if (size <= iVar2) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar2 = iVar2 + 1;\n        puVar6 = (undefined4 *)((int)pty_argv + iVar4);\n        iVar4 = iVar4 + 4;\n        pcVar5 = dupstr(pcVar5);\n        *puVar6 = pcVar5;\n      } while (iVar2 < size);" do (compound_statement "{\n        pcVar5 = (char *)((int)vdata + iVar2);\n        while (*(char *)((int)vdata + iVar2) != '\0') {\n          iVar2 = iVar2 + 1;\n          if (size <= iVar2) goto LAB_0005e1c1;\n        }\n        if (size <= iVar2) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar2 = iVar2 + 1;\n        puVar6 = (undefined4 *)((int)pty_argv + iVar4);\n        iVar4 = iVar4 + 4;\n        pcVar5 = dupstr(pcVar5);\n        *puVar6 = pcVar5;\n      }" { (expression_statement "pcVar5 = (char *)((int)vdata + iVar2);" (assignment_expression "pcVar5 = (char *)((int)vdata + iVar2)" identifier = (cast_expression "(char *)((int)vdata + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vdata + iVar2)" ( (binary_expression "(int)vdata + iVar2" (cast_expression "(int)vdata" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (while_statement "while (*(char *)((int)vdata + iVar2) != '\0') {\n          iVar2 = iVar2 + 1;\n          if (size <= iVar2) goto LAB_0005e1c1;\n        }" while (parenthesized_expression "(*(char *)((int)vdata + iVar2) != '\0')" ( (binary_expression "*(char *)((int)vdata + iVar2) != '\0'" (pointer_expression "*(char *)((int)vdata + iVar2)" * (cast_expression "(char *)((int)vdata + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vdata + iVar2)" ( (binary_expression "(int)vdata + iVar2" (cast_expression "(int)vdata" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar2 = iVar2 + 1;\n          if (size <= iVar2) goto LAB_0005e1c1;\n        }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (size <= iVar2) goto LAB_0005e1c1;" if (parenthesized_expression "(size <= iVar2)" ( (binary_expression "size <= iVar2" identifier <= identifier) )) (goto_statement "goto LAB_0005e1c1;" goto statement_identifier ;)) })) (if_statement "if (size <= iVar2) {\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }" if (parenthesized_expression "(size <= iVar2)" ( (binary_expression "size <= iVar2" identifier <= identifier) )) (compound_statement "{\nLAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }" { (labeled_statement "LAB_0005e1c1:\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");" statement_identifier : comment (expression_statement "__assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");" (call_expression "__assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data")" identifier (argument_list "("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data")" ( (string_literal ""i < size"" " string_content ") , (string_literal ""unix/gtkmain.c"" " string_content ") , number_literal , (string_literal ""read_dupsession_data"" " string_content ") ))) ;)) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "puVar6 = (undefined4 *)((int)pty_argv + iVar4);" (assignment_expression "puVar6 = (undefined4 *)((int)pty_argv + iVar4)" identifier = (cast_expression "(undefined4 *)((int)pty_argv + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pty_argv + iVar4)" ( (binary_expression "(int)pty_argv + iVar4" (cast_expression "(int)pty_argv" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "iVar4 = iVar4 + 4;" (assignment_expression "iVar4 = iVar4 + 4" identifier = (binary_expression "iVar4 + 4" identifier + number_literal)) ;) (expression_statement "pcVar5 = dupstr(pcVar5);" (assignment_expression "pcVar5 = dupstr(pcVar5)" identifier = (call_expression "dupstr(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "*puVar6 = pcVar5;" (assignment_expression "*puVar6 = pcVar5" (pointer_expression "*puVar6" * identifier) = identifier) ;) }) while (parenthesized_expression "(iVar2 < size)" ( (binary_expression "iVar2 < size" identifier < identifier) )) ;) })) })) (expression_statement "safefree(vdata);" (call_expression "safefree(vdata)" identifier (argument_list "(vdata)" ( identifier ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0005e020(undefined4 param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  ssize_t sVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24);\n  if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);\n                    \n    exit(1);\n  }\n  iVar8 = 0;\n  iVar2 = FUN_00030000(local_24,1);\n  if (0 < local_24) {\n    do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);\n  }\n  iVar8 = FUN_000201a0(param_1,iVar2,local_24);\n  if ((DAT_0008a72c != 0) && (iVar8 < local_24)) {\n    iVar4 = iVar8;\n    iVar1 = 0;\n    do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);\n    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);\n    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;\n    if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }\n  }\n  FUN_000301a0(iVar2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0005e020(undefined4 param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  ssize_t sVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24);\n  if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);\n                    \n    exit(1);\n  }\n  iVar8 = 0;\n  iVar2 = FUN_00030000(local_24,1);\n  if (0 < local_24) {\n    do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);\n  }\n  iVar8 = FUN_000201a0(param_1,iVar2,local_24);\n  if ((DAT_0008a72c != 0) && (iVar8 < local_24)) {\n    iVar4 = iVar8;\n    iVar1 = 0;\n    do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);\n    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);\n    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;\n    if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }\n  }\n  FUN_000301a0(iVar2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0005e020(undefined4 param_1,char *param_2)" identifier (parameter_list "(undefined4 param_1,char *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  ssize_t sVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24);\n  if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);\n                    \n    exit(1);\n  }\n  iVar8 = 0;\n  iVar2 = FUN_00030000(local_24,1);\n  if (0 < local_24) {\n    do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);\n  }\n  iVar8 = FUN_000201a0(param_1,iVar2,local_24);\n  if ((DAT_0008a72c != 0) && (iVar8 < local_24)) {\n    iVar4 = iVar8;\n    iVar1 = 0;\n    do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);\n    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);\n    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;\n    if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }\n  }\n  FUN_000301a0(iVar2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ssize_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5e029;" (assignment_expression "uStack_14 = 0x5e029" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24);" (assignment_expression "iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24)" identifier = (call_expression "sscanf(param_2,"---[%d,%d]",&local_28,&local_24)" identifier (argument_list "(param_2,"---[%d,%d]",&local_28,&local_24)" ( identifier , (string_literal ""---[%d,%d]"" " string_content ") , (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);\n                    \n    exit(1);\n  }" if (parenthesized_expression "(iVar2 != 2)" ( (binary_expression "iVar2 != 2" identifier != number_literal) )) (compound_statement "{\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);\n                    \n    exit(1);\n  }" { (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2)" identifier (argument_list "(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2)" ( (pointer_expression "*(undefined4 *)PTR_stderr_000b5ff4" * (cast_expression "(undefined4 *)PTR_stderr_000b5ff4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (string_literal ""%s: malformed magic argument `%s\'\n"" " string_content escape_sequence escape_sequence ") , identifier , identifier ))) ;) (expression_statement "exit(1);" (call_expression "exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = FUN_00030000(local_24,1);" (assignment_expression "iVar2 = FUN_00030000(local_24,1)" identifier = (call_expression "FUN_00030000(local_24,1)" identifier (argument_list "(local_24,1)" ( identifier , number_literal )))) ;) (if_statement "if (0 < local_24) {\n    do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);\n  }" if (parenthesized_expression "(0 < local_24)" ( (binary_expression "0 < local_24" number_literal < identifier) )) (compound_statement "{\n    do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);\n  }" { (do_statement "do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);" do (compound_statement "{\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    }" { (expression_statement "sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);" (assignment_expression "sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8)" identifier = (call_expression "read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8)" identifier (argument_list "(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8)" ( identifier , (cast_expression "(void *)(iVar2 + iVar8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar8)" ( (binary_expression "iVar2 + iVar8" identifier + identifier) ))) , (binary_expression "local_24 - iVar8" identifier - identifier) )))) ;) (if_statement "if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }" if (parenthesized_expression "(sVar3 < 1)" ( (binary_expression "sVar3 < 1" identifier < number_literal) )) (compound_statement "{\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }" { (if_statement "if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }" if (parenthesized_expression "(sVar3 != 0)" ( (binary_expression "sVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          perror("read from pipe");\n                    \n          exit(1);\n        }" { (expression_statement "perror("read from pipe");" (call_expression "perror("read from pipe")" identifier (argument_list "("read from pipe")" ( (string_literal ""read from pipe"" " string_content ") ))) ;) (expression_statement "exit(1);" (call_expression "exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (if_statement "if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }" if (parenthesized_expression "(iVar8 < local_24)" ( (binary_expression "iVar8 < local_24" identifier < identifier) )) (compound_statement "{\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }" { (expression_statement "pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";" (assignment_expression "pcVar6 = "%s: unexpected EOF in Duplicate Session data\n"" identifier = (string_literal ""%s: unexpected EOF in Duplicate Session data\n"" " string_content escape_sequence ")) ;) (goto_statement "goto LAB_0005e23a;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (expression_statement "iVar8 = iVar8 + sVar3;" (assignment_expression "iVar8 = iVar8 + sVar3" identifier = (binary_expression "iVar8 + sVar3" identifier + identifier)) ;) }) while (parenthesized_expression "(iVar8 < local_24)" ( (binary_expression "iVar8 < local_24" identifier < identifier) )) ;) })) (expression_statement "iVar8 = FUN_000201a0(param_1,iVar2,local_24);" (assignment_expression "iVar8 = FUN_000201a0(param_1,iVar2,local_24)" identifier = (call_expression "FUN_000201a0(param_1,iVar2,local_24)" identifier (argument_list "(param_1,iVar2,local_24)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((DAT_0008a72c != 0) && (iVar8 < local_24)) {\n    iVar4 = iVar8;\n    iVar1 = 0;\n    do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);\n    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);\n    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;\n    if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }\n  }" if (parenthesized_expression "((DAT_0008a72c != 0) && (iVar8 < local_24))" ( (binary_expression "(DAT_0008a72c != 0) && (iVar8 < local_24)" (parenthesized_expression "(DAT_0008a72c != 0)" ( (binary_expression "DAT_0008a72c != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar8 < local_24)" ( (binary_expression "iVar8 < local_24" identifier < identifier) ))) )) (compound_statement "{\n    iVar4 = iVar8;\n    iVar1 = 0;\n    do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);\n    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);\n    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;\n    if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }\n  }" { (expression_statement "iVar4 = iVar8;" (assignment_expression "iVar4 = iVar8" identifier = identifier) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);" do (compound_statement "{\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    }" { (while_statement "while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }" while (parenthesized_expression "(iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0')" ( (comma_expression "iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0'" (assignment_expression "iVar9 = iVar1" identifier = identifier) , (binary_expression "*(char *)(iVar2 + iVar4) != '\0'" (pointer_expression "*(char *)(iVar2 + iVar4)" * (cast_expression "(char *)(iVar2 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) )))) != (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }" { (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar9;" (assignment_expression "iVar1 = iVar9" identifier = identifier) ;) (if_statement "if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }" if (parenthesized_expression "(local_24 <= iVar4)" ( (binary_expression "local_24 <= iVar4" identifier <= identifier) )) (compound_statement "{\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }" { (expression_statement "pcVar6 = "%s: malformed Duplicate Session data\n";" (assignment_expression "pcVar6 = "%s: malformed Duplicate Session data\n"" identifier = (string_literal ""%s: malformed Duplicate Session data\n"" " string_content escape_sequence ")) ;) (labeled_statement "LAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);" statement_identifier : (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec)" identifier (argument_list "(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec)" ( (pointer_expression "*(undefined4 *)PTR_stderr_000b5ff4" * (cast_expression "(undefined4 *)PTR_stderr_000b5ff4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , identifier , identifier ))) ;)) (expression_statement "exit(1);" (call_expression "exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar9 + 1;" (assignment_expression "iVar1 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 < local_24)" ( (binary_expression "iVar4 < local_24" identifier < identifier) )) ;) (expression_statement "DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);" (assignment_expression "DAT_000b62b8 = FUN_00030000(iVar9 + 2,4)" identifier = (call_expression "FUN_00030000(iVar9 + 2,4)" identifier (argument_list "(iVar9 + 2,4)" ( (binary_expression "iVar9 + 2" identifier + number_literal) , number_literal )))) ;) (expression_statement "*(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;" (assignment_expression "*(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0" (pointer_expression "*(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4)" * (cast_expression "(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000b62b8 + (iVar9 + 1) * 4)" ( (binary_expression "DAT_000b62b8 + (iVar9 + 1) * 4" identifier + (binary_expression "(iVar9 + 1) * 4" (parenthesized_expression "(iVar9 + 1)" ( (binary_expression "iVar9 + 1" identifier + number_literal) )) * number_literal)) )))) = number_literal) ;) (if_statement "if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }" if (parenthesized_expression "(iVar8 < local_24)" ( (binary_expression "iVar8 < local_24" identifier < identifier) )) (compound_statement "{\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);" do (compound_statement "{\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      }" { (expression_statement "iVar1 = iVar2 + iVar8;" (assignment_expression "iVar1 = iVar2 + iVar8" identifier = (binary_expression "iVar2 + iVar8" identifier + identifier)) ;) (while_statement "while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }" while (parenthesized_expression "(*(char *)(iVar2 + iVar8) != '\0')" ( (binary_expression "*(char *)(iVar2 + iVar8) != '\0'" (pointer_expression "*(char *)(iVar2 + iVar8)" * (cast_expression "(char *)(iVar2 + iVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar8)" ( (binary_expression "iVar2 + iVar8" identifier + identifier) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }" { (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (if_statement "if (local_24 <= iVar8) goto LAB_0005e1c1;" if (parenthesized_expression "(local_24 <= iVar8)" ( (binary_expression "local_24 <= iVar8" identifier <= identifier) )) (goto_statement "goto LAB_0005e1c1;" goto statement_identifier ;)) })) (if_statement "if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }" if (parenthesized_expression "(local_24 <= iVar8)" ( (binary_expression "local_24 <= iVar8" identifier <= identifier) )) (compound_statement "{\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }" { (labeled_statement "LAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");" statement_identifier : (expression_statement "__assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");" (call_expression "__assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data")" identifier (argument_list "("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data")" ( (string_literal ""i < size"" " string_content ") , (string_literal ""unix/gtkmain.c"" " string_content ") , number_literal , (string_literal ""read_dupsession_data"" " string_content ") ))) ;)) })) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);" (assignment_expression "puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4)" identifier = (cast_expression "(undefined4 *)(DAT_000b62b8 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000b62b8 + iVar4)" ( (binary_expression "DAT_000b62b8 + iVar4" identifier + identifier) )))) ;) (expression_statement "iVar4 = iVar4 + 4;" (assignment_expression "iVar4 = iVar4 + 4" identifier = (binary_expression "iVar4 + 4" identifier + number_literal)) ;) (expression_statement "uVar5 = FUN_0002f040(iVar1);" (assignment_expression "uVar5 = FUN_0002f040(iVar1)" identifier = (call_expression "FUN_0002f040(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "*puVar7 = uVar5;" (assignment_expression "*puVar7 = uVar5" (pointer_expression "*puVar7" * identifier) = identifier) ;) }) while (parenthesized_expression "(iVar8 < local_24)" ( (binary_expression "iVar8 < local_24" identifier < identifier) )) ;) })) })) (expression_statement "FUN_000301a0(iVar2);" (call_expression "FUN_000301a0(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0006c950();\n  }" { (expression_statement "FUN_0006c950();" (call_expression "FUN_0006c950()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT , (string_literal " string_content escape_sequence escape_sequence ") , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) , (binary_expression IDENT - IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) != (char_literal ' escape_sequence '))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT , IDENT , IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0005e020(undefined4 param_1,char *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  ssize_t sVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24);\n  if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);\n                    \n    exit(1);\n  }\n  iVar8 = 0;\n  iVar2 = FUN_00030000(local_24,1);\n  if (0 < local_24) {\n    do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);\n  }\n  iVar8 = FUN_000201a0(param_1,iVar2,local_24);\n  if ((DAT_0008a72c != 0) && (iVar8 < local_24)) {\n    iVar4 = iVar8;\n    iVar1 = 0;\n    do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);\n    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);\n    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;\n    if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }\n  }\n  FUN_000301a0(iVar2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0005e020(undefined4 param_1,char *param_2)" (identifier "FUN_0005e020") (parameter_list "(undefined4 param_1,char *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  ssize_t sVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5e029;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24);\n  if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);\n                    \n    exit(1);\n  }\n  iVar8 = 0;\n  iVar2 = FUN_00030000(local_24,1);\n  if (0 < local_24) {\n    do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);\n  }\n  iVar8 = FUN_000201a0(param_1,iVar2,local_24);\n  if ((DAT_0008a72c != 0) && (iVar8 < local_24)) {\n    iVar4 = iVar8;\n    iVar1 = 0;\n    do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);\n    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);\n    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;\n    if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }\n  }\n  FUN_000301a0(iVar2);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "ssize_t sVar3;" (primitive_type "ssize_t") (identifier "sVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x5e029;" (assignment_expression "uStack_14 = 0x5e029" (identifier "uStack_14") (= "=") (number_literal "0x5e029")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24);" (assignment_expression "iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24)" (identifier "iVar2") (= "=") (call_expression "sscanf(param_2,"---[%d,%d]",&local_28,&local_24)" (identifier "sscanf") (argument_list "(param_2,"---[%d,%d]",&local_28,&local_24)" (( "(") (identifier "param_2") (, ",") (string_literal ""---[%d,%d]"" (" """) (string_content "---[%d,%d]") (" """)) (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if (iVar2 != 2) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);\n                    \n    exit(1);\n  }" (if "if") (parenthesized_expression "(iVar2 != 2)" (( "(") (binary_expression "iVar2 != 2" (identifier "iVar2") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);\n                    \n    exit(1);\n  }" ({ "{") (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2)" (identifier "__fprintf_chk") (argument_list "(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",\n                  PTR_s_pterm_000b4dec,param_2)" (( "(") (pointer_expression "*(undefined4 *)PTR_stderr_000b5ff4" (* "*") (cast_expression "(undefined4 *)PTR_stderr_000b5ff4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_000b5ff4"))) (, ",") (number_literal "1") (, ",") (string_literal ""%s: malformed magic argument `%s\'\n"" (" """) (string_content "%s: malformed magic argument `%s") (escape_sequence "\'") (escape_sequence "\n") (" """)) (, ",") (identifier "PTR_s_pterm_000b4dec") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "exit(1);" (call_expression "exit(1)" (identifier "exit") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = FUN_00030000(local_24,1);" (assignment_expression "iVar2 = FUN_00030000(local_24,1)" (identifier "iVar2") (= "=") (call_expression "FUN_00030000(local_24,1)" (identifier "FUN_00030000") (argument_list "(local_24,1)" (( "(") (identifier "local_24") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (0 < local_24) {\n    do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);\n  }" (if "if") (parenthesized_expression "(0 < local_24)" (( "(") (binary_expression "0 < local_24" (number_literal "0") (< "<") (identifier "local_24")) () ")")) (compound_statement "{\n    do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);\n  }" ({ "{") (do_statement "do {\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    } while (iVar8 < local_24);" (do "do") (compound_statement "{\n      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);\n      if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }\n      iVar8 = iVar8 + sVar3;\n    }" ({ "{") (expression_statement "sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);" (assignment_expression "sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8)" (identifier "sVar3") (= "=") (call_expression "read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8)" (identifier "read") (argument_list "(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8)" (( "(") (identifier "local_28") (, ",") (cast_expression "(void *)(iVar2 + iVar8)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar8)" (( "(") (binary_expression "iVar2 + iVar8" (identifier "iVar2") (+ "+") (identifier "iVar8")) () ")"))) (, ",") (binary_expression "local_24 - iVar8" (identifier "local_24") (- "-") (identifier "iVar8")) () ")")))) (; ";")) (if_statement "if (sVar3 < 1) {\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }" (if "if") (parenthesized_expression "(sVar3 < 1)" (( "(") (binary_expression "sVar3 < 1" (identifier "sVar3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }\n        if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }\n        break;\n      }" ({ "{") (if_statement "if (sVar3 != 0) {\n          perror("read from pipe");\n                    \n          exit(1);\n        }" (if "if") (parenthesized_expression "(sVar3 != 0)" (( "(") (binary_expression "sVar3 != 0" (identifier "sVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          perror("read from pipe");\n                    \n          exit(1);\n        }" ({ "{") (expression_statement "perror("read from pipe");" (call_expression "perror("read from pipe")" (identifier "perror") (argument_list "("read from pipe")" (( "(") (string_literal ""read from pipe"" (" """) (string_content "read from pipe") (" """)) () ")"))) (; ";")) (expression_statement "exit(1);" (call_expression "exit(1)" (identifier "exit") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar8 < local_24) {\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }" (if "if") (parenthesized_expression "(iVar8 < local_24)" (( "(") (binary_expression "iVar8 < local_24" (identifier "iVar8") (< "<") (identifier "local_24")) () ")")) (compound_statement "{\n          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";\n          goto LAB_0005e23a;\n        }" ({ "{") (expression_statement "pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";" (assignment_expression "pcVar6 = "%s: unexpected EOF in Duplicate Session data\n"" (identifier "pcVar6") (= "=") (string_literal ""%s: unexpected EOF in Duplicate Session data\n"" (" """) (string_content "%s: unexpected EOF in Duplicate Session data") (escape_sequence "\n") (" """))) (; ";")) (goto_statement "goto LAB_0005e23a;" (goto "goto") (statement_identifier "LAB_0005e23a") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "iVar8 = iVar8 + sVar3;" (assignment_expression "iVar8 = iVar8 + sVar3" (identifier "iVar8") (= "=") (binary_expression "iVar8 + sVar3" (identifier "iVar8") (+ "+") (identifier "sVar3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 < local_24)" (( "(") (binary_expression "iVar8 < local_24" (identifier "iVar8") (< "<") (identifier "local_24")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar8 = FUN_000201a0(param_1,iVar2,local_24);" (assignment_expression "iVar8 = FUN_000201a0(param_1,iVar2,local_24)" (identifier "iVar8") (= "=") (call_expression "FUN_000201a0(param_1,iVar2,local_24)" (identifier "FUN_000201a0") (argument_list "(param_1,iVar2,local_24)" (( "(") (identifier "param_1") (, ",") (identifier "iVar2") (, ",") (identifier "local_24") () ")")))) (; ";")) (if_statement "if ((DAT_0008a72c != 0) && (iVar8 < local_24)) {\n    iVar4 = iVar8;\n    iVar1 = 0;\n    do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);\n    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);\n    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;\n    if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }\n  }" (if "if") (parenthesized_expression "((DAT_0008a72c != 0) && (iVar8 < local_24))" (( "(") (binary_expression "(DAT_0008a72c != 0) && (iVar8 < local_24)" (parenthesized_expression "(DAT_0008a72c != 0)" (( "(") (binary_expression "DAT_0008a72c != 0" (identifier "DAT_0008a72c") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar8 < local_24)" (( "(") (binary_expression "iVar8 < local_24" (identifier "iVar8") (< "<") (identifier "local_24")) () ")"))) () ")")) (compound_statement "{\n    iVar4 = iVar8;\n    iVar1 = 0;\n    do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);\n    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);\n    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;\n    if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }\n  }" ({ "{") (expression_statement "iVar4 = iVar8;" (assignment_expression "iVar4 = iVar8" (identifier "iVar4") (= "=") (identifier "iVar8")) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    } while (iVar4 < local_24);" (do "do") (compound_statement "{\n      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }\n      iVar4 = iVar4 + 1;\n      iVar1 = iVar9 + 1;\n    }" ({ "{") (while_statement "while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }" (while "while") (parenthesized_expression "(iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0')" (( "(") (comma_expression "iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0'" (assignment_expression "iVar9 = iVar1" (identifier "iVar9") (= "=") (identifier "iVar1")) (, ",") (binary_expression "*(char *)(iVar2 + iVar4) != '\0'" (pointer_expression "*(char *)(iVar2 + iVar4)" (* "*") (cast_expression "(char *)(iVar2 + iVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar4)" (( "(") (binary_expression "iVar2 + iVar4" (identifier "iVar2") (+ "+") (identifier "iVar4")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")")) (compound_statement "{\n        iVar4 = iVar4 + 1;\n        iVar1 = iVar9;\n        if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }\n      }" ({ "{") (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = iVar9;" (assignment_expression "iVar1 = iVar9" (identifier "iVar1") (= "=") (identifier "iVar9")) (; ";")) (if_statement "if (local_24 <= iVar4) {\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }" (if "if") (parenthesized_expression "(local_24 <= iVar4)" (( "(") (binary_expression "local_24 <= iVar4" (identifier "local_24") (<= "<=") (identifier "iVar4")) () ")")) (compound_statement "{\n          pcVar6 = "%s: malformed Duplicate Session data\n";\nLAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);\n                    \n          exit(1);\n        }" ({ "{") (expression_statement "pcVar6 = "%s: malformed Duplicate Session data\n";" (assignment_expression "pcVar6 = "%s: malformed Duplicate Session data\n"" (identifier "pcVar6") (= "=") (string_literal ""%s: malformed Duplicate Session data\n"" (" """) (string_content "%s: malformed Duplicate Session data") (escape_sequence "\n") (" """))) (; ";")) (labeled_statement "LAB_0005e23a:\n          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);" (statement_identifier "LAB_0005e23a") (: ":") (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec)" (identifier "__fprintf_chk") (argument_list "(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec)" (( "(") (pointer_expression "*(undefined4 *)PTR_stderr_000b5ff4" (* "*") (cast_expression "(undefined4 *)PTR_stderr_000b5ff4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_000b5ff4"))) (, ",") (number_literal "1") (, ",") (identifier "pcVar6") (, ",") (identifier "PTR_s_pterm_000b4dec") () ")"))) (; ";"))) (expression_statement "exit(1);" (call_expression "exit(1)" (identifier "exit") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = iVar9 + 1;" (assignment_expression "iVar1 = iVar9 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 < local_24)" (( "(") (binary_expression "iVar4 < local_24" (identifier "iVar4") (< "<") (identifier "local_24")) () ")")) (; ";")) (expression_statement "DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);" (assignment_expression "DAT_000b62b8 = FUN_00030000(iVar9 + 2,4)" (identifier "DAT_000b62b8") (= "=") (call_expression "FUN_00030000(iVar9 + 2,4)" (identifier "FUN_00030000") (argument_list "(iVar9 + 2,4)" (( "(") (binary_expression "iVar9 + 2" (identifier "iVar9") (+ "+") (number_literal "2")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;" (assignment_expression "*(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0" (pointer_expression "*(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4)" (* "*") (cast_expression "(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000b62b8 + (iVar9 + 1) * 4)" (( "(") (binary_expression "DAT_000b62b8 + (iVar9 + 1) * 4" (identifier "DAT_000b62b8") (+ "+") (binary_expression "(iVar9 + 1) * 4" (parenthesized_expression "(iVar9 + 1)" (( "(") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar8 < local_24) {\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }" (if "if") (parenthesized_expression "(iVar8 < local_24)" (( "(") (binary_expression "iVar8 < local_24" (identifier "iVar8") (< "<") (identifier "local_24")) () ")")) (compound_statement "{\n      iVar4 = 0;\n      do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);\n    }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      } while (iVar8 < local_24);" (do "do") (compound_statement "{\n        iVar1 = iVar2 + iVar8;\n        while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }\n        if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }\n        iVar8 = iVar8 + 1;\n        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);\n        iVar4 = iVar4 + 4;\n        uVar5 = FUN_0002f040(iVar1);\n        *puVar7 = uVar5;\n      }" ({ "{") (expression_statement "iVar1 = iVar2 + iVar8;" (assignment_expression "iVar1 = iVar2 + iVar8" (identifier "iVar1") (= "=") (binary_expression "iVar2 + iVar8" (identifier "iVar2") (+ "+") (identifier "iVar8"))) (; ";")) (while_statement "while (*(char *)(iVar2 + iVar8) != '\0') {\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }" (while "while") (parenthesized_expression "(*(char *)(iVar2 + iVar8) != '\0')" (( "(") (binary_expression "*(char *)(iVar2 + iVar8) != '\0'" (pointer_expression "*(char *)(iVar2 + iVar8)" (* "*") (cast_expression "(char *)(iVar2 + iVar8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar8)" (( "(") (binary_expression "iVar2 + iVar8" (identifier "iVar2") (+ "+") (identifier "iVar8")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          iVar8 = iVar8 + 1;\n          if (local_24 <= iVar8) goto LAB_0005e1c1;\n        }" ({ "{") (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (local_24 <= iVar8) goto LAB_0005e1c1;" (if "if") (parenthesized_expression "(local_24 <= iVar8)" (( "(") (binary_expression "local_24 <= iVar8" (identifier "local_24") (<= "<=") (identifier "iVar8")) () ")")) (goto_statement "goto LAB_0005e1c1;" (goto "goto") (statement_identifier "LAB_0005e1c1") (; ";"))) (} "}"))) (if_statement "if (local_24 <= iVar8) {\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }" (if "if") (parenthesized_expression "(local_24 <= iVar8)" (( "(") (binary_expression "local_24 <= iVar8" (identifier "local_24") (<= "<=") (identifier "iVar8")) () ")")) (compound_statement "{\nLAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");\n        }" ({ "{") (labeled_statement "LAB_0005e1c1:\n                    \n          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");" (statement_identifier "LAB_0005e1c1") (: ":") (expression_statement "__assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");" (call_expression "__assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data")" (identifier "__assert_fail") (argument_list "("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data")" (( "(") (string_literal ""i < size"" (" """) (string_content "i < size") (" """)) (, ",") (string_literal ""unix/gtkmain.c"" (" """) (string_content "unix/gtkmain.c") (" """)) (, ",") (number_literal "0xfb") (, ",") (string_literal ""read_dupsession_data"" (" """) (string_content "read_dupsession_data") (" """)) () ")"))) (; ";"))) (} "}"))) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);" (assignment_expression "puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4)" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)(DAT_000b62b8 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000b62b8 + iVar4)" (( "(") (binary_expression "DAT_000b62b8 + iVar4" (identifier "DAT_000b62b8") (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (expression_statement "iVar4 = iVar4 + 4;" (assignment_expression "iVar4 = iVar4 + 4" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "uVar5 = FUN_0002f040(iVar1);" (assignment_expression "uVar5 = FUN_0002f040(iVar1)" (identifier "uVar5") (= "=") (call_expression "FUN_0002f040(iVar1)" (identifier "FUN_0002f040") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "*puVar7 = uVar5;" (assignment_expression "*puVar7 = uVar5" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (identifier "uVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 < local_24)" (( "(") (binary_expression "iVar8 < local_24" (identifier "iVar8") (< "<") (identifier "local_24")) () ")")) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_000301a0(iVar2);" (call_expression "FUN_000301a0(iVar2)" (identifier "FUN_000301a0") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006c950();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0006c950();\n  }" ({ "{") (expression_statement "FUN_0006c950();" (call_expression "FUN_0006c950()" (identifier "FUN_0006c950") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(type_1 *conf,char *arg)

{
  int iVar1;
  int var_3;
  void *vdata;
  ssize_t var_9;
  int var_13;
  char *pcVar5;
  type_2 *puVar6;
  int var_14;
  int var_1;
  int fd;
  int var_7;
  int var_18;
  type_2 uStack_14;
  
  uStack_14 = 0x5e029;
  var_18 = *(int *)(var_1 + 0x14);
  var_3 = var_2(arg,"---[%d,%d]",&fd,&var_7);
  if (var_3 != 2) {
    var_4(*(type_2 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",
                  appname,arg);
                    /* WARNING: Subroutine does not return */
    var_5(1);
  }
  var_3 = 0;
  vdata = var_6(var_7,1);
  if (0 < var_7) {
    do {
      var_9 = var_8(fd,(void *)((int)vdata + var_3),var_7 - var_3);
      if (var_9 < 1) {
        if (var_9 != 0) {
          var_10("read from pipe");
                    /* WARNING: Subroutine does not return */
          var_5(1);
        }
        if (var_3 < var_7) {
          pcVar5 = "%s: unexpected EOF in Duplicate Session data\n";
          goto LAB_0005e23a;
        }
        break;
      }
      var_3 = var_3 + var_9;
    } while (var_3 < var_7);
  }
  var_3 = var_11(conf,vdata,var_7);
  if ((var_12 != 0) && (var_3 < var_7)) {
    var_13 = var_3;
    iVar1 = 0;
    do {
      while (var_14 = iVar1, *(char *)((int)vdata + var_13) != '\0') {
        var_13 = var_13 + 1;
        iVar1 = var_14;
        if (var_7 <= var_13) {
          pcVar5 = "%s: malformed Duplicate Session data\n";
LAB_0005e23a:
          var_4(*(type_2 *)PTR_stderr_000b5ff4,1,pcVar5,appname);
                    /* WARNING: Subroutine does not return */
          var_5(1);
        }
      }
      var_13 = var_13 + 1;
      iVar1 = var_14 + 1;
    } while (var_13 < var_7);
    pty_argv = (char **)var_6(var_14 + 2,4);
    pty_argv[var_14 + 1] = (char *)0x0;
    if (var_3 < var_7) {
      var_13 = 0;
      do {
        pcVar5 = (char *)((int)vdata + var_3);
        while (*(char *)((int)vdata + var_3) != '\0') {
          var_3 = var_3 + 1;
          if (var_7 <= var_3) goto LAB_0005e1c1;
        }
        if (var_7 <= var_3) {
LAB_0005e1c1:
                    /* WARNING: Subroutine does not return */
          var_15("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");
        }
        var_3 = var_3 + 1;
        puVar6 = (type_2 *)((int)pty_argv + var_13);
        var_13 = var_13 + 4;
        pcVar5 = var_16(pcVar5);
        *puVar6 = pcVar5;
      } while (var_3 < var_7);
    }
  }
  var_17(vdata);
  if (var_18 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_19();
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) (number_literal) (string_literal (string_content) (escape_sequence) (escape_sequence)) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence)))) (goto_statement label: (statement_identifier)))) (break_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (char_literal (escape_sequence))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence)))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) (number_literal) (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (while_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (char_literal (escape_sequence)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement (number_literal)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 MASKED(undefined4 param_1,char *param_2)

{
  int iVar1;
  int iVar2;
  ssize_t sVar3;
  int iVar4;
  undefined4 uVar5;
  char *pcVar6;
  undefined4 *puVar7;
  int iVar8;
  int iVar9;
  int in_GS_OFFSET;
  int local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5e029;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = sscanf(param_2,"---[%d,%d]",&local_28,&local_24);
  if (iVar2 != 2) {
    __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,"%s: malformed magic argument `%s\'\n",
                  PTR_s_pterm_000b4dec,param_2);
                    /* WARNING: Subroutine does not return */
    exit(1);
  }
  iVar8 = 0;
  iVar2 = FUN_00030000(local_24,1);
  if (0 < local_24) {
    do {
      sVar3 = read(local_28,(void *)(iVar2 + iVar8),local_24 - iVar8);
      if (sVar3 < 1) {
        if (sVar3 != 0) {
          perror("read from pipe");
                    /* WARNING: Subroutine does not return */
          exit(1);
        }
        if (iVar8 < local_24) {
          pcVar6 = "%s: unexpected EOF in Duplicate Session data\n";
          goto LAB_0005e23a;
        }
        break;
      }
      iVar8 = iVar8 + sVar3;
    } while (iVar8 < local_24);
  }
  iVar8 = FUN_000201a0(param_1,iVar2,local_24);
  if ((DAT_0008a72c != 0) && (iVar8 < local_24)) {
    iVar4 = iVar8;
    iVar1 = 0;
    do {
      while (iVar9 = iVar1, *(char *)(iVar2 + iVar4) != '\0') {
        iVar4 = iVar4 + 1;
        iVar1 = iVar9;
        if (local_24 <= iVar4) {
          pcVar6 = "%s: malformed Duplicate Session data\n";
LAB_0005e23a:
          __fprintf_chk(*(undefined4 *)PTR_stderr_000b5ff4,1,pcVar6,PTR_s_pterm_000b4dec);
                    /* WARNING: Subroutine does not return */
          exit(1);
        }
      }
      iVar4 = iVar4 + 1;
      iVar1 = iVar9 + 1;
    } while (iVar4 < local_24);
    DAT_000b62b8 = FUN_00030000(iVar9 + 2,4);
    *(undefined4 *)(DAT_000b62b8 + (iVar9 + 1) * 4) = 0;
    if (iVar8 < local_24) {
      iVar4 = 0;
      do {
        iVar1 = iVar2 + iVar8;
        while (*(char *)(iVar2 + iVar8) != '\0') {
          iVar8 = iVar8 + 1;
          if (local_24 <= iVar8) goto LAB_0005e1c1;
        }
        if (local_24 <= iVar8) {
LAB_0005e1c1:
                    /* WARNING: Subroutine does not return */
          __assert_fail("i < size","unix/gtkmain.c",0xfb,"read_dupsession_data");
        }
        iVar8 = iVar8 + 1;
        puVar7 = (undefined4 *)(DAT_000b62b8 + iVar4);
        iVar4 = iVar4 + 4;
        uVar5 = FUN_0002f040(iVar1);
        *puVar7 = uVar5;
      } while (iVar8 < local_24);
    }
  }
  FUN_000301a0(iVar2);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0006c950();
  }
  return 0;
}

