
int edit(char *filename)

{
  undefined *puVar1;
  void *ifile;
  int iVar2;
  
  puVar1 = PTR_curr_ifile_0004edb4;
  if (filename == (char *)0x0) {
    ifile = (void *)0x0;
    if (*(void **)PTR_curr_ifile_0004edb4 == (void *)0x0) {
      return 0;
    }
  }
  else {
    ifile = get_ifile(filename,*(void **)PTR_curr_ifile_0004edb4);
    if (ifile == *(void **)puVar1) {
      return 0;
    }
  }
  iVar2 = edit_ifile(ifile);
  return iVar2;
}



undefined4 edit(int param_1)

{
  undefined *puVar1;
  int iVar2;
  undefined4 uVar3;
  
  puVar1 = PTR_curr_ifile_0004edb4;
  if (param_1 == 0) {
    iVar2 = 0;
    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {
      return 0;
    }
  }
  else {
    iVar2 = get_ifile();
    if (iVar2 == *(int *)puVar1) {
      return 0;
    }
  }
  uVar3 = FUN_00021ef4(iVar2);
  return uVar3;
}


lui gp,0x3
addiu gp,gp,0x45fc
addu gp,gp,t9
addiu sp,sp,-0x20
sw s0,0x18(sp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
lw s0,-0x7e1c(gp)
beq a0,zero,0x00022630
_lw a1,0x0(s0)
lw t9,-0x7f44(gp)
bal 0x00025840
_nop
lw v1,0x0(s0)
beq v0,v1,0x00022638
_lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x7ddc(gp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
addiu t9,t9,0x1ef4
b 0x00021ef4
_addiu sp,sp,0x20
bne a1,zero,0x0002261c
_lw t9,-0x7ddc(gp)
lw ra,0x1c(sp)
or v0,zero,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 edit(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_curr_ifile_0004edb4;\n  if (param_1 == 0) {\n    iVar2 = 0;\n    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }\n  }\n  else {\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }\n  uVar3 = FUN_00021ef4(iVar2);\n  return uVar3;\n}\n\n" (function_definition "undefined4 edit(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_curr_ifile_0004edb4;\n  if (param_1 == 0) {\n    iVar2 = 0;\n    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }\n  }\n  else {\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }\n  uVar3 = FUN_00021ef4(iVar2);\n  return uVar3;\n}" type_identifier (function_declarator "edit(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_curr_ifile_0004edb4;\n  if (param_1 == 0) {\n    iVar2 = 0;\n    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }\n  }\n  else {\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }\n  uVar3 = FUN_00021ef4(iVar2);\n  return uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_curr_ifile_0004edb4;" (assignment_expression "puVar1 = PTR_curr_ifile_0004edb4" identifier = identifier) ;) (if_statement "if (param_1 == 0) {\n    iVar2 = 0;\n    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }\n  }\n  else {\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(*(int *)PTR_curr_ifile_0004edb4 == 0)" ( (binary_expression "*(int *)PTR_curr_ifile_0004edb4 == 0" (pointer_expression "*(int *)PTR_curr_ifile_0004edb4" * (cast_expression "(int *)PTR_curr_ifile_0004edb4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }" { (expression_statement "iVar2 = get_ifile();" (assignment_expression "iVar2 = get_ifile()" identifier = (call_expression "get_ifile()" identifier (argument_list "()" ( )))) ;) (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 "uVar3 = FUN_00021ef4(iVar2);" (assignment_expression "uVar3 = FUN_00021ef4(iVar2)" identifier = (call_expression "FUN_00021ef4(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "int edit(char *filename)\n\n{\n  undefined *puVar1;\n  void *ifile;\n  int iVar2;\n  \n  puVar1 = PTR_curr_ifile_0004edb4;\n  if (filename == (char *)0x0) {\n    ifile = (void *)0x0;\n    if (*(void **)PTR_curr_ifile_0004edb4 == (void *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    ifile = get_ifile(filename,*(void **)PTR_curr_ifile_0004edb4);\n    if (ifile == *(void **)puVar1) {\n      return 0;\n    }\n  }\n  iVar2 = edit_ifile(ifile);\n  return iVar2;\n}\n\n" (function_definition "int edit(char *filename)\n\n{\n  undefined *puVar1;\n  void *ifile;\n  int iVar2;\n  \n  puVar1 = PTR_curr_ifile_0004edb4;\n  if (filename == (char *)0x0) {\n    ifile = (void *)0x0;\n    if (*(void **)PTR_curr_ifile_0004edb4 == (void *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    ifile = get_ifile(filename,*(void **)PTR_curr_ifile_0004edb4);\n    if (ifile == *(void **)puVar1) {\n      return 0;\n    }\n  }\n  iVar2 = edit_ifile(ifile);\n  return iVar2;\n}" primitive_type (function_declarator "edit(char *filename)" identifier (parameter_list "(char *filename)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  void *ifile;\n  int iVar2;\n  \n  puVar1 = PTR_curr_ifile_0004edb4;\n  if (filename == (char *)0x0) {\n    ifile = (void *)0x0;\n    if (*(void **)PTR_curr_ifile_0004edb4 == (void *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    ifile = get_ifile(filename,*(void **)PTR_curr_ifile_0004edb4);\n    if (ifile == *(void **)puVar1) {\n      return 0;\n    }\n  }\n  iVar2 = edit_ifile(ifile);\n  return iVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "void *ifile;" primitive_type (pointer_declarator "*ifile" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_curr_ifile_0004edb4;" (assignment_expression "puVar1 = PTR_curr_ifile_0004edb4" identifier = identifier) ;) (if_statement "if (filename == (char *)0x0) {\n    ifile = (void *)0x0;\n    if (*(void **)PTR_curr_ifile_0004edb4 == (void *)0x0) {\n      return 0;\n    }\n  }\n  else {\n    ifile = get_ifile(filename,*(void **)PTR_curr_ifile_0004edb4);\n    if (ifile == *(void **)puVar1) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(filename == (char *)0x0)" ( (binary_expression "filename == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ifile = (void *)0x0;\n    if (*(void **)PTR_curr_ifile_0004edb4 == (void *)0x0) {\n      return 0;\n    }\n  }" { (expression_statement "ifile = (void *)0x0;" (assignment_expression "ifile = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (*(void **)PTR_curr_ifile_0004edb4 == (void *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(*(void **)PTR_curr_ifile_0004edb4 == (void *)0x0)" ( (binary_expression "*(void **)PTR_curr_ifile_0004edb4 == (void *)0x0" (pointer_expression "*(void **)PTR_curr_ifile_0004edb4" * (cast_expression "(void **)PTR_curr_ifile_0004edb4" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    ifile = get_ifile(filename,*(void **)PTR_curr_ifile_0004edb4);\n    if (ifile == *(void **)puVar1) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    ifile = get_ifile(filename,*(void **)PTR_curr_ifile_0004edb4);\n    if (ifile == *(void **)puVar1) {\n      return 0;\n    }\n  }" { (expression_statement "ifile = get_ifile(filename,*(void **)PTR_curr_ifile_0004edb4);" (assignment_expression "ifile = get_ifile(filename,*(void **)PTR_curr_ifile_0004edb4)" identifier = (call_expression "get_ifile(filename,*(void **)PTR_curr_ifile_0004edb4)" identifier (argument_list "(filename,*(void **)PTR_curr_ifile_0004edb4)" ( identifier , (pointer_expression "*(void **)PTR_curr_ifile_0004edb4" * (cast_expression "(void **)PTR_curr_ifile_0004edb4" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) )))) ;) (if_statement "if (ifile == *(void **)puVar1) {\n      return 0;\n    }" if (parenthesized_expression "(ifile == *(void **)puVar1)" ( (binary_expression "ifile == *(void **)puVar1" identifier == (pointer_expression "*(void **)puVar1" * (cast_expression "(void **)puVar1" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (expression_statement "iVar2 = edit_ifile(ifile);" (assignment_expression "iVar2 = edit_ifile(ifile)" identifier = (call_expression "edit_ifile(ifile)" identifier (argument_list "(ifile)" ( identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 edit(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_curr_ifile_0004edb4;\n  if (param_1 == 0) {\n    iVar2 = 0;\n    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }\n  }\n  else {\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }\n  uVar3 = FUN_00021ef4(iVar2);\n  return uVar3;\n}\n\n" (function_definition "undefined4 edit(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_curr_ifile_0004edb4;\n  if (param_1 == 0) {\n    iVar2 = 0;\n    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }\n  }\n  else {\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }\n  uVar3 = FUN_00021ef4(iVar2);\n  return uVar3;\n}" type_identifier (function_declarator "edit(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_curr_ifile_0004edb4;\n  if (param_1 == 0) {\n    iVar2 = 0;\n    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }\n  }\n  else {\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }\n  uVar3 = FUN_00021ef4(iVar2);\n  return uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_curr_ifile_0004edb4;" (assignment_expression "puVar1 = PTR_curr_ifile_0004edb4" identifier = identifier) ;) (if_statement "if (param_1 == 0) {\n    iVar2 = 0;\n    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }\n  }\n  else {\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(*(int *)PTR_curr_ifile_0004edb4 == 0)" ( (binary_expression "*(int *)PTR_curr_ifile_0004edb4 == 0" (pointer_expression "*(int *)PTR_curr_ifile_0004edb4" * (cast_expression "(int *)PTR_curr_ifile_0004edb4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }" { (expression_statement "iVar2 = get_ifile();" (assignment_expression "iVar2 = get_ifile()" identifier = (call_expression "get_ifile()" identifier (argument_list "()" ( )))) ;) (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 "uVar3 = FUN_00021ef4(iVar2);" (assignment_expression "uVar3 = FUN_00021ef4(iVar2)" identifier = (call_expression "FUN_00021ef4(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (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 ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return LIT ;) })) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 edit(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_curr_ifile_0004edb4;\n  if (param_1 == 0) {\n    iVar2 = 0;\n    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }\n  }\n  else {\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }\n  uVar3 = FUN_00021ef4(iVar2);\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "edit(int param_1)" (identifier "edit") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_curr_ifile_0004edb4;\n  if (param_1 == 0) {\n    iVar2 = 0;\n    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }\n  }\n  else {\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }\n  uVar3 = FUN_00021ef4(iVar2);\n  return uVar3;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "puVar1 = PTR_curr_ifile_0004edb4;" (assignment_expression "puVar1 = PTR_curr_ifile_0004edb4" (identifier "puVar1") (= "=") (identifier "PTR_curr_ifile_0004edb4")) (; ";")) (if_statement "if (param_1 == 0) {\n    iVar2 = 0;\n    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }\n  }\n  else {\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = 0;\n    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(int *)PTR_curr_ifile_0004edb4 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(int *)PTR_curr_ifile_0004edb4 == 0)" (( "(") (binary_expression "*(int *)PTR_curr_ifile_0004edb4 == 0" (pointer_expression "*(int *)PTR_curr_ifile_0004edb4" (* "*") (cast_expression "(int *)PTR_curr_ifile_0004edb4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_curr_ifile_0004edb4"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }" (else "else") (compound_statement "{\n    iVar2 = get_ifile();\n    if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "iVar2 = get_ifile();" (assignment_expression "iVar2 = get_ifile()" (identifier "iVar2") (= "=") (call_expression "get_ifile()" (identifier "get_ifile") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == *(int *)puVar1) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == *(int *)puVar1)" (( "(") (binary_expression "iVar2 == *(int *)puVar1" (identifier "iVar2") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (expression_statement "uVar3 = FUN_00021ef4(iVar2);" (assignment_expression "uVar3 = FUN_00021ef4(iVar2)" (identifier "uVar3") (= "=") (call_expression "FUN_00021ef4(iVar2)" (identifier "FUN_00021ef4") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

int function_1(char *var_1)

{
  type_1 *puVar1;
  void *var_3;
  int iVar2;
  
  puVar1 = PTR_curr_ifile_0004edb4;
  if (var_1 == (char *)0x0) {
    var_3 = (void *)0x0;
    if (*(void **)PTR_curr_ifile_0004edb4 == (void *)0x0) {
      return 0;
    }
  }
  else {
    var_3 = var_2(var_1,*(void **)PTR_curr_ifile_0004edb4);
    if (var_3 == *(void **)puVar1) {
      return 0;
    }
  }
  iVar2 = var_4(var_3);
  return iVar2;
}


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

undefined4 MASKED(int param_1)

{
  undefined *puVar1;
  int iVar2;
  undefined4 uVar3;
  
  puVar1 = PTR_curr_ifile_0004edb4;
  if (param_1 == 0) {
    iVar2 = 0;
    if (*(int *)PTR_curr_ifile_0004edb4 == 0) {
      return 0;
    }
  }
  else {
    iVar2 = get_ifile();
    if (iVar2 == *(int *)puVar1) {
      return 0;
    }
  }
  uVar3 = FUN_00021ef4(iVar2);
  return uVar3;
}

