
int file_exists(char *fn)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  uint uVar4;
  char *fn_00;
  int *piVar5;
  undefined *puVar6;
  code *pcVar7;
  undefined1 auStack_178 [24];
  uint uStack_160;
  char *pcStack_d4;
  undefined *puStack_d0;
  code *pcStack_cc;
  stat sb;
  
  puVar1 = PTR___stack_chk_guard_001464dc;
  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;
  iVar3 = (*(code *)PTR___xstat64_00146234)(3,fn,&sb);
  if (iVar2 == *(int *)puVar1) {
    return (uint)(iVar3 == 0);
  }
  pcVar7 = file_isdir;
  puVar6 = PTR___stack_chk_fail_00146488;
  (*(code *)PTR___stack_chk_fail_00146488)();
  puStack_d0 = puVar1;
  piVar5 = *(int **)(puVar6 + 0x104d54);
  pcStack_d4 = (char *)*piVar5;
  pcStack_cc = pcVar7;
  iVar2 = (**(code **)(puVar6 + 0x104aac))(3,iVar2,auStack_178);
  if (iVar2 == 0) {
    uVar4 = (uint)((uStack_160 & 0xf000) == 0x4000);
  }
  else {
    uVar4 = 0;
  }
  if (pcStack_d4 == (char *)*piVar5) {
    return uVar4;
  }
  pcVar7 = *(code **)(puVar6 + 0x104d00);
  fn_00 = pcStack_d4;
  (*pcVar7)();
  iVar2 = file_isdir(fn_00);
  if (iVar2 == 0) {
    return 0;
  }
  iVar2 = (**(code **)(pcVar7 + 0x1032bc))(fn_00,2);
  return (uint)(iVar2 == 0);
}



bool file_exists(undefined4 param_1)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  undefined *puVar5;
  code *pcVar6;
  undefined1 auStack_178 [24];
  uint uStack_160;
  int iStack_d4;
  undefined *puStack_d0;
  code *pcStack_cc;
  undefined1 auStack_b0 [164];
  int local_c;
  
  puVar1 = PTR___stack_chk_guard_001464dc;
  local_c = *(int *)PTR___stack_chk_guard_001464dc;
  iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0);
  if (local_c == *(int *)puVar1) {
    return iVar2 == 0;
  }
  pcVar6 = file_isdir;
  iVar2 = local_c;
  puVar5 = PTR___stack_chk_fail_00146488;
  (*(code *)PTR___stack_chk_fail_00146488)();
  puStack_d0 = puVar1;
  piVar4 = *(int **)(puVar5 + 0x104d54);
  iStack_d4 = *piVar4;
  pcStack_cc = pcVar6;
  iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178);
  if (iStack_d4 == *piVar4) {
    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;
  }
  pcVar6 = *(code **)(puVar5 + 0x104d00);
  iVar2 = iStack_d4;
  (*pcVar6)();
  iVar3 = file_isdir();
  if (iVar3 == 0) {
    return false;
  }
  iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2);
  return iVar2 == 0;
}


lui gp,0x11
addiu gp,gp,-0x51d8
addu gp,gp,t9
addiu sp,sp,-0xc8
lw t9,-0x630c(gp)
or a1,a0,zero
addiu a2,sp,0x18
sw s0,0xc0(sp)
li a0,0x3
lw s0,-0x6064(gp)
sw gp,0x10(sp)
sw ra,0xc4(sp)
lw v0,0x0(s0)
sw v0,0xbc(sp)
jalr t9
_nop
lw a0,0xbc(sp)
lw v1,0x0(s0)
bne a0,v1,0x0004177c
_lw gp,0x10(sp)
lw ra,0xc4(sp)
sltiu v0,v0,0x1
lw s0,0xc0(sp)
jr ra
_addiu sp,sp,0xc8
lw t9,-0x60b8(gp)
jalr t9
_nop
(translation_unit "bool file_exists(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined1 auStack_178 [24];\n  uint uStack_160;\n  int iStack_d4;\n  undefined *puStack_d0;\n  code *pcStack_cc;\n  undefined1 auStack_b0 [164];\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_001464dc;\n  local_c = *(int *)PTR___stack_chk_guard_001464dc;\n  iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0);\n  if (local_c == *(int *)puVar1) {\n    return iVar2 == 0;\n  }\n  pcVar6 = file_isdir;\n  iVar2 = local_c;\n  puVar5 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  puStack_d0 = puVar1;\n  piVar4 = *(int **)(puVar5 + 0x104d54);\n  iStack_d4 = *piVar4;\n  pcStack_cc = pcVar6;\n  iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178);\n  if (iStack_d4 == *piVar4) {\n    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;\n  }\n  pcVar6 = *(code **)(puVar5 + 0x104d00);\n  iVar2 = iStack_d4;\n  (*pcVar6)();\n  iVar3 = file_isdir();\n  if (iVar3 == 0) {\n    return false;\n  }\n  iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2);\n  return iVar2 == 0;\n}\n\n" (function_definition "bool file_exists(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined1 auStack_178 [24];\n  uint uStack_160;\n  int iStack_d4;\n  undefined *puStack_d0;\n  code *pcStack_cc;\n  undefined1 auStack_b0 [164];\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_001464dc;\n  local_c = *(int *)PTR___stack_chk_guard_001464dc;\n  iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0);\n  if (local_c == *(int *)puVar1) {\n    return iVar2 == 0;\n  }\n  pcVar6 = file_isdir;\n  iVar2 = local_c;\n  puVar5 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  puStack_d0 = puVar1;\n  piVar4 = *(int **)(puVar5 + 0x104d54);\n  iStack_d4 = *piVar4;\n  pcStack_cc = pcVar6;\n  iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178);\n  if (iStack_d4 == *piVar4) {\n    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;\n  }\n  pcVar6 = *(code **)(puVar5 + 0x104d00);\n  iVar2 = iStack_d4;\n  (*pcVar6)();\n  iVar3 = file_isdir();\n  if (iVar3 == 0) {\n    return false;\n  }\n  iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2);\n  return iVar2 == 0;\n}" primitive_type (function_declarator "file_exists(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  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined1 auStack_178 [24];\n  uint uStack_160;\n  int iStack_d4;\n  undefined *puStack_d0;\n  code *pcStack_cc;\n  undefined1 auStack_b0 [164];\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_001464dc;\n  local_c = *(int *)PTR___stack_chk_guard_001464dc;\n  iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0);\n  if (local_c == *(int *)puVar1) {\n    return iVar2 == 0;\n  }\n  pcVar6 = file_isdir;\n  iVar2 = local_c;\n  puVar5 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  puStack_d0 = puVar1;\n  piVar4 = *(int **)(puVar5 + 0x104d54);\n  iStack_d4 = *piVar4;\n  pcStack_cc = pcVar6;\n  iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178);\n  if (iStack_d4 == *piVar4) {\n    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;\n  }\n  pcVar6 = *(code **)(puVar5 + 0x104d00);\n  iVar2 = iStack_d4;\n  (*pcVar6)();\n  iVar3 = file_isdir();\n  if (iVar3 == 0) {\n    return false;\n  }\n  iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2);\n  return iVar2 == 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined1 auStack_178 [24];" type_identifier (array_declarator "auStack_178 [24]" identifier [ number_literal ]) ;) (declaration "uint uStack_160;" type_identifier identifier ;) (declaration "int iStack_d4;" primitive_type identifier ;) (declaration "undefined *puStack_d0;" type_identifier (pointer_declarator "*puStack_d0" * identifier) ;) (declaration "code *pcStack_cc;" type_identifier (pointer_declarator "*pcStack_cc" * identifier) ;) (declaration "undefined1 auStack_b0 [164];" type_identifier (array_declarator "auStack_b0 [164]" identifier [ number_literal ]) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_001464dc;" (assignment_expression "puVar1 = PTR___stack_chk_guard_001464dc" identifier = identifier) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_001464dc;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_001464dc" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_001464dc" * (cast_expression "(int *)PTR___stack_chk_guard_001464dc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0);" (assignment_expression "iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0)" identifier = (call_expression "(*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0)" (parenthesized_expression "(*(code *)PTR___xstat64_00146234)" ( (pointer_expression "*(code *)PTR___xstat64_00146234" * (cast_expression "(code *)PTR___xstat64_00146234" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,param_1,auStack_b0)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (local_c == *(int *)puVar1) {\n    return iVar2 == 0;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar1)" ( (binary_expression "local_c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar2 == 0;\n  }" { (return_statement "return iVar2 == 0;" return (binary_expression "iVar2 == 0" identifier == number_literal) ;) })) (expression_statement "pcVar6 = file_isdir;" (assignment_expression "pcVar6 = file_isdir" identifier = identifier) ;) (expression_statement "iVar2 = local_c;" (assignment_expression "iVar2 = local_c" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_00146488;" (assignment_expression "puVar5 = PTR___stack_chk_fail_00146488" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00146488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00146488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00146488)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00146488" * (cast_expression "(code *)PTR___stack_chk_fail_00146488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puStack_d0 = puVar1;" (assignment_expression "puStack_d0 = puVar1" identifier = identifier) ;) (expression_statement "piVar4 = *(int **)(puVar5 + 0x104d54);" (assignment_expression "piVar4 = *(int **)(puVar5 + 0x104d54)" identifier = (pointer_expression "*(int **)(puVar5 + 0x104d54)" * (cast_expression "(int **)(puVar5 + 0x104d54)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x104d54)" ( (binary_expression "puVar5 + 0x104d54" identifier + number_literal) ))))) ;) (expression_statement "iStack_d4 = *piVar4;" (assignment_expression "iStack_d4 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "pcStack_cc = pcVar6;" (assignment_expression "pcStack_cc = pcVar6" identifier = identifier) ;) (expression_statement "iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178);" (assignment_expression "iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178)" identifier = (call_expression "(**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178)" (parenthesized_expression "(**(code **)(puVar5 + 0x104aac))" ( (pointer_expression "**(code **)(puVar5 + 0x104aac)" * (pointer_expression "*(code **)(puVar5 + 0x104aac)" * (cast_expression "(code **)(puVar5 + 0x104aac)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x104aac)" ( (binary_expression "puVar5 + 0x104aac" identifier + number_literal) ))))) )) (argument_list "(3,iVar2,auStack_178)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (iStack_d4 == *piVar4) {\n    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;\n  }" if (parenthesized_expression "(iStack_d4 == *piVar4)" ( (binary_expression "iStack_d4 == *piVar4" identifier == (pointer_expression "*piVar4" * identifier)) )) (compound_statement "{\n    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;\n  }" { (return_statement "return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;" return (binary_expression "iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000" (binary_expression "iVar2 == 0" identifier == number_literal) && (binary_expression "(uStack_160 & 0xf000) == 0x4000" (parenthesized_expression "(uStack_160 & 0xf000)" ( (binary_expression "uStack_160 & 0xf000" identifier & number_literal) )) == number_literal)) ;) })) (expression_statement "pcVar6 = *(code **)(puVar5 + 0x104d00);" (assignment_expression "pcVar6 = *(code **)(puVar5 + 0x104d00)" identifier = (pointer_expression "*(code **)(puVar5 + 0x104d00)" * (cast_expression "(code **)(puVar5 + 0x104d00)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x104d00)" ( (binary_expression "puVar5 + 0x104d00" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = iStack_d4;" (assignment_expression "iVar2 = iStack_d4" identifier = identifier) ;) (expression_statement "(*pcVar6)();" (call_expression "(*pcVar6)()" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar3 = file_isdir();" (assignment_expression "iVar3 = file_isdir()" identifier = (call_expression "file_isdir()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\n    return false;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (expression_statement "iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2);" (assignment_expression "iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2)" identifier = (call_expression "(**(code **)(pcVar6 + 0x1032bc))(iVar2,2)" (parenthesized_expression "(**(code **)(pcVar6 + 0x1032bc))" ( (pointer_expression "**(code **)(pcVar6 + 0x1032bc)" * (pointer_expression "*(code **)(pcVar6 + 0x1032bc)" * (cast_expression "(code **)(pcVar6 + 0x1032bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar6 + 0x1032bc)" ( (binary_expression "pcVar6 + 0x1032bc" identifier + number_literal) ))))) )) (argument_list "(iVar2,2)" ( identifier , number_literal )))) ;) (return_statement "return iVar2 == 0;" return (binary_expression "iVar2 == 0" identifier == number_literal) ;) })))
(translation_unit "int file_exists(char *fn)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  char *fn_00;\n  int *piVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_178 [24];\n  uint uStack_160;\n  char *pcStack_d4;\n  undefined *puStack_d0;\n  code *pcStack_cc;\n  stat sb;\n  \n  puVar1 = PTR___stack_chk_guard_001464dc;\n  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;\n  iVar3 = (*(code *)PTR___xstat64_00146234)(3,fn,&sb);\n  if (iVar2 == *(int *)puVar1) {\n    return (uint)(iVar3 == 0);\n  }\n  pcVar7 = file_isdir;\n  puVar6 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  puStack_d0 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x104d54);\n  pcStack_d4 = (char *)*piVar5;\n  pcStack_cc = pcVar7;\n  iVar2 = (**(code **)(puVar6 + 0x104aac))(3,iVar2,auStack_178);\n  if (iVar2 == 0) {\n    uVar4 = (uint)((uStack_160 & 0xf000) == 0x4000);\n  }\n  else {\n    uVar4 = 0;\n  }\n  if (pcStack_d4 == (char *)*piVar5) {\n    return uVar4;\n  }\n  pcVar7 = *(code **)(puVar6 + 0x104d00);\n  fn_00 = pcStack_d4;\n  (*pcVar7)();\n  iVar2 = file_isdir(fn_00);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar2 = (**(code **)(pcVar7 + 0x1032bc))(fn_00,2);\n  return (uint)(iVar2 == 0);\n}\n\n" (function_definition "int file_exists(char *fn)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  char *fn_00;\n  int *piVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_178 [24];\n  uint uStack_160;\n  char *pcStack_d4;\n  undefined *puStack_d0;\n  code *pcStack_cc;\n  stat sb;\n  \n  puVar1 = PTR___stack_chk_guard_001464dc;\n  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;\n  iVar3 = (*(code *)PTR___xstat64_00146234)(3,fn,&sb);\n  if (iVar2 == *(int *)puVar1) {\n    return (uint)(iVar3 == 0);\n  }\n  pcVar7 = file_isdir;\n  puVar6 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  puStack_d0 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x104d54);\n  pcStack_d4 = (char *)*piVar5;\n  pcStack_cc = pcVar7;\n  iVar2 = (**(code **)(puVar6 + 0x104aac))(3,iVar2,auStack_178);\n  if (iVar2 == 0) {\n    uVar4 = (uint)((uStack_160 & 0xf000) == 0x4000);\n  }\n  else {\n    uVar4 = 0;\n  }\n  if (pcStack_d4 == (char *)*piVar5) {\n    return uVar4;\n  }\n  pcVar7 = *(code **)(puVar6 + 0x104d00);\n  fn_00 = pcStack_d4;\n  (*pcVar7)();\n  iVar2 = file_isdir(fn_00);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar2 = (**(code **)(pcVar7 + 0x1032bc))(fn_00,2);\n  return (uint)(iVar2 == 0);\n}" primitive_type (function_declarator "file_exists(char *fn)" identifier (parameter_list "(char *fn)" ( (parameter_declaration "char *fn" primitive_type (pointer_declarator "*fn" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  char *fn_00;\n  int *piVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_178 [24];\n  uint uStack_160;\n  char *pcStack_d4;\n  undefined *puStack_d0;\n  code *pcStack_cc;\n  stat sb;\n  \n  puVar1 = PTR___stack_chk_guard_001464dc;\n  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;\n  iVar3 = (*(code *)PTR___xstat64_00146234)(3,fn,&sb);\n  if (iVar2 == *(int *)puVar1) {\n    return (uint)(iVar3 == 0);\n  }\n  pcVar7 = file_isdir;\n  puVar6 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  puStack_d0 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x104d54);\n  pcStack_d4 = (char *)*piVar5;\n  pcStack_cc = pcVar7;\n  iVar2 = (**(code **)(puVar6 + 0x104aac))(3,iVar2,auStack_178);\n  if (iVar2 == 0) {\n    uVar4 = (uint)((uStack_160 & 0xf000) == 0x4000);\n  }\n  else {\n    uVar4 = 0;\n  }\n  if (pcStack_d4 == (char *)*piVar5) {\n    return uVar4;\n  }\n  pcVar7 = *(code **)(puVar6 + 0x104d00);\n  fn_00 = pcStack_d4;\n  (*pcVar7)();\n  iVar2 = file_isdir(fn_00);\n  if (iVar2 == 0) {\n    return 0;\n  }\n  iVar2 = (**(code **)(pcVar7 + 0x1032bc))(fn_00,2);\n  return (uint)(iVar2 == 0);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *fn_00;" primitive_type (pointer_declarator "*fn_00" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined1 auStack_178 [24];" type_identifier (array_declarator "auStack_178 [24]" identifier [ number_literal ]) ;) (declaration "uint uStack_160;" type_identifier identifier ;) (declaration "char *pcStack_d4;" primitive_type (pointer_declarator "*pcStack_d4" * identifier) ;) (declaration "undefined *puStack_d0;" type_identifier (pointer_declarator "*puStack_d0" * identifier) ;) (declaration "code *pcStack_cc;" type_identifier (pointer_declarator "*pcStack_cc" * identifier) ;) (declaration "stat sb;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_001464dc;" (assignment_expression "puVar1 = PTR___stack_chk_guard_001464dc" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_001464dc;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_001464dc" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_001464dc" * (cast_expression "(int *)PTR___stack_chk_guard_001464dc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar3 = (*(code *)PTR___xstat64_00146234)(3,fn,&sb);" (assignment_expression "iVar3 = (*(code *)PTR___xstat64_00146234)(3,fn,&sb)" identifier = (call_expression "(*(code *)PTR___xstat64_00146234)(3,fn,&sb)" (parenthesized_expression "(*(code *)PTR___xstat64_00146234)" ( (pointer_expression "*(code *)PTR___xstat64_00146234" * (cast_expression "(code *)PTR___xstat64_00146234" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,fn,&sb)" ( number_literal , identifier , (pointer_expression "&sb" & identifier) )))) ;) (if_statement "if (iVar2 == *(int *)puVar1) {\n    return (uint)(iVar3 == 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 (uint)(iVar3 == 0);\n  }" { (return_statement "return (uint)(iVar3 == 0);" return (call_expression "(uint)(iVar3 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) ))) ;) })) (expression_statement "pcVar7 = file_isdir;" (assignment_expression "pcVar7 = file_isdir" identifier = identifier) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_00146488;" (assignment_expression "puVar6 = PTR___stack_chk_fail_00146488" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00146488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00146488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00146488)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00146488" * (cast_expression "(code *)PTR___stack_chk_fail_00146488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puStack_d0 = puVar1;" (assignment_expression "puStack_d0 = puVar1" identifier = identifier) ;) (expression_statement "piVar5 = *(int **)(puVar6 + 0x104d54);" (assignment_expression "piVar5 = *(int **)(puVar6 + 0x104d54)" identifier = (pointer_expression "*(int **)(puVar6 + 0x104d54)" * (cast_expression "(int **)(puVar6 + 0x104d54)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x104d54)" ( (binary_expression "puVar6 + 0x104d54" identifier + number_literal) ))))) ;) (expression_statement "pcStack_d4 = (char *)*piVar5;" (assignment_expression "pcStack_d4 = (char *)*piVar5" identifier = (cast_expression "(char *)*piVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) (expression_statement "pcStack_cc = pcVar7;" (assignment_expression "pcStack_cc = pcVar7" identifier = identifier) ;) (expression_statement "iVar2 = (**(code **)(puVar6 + 0x104aac))(3,iVar2,auStack_178);" (assignment_expression "iVar2 = (**(code **)(puVar6 + 0x104aac))(3,iVar2,auStack_178)" identifier = (call_expression "(**(code **)(puVar6 + 0x104aac))(3,iVar2,auStack_178)" (parenthesized_expression "(**(code **)(puVar6 + 0x104aac))" ( (pointer_expression "**(code **)(puVar6 + 0x104aac)" * (pointer_expression "*(code **)(puVar6 + 0x104aac)" * (cast_expression "(code **)(puVar6 + 0x104aac)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x104aac)" ( (binary_expression "puVar6 + 0x104aac" identifier + number_literal) ))))) )) (argument_list "(3,iVar2,auStack_178)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    uVar4 = (uint)((uStack_160 & 0xf000) == 0x4000);\n  }\n  else {\n    uVar4 = 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar4 = (uint)((uStack_160 & 0xf000) == 0x4000);\n  }" { (expression_statement "uVar4 = (uint)((uStack_160 & 0xf000) == 0x4000);" (assignment_expression "uVar4 = (uint)((uStack_160 & 0xf000) == 0x4000)" identifier = (call_expression "(uint)((uStack_160 & 0xf000) == 0x4000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uStack_160 & 0xf000) == 0x4000)" ( (binary_expression "(uStack_160 & 0xf000) == 0x4000" (parenthesized_expression "(uStack_160 & 0xf000)" ( (binary_expression "uStack_160 & 0xf000" identifier & number_literal) )) == number_literal) )))) ;) }) (else_clause "else {\n    uVar4 = 0;\n  }" else (compound_statement "{\n    uVar4 = 0;\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }))) (if_statement "if (pcStack_d4 == (char *)*piVar5) {\n    return uVar4;\n  }" if (parenthesized_expression "(pcStack_d4 == (char *)*piVar5)" ( (binary_expression "pcStack_d4 == (char *)*piVar5" identifier == (cast_expression "(char *)*piVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) )) (compound_statement "{\n    return uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) })) (expression_statement "pcVar7 = *(code **)(puVar6 + 0x104d00);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x104d00)" identifier = (pointer_expression "*(code **)(puVar6 + 0x104d00)" * (cast_expression "(code **)(puVar6 + 0x104d00)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x104d00)" ( (binary_expression "puVar6 + 0x104d00" identifier + number_literal) ))))) ;) (expression_statement "fn_00 = pcStack_d4;" (assignment_expression "fn_00 = pcStack_d4" identifier = identifier) ;) (expression_statement "(*pcVar7)();" (call_expression "(*pcVar7)()" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = file_isdir(fn_00);" (assignment_expression "iVar2 = file_isdir(fn_00)" identifier = (call_expression "file_isdir(fn_00)" identifier (argument_list "(fn_00)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = (**(code **)(pcVar7 + 0x1032bc))(fn_00,2);" (assignment_expression "iVar2 = (**(code **)(pcVar7 + 0x1032bc))(fn_00,2)" identifier = (call_expression "(**(code **)(pcVar7 + 0x1032bc))(fn_00,2)" (parenthesized_expression "(**(code **)(pcVar7 + 0x1032bc))" ( (pointer_expression "**(code **)(pcVar7 + 0x1032bc)" * (pointer_expression "*(code **)(pcVar7 + 0x1032bc)" * (cast_expression "(code **)(pcVar7 + 0x1032bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar7 + 0x1032bc)" ( (binary_expression "pcVar7 + 0x1032bc" identifier + number_literal) ))))) )) (argument_list "(fn_00,2)" ( identifier , number_literal )))) ;) (return_statement "return (uint)(iVar2 == 0);" return (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) ))) ;) })))
(translation_unit "bool file_exists(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined1 auStack_178 [24];\n  uint uStack_160;\n  int iStack_d4;\n  undefined *puStack_d0;\n  code *pcStack_cc;\n  undefined1 auStack_b0 [164];\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_001464dc;\n  local_c = *(int *)PTR___stack_chk_guard_001464dc;\n  iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0);\n  if (local_c == *(int *)puVar1) {\n    return iVar2 == 0;\n  }\n  pcVar6 = file_isdir;\n  iVar2 = local_c;\n  puVar5 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  puStack_d0 = puVar1;\n  piVar4 = *(int **)(puVar5 + 0x104d54);\n  iStack_d4 = *piVar4;\n  pcStack_cc = pcVar6;\n  iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178);\n  if (iStack_d4 == *piVar4) {\n    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;\n  }\n  pcVar6 = *(code **)(puVar5 + 0x104d00);\n  iVar2 = iStack_d4;\n  (*pcVar6)();\n  iVar3 = file_isdir();\n  if (iVar3 == 0) {\n    return false;\n  }\n  iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2);\n  return iVar2 == 0;\n}\n\n" (function_definition "bool file_exists(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined1 auStack_178 [24];\n  uint uStack_160;\n  int iStack_d4;\n  undefined *puStack_d0;\n  code *pcStack_cc;\n  undefined1 auStack_b0 [164];\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_001464dc;\n  local_c = *(int *)PTR___stack_chk_guard_001464dc;\n  iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0);\n  if (local_c == *(int *)puVar1) {\n    return iVar2 == 0;\n  }\n  pcVar6 = file_isdir;\n  iVar2 = local_c;\n  puVar5 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  puStack_d0 = puVar1;\n  piVar4 = *(int **)(puVar5 + 0x104d54);\n  iStack_d4 = *piVar4;\n  pcStack_cc = pcVar6;\n  iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178);\n  if (iStack_d4 == *piVar4) {\n    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;\n  }\n  pcVar6 = *(code **)(puVar5 + 0x104d00);\n  iVar2 = iStack_d4;\n  (*pcVar6)();\n  iVar3 = file_isdir();\n  if (iVar3 == 0) {\n    return false;\n  }\n  iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2);\n  return iVar2 == 0;\n}" primitive_type (function_declarator "file_exists(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  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined1 auStack_178 [24];\n  uint uStack_160;\n  int iStack_d4;\n  undefined *puStack_d0;\n  code *pcStack_cc;\n  undefined1 auStack_b0 [164];\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_001464dc;\n  local_c = *(int *)PTR___stack_chk_guard_001464dc;\n  iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0);\n  if (local_c == *(int *)puVar1) {\n    return iVar2 == 0;\n  }\n  pcVar6 = file_isdir;\n  iVar2 = local_c;\n  puVar5 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  puStack_d0 = puVar1;\n  piVar4 = *(int **)(puVar5 + 0x104d54);\n  iStack_d4 = *piVar4;\n  pcStack_cc = pcVar6;\n  iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178);\n  if (iStack_d4 == *piVar4) {\n    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;\n  }\n  pcVar6 = *(code **)(puVar5 + 0x104d00);\n  iVar2 = iStack_d4;\n  (*pcVar6)();\n  iVar3 = file_isdir();\n  if (iVar3 == 0) {\n    return false;\n  }\n  iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2);\n  return iVar2 == 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined1 auStack_178 [24];" type_identifier (array_declarator "auStack_178 [24]" identifier [ number_literal ]) ;) (declaration "uint uStack_160;" type_identifier identifier ;) (declaration "int iStack_d4;" primitive_type identifier ;) (declaration "undefined *puStack_d0;" type_identifier (pointer_declarator "*puStack_d0" * identifier) ;) (declaration "code *pcStack_cc;" type_identifier (pointer_declarator "*pcStack_cc" * identifier) ;) (declaration "undefined1 auStack_b0 [164];" type_identifier (array_declarator "auStack_b0 [164]" identifier [ number_literal ]) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_001464dc;" (assignment_expression "puVar1 = PTR___stack_chk_guard_001464dc" identifier = identifier) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_001464dc;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_001464dc" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_001464dc" * (cast_expression "(int *)PTR___stack_chk_guard_001464dc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0);" (assignment_expression "iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0)" identifier = (call_expression "(*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0)" (parenthesized_expression "(*(code *)PTR___xstat64_00146234)" ( (pointer_expression "*(code *)PTR___xstat64_00146234" * (cast_expression "(code *)PTR___xstat64_00146234" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,param_1,auStack_b0)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (local_c == *(int *)puVar1) {\n    return iVar2 == 0;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar1)" ( (binary_expression "local_c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar2 == 0;\n  }" { (return_statement "return iVar2 == 0;" return (binary_expression "iVar2 == 0" identifier == number_literal) ;) })) (expression_statement "pcVar6 = file_isdir;" (assignment_expression "pcVar6 = file_isdir" identifier = identifier) ;) (expression_statement "iVar2 = local_c;" (assignment_expression "iVar2 = local_c" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_00146488;" (assignment_expression "puVar5 = PTR___stack_chk_fail_00146488" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00146488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00146488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00146488)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00146488" * (cast_expression "(code *)PTR___stack_chk_fail_00146488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puStack_d0 = puVar1;" (assignment_expression "puStack_d0 = puVar1" identifier = identifier) ;) (expression_statement "piVar4 = *(int **)(puVar5 + 0x104d54);" (assignment_expression "piVar4 = *(int **)(puVar5 + 0x104d54)" identifier = (pointer_expression "*(int **)(puVar5 + 0x104d54)" * (cast_expression "(int **)(puVar5 + 0x104d54)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x104d54)" ( (binary_expression "puVar5 + 0x104d54" identifier + number_literal) ))))) ;) (expression_statement "iStack_d4 = *piVar4;" (assignment_expression "iStack_d4 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "pcStack_cc = pcVar6;" (assignment_expression "pcStack_cc = pcVar6" identifier = identifier) ;) (expression_statement "iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178);" (assignment_expression "iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178)" identifier = (call_expression "(**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178)" (parenthesized_expression "(**(code **)(puVar5 + 0x104aac))" ( (pointer_expression "**(code **)(puVar5 + 0x104aac)" * (pointer_expression "*(code **)(puVar5 + 0x104aac)" * (cast_expression "(code **)(puVar5 + 0x104aac)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x104aac)" ( (binary_expression "puVar5 + 0x104aac" identifier + number_literal) ))))) )) (argument_list "(3,iVar2,auStack_178)" ( number_literal , identifier , identifier )))) ;) (if_statement "if (iStack_d4 == *piVar4) {\n    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;\n  }" if (parenthesized_expression "(iStack_d4 == *piVar4)" ( (binary_expression "iStack_d4 == *piVar4" identifier == (pointer_expression "*piVar4" * identifier)) )) (compound_statement "{\n    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;\n  }" { (return_statement "return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;" return (binary_expression "iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000" (binary_expression "iVar2 == 0" identifier == number_literal) && (binary_expression "(uStack_160 & 0xf000) == 0x4000" (parenthesized_expression "(uStack_160 & 0xf000)" ( (binary_expression "uStack_160 & 0xf000" identifier & number_literal) )) == number_literal)) ;) })) (expression_statement "pcVar6 = *(code **)(puVar5 + 0x104d00);" (assignment_expression "pcVar6 = *(code **)(puVar5 + 0x104d00)" identifier = (pointer_expression "*(code **)(puVar5 + 0x104d00)" * (cast_expression "(code **)(puVar5 + 0x104d00)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x104d00)" ( (binary_expression "puVar5 + 0x104d00" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = iStack_d4;" (assignment_expression "iVar2 = iStack_d4" identifier = identifier) ;) (expression_statement "(*pcVar6)();" (call_expression "(*pcVar6)()" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar3 = file_isdir();" (assignment_expression "iVar3 = file_isdir()" identifier = (call_expression "file_isdir()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\n    return false;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (expression_statement "iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2);" (assignment_expression "iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2)" identifier = (call_expression "(**(code **)(pcVar6 + 0x1032bc))(iVar2,2)" (parenthesized_expression "(**(code **)(pcVar6 + 0x1032bc))" ( (pointer_expression "**(code **)(pcVar6 + 0x1032bc)" * (pointer_expression "*(code **)(pcVar6 + 0x1032bc)" * (cast_expression "(code **)(pcVar6 + 0x1032bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar6 + 0x1032bc)" ( (binary_expression "pcVar6 + 0x1032bc" identifier + number_literal) ))))) )) (argument_list "(iVar2,2)" ( identifier , number_literal )))) ;) (return_statement "return iVar2 == 0;" return (binary_expression "iVar2 == 0" identifier == number_literal) ;) })))
(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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 ( LIT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return (binary_expression IDENT == LIT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (return_statement return (binary_expression (binary_expression IDENT == LIT) && (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return BOOL ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , LIT )))) ;) (return_statement return (binary_expression IDENT == LIT) ;) })))
(function_definition "bool file_exists(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined1 auStack_178 [24];\n  uint uStack_160;\n  int iStack_d4;\n  undefined *puStack_d0;\n  code *pcStack_cc;\n  undefined1 auStack_b0 [164];\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_001464dc;\n  local_c = *(int *)PTR___stack_chk_guard_001464dc;\n  iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0);\n  if (local_c == *(int *)puVar1) {\n    return iVar2 == 0;\n  }\n  pcVar6 = file_isdir;\n  iVar2 = local_c;\n  puVar5 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  puStack_d0 = puVar1;\n  piVar4 = *(int **)(puVar5 + 0x104d54);\n  iStack_d4 = *piVar4;\n  pcStack_cc = pcVar6;\n  iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178);\n  if (iStack_d4 == *piVar4) {\n    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;\n  }\n  pcVar6 = *(code **)(puVar5 + 0x104d00);\n  iVar2 = iStack_d4;\n  (*pcVar6)();\n  iVar3 = file_isdir();\n  if (iVar3 == 0) {\n    return false;\n  }\n  iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2);\n  return iVar2 == 0;\n}" (primitive_type "bool") (function_declarator "file_exists(undefined4 param_1)" (identifier "file_exists") (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  int iVar3;\n  int *piVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  undefined1 auStack_178 [24];\n  uint uStack_160;\n  int iStack_d4;\n  undefined *puStack_d0;\n  code *pcStack_cc;\n  undefined1 auStack_b0 [164];\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_001464dc;\n  local_c = *(int *)PTR___stack_chk_guard_001464dc;\n  iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0);\n  if (local_c == *(int *)puVar1) {\n    return iVar2 == 0;\n  }\n  pcVar6 = file_isdir;\n  iVar2 = local_c;\n  puVar5 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  puStack_d0 = puVar1;\n  piVar4 = *(int **)(puVar5 + 0x104d54);\n  iStack_d4 = *piVar4;\n  pcStack_cc = pcVar6;\n  iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178);\n  if (iStack_d4 == *piVar4) {\n    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;\n  }\n  pcVar6 = *(code **)(puVar5 + 0x104d00);\n  iVar2 = iStack_d4;\n  (*pcVar6)();\n  iVar3 = file_isdir();\n  if (iVar3 == 0) {\n    return false;\n  }\n  iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2);\n  return iVar2 == 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "code *pcVar6;" (type_identifier "code") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "undefined1 auStack_178 [24];" (type_identifier "undefined1") (array_declarator "auStack_178 [24]" (identifier "auStack_178") ([ "[") (number_literal "24") (] "]")) (; ";")) (declaration "uint uStack_160;" (type_identifier "uint") (identifier "uStack_160") (; ";")) (declaration "int iStack_d4;" (primitive_type "int") (identifier "iStack_d4") (; ";")) (declaration "undefined *puStack_d0;" (type_identifier "undefined") (pointer_declarator "*puStack_d0" (* "*") (identifier "puStack_d0")) (; ";")) (declaration "code *pcStack_cc;" (type_identifier "code") (pointer_declarator "*pcStack_cc" (* "*") (identifier "pcStack_cc")) (; ";")) (declaration "undefined1 auStack_b0 [164];" (type_identifier "undefined1") (array_declarator "auStack_b0 [164]" (identifier "auStack_b0") ([ "[") (number_literal "164") (] "]")) (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_001464dc;" (assignment_expression "puVar1 = PTR___stack_chk_guard_001464dc" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_001464dc")) (; ";")) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_001464dc;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_001464dc" (identifier "local_c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_001464dc" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_001464dc" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_001464dc")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0);" (assignment_expression "iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0)" (parenthesized_expression "(*(code *)PTR___xstat64_00146234)" (( "(") (pointer_expression "*(code *)PTR___xstat64_00146234" (* "*") (cast_expression "(code *)PTR___xstat64_00146234" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___xstat64_00146234"))) () ")")) (argument_list "(3,param_1,auStack_b0)" (( "(") (number_literal "3") (, ",") (identifier "param_1") (, ",") (identifier "auStack_b0") () ")")))) (; ";")) (if_statement "if (local_c == *(int *)puVar1) {\n    return iVar2 == 0;\n  }" (if "if") (parenthesized_expression "(local_c == *(int *)puVar1)" (( "(") (binary_expression "local_c == *(int *)puVar1" (identifier "local_c") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return iVar2 == 0;\n  }" ({ "{") (return_statement "return iVar2 == 0;" (return "return") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "pcVar6 = file_isdir;" (assignment_expression "pcVar6 = file_isdir" (identifier "pcVar6") (= "=") (identifier "file_isdir")) (; ";")) (expression_statement "iVar2 = local_c;" (assignment_expression "iVar2 = local_c" (identifier "iVar2") (= "=") (identifier "local_c")) (; ";")) (expression_statement "puVar5 = PTR___stack_chk_fail_00146488;" (assignment_expression "puVar5 = PTR___stack_chk_fail_00146488" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_fail_00146488")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00146488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00146488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00146488)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00146488" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00146488" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00146488"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puStack_d0 = puVar1;" (assignment_expression "puStack_d0 = puVar1" (identifier "puStack_d0") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "piVar4 = *(int **)(puVar5 + 0x104d54);" (assignment_expression "piVar4 = *(int **)(puVar5 + 0x104d54)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(puVar5 + 0x104d54)" (* "*") (cast_expression "(int **)(puVar5 + 0x104d54)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x104d54)" (( "(") (binary_expression "puVar5 + 0x104d54" (identifier "puVar5") (+ "+") (number_literal "0x104d54")) () ")"))))) (; ";")) (expression_statement "iStack_d4 = *piVar4;" (assignment_expression "iStack_d4 = *piVar4" (identifier "iStack_d4") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "pcStack_cc = pcVar6;" (assignment_expression "pcStack_cc = pcVar6" (identifier "pcStack_cc") (= "=") (identifier "pcVar6")) (; ";")) (expression_statement "iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178);" (assignment_expression "iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178)" (parenthesized_expression "(**(code **)(puVar5 + 0x104aac))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x104aac)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x104aac)" (* "*") (cast_expression "(code **)(puVar5 + 0x104aac)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x104aac)" (( "(") (binary_expression "puVar5 + 0x104aac" (identifier "puVar5") (+ "+") (number_literal "0x104aac")) () ")"))))) () ")")) (argument_list "(3,iVar2,auStack_178)" (( "(") (number_literal "3") (, ",") (identifier "iVar2") (, ",") (identifier "auStack_178") () ")")))) (; ";")) (if_statement "if (iStack_d4 == *piVar4) {\n    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;\n  }" (if "if") (parenthesized_expression "(iStack_d4 == *piVar4)" (( "(") (binary_expression "iStack_d4 == *piVar4" (identifier "iStack_d4") (== "==") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) () ")")) (compound_statement "{\n    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;\n  }" ({ "{") (return_statement "return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;" (return "return") (binary_expression "iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000" (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) (&& "&&") (binary_expression "(uStack_160 & 0xf000) == 0x4000" (parenthesized_expression "(uStack_160 & 0xf000)" (( "(") (binary_expression "uStack_160 & 0xf000" (identifier "uStack_160") (& "&") (number_literal "0xf000")) () ")")) (== "==") (number_literal "0x4000"))) (; ";")) (} "}"))) (expression_statement "pcVar6 = *(code **)(puVar5 + 0x104d00);" (assignment_expression "pcVar6 = *(code **)(puVar5 + 0x104d00)" (identifier "pcVar6") (= "=") (pointer_expression "*(code **)(puVar5 + 0x104d00)" (* "*") (cast_expression "(code **)(puVar5 + 0x104d00)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x104d00)" (( "(") (binary_expression "puVar5 + 0x104d00" (identifier "puVar5") (+ "+") (number_literal "0x104d00")) () ")"))))) (; ";")) (expression_statement "iVar2 = iStack_d4;" (assignment_expression "iVar2 = iStack_d4" (identifier "iVar2") (= "=") (identifier "iStack_d4")) (; ";")) (expression_statement "(*pcVar6)();" (call_expression "(*pcVar6)()" (parenthesized_expression "(*pcVar6)" (( "(") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar3 = file_isdir();" (assignment_expression "iVar3 = file_isdir()" (identifier "iVar3") (= "=") (call_expression "file_isdir()" (identifier "file_isdir") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    return false;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return false;\n  }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (expression_statement "iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2);" (assignment_expression "iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(pcVar6 + 0x1032bc))(iVar2,2)" (parenthesized_expression "(**(code **)(pcVar6 + 0x1032bc))" (( "(") (pointer_expression "**(code **)(pcVar6 + 0x1032bc)" (* "*") (pointer_expression "*(code **)(pcVar6 + 0x1032bc)" (* "*") (cast_expression "(code **)(pcVar6 + 0x1032bc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar6 + 0x1032bc)" (( "(") (binary_expression "pcVar6 + 0x1032bc" (identifier "pcVar6") (+ "+") (number_literal "0x1032bc")) () ")"))))) () ")")) (argument_list "(iVar2,2)" (( "(") (identifier "iVar2") (, ",") (number_literal "2") () ")")))) (; ";")) (return_statement "return iVar2 == 0;" (return "return") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) 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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator 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)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (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 (number_literal) (identifier) (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 (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (number_literal) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (return_statement (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (false)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (number_literal))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

bool MASKED(undefined4 param_1)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  undefined *puVar5;
  code *pcVar6;
  undefined1 auStack_178 [24];
  uint uStack_160;
  int iStack_d4;
  undefined *puStack_d0;
  code *pcStack_cc;
  undefined1 auStack_b0 [164];
  int local_c;
  
  puVar1 = PTR___stack_chk_guard_001464dc;
  local_c = *(int *)PTR___stack_chk_guard_001464dc;
  iVar2 = (*(code *)PTR___xstat64_00146234)(3,param_1,auStack_b0);
  if (local_c == *(int *)puVar1) {
    return iVar2 == 0;
  }
  pcVar6 = file_isdir;
  iVar2 = local_c;
  puVar5 = PTR___stack_chk_fail_00146488;
  (*(code *)PTR___stack_chk_fail_00146488)();
  puStack_d0 = puVar1;
  piVar4 = *(int **)(puVar5 + 0x104d54);
  iStack_d4 = *piVar4;
  pcStack_cc = pcVar6;
  iVar2 = (**(code **)(puVar5 + 0x104aac))(3,iVar2,auStack_178);
  if (iStack_d4 == *piVar4) {
    return iVar2 == 0 && (uStack_160 & 0xf000) == 0x4000;
  }
  pcVar6 = *(code **)(puVar5 + 0x104d00);
  iVar2 = iStack_d4;
  (*pcVar6)();
  iVar3 = file_isdir();
  if (iVar3 == 0) {
    return false;
  }
  iVar2 = (**(code **)(pcVar6 + 0x1032bc))(iVar2,2);
  return iVar2 == 0;
}

