
void sigchld_handler(int sig)

{
  int *piVar1;
  undefined4 *puVar2;
  int in_a1;
  undefined4 uVar3;
  
  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
  uVar3 = *puVar2;
  piVar1 = (int *)(PTR___environ_00145154 + -0x7040);
  *(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;
  if (*piVar1 != 0) {
    *puVar2 = uVar3;
    return;
  }
  waitchld(0,in_a1);
  *puVar2 = uVar3;
  return;
}



void FUN_00069044(void)

{
  int *piVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  
  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
  uVar3 = *puVar2;
  piVar1 = (int *)(PTR___environ_00145154 + -0x7040);
  *(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;
  if (*piVar1 != 0) {
    *puVar2 = uVar3;
    return;
  }
  FUN_00067f78();
  *puVar2 = uVar3;
  return;
}


lui gp,0xe
addiu gp,gp,0x34fc
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x6204(gp)
sw gp,0x10(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw ra,0x24(sp)
jalr t9
_nop
lw gp,0x10(sp)
or s0,v0,zero
lw s1,0x0(v0)
lw v1,-0x73ec(gp)
lw a0,-0x73ec(gp)
lw v0,-0x703c(v1)
lw a0,-0x7040(a0)
addiu v0,v0,0x1
beq a0,zero,0x000690b0
_sw v0,-0x703c(v1)
lw ra,0x24(sp)
sw s1,0x0(s0)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7550(gp)
addiu t9,t9,0x7f78
bal 0x00067f78
_nop
lw ra,0x24(sp)
sw s1,0x0(s0)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_00069044(void)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  uVar3 = *puVar2;\n  piVar1 = (int *)(PTR___environ_00145154 + -0x7040);\n  *(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;\n  if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }\n  FUN_00067f78();\n  *puVar2 = uVar3;\n  return;\n}\n\n" (function_definition "void FUN_00069044(void)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  uVar3 = *puVar2;\n  piVar1 = (int *)(PTR___environ_00145154 + -0x7040);\n  *(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;\n  if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }\n  FUN_00067f78();\n  *puVar2 = uVar3;\n  return;\n}" primitive_type (function_declarator "FUN_00069044(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  uVar3 = *puVar2;\n  piVar1 = (int *)(PTR___environ_00145154 + -0x7040);\n  *(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;\n  if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }\n  FUN_00067f78();\n  *puVar2 = uVar3;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "piVar1 = (int *)(PTR___environ_00145154 + -0x7040);" (assignment_expression "piVar1 = (int *)(PTR___environ_00145154 + -0x7040)" identifier = (cast_expression "(int *)(PTR___environ_00145154 + -0x7040)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x7040)" ( (binary_expression "PTR___environ_00145154 + -0x7040" identifier + number_literal) )))) ;) (expression_statement "*(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;" (assignment_expression "*(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x703c)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x703c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x703c)" ( (binary_expression "PTR___environ_00145154 + -0x703c" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR___environ_00145154 + -0x703c) + 1" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x703c)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x703c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x703c)" ( (binary_expression "PTR___environ_00145154 + -0x703c" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n    *puVar2 = uVar3;\n    return;\n  }" { (expression_statement "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00067f78();" (call_expression "FUN_00067f78()" identifier (argument_list "()" ( ))) ;) (expression_statement "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void sigchld_handler(int sig)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  int in_a1;\n  undefined4 uVar3;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  uVar3 = *puVar2;\n  piVar1 = (int *)(PTR___environ_00145154 + -0x7040);\n  *(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;\n  if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }\n  waitchld(0,in_a1);\n  *puVar2 = uVar3;\n  return;\n}\n\n" (function_definition "void sigchld_handler(int sig)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  int in_a1;\n  undefined4 uVar3;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  uVar3 = *puVar2;\n  piVar1 = (int *)(PTR___environ_00145154 + -0x7040);\n  *(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;\n  if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }\n  waitchld(0,in_a1);\n  *puVar2 = uVar3;\n  return;\n}" primitive_type (function_declarator "sigchld_handler(int sig)" identifier (parameter_list "(int sig)" ( (parameter_declaration "int sig" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  int in_a1;\n  undefined4 uVar3;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  uVar3 = *puVar2;\n  piVar1 = (int *)(PTR___environ_00145154 + -0x7040);\n  *(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;\n  if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }\n  waitchld(0,in_a1);\n  *puVar2 = uVar3;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int in_a1;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "piVar1 = (int *)(PTR___environ_00145154 + -0x7040);" (assignment_expression "piVar1 = (int *)(PTR___environ_00145154 + -0x7040)" identifier = (cast_expression "(int *)(PTR___environ_00145154 + -0x7040)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x7040)" ( (binary_expression "PTR___environ_00145154 + -0x7040" identifier + number_literal) )))) ;) (expression_statement "*(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;" (assignment_expression "*(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x703c)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x703c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x703c)" ( (binary_expression "PTR___environ_00145154 + -0x703c" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR___environ_00145154 + -0x703c) + 1" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x703c)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x703c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x703c)" ( (binary_expression "PTR___environ_00145154 + -0x703c" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n    *puVar2 = uVar3;\n    return;\n  }" { (expression_statement "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "waitchld(0,in_a1);" (call_expression "waitchld(0,in_a1)" identifier (argument_list "(0,in_a1)" ( number_literal , identifier ))) ;) (expression_statement "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00069044(void)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  uVar3 = *puVar2;\n  piVar1 = (int *)(PTR___environ_00145154 + -0x7040);\n  *(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;\n  if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }\n  FUN_00067f78();\n  *puVar2 = uVar3;\n  return;\n}\n\n" (function_definition "void FUN_00069044(void)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  uVar3 = *puVar2;\n  piVar1 = (int *)(PTR___environ_00145154 + -0x7040);\n  *(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;\n  if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }\n  FUN_00067f78();\n  *puVar2 = uVar3;\n  return;\n}" primitive_type (function_declarator "FUN_00069044(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  uVar3 = *puVar2;\n  piVar1 = (int *)(PTR___environ_00145154 + -0x7040);\n  *(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;\n  if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }\n  FUN_00067f78();\n  *puVar2 = uVar3;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "piVar1 = (int *)(PTR___environ_00145154 + -0x7040);" (assignment_expression "piVar1 = (int *)(PTR___environ_00145154 + -0x7040)" identifier = (cast_expression "(int *)(PTR___environ_00145154 + -0x7040)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x7040)" ( (binary_expression "PTR___environ_00145154 + -0x7040" identifier + number_literal) )))) ;) (expression_statement "*(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;" (assignment_expression "*(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x703c)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x703c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x703c)" ( (binary_expression "PTR___environ_00145154 + -0x703c" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR___environ_00145154 + -0x703c) + 1" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x703c)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x703c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x703c)" ( (binary_expression "PTR___environ_00145154 + -0x703c" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n    *puVar2 = uVar3;\n    return;\n  }" { (expression_statement "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00067f78();" (call_expression "FUN_00067f78()" identifier (argument_list "()" ( ))) ;) (expression_statement "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00069044(void)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  uVar3 = *puVar2;\n  piVar1 = (int *)(PTR___environ_00145154 + -0x7040);\n  *(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;\n  if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }\n  FUN_00067f78();\n  *puVar2 = uVar3;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00069044(void)" (identifier "FUN_00069044") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  uVar3 = *puVar2;\n  piVar1 = (int *)(PTR___environ_00145154 + -0x7040);\n  *(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;\n  if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }\n  FUN_00067f78();\n  *puVar2 = uVar3;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0014633c" (* "*") (cast_expression "(code *)PTR___errno_location_0014633c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0014633c"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" (identifier "uVar3") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "piVar1 = (int *)(PTR___environ_00145154 + -0x7040);" (assignment_expression "piVar1 = (int *)(PTR___environ_00145154 + -0x7040)" (identifier "piVar1") (= "=") (cast_expression "(int *)(PTR___environ_00145154 + -0x7040)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR___environ_00145154 + -0x7040)" (( "(") (binary_expression "PTR___environ_00145154 + -0x7040" (identifier "PTR___environ_00145154") (+ "+") (number_literal "-0x7040")) () ")")))) (; ";")) (expression_statement "*(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;" (assignment_expression "*(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x703c)" (* "*") (cast_expression "(int *)(PTR___environ_00145154 + -0x703c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR___environ_00145154 + -0x703c)" (( "(") (binary_expression "PTR___environ_00145154 + -0x703c" (identifier "PTR___environ_00145154") (+ "+") (number_literal "-0x703c")) () ")")))) (= "=") (binary_expression "*(int *)(PTR___environ_00145154 + -0x703c) + 1" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x703c)" (* "*") (cast_expression "(int *)(PTR___environ_00145154 + -0x703c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR___environ_00145154 + -0x703c)" (( "(") (binary_expression "PTR___environ_00145154 + -0x703c" (identifier "PTR___environ_00145154") (+ "+") (number_literal "-0x703c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*piVar1 != 0) {\n    *puVar2 = uVar3;\n    return;\n  }" (if "if") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *puVar2 = uVar3;\n    return;\n  }" ({ "{") (expression_statement "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00067f78();" (call_expression "FUN_00067f78()" (identifier "FUN_00067f78") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*puVar2 = uVar3;" (assignment_expression "*puVar2 = uVar3" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(int sig)

{
  int *piVar1;
  type_1 *puVar2;
  int in_a1;
  type_1 uVar3;
  
  puVar2 = (type_1 *)(*(type_2 *)PTR___errno_location_0014633c)();
  uVar3 = *puVar2;
  piVar1 = (int *)(var_1 + -0x7040);
  *(int *)(var_1 + -0x703c) = *(int *)(var_1 + -0x703c) + 1;
  if (*piVar1 != 0) {
    *puVar2 = uVar3;
    return;
  }
  var_2(0,in_a1);
  *puVar2 = uVar3;
  return;
}


(translation_unit (function_definition type: (primitive_type) 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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) 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))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_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: (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))))

void MASKED(void)

{
  int *piVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  
  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
  uVar3 = *puVar2;
  piVar1 = (int *)(PTR___environ_00145154 + -0x7040);
  *(int *)(PTR___environ_00145154 + -0x703c) = *(int *)(PTR___environ_00145154 + -0x703c) + 1;
  if (*piVar1 != 0) {
    *puVar2 = uVar3;
    return;
  }
  FUN_00067f78();
  *puVar2 = uVar3;
  return;
}

