
void cdb_free(cd_buf *cdb)

{
  int iVar1;
  int *piVar2;
  undefined *puVar3;
  
  if ((int)cdb < 0) {
    return;
  }
  iVar1 = (*(code *)PTR_close_00036458)();
  if (iVar1 != 0) {
    piVar2 = (int *)(PTR_LAB_00036278 + 0x57c4);
    puVar3 = PTR___assert_fail_0003644c;
    (*(code *)PTR___assert_fail_0003644c)
              (piVar2,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);
    iVar1 = (**(code **)(puVar3 + 0x180fc))(*piVar2);
    if (-1 < iVar1) {
      cdb_free((cd_buf *)*piVar2);
      *piVar2 = iVar1;
    }
    return;
  }
  return;
}



undefined4 FUN_0001e390(int param_1)

{
  undefined4 in_v0;
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  undefined *puVar4;
  
  if (param_1 < 0) {
    return in_v0;
  }
  iVar1 = (*(code *)PTR_close_00036458)();
  if (iVar1 == 0) {
    return 0;
  }
  piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4);
  puVar4 = PTR___assert_fail_0003644c;
  (*(code *)PTR___assert_fail_0003644c)
            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);
  iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3);
  if (iVar1 < 0) {
    uVar2 = 0xffffffff;
  }
  else {
    FUN_0001e390(*piVar3);
    uVar2 = 0;
    *piVar3 = iVar1;
  }
  return uVar2;
}


lui gp,0x2
addiu gp,gp,-0x150
addu gp,gp,t9
bgez a0,0x0001e3ac
_nop
jr ra
_nop
addiu sp,sp,-0x20
lw t9,-0x7de8(gp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
jalr t9
_nop
bne v0,zero,0x0001e3d8
_lw gp,0x10(sp)
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
lw a3,-0x7fc8(gp)
li a2,0x40
lw a1,-0x7fc8(gp)
lw a0,-0x7fc8(gp)
lw t9,-0x7df4(gp)
addiu a3,a3,0x5820
addiu a1,a1,0x57b0
jalr t9
_addiu a0,a0,0x57c4
(translation_unit "undefined4 FUN_0001e390(int param_1)\n\n{\n  undefined4 in_v0;\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined *puVar4;\n  \n  if (param_1 < 0) {\n    return in_v0;\n  }\n  iVar1 = (*(code *)PTR_close_00036458)();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4);\n  puVar4 = PTR___assert_fail_0003644c;\n  (*(code *)PTR___assert_fail_0003644c)\n            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);\n  iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3);\n  if (iVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0001e390(int param_1)\n\n{\n  undefined4 in_v0;\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined *puVar4;\n  \n  if (param_1 < 0) {\n    return in_v0;\n  }\n  iVar1 = (*(code *)PTR_close_00036458)();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4);\n  puVar4 = PTR___assert_fail_0003644c;\n  (*(code *)PTR___assert_fail_0003644c)\n            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);\n  iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3);\n  if (iVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0001e390(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 in_v0;\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined *puVar4;\n  \n  if (param_1 < 0) {\n    return in_v0;\n  }\n  iVar1 = (*(code *)PTR_close_00036458)();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4);\n  puVar4 = PTR___assert_fail_0003644c;\n  (*(code *)PTR___assert_fail_0003644c)\n            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);\n  iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3);\n  if (iVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }\n  return uVar2;\n}" { (declaration "undefined4 in_v0;" type_identifier identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if (param_1 < 0) {\n    return in_v0;\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n    return in_v0;\n  }" { (return_statement "return in_v0;" return identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_close_00036458)();" (assignment_expression "iVar1 = (*(code *)PTR_close_00036458)()" identifier = (call_expression "(*(code *)PTR_close_00036458)()" (parenthesized_expression "(*(code *)PTR_close_00036458)" ( (pointer_expression "*(code *)PTR_close_00036458" * (cast_expression "(code *)PTR_close_00036458" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4);" (assignment_expression "piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4)" identifier = (cast_expression "(int *)(PTR_LAB_00036278 + 0x57c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00036278 + 0x57c4)" ( (binary_expression "PTR_LAB_00036278 + 0x57c4" identifier + number_literal) )))) ;) (expression_statement "puVar4 = PTR___assert_fail_0003644c;" (assignment_expression "puVar4 = PTR___assert_fail_0003644c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_0003644c)\n            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);" (call_expression "(*(code *)PTR___assert_fail_0003644c)\n            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003644c)" ( (pointer_expression "*(code *)PTR___assert_fail_0003644c" * (cast_expression "(code *)PTR___assert_fail_0003644c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820)" ( identifier , (binary_expression "PTR_LAB_00036278 + 0x57b0" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00036278 + 0x5820" identifier + number_literal) ))) ;) (expression_statement "iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3);" (assignment_expression "iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3)" identifier = (call_expression "(**(code **)(puVar4 + 0x180fc))(*piVar3)" (parenthesized_expression "(**(code **)(puVar4 + 0x180fc))" ( (pointer_expression "**(code **)(puVar4 + 0x180fc)" * (pointer_expression "*(code **)(puVar4 + 0x180fc)" * (cast_expression "(code **)(puVar4 + 0x180fc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x180fc)" ( (binary_expression "puVar4 + 0x180fc" identifier + number_literal) ))))) )) (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }" else (compound_statement "{\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }" { (expression_statement "FUN_0001e390(*piVar3);" (call_expression "FUN_0001e390(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "void cdb_free(cd_buf *cdb)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined *puVar3;\n  \n  if ((int)cdb < 0) {\n    return;\n  }\n  iVar1 = (*(code *)PTR_close_00036458)();\n  if (iVar1 != 0) {\n    piVar2 = (int *)(PTR_LAB_00036278 + 0x57c4);\n    puVar3 = PTR___assert_fail_0003644c;\n    (*(code *)PTR___assert_fail_0003644c)\n              (piVar2,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);\n    iVar1 = (**(code **)(puVar3 + 0x180fc))(*piVar2);\n    if (-1 < iVar1) {\n      cdb_free((cd_buf *)*piVar2);\n      *piVar2 = iVar1;\n    }\n    return;\n  }\n  return;\n}\n\n" (function_definition "void cdb_free(cd_buf *cdb)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined *puVar3;\n  \n  if ((int)cdb < 0) {\n    return;\n  }\n  iVar1 = (*(code *)PTR_close_00036458)();\n  if (iVar1 != 0) {\n    piVar2 = (int *)(PTR_LAB_00036278 + 0x57c4);\n    puVar3 = PTR___assert_fail_0003644c;\n    (*(code *)PTR___assert_fail_0003644c)\n              (piVar2,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);\n    iVar1 = (**(code **)(puVar3 + 0x180fc))(*piVar2);\n    if (-1 < iVar1) {\n      cdb_free((cd_buf *)*piVar2);\n      *piVar2 = iVar1;\n    }\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "cdb_free(cd_buf *cdb)" identifier (parameter_list "(cd_buf *cdb)" ( (parameter_declaration "cd_buf *cdb" type_identifier (pointer_declarator "*cdb" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined *puVar3;\n  \n  if ((int)cdb < 0) {\n    return;\n  }\n  iVar1 = (*(code *)PTR_close_00036458)();\n  if (iVar1 != 0) {\n    piVar2 = (int *)(PTR_LAB_00036278 + 0x57c4);\n    puVar3 = PTR___assert_fail_0003644c;\n    (*(code *)PTR___assert_fail_0003644c)\n              (piVar2,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);\n    iVar1 = (**(code **)(puVar3 + 0x180fc))(*piVar2);\n    if (-1 < iVar1) {\n      cdb_free((cd_buf *)*piVar2);\n      *piVar2 = iVar1;\n    }\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if ((int)cdb < 0) {\n    return;\n  }" if (parenthesized_expression "((int)cdb < 0)" ( (binary_expression "(int)cdb < 0" (cast_expression "(int)cdb" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = (*(code *)PTR_close_00036458)();" (assignment_expression "iVar1 = (*(code *)PTR_close_00036458)()" identifier = (call_expression "(*(code *)PTR_close_00036458)()" (parenthesized_expression "(*(code *)PTR_close_00036458)" ( (pointer_expression "*(code *)PTR_close_00036458" * (cast_expression "(code *)PTR_close_00036458" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    piVar2 = (int *)(PTR_LAB_00036278 + 0x57c4);\n    puVar3 = PTR___assert_fail_0003644c;\n    (*(code *)PTR___assert_fail_0003644c)\n              (piVar2,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);\n    iVar1 = (**(code **)(puVar3 + 0x180fc))(*piVar2);\n    if (-1 < iVar1) {\n      cdb_free((cd_buf *)*piVar2);\n      *piVar2 = iVar1;\n    }\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar2 = (int *)(PTR_LAB_00036278 + 0x57c4);\n    puVar3 = PTR___assert_fail_0003644c;\n    (*(code *)PTR___assert_fail_0003644c)\n              (piVar2,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);\n    iVar1 = (**(code **)(puVar3 + 0x180fc))(*piVar2);\n    if (-1 < iVar1) {\n      cdb_free((cd_buf *)*piVar2);\n      *piVar2 = iVar1;\n    }\n    return;\n  }" { (expression_statement "piVar2 = (int *)(PTR_LAB_00036278 + 0x57c4);" (assignment_expression "piVar2 = (int *)(PTR_LAB_00036278 + 0x57c4)" identifier = (cast_expression "(int *)(PTR_LAB_00036278 + 0x57c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00036278 + 0x57c4)" ( (binary_expression "PTR_LAB_00036278 + 0x57c4" identifier + number_literal) )))) ;) (expression_statement "puVar3 = PTR___assert_fail_0003644c;" (assignment_expression "puVar3 = PTR___assert_fail_0003644c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_0003644c)\n              (piVar2,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);" (call_expression "(*(code *)PTR___assert_fail_0003644c)\n              (piVar2,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003644c)" ( (pointer_expression "*(code *)PTR___assert_fail_0003644c" * (cast_expression "(code *)PTR___assert_fail_0003644c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820)" ( identifier , (binary_expression "PTR_LAB_00036278 + 0x57b0" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00036278 + 0x5820" identifier + number_literal) ))) ;) (expression_statement "iVar1 = (**(code **)(puVar3 + 0x180fc))(*piVar2);" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0x180fc))(*piVar2)" identifier = (call_expression "(**(code **)(puVar3 + 0x180fc))(*piVar2)" (parenthesized_expression "(**(code **)(puVar3 + 0x180fc))" ( (pointer_expression "**(code **)(puVar3 + 0x180fc)" * (pointer_expression "*(code **)(puVar3 + 0x180fc)" * (cast_expression "(code **)(puVar3 + 0x180fc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x180fc)" ( (binary_expression "puVar3 + 0x180fc" identifier + number_literal) ))))) )) (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n      cdb_free((cd_buf *)*piVar2);\n      *piVar2 = iVar1;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      cdb_free((cd_buf *)*piVar2);\n      *piVar2 = iVar1;\n    }" { (expression_statement "cdb_free((cd_buf *)*piVar2);" (call_expression "cdb_free((cd_buf *)*piVar2)" identifier (argument_list "((cd_buf *)*piVar2)" ( (cast_expression "(cd_buf *)*piVar2" ( (type_descriptor "cd_buf *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier)) ))) ;) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) })) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "undefined4 FUN_0001e390(int param_1)\n\n{\n  undefined4 in_v0;\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined *puVar4;\n  \n  if (param_1 < 0) {\n    return in_v0;\n  }\n  iVar1 = (*(code *)PTR_close_00036458)();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4);\n  puVar4 = PTR___assert_fail_0003644c;\n  (*(code *)PTR___assert_fail_0003644c)\n            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);\n  iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3);\n  if (iVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0001e390(int param_1)\n\n{\n  undefined4 in_v0;\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined *puVar4;\n  \n  if (param_1 < 0) {\n    return in_v0;\n  }\n  iVar1 = (*(code *)PTR_close_00036458)();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4);\n  puVar4 = PTR___assert_fail_0003644c;\n  (*(code *)PTR___assert_fail_0003644c)\n            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);\n  iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3);\n  if (iVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0001e390(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 in_v0;\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined *puVar4;\n  \n  if (param_1 < 0) {\n    return in_v0;\n  }\n  iVar1 = (*(code *)PTR_close_00036458)();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4);\n  puVar4 = PTR___assert_fail_0003644c;\n  (*(code *)PTR___assert_fail_0003644c)\n            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);\n  iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3);\n  if (iVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }\n  return uVar2;\n}" { (declaration "undefined4 in_v0;" type_identifier identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if (param_1 < 0) {\n    return in_v0;\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n    return in_v0;\n  }" { (return_statement "return in_v0;" return identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_close_00036458)();" (assignment_expression "iVar1 = (*(code *)PTR_close_00036458)()" identifier = (call_expression "(*(code *)PTR_close_00036458)()" (parenthesized_expression "(*(code *)PTR_close_00036458)" ( (pointer_expression "*(code *)PTR_close_00036458" * (cast_expression "(code *)PTR_close_00036458" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4);" (assignment_expression "piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4)" identifier = (cast_expression "(int *)(PTR_LAB_00036278 + 0x57c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00036278 + 0x57c4)" ( (binary_expression "PTR_LAB_00036278 + 0x57c4" identifier + number_literal) )))) ;) (expression_statement "puVar4 = PTR___assert_fail_0003644c;" (assignment_expression "puVar4 = PTR___assert_fail_0003644c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_0003644c)\n            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);" (call_expression "(*(code *)PTR___assert_fail_0003644c)\n            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003644c)" ( (pointer_expression "*(code *)PTR___assert_fail_0003644c" * (cast_expression "(code *)PTR___assert_fail_0003644c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820)" ( identifier , (binary_expression "PTR_LAB_00036278 + 0x57b0" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_00036278 + 0x5820" identifier + number_literal) ))) ;) (expression_statement "iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3);" (assignment_expression "iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3)" identifier = (call_expression "(**(code **)(puVar4 + 0x180fc))(*piVar3)" (parenthesized_expression "(**(code **)(puVar4 + 0x180fc))" ( (pointer_expression "**(code **)(puVar4 + 0x180fc)" * (pointer_expression "*(code **)(puVar4 + 0x180fc)" * (cast_expression "(code **)(puVar4 + 0x180fc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x180fc)" ( (binary_expression "puVar4 + 0x180fc" identifier + number_literal) ))))) )) (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }" else (compound_statement "{\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }" { (expression_statement "FUN_0001e390(*piVar3);" (call_expression "FUN_0001e390(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (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 ( IDENT , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (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 ( (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0001e390(int param_1)\n\n{\n  undefined4 in_v0;\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined *puVar4;\n  \n  if (param_1 < 0) {\n    return in_v0;\n  }\n  iVar1 = (*(code *)PTR_close_00036458)();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4);\n  puVar4 = PTR___assert_fail_0003644c;\n  (*(code *)PTR___assert_fail_0003644c)\n            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);\n  iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3);\n  if (iVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001e390(int param_1)" (identifier "FUN_0001e390") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 in_v0;\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined *puVar4;\n  \n  if (param_1 < 0) {\n    return in_v0;\n  }\n  iVar1 = (*(code *)PTR_close_00036458)();\n  if (iVar1 == 0) {\n    return 0;\n  }\n  piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4);\n  puVar4 = PTR___assert_fail_0003644c;\n  (*(code *)PTR___assert_fail_0003644c)\n            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);\n  iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3);\n  if (iVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }\n  return uVar2;\n}" ({ "{") (declaration "undefined4 in_v0;" (type_identifier "undefined4") (identifier "in_v0") (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (if_statement "if (param_1 < 0) {\n    return in_v0;\n  }" (if "if") (parenthesized_expression "(param_1 < 0)" (( "(") (binary_expression "param_1 < 0" (identifier "param_1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    return in_v0;\n  }" ({ "{") (return_statement "return in_v0;" (return "return") (identifier "in_v0") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_close_00036458)();" (assignment_expression "iVar1 = (*(code *)PTR_close_00036458)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_close_00036458)()" (parenthesized_expression "(*(code *)PTR_close_00036458)" (( "(") (pointer_expression "*(code *)PTR_close_00036458" (* "*") (cast_expression "(code *)PTR_close_00036458" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_00036458"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4);" (assignment_expression "piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4)" (identifier "piVar3") (= "=") (cast_expression "(int *)(PTR_LAB_00036278 + 0x57c4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00036278 + 0x57c4)" (( "(") (binary_expression "PTR_LAB_00036278 + 0x57c4" (identifier "PTR_LAB_00036278") (+ "+") (number_literal "0x57c4")) () ")")))) (; ";")) (expression_statement "puVar4 = PTR___assert_fail_0003644c;" (assignment_expression "puVar4 = PTR___assert_fail_0003644c" (identifier "puVar4") (= "=") (identifier "PTR___assert_fail_0003644c")) (; ";")) (expression_statement "(*(code *)PTR___assert_fail_0003644c)\n            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);" (call_expression "(*(code *)PTR___assert_fail_0003644c)\n            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820)" (parenthesized_expression "(*(code *)PTR___assert_fail_0003644c)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0003644c" (* "*") (cast_expression "(code *)PTR___assert_fail_0003644c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0003644c"))) () ")")) (argument_list "(piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820)" (( "(") (identifier "piVar3") (, ",") (binary_expression "PTR_LAB_00036278 + 0x57b0" (identifier "PTR_LAB_00036278") (+ "+") (number_literal "0x57b0")) (, ",") (number_literal "0x40") (, ",") (binary_expression "PTR_LAB_00036278 + 0x5820" (identifier "PTR_LAB_00036278") (+ "+") (number_literal "0x5820")) () ")"))) (; ";")) (expression_statement "iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3);" (assignment_expression "iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(puVar4 + 0x180fc))(*piVar3)" (parenthesized_expression "(**(code **)(puVar4 + 0x180fc))" (( "(") (pointer_expression "**(code **)(puVar4 + 0x180fc)" (* "*") (pointer_expression "*(code **)(puVar4 + 0x180fc)" (* "*") (cast_expression "(code **)(puVar4 + 0x180fc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0x180fc)" (( "(") (binary_expression "puVar4 + 0x180fc" (identifier "puVar4") (+ "+") (number_literal "0x180fc")) () ")"))))) () ")")) (argument_list "(*piVar3)" (( "(") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }" (else "else") (compound_statement "{\n    FUN_0001e390(*piVar3);\n    uVar2 = 0;\n    *piVar3 = iVar1;\n  }" ({ "{") (expression_statement "FUN_0001e390(*piVar3);" (call_expression "FUN_0001e390(*piVar3)" (identifier "FUN_0001e390") (argument_list "(*piVar3)" (( "(") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) () ")"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "iVar1")) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (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 (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal))))) (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 (pointer_expression argument: (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)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (return_statement (identifier)))))

undefined4 MASKED(int param_1)

{
  undefined4 in_v0;
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  undefined *puVar4;
  
  if (param_1 < 0) {
    return in_v0;
  }
  iVar1 = (*(code *)PTR_close_00036458)();
  if (iVar1 == 0) {
    return 0;
  }
  piVar3 = (int *)(PTR_LAB_00036278 + 0x57c4);
  puVar4 = PTR___assert_fail_0003644c;
  (*(code *)PTR___assert_fail_0003644c)
            (piVar3,PTR_LAB_00036278 + 0x57b0,0x40,PTR_LAB_00036278 + 0x5820);
  iVar1 = (**(code **)(puVar4 + 0x180fc))(*piVar3);
  if (iVar1 < 0) {
    uVar2 = 0xffffffff;
  }
  else {
    MASKED(*piVar3);
    uVar2 = 0;
    *piVar3 = iVar1;
  }
  return uVar2;
}

