
int file_is_executable(char *name)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  stat s;
  
  puVar1 = PTR___stack_chk_guard_0012b14c;
  iVar2 = *(int *)PTR___stack_chk_guard_0012b14c;
  iVar3 = (*(code *)PTR_access_0012ae48)(name,1);
  if (iVar3 == 0) {
    iVar3 = (*(code *)PTR___xstat64_0012acc4)(3,name,&s);
    if (iVar3 == 0) {
      iVar2 = FUN_000e9ea0();
      return iVar2;
    }
  }
  if (iVar2 == *(int *)puVar1) {
    return 0;
  }
  iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();
  return iVar2;
}



uint FUN_000e9e54(undefined4 param_1)

{
  undefined *puVar1;
  int iVar2;
  uint uVar3;
  undefined1 auStack_b8 [24];
  uint local_a0;
  int local_14;
  
  puVar1 = PTR___stack_chk_guard_0012b14c;
  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;
  iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1);
  if (iVar2 == 0) {
    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);
    if (iVar2 == 0) {
      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);
      goto LAB_000e9ea0;
    }
  }
  uVar3 = 0;
LAB_000e9ea0:
  if (local_14 == *(int *)puVar1) {
    return uVar3;
  }
  uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)();
  return uVar3;
}


lui gp,0x5
addiu gp,gp,-0x7d04
addu gp,gp,t9
addiu sp,sp,-0xd0
lw t9,-0x7308(gp)
li a1,0x1
sw s0,0xc4(sp)
lw s0,-0x7004(gp)
sw gp,0x10(sp)
sw s1,0xc8(sp)
or s1,a0,zero
sw ra,0xcc(sp)
lw v0,0x0(s0)
sw v0,0xbc(sp)
jalr t9
_nop
beq v0,zero,0x000e9ecc
_lw gp,0x10(sp)
or v0,zero,zero
lw a0,0xbc(sp)
lw v1,0x0(s0)
bne a0,v1,0x000e9ec0
_lw ra,0xcc(sp)
lw s1,0xc8(sp)
lw s0,0xc4(sp)
jr ra
_addiu sp,sp,0xd0
lw t9,-0x7088(gp)
jalr t9
_nop
lw t9,-0x748c(gp)
addiu a2,sp,0x18
li a0,0x3
jalr t9
_or a1,s1,zero
bne v0,zero,0x000e9e9c
_lw gp,0x10(sp)
lw v0,0x30(sp)
andi v0,v0,0xf000
xori v0,v0,0x8000
b 0x000e9ea0
_sltiu v0,v0,0x1
(translation_unit "uint FUN_000e9e54(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);\n    if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }\n  }\n  uVar3 = 0;\nLAB_000e9ea0:\n  if (local_14 == *(int *)puVar1) {\n    return uVar3;\n  }\n  uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return uVar3;\n}\n\n" (function_definition "uint FUN_000e9e54(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);\n    if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }\n  }\n  uVar3 = 0;\nLAB_000e9ea0:\n  if (local_14 == *(int *)puVar1) {\n    return uVar3;\n  }\n  uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return uVar3;\n}" type_identifier (function_declarator "FUN_000e9e54(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);\n    if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }\n  }\n  uVar3 = 0;\nLAB_000e9ea0:\n  if (local_14 == *(int *)puVar1) {\n    return uVar3;\n  }\n  uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined1 auStack_b8 [24];" type_identifier (array_declarator "auStack_b8 [24]" identifier [ number_literal ]) ;) (declaration "uint local_a0;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1);" (assignment_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1)" identifier = (call_expression "(*(code *)PTR_access_0012ae48)(param_1,1)" (parenthesized_expression "(*(code *)PTR_access_0012ae48)" ( (pointer_expression "*(code *)PTR_access_0012ae48" * (cast_expression "(code *)PTR_access_0012ae48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);\n    if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);\n    if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);" (assignment_expression "iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8)" identifier = (call_expression "(*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8)" (parenthesized_expression "(*(code *)PTR___xstat64_0012acc4)" ( (pointer_expression "*(code *)PTR___xstat64_0012acc4" * (cast_expression "(code *)PTR___xstat64_0012acc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,param_1,auStack_b8)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }" { (expression_statement "uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);" (assignment_expression "uVar3 = (uint)((local_a0 & 0xf000) == 0x8000)" identifier = (call_expression "(uint)((local_a0 & 0xf000) == 0x8000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((local_a0 & 0xf000) == 0x8000)" ( (binary_expression "(local_a0 & 0xf000) == 0x8000" (parenthesized_expression "(local_a0 & 0xf000)" ( (binary_expression "local_a0 & 0xf000" identifier & number_literal) )) == number_literal) )))) ;) (goto_statement "goto LAB_000e9ea0;" goto statement_identifier ;) })) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000e9ea0:\n  if (local_14 == *(int *)puVar1) {\n    return uVar3;\n  }" statement_identifier : (if_statement "if (local_14 == *(int *)puVar1) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar1)" ( (binary_expression "local_14 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) }))) (expression_statement "uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)();" (assignment_expression "uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)()" identifier = (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "int file_is_executable(char *name)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  stat s;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar3 = (*(code *)PTR_access_0012ae48)(name,1);\n  if (iVar3 == 0) {\n    iVar3 = (*(code *)PTR___xstat64_0012acc4)(3,name,&s);\n    if (iVar3 == 0) {\n      iVar2 = FUN_000e9ea0();\n      return iVar2;\n    }\n  }\n  if (iVar2 == *(int *)puVar1) {\n    return 0;\n  }\n  iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return iVar2;\n}\n\n" (function_definition "int file_is_executable(char *name)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  stat s;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar3 = (*(code *)PTR_access_0012ae48)(name,1);\n  if (iVar3 == 0) {\n    iVar3 = (*(code *)PTR___xstat64_0012acc4)(3,name,&s);\n    if (iVar3 == 0) {\n      iVar2 = FUN_000e9ea0();\n      return iVar2;\n    }\n  }\n  if (iVar2 == *(int *)puVar1) {\n    return 0;\n  }\n  iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return iVar2;\n}" primitive_type (function_declarator "file_is_executable(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  stat s;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar3 = (*(code *)PTR_access_0012ae48)(name,1);\n  if (iVar3 == 0) {\n    iVar3 = (*(code *)PTR___xstat64_0012acc4)(3,name,&s);\n    if (iVar3 == 0) {\n      iVar2 = FUN_000e9ea0();\n      return iVar2;\n    }\n  }\n  if (iVar2 == *(int *)puVar1) {\n    return 0;\n  }\n  iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return iVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "stat s;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar3 = (*(code *)PTR_access_0012ae48)(name,1);" (assignment_expression "iVar3 = (*(code *)PTR_access_0012ae48)(name,1)" identifier = (call_expression "(*(code *)PTR_access_0012ae48)(name,1)" (parenthesized_expression "(*(code *)PTR_access_0012ae48)" ( (pointer_expression "*(code *)PTR_access_0012ae48" * (cast_expression "(code *)PTR_access_0012ae48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n    iVar3 = (*(code *)PTR___xstat64_0012acc4)(3,name,&s);\n    if (iVar3 == 0) {\n      iVar2 = FUN_000e9ea0();\n      return iVar2;\n    }\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar3 = (*(code *)PTR___xstat64_0012acc4)(3,name,&s);\n    if (iVar3 == 0) {\n      iVar2 = FUN_000e9ea0();\n      return iVar2;\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR___xstat64_0012acc4)(3,name,&s);" (assignment_expression "iVar3 = (*(code *)PTR___xstat64_0012acc4)(3,name,&s)" identifier = (call_expression "(*(code *)PTR___xstat64_0012acc4)(3,name,&s)" (parenthesized_expression "(*(code *)PTR___xstat64_0012acc4)" ( (pointer_expression "*(code *)PTR___xstat64_0012acc4" * (cast_expression "(code *)PTR___xstat64_0012acc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,name,&s)" ( number_literal , identifier , (pointer_expression "&s" & identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n      iVar2 = FUN_000e9ea0();\n      return iVar2;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = FUN_000e9ea0();\n      return iVar2;\n    }" { (expression_statement "iVar2 = FUN_000e9ea0();" (assignment_expression "iVar2 = FUN_000e9ea0()" identifier = (call_expression "FUN_000e9ea0()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })) })) (if_statement "if (iVar2 == *(int *)puVar1) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar1)" ( (binary_expression "iVar2 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)();" (assignment_expression "iVar2 = (*(code *)PTR___stack_chk_fail_0012b0c8)()" identifier = (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "uint FUN_000e9e54(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);\n    if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }\n  }\n  uVar3 = 0;\nLAB_000e9ea0:\n  if (local_14 == *(int *)puVar1) {\n    return uVar3;\n  }\n  uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return uVar3;\n}\n\n" (function_definition "uint FUN_000e9e54(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);\n    if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }\n  }\n  uVar3 = 0;\nLAB_000e9ea0:\n  if (local_14 == *(int *)puVar1) {\n    return uVar3;\n  }\n  uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return uVar3;\n}" type_identifier (function_declarator "FUN_000e9e54(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);\n    if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }\n  }\n  uVar3 = 0;\nLAB_000e9ea0:\n  if (local_14 == *(int *)puVar1) {\n    return uVar3;\n  }\n  uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined1 auStack_b8 [24];" type_identifier (array_declarator "auStack_b8 [24]" identifier [ number_literal ]) ;) (declaration "uint local_a0;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1);" (assignment_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1)" identifier = (call_expression "(*(code *)PTR_access_0012ae48)(param_1,1)" (parenthesized_expression "(*(code *)PTR_access_0012ae48)" ( (pointer_expression "*(code *)PTR_access_0012ae48" * (cast_expression "(code *)PTR_access_0012ae48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);\n    if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);\n    if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);" (assignment_expression "iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8)" identifier = (call_expression "(*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8)" (parenthesized_expression "(*(code *)PTR___xstat64_0012acc4)" ( (pointer_expression "*(code *)PTR___xstat64_0012acc4" * (cast_expression "(code *)PTR___xstat64_0012acc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,param_1,auStack_b8)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }" { (expression_statement "uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);" (assignment_expression "uVar3 = (uint)((local_a0 & 0xf000) == 0x8000)" identifier = (call_expression "(uint)((local_a0 & 0xf000) == 0x8000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((local_a0 & 0xf000) == 0x8000)" ( (binary_expression "(local_a0 & 0xf000) == 0x8000" (parenthesized_expression "(local_a0 & 0xf000)" ( (binary_expression "local_a0 & 0xf000" identifier & number_literal) )) == number_literal) )))) ;) (goto_statement "goto LAB_000e9ea0;" goto statement_identifier ;) })) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000e9ea0:\n  if (local_14 == *(int *)puVar1) {\n    return uVar3;\n  }" statement_identifier : (if_statement "if (local_14 == *(int *)puVar1) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar1)" ( (binary_expression "local_14 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) }))) (expression_statement "uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)();" (assignment_expression "uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)()" identifier = (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_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 ( IDENT , LIT )))) ;) (if_statement if (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 ( LIT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )))) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })))
(function_definition "uint FUN_000e9e54(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);\n    if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }\n  }\n  uVar3 = 0;\nLAB_000e9ea0:\n  if (local_14 == *(int *)puVar1) {\n    return uVar3;\n  }\n  uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return uVar3;\n}" (type_identifier "uint") (function_declarator "FUN_000e9e54(undefined4 param_1)" (identifier "FUN_000e9e54") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined1 auStack_b8 [24];\n  uint local_a0;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0012b14c;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);\n    if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }\n  }\n  uVar3 = 0;\nLAB_000e9ea0:\n  if (local_14 == *(int *)puVar1) {\n    return uVar3;\n  }\n  uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return uVar3;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined1 auStack_b8 [24];" (type_identifier "undefined1") (array_declarator "auStack_b8 [24]" (identifier "auStack_b8") ([ "[") (number_literal "24") (] "]")) (; ";")) (declaration "uint local_a0;" (type_identifier "uint") (identifier "local_a0") (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0012b14c" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_0012b14c")) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0012b14c" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0012b14c")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1);" (assignment_expression "iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_access_0012ae48)(param_1,1)" (parenthesized_expression "(*(code *)PTR_access_0012ae48)" (( "(") (pointer_expression "*(code *)PTR_access_0012ae48" (* "*") (cast_expression "(code *)PTR_access_0012ae48" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_access_0012ae48"))) () ")")) (argument_list "(param_1,1)" (( "(") (identifier "param_1") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);\n    if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);\n    if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);" (assignment_expression "iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8)" (parenthesized_expression "(*(code *)PTR___xstat64_0012acc4)" (( "(") (pointer_expression "*(code *)PTR___xstat64_0012acc4" (* "*") (cast_expression "(code *)PTR___xstat64_0012acc4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___xstat64_0012acc4"))) () ")")) (argument_list "(3,param_1,auStack_b8)" (( "(") (number_literal "3") (, ",") (identifier "param_1") (, ",") (identifier "auStack_b8") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);\n      goto LAB_000e9ea0;\n    }" ({ "{") (expression_statement "uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);" (assignment_expression "uVar3 = (uint)((local_a0 & 0xf000) == 0x8000)" (identifier "uVar3") (= "=") (call_expression "(uint)((local_a0 & 0xf000) == 0x8000)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((local_a0 & 0xf000) == 0x8000)" (( "(") (binary_expression "(local_a0 & 0xf000) == 0x8000" (parenthesized_expression "(local_a0 & 0xf000)" (( "(") (binary_expression "local_a0 & 0xf000" (identifier "local_a0") (& "&") (number_literal "0xf000")) () ")")) (== "==") (number_literal "0x8000")) () ")")))) (; ";")) (goto_statement "goto LAB_000e9ea0;" (goto "goto") (statement_identifier "LAB_000e9ea0") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000e9ea0:\n  if (local_14 == *(int *)puVar1) {\n    return uVar3;\n  }" (statement_identifier "LAB_000e9ea0") (: ":") (if_statement "if (local_14 == *(int *)puVar1) {\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)puVar1)" (( "(") (binary_expression "local_14 == *(int *)puVar1" (identifier "local_14") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return uVar3;\n  }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))) (expression_statement "uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)();" (assignment_expression "uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)()" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0012b0c8"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

int function_1(char *name)

{
  type_1 *puVar1;
  int var_3;
  int var_1;
  type_2 s;
  
  puVar1 = PTR___stack_chk_guard_0012b14c;
  var_3 = *(int *)PTR___stack_chk_guard_0012b14c;
  var_1 = (*(type_3 *)PTR_access_0012ae48)(name,1);
  if (var_1 == 0) {
    var_1 = (*(type_3 *)PTR___xstat64_0012acc4)(3,name,&s);
    if (var_1 == 0) {
      var_3 = var_2();
      return var_3;
    }
  }
  if (var_3 == *(int *)puVar1) {
    return 0;
  }
  var_3 = (*(type_3 *)PTR___stack_chk_fail_0012b0c8)();
  return var_3;
}


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

uint MASKED(undefined4 param_1)

{
  undefined *puVar1;
  int iVar2;
  uint uVar3;
  undefined1 auStack_b8 [24];
  uint local_a0;
  int local_14;
  
  puVar1 = PTR___stack_chk_guard_0012b14c;
  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;
  iVar2 = (*(code *)PTR_access_0012ae48)(param_1,1);
  if (iVar2 == 0) {
    iVar2 = (*(code *)PTR___xstat64_0012acc4)(3,param_1,auStack_b8);
    if (iVar2 == 0) {
      uVar3 = (uint)((local_a0 & 0xf000) == 0x8000);
      goto LAB_000e9ea0;
    }
  }
  uVar3 = 0;
LAB_000e9ea0:
  if (local_14 == *(int *)puVar1) {
    return uVar3;
  }
  uVar3 = (*(code *)PTR___stack_chk_fail_0012b0c8)();
  return uVar3;
}

