
/* WARNING: Unknown calling convention */

int posix2_version(void)

{
  char *pcVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  int iVar6;
  undefined *puVar7;
  char *e;
  int local_c;
  
  local_c = *(int *)PTR___stack_chk_guard_0002c314;
  pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);
  if (pcVar1 == (char *)0x0) {
    iVar2 = 0x31069;
  }
  else if (*pcVar1 == '\0') {
    iVar2 = 0x31069;
  }
  else {
    iVar2 = (*(code *)PTR_strtol_0002c244)(pcVar1,&e,10);
    if (*e != '\0') {
      iVar2 = 0x31069;
    }
  }
  if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {
    return iVar2;
  }
  iVar2 = local_c;
  puVar7 = PTR___stack_chk_fail_0002c300;
  (*(code *)PTR___stack_chk_fail_0002c300)();
  if (iVar2 == 0) {
    (**(code **)(puVar7 + 0x17c64))
              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));
    iVar2 = (**(code **)(puVar7 + 0x17bb8))();
    return iVar2;
  }
  iVar3 = (**(code **)(puVar7 + 0x17be4))();
  if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar2)) {
    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);
    piVar5 = *(int **)(puVar7 + 0x17a98);
    if (iVar4 != 0) goto LAB_00014748;
    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);
    iVar2 = iVar6;
    if (iVar4 == 0) {
      iVar2 = iVar3 + 4;
      **(int **)(puVar7 + 0x17bd0) = iVar2;
    }
  }
  piVar5 = *(int **)(puVar7 + 0x17a98);
LAB_00014748:
  *piVar5 = iVar2;
  piVar5 = *(int **)(puVar7 + 0x17bf0);
  *piVar5 = iVar2;
  return (int)piVar5;
}



int * posix2_version(void)

{
  char *pcVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined *puVar7;
  char *local_10;
  int local_c;
  
  local_c = *(int *)PTR___stack_chk_guard_0002c314;
  pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);
  if (pcVar1 == (char *)0x0) {
    piVar2 = (int *)0x31069;
  }
  else if (*pcVar1 == '\0') {
    piVar2 = (int *)0x31069;
  }
  else {
    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);
    if (*local_10 != '\0') {
      piVar2 = (int *)0x31069;
    }
  }
  if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {
    return piVar2;
  }
  iVar5 = local_c;
  puVar7 = PTR___stack_chk_fail_0002c300;
  (*(code *)PTR___stack_chk_fail_0002c300)();
  if (iVar5 == 0) {
    (**(code **)(puVar7 + 0x17c64))
              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));
    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();
    return piVar2;
  }
  iVar3 = (**(code **)(puVar7 + 0x17be4))();
  if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)) {
    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);
    piVar2 = *(int **)(puVar7 + 0x17a98);
    if (iVar4 != 0) goto LAB_00014748;
    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);
    iVar5 = iVar6;
    if (iVar4 == 0) {
      iVar5 = iVar3 + 4;
      **(int **)(puVar7 + 0x17bd0) = iVar5;
    }
  }
  piVar2 = *(int **)(puVar7 + 0x17a98);
LAB_00014748:
  *piVar2 = iVar5;
  piVar2 = *(int **)(puVar7 + 0x17bf0);
  *piVar2 = iVar5;
  return piVar2;
}


lui gp,0x2
addiu gp,gp,-0x4f0
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw gp,0x10(sp)
lw v0,-0x7dcc(gp)
lw v0,0x0(v0)
sw v0,0x1c(sp)
lw a0,-0x7fc8(gp)
addiu a0,a0,-0x5280
lw t9,-0x7e08(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x00014678
_nop
lb v1,0x0(v0)
bne v1,zero,0x00014644
_li a2,0xa
lui v0,0x3
addiu v0,v0,0x1069
lw a0,0x1c(sp)
lw v1,-0x7dcc(gp)
lw v1,0x0(v1)
bne a0,v1,0x00014684
_lw ra,0x24(sp)
jr ra
_addiu sp,sp,0x28
addiu a1,sp,0x18
or a0,v0,zero
lw t9,-0x7e9c(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v1,0x18(sp)
lb v1,0x0(v1)
beq v1,zero,0x00014628
_nop
lui v0,0x3
b 0x00014628
_addiu v0,v0,0x1069
lui v0,0x3
b 0x00014628
_addiu v0,v0,0x1069
lw t9,-0x7de0(gp)
jalr t9
_nop
(translation_unit "int * posix2_version(void)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  char *local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_0002c314;\n  pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);\n  if (pcVar1 == (char *)0x0) {\n    piVar2 = (int *)0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return piVar2;\n  }\n  iVar5 = local_c;\n  puVar7 = PTR___stack_chk_fail_0002c300;\n  (*(code *)PTR___stack_chk_fail_0002c300)();\n  if (iVar5 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();\n    return piVar2;\n  }\n  iVar3 = (**(code **)(puVar7 + 0x17be4))();\n  if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar2 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar5 = iVar6;\n    if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }\n  }\n  piVar2 = *(int **)(puVar7 + 0x17a98);\nLAB_00014748:\n  *piVar2 = iVar5;\n  piVar2 = *(int **)(puVar7 + 0x17bf0);\n  *piVar2 = iVar5;\n  return piVar2;\n}\n\n" (function_definition "int * posix2_version(void)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  char *local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_0002c314;\n  pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);\n  if (pcVar1 == (char *)0x0) {\n    piVar2 = (int *)0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return piVar2;\n  }\n  iVar5 = local_c;\n  puVar7 = PTR___stack_chk_fail_0002c300;\n  (*(code *)PTR___stack_chk_fail_0002c300)();\n  if (iVar5 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();\n    return piVar2;\n  }\n  iVar3 = (**(code **)(puVar7 + 0x17be4))();\n  if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar2 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar5 = iVar6;\n    if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }\n  }\n  piVar2 = *(int **)(puVar7 + 0x17a98);\nLAB_00014748:\n  *piVar2 = iVar5;\n  piVar2 = *(int **)(puVar7 + 0x17bf0);\n  *piVar2 = iVar5;\n  return piVar2;\n}" primitive_type (pointer_declarator "* posix2_version(void)" * (function_declarator "posix2_version(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  char *local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_0002c314;\n  pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);\n  if (pcVar1 == (char *)0x0) {\n    piVar2 = (int *)0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return piVar2;\n  }\n  iVar5 = local_c;\n  puVar7 = PTR___stack_chk_fail_0002c300;\n  (*(code *)PTR___stack_chk_fail_0002c300)();\n  if (iVar5 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();\n    return piVar2;\n  }\n  iVar3 = (**(code **)(puVar7 + 0x17be4))();\n  if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar2 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar5 = iVar6;\n    if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }\n  }\n  piVar2 = *(int **)(puVar7 + 0x17a98);\nLAB_00014748:\n  *piVar2 = iVar5;\n  piVar2 = *(int **)(puVar7 + 0x17bf0);\n  *piVar2 = iVar5;\n  return piVar2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "char *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_0002c314;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_0002c314" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0002c314" * (cast_expression "(int *)PTR___stack_chk_guard_0002c314" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280)" (parenthesized_expression "(*(code *)PTR_getenv_0002c2d8)" ( (pointer_expression "*(code *)PTR_getenv_0002c2d8" * (cast_expression "(code *)PTR_getenv_0002c2d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0002c118 + -0x5280)" ( (binary_expression "PTR_DAT_0002c118 + -0x5280" identifier + number_literal) ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    piVar2 = (int *)0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = (int *)0x31069;\n  }" { (expression_statement "piVar2 = (int *)0x31069;" (assignment_expression "piVar2 = (int *)0x31069" identifier = (cast_expression "(int *)0x31069" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" else (if_statement "if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar2 = (int *)0x31069;\n  }" { (expression_statement "piVar2 = (int *)0x31069;" (assignment_expression "piVar2 = (int *)0x31069" identifier = (cast_expression "(int *)0x31069" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" else (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" { (expression_statement "piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10)" identifier = (cast_expression "(int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10)" (parenthesized_expression "(*(code *)PTR_strtol_0002c244)" ( (pointer_expression "*(code *)PTR_strtol_0002c244" * (cast_expression "(code *)PTR_strtol_0002c244" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1,&local_10,10)" ( identifier , (pointer_expression "&local_10" & identifier) , number_literal ))))) ;) (if_statement "if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }" if (parenthesized_expression "(*local_10 != '\0')" ( (binary_expression "*local_10 != '\0'" (pointer_expression "*local_10" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar2 = (int *)0x31069;\n    }" { (expression_statement "piVar2 = (int *)0x31069;" (assignment_expression "piVar2 = (int *)0x31069" identifier = (cast_expression "(int *)0x31069" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }))))) (if_statement "if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return piVar2;\n  }" if (parenthesized_expression "(local_c == *(int *)PTR___stack_chk_guard_0002c314)" ( (binary_expression "local_c == *(int *)PTR___stack_chk_guard_0002c314" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_0002c314" * (cast_expression "(int *)PTR___stack_chk_guard_0002c314" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return piVar2;\n  }" { (return_statement "return piVar2;" return identifier ;) })) (expression_statement "iVar5 = local_c;" (assignment_expression "iVar5 = local_c" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_fail_0002c300;" (assignment_expression "puVar7 = PTR___stack_chk_fail_0002c300" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0002c300)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002c300)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002c300)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002c300" * (cast_expression "(code *)PTR___stack_chk_fail_0002c300" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar5 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();\n    return piVar2;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();\n    return piVar2;\n  }" { (expression_statement "(**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));" (call_expression "(**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94))" (parenthesized_expression "(**(code **)(puVar7 + 0x17c64))" ( (pointer_expression "**(code **)(puVar7 + 0x17c64)" * (pointer_expression "*(code **)(puVar7 + 0x17c64)" * (cast_expression "(code **)(puVar7 + 0x17c64)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17c64)" ( (binary_expression "puVar7 + 0x17c64" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94))" ( (binary_expression "*(int *)(puVar7 + 0x17a88) + -0x5270" (pointer_expression "*(int *)(puVar7 + 0x17a88)" * (cast_expression "(int *)(puVar7 + 0x17a88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x17a88)" ( (binary_expression "puVar7 + 0x17a88" identifier + number_literal) )))) + number_literal) , number_literal , number_literal , (pointer_expression "**(undefined4 **)(puVar7 + 0x17c94)" * (pointer_expression "*(undefined4 **)(puVar7 + 0x17c94)" * (cast_expression "(undefined4 **)(puVar7 + 0x17c94)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17c94)" ( (binary_expression "puVar7 + 0x17c94" identifier + number_literal) ))))) ))) ;) (expression_statement "piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();" (assignment_expression "piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))()" identifier = (cast_expression "(int *)(**(code **)(puVar7 + 0x17bb8))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar7 + 0x17bb8))()" (parenthesized_expression "(**(code **)(puVar7 + 0x17bb8))" ( (pointer_expression "**(code **)(puVar7 + 0x17bb8)" * (pointer_expression "*(code **)(puVar7 + 0x17bb8)" * (cast_expression "(code **)(puVar7 + 0x17bb8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bb8)" ( (binary_expression "puVar7 + 0x17bb8" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return piVar2;" return identifier ;) })) (expression_statement "iVar3 = (**(code **)(puVar7 + 0x17be4))();" (assignment_expression "iVar3 = (**(code **)(puVar7 + 0x17be4))()" identifier = (call_expression "(**(code **)(puVar7 + 0x17be4))()" (parenthesized_expression "(**(code **)(puVar7 + 0x17be4))" ( (pointer_expression "**(code **)(puVar7 + 0x17be4)" * (pointer_expression "*(code **)(puVar7 + 0x17be4)" * (cast_expression "(code **)(puVar7 + 0x17be4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17be4)" ( (binary_expression "puVar7 + 0x17be4" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar2 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar5 = iVar6;\n    if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }\n  }" if (parenthesized_expression "((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5))" ( (binary_expression "(iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)" ( (comma_expression "iVar6 = iVar3 + 1, 6 < iVar6 - iVar5" (assignment_expression "iVar6 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) , (binary_expression "6 < iVar6 - iVar5" number_literal < (binary_expression "iVar6 - iVar5" identifier - identifier))) ))) )) (compound_statement "{\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar2 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar5 = iVar6;\n    if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }\n  }" { (expression_statement "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);" (assignment_expression "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7)" identifier = (call_expression "(**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7)" (parenthesized_expression "(**(code **)(puVar7 + 0x17bbc))" ( (pointer_expression "**(code **)(puVar7 + 0x17bbc)" * (pointer_expression "*(code **)(puVar7 + 0x17bbc)" * (cast_expression "(code **)(puVar7 + 0x17bbc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bbc)" ( (binary_expression "puVar7 + 0x17bbc" identifier + number_literal) ))))) )) (argument_list "(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7)" ( (binary_expression "iVar3 + -6" identifier + number_literal) , (binary_expression "*(int *)(puVar7 + 0x17a88) + -0x5238" (pointer_expression "*(int *)(puVar7 + 0x17a88)" * (cast_expression "(int *)(puVar7 + 0x17a88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x17a88)" ( (binary_expression "puVar7 + 0x17a88" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (expression_statement "piVar2 = *(int **)(puVar7 + 0x17a98);" (assignment_expression "piVar2 = *(int **)(puVar7 + 0x17a98)" identifier = (pointer_expression "*(int **)(puVar7 + 0x17a98)" * (cast_expression "(int **)(puVar7 + 0x17a98)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17a98)" ( (binary_expression "puVar7 + 0x17a98" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 != 0) goto LAB_00014748;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00014748;" goto statement_identifier ;)) (expression_statement "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);" (assignment_expression "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3)" identifier = (call_expression "(**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3)" (parenthesized_expression "(**(code **)(puVar7 + 0x17bbc))" ( (pointer_expression "**(code **)(puVar7 + 0x17bbc)" * (pointer_expression "*(code **)(puVar7 + 0x17bbc)" * (cast_expression "(code **)(puVar7 + 0x17bbc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bbc)" ( (binary_expression "puVar7 + 0x17bbc" identifier + number_literal) ))))) )) (argument_list "(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3)" ( identifier , (binary_expression "*(int *)(puVar7 + 0x17a88) + -0x5230" (pointer_expression "*(int *)(puVar7 + 0x17a88)" * (cast_expression "(int *)(puVar7 + 0x17a88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x17a88)" ( (binary_expression "puVar7 + 0x17a88" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }" { (expression_statement "iVar5 = iVar3 + 4;" (assignment_expression "iVar5 = iVar3 + 4" identifier = (binary_expression "iVar3 + 4" identifier + number_literal)) ;) (expression_statement "**(int **)(puVar7 + 0x17bd0) = iVar5;" (assignment_expression "**(int **)(puVar7 + 0x17bd0) = iVar5" (pointer_expression "**(int **)(puVar7 + 0x17bd0)" * (pointer_expression "*(int **)(puVar7 + 0x17bd0)" * (cast_expression "(int **)(puVar7 + 0x17bd0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bd0)" ( (binary_expression "puVar7 + 0x17bd0" identifier + number_literal) ))))) = identifier) ;) })) })) (expression_statement "piVar2 = *(int **)(puVar7 + 0x17a98);" (assignment_expression "piVar2 = *(int **)(puVar7 + 0x17a98)" identifier = (pointer_expression "*(int **)(puVar7 + 0x17a98)" * (cast_expression "(int **)(puVar7 + 0x17a98)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17a98)" ( (binary_expression "puVar7 + 0x17a98" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00014748:\n  *piVar2 = iVar5;" statement_identifier : (expression_statement "*piVar2 = iVar5;" (assignment_expression "*piVar2 = iVar5" (pointer_expression "*piVar2" * identifier) = identifier) ;)) (expression_statement "piVar2 = *(int **)(puVar7 + 0x17bf0);" (assignment_expression "piVar2 = *(int **)(puVar7 + 0x17bf0)" identifier = (pointer_expression "*(int **)(puVar7 + 0x17bf0)" * (cast_expression "(int **)(puVar7 + 0x17bf0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bf0)" ( (binary_expression "puVar7 + 0x17bf0" identifier + number_literal) ))))) ;) (expression_statement "*piVar2 = iVar5;" (assignment_expression "*piVar2 = iVar5" (pointer_expression "*piVar2" * identifier) = identifier) ;) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint posix2_version(void)\n\n{\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined *puVar7;\n  char *e;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_0002c314;\n  pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);\n  if (pcVar1 == (char *)0x0) {\n    iVar2 = 0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    iVar2 = 0x31069;\n  }\n  else {\n    iVar2 = (*(code *)PTR_strtol_0002c244)(pcVar1,&e,10);\n    if (*e != '\0') {\n      iVar2 = 0x31069;\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return iVar2;\n  }\n  iVar2 = local_c;\n  puVar7 = PTR___stack_chk_fail_0002c300;\n  (*(code *)PTR___stack_chk_fail_0002c300)();\n  if (iVar2 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    iVar2 = (**(code **)(puVar7 + 0x17bb8))();\n    return iVar2;\n  }\n  iVar3 = (**(code **)(puVar7 + 0x17be4))();\n  if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar2)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar5 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar2 = iVar6;\n    if (iVar4 == 0) {\n      iVar2 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar2;\n    }\n  }\n  piVar5 = *(int **)(puVar7 + 0x17a98);\nLAB_00014748:\n  *piVar5 = iVar2;\n  piVar5 = *(int **)(puVar7 + 0x17bf0);\n  *piVar5 = iVar2;\n  return (int)piVar5;\n}\n\n" comment (function_definition "int posix2_version(void)\n\n{\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined *puVar7;\n  char *e;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_0002c314;\n  pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);\n  if (pcVar1 == (char *)0x0) {\n    iVar2 = 0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    iVar2 = 0x31069;\n  }\n  else {\n    iVar2 = (*(code *)PTR_strtol_0002c244)(pcVar1,&e,10);\n    if (*e != '\0') {\n      iVar2 = 0x31069;\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return iVar2;\n  }\n  iVar2 = local_c;\n  puVar7 = PTR___stack_chk_fail_0002c300;\n  (*(code *)PTR___stack_chk_fail_0002c300)();\n  if (iVar2 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    iVar2 = (**(code **)(puVar7 + 0x17bb8))();\n    return iVar2;\n  }\n  iVar3 = (**(code **)(puVar7 + 0x17be4))();\n  if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar2)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar5 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar2 = iVar6;\n    if (iVar4 == 0) {\n      iVar2 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar2;\n    }\n  }\n  piVar5 = *(int **)(puVar7 + 0x17a98);\nLAB_00014748:\n  *piVar5 = iVar2;\n  piVar5 = *(int **)(puVar7 + 0x17bf0);\n  *piVar5 = iVar2;\n  return (int)piVar5;\n}" primitive_type (function_declarator "posix2_version(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined *puVar7;\n  char *e;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_0002c314;\n  pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);\n  if (pcVar1 == (char *)0x0) {\n    iVar2 = 0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    iVar2 = 0x31069;\n  }\n  else {\n    iVar2 = (*(code *)PTR_strtol_0002c244)(pcVar1,&e,10);\n    if (*e != '\0') {\n      iVar2 = 0x31069;\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return iVar2;\n  }\n  iVar2 = local_c;\n  puVar7 = PTR___stack_chk_fail_0002c300;\n  (*(code *)PTR___stack_chk_fail_0002c300)();\n  if (iVar2 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    iVar2 = (**(code **)(puVar7 + 0x17bb8))();\n    return iVar2;\n  }\n  iVar3 = (**(code **)(puVar7 + 0x17be4))();\n  if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar2)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar5 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar2 = iVar6;\n    if (iVar4 == 0) {\n      iVar2 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar2;\n    }\n  }\n  piVar5 = *(int **)(puVar7 + 0x17a98);\nLAB_00014748:\n  *piVar5 = iVar2;\n  piVar5 = *(int **)(puVar7 + 0x17bf0);\n  *piVar5 = iVar2;\n  return (int)piVar5;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "char *e;" primitive_type (pointer_declarator "*e" * identifier) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_0002c314;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_0002c314" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0002c314" * (cast_expression "(int *)PTR___stack_chk_guard_0002c314" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280)" (parenthesized_expression "(*(code *)PTR_getenv_0002c2d8)" ( (pointer_expression "*(code *)PTR_getenv_0002c2d8" * (cast_expression "(code *)PTR_getenv_0002c2d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0002c118 + -0x5280)" ( (binary_expression "PTR_DAT_0002c118 + -0x5280" identifier + number_literal) ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    iVar2 = 0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    iVar2 = 0x31069;\n  }\n  else {\n    iVar2 = (*(code *)PTR_strtol_0002c244)(pcVar1,&e,10);\n    if (*e != '\0') {\n      iVar2 = 0x31069;\n    }\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = 0x31069;\n  }" { (expression_statement "iVar2 = 0x31069;" (assignment_expression "iVar2 = 0x31069" identifier = number_literal) ;) }) (else_clause "else if (*pcVar1 == '\0') {\n    iVar2 = 0x31069;\n  }\n  else {\n    iVar2 = (*(code *)PTR_strtol_0002c244)(pcVar1,&e,10);\n    if (*e != '\0') {\n      iVar2 = 0x31069;\n    }\n  }" else (if_statement "if (*pcVar1 == '\0') {\n    iVar2 = 0x31069;\n  }\n  else {\n    iVar2 = (*(code *)PTR_strtol_0002c244)(pcVar1,&e,10);\n    if (*e != '\0') {\n      iVar2 = 0x31069;\n    }\n  }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = 0x31069;\n  }" { (expression_statement "iVar2 = 0x31069;" (assignment_expression "iVar2 = 0x31069" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = (*(code *)PTR_strtol_0002c244)(pcVar1,&e,10);\n    if (*e != '\0') {\n      iVar2 = 0x31069;\n    }\n  }" else (compound_statement "{\n    iVar2 = (*(code *)PTR_strtol_0002c244)(pcVar1,&e,10);\n    if (*e != '\0') {\n      iVar2 = 0x31069;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_strtol_0002c244)(pcVar1,&e,10);" (assignment_expression "iVar2 = (*(code *)PTR_strtol_0002c244)(pcVar1,&e,10)" identifier = (call_expression "(*(code *)PTR_strtol_0002c244)(pcVar1,&e,10)" (parenthesized_expression "(*(code *)PTR_strtol_0002c244)" ( (pointer_expression "*(code *)PTR_strtol_0002c244" * (cast_expression "(code *)PTR_strtol_0002c244" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1,&e,10)" ( identifier , (pointer_expression "&e" & identifier) , number_literal )))) ;) (if_statement "if (*e != '\0') {\n      iVar2 = 0x31069;\n    }" if (parenthesized_expression "(*e != '\0')" ( (binary_expression "*e != '\0'" (pointer_expression "*e" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar2 = 0x31069;\n    }" { (expression_statement "iVar2 = 0x31069;" (assignment_expression "iVar2 = 0x31069" identifier = number_literal) ;) })) }))))) (if_statement "if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_c == *(int *)PTR___stack_chk_guard_0002c314)" ( (binary_expression "local_c == *(int *)PTR___stack_chk_guard_0002c314" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_0002c314" * (cast_expression "(int *)PTR___stack_chk_guard_0002c314" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar2 = local_c;" (assignment_expression "iVar2 = local_c" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_fail_0002c300;" (assignment_expression "puVar7 = PTR___stack_chk_fail_0002c300" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0002c300)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002c300)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002c300)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002c300" * (cast_expression "(code *)PTR___stack_chk_fail_0002c300" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar2 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    iVar2 = (**(code **)(puVar7 + 0x17bb8))();\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    iVar2 = (**(code **)(puVar7 + 0x17bb8))();\n    return iVar2;\n  }" { (expression_statement "(**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));" (call_expression "(**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94))" (parenthesized_expression "(**(code **)(puVar7 + 0x17c64))" ( (pointer_expression "**(code **)(puVar7 + 0x17c64)" * (pointer_expression "*(code **)(puVar7 + 0x17c64)" * (cast_expression "(code **)(puVar7 + 0x17c64)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17c64)" ( (binary_expression "puVar7 + 0x17c64" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94))" ( (binary_expression "*(int *)(puVar7 + 0x17a88) + -0x5270" (pointer_expression "*(int *)(puVar7 + 0x17a88)" * (cast_expression "(int *)(puVar7 + 0x17a88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x17a88)" ( (binary_expression "puVar7 + 0x17a88" identifier + number_literal) )))) + number_literal) , number_literal , number_literal , (pointer_expression "**(undefined4 **)(puVar7 + 0x17c94)" * (pointer_expression "*(undefined4 **)(puVar7 + 0x17c94)" * (cast_expression "(undefined4 **)(puVar7 + 0x17c94)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17c94)" ( (binary_expression "puVar7 + 0x17c94" identifier + number_literal) ))))) ))) ;) (expression_statement "iVar2 = (**(code **)(puVar7 + 0x17bb8))();" (assignment_expression "iVar2 = (**(code **)(puVar7 + 0x17bb8))()" identifier = (call_expression "(**(code **)(puVar7 + 0x17bb8))()" (parenthesized_expression "(**(code **)(puVar7 + 0x17bb8))" ( (pointer_expression "**(code **)(puVar7 + 0x17bb8)" * (pointer_expression "*(code **)(puVar7 + 0x17bb8)" * (cast_expression "(code **)(puVar7 + 0x17bb8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bb8)" ( (binary_expression "puVar7 + 0x17bb8" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar3 = (**(code **)(puVar7 + 0x17be4))();" (assignment_expression "iVar3 = (**(code **)(puVar7 + 0x17be4))()" identifier = (call_expression "(**(code **)(puVar7 + 0x17be4))()" (parenthesized_expression "(**(code **)(puVar7 + 0x17be4))" ( (pointer_expression "**(code **)(puVar7 + 0x17be4)" * (pointer_expression "*(code **)(puVar7 + 0x17be4)" * (cast_expression "(code **)(puVar7 + 0x17be4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17be4)" ( (binary_expression "puVar7 + 0x17be4" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar2)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar5 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar2 = iVar6;\n    if (iVar4 == 0) {\n      iVar2 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar2;\n    }\n  }" if (parenthesized_expression "((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar2))" ( (binary_expression "(iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar2)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar6 = iVar3 + 1, 6 < iVar6 - iVar2)" ( (comma_expression "iVar6 = iVar3 + 1, 6 < iVar6 - iVar2" (assignment_expression "iVar6 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) , (binary_expression "6 < iVar6 - iVar2" number_literal < (binary_expression "iVar6 - iVar2" identifier - identifier))) ))) )) (compound_statement "{\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar5 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar2 = iVar6;\n    if (iVar4 == 0) {\n      iVar2 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar2;\n    }\n  }" { (expression_statement "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);" (assignment_expression "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7)" identifier = (call_expression "(**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7)" (parenthesized_expression "(**(code **)(puVar7 + 0x17bbc))" ( (pointer_expression "**(code **)(puVar7 + 0x17bbc)" * (pointer_expression "*(code **)(puVar7 + 0x17bbc)" * (cast_expression "(code **)(puVar7 + 0x17bbc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bbc)" ( (binary_expression "puVar7 + 0x17bbc" identifier + number_literal) ))))) )) (argument_list "(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7)" ( (binary_expression "iVar3 + -6" identifier + number_literal) , (binary_expression "*(int *)(puVar7 + 0x17a88) + -0x5238" (pointer_expression "*(int *)(puVar7 + 0x17a88)" * (cast_expression "(int *)(puVar7 + 0x17a88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x17a88)" ( (binary_expression "puVar7 + 0x17a88" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (expression_statement "piVar5 = *(int **)(puVar7 + 0x17a98);" (assignment_expression "piVar5 = *(int **)(puVar7 + 0x17a98)" identifier = (pointer_expression "*(int **)(puVar7 + 0x17a98)" * (cast_expression "(int **)(puVar7 + 0x17a98)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17a98)" ( (binary_expression "puVar7 + 0x17a98" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 != 0) goto LAB_00014748;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00014748;" goto statement_identifier ;)) (expression_statement "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);" (assignment_expression "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3)" identifier = (call_expression "(**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3)" (parenthesized_expression "(**(code **)(puVar7 + 0x17bbc))" ( (pointer_expression "**(code **)(puVar7 + 0x17bbc)" * (pointer_expression "*(code **)(puVar7 + 0x17bbc)" * (cast_expression "(code **)(puVar7 + 0x17bbc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bbc)" ( (binary_expression "puVar7 + 0x17bbc" identifier + number_literal) ))))) )) (argument_list "(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3)" ( identifier , (binary_expression "*(int *)(puVar7 + 0x17a88) + -0x5230" (pointer_expression "*(int *)(puVar7 + 0x17a88)" * (cast_expression "(int *)(puVar7 + 0x17a88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x17a88)" ( (binary_expression "puVar7 + 0x17a88" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (expression_statement "iVar2 = iVar6;" (assignment_expression "iVar2 = iVar6" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n      iVar2 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar2;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar2;\n    }" { (expression_statement "iVar2 = iVar3 + 4;" (assignment_expression "iVar2 = iVar3 + 4" identifier = (binary_expression "iVar3 + 4" identifier + number_literal)) ;) (expression_statement "**(int **)(puVar7 + 0x17bd0) = iVar2;" (assignment_expression "**(int **)(puVar7 + 0x17bd0) = iVar2" (pointer_expression "**(int **)(puVar7 + 0x17bd0)" * (pointer_expression "*(int **)(puVar7 + 0x17bd0)" * (cast_expression "(int **)(puVar7 + 0x17bd0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bd0)" ( (binary_expression "puVar7 + 0x17bd0" identifier + number_literal) ))))) = identifier) ;) })) })) (expression_statement "piVar5 = *(int **)(puVar7 + 0x17a98);" (assignment_expression "piVar5 = *(int **)(puVar7 + 0x17a98)" identifier = (pointer_expression "*(int **)(puVar7 + 0x17a98)" * (cast_expression "(int **)(puVar7 + 0x17a98)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17a98)" ( (binary_expression "puVar7 + 0x17a98" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00014748:\n  *piVar5 = iVar2;" statement_identifier : (expression_statement "*piVar5 = iVar2;" (assignment_expression "*piVar5 = iVar2" (pointer_expression "*piVar5" * identifier) = identifier) ;)) (expression_statement "piVar5 = *(int **)(puVar7 + 0x17bf0);" (assignment_expression "piVar5 = *(int **)(puVar7 + 0x17bf0)" identifier = (pointer_expression "*(int **)(puVar7 + 0x17bf0)" * (cast_expression "(int **)(puVar7 + 0x17bf0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bf0)" ( (binary_expression "puVar7 + 0x17bf0" identifier + number_literal) ))))) ;) (expression_statement "*piVar5 = iVar2;" (assignment_expression "*piVar5 = iVar2" (pointer_expression "*piVar5" * identifier) = identifier) ;) (return_statement "return (int)piVar5;" return (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) ;) })))
(translation_unit "int * posix2_version(void)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  char *local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_0002c314;\n  pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);\n  if (pcVar1 == (char *)0x0) {\n    piVar2 = (int *)0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return piVar2;\n  }\n  iVar5 = local_c;\n  puVar7 = PTR___stack_chk_fail_0002c300;\n  (*(code *)PTR___stack_chk_fail_0002c300)();\n  if (iVar5 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();\n    return piVar2;\n  }\n  iVar3 = (**(code **)(puVar7 + 0x17be4))();\n  if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar2 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar5 = iVar6;\n    if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }\n  }\n  piVar2 = *(int **)(puVar7 + 0x17a98);\nLAB_00014748:\n  *piVar2 = iVar5;\n  piVar2 = *(int **)(puVar7 + 0x17bf0);\n  *piVar2 = iVar5;\n  return piVar2;\n}\n\n" (function_definition "int * posix2_version(void)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  char *local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_0002c314;\n  pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);\n  if (pcVar1 == (char *)0x0) {\n    piVar2 = (int *)0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return piVar2;\n  }\n  iVar5 = local_c;\n  puVar7 = PTR___stack_chk_fail_0002c300;\n  (*(code *)PTR___stack_chk_fail_0002c300)();\n  if (iVar5 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();\n    return piVar2;\n  }\n  iVar3 = (**(code **)(puVar7 + 0x17be4))();\n  if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar2 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar5 = iVar6;\n    if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }\n  }\n  piVar2 = *(int **)(puVar7 + 0x17a98);\nLAB_00014748:\n  *piVar2 = iVar5;\n  piVar2 = *(int **)(puVar7 + 0x17bf0);\n  *piVar2 = iVar5;\n  return piVar2;\n}" primitive_type (pointer_declarator "* posix2_version(void)" * (function_declarator "posix2_version(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  char *local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_0002c314;\n  pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);\n  if (pcVar1 == (char *)0x0) {\n    piVar2 = (int *)0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return piVar2;\n  }\n  iVar5 = local_c;\n  puVar7 = PTR___stack_chk_fail_0002c300;\n  (*(code *)PTR___stack_chk_fail_0002c300)();\n  if (iVar5 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();\n    return piVar2;\n  }\n  iVar3 = (**(code **)(puVar7 + 0x17be4))();\n  if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar2 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar5 = iVar6;\n    if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }\n  }\n  piVar2 = *(int **)(puVar7 + 0x17a98);\nLAB_00014748:\n  *piVar2 = iVar5;\n  piVar2 = *(int **)(puVar7 + 0x17bf0);\n  *piVar2 = iVar5;\n  return piVar2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "char *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_0002c314;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_0002c314" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0002c314" * (cast_expression "(int *)PTR___stack_chk_guard_0002c314" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280)" (parenthesized_expression "(*(code *)PTR_getenv_0002c2d8)" ( (pointer_expression "*(code *)PTR_getenv_0002c2d8" * (cast_expression "(code *)PTR_getenv_0002c2d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0002c118 + -0x5280)" ( (binary_expression "PTR_DAT_0002c118 + -0x5280" identifier + number_literal) ))))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    piVar2 = (int *)0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = (int *)0x31069;\n  }" { (expression_statement "piVar2 = (int *)0x31069;" (assignment_expression "piVar2 = (int *)0x31069" identifier = (cast_expression "(int *)0x31069" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" else (if_statement "if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar2 = (int *)0x31069;\n  }" { (expression_statement "piVar2 = (int *)0x31069;" (assignment_expression "piVar2 = (int *)0x31069" identifier = (cast_expression "(int *)0x31069" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" else (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" { (expression_statement "piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10)" identifier = (cast_expression "(int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10)" (parenthesized_expression "(*(code *)PTR_strtol_0002c244)" ( (pointer_expression "*(code *)PTR_strtol_0002c244" * (cast_expression "(code *)PTR_strtol_0002c244" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1,&local_10,10)" ( identifier , (pointer_expression "&local_10" & identifier) , number_literal ))))) ;) (if_statement "if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }" if (parenthesized_expression "(*local_10 != '\0')" ( (binary_expression "*local_10 != '\0'" (pointer_expression "*local_10" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar2 = (int *)0x31069;\n    }" { (expression_statement "piVar2 = (int *)0x31069;" (assignment_expression "piVar2 = (int *)0x31069" identifier = (cast_expression "(int *)0x31069" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }))))) (if_statement "if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return piVar2;\n  }" if (parenthesized_expression "(local_c == *(int *)PTR___stack_chk_guard_0002c314)" ( (binary_expression "local_c == *(int *)PTR___stack_chk_guard_0002c314" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_0002c314" * (cast_expression "(int *)PTR___stack_chk_guard_0002c314" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return piVar2;\n  }" { (return_statement "return piVar2;" return identifier ;) })) (expression_statement "iVar5 = local_c;" (assignment_expression "iVar5 = local_c" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_fail_0002c300;" (assignment_expression "puVar7 = PTR___stack_chk_fail_0002c300" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0002c300)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002c300)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002c300)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0002c300" * (cast_expression "(code *)PTR___stack_chk_fail_0002c300" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar5 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();\n    return piVar2;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();\n    return piVar2;\n  }" { (expression_statement "(**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));" (call_expression "(**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94))" (parenthesized_expression "(**(code **)(puVar7 + 0x17c64))" ( (pointer_expression "**(code **)(puVar7 + 0x17c64)" * (pointer_expression "*(code **)(puVar7 + 0x17c64)" * (cast_expression "(code **)(puVar7 + 0x17c64)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17c64)" ( (binary_expression "puVar7 + 0x17c64" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94))" ( (binary_expression "*(int *)(puVar7 + 0x17a88) + -0x5270" (pointer_expression "*(int *)(puVar7 + 0x17a88)" * (cast_expression "(int *)(puVar7 + 0x17a88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x17a88)" ( (binary_expression "puVar7 + 0x17a88" identifier + number_literal) )))) + number_literal) , number_literal , number_literal , (pointer_expression "**(undefined4 **)(puVar7 + 0x17c94)" * (pointer_expression "*(undefined4 **)(puVar7 + 0x17c94)" * (cast_expression "(undefined4 **)(puVar7 + 0x17c94)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17c94)" ( (binary_expression "puVar7 + 0x17c94" identifier + number_literal) ))))) ))) ;) (expression_statement "piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();" (assignment_expression "piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))()" identifier = (cast_expression "(int *)(**(code **)(puVar7 + 0x17bb8))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar7 + 0x17bb8))()" (parenthesized_expression "(**(code **)(puVar7 + 0x17bb8))" ( (pointer_expression "**(code **)(puVar7 + 0x17bb8)" * (pointer_expression "*(code **)(puVar7 + 0x17bb8)" * (cast_expression "(code **)(puVar7 + 0x17bb8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bb8)" ( (binary_expression "puVar7 + 0x17bb8" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return piVar2;" return identifier ;) })) (expression_statement "iVar3 = (**(code **)(puVar7 + 0x17be4))();" (assignment_expression "iVar3 = (**(code **)(puVar7 + 0x17be4))()" identifier = (call_expression "(**(code **)(puVar7 + 0x17be4))()" (parenthesized_expression "(**(code **)(puVar7 + 0x17be4))" ( (pointer_expression "**(code **)(puVar7 + 0x17be4)" * (pointer_expression "*(code **)(puVar7 + 0x17be4)" * (cast_expression "(code **)(puVar7 + 0x17be4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17be4)" ( (binary_expression "puVar7 + 0x17be4" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar2 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar5 = iVar6;\n    if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }\n  }" if (parenthesized_expression "((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5))" ( (binary_expression "(iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)" ( (comma_expression "iVar6 = iVar3 + 1, 6 < iVar6 - iVar5" (assignment_expression "iVar6 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) , (binary_expression "6 < iVar6 - iVar5" number_literal < (binary_expression "iVar6 - iVar5" identifier - identifier))) ))) )) (compound_statement "{\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar2 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar5 = iVar6;\n    if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }\n  }" { (expression_statement "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);" (assignment_expression "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7)" identifier = (call_expression "(**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7)" (parenthesized_expression "(**(code **)(puVar7 + 0x17bbc))" ( (pointer_expression "**(code **)(puVar7 + 0x17bbc)" * (pointer_expression "*(code **)(puVar7 + 0x17bbc)" * (cast_expression "(code **)(puVar7 + 0x17bbc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bbc)" ( (binary_expression "puVar7 + 0x17bbc" identifier + number_literal) ))))) )) (argument_list "(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7)" ( (binary_expression "iVar3 + -6" identifier + number_literal) , (binary_expression "*(int *)(puVar7 + 0x17a88) + -0x5238" (pointer_expression "*(int *)(puVar7 + 0x17a88)" * (cast_expression "(int *)(puVar7 + 0x17a88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x17a88)" ( (binary_expression "puVar7 + 0x17a88" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (expression_statement "piVar2 = *(int **)(puVar7 + 0x17a98);" (assignment_expression "piVar2 = *(int **)(puVar7 + 0x17a98)" identifier = (pointer_expression "*(int **)(puVar7 + 0x17a98)" * (cast_expression "(int **)(puVar7 + 0x17a98)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17a98)" ( (binary_expression "puVar7 + 0x17a98" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 != 0) goto LAB_00014748;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00014748;" goto statement_identifier ;)) (expression_statement "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);" (assignment_expression "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3)" identifier = (call_expression "(**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3)" (parenthesized_expression "(**(code **)(puVar7 + 0x17bbc))" ( (pointer_expression "**(code **)(puVar7 + 0x17bbc)" * (pointer_expression "*(code **)(puVar7 + 0x17bbc)" * (cast_expression "(code **)(puVar7 + 0x17bbc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bbc)" ( (binary_expression "puVar7 + 0x17bbc" identifier + number_literal) ))))) )) (argument_list "(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3)" ( identifier , (binary_expression "*(int *)(puVar7 + 0x17a88) + -0x5230" (pointer_expression "*(int *)(puVar7 + 0x17a88)" * (cast_expression "(int *)(puVar7 + 0x17a88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x17a88)" ( (binary_expression "puVar7 + 0x17a88" identifier + number_literal) )))) + number_literal) , number_literal )))) ;) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }" { (expression_statement "iVar5 = iVar3 + 4;" (assignment_expression "iVar5 = iVar3 + 4" identifier = (binary_expression "iVar3 + 4" identifier + number_literal)) ;) (expression_statement "**(int **)(puVar7 + 0x17bd0) = iVar5;" (assignment_expression "**(int **)(puVar7 + 0x17bd0) = iVar5" (pointer_expression "**(int **)(puVar7 + 0x17bd0)" * (pointer_expression "*(int **)(puVar7 + 0x17bd0)" * (cast_expression "(int **)(puVar7 + 0x17bd0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bd0)" ( (binary_expression "puVar7 + 0x17bd0" identifier + number_literal) ))))) = identifier) ;) })) })) (expression_statement "piVar2 = *(int **)(puVar7 + 0x17a98);" (assignment_expression "piVar2 = *(int **)(puVar7 + 0x17a98)" identifier = (pointer_expression "*(int **)(puVar7 + 0x17a98)" * (cast_expression "(int **)(puVar7 + 0x17a98)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17a98)" ( (binary_expression "puVar7 + 0x17a98" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00014748:\n  *piVar2 = iVar5;" statement_identifier : (expression_statement "*piVar2 = iVar5;" (assignment_expression "*piVar2 = iVar5" (pointer_expression "*piVar2" * identifier) = identifier) ;)) (expression_statement "piVar2 = *(int **)(puVar7 + 0x17bf0);" (assignment_expression "piVar2 = *(int **)(puVar7 + 0x17bf0)" identifier = (pointer_expression "*(int **)(puVar7 + 0x17bf0)" * (cast_expression "(int **)(puVar7 + 0x17bf0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x17bf0)" ( (binary_expression "puVar7 + 0x17bf0" identifier + number_literal) ))))) ;) (expression_statement "*piVar2 = iVar5;" (assignment_expression "*piVar2 = iVar5" (pointer_expression "*piVar2" * identifier) = identifier) ;) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) }))))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = 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 ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (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 ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT , LIT , (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;) (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 * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( )))) ;) (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 * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (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 ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = IDENT) ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int * posix2_version(void)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  char *local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_0002c314;\n  pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);\n  if (pcVar1 == (char *)0x0) {\n    piVar2 = (int *)0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return piVar2;\n  }\n  iVar5 = local_c;\n  puVar7 = PTR___stack_chk_fail_0002c300;\n  (*(code *)PTR___stack_chk_fail_0002c300)();\n  if (iVar5 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();\n    return piVar2;\n  }\n  iVar3 = (**(code **)(puVar7 + 0x17be4))();\n  if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar2 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar5 = iVar6;\n    if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }\n  }\n  piVar2 = *(int **)(puVar7 + 0x17a98);\nLAB_00014748:\n  *piVar2 = iVar5;\n  piVar2 = *(int **)(puVar7 + 0x17bf0);\n  *piVar2 = iVar5;\n  return piVar2;\n}" (primitive_type "int") (pointer_declarator "* posix2_version(void)" (* "*") (function_declarator "posix2_version(void)" (identifier "posix2_version") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  char *local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_0002c314;\n  pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);\n  if (pcVar1 == (char *)0x0) {\n    piVar2 = (int *)0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }\n  if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return piVar2;\n  }\n  iVar5 = local_c;\n  puVar7 = PTR___stack_chk_fail_0002c300;\n  (*(code *)PTR___stack_chk_fail_0002c300)();\n  if (iVar5 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();\n    return piVar2;\n  }\n  iVar3 = (**(code **)(puVar7 + 0x17be4))();\n  if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar2 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar5 = iVar6;\n    if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }\n  }\n  piVar2 = *(int **)(puVar7 + 0x17a98);\nLAB_00014748:\n  *piVar2 = iVar5;\n  piVar2 = *(int **)(puVar7 + 0x17bf0);\n  *piVar2 = iVar5;\n  return piVar2;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "char *local_10;" (primitive_type "char") (pointer_declarator "*local_10" (* "*") (identifier "local_10")) (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_0002c314;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_0002c314" (identifier "local_c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0002c314" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0002c314" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0002c314")))) (; ";")) (expression_statement "pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280)" (identifier "pcVar1") (= "=") (cast_expression "(char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280)" (parenthesized_expression "(*(code *)PTR_getenv_0002c2d8)" (( "(") (pointer_expression "*(code *)PTR_getenv_0002c2d8" (* "*") (cast_expression "(code *)PTR_getenv_0002c2d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getenv_0002c2d8"))) () ")")) (argument_list "(PTR_DAT_0002c118 + -0x5280)" (( "(") (binary_expression "PTR_DAT_0002c118 + -0x5280" (identifier "PTR_DAT_0002c118") (+ "+") (number_literal "-0x5280")) () ")"))))) (; ";")) (if_statement "if (pcVar1 == (char *)0x0) {\n    piVar2 = (int *)0x31069;\n  }\n  else if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" (if "if") (parenthesized_expression "(pcVar1 == (char *)0x0)" (( "(") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar2 = (int *)0x31069;\n  }" ({ "{") (expression_statement "piVar2 = (int *)0x31069;" (assignment_expression "piVar2 = (int *)0x31069" (identifier "piVar2") (= "=") (cast_expression "(int *)0x31069" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x31069"))) (; ";")) (} "}")) (else_clause "else if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" (else "else") (if_statement "if (*pcVar1 == '\0') {\n    piVar2 = (int *)0x31069;\n  }\n  else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" (if "if") (parenthesized_expression "(*pcVar1 == '\0')" (( "(") (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    piVar2 = (int *)0x31069;\n  }" ({ "{") (expression_statement "piVar2 = (int *)0x31069;" (assignment_expression "piVar2 = (int *)0x31069" (identifier "piVar2") (= "=") (cast_expression "(int *)0x31069" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x31069"))) (; ";")) (} "}")) (else_clause "else {\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" (else "else") (compound_statement "{\n    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);\n    if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }\n  }" ({ "{") (expression_statement "piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10)" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10)" (parenthesized_expression "(*(code *)PTR_strtol_0002c244)" (( "(") (pointer_expression "*(code *)PTR_strtol_0002c244" (* "*") (cast_expression "(code *)PTR_strtol_0002c244" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strtol_0002c244"))) () ")")) (argument_list "(pcVar1,&local_10,10)" (( "(") (identifier "pcVar1") (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) (, ",") (number_literal "10") () ")"))))) (; ";")) (if_statement "if (*local_10 != '\0') {\n      piVar2 = (int *)0x31069;\n    }" (if "if") (parenthesized_expression "(*local_10 != '\0')" (( "(") (binary_expression "*local_10 != '\0'" (pointer_expression "*local_10" (* "*") (identifier "local_10")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piVar2 = (int *)0x31069;\n    }" ({ "{") (expression_statement "piVar2 = (int *)0x31069;" (assignment_expression "piVar2 = (int *)0x31069" (identifier "piVar2") (= "=") (cast_expression "(int *)0x31069" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x31069"))) (; ";")) (} "}"))) (} "}")))))) (if_statement "if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {\n    return piVar2;\n  }" (if "if") (parenthesized_expression "(local_c == *(int *)PTR___stack_chk_guard_0002c314)" (( "(") (binary_expression "local_c == *(int *)PTR___stack_chk_guard_0002c314" (identifier "local_c") (== "==") (pointer_expression "*(int *)PTR___stack_chk_guard_0002c314" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0002c314" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0002c314")))) () ")")) (compound_statement "{\n    return piVar2;\n  }" ({ "{") (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (expression_statement "iVar5 = local_c;" (assignment_expression "iVar5 = local_c" (identifier "iVar5") (= "=") (identifier "local_c")) (; ";")) (expression_statement "puVar7 = PTR___stack_chk_fail_0002c300;" (assignment_expression "puVar7 = PTR___stack_chk_fail_0002c300" (identifier "puVar7") (= "=") (identifier "PTR___stack_chk_fail_0002c300")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0002c300)();" (call_expression "(*(code *)PTR___stack_chk_fail_0002c300)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0002c300)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0002c300" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0002c300" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0002c300"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iVar5 == 0) {\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();\n    return piVar2;\n  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));\n    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();\n    return piVar2;\n  }" ({ "{") (expression_statement "(**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));" (call_expression "(**(code **)(puVar7 + 0x17c64))\n              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94))" (parenthesized_expression "(**(code **)(puVar7 + 0x17c64))" (( "(") (pointer_expression "**(code **)(puVar7 + 0x17c64)" (* "*") (pointer_expression "*(code **)(puVar7 + 0x17c64)" (* "*") (cast_expression "(code **)(puVar7 + 0x17c64)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x17c64)" (( "(") (binary_expression "puVar7 + 0x17c64" (identifier "puVar7") (+ "+") (number_literal "0x17c64")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94))" (( "(") (binary_expression "*(int *)(puVar7 + 0x17a88) + -0x5270" (pointer_expression "*(int *)(puVar7 + 0x17a88)" (* "*") (cast_expression "(int *)(puVar7 + 0x17a88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x17a88)" (( "(") (binary_expression "puVar7 + 0x17a88" (identifier "puVar7") (+ "+") (number_literal "0x17a88")) () ")")))) (+ "+") (number_literal "-0x5270")) (, ",") (number_literal "1") (, ",") (number_literal "0x37") (, ",") (pointer_expression "**(undefined4 **)(puVar7 + 0x17c94)" (* "*") (pointer_expression "*(undefined4 **)(puVar7 + 0x17c94)" (* "*") (cast_expression "(undefined4 **)(puVar7 + 0x17c94)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x17c94)" (( "(") (binary_expression "puVar7 + 0x17c94" (identifier "puVar7") (+ "+") (number_literal "0x17c94")) () ")"))))) () ")"))) (; ";")) (expression_statement "piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();" (assignment_expression "piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))()" (identifier "piVar2") (= "=") (cast_expression "(int *)(**(code **)(puVar7 + 0x17bb8))()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar7 + 0x17bb8))()" (parenthesized_expression "(**(code **)(puVar7 + 0x17bb8))" (( "(") (pointer_expression "**(code **)(puVar7 + 0x17bb8)" (* "*") (pointer_expression "*(code **)(puVar7 + 0x17bb8)" (* "*") (cast_expression "(code **)(puVar7 + 0x17bb8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x17bb8)" (( "(") (binary_expression "puVar7 + 0x17bb8" (identifier "puVar7") (+ "+") (number_literal "0x17bb8")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (expression_statement "iVar3 = (**(code **)(puVar7 + 0x17be4))();" (assignment_expression "iVar3 = (**(code **)(puVar7 + 0x17be4))()" (identifier "iVar3") (= "=") (call_expression "(**(code **)(puVar7 + 0x17be4))()" (parenthesized_expression "(**(code **)(puVar7 + 0x17be4))" (( "(") (pointer_expression "**(code **)(puVar7 + 0x17be4)" (* "*") (pointer_expression "*(code **)(puVar7 + 0x17be4)" (* "*") (cast_expression "(code **)(puVar7 + 0x17be4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x17be4)" (( "(") (binary_expression "puVar7 + 0x17be4" (identifier "puVar7") (+ "+") (number_literal "0x17be4")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)) {\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar2 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar5 = iVar6;\n    if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }\n  }" (if "if") (parenthesized_expression "((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5))" (( "(") (binary_expression "(iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)" (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)" (( "(") (comma_expression "iVar6 = iVar3 + 1, 6 < iVar6 - iVar5" (assignment_expression "iVar6 = iVar3 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (, ",") (binary_expression "6 < iVar6 - iVar5" (number_literal "6") (< "<") (binary_expression "iVar6 - iVar5" (identifier "iVar6") (- "-") (identifier "iVar5")))) () ")"))) () ")")) (compound_statement "{\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);\n    piVar2 = *(int **)(puVar7 + 0x17a98);\n    if (iVar4 != 0) goto LAB_00014748;\n    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);\n    iVar5 = iVar6;\n    if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }\n  }" ({ "{") (expression_statement "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);" (assignment_expression "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7)" (parenthesized_expression "(**(code **)(puVar7 + 0x17bbc))" (( "(") (pointer_expression "**(code **)(puVar7 + 0x17bbc)" (* "*") (pointer_expression "*(code **)(puVar7 + 0x17bbc)" (* "*") (cast_expression "(code **)(puVar7 + 0x17bbc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x17bbc)" (( "(") (binary_expression "puVar7 + 0x17bbc" (identifier "puVar7") (+ "+") (number_literal "0x17bbc")) () ")"))))) () ")")) (argument_list "(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7)" (( "(") (binary_expression "iVar3 + -6" (identifier "iVar3") (+ "+") (number_literal "-6")) (, ",") (binary_expression "*(int *)(puVar7 + 0x17a88) + -0x5238" (pointer_expression "*(int *)(puVar7 + 0x17a88)" (* "*") (cast_expression "(int *)(puVar7 + 0x17a88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x17a88)" (( "(") (binary_expression "puVar7 + 0x17a88" (identifier "puVar7") (+ "+") (number_literal "0x17a88")) () ")")))) (+ "+") (number_literal "-0x5238")) (, ",") (number_literal "7") () ")")))) (; ";")) (expression_statement "piVar2 = *(int **)(puVar7 + 0x17a98);" (assignment_expression "piVar2 = *(int **)(puVar7 + 0x17a98)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(puVar7 + 0x17a98)" (* "*") (cast_expression "(int **)(puVar7 + 0x17a98)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x17a98)" (( "(") (binary_expression "puVar7 + 0x17a98" (identifier "puVar7") (+ "+") (number_literal "0x17a98")) () ")"))))) (; ";")) (if_statement "if (iVar4 != 0) goto LAB_00014748;" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00014748;" (goto "goto") (statement_identifier "LAB_00014748") (; ";"))) (expression_statement "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);" (assignment_expression "iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3)" (parenthesized_expression "(**(code **)(puVar7 + 0x17bbc))" (( "(") (pointer_expression "**(code **)(puVar7 + 0x17bbc)" (* "*") (pointer_expression "*(code **)(puVar7 + 0x17bbc)" (* "*") (cast_expression "(code **)(puVar7 + 0x17bbc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x17bbc)" (( "(") (binary_expression "puVar7 + 0x17bbc" (identifier "puVar7") (+ "+") (number_literal "0x17bbc")) () ")"))))) () ")")) (argument_list "(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3)" (( "(") (identifier "iVar6") (, ",") (binary_expression "*(int *)(puVar7 + 0x17a88) + -0x5230" (pointer_expression "*(int *)(puVar7 + 0x17a88)" (* "*") (cast_expression "(int *)(puVar7 + 0x17a88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x17a88)" (( "(") (binary_expression "puVar7 + 0x17a88" (identifier "puVar7") (+ "+") (number_literal "0x17a88")) () ")")))) (+ "+") (number_literal "-0x5230")) (, ",") (number_literal "3") () ")")))) (; ";")) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" (identifier "iVar5") (= "=") (identifier "iVar6")) (; ";")) (if_statement "if (iVar4 == 0) {\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = iVar3 + 4;\n      **(int **)(puVar7 + 0x17bd0) = iVar5;\n    }" ({ "{") (expression_statement "iVar5 = iVar3 + 4;" (assignment_expression "iVar5 = iVar3 + 4" (identifier "iVar5") (= "=") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "**(int **)(puVar7 + 0x17bd0) = iVar5;" (assignment_expression "**(int **)(puVar7 + 0x17bd0) = iVar5" (pointer_expression "**(int **)(puVar7 + 0x17bd0)" (* "*") (pointer_expression "*(int **)(puVar7 + 0x17bd0)" (* "*") (cast_expression "(int **)(puVar7 + 0x17bd0)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x17bd0)" (( "(") (binary_expression "puVar7 + 0x17bd0" (identifier "puVar7") (+ "+") (number_literal "0x17bd0")) () ")"))))) (= "=") (identifier "iVar5")) (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar2 = *(int **)(puVar7 + 0x17a98);" (assignment_expression "piVar2 = *(int **)(puVar7 + 0x17a98)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(puVar7 + 0x17a98)" (* "*") (cast_expression "(int **)(puVar7 + 0x17a98)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x17a98)" (( "(") (binary_expression "puVar7 + 0x17a98" (identifier "puVar7") (+ "+") (number_literal "0x17a98")) () ")"))))) (; ";")) (labeled_statement "LAB_00014748:\n  *piVar2 = iVar5;" (statement_identifier "LAB_00014748") (: ":") (expression_statement "*piVar2 = iVar5;" (assignment_expression "*piVar2 = iVar5" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar5")) (; ";"))) (expression_statement "piVar2 = *(int **)(puVar7 + 0x17bf0);" (assignment_expression "piVar2 = *(int **)(puVar7 + 0x17bf0)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(puVar7 + 0x17bf0)" (* "*") (cast_expression "(int **)(puVar7 + 0x17bf0)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x17bf0)" (( "(") (binary_expression "puVar7 + 0x17bf0" (identifier "puVar7") (+ "+") (number_literal "0x17bf0")) () ")"))))) (; ";")) (expression_statement "*piVar2 = iVar5;" (assignment_expression "*piVar2 = iVar5" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar5")) (; ";")) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(void)

{
  char *var_2;
  int var_4;
  int var_6;
  int var_8;
  int *piVar5;
  int var_7;
  type_1 *var_5;
  char *e;
  int var_3;
  
  var_3 = *(int *)PTR___stack_chk_guard_0002c314;
  var_2 = (char *)(*(type_2 *)PTR_getenv_0002c2d8)(var_1 + -0x5280);
  if (var_2 == (char *)0x0) {
    var_4 = 0x31069;
  }
  else if (*var_2 == '\0') {
    var_4 = 0x31069;
  }
  else {
    var_4 = (*(type_2 *)PTR_strtol_0002c244)(var_2,&e,10);
    if (*e != '\0') {
      var_4 = 0x31069;
    }
  }
  if (var_3 == *(int *)PTR___stack_chk_guard_0002c314) {
    return var_4;
  }
  var_4 = var_3;
  var_5 = PTR___stack_chk_fail_0002c300;
  (*(type_2 *)PTR___stack_chk_fail_0002c300)();
  if (var_4 == 0) {
    (**(type_2 **)(var_5 + 0x17c64))
              (*(int *)(var_5 + 0x17a88) + -0x5270,1,0x37,**(type_3 **)(var_5 + 0x17c94));
    var_4 = (**(type_2 **)(var_5 + 0x17bb8))();
    return var_4;
  }
  var_6 = (**(type_2 **)(var_5 + 0x17be4))();
  if ((var_6 != 0) && (var_7 = var_6 + 1, 6 < var_7 - var_4)) {
    var_8 = (**(type_2 **)(var_5 + 0x17bbc))(var_6 + -6,*(int *)(var_5 + 0x17a88) + -0x5238,7);
    piVar5 = *(int **)(var_5 + 0x17a98);
    if (var_8 != 0) goto LAB_00014748;
    var_8 = (**(type_2 **)(var_5 + 0x17bbc))(var_7,*(int *)(var_5 + 0x17a88) + -0x5230,3);
    var_4 = var_7;
    if (var_8 == 0) {
      var_4 = var_6 + 4;
      **(int **)(var_5 + 0x17bd0) = var_4;
    }
  }
  piVar5 = *(int **)(var_5 + 0x17a98);
LAB_00014748:
  *piVar5 = var_4;
  piVar5 = *(int **)(var_5 + 0x17bf0);
  *piVar5 = var_4;
  return (int)piVar5;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (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 (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (number_literal) (number_literal) (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))))))))) (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: (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)))) (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: (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 (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (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 (identifier) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier)))))

int * MASKED(void)

{
  char *pcVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined *puVar7;
  char *local_10;
  int local_c;
  
  local_c = *(int *)PTR___stack_chk_guard_0002c314;
  pcVar1 = (char *)(*(code *)PTR_getenv_0002c2d8)(PTR_DAT_0002c118 + -0x5280);
  if (pcVar1 == (char *)0x0) {
    piVar2 = (int *)0x31069;
  }
  else if (*pcVar1 == '\0') {
    piVar2 = (int *)0x31069;
  }
  else {
    piVar2 = (int *)(*(code *)PTR_strtol_0002c244)(pcVar1,&local_10,10);
    if (*local_10 != '\0') {
      piVar2 = (int *)0x31069;
    }
  }
  if (local_c == *(int *)PTR___stack_chk_guard_0002c314) {
    return piVar2;
  }
  iVar5 = local_c;
  puVar7 = PTR___stack_chk_fail_0002c300;
  (*(code *)PTR___stack_chk_fail_0002c300)();
  if (iVar5 == 0) {
    (**(code **)(puVar7 + 0x17c64))
              (*(int *)(puVar7 + 0x17a88) + -0x5270,1,0x37,**(undefined4 **)(puVar7 + 0x17c94));
    piVar2 = (int *)(**(code **)(puVar7 + 0x17bb8))();
    return piVar2;
  }
  iVar3 = (**(code **)(puVar7 + 0x17be4))();
  if ((iVar3 != 0) && (iVar6 = iVar3 + 1, 6 < iVar6 - iVar5)) {
    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar3 + -6,*(int *)(puVar7 + 0x17a88) + -0x5238,7);
    piVar2 = *(int **)(puVar7 + 0x17a98);
    if (iVar4 != 0) goto LAB_00014748;
    iVar4 = (**(code **)(puVar7 + 0x17bbc))(iVar6,*(int *)(puVar7 + 0x17a88) + -0x5230,3);
    iVar5 = iVar6;
    if (iVar4 == 0) {
      iVar5 = iVar3 + 4;
      **(int **)(puVar7 + 0x17bd0) = iVar5;
    }
  }
  piVar2 = *(int **)(puVar7 + 0x17a98);
LAB_00014748:
  *piVar2 = iVar5;
  piVar2 = *(int **)(puVar7 + 0x17bf0);
  *piVar2 = iVar5;
  return piVar2;
}

