
int map_to_failure(int ret,security_context_t *con)

{
  undefined *puVar1;
  int iVar2;
  undefined4 *puVar3;
  security_context_t pcVar4;
  
  if (ret == 0) {
    ret = -1;
    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();
    *puVar3 = 0x7a;
  }
  else if (ret == 10) {
    pcVar4 = *con;
    iVar2 = (*(code *)PTR_strcmp_000323f8)
                      (pcVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);
    if (iVar2 == 0) {
      ret = -1;
      (*(code *)PTR_freecon_000322e4)(pcVar4);
      puVar1 = PTR___errno_location_00032328;
      *con = (security_context_t)0x0;
      puVar3 = (undefined4 *)(*(code *)puVar1)();
      *puVar3 = 0x3d;
    }
  }
  return ret;
}



int FUN_0001a020(int param_1,undefined4 *param_2)

{
  undefined *puVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  
  if (param_1 == 0) {
    param_1 = -1;
    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();
    *puVar3 = 0x7a;
  }
  else if (param_1 == 10) {
    uVar4 = *param_2;
    iVar2 = (*(code *)PTR_strcmp_000323f8)
                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);
    if (iVar2 == 0) {
      param_1 = -1;
      (*(code *)PTR_freecon_000322e4)(uVar4);
      puVar1 = PTR___errno_location_00032328;
      *param_2 = 0;
      puVar3 = (undefined4 *)(*(code *)puVar1)();
      *puVar3 = 0x3d;
    }
  }
  return param_1;
}


lui gp,0x2
addiu gp,gp,0xb0
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
beq a0,zero,0x0001a0c0
_sw s0,0x18(sp)
li v0,0xa
beq a0,v0,0x0001a070
_or s0,a0,zero
lw ra,0x24(sp)
or v0,s0,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw s2,0x0(a1)
or s1,a1,zero
lw a1,-0x7fc8(gp)
lw t9,-0x7cd8(gp)
or a0,s2,zero
jalr t9
_addiu a1,a1,0x13d0
bne v0,zero,0x0001a054
_lw gp,0x10(sp)
lw t9,-0x7dec(gp)
or a0,s2,zero
jalr t9
_li s0,-0x1
lw gp,0x10(sp)
lw t9,-0x7da8(gp)
jalr t9
_sw zero,0x0(s1)
li v1,0x3d
b 0x0001a054
_sw v1,0x0(v0)
lw t9,-0x7da8(gp)
jalr t9
_li s0,-0x1
li v1,0x7a
b 0x0001a054
_sw v1,0x0(v0)
(translation_unit "int FUN_0001a020(int param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 0) {\n    param_1 = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "int FUN_0001a020(int param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 0) {\n    param_1 = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return param_1;\n}" primitive_type (function_declarator "FUN_0001a020(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 0) {\n    param_1 = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return param_1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n    param_1 = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_1 = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }" { (expression_statement "param_1 = -1;" (assignment_expression "param_1 = -1" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00032328)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00032328)()" (parenthesized_expression "(*(code *)PTR___errno_location_00032328)" ( (pointer_expression "*(code *)PTR___errno_location_00032328" * (cast_expression "(code *)PTR___errno_location_00032328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar3 = 0x7a;" (assignment_expression "*puVar3 = 0x7a" (pointer_expression "*puVar3" * identifier) = number_literal) ;) }) (else_clause "else if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" else (if_statement "if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" if (parenthesized_expression "(param_1 == 10)" ( (binary_expression "param_1 == 10" identifier == number_literal) )) (compound_statement "{\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" { (expression_statement "uVar4 = *param_2;" (assignment_expression "uVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0)" identifier = (call_expression "(*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0)" (parenthesized_expression "(*(code *)PTR_strcmp_000323f8)" ( (pointer_expression "*(code *)PTR_strcmp_000323f8" * (cast_expression "(code *)PTR_strcmp_000323f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0)" ( identifier , (binary_expression "PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0" identifier + number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }" { (expression_statement "param_1 = -1;" (assignment_expression "param_1 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_freecon_000322e4)(uVar4);" (call_expression "(*(code *)PTR_freecon_000322e4)(uVar4)" (parenthesized_expression "(*(code *)PTR_freecon_000322e4)" ( (pointer_expression "*(code *)PTR_freecon_000322e4" * (cast_expression "(code *)PTR_freecon_000322e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "puVar1 = PTR___errno_location_00032328;" (assignment_expression "puVar1 = PTR___errno_location_00032328" identifier = identifier) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)(*(code *)puVar1)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)puVar1)()" identifier = (cast_expression "(undefined4 *)(*(code *)puVar1)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar3 = 0x3d;" (assignment_expression "*puVar3 = 0x3d" (pointer_expression "*puVar3" * identifier) = number_literal) ;) })) })))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "int map_to_failure(int ret,security_context_t *con)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  security_context_t pcVar4;\n  \n  if (ret == 0) {\n    ret = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (ret == 10) {\n    pcVar4 = *con;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (pcVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      ret = -1;\n      (*(code *)PTR_freecon_000322e4)(pcVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *con = (security_context_t)0x0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return ret;\n}\n\n" (function_definition "int map_to_failure(int ret,security_context_t *con)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  security_context_t pcVar4;\n  \n  if (ret == 0) {\n    ret = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (ret == 10) {\n    pcVar4 = *con;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (pcVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      ret = -1;\n      (*(code *)PTR_freecon_000322e4)(pcVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *con = (security_context_t)0x0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return ret;\n}" primitive_type (function_declarator "map_to_failure(int ret,security_context_t *con)" identifier (parameter_list "(int ret,security_context_t *con)" ( (parameter_declaration "int ret" primitive_type identifier) , (parameter_declaration "security_context_t *con" type_identifier (pointer_declarator "*con" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  security_context_t pcVar4;\n  \n  if (ret == 0) {\n    ret = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (ret == 10) {\n    pcVar4 = *con;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (pcVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      ret = -1;\n      (*(code *)PTR_freecon_000322e4)(pcVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *con = (security_context_t)0x0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return ret;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "security_context_t pcVar4;" type_identifier identifier ;) (if_statement "if (ret == 0) {\n    ret = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (ret == 10) {\n    pcVar4 = *con;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (pcVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      ret = -1;\n      (*(code *)PTR_freecon_000322e4)(pcVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *con = (security_context_t)0x0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" if (parenthesized_expression "(ret == 0)" ( (binary_expression "ret == 0" identifier == number_literal) )) (compound_statement "{\n    ret = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }" { (expression_statement "ret = -1;" (assignment_expression "ret = -1" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00032328)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00032328)()" (parenthesized_expression "(*(code *)PTR___errno_location_00032328)" ( (pointer_expression "*(code *)PTR___errno_location_00032328" * (cast_expression "(code *)PTR___errno_location_00032328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar3 = 0x7a;" (assignment_expression "*puVar3 = 0x7a" (pointer_expression "*puVar3" * identifier) = number_literal) ;) }) (else_clause "else if (ret == 10) {\n    pcVar4 = *con;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (pcVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      ret = -1;\n      (*(code *)PTR_freecon_000322e4)(pcVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *con = (security_context_t)0x0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" else (if_statement "if (ret == 10) {\n    pcVar4 = *con;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (pcVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      ret = -1;\n      (*(code *)PTR_freecon_000322e4)(pcVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *con = (security_context_t)0x0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" if (parenthesized_expression "(ret == 10)" ( (binary_expression "ret == 10" identifier == number_literal) )) (compound_statement "{\n    pcVar4 = *con;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (pcVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      ret = -1;\n      (*(code *)PTR_freecon_000322e4)(pcVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *con = (security_context_t)0x0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" { (expression_statement "pcVar4 = *con;" (assignment_expression "pcVar4 = *con" identifier = (pointer_expression "*con" * identifier)) ;) (expression_statement "iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (pcVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (pcVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0)" identifier = (call_expression "(*(code *)PTR_strcmp_000323f8)\n                      (pcVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0)" (parenthesized_expression "(*(code *)PTR_strcmp_000323f8)" ( (pointer_expression "*(code *)PTR_strcmp_000323f8" * (cast_expression "(code *)PTR_strcmp_000323f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0)" ( identifier , (binary_expression "PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0" identifier + number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n      ret = -1;\n      (*(code *)PTR_freecon_000322e4)(pcVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *con = (security_context_t)0x0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      ret = -1;\n      (*(code *)PTR_freecon_000322e4)(pcVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *con = (security_context_t)0x0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }" { (expression_statement "ret = -1;" (assignment_expression "ret = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_freecon_000322e4)(pcVar4);" (call_expression "(*(code *)PTR_freecon_000322e4)(pcVar4)" (parenthesized_expression "(*(code *)PTR_freecon_000322e4)" ( (pointer_expression "*(code *)PTR_freecon_000322e4" * (cast_expression "(code *)PTR_freecon_000322e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "puVar1 = PTR___errno_location_00032328;" (assignment_expression "puVar1 = PTR___errno_location_00032328" identifier = identifier) ;) (expression_statement "*con = (security_context_t)0x0;" (assignment_expression "*con = (security_context_t)0x0" (pointer_expression "*con" * identifier) = (cast_expression "(security_context_t)0x0" ( (type_descriptor "security_context_t" type_identifier) ) number_literal)) ;) (expression_statement "puVar3 = (undefined4 *)(*(code *)puVar1)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)puVar1)()" identifier = (cast_expression "(undefined4 *)(*(code *)puVar1)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar3 = 0x3d;" (assignment_expression "*puVar3 = 0x3d" (pointer_expression "*puVar3" * identifier) = number_literal) ;) })) })))) (return_statement "return ret;" return identifier ;) })))
(translation_unit "int FUN_0001a020(int param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 0) {\n    param_1 = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "int FUN_0001a020(int param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 0) {\n    param_1 = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return param_1;\n}" primitive_type (function_declarator "FUN_0001a020(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 0) {\n    param_1 = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return param_1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n    param_1 = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_1 = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }" { (expression_statement "param_1 = -1;" (assignment_expression "param_1 = -1" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00032328)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00032328)()" (parenthesized_expression "(*(code *)PTR___errno_location_00032328)" ( (pointer_expression "*(code *)PTR___errno_location_00032328" * (cast_expression "(code *)PTR___errno_location_00032328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar3 = 0x7a;" (assignment_expression "*puVar3 = 0x7a" (pointer_expression "*puVar3" * identifier) = number_literal) ;) }) (else_clause "else if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" else (if_statement "if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" if (parenthesized_expression "(param_1 == 10)" ( (binary_expression "param_1 == 10" identifier == number_literal) )) (compound_statement "{\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" { (expression_statement "uVar4 = *param_2;" (assignment_expression "uVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0)" identifier = (call_expression "(*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0)" (parenthesized_expression "(*(code *)PTR_strcmp_000323f8)" ( (pointer_expression "*(code *)PTR_strcmp_000323f8" * (cast_expression "(code *)PTR_strcmp_000323f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0)" ( identifier , (binary_expression "PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0" identifier + number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }" { (expression_statement "param_1 = -1;" (assignment_expression "param_1 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_freecon_000322e4)(uVar4);" (call_expression "(*(code *)PTR_freecon_000322e4)(uVar4)" (parenthesized_expression "(*(code *)PTR_freecon_000322e4)" ( (pointer_expression "*(code *)PTR_freecon_000322e4" * (cast_expression "(code *)PTR_freecon_000322e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "puVar1 = PTR___errno_location_00032328;" (assignment_expression "puVar1 = PTR___errno_location_00032328" identifier = identifier) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)(*(code *)puVar1)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)puVar1)()" identifier = (cast_expression "(undefined4 *)(*(code *)puVar1)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar3 = 0x3d;" (assignment_expression "*puVar3 = 0x3d" (pointer_expression "*puVar3" * identifier) = number_literal) ;) })) })))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (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 (pointer_expression * IDENT) = LIT) ;) })) })))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0001a020(int param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 0) {\n    param_1 = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return param_1;\n}" (primitive_type "int") (function_declarator "FUN_0001a020(int param_1,undefined4 *param_2)" (identifier "FUN_0001a020") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if (param_1 == 0) {\n    param_1 = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }\n  return param_1;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (if_statement "if (param_1 == 0) {\n    param_1 = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }\n  else if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_1 = -1;\n    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();\n    *puVar3 = 0x7a;\n  }" ({ "{") (expression_statement "param_1 = -1;" (assignment_expression "param_1 = -1" (identifier "param_1") (= "=") (number_literal "-1")) (; ";")) (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)()" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00032328)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00032328)()" (parenthesized_expression "(*(code *)PTR___errno_location_00032328)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00032328" (* "*") (cast_expression "(code *)PTR___errno_location_00032328" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00032328"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar3 = 0x7a;" (assignment_expression "*puVar3 = 0x7a" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0x7a")) (; ";")) (} "}")) (else_clause "else if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" (else "else") (if_statement "if (param_1 == 10) {\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 10)" (( "(") (binary_expression "param_1 == 10" (identifier "param_1") (== "==") (number_literal "10")) () ")")) (compound_statement "{\n    uVar4 = *param_2;\n    iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);\n    if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }\n  }" ({ "{") (expression_statement "uVar4 = *param_2;" (assignment_expression "uVar4 = *param_2" (identifier "uVar4") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);" (assignment_expression "iVar2 = (*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strcmp_000323f8)\n                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0)" (parenthesized_expression "(*(code *)PTR_strcmp_000323f8)" (( "(") (pointer_expression "*(code *)PTR_strcmp_000323f8" (* "*") (cast_expression "(code *)PTR_strcmp_000323f8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_000323f8"))) () ")")) (argument_list "(uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0)" (( "(") (identifier "uVar4") (, ",") (binary_expression "PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0" (identifier "PTR_s_a_diagnostic_for_every_file_proc_00032108") (+ "+") (number_literal "0x13d0")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      param_1 = -1;\n      (*(code *)PTR_freecon_000322e4)(uVar4);\n      puVar1 = PTR___errno_location_00032328;\n      *param_2 = 0;\n      puVar3 = (undefined4 *)(*(code *)puVar1)();\n      *puVar3 = 0x3d;\n    }" ({ "{") (expression_statement "param_1 = -1;" (assignment_expression "param_1 = -1" (identifier "param_1") (= "=") (number_literal "-1")) (; ";")) (expression_statement "(*(code *)PTR_freecon_000322e4)(uVar4);" (call_expression "(*(code *)PTR_freecon_000322e4)(uVar4)" (parenthesized_expression "(*(code *)PTR_freecon_000322e4)" (( "(") (pointer_expression "*(code *)PTR_freecon_000322e4" (* "*") (cast_expression "(code *)PTR_freecon_000322e4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_freecon_000322e4"))) () ")")) (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "puVar1 = PTR___errno_location_00032328;" (assignment_expression "puVar1 = PTR___errno_location_00032328" (identifier "puVar1") (= "=") (identifier "PTR___errno_location_00032328")) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = (undefined4 *)(*(code *)puVar1)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)puVar1)()" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(*(code *)puVar1)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar3 = 0x3d;" (assignment_expression "*puVar3 = 0x3d" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0x3d")) (; ";")) (} "}"))) (} "}"))))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

int function_1(int var_1,type_1 *con)

{
  type_2 *puVar1;
  int var_3;
  type_3 *puVar3;
  type_1 pcVar4;
  
  if (var_1 == 0) {
    var_1 = -1;
    puVar3 = (type_3 *)(*(type_4 *)PTR___errno_location_00032328)();
    *puVar3 = 0x7a;
  }
  else if (var_1 == 10) {
    pcVar4 = *con;
    var_3 = (*(type_4 *)PTR_strcmp_000323f8)
                      (pcVar4,var_2 + 0x13d0);
    if (var_3 == 0) {
      var_1 = -1;
      (*(type_4 *)PTR_freecon_000322e4)(pcVar4);
      puVar1 = PTR___errno_location_00032328;
      *con = (type_1)0x0;
      puVar3 = (type_3 *)(*(type_4 *)puVar1)();
      *puVar3 = 0x3d;
    }
  }
  return var_1;
}


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

int MASKED(int param_1,undefined4 *param_2)

{
  undefined *puVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  
  if (param_1 == 0) {
    param_1 = -1;
    puVar3 = (undefined4 *)(*(code *)PTR___errno_location_00032328)();
    *puVar3 = 0x7a;
  }
  else if (param_1 == 10) {
    uVar4 = *param_2;
    iVar2 = (*(code *)PTR_strcmp_000323f8)
                      (uVar4,PTR_s_a_diagnostic_for_every_file_proc_00032108 + 0x13d0);
    if (iVar2 == 0) {
      param_1 = -1;
      (*(code *)PTR_freecon_000322e4)(uVar4);
      puVar1 = PTR___errno_location_00032328;
      *param_2 = 0;
      puVar3 = (undefined4 *)(*(code *)puVar1)();
      *puVar3 = 0x3d;
    }
  }
  return param_1;
}

