
_Bool protect_fd(int fd)

{
  int iVar1;
  undefined4 *puVar2;
  
  iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);
  if (fd == iVar1) {
    return true;
  }
  if (iVar1 < 0) {
    return false;
  }
  (*(code *)PTR_close_0003028c)(iVar1);
  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();
  *puVar2 = 9;
  return false;
}



undefined4 FUN_000137e0(int param_1)

{
  int iVar1;
  undefined4 *puVar2;
  
  iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);
  if (param_1 == iVar1) {
    return 1;
  }
  if (iVar1 < 0) {
    return 0;
  }
  (*(code *)PTR_close_0003028c)(iVar1);
  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();
  *puVar2 = 9;
  return 0;
}


lui gp,0x2
addiu gp,gp,0x48f0
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7dc4(gp)
or a1,zero,zero
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
sw ra,0x1c(sp)
lw a0,-0x7fc8(gp)
jalr t9
_addiu a0,a0,-0x2238
beq s0,v0,0x00013838
_lw gp,0x10(sp)
bgez v0,0x00013850
_lw ra,0x1c(sp)
or v1,zero,zero
lw s0,0x18(sp)
addiu sp,sp,0x20
jr ra
_or v0,v1,zero
lw ra,0x1c(sp)
li v1,0x1
lw s0,0x18(sp)
addiu sp,sp,0x20
jr ra
_or v0,v1,zero
lw t9,-0x7e44(gp)
jalr t9
_or a0,v0,zero
lw gp,0x10(sp)
lw t9,-0x7de0(gp)
jalr t9
_nop
or v1,zero,zero
lw ra,0x1c(sp)
li a0,0x9
lw s0,0x18(sp)
sw a0,0x0(v0)
or v0,v1,zero
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 FUN_000137e0(int param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);\n  if (param_1 == iVar1) {\n    return 1;\n  }\n  if (iVar1 < 0) {\n    return 0;\n  }\n  (*(code *)PTR_close_0003028c)(iVar1);\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();\n  *puVar2 = 9;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000137e0(int param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);\n  if (param_1 == iVar1) {\n    return 1;\n  }\n  if (iVar1 < 0) {\n    return 0;\n  }\n  (*(code *)PTR_close_0003028c)(iVar1);\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();\n  *puVar2 = 9;\n  return 0;\n}" type_identifier (function_declarator "FUN_000137e0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);\n  if (param_1 == iVar1) {\n    return 1;\n  }\n  if (iVar1 < 0) {\n    return 0;\n  }\n  (*(code *)PTR_close_0003028c)(iVar1);\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();\n  *puVar2 = 9;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);" (assignment_expression "iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0)" identifier = (call_expression "(*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0)" (parenthesized_expression "(*(code *)PTR_open64_0003030c)" ( (pointer_expression "*(code *)PTR_open64_0003030c" * (cast_expression "(code *)PTR_open64_0003030c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_00030108 + -0x2238,0)" ( (binary_expression "PTR_DAT_00030108 + -0x2238" identifier + number_literal) , number_literal )))) ;) (if_statement "if (param_1 == iVar1) {\n    return 1;\n  }" if (parenthesized_expression "(param_1 == iVar1)" ( (binary_expression "param_1 == iVar1" identifier == identifier) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (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 "(*(code *)PTR_close_0003028c)(iVar1);" (call_expression "(*(code *)PTR_close_0003028c)(iVar1)" (parenthesized_expression "(*(code *)PTR_close_0003028c)" ( (pointer_expression "*(code *)PTR_close_0003028c" * (cast_expression "(code *)PTR_close_0003028c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000302f0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000302f0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000302f0)" ( (pointer_expression "*(code *)PTR___errno_location_000302f0" * (cast_expression "(code *)PTR___errno_location_000302f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar2 = 9;" (assignment_expression "*puVar2 = 9" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "_Bool protect_fd(int fd)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);\n  if (fd == iVar1) {\n    return true;\n  }\n  if (iVar1 < 0) {\n    return false;\n  }\n  (*(code *)PTR_close_0003028c)(iVar1);\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();\n  *puVar2 = 9;\n  return false;\n}\n\n" (function_definition "_Bool protect_fd(int fd)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);\n  if (fd == iVar1) {\n    return true;\n  }\n  if (iVar1 < 0) {\n    return false;\n  }\n  (*(code *)PTR_close_0003028c)(iVar1);\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();\n  *puVar2 = 9;\n  return false;\n}" type_identifier (function_declarator "protect_fd(int fd)" identifier (parameter_list "(int fd)" ( (parameter_declaration "int fd" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);\n  if (fd == iVar1) {\n    return true;\n  }\n  if (iVar1 < 0) {\n    return false;\n  }\n  (*(code *)PTR_close_0003028c)(iVar1);\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();\n  *puVar2 = 9;\n  return false;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);" (assignment_expression "iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0)" identifier = (call_expression "(*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0)" (parenthesized_expression "(*(code *)PTR_open64_0003030c)" ( (pointer_expression "*(code *)PTR_open64_0003030c" * (cast_expression "(code *)PTR_open64_0003030c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_00030108 + -0x2238,0)" ( (binary_expression "PTR_DAT_00030108 + -0x2238" identifier + number_literal) , number_literal )))) ;) (if_statement "if (fd == iVar1) {\n    return true;\n  }" if (parenthesized_expression "(fd == iVar1)" ( (binary_expression "fd == iVar1" identifier == identifier) )) (compound_statement "{\n    return true;\n  }" { (return_statement "return true;" return true ;) })) (if_statement "if (iVar1 < 0) {\n    return false;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (expression_statement "(*(code *)PTR_close_0003028c)(iVar1);" (call_expression "(*(code *)PTR_close_0003028c)(iVar1)" (parenthesized_expression "(*(code *)PTR_close_0003028c)" ( (pointer_expression "*(code *)PTR_close_0003028c" * (cast_expression "(code *)PTR_close_0003028c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000302f0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000302f0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000302f0)" ( (pointer_expression "*(code *)PTR___errno_location_000302f0" * (cast_expression "(code *)PTR___errno_location_000302f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar2 = 9;" (assignment_expression "*puVar2 = 9" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return false;" return false ;) })))
(translation_unit "undefined4 FUN_000137e0(int param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);\n  if (param_1 == iVar1) {\n    return 1;\n  }\n  if (iVar1 < 0) {\n    return 0;\n  }\n  (*(code *)PTR_close_0003028c)(iVar1);\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();\n  *puVar2 = 9;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000137e0(int param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);\n  if (param_1 == iVar1) {\n    return 1;\n  }\n  if (iVar1 < 0) {\n    return 0;\n  }\n  (*(code *)PTR_close_0003028c)(iVar1);\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();\n  *puVar2 = 9;\n  return 0;\n}" type_identifier (function_declarator "FUN_000137e0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);\n  if (param_1 == iVar1) {\n    return 1;\n  }\n  if (iVar1 < 0) {\n    return 0;\n  }\n  (*(code *)PTR_close_0003028c)(iVar1);\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();\n  *puVar2 = 9;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);" (assignment_expression "iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0)" identifier = (call_expression "(*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0)" (parenthesized_expression "(*(code *)PTR_open64_0003030c)" ( (pointer_expression "*(code *)PTR_open64_0003030c" * (cast_expression "(code *)PTR_open64_0003030c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_00030108 + -0x2238,0)" ( (binary_expression "PTR_DAT_00030108 + -0x2238" identifier + number_literal) , number_literal )))) ;) (if_statement "if (param_1 == iVar1) {\n    return 1;\n  }" if (parenthesized_expression "(param_1 == iVar1)" ( (binary_expression "param_1 == iVar1" identifier == identifier) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (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 "(*(code *)PTR_close_0003028c)(iVar1);" (call_expression "(*(code *)PTR_close_0003028c)(iVar1)" (parenthesized_expression "(*(code *)PTR_close_0003028c)" ( (pointer_expression "*(code *)PTR_close_0003028c" * (cast_expression "(code *)PTR_close_0003028c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000302f0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000302f0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000302f0)" ( (pointer_expression "*(code *)PTR___errno_location_000302f0" * (cast_expression "(code *)PTR___errno_location_000302f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar2 = 9;" (assignment_expression "*puVar2 = 9" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return 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 = (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 LIT ;) })))
(function_definition "undefined4 FUN_000137e0(int param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);\n  if (param_1 == iVar1) {\n    return 1;\n  }\n  if (iVar1 < 0) {\n    return 0;\n  }\n  (*(code *)PTR_close_0003028c)(iVar1);\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();\n  *puVar2 = 9;\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000137e0(int param_1)" (identifier "FUN_000137e0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);\n  if (param_1 == iVar1) {\n    return 1;\n  }\n  if (iVar1 < 0) {\n    return 0;\n  }\n  (*(code *)PTR_close_0003028c)(iVar1);\n  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();\n  *puVar2 = 9;\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);" (assignment_expression "iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0)" (parenthesized_expression "(*(code *)PTR_open64_0003030c)" (( "(") (pointer_expression "*(code *)PTR_open64_0003030c" (* "*") (cast_expression "(code *)PTR_open64_0003030c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_open64_0003030c"))) () ")")) (argument_list "(PTR_DAT_00030108 + -0x2238,0)" (( "(") (binary_expression "PTR_DAT_00030108 + -0x2238" (identifier "PTR_DAT_00030108") (+ "+") (number_literal "-0x2238")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (param_1 == iVar1) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(param_1 == iVar1)" (( "(") (binary_expression "param_1 == iVar1" (identifier "param_1") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (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 "(*(code *)PTR_close_0003028c)(iVar1);" (call_expression "(*(code *)PTR_close_0003028c)(iVar1)" (parenthesized_expression "(*(code *)PTR_close_0003028c)" (( "(") (pointer_expression "*(code *)PTR_close_0003028c" (* "*") (cast_expression "(code *)PTR_close_0003028c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_0003028c"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)()" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000302f0)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_000302f0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000302f0)" (( "(") (pointer_expression "*(code *)PTR___errno_location_000302f0" (* "*") (cast_expression "(code *)PTR___errno_location_000302f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_000302f0"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar2 = 9;" (assignment_expression "*puVar2 = 9" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "9")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(int var_2)

{
  int var_3;
  type_2 *puVar2;
  
  var_3 = (*(type_3 *)PTR_open64_0003030c)(var_1 + -0x2238,0);
  if (var_2 == var_3) {
    return true;
  }
  if (var_3 < 0) {
    return false;
  }
  (*(type_3 *)PTR_close_0003028c)(var_3);
  puVar2 = (type_2 *)(*(type_3 *)PTR___errno_location_000302f0)();
  *puVar2 = 9;
  return false;
}


(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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (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 (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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: (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 (number_literal)))))

undefined4 MASKED(int param_1)

{
  int iVar1;
  undefined4 *puVar2;
  
  iVar1 = (*(code *)PTR_open64_0003030c)(PTR_DAT_00030108 + -0x2238,0);
  if (param_1 == iVar1) {
    return 1;
  }
  if (iVar1 < 0) {
    return 0;
  }
  (*(code *)PTR_close_0003028c)(iVar1);
  puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000302f0)();
  *puVar2 = 9;
  return 0;
}

