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

void fork_and_exec_self(int fd_to_close,...)

{
  char **ppcVar1;
  int iVar2;
  char *pcVar3;
  char **__argv;
  char **ppcVar4;
  int *piVar5;
  __pid_t _Var6;
  char **ppcVar7;
  size_t sVar8;
  size_t sVar9;
  size_t n;
  int in_GS_OFFSET;
  int in_stack_00000008;
  int status;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xb0099;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  n = ngtkargs + 2;
  if (in_stack_00000008 != 0) {
    piVar5 = (int *)&stack0x0000000c;
    do {
      iVar2 = *piVar5;
      n = n + 1;
      piVar5 = piVar5 + 1;
    } while (iVar2 != 0);
  }
  __argv = (char **)safemalloc(n,4);
  iVar2 = ngtkargs;
  *__argv = progname;
  __argv[n - 1] = (char *)0x0;
  if (iVar2 < 1) {
    sVar8 = 1;
  }
  else {
    ppcVar1 = gtkargvstart + iVar2;
    ppcVar4 = gtkargvstart;
    ppcVar7 = __argv;
    do {
      ppcVar7 = ppcVar7 + 1;
      pcVar3 = *ppcVar4;
      ppcVar4 = ppcVar4 + 1;
      *ppcVar7 = pcVar3;
    } while (ppcVar1 != ppcVar4);
    sVar8 = iVar2 + 1;
  }
  piVar5 = &stack0x00000008;
  do {
    pcVar3 = (char *)*piVar5;
    sVar9 = sVar8 + 1;
    __argv[sVar8] = pcVar3;
    piVar5 = piVar5 + 1;
    sVar8 = sVar9;
  } while (pcVar3 != (char *)0x0);
  if (sVar9 != n) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");
  }
  _Var6 = fork();
  if (_Var6 < 0) {
    perror("fork");
    safefree(__argv);
  }
  else {
    if (_Var6 == 0) {
      _Var6 = fork();
      if (_Var6 < 0) {
        perror("fork");
                    /* WARNING: Subroutine does not return */
        _exit(1);
      }
      if (_Var6 != 0) {
                    /* WARNING: Subroutine does not return */
        _exit(0);
      }
      if (-1 < fd_to_close) {
        close(fd_to_close);
      }
      execv("/proc/self/exe",__argv);
      execvp(progname,__argv);
      perror("exec");
                    /* WARNING: Subroutine does not return */
      _exit(0x7f);
    }
    safefree(__argv);
    waitpid(_Var6,&status,0);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_000b0090(int param_1,int param_2)

{
  undefined4 *puVar1;
  char *pcVar2;
  char **__argv;
  undefined4 *puVar3;
  int *piVar4;
  __pid_t _Var5;
  char **ppcVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int in_GS_OFFSET;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xb0099;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar9 = DAT_0013b9f8 + 2;
  if (param_2 != 0) {
    piVar4 = (int *)&stack0x0000000c;
    do {
      iVar7 = *piVar4;
      iVar9 = iVar9 + 1;
      piVar4 = piVar4 + 1;
    } while (iVar7 != 0);
  }
  __argv = (char **)FUN_000329a0(iVar9,4);
  iVar7 = DAT_0013b9f8;
  *__argv = DAT_0013ba00;
  __argv[iVar9 + -1] = (char *)0x0;
  if (iVar7 < 1) {
    iVar7 = 1;
  }
  else {
    puVar1 = DAT_0013b9fc + iVar7;
    puVar3 = DAT_0013b9fc;
    ppcVar6 = __argv;
    do {
      ppcVar6 = ppcVar6 + 1;
      pcVar2 = (char *)*puVar3;
      puVar3 = puVar3 + 1;
      *ppcVar6 = pcVar2;
    } while (puVar1 != puVar3);
    iVar7 = iVar7 + 1;
  }
  piVar4 = &param_2;
  do {
    pcVar2 = (char *)*piVar4;
    iVar8 = iVar7 + 1;
    __argv[iVar7] = pcVar2;
    piVar4 = piVar4 + 1;
    iVar7 = iVar8;
  } while (pcVar2 != (char *)0x0);
  if (iVar8 != iVar9) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");
  }
  _Var5 = fork();
  if (_Var5 < 0) {
    perror("fork");
    FUN_00032b40(__argv);
  }
  else {
    if (_Var5 == 0) {
      _Var5 = fork();
      if (_Var5 < 0) {
        perror("fork");
                    /* WARNING: Subroutine does not return */
        _exit(1);
      }
      if (_Var5 != 0) {
                    /* WARNING: Subroutine does not return */
        _exit(0);
      }
      if (-1 < param_1) {
        close(param_1);
      }
      execv("/proc/self/exe",__argv);
      execvp(DAT_0013ba00,__argv);
      perror("exec");
                    /* WARNING: Subroutine does not return */
      _exit(0x7f);
    }
    FUN_00032b40(__argv);
    waitpid(_Var5,&local_24,0);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000c60b0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001c520
ADD EBX,0x8a6b7
SUB ESP,0x2c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0x44]
MOV ESI,dword ptr [EBX + 0x12a8]
ADD ESI,0x2
TEST EBP,EBP
JZ 0x000b00d5
LEA EAX,[ESP + 0x48]
LEA ESI,[ESI]
NOP
ADD EAX,0x4
MOV EDI,dword ptr [EAX + -0x4]
ADD ESI,0x1
TEST EDI,EDI
JNZ 0x000b00c8
SUB ESP,0x8
PUSH 0x4
PUSH ESI
CALL 0x000329a0
MOV EDX,dword ptr [EBX + 0x12a8]
ADD ESP,0x10
MOV EDI,EAX
MOV EAX,dword ptr [EBX + 0x12b0]
MOV dword ptr [EDI],EAX
MOV dword ptr [EDI + ESI*0x4 + -0x4],0x0
TEST EDX,EDX
JLE 0x000b01d8
MOV EAX,dword ptr [EBX + 0x12ac]
MOV dword ptr [ESP + 0xc],EDX
LEA ECX,[EDI + 0x4]
LEA EBP,[EAX + EDX*0x4]
LEA ESI,[ESI]
NOP
MOV EDX,dword ptr [EAX]
ADD EAX,0x4
ADD ECX,0x4
MOV dword ptr [ECX + -0x4],EDX
CMP EBP,EAX
JNZ 0x000b0118
MOV EDX,dword ptr [ESP + 0xc]
ADD EDX,0x1
LEA EAX,[ESP + 0x44]
LEA ESI,[ESI]
ADD EAX,0x4
MOV ECX,dword ptr [EAX + -0x4]
ADD EDX,0x1
MOV dword ptr [EDI + EDX*0x4 + -0x4],ECX
TEST ECX,ECX
JNZ 0x000b0138
CMP EDX,ESI
JNZ 0x000b024f
CALL 0x0001a1a0
MOV ESI,EAX
TEST EAX,EAX
JS 0x000b01b8
JNZ 0x000b0180
CALL 0x0001a1a0
TEST EAX,EAX
JS 0x000b0234
JZ 0x000b01e2
SUB ESP,0xc
PUSH 0x0
CALL 0x0001aa60
SUB ESP,0xc
PUSH EDI
CALL 0x00032b40
ADD ESP,0xc
PUSH 0x0
LEA EAX,[ESP + 0x20]
PUSH EAX
PUSH ESI
CALL 0x0001a050
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x000b022f
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfffb4ea2]
PUSH EAX
CALL 0x0001b930
MOV dword ptr [ESP],EDI
CALL 0x00032b40
ADD ESP,0x10
JMP 0x000b019c
MOV EDX,0x1
JMP 0x000b012e
CMP dword ptr [ESP + 0x40],0x0
JS 0x000b01f8
SUB ESP,0xc
PUSH dword ptr [ESP + 0x4c]
CALL 0x0001bc40
ADD ESP,0x10
PUSH EAX
PUSH EAX
LEA EAX,[EBX + 0xfffb4ea7]
PUSH EDI
PUSH EAX
CALL 0x0001aad0
POP EDX
POP ECX
PUSH EDI
PUSH dword ptr [EBX + 0x12b0]
CALL 0x0001b110
LEA EAX,[EBX + 0xfffa76da]
MOV dword ptr [ESP],EAX
CALL 0x0001b930
MOV dword ptr [ESP],0x7f
CALL 0x0001aa60
CALL 0x000c60b0
SUB ESP,0xc
LEA EAX,[EBX + 0xfffb4ea2]
PUSH EAX
CALL 0x0001b930
MOV dword ptr [ESP],0x1
CALL 0x0001aa60
LEA EAX,[EBX + 0xfffb5590]
PUSH EAX
LEA EAX,[EBX + 0xfffb4e8c]
PUSH 0x65
PUSH EAX
LEA EAX,[EBX + 0xfffb4e9b]
PUSH EAX
CALL 0x0001c000
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000b0090(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  char **__argv;\n  undefined4 *puVar3;\n  int *piVar4;\n  __pid_t _Var5;\n  char **ppcVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb0099;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = DAT_0013b9f8 + 2;\n  if (param_2 != 0) {\n    piVar4 = (int *)&stack0x0000000c;\n    do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);\n  }\n  __argv = (char **)FUN_000329a0(iVar9,4);\n  iVar7 = DAT_0013b9f8;\n  *__argv = DAT_0013ba00;\n  __argv[iVar9 + -1] = (char *)0x0;\n  if (iVar7 < 1) {\n    iVar7 = 1;\n  }\n  else {\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }\n  piVar4 = &param_2;\n  do {\n    pcVar2 = (char *)*piVar4;\n    iVar8 = iVar7 + 1;\n    __argv[iVar7] = pcVar2;\n    piVar4 = piVar4 + 1;\n    iVar7 = iVar8;\n  } while (pcVar2 != (char *)0x0);\n  if (iVar8 != iVar9) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }\n  _Var5 = fork();\n  if (_Var5 < 0) {\n    perror("fork");\n    FUN_00032b40(__argv);\n  }\n  else {\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}\n\n" comment (function_definition "void FUN_000b0090(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  char **__argv;\n  undefined4 *puVar3;\n  int *piVar4;\n  __pid_t _Var5;\n  char **ppcVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb0099;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = DAT_0013b9f8 + 2;\n  if (param_2 != 0) {\n    piVar4 = (int *)&stack0x0000000c;\n    do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);\n  }\n  __argv = (char **)FUN_000329a0(iVar9,4);\n  iVar7 = DAT_0013b9f8;\n  *__argv = DAT_0013ba00;\n  __argv[iVar9 + -1] = (char *)0x0;\n  if (iVar7 < 1) {\n    iVar7 = 1;\n  }\n  else {\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }\n  piVar4 = &param_2;\n  do {\n    pcVar2 = (char *)*piVar4;\n    iVar8 = iVar7 + 1;\n    __argv[iVar7] = pcVar2;\n    piVar4 = piVar4 + 1;\n    iVar7 = iVar8;\n  } while (pcVar2 != (char *)0x0);\n  if (iVar8 != iVar9) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }\n  _Var5 = fork();\n  if (_Var5 < 0) {\n    perror("fork");\n    FUN_00032b40(__argv);\n  }\n  else {\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}" primitive_type (function_declarator "FUN_000b0090(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  char **__argv;\n  undefined4 *puVar3;\n  int *piVar4;\n  __pid_t _Var5;\n  char **ppcVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb0099;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = DAT_0013b9f8 + 2;\n  if (param_2 != 0) {\n    piVar4 = (int *)&stack0x0000000c;\n    do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);\n  }\n  __argv = (char **)FUN_000329a0(iVar9,4);\n  iVar7 = DAT_0013b9f8;\n  *__argv = DAT_0013ba00;\n  __argv[iVar9 + -1] = (char *)0x0;\n  if (iVar7 < 1) {\n    iVar7 = 1;\n  }\n  else {\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }\n  piVar4 = &param_2;\n  do {\n    pcVar2 = (char *)*piVar4;\n    iVar8 = iVar7 + 1;\n    __argv[iVar7] = pcVar2;\n    piVar4 = piVar4 + 1;\n    iVar7 = iVar8;\n  } while (pcVar2 != (char *)0x0);\n  if (iVar8 != iVar9) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }\n  _Var5 = fork();\n  if (_Var5 < 0) {\n    perror("fork");\n    FUN_00032b40(__argv);\n  }\n  else {\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char **__argv;" primitive_type (pointer_declarator "**__argv" * (pointer_declarator "*__argv" * identifier)) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "__pid_t _Var5;" type_identifier identifier ;) (declaration "char **ppcVar6;" primitive_type (pointer_declarator "**ppcVar6" * (pointer_declarator "*ppcVar6" * identifier)) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" 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 = 0xb0099;" (assignment_expression "uStack_14 = 0xb0099" 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 "iVar9 = DAT_0013b9f8 + 2;" (assignment_expression "iVar9 = DAT_0013b9f8 + 2" identifier = (binary_expression "DAT_0013b9f8 + 2" identifier + number_literal)) ;) (if_statement "if (param_2 != 0) {\n    piVar4 = (int *)&stack0x0000000c;\n    do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar4 = (int *)&stack0x0000000c;\n    do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);\n  }" { (expression_statement "piVar4 = (int *)&stack0x0000000c;" (assignment_expression "piVar4 = (int *)&stack0x0000000c" identifier = (cast_expression "(int *)&stack0x0000000c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x0000000c" & identifier))) ;) (do_statement "do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);" do (compound_statement "{\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    }" { (expression_statement "iVar7 = *piVar4;" (assignment_expression "iVar7 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) ;) })) (expression_statement "__argv = (char **)FUN_000329a0(iVar9,4);" (assignment_expression "__argv = (char **)FUN_000329a0(iVar9,4)" identifier = (cast_expression "(char **)FUN_000329a0(iVar9,4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "FUN_000329a0(iVar9,4)" identifier (argument_list "(iVar9,4)" ( identifier , number_literal ))))) ;) (expression_statement "iVar7 = DAT_0013b9f8;" (assignment_expression "iVar7 = DAT_0013b9f8" identifier = identifier) ;) (expression_statement "*__argv = DAT_0013ba00;" (assignment_expression "*__argv = DAT_0013ba00" (pointer_expression "*__argv" * identifier) = identifier) ;) (expression_statement "__argv[iVar9 + -1] = (char *)0x0;" (assignment_expression "__argv[iVar9 + -1] = (char *)0x0" (subscript_expression "__argv[iVar9 + -1]" identifier [ (binary_expression "iVar9 + -1" identifier + number_literal) ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar7 < 1) {\n    iVar7 = 1;\n  }\n  else {\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }" if (parenthesized_expression "(iVar7 < 1)" ( (binary_expression "iVar7 < 1" identifier < number_literal) )) (compound_statement "{\n    iVar7 = 1;\n  }" { (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }" else (compound_statement "{\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }" { (expression_statement "puVar1 = DAT_0013b9fc + iVar7;" (assignment_expression "puVar1 = DAT_0013b9fc + iVar7" identifier = (binary_expression "DAT_0013b9fc + iVar7" identifier + identifier)) ;) (expression_statement "puVar3 = DAT_0013b9fc;" (assignment_expression "puVar3 = DAT_0013b9fc" identifier = identifier) ;) (expression_statement "ppcVar6 = __argv;" (assignment_expression "ppcVar6 = __argv" identifier = identifier) ;) (do_statement "do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);" do (compound_statement "{\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    }" { (expression_statement "ppcVar6 = ppcVar6 + 1;" (assignment_expression "ppcVar6 = ppcVar6 + 1" identifier = (binary_expression "ppcVar6 + 1" identifier + number_literal)) ;) (expression_statement "pcVar2 = (char *)*puVar3;" (assignment_expression "pcVar2 = (char *)*puVar3" identifier = (cast_expression "(char *)*puVar3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "*ppcVar6 = pcVar2;" (assignment_expression "*ppcVar6 = pcVar2" (pointer_expression "*ppcVar6" * identifier) = identifier) ;) }) while (parenthesized_expression "(puVar1 != puVar3)" ( (binary_expression "puVar1 != puVar3" identifier != identifier) )) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }))) (expression_statement "piVar4 = &param_2;" (assignment_expression "piVar4 = &param_2" identifier = (pointer_expression "&param_2" & identifier)) ;) (do_statement "do {\n    pcVar2 = (char *)*piVar4;\n    iVar8 = iVar7 + 1;\n    __argv[iVar7] = pcVar2;\n    piVar4 = piVar4 + 1;\n    iVar7 = iVar8;\n  } while (pcVar2 != (char *)0x0);" do (compound_statement "{\n    pcVar2 = (char *)*piVar4;\n    iVar8 = iVar7 + 1;\n    __argv[iVar7] = pcVar2;\n    piVar4 = piVar4 + 1;\n    iVar7 = iVar8;\n  }" { (expression_statement "pcVar2 = (char *)*piVar4;" (assignment_expression "pcVar2 = (char *)*piVar4" identifier = (cast_expression "(char *)*piVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (expression_statement "iVar8 = iVar7 + 1;" (assignment_expression "iVar8 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "__argv[iVar7] = pcVar2;" (assignment_expression "__argv[iVar7] = pcVar2" (subscript_expression "__argv[iVar7]" identifier [ identifier ]) = identifier) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (iVar8 != iVar9) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }" if (parenthesized_expression "(iVar8 != iVar9)" ( (binary_expression "iVar8 != iVar9" identifier != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }" { comment (expression_statement "__assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");" (call_expression "__assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self")" identifier (argument_list "("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self")" ( (string_literal ""i == n"" " string_content ") , (string_literal ""unix/gtkmain.c"" " string_content ") , number_literal , (string_literal ""fork_and_exec_self"" " string_content ") ))) ;) })) (expression_statement "_Var5 = fork();" (assignment_expression "_Var5 = fork()" identifier = (call_expression "fork()" identifier (argument_list "()" ( )))) ;) (if_statement "if (_Var5 < 0) {\n    perror("fork");\n    FUN_00032b40(__argv);\n  }\n  else {\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }" if (parenthesized_expression "(_Var5 < 0)" ( (binary_expression "_Var5 < 0" identifier < number_literal) )) (compound_statement "{\n    perror("fork");\n    FUN_00032b40(__argv);\n  }" { (expression_statement "perror("fork");" (call_expression "perror("fork")" identifier (argument_list "("fork")" ( (string_literal ""fork"" " string_content ") ))) ;) (expression_statement "FUN_00032b40(__argv);" (call_expression "FUN_00032b40(__argv)" identifier (argument_list "(__argv)" ( identifier ))) ;) }) (else_clause "else {\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }" else (compound_statement "{\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }" { (if_statement "if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }" if (parenthesized_expression "(_Var5 == 0)" ( (binary_expression "_Var5 == 0" identifier == number_literal) )) (compound_statement "{\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }" { (expression_statement "_Var5 = fork();" (assignment_expression "_Var5 = fork()" identifier = (call_expression "fork()" identifier (argument_list "()" ( )))) ;) (if_statement "if (_Var5 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }" if (parenthesized_expression "(_Var5 < 0)" ( (binary_expression "_Var5 < 0" identifier < number_literal) )) (compound_statement "{\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }" { (expression_statement "perror("fork");" (call_expression "perror("fork")" identifier (argument_list "("fork")" ( (string_literal ""fork"" " string_content ") ))) ;) comment (expression_statement "_exit(1);" (call_expression "_exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (if_statement "if (_Var5 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }" if (parenthesized_expression "(_Var5 != 0)" ( (binary_expression "_Var5 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }" { comment (expression_statement "_exit(0);" (call_expression "_exit(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })) (if_statement "if (-1 < param_1) {\n        close(param_1);\n      }" if (parenthesized_expression "(-1 < param_1)" ( (binary_expression "-1 < param_1" number_literal < identifier) )) (compound_statement "{\n        close(param_1);\n      }" { (expression_statement "close(param_1);" (call_expression "close(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (expression_statement "execv("/proc/self/exe",__argv);" (call_expression "execv("/proc/self/exe",__argv)" identifier (argument_list "("/proc/self/exe",__argv)" ( (string_literal ""/proc/self/exe"" " string_content ") , identifier ))) ;) (expression_statement "execvp(DAT_0013ba00,__argv);" (call_expression "execvp(DAT_0013ba00,__argv)" identifier (argument_list "(DAT_0013ba00,__argv)" ( identifier , identifier ))) ;) (expression_statement "perror("exec");" (call_expression "perror("exec")" identifier (argument_list "("exec")" ( (string_literal ""exec"" " string_content ") ))) ;) comment (expression_statement "_exit(0x7f);" (call_expression "_exit(0x7f)" identifier (argument_list "(0x7f)" ( number_literal ))) ;) })) (expression_statement "FUN_00032b40(__argv);" (call_expression "FUN_00032b40(__argv)" identifier (argument_list "(__argv)" ( identifier ))) ;) (expression_statement "waitpid(_Var5,&local_24,0);" (call_expression "waitpid(_Var5,&local_24,0)" identifier (argument_list "(_Var5,&local_24,0)" ( identifier , (pointer_expression "&local_24" & identifier) , number_literal ))) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid fork_and_exec_self(int fd_to_close,...)\n\n{\n  char **ppcVar1;\n  int iVar2;\n  char *pcVar3;\n  char **__argv;\n  char **ppcVar4;\n  int *piVar5;\n  __pid_t _Var6;\n  char **ppcVar7;\n  size_t sVar8;\n  size_t sVar9;\n  size_t n;\n  int in_GS_OFFSET;\n  int in_stack_00000008;\n  int status;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb0099;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  n = ngtkargs + 2;\n  if (in_stack_00000008 != 0) {\n    piVar5 = (int *)&stack0x0000000c;\n    do {\n      iVar2 = *piVar5;\n      n = n + 1;\n      piVar5 = piVar5 + 1;\n    } while (iVar2 != 0);\n  }\n  __argv = (char **)safemalloc(n,4);\n  iVar2 = ngtkargs;\n  *__argv = progname;\n  __argv[n - 1] = (char *)0x0;\n  if (iVar2 < 1) {\n    sVar8 = 1;\n  }\n  else {\n    ppcVar1 = gtkargvstart + iVar2;\n    ppcVar4 = gtkargvstart;\n    ppcVar7 = __argv;\n    do {\n      ppcVar7 = ppcVar7 + 1;\n      pcVar3 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      *ppcVar7 = pcVar3;\n    } while (ppcVar1 != ppcVar4);\n    sVar8 = iVar2 + 1;\n  }\n  piVar5 = &stack0x00000008;\n  do {\n    pcVar3 = (char *)*piVar5;\n    sVar9 = sVar8 + 1;\n    __argv[sVar8] = pcVar3;\n    piVar5 = piVar5 + 1;\n    sVar8 = sVar9;\n  } while (pcVar3 != (char *)0x0);\n  if (sVar9 != n) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }\n  _Var6 = fork();\n  if (_Var6 < 0) {\n    perror("fork");\n    safefree(__argv);\n  }\n  else {\n    if (_Var6 == 0) {\n      _Var6 = fork();\n      if (_Var6 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var6 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < fd_to_close) {\n        close(fd_to_close);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(progname,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }\n    safefree(__argv);\n    waitpid(_Var6,&status,0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void fork_and_exec_self(int fd_to_close,...)\n\n{\n  char **ppcVar1;\n  int iVar2;\n  char *pcVar3;\n  char **__argv;\n  char **ppcVar4;\n  int *piVar5;\n  __pid_t _Var6;\n  char **ppcVar7;\n  size_t sVar8;\n  size_t sVar9;\n  size_t n;\n  int in_GS_OFFSET;\n  int in_stack_00000008;\n  int status;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb0099;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  n = ngtkargs + 2;\n  if (in_stack_00000008 != 0) {\n    piVar5 = (int *)&stack0x0000000c;\n    do {\n      iVar2 = *piVar5;\n      n = n + 1;\n      piVar5 = piVar5 + 1;\n    } while (iVar2 != 0);\n  }\n  __argv = (char **)safemalloc(n,4);\n  iVar2 = ngtkargs;\n  *__argv = progname;\n  __argv[n - 1] = (char *)0x0;\n  if (iVar2 < 1) {\n    sVar8 = 1;\n  }\n  else {\n    ppcVar1 = gtkargvstart + iVar2;\n    ppcVar4 = gtkargvstart;\n    ppcVar7 = __argv;\n    do {\n      ppcVar7 = ppcVar7 + 1;\n      pcVar3 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      *ppcVar7 = pcVar3;\n    } while (ppcVar1 != ppcVar4);\n    sVar8 = iVar2 + 1;\n  }\n  piVar5 = &stack0x00000008;\n  do {\n    pcVar3 = (char *)*piVar5;\n    sVar9 = sVar8 + 1;\n    __argv[sVar8] = pcVar3;\n    piVar5 = piVar5 + 1;\n    sVar8 = sVar9;\n  } while (pcVar3 != (char *)0x0);\n  if (sVar9 != n) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }\n  _Var6 = fork();\n  if (_Var6 < 0) {\n    perror("fork");\n    safefree(__argv);\n  }\n  else {\n    if (_Var6 == 0) {\n      _Var6 = fork();\n      if (_Var6 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var6 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < fd_to_close) {\n        close(fd_to_close);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(progname,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }\n    safefree(__argv);\n    waitpid(_Var6,&status,0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "fork_and_exec_self(int fd_to_close,...)" identifier (parameter_list "(int fd_to_close,...)" ( (parameter_declaration "int fd_to_close" primitive_type identifier) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  char **ppcVar1;\n  int iVar2;\n  char *pcVar3;\n  char **__argv;\n  char **ppcVar4;\n  int *piVar5;\n  __pid_t _Var6;\n  char **ppcVar7;\n  size_t sVar8;\n  size_t sVar9;\n  size_t n;\n  int in_GS_OFFSET;\n  int in_stack_00000008;\n  int status;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb0099;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  n = ngtkargs + 2;\n  if (in_stack_00000008 != 0) {\n    piVar5 = (int *)&stack0x0000000c;\n    do {\n      iVar2 = *piVar5;\n      n = n + 1;\n      piVar5 = piVar5 + 1;\n    } while (iVar2 != 0);\n  }\n  __argv = (char **)safemalloc(n,4);\n  iVar2 = ngtkargs;\n  *__argv = progname;\n  __argv[n - 1] = (char *)0x0;\n  if (iVar2 < 1) {\n    sVar8 = 1;\n  }\n  else {\n    ppcVar1 = gtkargvstart + iVar2;\n    ppcVar4 = gtkargvstart;\n    ppcVar7 = __argv;\n    do {\n      ppcVar7 = ppcVar7 + 1;\n      pcVar3 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      *ppcVar7 = pcVar3;\n    } while (ppcVar1 != ppcVar4);\n    sVar8 = iVar2 + 1;\n  }\n  piVar5 = &stack0x00000008;\n  do {\n    pcVar3 = (char *)*piVar5;\n    sVar9 = sVar8 + 1;\n    __argv[sVar8] = pcVar3;\n    piVar5 = piVar5 + 1;\n    sVar8 = sVar9;\n  } while (pcVar3 != (char *)0x0);\n  if (sVar9 != n) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }\n  _Var6 = fork();\n  if (_Var6 < 0) {\n    perror("fork");\n    safefree(__argv);\n  }\n  else {\n    if (_Var6 == 0) {\n      _Var6 = fork();\n      if (_Var6 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var6 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < fd_to_close) {\n        close(fd_to_close);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(progname,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }\n    safefree(__argv);\n    waitpid(_Var6,&status,0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "char **ppcVar1;" primitive_type (pointer_declarator "**ppcVar1" * (pointer_declarator "*ppcVar1" * identifier)) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char **__argv;" primitive_type (pointer_declarator "**__argv" * (pointer_declarator "*__argv" * identifier)) ;) (declaration "char **ppcVar4;" primitive_type (pointer_declarator "**ppcVar4" * (pointer_declarator "*ppcVar4" * identifier)) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "__pid_t _Var6;" type_identifier identifier ;) (declaration "char **ppcVar7;" primitive_type (pointer_declarator "**ppcVar7" * (pointer_declarator "*ppcVar7" * identifier)) ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "size_t sVar9;" primitive_type identifier ;) (declaration "size_t n;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int in_stack_00000008;" primitive_type identifier ;) (declaration "int status;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xb0099;" (assignment_expression "uStack_14 = 0xb0099" 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 "n = ngtkargs + 2;" (assignment_expression "n = ngtkargs + 2" identifier = (binary_expression "ngtkargs + 2" identifier + number_literal)) ;) (if_statement "if (in_stack_00000008 != 0) {\n    piVar5 = (int *)&stack0x0000000c;\n    do {\n      iVar2 = *piVar5;\n      n = n + 1;\n      piVar5 = piVar5 + 1;\n    } while (iVar2 != 0);\n  }" if (parenthesized_expression "(in_stack_00000008 != 0)" ( (binary_expression "in_stack_00000008 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar5 = (int *)&stack0x0000000c;\n    do {\n      iVar2 = *piVar5;\n      n = n + 1;\n      piVar5 = piVar5 + 1;\n    } while (iVar2 != 0);\n  }" { (expression_statement "piVar5 = (int *)&stack0x0000000c;" (assignment_expression "piVar5 = (int *)&stack0x0000000c" identifier = (cast_expression "(int *)&stack0x0000000c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x0000000c" & identifier))) ;) (do_statement "do {\n      iVar2 = *piVar5;\n      n = n + 1;\n      piVar5 = piVar5 + 1;\n    } while (iVar2 != 0);" do (compound_statement "{\n      iVar2 = *piVar5;\n      n = n + 1;\n      piVar5 = piVar5 + 1;\n    }" { (expression_statement "iVar2 = *piVar5;" (assignment_expression "iVar2 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "n = n + 1;" (assignment_expression "n = n + 1" identifier = (binary_expression "n + 1" identifier + number_literal)) ;) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" identifier = (binary_expression "piVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) ;) })) (expression_statement "__argv = (char **)safemalloc(n,4);" (assignment_expression "__argv = (char **)safemalloc(n,4)" identifier = (cast_expression "(char **)safemalloc(n,4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "safemalloc(n,4)" identifier (argument_list "(n,4)" ( identifier , number_literal ))))) ;) (expression_statement "iVar2 = ngtkargs;" (assignment_expression "iVar2 = ngtkargs" identifier = identifier) ;) (expression_statement "*__argv = progname;" (assignment_expression "*__argv = progname" (pointer_expression "*__argv" * identifier) = identifier) ;) (expression_statement "__argv[n - 1] = (char *)0x0;" (assignment_expression "__argv[n - 1] = (char *)0x0" (subscript_expression "__argv[n - 1]" identifier [ (binary_expression "n - 1" identifier - number_literal) ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar2 < 1) {\n    sVar8 = 1;\n  }\n  else {\n    ppcVar1 = gtkargvstart + iVar2;\n    ppcVar4 = gtkargvstart;\n    ppcVar7 = __argv;\n    do {\n      ppcVar7 = ppcVar7 + 1;\n      pcVar3 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      *ppcVar7 = pcVar3;\n    } while (ppcVar1 != ppcVar4);\n    sVar8 = iVar2 + 1;\n  }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n    sVar8 = 1;\n  }" { (expression_statement "sVar8 = 1;" (assignment_expression "sVar8 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    ppcVar1 = gtkargvstart + iVar2;\n    ppcVar4 = gtkargvstart;\n    ppcVar7 = __argv;\n    do {\n      ppcVar7 = ppcVar7 + 1;\n      pcVar3 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      *ppcVar7 = pcVar3;\n    } while (ppcVar1 != ppcVar4);\n    sVar8 = iVar2 + 1;\n  }" else (compound_statement "{\n    ppcVar1 = gtkargvstart + iVar2;\n    ppcVar4 = gtkargvstart;\n    ppcVar7 = __argv;\n    do {\n      ppcVar7 = ppcVar7 + 1;\n      pcVar3 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      *ppcVar7 = pcVar3;\n    } while (ppcVar1 != ppcVar4);\n    sVar8 = iVar2 + 1;\n  }" { (expression_statement "ppcVar1 = gtkargvstart + iVar2;" (assignment_expression "ppcVar1 = gtkargvstart + iVar2" identifier = (binary_expression "gtkargvstart + iVar2" identifier + identifier)) ;) (expression_statement "ppcVar4 = gtkargvstart;" (assignment_expression "ppcVar4 = gtkargvstart" identifier = identifier) ;) (expression_statement "ppcVar7 = __argv;" (assignment_expression "ppcVar7 = __argv" identifier = identifier) ;) (do_statement "do {\n      ppcVar7 = ppcVar7 + 1;\n      pcVar3 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      *ppcVar7 = pcVar3;\n    } while (ppcVar1 != ppcVar4);" do (compound_statement "{\n      ppcVar7 = ppcVar7 + 1;\n      pcVar3 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      *ppcVar7 = pcVar3;\n    }" { (expression_statement "ppcVar7 = ppcVar7 + 1;" (assignment_expression "ppcVar7 = ppcVar7 + 1" identifier = (binary_expression "ppcVar7 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = *ppcVar4;" (assignment_expression "pcVar3 = *ppcVar4" identifier = (pointer_expression "*ppcVar4" * identifier)) ;) (expression_statement "ppcVar4 = ppcVar4 + 1;" (assignment_expression "ppcVar4 = ppcVar4 + 1" identifier = (binary_expression "ppcVar4 + 1" identifier + number_literal)) ;) (expression_statement "*ppcVar7 = pcVar3;" (assignment_expression "*ppcVar7 = pcVar3" (pointer_expression "*ppcVar7" * identifier) = identifier) ;) }) while (parenthesized_expression "(ppcVar1 != ppcVar4)" ( (binary_expression "ppcVar1 != ppcVar4" identifier != identifier) )) ;) (expression_statement "sVar8 = iVar2 + 1;" (assignment_expression "sVar8 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }))) (expression_statement "piVar5 = &stack0x00000008;" (assignment_expression "piVar5 = &stack0x00000008" identifier = (pointer_expression "&stack0x00000008" & identifier)) ;) (do_statement "do {\n    pcVar3 = (char *)*piVar5;\n    sVar9 = sVar8 + 1;\n    __argv[sVar8] = pcVar3;\n    piVar5 = piVar5 + 1;\n    sVar8 = sVar9;\n  } while (pcVar3 != (char *)0x0);" do (compound_statement "{\n    pcVar3 = (char *)*piVar5;\n    sVar9 = sVar8 + 1;\n    __argv[sVar8] = pcVar3;\n    piVar5 = piVar5 + 1;\n    sVar8 = sVar9;\n  }" { (expression_statement "pcVar3 = (char *)*piVar5;" (assignment_expression "pcVar3 = (char *)*piVar5" identifier = (cast_expression "(char *)*piVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) (expression_statement "sVar9 = sVar8 + 1;" (assignment_expression "sVar9 = sVar8 + 1" identifier = (binary_expression "sVar8 + 1" identifier + number_literal)) ;) (expression_statement "__argv[sVar8] = pcVar3;" (assignment_expression "__argv[sVar8] = pcVar3" (subscript_expression "__argv[sVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" identifier = (binary_expression "piVar5 + 1" identifier + number_literal)) ;) (expression_statement "sVar8 = sVar9;" (assignment_expression "sVar8 = sVar9" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (sVar9 != n) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }" if (parenthesized_expression "(sVar9 != n)" ( (binary_expression "sVar9 != n" identifier != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }" { comment (expression_statement "__assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");" (call_expression "__assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self")" identifier (argument_list "("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self")" ( (string_literal ""i == n"" " string_content ") , (string_literal ""unix/gtkmain.c"" " string_content ") , number_literal , (string_literal ""fork_and_exec_self"" " string_content ") ))) ;) })) (expression_statement "_Var6 = fork();" (assignment_expression "_Var6 = fork()" identifier = (call_expression "fork()" identifier (argument_list "()" ( )))) ;) (if_statement "if (_Var6 < 0) {\n    perror("fork");\n    safefree(__argv);\n  }\n  else {\n    if (_Var6 == 0) {\n      _Var6 = fork();\n      if (_Var6 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var6 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < fd_to_close) {\n        close(fd_to_close);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(progname,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }\n    safefree(__argv);\n    waitpid(_Var6,&status,0);\n  }" if (parenthesized_expression "(_Var6 < 0)" ( (binary_expression "_Var6 < 0" identifier < number_literal) )) (compound_statement "{\n    perror("fork");\n    safefree(__argv);\n  }" { (expression_statement "perror("fork");" (call_expression "perror("fork")" identifier (argument_list "("fork")" ( (string_literal ""fork"" " string_content ") ))) ;) (expression_statement "safefree(__argv);" (call_expression "safefree(__argv)" identifier (argument_list "(__argv)" ( identifier ))) ;) }) (else_clause "else {\n    if (_Var6 == 0) {\n      _Var6 = fork();\n      if (_Var6 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var6 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < fd_to_close) {\n        close(fd_to_close);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(progname,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }\n    safefree(__argv);\n    waitpid(_Var6,&status,0);\n  }" else (compound_statement "{\n    if (_Var6 == 0) {\n      _Var6 = fork();\n      if (_Var6 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var6 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < fd_to_close) {\n        close(fd_to_close);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(progname,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }\n    safefree(__argv);\n    waitpid(_Var6,&status,0);\n  }" { (if_statement "if (_Var6 == 0) {\n      _Var6 = fork();\n      if (_Var6 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var6 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < fd_to_close) {\n        close(fd_to_close);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(progname,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }" if (parenthesized_expression "(_Var6 == 0)" ( (binary_expression "_Var6 == 0" identifier == number_literal) )) (compound_statement "{\n      _Var6 = fork();\n      if (_Var6 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }\n      if (_Var6 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }\n      if (-1 < fd_to_close) {\n        close(fd_to_close);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(progname,__argv);\n      perror("exec");\n                    /* WARNING: Subroutine does not return */\n      _exit(0x7f);\n    }" { (expression_statement "_Var6 = fork();" (assignment_expression "_Var6 = fork()" identifier = (call_expression "fork()" identifier (argument_list "()" ( )))) ;) (if_statement "if (_Var6 < 0) {\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }" if (parenthesized_expression "(_Var6 < 0)" ( (binary_expression "_Var6 < 0" identifier < number_literal) )) (compound_statement "{\n        perror("fork");\n                    /* WARNING: Subroutine does not return */\n        _exit(1);\n      }" { (expression_statement "perror("fork");" (call_expression "perror("fork")" identifier (argument_list "("fork")" ( (string_literal ""fork"" " string_content ") ))) ;) comment (expression_statement "_exit(1);" (call_expression "_exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (if_statement "if (_Var6 != 0) {\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }" if (parenthesized_expression "(_Var6 != 0)" ( (binary_expression "_Var6 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        _exit(0);\n      }" { comment (expression_statement "_exit(0);" (call_expression "_exit(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })) (if_statement "if (-1 < fd_to_close) {\n        close(fd_to_close);\n      }" if (parenthesized_expression "(-1 < fd_to_close)" ( (binary_expression "-1 < fd_to_close" number_literal < identifier) )) (compound_statement "{\n        close(fd_to_close);\n      }" { (expression_statement "close(fd_to_close);" (call_expression "close(fd_to_close)" identifier (argument_list "(fd_to_close)" ( identifier ))) ;) })) (expression_statement "execv("/proc/self/exe",__argv);" (call_expression "execv("/proc/self/exe",__argv)" identifier (argument_list "("/proc/self/exe",__argv)" ( (string_literal ""/proc/self/exe"" " string_content ") , identifier ))) ;) (expression_statement "execvp(progname,__argv);" (call_expression "execvp(progname,__argv)" identifier (argument_list "(progname,__argv)" ( identifier , identifier ))) ;) (expression_statement "perror("exec");" (call_expression "perror("exec")" identifier (argument_list "("exec")" ( (string_literal ""exec"" " string_content ") ))) ;) comment (expression_statement "_exit(0x7f);" (call_expression "_exit(0x7f)" identifier (argument_list "(0x7f)" ( number_literal ))) ;) })) (expression_statement "safefree(__argv);" (call_expression "safefree(__argv)" identifier (argument_list "(__argv)" ( identifier ))) ;) (expression_statement "waitpid(_Var6,&status,0);" (call_expression "waitpid(_Var6,&status,0)" identifier (argument_list "(_Var6,&status,0)" ( identifier , (pointer_expression "&status" & identifier) , number_literal ))) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_000b0090(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  char **__argv;\n  undefined4 *puVar3;\n  int *piVar4;\n  __pid_t _Var5;\n  char **ppcVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb0099;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = DAT_0013b9f8 + 2;\n  if (param_2 != 0) {\n    piVar4 = (int *)&stack0x0000000c;\n    do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);\n  }\n  __argv = (char **)FUN_000329a0(iVar9,4);\n  iVar7 = DAT_0013b9f8;\n  *__argv = DAT_0013ba00;\n  __argv[iVar9 + -1] = (char *)0x0;\n  if (iVar7 < 1) {\n    iVar7 = 1;\n  }\n  else {\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }\n  piVar4 = &param_2;\n  do {\n    pcVar2 = (char *)*piVar4;\n    iVar8 = iVar7 + 1;\n    __argv[iVar7] = pcVar2;\n    piVar4 = piVar4 + 1;\n    iVar7 = iVar8;\n  } while (pcVar2 != (char *)0x0);\n  if (iVar8 != iVar9) {\n                    \n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }\n  _Var5 = fork();\n  if (_Var5 < 0) {\n    perror("fork");\n    FUN_00032b40(__argv);\n  }\n  else {\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}\n\n" (function_definition "void FUN_000b0090(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  char **__argv;\n  undefined4 *puVar3;\n  int *piVar4;\n  __pid_t _Var5;\n  char **ppcVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb0099;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = DAT_0013b9f8 + 2;\n  if (param_2 != 0) {\n    piVar4 = (int *)&stack0x0000000c;\n    do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);\n  }\n  __argv = (char **)FUN_000329a0(iVar9,4);\n  iVar7 = DAT_0013b9f8;\n  *__argv = DAT_0013ba00;\n  __argv[iVar9 + -1] = (char *)0x0;\n  if (iVar7 < 1) {\n    iVar7 = 1;\n  }\n  else {\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }\n  piVar4 = &param_2;\n  do {\n    pcVar2 = (char *)*piVar4;\n    iVar8 = iVar7 + 1;\n    __argv[iVar7] = pcVar2;\n    piVar4 = piVar4 + 1;\n    iVar7 = iVar8;\n  } while (pcVar2 != (char *)0x0);\n  if (iVar8 != iVar9) {\n                    \n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }\n  _Var5 = fork();\n  if (_Var5 < 0) {\n    perror("fork");\n    FUN_00032b40(__argv);\n  }\n  else {\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" primitive_type (function_declarator "FUN_000b0090(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  char **__argv;\n  undefined4 *puVar3;\n  int *piVar4;\n  __pid_t _Var5;\n  char **ppcVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb0099;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = DAT_0013b9f8 + 2;\n  if (param_2 != 0) {\n    piVar4 = (int *)&stack0x0000000c;\n    do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);\n  }\n  __argv = (char **)FUN_000329a0(iVar9,4);\n  iVar7 = DAT_0013b9f8;\n  *__argv = DAT_0013ba00;\n  __argv[iVar9 + -1] = (char *)0x0;\n  if (iVar7 < 1) {\n    iVar7 = 1;\n  }\n  else {\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }\n  piVar4 = &param_2;\n  do {\n    pcVar2 = (char *)*piVar4;\n    iVar8 = iVar7 + 1;\n    __argv[iVar7] = pcVar2;\n    piVar4 = piVar4 + 1;\n    iVar7 = iVar8;\n  } while (pcVar2 != (char *)0x0);\n  if (iVar8 != iVar9) {\n                    \n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }\n  _Var5 = fork();\n  if (_Var5 < 0) {\n    perror("fork");\n    FUN_00032b40(__argv);\n  }\n  else {\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char **__argv;" primitive_type (pointer_declarator "**__argv" * (pointer_declarator "*__argv" * identifier)) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "__pid_t _Var5;" type_identifier identifier ;) (declaration "char **ppcVar6;" primitive_type (pointer_declarator "**ppcVar6" * (pointer_declarator "*ppcVar6" * identifier)) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" 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 = 0xb0099;" (assignment_expression "uStack_14 = 0xb0099" 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 "iVar9 = DAT_0013b9f8 + 2;" (assignment_expression "iVar9 = DAT_0013b9f8 + 2" identifier = (binary_expression "DAT_0013b9f8 + 2" identifier + number_literal)) ;) (if_statement "if (param_2 != 0) {\n    piVar4 = (int *)&stack0x0000000c;\n    do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar4 = (int *)&stack0x0000000c;\n    do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);\n  }" { (expression_statement "piVar4 = (int *)&stack0x0000000c;" (assignment_expression "piVar4 = (int *)&stack0x0000000c" identifier = (cast_expression "(int *)&stack0x0000000c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x0000000c" & identifier))) ;) (do_statement "do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);" do (compound_statement "{\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    }" { (expression_statement "iVar7 = *piVar4;" (assignment_expression "iVar7 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) ;) })) (expression_statement "__argv = (char **)FUN_000329a0(iVar9,4);" (assignment_expression "__argv = (char **)FUN_000329a0(iVar9,4)" identifier = (cast_expression "(char **)FUN_000329a0(iVar9,4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "FUN_000329a0(iVar9,4)" identifier (argument_list "(iVar9,4)" ( identifier , number_literal ))))) ;) (expression_statement "iVar7 = DAT_0013b9f8;" (assignment_expression "iVar7 = DAT_0013b9f8" identifier = identifier) ;) (expression_statement "*__argv = DAT_0013ba00;" (assignment_expression "*__argv = DAT_0013ba00" (pointer_expression "*__argv" * identifier) = identifier) ;) (expression_statement "__argv[iVar9 + -1] = (char *)0x0;" (assignment_expression "__argv[iVar9 + -1] = (char *)0x0" (subscript_expression "__argv[iVar9 + -1]" identifier [ (binary_expression "iVar9 + -1" identifier + number_literal) ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar7 < 1) {\n    iVar7 = 1;\n  }\n  else {\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }" if (parenthesized_expression "(iVar7 < 1)" ( (binary_expression "iVar7 < 1" identifier < number_literal) )) (compound_statement "{\n    iVar7 = 1;\n  }" { (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }" else (compound_statement "{\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }" { (expression_statement "puVar1 = DAT_0013b9fc + iVar7;" (assignment_expression "puVar1 = DAT_0013b9fc + iVar7" identifier = (binary_expression "DAT_0013b9fc + iVar7" identifier + identifier)) ;) (expression_statement "puVar3 = DAT_0013b9fc;" (assignment_expression "puVar3 = DAT_0013b9fc" identifier = identifier) ;) (expression_statement "ppcVar6 = __argv;" (assignment_expression "ppcVar6 = __argv" identifier = identifier) ;) (do_statement "do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);" do (compound_statement "{\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    }" { (expression_statement "ppcVar6 = ppcVar6 + 1;" (assignment_expression "ppcVar6 = ppcVar6 + 1" identifier = (binary_expression "ppcVar6 + 1" identifier + number_literal)) ;) (expression_statement "pcVar2 = (char *)*puVar3;" (assignment_expression "pcVar2 = (char *)*puVar3" identifier = (cast_expression "(char *)*puVar3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "*ppcVar6 = pcVar2;" (assignment_expression "*ppcVar6 = pcVar2" (pointer_expression "*ppcVar6" * identifier) = identifier) ;) }) while (parenthesized_expression "(puVar1 != puVar3)" ( (binary_expression "puVar1 != puVar3" identifier != identifier) )) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }))) (expression_statement "piVar4 = &param_2;" (assignment_expression "piVar4 = &param_2" identifier = (pointer_expression "&param_2" & identifier)) ;) (do_statement "do {\n    pcVar2 = (char *)*piVar4;\n    iVar8 = iVar7 + 1;\n    __argv[iVar7] = pcVar2;\n    piVar4 = piVar4 + 1;\n    iVar7 = iVar8;\n  } while (pcVar2 != (char *)0x0);" do (compound_statement "{\n    pcVar2 = (char *)*piVar4;\n    iVar8 = iVar7 + 1;\n    __argv[iVar7] = pcVar2;\n    piVar4 = piVar4 + 1;\n    iVar7 = iVar8;\n  }" { (expression_statement "pcVar2 = (char *)*piVar4;" (assignment_expression "pcVar2 = (char *)*piVar4" identifier = (cast_expression "(char *)*piVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (expression_statement "iVar8 = iVar7 + 1;" (assignment_expression "iVar8 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "__argv[iVar7] = pcVar2;" (assignment_expression "__argv[iVar7] = pcVar2" (subscript_expression "__argv[iVar7]" identifier [ identifier ]) = identifier) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (iVar8 != iVar9) {\n                    \n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }" if (parenthesized_expression "(iVar8 != iVar9)" ( (binary_expression "iVar8 != iVar9" identifier != identifier) )) (compound_statement "{\n                    \n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }" { (expression_statement "__assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");" (call_expression "__assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self")" identifier (argument_list "("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self")" ( (string_literal ""i == n"" " string_content ") , (string_literal ""unix/gtkmain.c"" " string_content ") , number_literal , (string_literal ""fork_and_exec_self"" " string_content ") ))) ;) })) (expression_statement "_Var5 = fork();" (assignment_expression "_Var5 = fork()" identifier = (call_expression "fork()" identifier (argument_list "()" ( )))) ;) (if_statement "if (_Var5 < 0) {\n    perror("fork");\n    FUN_00032b40(__argv);\n  }\n  else {\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }" if (parenthesized_expression "(_Var5 < 0)" ( (binary_expression "_Var5 < 0" identifier < number_literal) )) (compound_statement "{\n    perror("fork");\n    FUN_00032b40(__argv);\n  }" { (expression_statement "perror("fork");" (call_expression "perror("fork")" identifier (argument_list "("fork")" ( (string_literal ""fork"" " string_content ") ))) ;) (expression_statement "FUN_00032b40(__argv);" (call_expression "FUN_00032b40(__argv)" identifier (argument_list "(__argv)" ( identifier ))) ;) }) (else_clause "else {\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }" else (compound_statement "{\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }" { (if_statement "if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }" if (parenthesized_expression "(_Var5 == 0)" ( (binary_expression "_Var5 == 0" identifier == number_literal) )) (compound_statement "{\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }" { (expression_statement "_Var5 = fork();" (assignment_expression "_Var5 = fork()" identifier = (call_expression "fork()" identifier (argument_list "()" ( )))) ;) (if_statement "if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }" if (parenthesized_expression "(_Var5 < 0)" ( (binary_expression "_Var5 < 0" identifier < number_literal) )) (compound_statement "{\n        perror("fork");\n                    \n        _exit(1);\n      }" { (expression_statement "perror("fork");" (call_expression "perror("fork")" identifier (argument_list "("fork")" ( (string_literal ""fork"" " string_content ") ))) ;) (expression_statement "_exit(1);" (call_expression "_exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (if_statement "if (_Var5 != 0) {\n                    \n        _exit(0);\n      }" if (parenthesized_expression "(_Var5 != 0)" ( (binary_expression "_Var5 != 0" identifier != number_literal) )) (compound_statement "{\n                    \n        _exit(0);\n      }" { (expression_statement "_exit(0);" (call_expression "_exit(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })) (if_statement "if (-1 < param_1) {\n        close(param_1);\n      }" if (parenthesized_expression "(-1 < param_1)" ( (binary_expression "-1 < param_1" number_literal < identifier) )) (compound_statement "{\n        close(param_1);\n      }" { (expression_statement "close(param_1);" (call_expression "close(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (expression_statement "execv("/proc/self/exe",__argv);" (call_expression "execv("/proc/self/exe",__argv)" identifier (argument_list "("/proc/self/exe",__argv)" ( (string_literal ""/proc/self/exe"" " string_content ") , identifier ))) ;) (expression_statement "execvp(DAT_0013ba00,__argv);" (call_expression "execvp(DAT_0013ba00,__argv)" identifier (argument_list "(DAT_0013ba00,__argv)" ( identifier , identifier ))) ;) (expression_statement "perror("exec");" (call_expression "perror("exec")" identifier (argument_list "("exec")" ( (string_literal ""exec"" " string_content ") ))) ;) (expression_statement "_exit(0x7f);" (call_expression "_exit(0x7f)" identifier (argument_list "(0x7f)" ( number_literal ))) ;) })) (expression_statement "FUN_00032b40(__argv);" (call_expression "FUN_00032b40(__argv)" identifier (argument_list "(__argv)" ( identifier ))) ;) (expression_statement "waitpid(_Var5,&local_24,0);" (call_expression "waitpid(_Var5,&local_24,0)" identifier (argument_list "(_Var5,&local_24,0)" ( identifier , (pointer_expression "&local_24" & identifier) , number_literal ))) ;) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (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 = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (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 = (call_expression IDENT (argument_list ( )))) ;) (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 ( IDENT ))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) }))) (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 { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_000b0090(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  char **__argv;\n  undefined4 *puVar3;\n  int *piVar4;\n  __pid_t _Var5;\n  char **ppcVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb0099;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = DAT_0013b9f8 + 2;\n  if (param_2 != 0) {\n    piVar4 = (int *)&stack0x0000000c;\n    do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);\n  }\n  __argv = (char **)FUN_000329a0(iVar9,4);\n  iVar7 = DAT_0013b9f8;\n  *__argv = DAT_0013ba00;\n  __argv[iVar9 + -1] = (char *)0x0;\n  if (iVar7 < 1) {\n    iVar7 = 1;\n  }\n  else {\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }\n  piVar4 = &param_2;\n  do {\n    pcVar2 = (char *)*piVar4;\n    iVar8 = iVar7 + 1;\n    __argv[iVar7] = pcVar2;\n    piVar4 = piVar4 + 1;\n    iVar7 = iVar8;\n  } while (pcVar2 != (char *)0x0);\n  if (iVar8 != iVar9) {\n                    \n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }\n  _Var5 = fork();\n  if (_Var5 < 0) {\n    perror("fork");\n    FUN_00032b40(__argv);\n  }\n  else {\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" (primitive_type "void") (function_declarator "FUN_000b0090(int param_1,int param_2)" (identifier "FUN_000b0090") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  char **__argv;\n  undefined4 *puVar3;\n  int *piVar4;\n  __pid_t _Var5;\n  char **ppcVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xb0099;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = DAT_0013b9f8 + 2;\n  if (param_2 != 0) {\n    piVar4 = (int *)&stack0x0000000c;\n    do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);\n  }\n  __argv = (char **)FUN_000329a0(iVar9,4);\n  iVar7 = DAT_0013b9f8;\n  *__argv = DAT_0013ba00;\n  __argv[iVar9 + -1] = (char *)0x0;\n  if (iVar7 < 1) {\n    iVar7 = 1;\n  }\n  else {\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }\n  piVar4 = &param_2;\n  do {\n    pcVar2 = (char *)*piVar4;\n    iVar8 = iVar7 + 1;\n    __argv[iVar7] = pcVar2;\n    piVar4 = piVar4 + 1;\n    iVar7 = iVar8;\n  } while (pcVar2 != (char *)0x0);\n  if (iVar8 != iVar9) {\n                    \n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }\n  _Var5 = fork();\n  if (_Var5 < 0) {\n    perror("fork");\n    FUN_00032b40(__argv);\n  }\n  else {\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char **__argv;" (primitive_type "char") (pointer_declarator "**__argv" (* "*") (pointer_declarator "*__argv" (* "*") (identifier "__argv"))) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "__pid_t _Var5;" (type_identifier "__pid_t") (identifier "_Var5") (; ";")) (declaration "char **ppcVar6;" (primitive_type "char") (pointer_declarator "**ppcVar6" (* "*") (pointer_declarator "*ppcVar6" (* "*") (identifier "ppcVar6"))) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (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_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 = 0xb0099;" (assignment_expression "uStack_14 = 0xb0099" (identifier "uStack_14") (= "=") (number_literal "0xb0099")) (; ";")) (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 "iVar9 = DAT_0013b9f8 + 2;" (assignment_expression "iVar9 = DAT_0013b9f8 + 2" (identifier "iVar9") (= "=") (binary_expression "DAT_0013b9f8 + 2" (identifier "DAT_0013b9f8") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (param_2 != 0) {\n    piVar4 = (int *)&stack0x0000000c;\n    do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar4 = (int *)&stack0x0000000c;\n    do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);\n  }" ({ "{") (expression_statement "piVar4 = (int *)&stack0x0000000c;" (assignment_expression "piVar4 = (int *)&stack0x0000000c" (identifier "piVar4") (= "=") (cast_expression "(int *)&stack0x0000000c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&stack0x0000000c" (& "&") (identifier "stack0x0000000c")))) (; ";")) (do_statement "do {\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    } while (iVar7 != 0);" (do "do") (compound_statement "{\n      iVar7 = *piVar4;\n      iVar9 = iVar9 + 1;\n      piVar4 = piVar4 + 1;\n    }" ({ "{") (expression_statement "iVar7 = *piVar4;" (assignment_expression "iVar7 = *piVar4" (identifier "iVar7") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "__argv = (char **)FUN_000329a0(iVar9,4);" (assignment_expression "__argv = (char **)FUN_000329a0(iVar9,4)" (identifier "__argv") (= "=") (cast_expression "(char **)FUN_000329a0(iVar9,4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (call_expression "FUN_000329a0(iVar9,4)" (identifier "FUN_000329a0") (argument_list "(iVar9,4)" (( "(") (identifier "iVar9") (, ",") (number_literal "4") () ")"))))) (; ";")) (expression_statement "iVar7 = DAT_0013b9f8;" (assignment_expression "iVar7 = DAT_0013b9f8" (identifier "iVar7") (= "=") (identifier "DAT_0013b9f8")) (; ";")) (expression_statement "*__argv = DAT_0013ba00;" (assignment_expression "*__argv = DAT_0013ba00" (pointer_expression "*__argv" (* "*") (identifier "__argv")) (= "=") (identifier "DAT_0013ba00")) (; ";")) (expression_statement "__argv[iVar9 + -1] = (char *)0x0;" (assignment_expression "__argv[iVar9 + -1] = (char *)0x0" (subscript_expression "__argv[iVar9 + -1]" (identifier "__argv") ([ "[") (binary_expression "iVar9 + -1" (identifier "iVar9") (+ "+") (number_literal "-1")) (] "]")) (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (iVar7 < 1) {\n    iVar7 = 1;\n  }\n  else {\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }" (if "if") (parenthesized_expression "(iVar7 < 1)" (( "(") (binary_expression "iVar7 < 1" (identifier "iVar7") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    iVar7 = 1;\n  }" ({ "{") (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" (identifier "iVar7") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }" (else "else") (compound_statement "{\n    puVar1 = DAT_0013b9fc + iVar7;\n    puVar3 = DAT_0013b9fc;\n    ppcVar6 = __argv;\n    do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);\n    iVar7 = iVar7 + 1;\n  }" ({ "{") (expression_statement "puVar1 = DAT_0013b9fc + iVar7;" (assignment_expression "puVar1 = DAT_0013b9fc + iVar7" (identifier "puVar1") (= "=") (binary_expression "DAT_0013b9fc + iVar7" (identifier "DAT_0013b9fc") (+ "+") (identifier "iVar7"))) (; ";")) (expression_statement "puVar3 = DAT_0013b9fc;" (assignment_expression "puVar3 = DAT_0013b9fc" (identifier "puVar3") (= "=") (identifier "DAT_0013b9fc")) (; ";")) (expression_statement "ppcVar6 = __argv;" (assignment_expression "ppcVar6 = __argv" (identifier "ppcVar6") (= "=") (identifier "__argv")) (; ";")) (do_statement "do {\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    } while (puVar1 != puVar3);" (do "do") (compound_statement "{\n      ppcVar6 = ppcVar6 + 1;\n      pcVar2 = (char *)*puVar3;\n      puVar3 = puVar3 + 1;\n      *ppcVar6 = pcVar2;\n    }" ({ "{") (expression_statement "ppcVar6 = ppcVar6 + 1;" (assignment_expression "ppcVar6 = ppcVar6 + 1" (identifier "ppcVar6") (= "=") (binary_expression "ppcVar6 + 1" (identifier "ppcVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar2 = (char *)*puVar3;" (assignment_expression "pcVar2 = (char *)*puVar3" (identifier "pcVar2") (= "=") (cast_expression "(char *)*puVar3" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*ppcVar6 = pcVar2;" (assignment_expression "*ppcVar6 = pcVar2" (pointer_expression "*ppcVar6" (* "*") (identifier "ppcVar6")) (= "=") (identifier "pcVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar1 != puVar3)" (( "(") (binary_expression "puVar1 != puVar3" (identifier "puVar1") (!= "!=") (identifier "puVar3")) () ")")) (; ";")) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "piVar4 = &param_2;" (assignment_expression "piVar4 = &param_2" (identifier "piVar4") (= "=") (pointer_expression "&param_2" (& "&") (identifier "param_2"))) (; ";")) (do_statement "do {\n    pcVar2 = (char *)*piVar4;\n    iVar8 = iVar7 + 1;\n    __argv[iVar7] = pcVar2;\n    piVar4 = piVar4 + 1;\n    iVar7 = iVar8;\n  } while (pcVar2 != (char *)0x0);" (do "do") (compound_statement "{\n    pcVar2 = (char *)*piVar4;\n    iVar8 = iVar7 + 1;\n    __argv[iVar7] = pcVar2;\n    piVar4 = piVar4 + 1;\n    iVar7 = iVar8;\n  }" ({ "{") (expression_statement "pcVar2 = (char *)*piVar4;" (assignment_expression "pcVar2 = (char *)*piVar4" (identifier "pcVar2") (= "=") (cast_expression "(char *)*piVar4" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")))) (; ";")) (expression_statement "iVar8 = iVar7 + 1;" (assignment_expression "iVar8 = iVar7 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "__argv[iVar7] = pcVar2;" (assignment_expression "__argv[iVar7] = pcVar2" (subscript_expression "__argv[iVar7]" (identifier "__argv") ([ "[") (identifier "iVar7") (] "]")) (= "=") (identifier "pcVar2")) (; ";")) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" (identifier "iVar7") (= "=") (identifier "iVar8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar2 != (char *)0x0)" (( "(") (binary_expression "pcVar2 != (char *)0x0" (identifier "pcVar2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (if_statement "if (iVar8 != iVar9) {\n                    \n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }" (if "if") (parenthesized_expression "(iVar8 != iVar9)" (( "(") (binary_expression "iVar8 != iVar9" (identifier "iVar8") (!= "!=") (identifier "iVar9")) () ")")) (compound_statement "{\n                    \n    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");\n  }" ({ "{") (expression_statement "__assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");" (call_expression "__assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self")" (identifier "__assert_fail") (argument_list "("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self")" (( "(") (string_literal ""i == n"" (" """) (string_content "i == n") (" """)) (, ",") (string_literal ""unix/gtkmain.c"" (" """) (string_content "unix/gtkmain.c") (" """)) (, ",") (number_literal "0x65") (, ",") (string_literal ""fork_and_exec_self"" (" """) (string_content "fork_and_exec_self") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "_Var5 = fork();" (assignment_expression "_Var5 = fork()" (identifier "_Var5") (= "=") (call_expression "fork()" (identifier "fork") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (_Var5 < 0) {\n    perror("fork");\n    FUN_00032b40(__argv);\n  }\n  else {\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }" (if "if") (parenthesized_expression "(_Var5 < 0)" (( "(") (binary_expression "_Var5 < 0" (identifier "_Var5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    perror("fork");\n    FUN_00032b40(__argv);\n  }" ({ "{") (expression_statement "perror("fork");" (call_expression "perror("fork")" (identifier "perror") (argument_list "("fork")" (( "(") (string_literal ""fork"" (" """) (string_content "fork") (" """)) () ")"))) (; ";")) (expression_statement "FUN_00032b40(__argv);" (call_expression "FUN_00032b40(__argv)" (identifier "FUN_00032b40") (argument_list "(__argv)" (( "(") (identifier "__argv") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }" (else "else") (compound_statement "{\n    if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }\n    FUN_00032b40(__argv);\n    waitpid(_Var5,&local_24,0);\n  }" ({ "{") (if_statement "if (_Var5 == 0) {\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }" (if "if") (parenthesized_expression "(_Var5 == 0)" (( "(") (binary_expression "_Var5 == 0" (identifier "_Var5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      _Var5 = fork();\n      if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }\n      if (_Var5 != 0) {\n                    \n        _exit(0);\n      }\n      if (-1 < param_1) {\n        close(param_1);\n      }\n      execv("/proc/self/exe",__argv);\n      execvp(DAT_0013ba00,__argv);\n      perror("exec");\n                    \n      _exit(0x7f);\n    }" ({ "{") (expression_statement "_Var5 = fork();" (assignment_expression "_Var5 = fork()" (identifier "_Var5") (= "=") (call_expression "fork()" (identifier "fork") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (_Var5 < 0) {\n        perror("fork");\n                    \n        _exit(1);\n      }" (if "if") (parenthesized_expression "(_Var5 < 0)" (( "(") (binary_expression "_Var5 < 0" (identifier "_Var5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        perror("fork");\n                    \n        _exit(1);\n      }" ({ "{") (expression_statement "perror("fork");" (call_expression "perror("fork")" (identifier "perror") (argument_list "("fork")" (( "(") (string_literal ""fork"" (" """) (string_content "fork") (" """)) () ")"))) (; ";")) (expression_statement "_exit(1);" (call_expression "_exit(1)" (identifier "_exit") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (} "}"))) (if_statement "if (_Var5 != 0) {\n                    \n        _exit(0);\n      }" (if "if") (parenthesized_expression "(_Var5 != 0)" (( "(") (binary_expression "_Var5 != 0" (identifier "_Var5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n        _exit(0);\n      }" ({ "{") (expression_statement "_exit(0);" (call_expression "_exit(0)" (identifier "_exit") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}"))) (if_statement "if (-1 < param_1) {\n        close(param_1);\n      }" (if "if") (parenthesized_expression "(-1 < param_1)" (( "(") (binary_expression "-1 < param_1" (number_literal "-1") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n        close(param_1);\n      }" ({ "{") (expression_statement "close(param_1);" (call_expression "close(param_1)" (identifier "close") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "execv("/proc/self/exe",__argv);" (call_expression "execv("/proc/self/exe",__argv)" (identifier "execv") (argument_list "("/proc/self/exe",__argv)" (( "(") (string_literal ""/proc/self/exe"" (" """) (string_content "/proc/self/exe") (" """)) (, ",") (identifier "__argv") () ")"))) (; ";")) (expression_statement "execvp(DAT_0013ba00,__argv);" (call_expression "execvp(DAT_0013ba00,__argv)" (identifier "execvp") (argument_list "(DAT_0013ba00,__argv)" (( "(") (identifier "DAT_0013ba00") (, ",") (identifier "__argv") () ")"))) (; ";")) (expression_statement "perror("exec");" (call_expression "perror("exec")" (identifier "perror") (argument_list "("exec")" (( "(") (string_literal ""exec"" (" """) (string_content "exec") (" """)) () ")"))) (; ";")) (expression_statement "_exit(0x7f);" (call_expression "_exit(0x7f)" (identifier "_exit") (argument_list "(0x7f)" (( "(") (number_literal "0x7f") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00032b40(__argv);" (call_expression "FUN_00032b40(__argv)" (identifier "FUN_00032b40") (argument_list "(__argv)" (( "(") (identifier "__argv") () ")"))) (; ";")) (expression_statement "waitpid(_Var5,&local_24,0);" (call_expression "waitpid(_Var5,&local_24,0)" (identifier "waitpid") (argument_list "(_Var5,&local_24,0)" (( "(") (identifier "_Var5") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" (identifier "FUN_000c60b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(int var_21,...)

{
  char **var_11;
  int var_6;
  char *var_13;
  char **__argv;
  char **var_10;
  int *var_5;
  type_1 var_17;
  char **var_9;
  size_t var_12;
  size_t var_14;
  size_t var_4;
  int var_1;
  int var_3;
  int status;
  int var_26;
  type_2 uStack_14;
  
  uStack_14 = 0xb0099;
  var_26 = *(int *)(var_1 + 0x14);
  var_4 = var_2 + 2;
  if (var_3 != 0) {
    var_5 = (int *)&stack0x0000000c;
    do {
      var_6 = *var_5;
      var_4 = var_4 + 1;
      var_5 = var_5 + 1;
    } while (var_6 != 0);
  }
  __argv = (char **)var_7(var_4,4);
  var_6 = var_2;
  *__argv = progname;
  __argv[var_4 - 1] = (char *)0x0;
  if (var_6 < 1) {
    var_12 = 1;
  }
  else {
    var_11 = var_8 + var_6;
    var_10 = var_8;
    var_9 = __argv;
    do {
      var_9 = var_9 + 1;
      var_13 = *var_10;
      var_10 = var_10 + 1;
      *var_9 = var_13;
    } while (var_11 != var_10);
    var_12 = var_6 + 1;
  }
  var_5 = &stack0x00000008;
  do {
    var_13 = (char *)*var_5;
    var_14 = var_12 + 1;
    __argv[var_12] = var_13;
    var_5 = var_5 + 1;
    var_12 = var_14;
  } while (var_13 != (char *)0x0);
  if (var_14 != var_4) {
                    /* WARNING: Subroutine does not return */
    var_15("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");
  }
  var_17 = var_16();
  if (var_17 < 0) {
    var_18("fork");
    var_19(__argv);
  }
  else {
    if (var_17 == 0) {
      var_17 = var_16();
      if (var_17 < 0) {
        var_18("fork");
                    /* WARNING: Subroutine does not return */
        var_20(1);
      }
      if (var_17 != 0) {
                    /* WARNING: Subroutine does not return */
        var_20(0);
      }
      if (-1 < var_21) {
        var_22(var_21);
      }
      var_23("/proc/self/exe",__argv);
      var_24(progname,__argv);
      var_18("exec");
                    /* WARNING: Subroutine does not return */
      var_20(0x7f);
    }
    var_19(__argv);
    var_25(var_17,&status,0);
  }
  if (var_26 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_27();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator 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: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (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: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) condition: (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: (pointer_expression argument: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (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: (call_expression function: (identifier) arguments: (argument_list)))) (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 (identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal))))))) (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 (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

void MASKED(int param_1,int param_2)

{
  undefined4 *puVar1;
  char *pcVar2;
  char **__argv;
  undefined4 *puVar3;
  int *piVar4;
  __pid_t _Var5;
  char **ppcVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int in_GS_OFFSET;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xb0099;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar9 = DAT_0013b9f8 + 2;
  if (param_2 != 0) {
    piVar4 = (int *)&stack0x0000000c;
    do {
      iVar7 = *piVar4;
      iVar9 = iVar9 + 1;
      piVar4 = piVar4 + 1;
    } while (iVar7 != 0);
  }
  __argv = (char **)FUN_000329a0(iVar9,4);
  iVar7 = DAT_0013b9f8;
  *__argv = DAT_0013ba00;
  __argv[iVar9 + -1] = (char *)0x0;
  if (iVar7 < 1) {
    iVar7 = 1;
  }
  else {
    puVar1 = DAT_0013b9fc + iVar7;
    puVar3 = DAT_0013b9fc;
    ppcVar6 = __argv;
    do {
      ppcVar6 = ppcVar6 + 1;
      pcVar2 = (char *)*puVar3;
      puVar3 = puVar3 + 1;
      *ppcVar6 = pcVar2;
    } while (puVar1 != puVar3);
    iVar7 = iVar7 + 1;
  }
  piVar4 = &param_2;
  do {
    pcVar2 = (char *)*piVar4;
    iVar8 = iVar7 + 1;
    __argv[iVar7] = pcVar2;
    piVar4 = piVar4 + 1;
    iVar7 = iVar8;
  } while (pcVar2 != (char *)0x0);
  if (iVar8 != iVar9) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("i == n","unix/gtkmain.c",0x65,"fork_and_exec_self");
  }
  _Var5 = fork();
  if (_Var5 < 0) {
    perror("fork");
    FUN_00032b40(__argv);
  }
  else {
    if (_Var5 == 0) {
      _Var5 = fork();
      if (_Var5 < 0) {
        perror("fork");
                    /* WARNING: Subroutine does not return */
        _exit(1);
      }
      if (_Var5 != 0) {
                    /* WARNING: Subroutine does not return */
        _exit(0);
      }
      if (-1 < param_1) {
        close(param_1);
      }
      execv("/proc/self/exe",__argv);
      execvp(DAT_0013ba00,__argv);
      perror("exec");
                    /* WARNING: Subroutine does not return */
      _exit(0x7f);
    }
    FUN_00032b40(__argv);
    waitpid(_Var5,&local_24,0);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000c60b0();
}

