
void set_program_name(char *argv0)

{
  byte bVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  byte *pbVar5;
  int *piVar6;
  int iVar7;
  undefined *puVar8;
  code *pcVar9;
  
  if (argv0 != (char *)0x0) {
    iVar2 = (*(code *)PTR_strrchr_0002d288)(argv0,0x2f);
    if (((iVar2 != 0) && (iVar7 = iVar2 + 1, 6 < iVar7 - (int)argv0)) &&
       (iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar2 + -6,PTR_DAT_0002d118 + -0x4850,7), iVar3 == 0
       )) {
      iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar7,PTR_DAT_0002d118 + -0x4848,3);
      if (iVar3 != 0) {
        *(int *)PTR_program_name_0002d138 = iVar7;
        *(int *)PTR_program_invocation_name_0002d294 = iVar7;
        return;
      }
      argv0 = (char *)(iVar2 + 4);
      *(char **)PTR_program_invocation_short_name_0002d26c = argv0;
    }
    *(char **)PTR_program_name_0002d138 = argv0;
    *(char **)PTR_program_invocation_name_0002d294 = argv0;
    return;
  }
  iVar2 = 1;
  piVar6 = (int *)(PTR_DAT_0002d118 + -0x4888);
  (*(code *)PTR_fwrite_0002d318)(piVar6,1,0x37,*(undefined4 *)PTR_stderr_0002d354);
  puVar8 = PTR_abort_0002d254;
  (*(code *)PTR_abort_0002d254)();
  *piVar6 = 0;
  piVar6[1] = 0;
  piVar6[2] = 0;
  piVar6[3] = 0;
  piVar6[4] = 0;
  piVar6[5] = 0;
  piVar6[6] = 0;
  piVar6[7] = 0;
  piVar6[8] = 0;
  piVar6[9] = 0;
  piVar6[10] = 0;
  piVar6[0xb] = 0;
  if (iVar2 != 10) {
    *piVar6 = iVar2;
    return;
  }
  pcVar9 = *(code **)(puVar8 + 0x183c4);
  (*pcVar9)();
  piVar4 = (int *)(**(code **)(pcVar9 + 0x18438))(0,piVar6,5);
  if (piVar6 != piVar4) {
    return;
  }
  pbVar5 = (byte *)locale_charset();
  if ((*pbVar5 & 0xdf) == 0x55) {
    if (((((pbVar5[1] & 0xdf) != 0x54) || ((pbVar5[2] & 0xdf) != 0x46)) || (pbVar5[3] != 0x2d)) ||
       (pbVar5[4] != 0x38)) goto LAB_00015070;
    bVar1 = pbVar5[5];
  }
  else {
    if (((((*pbVar5 & 0xdf) != 0x47) || ((pbVar5[1] & 0xdf) != 0x42)) ||
        ((pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)))))) ||
       ((pbVar5[5] != 0x33 || (pbVar5[6] != 0x30)))) goto LAB_00015070;
    bVar1 = pbVar5[7];
  }
  if (bVar1 == 0) {
    return;
  }
LAB_00015070:
  if (iVar2 == 9) {
    return;
  }
  return;
}



int * set_program_name(int param_1)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  undefined *puVar5;
  
  if (param_1 == 0) {
    iVar1 = 1;
    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);
    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);
    puVar5 = PTR_abort_0002d254;
    (*(code *)PTR_abort_0002d254)();
    *piVar3 = 0;
    piVar3[1] = 0;
    piVar3[2] = 0;
    piVar3[3] = 0;
    piVar3[4] = 0;
    piVar3[5] = 0;
    piVar3[6] = 0;
    piVar3[7] = 0;
    piVar3[8] = 0;
    piVar3[9] = 0;
    piVar3[10] = 0;
    piVar3[0xb] = 0;
    if (iVar1 != 10) {
      *piVar3 = iVar1;
      return piVar3;
    }
    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();
    return piVar3;
  }
  iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f);
  if ((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)) {
    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);
    if (iVar2 == 0) {
      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);
      if (iVar2 != 0) {
        *(int *)PTR_program_name_0002d138 = iVar4;
        piVar3 = (int *)PTR_program_invocation_name_0002d294;
        *(int *)PTR_program_invocation_name_0002d294 = iVar4;
        return piVar3;
      }
      param_1 = iVar1 + 4;
      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;
    }
  }
  *(int *)PTR_program_name_0002d138 = param_1;
  piVar3 = (int *)PTR_program_invocation_name_0002d294;
  *(int *)PTR_program_invocation_name_0002d294 = param_1;
  return piVar3;
}


lui gp,0x2
addiu gp,gp,0x380
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
beq a0,zero,0x00014e54
_sw s0,0x18(sp)
lw t9,-0x7e58(gp)
li a1,0x2f
jalr t9
_or s0,a0,zero
lw gp,0x10(sp)
beq v0,zero,0x00014e00
_or s1,v0,zero
addiu s2,v0,0x1
subu v0,s2,s0
slti v0,v0,0x7
bne v0,zero,0x00014e00
_li a2,0x7
lw a1,-0x7fc8(gp)
lw t9,-0x7e88(gp)
addiu a0,s1,-0x6
jalr t9
_addiu a1,a1,-0x4850
bne v0,zero,0x00014e00
_lw gp,0x10(sp)
lw a1,-0x7fc8(gp)
li a2,0x3
lw t9,-0x7e88(gp)
or a0,s2,zero
jalr t9
_addiu a1,a1,-0x4848
bne v0,zero,0x00014e28
_lw gp,0x10(sp)
lw v0,-0x7e74(gp)
addiu s0,s1,0x4
sw s0,0x0(v0)
lw v0,-0x7fa8(gp)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
sw s0,0x0(v0)
lw v0,-0x7e4c(gp)
sw s0,0x0(v0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw v0,-0x7fa8(gp)
or s0,s2,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
sw s0,0x0(v0)
lw v0,-0x7e4c(gp)
sw s0,0x0(v0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw v0,-0x7d8c(gp)
li a2,0x37
lw a0,-0x7fc8(gp)
li a1,0x1
lw t9,-0x7dc8(gp)
lw a3,0x0(v0)
jalr t9
_addiu a0,a0,-0x4888
lw gp,0x10(sp)
lw t9,-0x7e8c(gp)
jalr t9
_nop
nop
nop
nop
(translation_unit "int * set_program_name(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  \n  if (param_1 == 0) {\n    iVar1 = 1;\n    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);\n    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n    puVar5 = PTR_abort_0002d254;\n    (*(code *)PTR_abort_0002d254)();\n    *piVar3 = 0;\n    piVar3[1] = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    piVar3[5] = 0;\n    piVar3[6] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    piVar3[9] = 0;\n    piVar3[10] = 0;\n    piVar3[0xb] = 0;\n    if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }\n    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();\n    return piVar3;\n  }\n  iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f);\n  if ((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)) {\n    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }\n  }\n  *(int *)PTR_program_name_0002d138 = param_1;\n  piVar3 = (int *)PTR_program_invocation_name_0002d294;\n  *(int *)PTR_program_invocation_name_0002d294 = param_1;\n  return piVar3;\n}\n\n" (function_definition "int * set_program_name(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  \n  if (param_1 == 0) {\n    iVar1 = 1;\n    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);\n    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n    puVar5 = PTR_abort_0002d254;\n    (*(code *)PTR_abort_0002d254)();\n    *piVar3 = 0;\n    piVar3[1] = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    piVar3[5] = 0;\n    piVar3[6] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    piVar3[9] = 0;\n    piVar3[10] = 0;\n    piVar3[0xb] = 0;\n    if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }\n    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();\n    return piVar3;\n  }\n  iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f);\n  if ((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)) {\n    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }\n  }\n  *(int *)PTR_program_name_0002d138 = param_1;\n  piVar3 = (int *)PTR_program_invocation_name_0002d294;\n  *(int *)PTR_program_invocation_name_0002d294 = param_1;\n  return piVar3;\n}" primitive_type (pointer_declarator "* set_program_name(int param_1)" * (function_declarator "set_program_name(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  \n  if (param_1 == 0) {\n    iVar1 = 1;\n    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);\n    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n    puVar5 = PTR_abort_0002d254;\n    (*(code *)PTR_abort_0002d254)();\n    *piVar3 = 0;\n    piVar3[1] = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    piVar3[5] = 0;\n    piVar3[6] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    piVar3[9] = 0;\n    piVar3[10] = 0;\n    piVar3[0xb] = 0;\n    if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }\n    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();\n    return piVar3;\n  }\n  iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f);\n  if ((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)) {\n    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }\n  }\n  *(int *)PTR_program_name_0002d138 = param_1;\n  piVar3 = (int *)PTR_program_invocation_name_0002d294;\n  *(int *)PTR_program_invocation_name_0002d294 = param_1;\n  return piVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (param_1 == 0) {\n    iVar1 = 1;\n    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);\n    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n    puVar5 = PTR_abort_0002d254;\n    (*(code *)PTR_abort_0002d254)();\n    *piVar3 = 0;\n    piVar3[1] = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    piVar3[5] = 0;\n    piVar3[6] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    piVar3[9] = 0;\n    piVar3[10] = 0;\n    piVar3[0xb] = 0;\n    if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }\n    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();\n    return piVar3;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = 1;\n    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);\n    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n    puVar5 = PTR_abort_0002d254;\n    (*(code *)PTR_abort_0002d254)();\n    *piVar3 = 0;\n    piVar3[1] = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    piVar3[5] = 0;\n    piVar3[6] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    piVar3[9] = 0;\n    piVar3[10] = 0;\n    piVar3[0xb] = 0;\n    if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }\n    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();\n    return piVar3;\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);" (assignment_expression "piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888)" identifier = (cast_expression "(int *)(PTR_DAT_0002d118 + -0x4888)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0002d118 + -0x4888)" ( (binary_expression "PTR_DAT_0002d118 + -0x4888" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);" (call_expression "(*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354)" (parenthesized_expression "(*(code *)PTR_fwrite_0002d318)" ( (pointer_expression "*(code *)PTR_fwrite_0002d318" * (cast_expression "(code *)PTR_fwrite_0002d318" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354)" ( identifier , number_literal , number_literal , (pointer_expression "*(undefined4 *)PTR_stderr_0002d354" * (cast_expression "(undefined4 *)PTR_stderr_0002d354" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "puVar5 = PTR_abort_0002d254;" (assignment_expression "puVar5 = PTR_abort_0002d254" identifier = identifier) ;) (expression_statement "(*(code *)PTR_abort_0002d254)();" (call_expression "(*(code *)PTR_abort_0002d254)()" (parenthesized_expression "(*(code *)PTR_abort_0002d254)" ( (pointer_expression "*(code *)PTR_abort_0002d254" * (cast_expression "(code *)PTR_abort_0002d254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*piVar3 = 0;" (assignment_expression "*piVar3 = 0" (pointer_expression "*piVar3" * identifier) = number_literal) ;) (expression_statement "piVar3[1] = 0;" (assignment_expression "piVar3[1] = 0" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[2] = 0;" (assignment_expression "piVar3[2] = 0" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[4] = 0;" (assignment_expression "piVar3[4] = 0" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[5] = 0;" (assignment_expression "piVar3[5] = 0" (subscript_expression "piVar3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[6] = 0;" (assignment_expression "piVar3[6] = 0" (subscript_expression "piVar3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[7] = 0;" (assignment_expression "piVar3[7] = 0" (subscript_expression "piVar3[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[8] = 0;" (assignment_expression "piVar3[8] = 0" (subscript_expression "piVar3[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[9] = 0;" (assignment_expression "piVar3[9] = 0" (subscript_expression "piVar3[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[10] = 0;" (assignment_expression "piVar3[10] = 0" (subscript_expression "piVar3[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[0xb] = 0;" (assignment_expression "piVar3[0xb] = 0" (subscript_expression "piVar3[0xb]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }" if (parenthesized_expression "(iVar1 != 10)" ( (binary_expression "iVar1 != 10" identifier != number_literal) )) (compound_statement "{\n      *piVar3 = iVar1;\n      return piVar3;\n    }" { (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (return_statement "return piVar3;" return identifier ;) })) (expression_statement "piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();" (assignment_expression "piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))()" identifier = (cast_expression "(int *)(**(code **)(puVar5 + 0x183c4))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar5 + 0x183c4))()" (parenthesized_expression "(**(code **)(puVar5 + 0x183c4))" ( (pointer_expression "**(code **)(puVar5 + 0x183c4)" * (pointer_expression "*(code **)(puVar5 + 0x183c4)" * (cast_expression "(code **)(puVar5 + 0x183c4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x183c4)" ( (binary_expression "puVar5 + 0x183c4" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return piVar3;" return identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f);" (assignment_expression "iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f)" identifier = (call_expression "(*(code *)PTR_strrchr_0002d288)(param_1,0x2f)" (parenthesized_expression "(*(code *)PTR_strrchr_0002d288)" ( (pointer_expression "*(code *)PTR_strrchr_0002d288" * (cast_expression "(code *)PTR_strrchr_0002d288" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)) {\n    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1))" ( (binary_expression "(iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar4 = iVar1 + 1, 6 < iVar4 - param_1)" ( (comma_expression "iVar4 = iVar1 + 1, 6 < iVar4 - param_1" (assignment_expression "iVar4 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) , (binary_expression "6 < iVar4 - param_1" number_literal < (binary_expression "iVar4 - param_1" identifier - identifier))) ))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);" (assignment_expression "iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7)" identifier = (call_expression "(*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7)" (parenthesized_expression "(*(code *)PTR_strncmp_0002d258)" ( (pointer_expression "*(code *)PTR_strncmp_0002d258" * (cast_expression "(code *)PTR_strncmp_0002d258" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7)" ( (binary_expression "iVar1 + -6" identifier + number_literal) , (binary_expression "PTR_DAT_0002d118 + -0x4850" identifier + number_literal) , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);" (assignment_expression "iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3)" identifier = (call_expression "(*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3)" (parenthesized_expression "(*(code *)PTR_strncmp_0002d258)" ( (pointer_expression "*(code *)PTR_strncmp_0002d258" * (cast_expression "(code *)PTR_strncmp_0002d258" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,PTR_DAT_0002d118 + -0x4848,3)" ( identifier , (binary_expression "PTR_DAT_0002d118 + -0x4848" identifier + number_literal) , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }" { (expression_statement "*(int *)PTR_program_name_0002d138 = iVar4;" (assignment_expression "*(int *)PTR_program_name_0002d138 = iVar4" (pointer_expression "*(int *)PTR_program_name_0002d138" * (cast_expression "(int *)PTR_program_name_0002d138" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "piVar3 = (int *)PTR_program_invocation_name_0002d294;" (assignment_expression "piVar3 = (int *)PTR_program_invocation_name_0002d294" identifier = (cast_expression "(int *)PTR_program_invocation_name_0002d294" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*(int *)PTR_program_invocation_name_0002d294 = iVar4;" (assignment_expression "*(int *)PTR_program_invocation_name_0002d294 = iVar4" (pointer_expression "*(int *)PTR_program_invocation_name_0002d294" * (cast_expression "(int *)PTR_program_invocation_name_0002d294" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return piVar3;" return identifier ;) })) (expression_statement "param_1 = iVar1 + 4;" (assignment_expression "param_1 = iVar1 + 4" identifier = (binary_expression "iVar1 + 4" identifier + number_literal)) ;) (expression_statement "*(int *)PTR_program_invocation_short_name_0002d26c = param_1;" (assignment_expression "*(int *)PTR_program_invocation_short_name_0002d26c = param_1" (pointer_expression "*(int *)PTR_program_invocation_short_name_0002d26c" * (cast_expression "(int *)PTR_program_invocation_short_name_0002d26c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) })) })) (expression_statement "*(int *)PTR_program_name_0002d138 = param_1;" (assignment_expression "*(int *)PTR_program_name_0002d138 = param_1" (pointer_expression "*(int *)PTR_program_name_0002d138" * (cast_expression "(int *)PTR_program_name_0002d138" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "piVar3 = (int *)PTR_program_invocation_name_0002d294;" (assignment_expression "piVar3 = (int *)PTR_program_invocation_name_0002d294" identifier = (cast_expression "(int *)PTR_program_invocation_name_0002d294" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*(int *)PTR_program_invocation_name_0002d294 = param_1;" (assignment_expression "*(int *)PTR_program_invocation_name_0002d294 = param_1" (pointer_expression "*(int *)PTR_program_invocation_name_0002d294" * (cast_expression "(int *)PTR_program_invocation_name_0002d294" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return piVar3;" return identifier ;) })))
(translation_unit "void set_program_name(char *argv0)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  byte *pbVar5;\n  int *piVar6;\n  int iVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  \n  if (argv0 != (char *)0x0) {\n    iVar2 = (*(code *)PTR_strrchr_0002d288)(argv0,0x2f);\n    if (((iVar2 != 0) && (iVar7 = iVar2 + 1, 6 < iVar7 - (int)argv0)) &&\n       (iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar2 + -6,PTR_DAT_0002d118 + -0x4850,7), iVar3 == 0\n       )) {\n      iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar7,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar3 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar7;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar7;\n        return;\n      }\n      argv0 = (char *)(iVar2 + 4);\n      *(char **)PTR_program_invocation_short_name_0002d26c = argv0;\n    }\n    *(char **)PTR_program_name_0002d138 = argv0;\n    *(char **)PTR_program_invocation_name_0002d294 = argv0;\n    return;\n  }\n  iVar2 = 1;\n  piVar6 = (int *)(PTR_DAT_0002d118 + -0x4888);\n  (*(code *)PTR_fwrite_0002d318)(piVar6,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n  puVar8 = PTR_abort_0002d254;\n  (*(code *)PTR_abort_0002d254)();\n  *piVar6 = 0;\n  piVar6[1] = 0;\n  piVar6[2] = 0;\n  piVar6[3] = 0;\n  piVar6[4] = 0;\n  piVar6[5] = 0;\n  piVar6[6] = 0;\n  piVar6[7] = 0;\n  piVar6[8] = 0;\n  piVar6[9] = 0;\n  piVar6[10] = 0;\n  piVar6[0xb] = 0;\n  if (iVar2 != 10) {\n    *piVar6 = iVar2;\n    return;\n  }\n  pcVar9 = *(code **)(puVar8 + 0x183c4);\n  (*pcVar9)();\n  piVar4 = (int *)(**(code **)(pcVar9 + 0x18438))(0,piVar6,5);\n  if (piVar6 != piVar4) {\n    return;\n  }\n  pbVar5 = (byte *)locale_charset();\n  if ((*pbVar5 & 0xdf) == 0x55) {\n    if (((((pbVar5[1] & 0xdf) != 0x54) || ((pbVar5[2] & 0xdf) != 0x46)) || (pbVar5[3] != 0x2d)) ||\n       (pbVar5[4] != 0x38)) goto LAB_00015070;\n    bVar1 = pbVar5[5];\n  }\n  else {\n    if (((((*pbVar5 & 0xdf) != 0x47) || ((pbVar5[1] & 0xdf) != 0x42)) ||\n        ((pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)))))) ||\n       ((pbVar5[5] != 0x33 || (pbVar5[6] != 0x30)))) goto LAB_00015070;\n    bVar1 = pbVar5[7];\n  }\n  if (bVar1 == 0) {\n    return;\n  }\nLAB_00015070:\n  if (iVar2 == 9) {\n    return;\n  }\n  return;\n}\n\n" (function_definition "void set_program_name(char *argv0)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  byte *pbVar5;\n  int *piVar6;\n  int iVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  \n  if (argv0 != (char *)0x0) {\n    iVar2 = (*(code *)PTR_strrchr_0002d288)(argv0,0x2f);\n    if (((iVar2 != 0) && (iVar7 = iVar2 + 1, 6 < iVar7 - (int)argv0)) &&\n       (iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar2 + -6,PTR_DAT_0002d118 + -0x4850,7), iVar3 == 0\n       )) {\n      iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar7,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar3 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar7;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar7;\n        return;\n      }\n      argv0 = (char *)(iVar2 + 4);\n      *(char **)PTR_program_invocation_short_name_0002d26c = argv0;\n    }\n    *(char **)PTR_program_name_0002d138 = argv0;\n    *(char **)PTR_program_invocation_name_0002d294 = argv0;\n    return;\n  }\n  iVar2 = 1;\n  piVar6 = (int *)(PTR_DAT_0002d118 + -0x4888);\n  (*(code *)PTR_fwrite_0002d318)(piVar6,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n  puVar8 = PTR_abort_0002d254;\n  (*(code *)PTR_abort_0002d254)();\n  *piVar6 = 0;\n  piVar6[1] = 0;\n  piVar6[2] = 0;\n  piVar6[3] = 0;\n  piVar6[4] = 0;\n  piVar6[5] = 0;\n  piVar6[6] = 0;\n  piVar6[7] = 0;\n  piVar6[8] = 0;\n  piVar6[9] = 0;\n  piVar6[10] = 0;\n  piVar6[0xb] = 0;\n  if (iVar2 != 10) {\n    *piVar6 = iVar2;\n    return;\n  }\n  pcVar9 = *(code **)(puVar8 + 0x183c4);\n  (*pcVar9)();\n  piVar4 = (int *)(**(code **)(pcVar9 + 0x18438))(0,piVar6,5);\n  if (piVar6 != piVar4) {\n    return;\n  }\n  pbVar5 = (byte *)locale_charset();\n  if ((*pbVar5 & 0xdf) == 0x55) {\n    if (((((pbVar5[1] & 0xdf) != 0x54) || ((pbVar5[2] & 0xdf) != 0x46)) || (pbVar5[3] != 0x2d)) ||\n       (pbVar5[4] != 0x38)) goto LAB_00015070;\n    bVar1 = pbVar5[5];\n  }\n  else {\n    if (((((*pbVar5 & 0xdf) != 0x47) || ((pbVar5[1] & 0xdf) != 0x42)) ||\n        ((pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)))))) ||\n       ((pbVar5[5] != 0x33 || (pbVar5[6] != 0x30)))) goto LAB_00015070;\n    bVar1 = pbVar5[7];\n  }\n  if (bVar1 == 0) {\n    return;\n  }\nLAB_00015070:\n  if (iVar2 == 9) {\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "set_program_name(char *argv0)" identifier (parameter_list "(char *argv0)" ( (parameter_declaration "char *argv0" primitive_type (pointer_declarator "*argv0" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  byte *pbVar5;\n  int *piVar6;\n  int iVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  \n  if (argv0 != (char *)0x0) {\n    iVar2 = (*(code *)PTR_strrchr_0002d288)(argv0,0x2f);\n    if (((iVar2 != 0) && (iVar7 = iVar2 + 1, 6 < iVar7 - (int)argv0)) &&\n       (iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar2 + -6,PTR_DAT_0002d118 + -0x4850,7), iVar3 == 0\n       )) {\n      iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar7,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar3 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar7;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar7;\n        return;\n      }\n      argv0 = (char *)(iVar2 + 4);\n      *(char **)PTR_program_invocation_short_name_0002d26c = argv0;\n    }\n    *(char **)PTR_program_name_0002d138 = argv0;\n    *(char **)PTR_program_invocation_name_0002d294 = argv0;\n    return;\n  }\n  iVar2 = 1;\n  piVar6 = (int *)(PTR_DAT_0002d118 + -0x4888);\n  (*(code *)PTR_fwrite_0002d318)(piVar6,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n  puVar8 = PTR_abort_0002d254;\n  (*(code *)PTR_abort_0002d254)();\n  *piVar6 = 0;\n  piVar6[1] = 0;\n  piVar6[2] = 0;\n  piVar6[3] = 0;\n  piVar6[4] = 0;\n  piVar6[5] = 0;\n  piVar6[6] = 0;\n  piVar6[7] = 0;\n  piVar6[8] = 0;\n  piVar6[9] = 0;\n  piVar6[10] = 0;\n  piVar6[0xb] = 0;\n  if (iVar2 != 10) {\n    *piVar6 = iVar2;\n    return;\n  }\n  pcVar9 = *(code **)(puVar8 + 0x183c4);\n  (*pcVar9)();\n  piVar4 = (int *)(**(code **)(pcVar9 + 0x18438))(0,piVar6,5);\n  if (piVar6 != piVar4) {\n    return;\n  }\n  pbVar5 = (byte *)locale_charset();\n  if ((*pbVar5 & 0xdf) == 0x55) {\n    if (((((pbVar5[1] & 0xdf) != 0x54) || ((pbVar5[2] & 0xdf) != 0x46)) || (pbVar5[3] != 0x2d)) ||\n       (pbVar5[4] != 0x38)) goto LAB_00015070;\n    bVar1 = pbVar5[5];\n  }\n  else {\n    if (((((*pbVar5 & 0xdf) != 0x47) || ((pbVar5[1] & 0xdf) != 0x42)) ||\n        ((pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)))))) ||\n       ((pbVar5[5] != 0x33 || (pbVar5[6] != 0x30)))) goto LAB_00015070;\n    bVar1 = pbVar5[7];\n  }\n  if (bVar1 == 0) {\n    return;\n  }\nLAB_00015070:\n  if (iVar2 == 9) {\n    return;\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (if_statement "if (argv0 != (char *)0x0) {\n    iVar2 = (*(code *)PTR_strrchr_0002d288)(argv0,0x2f);\n    if (((iVar2 != 0) && (iVar7 = iVar2 + 1, 6 < iVar7 - (int)argv0)) &&\n       (iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar2 + -6,PTR_DAT_0002d118 + -0x4850,7), iVar3 == 0\n       )) {\n      iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar7,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar3 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar7;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar7;\n        return;\n      }\n      argv0 = (char *)(iVar2 + 4);\n      *(char **)PTR_program_invocation_short_name_0002d26c = argv0;\n    }\n    *(char **)PTR_program_name_0002d138 = argv0;\n    *(char **)PTR_program_invocation_name_0002d294 = argv0;\n    return;\n  }" if (parenthesized_expression "(argv0 != (char *)0x0)" ( (binary_expression "argv0 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_strrchr_0002d288)(argv0,0x2f);\n    if (((iVar2 != 0) && (iVar7 = iVar2 + 1, 6 < iVar7 - (int)argv0)) &&\n       (iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar2 + -6,PTR_DAT_0002d118 + -0x4850,7), iVar3 == 0\n       )) {\n      iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar7,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar3 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar7;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar7;\n        return;\n      }\n      argv0 = (char *)(iVar2 + 4);\n      *(char **)PTR_program_invocation_short_name_0002d26c = argv0;\n    }\n    *(char **)PTR_program_name_0002d138 = argv0;\n    *(char **)PTR_program_invocation_name_0002d294 = argv0;\n    return;\n  }" { (expression_statement "iVar2 = (*(code *)PTR_strrchr_0002d288)(argv0,0x2f);" (assignment_expression "iVar2 = (*(code *)PTR_strrchr_0002d288)(argv0,0x2f)" identifier = (call_expression "(*(code *)PTR_strrchr_0002d288)(argv0,0x2f)" (parenthesized_expression "(*(code *)PTR_strrchr_0002d288)" ( (pointer_expression "*(code *)PTR_strrchr_0002d288" * (cast_expression "(code *)PTR_strrchr_0002d288" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(argv0,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if (((iVar2 != 0) && (iVar7 = iVar2 + 1, 6 < iVar7 - (int)argv0)) &&\n       (iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar2 + -6,PTR_DAT_0002d118 + -0x4850,7), iVar3 == 0\n       )) {\n      iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar7,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar3 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar7;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar7;\n        return;\n      }\n      argv0 = (char *)(iVar2 + 4);\n      *(char **)PTR_program_invocation_short_name_0002d26c = argv0;\n    }" if (parenthesized_expression "(((iVar2 != 0) && (iVar7 = iVar2 + 1, 6 < iVar7 - (int)argv0)) &&\n       (iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar2 + -6,PTR_DAT_0002d118 + -0x4850,7), iVar3 == 0\n       ))" ( (binary_expression "((iVar2 != 0) && (iVar7 = iVar2 + 1, 6 < iVar7 - (int)argv0)) &&\n       (iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar2 + -6,PTR_DAT_0002d118 + -0x4850,7), iVar3 == 0\n       )" (parenthesized_expression "((iVar2 != 0) && (iVar7 = iVar2 + 1, 6 < iVar7 - (int)argv0))" ( (binary_expression "(iVar2 != 0) && (iVar7 = iVar2 + 1, 6 < iVar7 - (int)argv0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar7 = iVar2 + 1, 6 < iVar7 - (int)argv0)" ( (comma_expression "iVar7 = iVar2 + 1, 6 < iVar7 - (int)argv0" (assignment_expression "iVar7 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) , (binary_expression "6 < iVar7 - (int)argv0" number_literal < (binary_expression "iVar7 - (int)argv0" identifier - (cast_expression "(int)argv0" ( (type_descriptor "int" primitive_type) ) identifier)))) ))) )) && (parenthesized_expression "(iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar2 + -6,PTR_DAT_0002d118 + -0x4850,7), iVar3 == 0\n       )" ( (comma_expression "iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar2 + -6,PTR_DAT_0002d118 + -0x4850,7), iVar3 == 0" (assignment_expression "iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar2 + -6,PTR_DAT_0002d118 + -0x4850,7)" identifier = (call_expression "(*(code *)PTR_strncmp_0002d258)(iVar2 + -6,PTR_DAT_0002d118 + -0x4850,7)" (parenthesized_expression "(*(code *)PTR_strncmp_0002d258)" ( (pointer_expression "*(code *)PTR_strncmp_0002d258" * (cast_expression "(code *)PTR_strncmp_0002d258" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2 + -6,PTR_DAT_0002d118 + -0x4850,7)" ( (binary_expression "iVar2 + -6" identifier + number_literal) , (binary_expression "PTR_DAT_0002d118 + -0x4850" identifier + number_literal) , number_literal )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar7,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar3 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar7;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar7;\n        return;\n      }\n      argv0 = (char *)(iVar2 + 4);\n      *(char **)PTR_program_invocation_short_name_0002d26c = argv0;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar7,PTR_DAT_0002d118 + -0x4848,3);" (assignment_expression "iVar3 = (*(code *)PTR_strncmp_0002d258)(iVar7,PTR_DAT_0002d118 + -0x4848,3)" identifier = (call_expression "(*(code *)PTR_strncmp_0002d258)(iVar7,PTR_DAT_0002d118 + -0x4848,3)" (parenthesized_expression "(*(code *)PTR_strncmp_0002d258)" ( (pointer_expression "*(code *)PTR_strncmp_0002d258" * (cast_expression "(code *)PTR_strncmp_0002d258" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,PTR_DAT_0002d118 + -0x4848,3)" ( identifier , (binary_expression "PTR_DAT_0002d118 + -0x4848" identifier + number_literal) , number_literal )))) ;) (if_statement "if (iVar3 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar7;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar7;\n        return;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        *(int *)PTR_program_name_0002d138 = iVar7;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar7;\n        return;\n      }" { (expression_statement "*(int *)PTR_program_name_0002d138 = iVar7;" (assignment_expression "*(int *)PTR_program_name_0002d138 = iVar7" (pointer_expression "*(int *)PTR_program_name_0002d138" * (cast_expression "(int *)PTR_program_name_0002d138" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(int *)PTR_program_invocation_name_0002d294 = iVar7;" (assignment_expression "*(int *)PTR_program_invocation_name_0002d294 = iVar7" (pointer_expression "*(int *)PTR_program_invocation_name_0002d294" * (cast_expression "(int *)PTR_program_invocation_name_0002d294" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "argv0 = (char *)(iVar2 + 4);" (assignment_expression "argv0 = (char *)(iVar2 + 4)" identifier = (cast_expression "(char *)(iVar2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) ;) (expression_statement "*(char **)PTR_program_invocation_short_name_0002d26c = argv0;" (assignment_expression "*(char **)PTR_program_invocation_short_name_0002d26c = argv0" (pointer_expression "*(char **)PTR_program_invocation_short_name_0002d26c" * (cast_expression "(char **)PTR_program_invocation_short_name_0002d26c" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) })) (expression_statement "*(char **)PTR_program_name_0002d138 = argv0;" (assignment_expression "*(char **)PTR_program_name_0002d138 = argv0" (pointer_expression "*(char **)PTR_program_name_0002d138" * (cast_expression "(char **)PTR_program_name_0002d138" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(char **)PTR_program_invocation_name_0002d294 = argv0;" (assignment_expression "*(char **)PTR_program_invocation_name_0002d294 = argv0" (pointer_expression "*(char **)PTR_program_invocation_name_0002d294" * (cast_expression "(char **)PTR_program_invocation_name_0002d294" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (expression_statement "piVar6 = (int *)(PTR_DAT_0002d118 + -0x4888);" (assignment_expression "piVar6 = (int *)(PTR_DAT_0002d118 + -0x4888)" identifier = (cast_expression "(int *)(PTR_DAT_0002d118 + -0x4888)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0002d118 + -0x4888)" ( (binary_expression "PTR_DAT_0002d118 + -0x4888" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_fwrite_0002d318)(piVar6,1,0x37,*(undefined4 *)PTR_stderr_0002d354);" (call_expression "(*(code *)PTR_fwrite_0002d318)(piVar6,1,0x37,*(undefined4 *)PTR_stderr_0002d354)" (parenthesized_expression "(*(code *)PTR_fwrite_0002d318)" ( (pointer_expression "*(code *)PTR_fwrite_0002d318" * (cast_expression "(code *)PTR_fwrite_0002d318" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar6,1,0x37,*(undefined4 *)PTR_stderr_0002d354)" ( identifier , number_literal , number_literal , (pointer_expression "*(undefined4 *)PTR_stderr_0002d354" * (cast_expression "(undefined4 *)PTR_stderr_0002d354" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "puVar8 = PTR_abort_0002d254;" (assignment_expression "puVar8 = PTR_abort_0002d254" identifier = identifier) ;) (expression_statement "(*(code *)PTR_abort_0002d254)();" (call_expression "(*(code *)PTR_abort_0002d254)()" (parenthesized_expression "(*(code *)PTR_abort_0002d254)" ( (pointer_expression "*(code *)PTR_abort_0002d254" * (cast_expression "(code *)PTR_abort_0002d254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "piVar6[1] = 0;" (assignment_expression "piVar6[1] = 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[2] = 0;" (assignment_expression "piVar6[2] = 0" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[3] = 0;" (assignment_expression "piVar6[3] = 0" (subscript_expression "piVar6[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[4] = 0;" (assignment_expression "piVar6[4] = 0" (subscript_expression "piVar6[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[5] = 0;" (assignment_expression "piVar6[5] = 0" (subscript_expression "piVar6[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[6] = 0;" (assignment_expression "piVar6[6] = 0" (subscript_expression "piVar6[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[7] = 0;" (assignment_expression "piVar6[7] = 0" (subscript_expression "piVar6[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[8] = 0;" (assignment_expression "piVar6[8] = 0" (subscript_expression "piVar6[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[9] = 0;" (assignment_expression "piVar6[9] = 0" (subscript_expression "piVar6[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[10] = 0;" (assignment_expression "piVar6[10] = 0" (subscript_expression "piVar6[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[0xb] = 0;" (assignment_expression "piVar6[0xb] = 0" (subscript_expression "piVar6[0xb]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar2 != 10) {\n    *piVar6 = iVar2;\n    return;\n  }" if (parenthesized_expression "(iVar2 != 10)" ( (binary_expression "iVar2 != 10" identifier != number_literal) )) (compound_statement "{\n    *piVar6 = iVar2;\n    return;\n  }" { (expression_statement "*piVar6 = iVar2;" (assignment_expression "*piVar6 = iVar2" (pointer_expression "*piVar6" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar9 = *(code **)(puVar8 + 0x183c4);" (assignment_expression "pcVar9 = *(code **)(puVar8 + 0x183c4)" identifier = (pointer_expression "*(code **)(puVar8 + 0x183c4)" * (cast_expression "(code **)(puVar8 + 0x183c4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x183c4)" ( (binary_expression "puVar8 + 0x183c4" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar9)();" (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "piVar4 = (int *)(**(code **)(pcVar9 + 0x18438))(0,piVar6,5);" (assignment_expression "piVar4 = (int *)(**(code **)(pcVar9 + 0x18438))(0,piVar6,5)" identifier = (cast_expression "(int *)(**(code **)(pcVar9 + 0x18438))(0,piVar6,5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(pcVar9 + 0x18438))(0,piVar6,5)" (parenthesized_expression "(**(code **)(pcVar9 + 0x18438))" ( (pointer_expression "**(code **)(pcVar9 + 0x18438)" * (pointer_expression "*(code **)(pcVar9 + 0x18438)" * (cast_expression "(code **)(pcVar9 + 0x18438)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar9 + 0x18438)" ( (binary_expression "pcVar9 + 0x18438" identifier + number_literal) ))))) )) (argument_list "(0,piVar6,5)" ( number_literal , identifier , number_literal ))))) ;) (if_statement "if (piVar6 != piVar4) {\n    return;\n  }" if (parenthesized_expression "(piVar6 != piVar4)" ( (binary_expression "piVar6 != piVar4" identifier != identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pbVar5 = (byte *)locale_charset();" (assignment_expression "pbVar5 = (byte *)locale_charset()" identifier = (cast_expression "(byte *)locale_charset()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "locale_charset()" identifier (argument_list "()" ( ))))) ;) (if_statement "if ((*pbVar5 & 0xdf) == 0x55) {\n    if (((((pbVar5[1] & 0xdf) != 0x54) || ((pbVar5[2] & 0xdf) != 0x46)) || (pbVar5[3] != 0x2d)) ||\n       (pbVar5[4] != 0x38)) goto LAB_00015070;\n    bVar1 = pbVar5[5];\n  }\n  else {\n    if (((((*pbVar5 & 0xdf) != 0x47) || ((pbVar5[1] & 0xdf) != 0x42)) ||\n        ((pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)))))) ||\n       ((pbVar5[5] != 0x33 || (pbVar5[6] != 0x30)))) goto LAB_00015070;\n    bVar1 = pbVar5[7];\n  }" if (parenthesized_expression "((*pbVar5 & 0xdf) == 0x55)" ( (binary_expression "(*pbVar5 & 0xdf) == 0x55" (parenthesized_expression "(*pbVar5 & 0xdf)" ( (binary_expression "*pbVar5 & 0xdf" (pointer_expression "*pbVar5" * identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (((((pbVar5[1] & 0xdf) != 0x54) || ((pbVar5[2] & 0xdf) != 0x46)) || (pbVar5[3] != 0x2d)) ||\n       (pbVar5[4] != 0x38)) goto LAB_00015070;\n    bVar1 = pbVar5[5];\n  }" { (if_statement "if (((((pbVar5[1] & 0xdf) != 0x54) || ((pbVar5[2] & 0xdf) != 0x46)) || (pbVar5[3] != 0x2d)) ||\n       (pbVar5[4] != 0x38)) goto LAB_00015070;" if (parenthesized_expression "(((((pbVar5[1] & 0xdf) != 0x54) || ((pbVar5[2] & 0xdf) != 0x46)) || (pbVar5[3] != 0x2d)) ||\n       (pbVar5[4] != 0x38))" ( (binary_expression "((((pbVar5[1] & 0xdf) != 0x54) || ((pbVar5[2] & 0xdf) != 0x46)) || (pbVar5[3] != 0x2d)) ||\n       (pbVar5[4] != 0x38)" (parenthesized_expression "((((pbVar5[1] & 0xdf) != 0x54) || ((pbVar5[2] & 0xdf) != 0x46)) || (pbVar5[3] != 0x2d))" ( (binary_expression "(((pbVar5[1] & 0xdf) != 0x54) || ((pbVar5[2] & 0xdf) != 0x46)) || (pbVar5[3] != 0x2d)" (parenthesized_expression "(((pbVar5[1] & 0xdf) != 0x54) || ((pbVar5[2] & 0xdf) != 0x46))" ( (binary_expression "((pbVar5[1] & 0xdf) != 0x54) || ((pbVar5[2] & 0xdf) != 0x46)" (parenthesized_expression "((pbVar5[1] & 0xdf) != 0x54)" ( (binary_expression "(pbVar5[1] & 0xdf) != 0x54" (parenthesized_expression "(pbVar5[1] & 0xdf)" ( (binary_expression "pbVar5[1] & 0xdf" (subscript_expression "pbVar5[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) || (parenthesized_expression "((pbVar5[2] & 0xdf) != 0x46)" ( (binary_expression "(pbVar5[2] & 0xdf) != 0x46" (parenthesized_expression "(pbVar5[2] & 0xdf)" ( (binary_expression "pbVar5[2] & 0xdf" (subscript_expression "pbVar5[2]" identifier [ number_literal ]) & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "(pbVar5[3] != 0x2d)" ( (binary_expression "pbVar5[3] != 0x2d" (subscript_expression "pbVar5[3]" identifier [ number_literal ]) != number_literal) ))) )) || (parenthesized_expression "(pbVar5[4] != 0x38)" ( (binary_expression "pbVar5[4] != 0x38" (subscript_expression "pbVar5[4]" identifier [ number_literal ]) != number_literal) ))) )) (goto_statement "goto LAB_00015070;" goto statement_identifier ;)) (expression_statement "bVar1 = pbVar5[5];" (assignment_expression "bVar1 = pbVar5[5]" identifier = (subscript_expression "pbVar5[5]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    if (((((*pbVar5 & 0xdf) != 0x47) || ((pbVar5[1] & 0xdf) != 0x42)) ||\n        ((pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)))))) ||\n       ((pbVar5[5] != 0x33 || (pbVar5[6] != 0x30)))) goto LAB_00015070;\n    bVar1 = pbVar5[7];\n  }" else (compound_statement "{\n    if (((((*pbVar5 & 0xdf) != 0x47) || ((pbVar5[1] & 0xdf) != 0x42)) ||\n        ((pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)))))) ||\n       ((pbVar5[5] != 0x33 || (pbVar5[6] != 0x30)))) goto LAB_00015070;\n    bVar1 = pbVar5[7];\n  }" { (if_statement "if (((((*pbVar5 & 0xdf) != 0x47) || ((pbVar5[1] & 0xdf) != 0x42)) ||\n        ((pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)))))) ||\n       ((pbVar5[5] != 0x33 || (pbVar5[6] != 0x30)))) goto LAB_00015070;" if (parenthesized_expression "(((((*pbVar5 & 0xdf) != 0x47) || ((pbVar5[1] & 0xdf) != 0x42)) ||\n        ((pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)))))) ||\n       ((pbVar5[5] != 0x33 || (pbVar5[6] != 0x30))))" ( (binary_expression "((((*pbVar5 & 0xdf) != 0x47) || ((pbVar5[1] & 0xdf) != 0x42)) ||\n        ((pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)))))) ||\n       ((pbVar5[5] != 0x33 || (pbVar5[6] != 0x30)))" (parenthesized_expression "((((*pbVar5 & 0xdf) != 0x47) || ((pbVar5[1] & 0xdf) != 0x42)) ||\n        ((pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30))))))" ( (binary_expression "(((*pbVar5 & 0xdf) != 0x47) || ((pbVar5[1] & 0xdf) != 0x42)) ||\n        ((pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)))))" (parenthesized_expression "(((*pbVar5 & 0xdf) != 0x47) || ((pbVar5[1] & 0xdf) != 0x42))" ( (binary_expression "((*pbVar5 & 0xdf) != 0x47) || ((pbVar5[1] & 0xdf) != 0x42)" (parenthesized_expression "((*pbVar5 & 0xdf) != 0x47)" ( (binary_expression "(*pbVar5 & 0xdf) != 0x47" (parenthesized_expression "(*pbVar5 & 0xdf)" ( (binary_expression "*pbVar5 & 0xdf" (pointer_expression "*pbVar5" * identifier) & number_literal) )) != number_literal) )) || (parenthesized_expression "((pbVar5[1] & 0xdf) != 0x42)" ( (binary_expression "(pbVar5[1] & 0xdf) != 0x42" (parenthesized_expression "(pbVar5[1] & 0xdf)" ( (binary_expression "pbVar5[1] & 0xdf" (subscript_expression "pbVar5[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "((pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)))))" ( (parenthesized_expression "(pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30))))" ( (binary_expression "pbVar5[2] != 0x31 || ((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)))" (binary_expression "pbVar5[2] != 0x31" (subscript_expression "pbVar5[2]" identifier [ number_literal ]) != number_literal) || (parenthesized_expression "((pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)))" ( (parenthesized_expression "(pbVar5[3] != 0x38 || (pbVar5[4] != 0x30))" ( (binary_expression "pbVar5[3] != 0x38 || (pbVar5[4] != 0x30)" (binary_expression "pbVar5[3] != 0x38" (subscript_expression "pbVar5[3]" identifier [ number_literal ]) != number_literal) || (parenthesized_expression "(pbVar5[4] != 0x30)" ( (binary_expression "pbVar5[4] != 0x30" (subscript_expression "pbVar5[4]" identifier [ number_literal ]) != number_literal) ))) )) ))) )) ))) )) || (parenthesized_expression "((pbVar5[5] != 0x33 || (pbVar5[6] != 0x30)))" ( (parenthesized_expression "(pbVar5[5] != 0x33 || (pbVar5[6] != 0x30))" ( (binary_expression "pbVar5[5] != 0x33 || (pbVar5[6] != 0x30)" (binary_expression "pbVar5[5] != 0x33" (subscript_expression "pbVar5[5]" identifier [ number_literal ]) != number_literal) || (parenthesized_expression "(pbVar5[6] != 0x30)" ( (binary_expression "pbVar5[6] != 0x30" (subscript_expression "pbVar5[6]" identifier [ number_literal ]) != number_literal) ))) )) ))) )) (goto_statement "goto LAB_00015070;" goto statement_identifier ;)) (expression_statement "bVar1 = pbVar5[7];" (assignment_expression "bVar1 = pbVar5[7]" identifier = (subscript_expression "pbVar5[7]" identifier [ number_literal ])) ;) }))) (if_statement "if (bVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00015070:\n  if (iVar2 == 9) {\n    return;\n  }" statement_identifier : (if_statement "if (iVar2 == 9) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == 9)" ( (binary_expression "iVar2 == 9" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (return_statement "return;" return ;) })))
(translation_unit "int * set_program_name(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  \n  if (param_1 == 0) {\n    iVar1 = 1;\n    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);\n    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n    puVar5 = PTR_abort_0002d254;\n    (*(code *)PTR_abort_0002d254)();\n    *piVar3 = 0;\n    piVar3[1] = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    piVar3[5] = 0;\n    piVar3[6] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    piVar3[9] = 0;\n    piVar3[10] = 0;\n    piVar3[0xb] = 0;\n    if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }\n    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();\n    return piVar3;\n  }\n  iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f);\n  if ((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)) {\n    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }\n  }\n  *(int *)PTR_program_name_0002d138 = param_1;\n  piVar3 = (int *)PTR_program_invocation_name_0002d294;\n  *(int *)PTR_program_invocation_name_0002d294 = param_1;\n  return piVar3;\n}\n\n" (function_definition "int * set_program_name(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  \n  if (param_1 == 0) {\n    iVar1 = 1;\n    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);\n    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n    puVar5 = PTR_abort_0002d254;\n    (*(code *)PTR_abort_0002d254)();\n    *piVar3 = 0;\n    piVar3[1] = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    piVar3[5] = 0;\n    piVar3[6] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    piVar3[9] = 0;\n    piVar3[10] = 0;\n    piVar3[0xb] = 0;\n    if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }\n    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();\n    return piVar3;\n  }\n  iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f);\n  if ((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)) {\n    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }\n  }\n  *(int *)PTR_program_name_0002d138 = param_1;\n  piVar3 = (int *)PTR_program_invocation_name_0002d294;\n  *(int *)PTR_program_invocation_name_0002d294 = param_1;\n  return piVar3;\n}" primitive_type (pointer_declarator "* set_program_name(int param_1)" * (function_declarator "set_program_name(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  \n  if (param_1 == 0) {\n    iVar1 = 1;\n    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);\n    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n    puVar5 = PTR_abort_0002d254;\n    (*(code *)PTR_abort_0002d254)();\n    *piVar3 = 0;\n    piVar3[1] = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    piVar3[5] = 0;\n    piVar3[6] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    piVar3[9] = 0;\n    piVar3[10] = 0;\n    piVar3[0xb] = 0;\n    if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }\n    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();\n    return piVar3;\n  }\n  iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f);\n  if ((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)) {\n    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }\n  }\n  *(int *)PTR_program_name_0002d138 = param_1;\n  piVar3 = (int *)PTR_program_invocation_name_0002d294;\n  *(int *)PTR_program_invocation_name_0002d294 = param_1;\n  return piVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (param_1 == 0) {\n    iVar1 = 1;\n    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);\n    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n    puVar5 = PTR_abort_0002d254;\n    (*(code *)PTR_abort_0002d254)();\n    *piVar3 = 0;\n    piVar3[1] = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    piVar3[5] = 0;\n    piVar3[6] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    piVar3[9] = 0;\n    piVar3[10] = 0;\n    piVar3[0xb] = 0;\n    if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }\n    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();\n    return piVar3;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = 1;\n    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);\n    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n    puVar5 = PTR_abort_0002d254;\n    (*(code *)PTR_abort_0002d254)();\n    *piVar3 = 0;\n    piVar3[1] = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    piVar3[5] = 0;\n    piVar3[6] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    piVar3[9] = 0;\n    piVar3[10] = 0;\n    piVar3[0xb] = 0;\n    if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }\n    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();\n    return piVar3;\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);" (assignment_expression "piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888)" identifier = (cast_expression "(int *)(PTR_DAT_0002d118 + -0x4888)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0002d118 + -0x4888)" ( (binary_expression "PTR_DAT_0002d118 + -0x4888" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);" (call_expression "(*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354)" (parenthesized_expression "(*(code *)PTR_fwrite_0002d318)" ( (pointer_expression "*(code *)PTR_fwrite_0002d318" * (cast_expression "(code *)PTR_fwrite_0002d318" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354)" ( identifier , number_literal , number_literal , (pointer_expression "*(undefined4 *)PTR_stderr_0002d354" * (cast_expression "(undefined4 *)PTR_stderr_0002d354" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "puVar5 = PTR_abort_0002d254;" (assignment_expression "puVar5 = PTR_abort_0002d254" identifier = identifier) ;) (expression_statement "(*(code *)PTR_abort_0002d254)();" (call_expression "(*(code *)PTR_abort_0002d254)()" (parenthesized_expression "(*(code *)PTR_abort_0002d254)" ( (pointer_expression "*(code *)PTR_abort_0002d254" * (cast_expression "(code *)PTR_abort_0002d254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*piVar3 = 0;" (assignment_expression "*piVar3 = 0" (pointer_expression "*piVar3" * identifier) = number_literal) ;) (expression_statement "piVar3[1] = 0;" (assignment_expression "piVar3[1] = 0" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[2] = 0;" (assignment_expression "piVar3[2] = 0" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[4] = 0;" (assignment_expression "piVar3[4] = 0" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[5] = 0;" (assignment_expression "piVar3[5] = 0" (subscript_expression "piVar3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[6] = 0;" (assignment_expression "piVar3[6] = 0" (subscript_expression "piVar3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[7] = 0;" (assignment_expression "piVar3[7] = 0" (subscript_expression "piVar3[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[8] = 0;" (assignment_expression "piVar3[8] = 0" (subscript_expression "piVar3[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[9] = 0;" (assignment_expression "piVar3[9] = 0" (subscript_expression "piVar3[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[10] = 0;" (assignment_expression "piVar3[10] = 0" (subscript_expression "piVar3[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[0xb] = 0;" (assignment_expression "piVar3[0xb] = 0" (subscript_expression "piVar3[0xb]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }" if (parenthesized_expression "(iVar1 != 10)" ( (binary_expression "iVar1 != 10" identifier != number_literal) )) (compound_statement "{\n      *piVar3 = iVar1;\n      return piVar3;\n    }" { (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (return_statement "return piVar3;" return identifier ;) })) (expression_statement "piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();" (assignment_expression "piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))()" identifier = (cast_expression "(int *)(**(code **)(puVar5 + 0x183c4))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar5 + 0x183c4))()" (parenthesized_expression "(**(code **)(puVar5 + 0x183c4))" ( (pointer_expression "**(code **)(puVar5 + 0x183c4)" * (pointer_expression "*(code **)(puVar5 + 0x183c4)" * (cast_expression "(code **)(puVar5 + 0x183c4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x183c4)" ( (binary_expression "puVar5 + 0x183c4" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return piVar3;" return identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f);" (assignment_expression "iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f)" identifier = (call_expression "(*(code *)PTR_strrchr_0002d288)(param_1,0x2f)" (parenthesized_expression "(*(code *)PTR_strrchr_0002d288)" ( (pointer_expression "*(code *)PTR_strrchr_0002d288" * (cast_expression "(code *)PTR_strrchr_0002d288" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if ((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)) {\n    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1))" ( (binary_expression "(iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar4 = iVar1 + 1, 6 < iVar4 - param_1)" ( (comma_expression "iVar4 = iVar1 + 1, 6 < iVar4 - param_1" (assignment_expression "iVar4 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) , (binary_expression "6 < iVar4 - param_1" number_literal < (binary_expression "iVar4 - param_1" identifier - identifier))) ))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);" (assignment_expression "iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7)" identifier = (call_expression "(*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7)" (parenthesized_expression "(*(code *)PTR_strncmp_0002d258)" ( (pointer_expression "*(code *)PTR_strncmp_0002d258" * (cast_expression "(code *)PTR_strncmp_0002d258" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7)" ( (binary_expression "iVar1 + -6" identifier + number_literal) , (binary_expression "PTR_DAT_0002d118 + -0x4850" identifier + number_literal) , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);" (assignment_expression "iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3)" identifier = (call_expression "(*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3)" (parenthesized_expression "(*(code *)PTR_strncmp_0002d258)" ( (pointer_expression "*(code *)PTR_strncmp_0002d258" * (cast_expression "(code *)PTR_strncmp_0002d258" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,PTR_DAT_0002d118 + -0x4848,3)" ( identifier , (binary_expression "PTR_DAT_0002d118 + -0x4848" identifier + number_literal) , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }" { (expression_statement "*(int *)PTR_program_name_0002d138 = iVar4;" (assignment_expression "*(int *)PTR_program_name_0002d138 = iVar4" (pointer_expression "*(int *)PTR_program_name_0002d138" * (cast_expression "(int *)PTR_program_name_0002d138" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "piVar3 = (int *)PTR_program_invocation_name_0002d294;" (assignment_expression "piVar3 = (int *)PTR_program_invocation_name_0002d294" identifier = (cast_expression "(int *)PTR_program_invocation_name_0002d294" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*(int *)PTR_program_invocation_name_0002d294 = iVar4;" (assignment_expression "*(int *)PTR_program_invocation_name_0002d294 = iVar4" (pointer_expression "*(int *)PTR_program_invocation_name_0002d294" * (cast_expression "(int *)PTR_program_invocation_name_0002d294" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return piVar3;" return identifier ;) })) (expression_statement "param_1 = iVar1 + 4;" (assignment_expression "param_1 = iVar1 + 4" identifier = (binary_expression "iVar1 + 4" identifier + number_literal)) ;) (expression_statement "*(int *)PTR_program_invocation_short_name_0002d26c = param_1;" (assignment_expression "*(int *)PTR_program_invocation_short_name_0002d26c = param_1" (pointer_expression "*(int *)PTR_program_invocation_short_name_0002d26c" * (cast_expression "(int *)PTR_program_invocation_short_name_0002d26c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) })) })) (expression_statement "*(int *)PTR_program_name_0002d138 = param_1;" (assignment_expression "*(int *)PTR_program_name_0002d138 = param_1" (pointer_expression "*(int *)PTR_program_name_0002d138" * (cast_expression "(int *)PTR_program_name_0002d138" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "piVar3 = (int *)PTR_program_invocation_name_0002d294;" (assignment_expression "piVar3 = (int *)PTR_program_invocation_name_0002d294" identifier = (cast_expression "(int *)PTR_program_invocation_name_0002d294" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*(int *)PTR_program_invocation_name_0002d294 = param_1;" (assignment_expression "*(int *)PTR_program_invocation_name_0002d294 = param_1" (pointer_expression "*(int *)PTR_program_invocation_name_0002d294" * (cast_expression "(int *)PTR_program_invocation_name_0002d294" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return piVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression LIT < (binary_expression IDENT - IDENT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) })) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int * set_program_name(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  \n  if (param_1 == 0) {\n    iVar1 = 1;\n    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);\n    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n    puVar5 = PTR_abort_0002d254;\n    (*(code *)PTR_abort_0002d254)();\n    *piVar3 = 0;\n    piVar3[1] = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    piVar3[5] = 0;\n    piVar3[6] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    piVar3[9] = 0;\n    piVar3[10] = 0;\n    piVar3[0xb] = 0;\n    if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }\n    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();\n    return piVar3;\n  }\n  iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f);\n  if ((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)) {\n    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }\n  }\n  *(int *)PTR_program_name_0002d138 = param_1;\n  piVar3 = (int *)PTR_program_invocation_name_0002d294;\n  *(int *)PTR_program_invocation_name_0002d294 = param_1;\n  return piVar3;\n}" (primitive_type "int") (pointer_declarator "* set_program_name(int param_1)" (* "*") (function_declarator "set_program_name(int param_1)" (identifier "set_program_name") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined *puVar5;\n  \n  if (param_1 == 0) {\n    iVar1 = 1;\n    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);\n    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n    puVar5 = PTR_abort_0002d254;\n    (*(code *)PTR_abort_0002d254)();\n    *piVar3 = 0;\n    piVar3[1] = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    piVar3[5] = 0;\n    piVar3[6] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    piVar3[9] = 0;\n    piVar3[10] = 0;\n    piVar3[0xb] = 0;\n    if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }\n    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();\n    return piVar3;\n  }\n  iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f);\n  if ((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)) {\n    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }\n  }\n  *(int *)PTR_program_name_0002d138 = param_1;\n  piVar3 = (int *)PTR_program_invocation_name_0002d294;\n  *(int *)PTR_program_invocation_name_0002d294 = param_1;\n  return piVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (if_statement "if (param_1 == 0) {\n    iVar1 = 1;\n    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);\n    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n    puVar5 = PTR_abort_0002d254;\n    (*(code *)PTR_abort_0002d254)();\n    *piVar3 = 0;\n    piVar3[1] = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    piVar3[5] = 0;\n    piVar3[6] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    piVar3[9] = 0;\n    piVar3[10] = 0;\n    piVar3[0xb] = 0;\n    if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }\n    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();\n    return piVar3;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = 1;\n    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);\n    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);\n    puVar5 = PTR_abort_0002d254;\n    (*(code *)PTR_abort_0002d254)();\n    *piVar3 = 0;\n    piVar3[1] = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    piVar3[5] = 0;\n    piVar3[6] = 0;\n    piVar3[7] = 0;\n    piVar3[8] = 0;\n    piVar3[9] = 0;\n    piVar3[10] = 0;\n    piVar3[0xb] = 0;\n    if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }\n    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();\n    return piVar3;\n  }" ({ "{") (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);" (assignment_expression "piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888)" (identifier "piVar3") (= "=") (cast_expression "(int *)(PTR_DAT_0002d118 + -0x4888)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0002d118 + -0x4888)" (( "(") (binary_expression "PTR_DAT_0002d118 + -0x4888" (identifier "PTR_DAT_0002d118") (+ "+") (number_literal "-0x4888")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);" (call_expression "(*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354)" (parenthesized_expression "(*(code *)PTR_fwrite_0002d318)" (( "(") (pointer_expression "*(code *)PTR_fwrite_0002d318" (* "*") (cast_expression "(code *)PTR_fwrite_0002d318" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fwrite_0002d318"))) () ")")) (argument_list "(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354)" (( "(") (identifier "piVar3") (, ",") (number_literal "1") (, ",") (number_literal "0x37") (, ",") (pointer_expression "*(undefined4 *)PTR_stderr_0002d354" (* "*") (cast_expression "(undefined4 *)PTR_stderr_0002d354" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_0002d354"))) () ")"))) (; ";")) (expression_statement "puVar5 = PTR_abort_0002d254;" (assignment_expression "puVar5 = PTR_abort_0002d254" (identifier "puVar5") (= "=") (identifier "PTR_abort_0002d254")) (; ";")) (expression_statement "(*(code *)PTR_abort_0002d254)();" (call_expression "(*(code *)PTR_abort_0002d254)()" (parenthesized_expression "(*(code *)PTR_abort_0002d254)" (( "(") (pointer_expression "*(code *)PTR_abort_0002d254" (* "*") (cast_expression "(code *)PTR_abort_0002d254" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_abort_0002d254"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*piVar3 = 0;" (assignment_expression "*piVar3 = 0" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[1] = 0;" (assignment_expression "piVar3[1] = 0" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[2] = 0;" (assignment_expression "piVar3[2] = 0" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[4] = 0;" (assignment_expression "piVar3[4] = 0" (subscript_expression "piVar3[4]" (identifier "piVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[5] = 0;" (assignment_expression "piVar3[5] = 0" (subscript_expression "piVar3[5]" (identifier "piVar3") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[6] = 0;" (assignment_expression "piVar3[6] = 0" (subscript_expression "piVar3[6]" (identifier "piVar3") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[7] = 0;" (assignment_expression "piVar3[7] = 0" (subscript_expression "piVar3[7]" (identifier "piVar3") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[8] = 0;" (assignment_expression "piVar3[8] = 0" (subscript_expression "piVar3[8]" (identifier "piVar3") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[9] = 0;" (assignment_expression "piVar3[9] = 0" (subscript_expression "piVar3[9]" (identifier "piVar3") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[10] = 0;" (assignment_expression "piVar3[10] = 0" (subscript_expression "piVar3[10]" (identifier "piVar3") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[0xb] = 0;" (assignment_expression "piVar3[0xb] = 0" (subscript_expression "piVar3[0xb]" (identifier "piVar3") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar1 != 10) {\n      *piVar3 = iVar1;\n      return piVar3;\n    }" (if "if") (parenthesized_expression "(iVar1 != 10)" (( "(") (binary_expression "iVar1 != 10" (identifier "iVar1") (!= "!=") (number_literal "10")) () ")")) (compound_statement "{\n      *piVar3 = iVar1;\n      return piVar3;\n    }" ({ "{") (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();" (assignment_expression "piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))()" (identifier "piVar3") (= "=") (cast_expression "(int *)(**(code **)(puVar5 + 0x183c4))()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar5 + 0x183c4))()" (parenthesized_expression "(**(code **)(puVar5 + 0x183c4))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x183c4)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x183c4)" (* "*") (cast_expression "(code **)(puVar5 + 0x183c4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x183c4)" (( "(") (binary_expression "puVar5 + 0x183c4" (identifier "puVar5") (+ "+") (number_literal "0x183c4")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f);" (assignment_expression "iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strrchr_0002d288)(param_1,0x2f)" (parenthesized_expression "(*(code *)PTR_strrchr_0002d288)" (( "(") (pointer_expression "*(code *)PTR_strrchr_0002d288" (* "*") (cast_expression "(code *)PTR_strrchr_0002d288" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strrchr_0002d288"))) () ")")) (argument_list "(param_1,0x2f)" (( "(") (identifier "param_1") (, ",") (number_literal "0x2f") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)) {\n    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1))" (( "(") (binary_expression "(iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = iVar1 + 1, 6 < iVar4 - param_1)" (( "(") (comma_expression "iVar4 = iVar1 + 1, 6 < iVar4 - param_1" (assignment_expression "iVar4 = iVar1 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (, ",") (binary_expression "6 < iVar4 - param_1" (number_literal "6") (< "<") (binary_expression "iVar4 - param_1" (identifier "iVar4") (- "-") (identifier "param_1")))) () ")"))) () ")")) (compound_statement "{\n    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);\n    if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);" (assignment_expression "iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7)" (parenthesized_expression "(*(code *)PTR_strncmp_0002d258)" (( "(") (pointer_expression "*(code *)PTR_strncmp_0002d258" (* "*") (cast_expression "(code *)PTR_strncmp_0002d258" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strncmp_0002d258"))) () ")")) (argument_list "(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7)" (( "(") (binary_expression "iVar1 + -6" (identifier "iVar1") (+ "+") (number_literal "-6")) (, ",") (binary_expression "PTR_DAT_0002d118 + -0x4850" (identifier "PTR_DAT_0002d118") (+ "+") (number_literal "-0x4850")) (, ",") (number_literal "7") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);\n      if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }\n      param_1 = iVar1 + 4;\n      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;\n    }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);" (assignment_expression "iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3)" (parenthesized_expression "(*(code *)PTR_strncmp_0002d258)" (( "(") (pointer_expression "*(code *)PTR_strncmp_0002d258" (* "*") (cast_expression "(code *)PTR_strncmp_0002d258" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strncmp_0002d258"))) () ")")) (argument_list "(iVar4,PTR_DAT_0002d118 + -0x4848,3)" (( "(") (identifier "iVar4") (, ",") (binary_expression "PTR_DAT_0002d118 + -0x4848" (identifier "PTR_DAT_0002d118") (+ "+") (number_literal "-0x4848")) (, ",") (number_literal "3") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(int *)PTR_program_name_0002d138 = iVar4;\n        piVar3 = (int *)PTR_program_invocation_name_0002d294;\n        *(int *)PTR_program_invocation_name_0002d294 = iVar4;\n        return piVar3;\n      }" ({ "{") (expression_statement "*(int *)PTR_program_name_0002d138 = iVar4;" (assignment_expression "*(int *)PTR_program_name_0002d138 = iVar4" (pointer_expression "*(int *)PTR_program_name_0002d138" (* "*") (cast_expression "(int *)PTR_program_name_0002d138" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_program_name_0002d138"))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "piVar3 = (int *)PTR_program_invocation_name_0002d294;" (assignment_expression "piVar3 = (int *)PTR_program_invocation_name_0002d294" (identifier "piVar3") (= "=") (cast_expression "(int *)PTR_program_invocation_name_0002d294" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_program_invocation_name_0002d294"))) (; ";")) (expression_statement "*(int *)PTR_program_invocation_name_0002d294 = iVar4;" (assignment_expression "*(int *)PTR_program_invocation_name_0002d294 = iVar4" (pointer_expression "*(int *)PTR_program_invocation_name_0002d294" (* "*") (cast_expression "(int *)PTR_program_invocation_name_0002d294" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_program_invocation_name_0002d294"))) (= "=") (identifier "iVar4")) (; ";")) (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (expression_statement "param_1 = iVar1 + 4;" (assignment_expression "param_1 = iVar1 + 4" (identifier "param_1") (= "=") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "*(int *)PTR_program_invocation_short_name_0002d26c = param_1;" (assignment_expression "*(int *)PTR_program_invocation_short_name_0002d26c = param_1" (pointer_expression "*(int *)PTR_program_invocation_short_name_0002d26c" (* "*") (cast_expression "(int *)PTR_program_invocation_short_name_0002d26c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_program_invocation_short_name_0002d26c"))) (= "=") (identifier "param_1")) (; ";")) (} "}"))) (} "}"))) (expression_statement "*(int *)PTR_program_name_0002d138 = param_1;" (assignment_expression "*(int *)PTR_program_name_0002d138 = param_1" (pointer_expression "*(int *)PTR_program_name_0002d138" (* "*") (cast_expression "(int *)PTR_program_name_0002d138" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_program_name_0002d138"))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "piVar3 = (int *)PTR_program_invocation_name_0002d294;" (assignment_expression "piVar3 = (int *)PTR_program_invocation_name_0002d294" (identifier "piVar3") (= "=") (cast_expression "(int *)PTR_program_invocation_name_0002d294" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_program_invocation_name_0002d294"))) (; ";")) (expression_statement "*(int *)PTR_program_invocation_name_0002d294 = param_1;" (assignment_expression "*(int *)PTR_program_invocation_name_0002d294 = param_1" (pointer_expression "*(int *)PTR_program_invocation_name_0002d294" (* "*") (cast_expression "(int *)PTR_program_invocation_name_0002d294" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_program_invocation_name_0002d294"))) (= "=") (identifier "param_1")) (; ";")) (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (number_literal) right: (binary_expression left: (identifier) right: (identifier))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (return_statement (identifier)))))

int * MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  undefined *puVar5;
  
  if (param_1 == 0) {
    iVar1 = 1;
    piVar3 = (int *)(PTR_DAT_0002d118 + -0x4888);
    (*(code *)PTR_fwrite_0002d318)(piVar3,1,0x37,*(undefined4 *)PTR_stderr_0002d354);
    puVar5 = PTR_abort_0002d254;
    (*(code *)PTR_abort_0002d254)();
    *piVar3 = 0;
    piVar3[1] = 0;
    piVar3[2] = 0;
    piVar3[3] = 0;
    piVar3[4] = 0;
    piVar3[5] = 0;
    piVar3[6] = 0;
    piVar3[7] = 0;
    piVar3[8] = 0;
    piVar3[9] = 0;
    piVar3[10] = 0;
    piVar3[0xb] = 0;
    if (iVar1 != 10) {
      *piVar3 = iVar1;
      return piVar3;
    }
    piVar3 = (int *)(**(code **)(puVar5 + 0x183c4))();
    return piVar3;
  }
  iVar1 = (*(code *)PTR_strrchr_0002d288)(param_1,0x2f);
  if ((iVar1 != 0) && (iVar4 = iVar1 + 1, 6 < iVar4 - param_1)) {
    iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar1 + -6,PTR_DAT_0002d118 + -0x4850,7);
    if (iVar2 == 0) {
      iVar2 = (*(code *)PTR_strncmp_0002d258)(iVar4,PTR_DAT_0002d118 + -0x4848,3);
      if (iVar2 != 0) {
        *(int *)PTR_program_name_0002d138 = iVar4;
        piVar3 = (int *)PTR_program_invocation_name_0002d294;
        *(int *)PTR_program_invocation_name_0002d294 = iVar4;
        return piVar3;
      }
      param_1 = iVar1 + 4;
      *(int *)PTR_program_invocation_short_name_0002d26c = param_1;
    }
  }
  *(int *)PTR_program_name_0002d138 = param_1;
  piVar3 = (int *)PTR_program_invocation_name_0002d294;
  *(int *)PTR_program_invocation_name_0002d294 = param_1;
  return piVar3;
}

