
int optionh_stat(char *name,stat *p)

{
  int *piVar1;
  int iVar2;
  char *prev_rv;
  
  iVar2 = *(int *)(PTR_state_000755c0 + 0x10);
  if ((iVar2 != -100) && (iVar2 < 0)) {
    iVar2 = (*(code *)PTR___assert_fail_000759d0)
                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,
                       PTR_s_directory_000755b8 + -0x253c);
    return iVar2;
  }
  if (*(int *)PTR_state_000755c0 != 0) {
    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,name,p,0x100);
    return iVar2;
  }
  prev_rv = name;
  iVar2 = (*(code *)PTR___fxstatat64_00075b88)();
  if (iVar2 != 0) {
    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();
    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {
      iVar2 = fallback_stat(name,p,(int)prev_rv);
      return iVar2;
    }
  }
  return iVar2;
}



int optionh_stat(undefined4 param_1,undefined4 param_2)

{
  int *piVar1;
  int iVar2;
  
  iVar2 = *(int *)(PTR_state_000755c0 + 0x10);
  if ((iVar2 != -100) && (iVar2 < 0)) {
    iVar2 = (*(code *)PTR___assert_fail_000759d0)
                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,
                       PTR_s_directory_000755b8 + -0x253c);
    return iVar2;
  }
  if (*(int *)PTR_state_000755c0 != 0) {
    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);
    return iVar2;
  }
  iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0);
  if (iVar2 != 0) {
    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();
    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {
      iVar2 = FUN_0001c888(param_1,param_2);
      return iVar2;
    }
  }
  return iVar2;
}


lui gp,0x6
addiu gp,gp,0xb0
addu gp,gp,t9
lw v0,-0x7fc0(gp)
addiu sp,sp,-0x30
li v1,-0x64
sw s2,0x28(sp)
or s2,a1,zero
sw gp,0x18(sp)
sw s1,0x24(sp)
sw ra,0x2c(sp)
sw s0,0x20(sp)
lw a1,0x10(v0)
beq a1,v1,0x0001d514
_or s1,a0,zero
bltz a1,0x0001d5e0
_lw a3,-0x7fc8(gp)
lw v0,0x0(v0)
li a0,0x3
bne v0,zero,0x0001d5ac
_lw t9,-0x79f8(gp)
sw zero,0x10(sp)
or a3,s2,zero
jalr t9
_or a2,s1,zero
lw gp,0x18(sp)
bne v0,zero,0x0001d55c
_or s0,v0,zero
lw ra,0x2c(sp)
or v0,s0,zero
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7abc(gp)
jalr t9
_nop
li v1,0x2
lw v0,0x0(v0)
beq v0,v1,0x0001d584
_lw gp,0x18(sp)
li v1,0x14
bne v0,v1,0x0001d544
_lw ra,0x2c(sp)
lw t9,-0x7f18(gp)
or a1,s2,zero
lw ra,0x2c(sp)
or a0,s1,zero
lw s2,0x28(sp)
lw s1,0x24(sp)
addiu t9,t9,-0x3778
lw s0,0x20(sp)
b 0x0001c888
_addiu sp,sp,0x30
li v0,0x100
or a3,s2,zero
or a2,s1,zero
jalr t9
_sw v0,0x10(sp)
lw ra,0x2c(sp)
or s0,v0,zero
or v0,s0,zero
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
li a2,0x279
lw a1,-0x7fc8(gp)
lw a0,-0x7fc8(gp)
lw t9,-0x7bb0(gp)
addiu a3,a3,-0x253c
addiu a1,a1,-0x31bc
jalr t9
_addiu a0,a0,-0x2a3c
(translation_unit "int optionh_stat(undefined4 param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_state_000755c0 + 0x10);\n  if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }\n  if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);\n    return iVar2;\n  }\n  iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0);\n  if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }\n  }\n  return iVar2;\n}\n\n" (function_definition "int optionh_stat(undefined4 param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_state_000755c0 + 0x10);\n  if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }\n  if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);\n    return iVar2;\n  }\n  iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0);\n  if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }\n  }\n  return iVar2;\n}" primitive_type (function_declarator "optionh_stat(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_state_000755c0 + 0x10);\n  if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }\n  if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);\n    return iVar2;\n  }\n  iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0);\n  if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }\n  }\n  return iVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(PTR_state_000755c0 + 0x10);" (assignment_expression "iVar2 = *(int *)(PTR_state_000755c0 + 0x10)" identifier = (pointer_expression "*(int *)(PTR_state_000755c0 + 0x10)" * (cast_expression "(int *)(PTR_state_000755c0 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_state_000755c0 + 0x10)" ( (binary_expression "PTR_state_000755c0 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }" if (parenthesized_expression "((iVar2 != -100) && (iVar2 < 0))" ( (binary_expression "(iVar2 != -100) && (iVar2 < 0)" (parenthesized_expression "(iVar2 != -100)" ( (binary_expression "iVar2 != -100" identifier != number_literal) )) && (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) ))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }" { (expression_statement "iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);" (assignment_expression "iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000759d0)" ( (pointer_expression "*(code *)PTR___assert_fail_000759d0" * (cast_expression "(code *)PTR___assert_fail_000759d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c)" ( (binary_expression "PTR_s_directory_000755b8 + -0x2a3c" identifier + number_literal) , (binary_expression "PTR_s_directory_000755b8 + -0x31bc" identifier + number_literal) , number_literal , (binary_expression "PTR_s_directory_000755b8 + -0x253c" identifier + number_literal) )))) ;) (return_statement "return iVar2;" return identifier ;) })) (if_statement "if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);\n    return iVar2;\n  }" if (parenthesized_expression "(*(int *)PTR_state_000755c0 != 0)" ( (binary_expression "*(int *)PTR_state_000755c0 != 0" (pointer_expression "*(int *)PTR_state_000755c0" * (cast_expression "(int *)PTR_state_000755c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);\n    return iVar2;\n  }" { (expression_statement "iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);" (assignment_expression "iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100)" identifier = (call_expression "(*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100)" (parenthesized_expression "(*(code *)PTR___fxstatat64_00075b88)" ( (pointer_expression "*(code *)PTR___fxstatat64_00075b88" * (cast_expression "(code *)PTR___fxstatat64_00075b88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,iVar2,param_1,param_2,0x100)" ( number_literal , identifier , identifier , identifier , number_literal )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0);" (assignment_expression "iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0)" identifier = (call_expression "(*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0)" (parenthesized_expression "(*(code *)PTR___fxstatat64_00075b88)" ( (pointer_expression "*(code *)PTR___fxstatat64_00075b88" * (cast_expression "(code *)PTR___fxstatat64_00075b88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,iVar2,param_1,param_2,0)" ( number_literal , identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }\n  }" { (expression_statement "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\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      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }" { (expression_statement "iVar2 = FUN_0001c888(param_1,param_2);" (assignment_expression "iVar2 = FUN_0001c888(param_1,param_2)" identifier = (call_expression "FUN_0001c888(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int optionh_stat(char *name,stat *p)\n\n{\n  int *piVar1;\n  int iVar2;\n  char *prev_rv;\n  \n  iVar2 = *(int *)(PTR_state_000755c0 + 0x10);\n  if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }\n  if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,name,p,0x100);\n    return iVar2;\n  }\n  prev_rv = name;\n  iVar2 = (*(code *)PTR___fxstatat64_00075b88)();\n  if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = fallback_stat(name,p,(int)prev_rv);\n      return iVar2;\n    }\n  }\n  return iVar2;\n}\n\n" (function_definition "int optionh_stat(char *name,stat *p)\n\n{\n  int *piVar1;\n  int iVar2;\n  char *prev_rv;\n  \n  iVar2 = *(int *)(PTR_state_000755c0 + 0x10);\n  if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }\n  if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,name,p,0x100);\n    return iVar2;\n  }\n  prev_rv = name;\n  iVar2 = (*(code *)PTR___fxstatat64_00075b88)();\n  if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = fallback_stat(name,p,(int)prev_rv);\n      return iVar2;\n    }\n  }\n  return iVar2;\n}" primitive_type (function_declarator "optionh_stat(char *name,stat *p)" identifier (parameter_list "(char *name,stat *p)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "stat *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char *prev_rv;\n  \n  iVar2 = *(int *)(PTR_state_000755c0 + 0x10);\n  if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }\n  if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,name,p,0x100);\n    return iVar2;\n  }\n  prev_rv = name;\n  iVar2 = (*(code *)PTR___fxstatat64_00075b88)();\n  if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = fallback_stat(name,p,(int)prev_rv);\n      return iVar2;\n    }\n  }\n  return iVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *prev_rv;" primitive_type (pointer_declarator "*prev_rv" * identifier) ;) (expression_statement "iVar2 = *(int *)(PTR_state_000755c0 + 0x10);" (assignment_expression "iVar2 = *(int *)(PTR_state_000755c0 + 0x10)" identifier = (pointer_expression "*(int *)(PTR_state_000755c0 + 0x10)" * (cast_expression "(int *)(PTR_state_000755c0 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_state_000755c0 + 0x10)" ( (binary_expression "PTR_state_000755c0 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }" if (parenthesized_expression "((iVar2 != -100) && (iVar2 < 0))" ( (binary_expression "(iVar2 != -100) && (iVar2 < 0)" (parenthesized_expression "(iVar2 != -100)" ( (binary_expression "iVar2 != -100" identifier != number_literal) )) && (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) ))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }" { (expression_statement "iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);" (assignment_expression "iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000759d0)" ( (pointer_expression "*(code *)PTR___assert_fail_000759d0" * (cast_expression "(code *)PTR___assert_fail_000759d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c)" ( (binary_expression "PTR_s_directory_000755b8 + -0x2a3c" identifier + number_literal) , (binary_expression "PTR_s_directory_000755b8 + -0x31bc" identifier + number_literal) , number_literal , (binary_expression "PTR_s_directory_000755b8 + -0x253c" identifier + number_literal) )))) ;) (return_statement "return iVar2;" return identifier ;) })) (if_statement "if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,name,p,0x100);\n    return iVar2;\n  }" if (parenthesized_expression "(*(int *)PTR_state_000755c0 != 0)" ( (binary_expression "*(int *)PTR_state_000755c0 != 0" (pointer_expression "*(int *)PTR_state_000755c0" * (cast_expression "(int *)PTR_state_000755c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,name,p,0x100);\n    return iVar2;\n  }" { (expression_statement "iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,name,p,0x100);" (assignment_expression "iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,name,p,0x100)" identifier = (call_expression "(*(code *)PTR___fxstatat64_00075b88)(3,iVar2,name,p,0x100)" (parenthesized_expression "(*(code *)PTR___fxstatat64_00075b88)" ( (pointer_expression "*(code *)PTR___fxstatat64_00075b88" * (cast_expression "(code *)PTR___fxstatat64_00075b88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,iVar2,name,p,0x100)" ( number_literal , identifier , identifier , identifier , number_literal )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "prev_rv = name;" (assignment_expression "prev_rv = name" identifier = identifier) ;) (expression_statement "iVar2 = (*(code *)PTR___fxstatat64_00075b88)();" (assignment_expression "iVar2 = (*(code *)PTR___fxstatat64_00075b88)()" identifier = (call_expression "(*(code *)PTR___fxstatat64_00075b88)()" (parenthesized_expression "(*(code *)PTR___fxstatat64_00075b88)" ( (pointer_expression "*(code *)PTR___fxstatat64_00075b88" * (cast_expression "(code *)PTR___fxstatat64_00075b88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = fallback_stat(name,p,(int)prev_rv);\n      return iVar2;\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = fallback_stat(name,p,(int)prev_rv);\n      return iVar2;\n    }\n  }" { (expression_statement "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = fallback_stat(name,p,(int)prev_rv);\n      return iVar2;\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      iVar2 = fallback_stat(name,p,(int)prev_rv);\n      return iVar2;\n    }" { (expression_statement "iVar2 = fallback_stat(name,p,(int)prev_rv);" (assignment_expression "iVar2 = fallback_stat(name,p,(int)prev_rv)" identifier = (call_expression "fallback_stat(name,p,(int)prev_rv)" identifier (argument_list "(name,p,(int)prev_rv)" ( identifier , identifier , (cast_expression "(int)prev_rv" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (return_statement "return iVar2;" return identifier ;) })) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int optionh_stat(undefined4 param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_state_000755c0 + 0x10);\n  if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }\n  if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);\n    return iVar2;\n  }\n  iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0);\n  if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }\n  }\n  return iVar2;\n}\n\n" (function_definition "int optionh_stat(undefined4 param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_state_000755c0 + 0x10);\n  if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }\n  if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);\n    return iVar2;\n  }\n  iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0);\n  if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }\n  }\n  return iVar2;\n}" primitive_type (function_declarator "optionh_stat(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_state_000755c0 + 0x10);\n  if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }\n  if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);\n    return iVar2;\n  }\n  iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0);\n  if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }\n  }\n  return iVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(PTR_state_000755c0 + 0x10);" (assignment_expression "iVar2 = *(int *)(PTR_state_000755c0 + 0x10)" identifier = (pointer_expression "*(int *)(PTR_state_000755c0 + 0x10)" * (cast_expression "(int *)(PTR_state_000755c0 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_state_000755c0 + 0x10)" ( (binary_expression "PTR_state_000755c0 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }" if (parenthesized_expression "((iVar2 != -100) && (iVar2 < 0))" ( (binary_expression "(iVar2 != -100) && (iVar2 < 0)" (parenthesized_expression "(iVar2 != -100)" ( (binary_expression "iVar2 != -100" identifier != number_literal) )) && (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) ))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }" { (expression_statement "iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);" (assignment_expression "iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c)" identifier = (call_expression "(*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000759d0)" ( (pointer_expression "*(code *)PTR___assert_fail_000759d0" * (cast_expression "(code *)PTR___assert_fail_000759d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c)" ( (binary_expression "PTR_s_directory_000755b8 + -0x2a3c" identifier + number_literal) , (binary_expression "PTR_s_directory_000755b8 + -0x31bc" identifier + number_literal) , number_literal , (binary_expression "PTR_s_directory_000755b8 + -0x253c" identifier + number_literal) )))) ;) (return_statement "return iVar2;" return identifier ;) })) (if_statement "if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);\n    return iVar2;\n  }" if (parenthesized_expression "(*(int *)PTR_state_000755c0 != 0)" ( (binary_expression "*(int *)PTR_state_000755c0 != 0" (pointer_expression "*(int *)PTR_state_000755c0" * (cast_expression "(int *)PTR_state_000755c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);\n    return iVar2;\n  }" { (expression_statement "iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);" (assignment_expression "iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100)" identifier = (call_expression "(*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100)" (parenthesized_expression "(*(code *)PTR___fxstatat64_00075b88)" ( (pointer_expression "*(code *)PTR___fxstatat64_00075b88" * (cast_expression "(code *)PTR___fxstatat64_00075b88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,iVar2,param_1,param_2,0x100)" ( number_literal , identifier , identifier , identifier , number_literal )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0);" (assignment_expression "iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0)" identifier = (call_expression "(*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0)" (parenthesized_expression "(*(code *)PTR___fxstatat64_00075b88)" ( (pointer_expression "*(code *)PTR___fxstatat64_00075b88" * (cast_expression "(code *)PTR___fxstatat64_00075b88" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,iVar2,param_1,param_2,0)" ( number_literal , identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }\n  }" { (expression_statement "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\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      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }" { (expression_statement "iVar2 = FUN_0001c888(param_1,param_2);" (assignment_expression "iVar2 = FUN_0001c888(param_1,param_2)" identifier = (call_expression "FUN_0001c888(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (compound_statement { (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) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , IDENT , IDENT , LIT )))) ;) (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 ( LIT , IDENT , IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int optionh_stat(undefined4 param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_state_000755c0 + 0x10);\n  if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }\n  if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);\n    return iVar2;\n  }\n  iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0);\n  if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "optionh_stat(undefined4 param_1,undefined4 param_2)" (identifier "optionh_stat") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(PTR_state_000755c0 + 0x10);\n  if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }\n  if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);\n    return iVar2;\n  }\n  iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0);\n  if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }\n  }\n  return iVar2;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *(int *)(PTR_state_000755c0 + 0x10);" (assignment_expression "iVar2 = *(int *)(PTR_state_000755c0 + 0x10)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(PTR_state_000755c0 + 0x10)" (* "*") (cast_expression "(int *)(PTR_state_000755c0 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_state_000755c0 + 0x10)" (( "(") (binary_expression "PTR_state_000755c0 + 0x10" (identifier "PTR_state_000755c0") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if ((iVar2 != -100) && (iVar2 < 0)) {\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }" (if "if") (parenthesized_expression "((iVar2 != -100) && (iVar2 < 0))" (( "(") (binary_expression "(iVar2 != -100) && (iVar2 < 0)" (parenthesized_expression "(iVar2 != -100)" (( "(") (binary_expression "iVar2 != -100" (identifier "iVar2") (!= "!=") (number_literal "-100")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);\n    return iVar2;\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c);" (assignment_expression "iVar2 = (*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR___assert_fail_000759d0)\n                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000759d0)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000759d0" (* "*") (cast_expression "(code *)PTR___assert_fail_000759d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000759d0"))) () ")")) (argument_list "(PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,\n                       PTR_s_directory_000755b8 + -0x253c)" (( "(") (binary_expression "PTR_s_directory_000755b8 + -0x2a3c" (identifier "PTR_s_directory_000755b8") (+ "+") (number_literal "-0x2a3c")) (, ",") (binary_expression "PTR_s_directory_000755b8 + -0x31bc" (identifier "PTR_s_directory_000755b8") (+ "+") (number_literal "-0x31bc")) (, ",") (number_literal "0x279") (, ",") (binary_expression "PTR_s_directory_000755b8 + -0x253c" (identifier "PTR_s_directory_000755b8") (+ "+") (number_literal "-0x253c")) () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (if_statement "if (*(int *)PTR_state_000755c0 != 0) {\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(*(int *)PTR_state_000755c0 != 0)" (( "(") (binary_expression "*(int *)PTR_state_000755c0 != 0" (pointer_expression "*(int *)PTR_state_000755c0" (* "*") (cast_expression "(int *)PTR_state_000755c0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_state_000755c0"))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);\n    return iVar2;\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);" (assignment_expression "iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100)" (parenthesized_expression "(*(code *)PTR___fxstatat64_00075b88)" (( "(") (pointer_expression "*(code *)PTR___fxstatat64_00075b88" (* "*") (cast_expression "(code *)PTR___fxstatat64_00075b88" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fxstatat64_00075b88"))) () ")")) (argument_list "(3,iVar2,param_1,param_2,0x100)" (( "(") (number_literal "3") (, ",") (identifier "iVar2") (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0x100") () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0);" (assignment_expression "iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0)" (parenthesized_expression "(*(code *)PTR___fxstatat64_00075b88)" (( "(") (pointer_expression "*(code *)PTR___fxstatat64_00075b88" (* "*") (cast_expression "(code *)PTR___fxstatat64_00075b88" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fxstatat64_00075b88"))) () ")")) (argument_list "(3,iVar2,param_1,param_2,0)" (( "(") (number_literal "3") (, ",") (identifier "iVar2") (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }\n  }" ({ "{") (expression_statement "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)()" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00075ac4" (* "*") (cast_expression "(code *)PTR___errno_location_00075ac4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00075ac4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if ((*piVar1 == 2) || (*piVar1 == 0x14)) {\n      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\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      iVar2 = FUN_0001c888(param_1,param_2);\n      return iVar2;\n    }" ({ "{") (expression_statement "iVar2 = FUN_0001c888(param_1,param_2);" (assignment_expression "iVar2 = FUN_0001c888(param_1,param_2)" (identifier "iVar2") (= "=") (call_expression "FUN_0001c888(param_1,param_2)" (identifier "FUN_0001c888") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

int function_1(char *name,type_1 *p)

{
  int *piVar1;
  int var_2;
  char *prev_rv;
  
  var_2 = *(int *)(var_1 + 0x10);
  if ((var_2 != -100) && (var_2 < 0)) {
    var_2 = (*(type_2 *)PTR___assert_fail_000759d0)
                      (var_3 + -0x2a3c,var_3 + -0x31bc,0x279,
                       var_3 + -0x253c);
    return var_2;
  }
  if (*(int *)var_1 != 0) {
    var_2 = (*(type_2 *)PTR___fxstatat64_00075b88)(3,var_2,name,p,0x100);
    return var_2;
  }
  prev_rv = name;
  var_2 = (*(type_2 *)PTR___fxstatat64_00075b88)();
  if (var_2 != 0) {
    piVar1 = (int *)(*(type_2 *)PTR___errno_location_00075ac4)();
    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {
      var_2 = var_4(name,p,(int)prev_rv);
      return var_2;
    }
  }
  return var_2;
}


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

int MASKED(undefined4 param_1,undefined4 param_2)

{
  int *piVar1;
  int iVar2;
  
  iVar2 = *(int *)(PTR_state_000755c0 + 0x10);
  if ((iVar2 != -100) && (iVar2 < 0)) {
    iVar2 = (*(code *)PTR___assert_fail_000759d0)
                      (PTR_s_directory_000755b8 + -0x2a3c,PTR_s_directory_000755b8 + -0x31bc,0x279,
                       PTR_s_directory_000755b8 + -0x253c);
    return iVar2;
  }
  if (*(int *)PTR_state_000755c0 != 0) {
    iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0x100);
    return iVar2;
  }
  iVar2 = (*(code *)PTR___fxstatat64_00075b88)(3,iVar2,param_1,param_2,0);
  if (iVar2 != 0) {
    piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();
    if ((*piVar1 == 2) || (*piVar1 == 0x14)) {
      iVar2 = FUN_0001c888(param_1,param_2);
      return iVar2;
    }
  }
  return iVar2;
}

