
int fallback_stat(char *name,stat *p,int prev_rv)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();
  if ((*piVar1 != 2) && (*piVar1 != 0x14)) {
    return prev_rv;
  }
  if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {
    (*(code *)PTR___fprintf_chk_00079a44)
              (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,name);
  }
  (*(code *)PTR___fxstatat64_00079bb0)(3,*(undefined4 *)(PTR_state_000795c0 + 0x10),name,p,0x100);
  iVar2 = FUN_0001d450();
  return iVar2;
}



undefined4 FUN_0001d3f8(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int *piVar1;
  
  piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();
  if ((*piVar1 == 2) || (*piVar1 == 0x14)) {
    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {
      (*(code *)PTR___fprintf_chk_00079a44)
                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);
    }
    param_3 = (*(code *)PTR___fxstatat64_00079bb0)
                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);
  }
  return param_3;
}


lui gp,0x6
addiu gp,gp,0x4188
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
sw gp,0x18(sp)
or s1,a0,zero
or s2,a1,zero
or s0,a2,zero
lw t9,-0x7a90(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw v0,0x0(v0)
li v1,0x2
beq v0,v1,0x0001d46c
_li v1,0x14
beq v0,v1,0x0001d470
_lw v0,-0x7fc4(gp)
or v0,s0,zero
lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
lw v0,-0x7fc4(gp)
lw v0,0x2c(v0)
andi v0,v0,0x2
bne v0,zero,0x0001d4b4
_or a3,s1,zero
li v0,0x100
sw v0,0x10(sp)
or a3,s2,zero
or a2,s1,zero
lw v0,-0x7fc0(gp)
lw a1,0x10(v0)
li a0,0x3
lw t9,-0x79d0(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x0001d450
_or s0,v0,zero
lw a2,-0x7fc8(gp)
addiu a2,a2,0xe98
li a1,0x1
lw v0,-0x7940(gp)
lw a0,0x0(v0)
lw t9,-0x7b3c(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x0001d484
_li v0,0x100
(translation_unit "undefined4 FUN_0001d3f8(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();\n  if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }\n    param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);\n  }\n  return param_3;\n}\n\n" (function_definition "undefined4 FUN_0001d3f8(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();\n  if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }\n    param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);\n  }\n  return param_3;\n}" type_identifier (function_declarator "FUN_0001d3f8(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();\n  if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }\n    param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);\n  }\n  return param_3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00079af0)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00079af0)()" (parenthesized_expression "(*(code *)PTR___errno_location_00079af0)" ( (pointer_expression "*(code *)PTR___errno_location_00079af0" * (cast_expression "(code *)PTR___errno_location_00079af0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }\n    param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);\n  }" if (parenthesized_expression "((*piVar1 == 2) || (*piVar1 == 0x14))" ( (binary_expression "(*piVar1 == 2) || (*piVar1 == 0x14)" (parenthesized_expression "(*piVar1 == 2)" ( (binary_expression "*piVar1 == 2" (pointer_expression "*piVar1" * identifier) == number_literal) )) || (parenthesized_expression "(*piVar1 == 0x14)" ( (binary_expression "*piVar1 == 0x14" (pointer_expression "*piVar1" * identifier) == number_literal) ))) )) (compound_statement "{\n    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }\n    param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);\n  }" { (if_statement "if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }" if (parenthesized_expression "((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0)" ( (binary_expression "(*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0" (parenthesized_expression "(*(uint *)(PTR_options_000795bc + 0x2c) & 2)" ( (binary_expression "*(uint *)(PTR_options_000795bc + 0x2c) & 2" (pointer_expression "*(uint *)(PTR_options_000795bc + 0x2c)" * (cast_expression "(uint *)(PTR_options_000795bc + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_options_000795bc + 0x2c)" ( (binary_expression "PTR_options_000795bc + 0x2c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }" { (expression_statement "(*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);" (call_expression "(*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00079a44)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00079a44" * (cast_expression "(code *)PTR___fprintf_chk_00079a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1)" ( (pointer_expression "*(undefined4 *)PTR_stderr_00079c40" * (cast_expression "(undefined4 *)PTR_stderr_00079c40" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (binary_expression "PTR_s_nt0_000795b8 + 0xe98" identifier + number_literal) , identifier ))) ;) })) (expression_statement "param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);" (assignment_expression "param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100)" identifier = (call_expression "(*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100)" (parenthesized_expression "(*(code *)PTR___fxstatat64_00079bb0)" ( (pointer_expression "*(code *)PTR___fxstatat64_00079bb0" * (cast_expression "(code *)PTR___fxstatat64_00079bb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100)" ( number_literal , (pointer_expression "*(undefined4 *)(PTR_state_000795c0 + 0x10)" * (cast_expression "(undefined4 *)(PTR_state_000795c0 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_state_000795c0 + 0x10)" ( (binary_expression "PTR_state_000795c0 + 0x10" identifier + number_literal) )))) , identifier , identifier , number_literal )))) ;) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit "int fallback_stat(char *name,stat *p,int prev_rv)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();\n  if ((*piVar1 != 2) && (*piVar1 != 0x14)) {\n    return prev_rv;\n  }\n  if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n    (*(code *)PTR___fprintf_chk_00079a44)\n              (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,name);\n  }\n  (*(code *)PTR___fxstatat64_00079bb0)(3,*(undefined4 *)(PTR_state_000795c0 + 0x10),name,p,0x100);\n  iVar2 = FUN_0001d450();\n  return iVar2;\n}\n\n" (function_definition "int fallback_stat(char *name,stat *p,int prev_rv)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();\n  if ((*piVar1 != 2) && (*piVar1 != 0x14)) {\n    return prev_rv;\n  }\n  if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n    (*(code *)PTR___fprintf_chk_00079a44)\n              (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,name);\n  }\n  (*(code *)PTR___fxstatat64_00079bb0)(3,*(undefined4 *)(PTR_state_000795c0 + 0x10),name,p,0x100);\n  iVar2 = FUN_0001d450();\n  return iVar2;\n}" primitive_type (function_declarator "fallback_stat(char *name,stat *p,int prev_rv)" identifier (parameter_list "(char *name,stat *p,int prev_rv)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "stat *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int prev_rv" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();\n  if ((*piVar1 != 2) && (*piVar1 != 0x14)) {\n    return prev_rv;\n  }\n  if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n    (*(code *)PTR___fprintf_chk_00079a44)\n              (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,name);\n  }\n  (*(code *)PTR___fxstatat64_00079bb0)(3,*(undefined4 *)(PTR_state_000795c0 + 0x10),name,p,0x100);\n  iVar2 = FUN_0001d450();\n  return iVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00079af0)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00079af0)()" (parenthesized_expression "(*(code *)PTR___errno_location_00079af0)" ( (pointer_expression "*(code *)PTR___errno_location_00079af0" * (cast_expression "(code *)PTR___errno_location_00079af0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((*piVar1 != 2) && (*piVar1 != 0x14)) {\n    return prev_rv;\n  }" if (parenthesized_expression "((*piVar1 != 2) && (*piVar1 != 0x14))" ( (binary_expression "(*piVar1 != 2) && (*piVar1 != 0x14)" (parenthesized_expression "(*piVar1 != 2)" ( (binary_expression "*piVar1 != 2" (pointer_expression "*piVar1" * identifier) != number_literal) )) && (parenthesized_expression "(*piVar1 != 0x14)" ( (binary_expression "*piVar1 != 0x14" (pointer_expression "*piVar1" * identifier) != number_literal) ))) )) (compound_statement "{\n    return prev_rv;\n  }" { (return_statement "return prev_rv;" return identifier ;) })) (if_statement "if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n    (*(code *)PTR___fprintf_chk_00079a44)\n              (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,name);\n  }" if (parenthesized_expression "((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0)" ( (binary_expression "(*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0" (parenthesized_expression "(*(uint *)(PTR_options_000795bc + 0x2c) & 2)" ( (binary_expression "*(uint *)(PTR_options_000795bc + 0x2c) & 2" (pointer_expression "*(uint *)(PTR_options_000795bc + 0x2c)" * (cast_expression "(uint *)(PTR_options_000795bc + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_options_000795bc + 0x2c)" ( (binary_expression "PTR_options_000795bc + 0x2c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    (*(code *)PTR___fprintf_chk_00079a44)\n              (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,name);\n  }" { (expression_statement "(*(code *)PTR___fprintf_chk_00079a44)\n              (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,name);" (call_expression "(*(code *)PTR___fprintf_chk_00079a44)\n              (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,name)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00079a44)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00079a44" * (cast_expression "(code *)PTR___fprintf_chk_00079a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,name)" ( (pointer_expression "*(undefined4 *)PTR_stderr_00079c40" * (cast_expression "(undefined4 *)PTR_stderr_00079c40" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (binary_expression "PTR_s_nt0_000795b8 + 0xe98" identifier + number_literal) , identifier ))) ;) })) (expression_statement "(*(code *)PTR___fxstatat64_00079bb0)(3,*(undefined4 *)(PTR_state_000795c0 + 0x10),name,p,0x100);" (call_expression "(*(code *)PTR___fxstatat64_00079bb0)(3,*(undefined4 *)(PTR_state_000795c0 + 0x10),name,p,0x100)" (parenthesized_expression "(*(code *)PTR___fxstatat64_00079bb0)" ( (pointer_expression "*(code *)PTR___fxstatat64_00079bb0" * (cast_expression "(code *)PTR___fxstatat64_00079bb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,*(undefined4 *)(PTR_state_000795c0 + 0x10),name,p,0x100)" ( number_literal , (pointer_expression "*(undefined4 *)(PTR_state_000795c0 + 0x10)" * (cast_expression "(undefined4 *)(PTR_state_000795c0 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_state_000795c0 + 0x10)" ( (binary_expression "PTR_state_000795c0 + 0x10" identifier + number_literal) )))) , identifier , identifier , number_literal ))) ;) (expression_statement "iVar2 = FUN_0001d450();" (assignment_expression "iVar2 = FUN_0001d450()" identifier = (call_expression "FUN_0001d450()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_0001d3f8(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();\n  if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }\n    param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);\n  }\n  return param_3;\n}\n\n" (function_definition "undefined4 FUN_0001d3f8(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();\n  if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }\n    param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);\n  }\n  return param_3;\n}" type_identifier (function_declarator "FUN_0001d3f8(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();\n  if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }\n    param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);\n  }\n  return param_3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00079af0)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00079af0)()" (parenthesized_expression "(*(code *)PTR___errno_location_00079af0)" ( (pointer_expression "*(code *)PTR___errno_location_00079af0" * (cast_expression "(code *)PTR___errno_location_00079af0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }\n    param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);\n  }" if (parenthesized_expression "((*piVar1 == 2) || (*piVar1 == 0x14))" ( (binary_expression "(*piVar1 == 2) || (*piVar1 == 0x14)" (parenthesized_expression "(*piVar1 == 2)" ( (binary_expression "*piVar1 == 2" (pointer_expression "*piVar1" * identifier) == number_literal) )) || (parenthesized_expression "(*piVar1 == 0x14)" ( (binary_expression "*piVar1 == 0x14" (pointer_expression "*piVar1" * identifier) == number_literal) ))) )) (compound_statement "{\n    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }\n    param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);\n  }" { (if_statement "if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }" if (parenthesized_expression "((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0)" ( (binary_expression "(*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0" (parenthesized_expression "(*(uint *)(PTR_options_000795bc + 0x2c) & 2)" ( (binary_expression "*(uint *)(PTR_options_000795bc + 0x2c) & 2" (pointer_expression "*(uint *)(PTR_options_000795bc + 0x2c)" * (cast_expression "(uint *)(PTR_options_000795bc + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_options_000795bc + 0x2c)" ( (binary_expression "PTR_options_000795bc + 0x2c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }" { (expression_statement "(*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);" (call_expression "(*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00079a44)" ( (pointer_expression "*(code *)PTR___fprintf_chk_00079a44" * (cast_expression "(code *)PTR___fprintf_chk_00079a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1)" ( (pointer_expression "*(undefined4 *)PTR_stderr_00079c40" * (cast_expression "(undefined4 *)PTR_stderr_00079c40" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (binary_expression "PTR_s_nt0_000795b8 + 0xe98" identifier + number_literal) , identifier ))) ;) })) (expression_statement "param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);" (assignment_expression "param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100)" identifier = (call_expression "(*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100)" (parenthesized_expression "(*(code *)PTR___fxstatat64_00079bb0)" ( (pointer_expression "*(code *)PTR___fxstatat64_00079bb0" * (cast_expression "(code *)PTR___fxstatat64_00079bb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100)" ( number_literal , (pointer_expression "*(undefined4 *)(PTR_state_000795c0 + 0x10)" * (cast_expression "(undefined4 *)(PTR_state_000795c0 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_state_000795c0 + 0x10)" ( (binary_expression "PTR_state_000795c0 + 0x10" identifier + number_literal) )))) , identifier , identifier , number_literal )))) ;) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , LIT )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0001d3f8(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();\n  if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }\n    param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);\n  }\n  return param_3;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001d3f8(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_0001d3f8") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();\n  if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }\n    param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);\n  }\n  return param_3;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (expression_statement "piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)()" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_00079af0)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00079af0)()" (parenthesized_expression "(*(code *)PTR___errno_location_00079af0)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00079af0" (* "*") (cast_expression "(code *)PTR___errno_location_00079af0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00079af0"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }\n    param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);\n  }" (if "if") (parenthesized_expression "((*piVar1 == 2) || (*piVar1 == 0x14))" (( "(") (binary_expression "(*piVar1 == 2) || (*piVar1 == 0x14)" (parenthesized_expression "(*piVar1 == 2)" (( "(") (binary_expression "*piVar1 == 2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(*piVar1 == 0x14)" (( "(") (binary_expression "*piVar1 == 0x14" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "0x14")) () ")"))) () ")")) (compound_statement "{\n    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }\n    param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);\n  }" ({ "{") (if_statement "if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }" (if "if") (parenthesized_expression "((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0)" (( "(") (binary_expression "(*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0" (parenthesized_expression "(*(uint *)(PTR_options_000795bc + 0x2c) & 2)" (( "(") (binary_expression "*(uint *)(PTR_options_000795bc + 0x2c) & 2" (pointer_expression "*(uint *)(PTR_options_000795bc + 0x2c)" (* "*") (cast_expression "(uint *)(PTR_options_000795bc + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_options_000795bc + 0x2c)" (( "(") (binary_expression "PTR_options_000795bc + 0x2c" (identifier "PTR_options_000795bc") (+ "+") (number_literal "0x2c")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);\n    }" ({ "{") (expression_statement "(*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);" (call_expression "(*(code *)PTR___fprintf_chk_00079a44)\n                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_00079a44)" (( "(") (pointer_expression "*(code *)PTR___fprintf_chk_00079a44" (* "*") (cast_expression "(code *)PTR___fprintf_chk_00079a44" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fprintf_chk_00079a44"))) () ")")) (argument_list "(*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1)" (( "(") (pointer_expression "*(undefined4 *)PTR_stderr_00079c40" (* "*") (cast_expression "(undefined4 *)PTR_stderr_00079c40" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_00079c40"))) (, ",") (number_literal "1") (, ",") (binary_expression "PTR_s_nt0_000795b8 + 0xe98" (identifier "PTR_s_nt0_000795b8") (+ "+") (number_literal "0xe98")) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);" (assignment_expression "param_3 = (*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100)" (identifier "param_3") (= "=") (call_expression "(*(code *)PTR___fxstatat64_00079bb0)\n                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100)" (parenthesized_expression "(*(code *)PTR___fxstatat64_00079bb0)" (( "(") (pointer_expression "*(code *)PTR___fxstatat64_00079bb0" (* "*") (cast_expression "(code *)PTR___fxstatat64_00079bb0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fxstatat64_00079bb0"))) () ")")) (argument_list "(3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100)" (( "(") (number_literal "3") (, ",") (pointer_expression "*(undefined4 *)(PTR_state_000795c0 + 0x10)" (* "*") (cast_expression "(undefined4 *)(PTR_state_000795c0 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_state_000795c0 + 0x10)" (( "(") (binary_expression "PTR_state_000795c0 + 0x10" (identifier "PTR_state_000795c0") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0x100") () ")")))) (; ";")) (} "}"))) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (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 (number_literal) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier) (identifier) (number_literal))))))) (return_statement (identifier)))))

undefined4 MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int *piVar1;
  
  piVar1 = (int *)(*(code *)PTR___errno_location_00079af0)();
  if ((*piVar1 == 2) || (*piVar1 == 0x14)) {
    if ((*(uint *)(PTR_options_000795bc + 0x2c) & 2) != 0) {
      (*(code *)PTR___fprintf_chk_00079a44)
                (*(undefined4 *)PTR_stderr_00079c40,1,PTR_s_nt0_000795b8 + 0xe98,param_1);
    }
    param_3 = (*(code *)PTR___fxstatat64_00079bb0)
                        (3,*(undefined4 *)(PTR_state_000795c0 + 0x10),param_1,param_2,0x100);
  }
  return param_3;
}

