
int delete_var(char *name,VAR_CONTEXT *vc)

{
  int iVar1;
  
  if (vc != (VAR_CONTEXT *)0x0) {
    do {
      iVar1 = (*(code *)PTR_hash_remove_00157014)(name,vc->table,0);
      if (iVar1 != 0) {
        iVar1 = (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));
        return iVar1;
      }
      vc = vc->down;
    } while (vc != (var_context *)0x0);
  }
  return -1;
}



undefined4 delete_var(undefined4 param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_2 != 0) {
    do {
      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);
      if (iVar1 != 0) {
        uVar2 = *(undefined4 *)(iVar1 + 8);
        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));
        (*(code *)PTR_free_001585ac)(iVar1);
        dispose_variable(uVar2);
        return 0;
      }
      param_2 = *(int *)(param_2 + 0x10);
    } while (param_2 != 0);
  }
  return 0xffffffff;
}


lui gp,0x10
addiu gp,gp,0x3d28
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s2,a0,zero
beq a1,zero,0x0005a878
_or s0,a1,zero
or a2,zero,zero
lw a1,0x14(s0)
or a0,s2,zero
lw t9,-0x752c(gp)
jalr t9
_nop
lw gp,0x10(sp)
bne v0,zero,0x0005a880
_or s1,v0,zero
lw s0,0x10(s0)
bne s0,zero,0x0005a84c
_or a2,zero,zero
b 0x0005a8c4
_li v0,-0x1
lw s0,0x8(v0)
lw a0,0x4(v0)
lw t9,-0x5f94(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a0,s1,zero
lw t9,-0x5f94(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a0,s0,zero
lw t9,-0x7530(gp)
bal 0x0005a5bc
_nop
lw gp,0x10(sp)
or v0,zero,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined4 delete_var(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_2 != 0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  return 0xffffffff;\n}\n\n" (function_definition "undefined4 delete_var(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_2 != 0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  return 0xffffffff;\n}" type_identifier (function_declarator "delete_var(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_2 != 0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  return 0xffffffff;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_2 != 0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }" { (do_statement "do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);" do (compound_statement "{\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    }" { (expression_statement "iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);" (assignment_expression "iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0)" identifier = (call_expression "(*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0)" (parenthesized_expression "(*(code *)PTR_hash_remove_00157014)" ( (pointer_expression "*(code *)PTR_hash_remove_00157014" * (cast_expression "(code *)PTR_hash_remove_00157014" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,*(undefined4 *)(param_2 + 0x14),0)" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }" { (expression_statement "uVar2 = *(undefined4 *)(iVar1 + 8);" (assignment_expression "uVar2 = *(undefined4 *)(iVar1 + 8)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));" (call_expression "(*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4))" (parenthesized_expression "(*(code *)PTR_free_001585ac)" ( (pointer_expression "*(code *)PTR_free_001585ac" * (cast_expression "(code *)PTR_free_001585ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar1 + 4))" ( (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_free_001585ac)(iVar1);" (call_expression "(*(code *)PTR_free_001585ac)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_001585ac)" ( (pointer_expression "*(code *)PTR_free_001585ac" * (cast_expression "(code *)PTR_free_001585ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "dispose_variable(uVar2);" (call_expression "dispose_variable(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_2 = *(int *)(param_2 + 0x10);" (assignment_expression "param_2 = *(int *)(param_2 + 0x10)" identifier = (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) })) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "int delete_var(char *name,VAR_CONTEXT *vc)\n\n{\n  int iVar1;\n  \n  if (vc != (VAR_CONTEXT *)0x0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(name,vc->table,0);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        return iVar1;\n      }\n      vc = vc->down;\n    } while (vc != (var_context *)0x0);\n  }\n  return -1;\n}\n\n" (function_definition "int delete_var(char *name,VAR_CONTEXT *vc)\n\n{\n  int iVar1;\n  \n  if (vc != (VAR_CONTEXT *)0x0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(name,vc->table,0);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        return iVar1;\n      }\n      vc = vc->down;\n    } while (vc != (var_context *)0x0);\n  }\n  return -1;\n}" primitive_type (function_declarator "delete_var(char *name,VAR_CONTEXT *vc)" identifier (parameter_list "(char *name,VAR_CONTEXT *vc)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "VAR_CONTEXT *vc" type_identifier (pointer_declarator "*vc" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (vc != (VAR_CONTEXT *)0x0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(name,vc->table,0);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        return iVar1;\n      }\n      vc = vc->down;\n    } while (vc != (var_context *)0x0);\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (vc != (VAR_CONTEXT *)0x0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(name,vc->table,0);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        return iVar1;\n      }\n      vc = vc->down;\n    } while (vc != (var_context *)0x0);\n  }" if (parenthesized_expression "(vc != (VAR_CONTEXT *)0x0)" ( (binary_expression "vc != (VAR_CONTEXT *)0x0" identifier != (cast_expression "(VAR_CONTEXT *)0x0" ( (type_descriptor "VAR_CONTEXT *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(name,vc->table,0);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        return iVar1;\n      }\n      vc = vc->down;\n    } while (vc != (var_context *)0x0);\n  }" { (do_statement "do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(name,vc->table,0);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        return iVar1;\n      }\n      vc = vc->down;\n    } while (vc != (var_context *)0x0);" do (compound_statement "{\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(name,vc->table,0);\n      if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        return iVar1;\n      }\n      vc = vc->down;\n    }" { (expression_statement "iVar1 = (*(code *)PTR_hash_remove_00157014)(name,vc->table,0);" (assignment_expression "iVar1 = (*(code *)PTR_hash_remove_00157014)(name,vc->table,0)" identifier = (call_expression "(*(code *)PTR_hash_remove_00157014)(name,vc->table,0)" (parenthesized_expression "(*(code *)PTR_hash_remove_00157014)" ( (pointer_expression "*(code *)PTR_hash_remove_00157014" * (cast_expression "(code *)PTR_hash_remove_00157014" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name,vc->table,0)" ( identifier , (field_expression "vc->table" identifier -> field_identifier) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n        iVar1 = (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        return iVar1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar1 = (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        return iVar1;\n      }" { (expression_statement "iVar1 = (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));" (assignment_expression "iVar1 = (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4))" identifier = (call_expression "(*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4))" (parenthesized_expression "(*(code *)PTR_free_001585ac)" ( (pointer_expression "*(code *)PTR_free_001585ac" * (cast_expression "(code *)PTR_free_001585ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar1 + 4))" ( (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "vc = vc->down;" (assignment_expression "vc = vc->down" identifier = (field_expression "vc->down" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(vc != (var_context *)0x0)" ( (binary_expression "vc != (var_context *)0x0" identifier != (cast_expression "(var_context *)0x0" ( (type_descriptor "var_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "undefined4 delete_var(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_2 != 0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  return 0xffffffff;\n}\n\n" (function_definition "undefined4 delete_var(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_2 != 0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  return 0xffffffff;\n}" type_identifier (function_declarator "delete_var(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_2 != 0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  return 0xffffffff;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_2 != 0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }" { (do_statement "do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);" do (compound_statement "{\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    }" { (expression_statement "iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);" (assignment_expression "iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0)" identifier = (call_expression "(*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0)" (parenthesized_expression "(*(code *)PTR_hash_remove_00157014)" ( (pointer_expression "*(code *)PTR_hash_remove_00157014" * (cast_expression "(code *)PTR_hash_remove_00157014" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,*(undefined4 *)(param_2 + 0x14),0)" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }" { (expression_statement "uVar2 = *(undefined4 *)(iVar1 + 8);" (assignment_expression "uVar2 = *(undefined4 *)(iVar1 + 8)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));" (call_expression "(*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4))" (parenthesized_expression "(*(code *)PTR_free_001585ac)" ( (pointer_expression "*(code *)PTR_free_001585ac" * (cast_expression "(code *)PTR_free_001585ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar1 + 4))" ( (pointer_expression "*(undefined4 *)(iVar1 + 4)" * (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_free_001585ac)(iVar1);" (call_expression "(*(code *)PTR_free_001585ac)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_001585ac)" ( (pointer_expression "*(code *)PTR_free_001585ac" * (cast_expression "(code *)PTR_free_001585ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "dispose_variable(uVar2);" (call_expression "dispose_variable(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_2 = *(int *)(param_2 + 0x10);" (assignment_expression "param_2 = *(int *)(param_2 + 0x10)" identifier = (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) })) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 delete_var(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_2 != 0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  return 0xffffffff;\n}" (type_identifier "undefined4") (function_declarator "delete_var(undefined4 param_1,int param_2)" (identifier "delete_var") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_2 != 0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  return 0xffffffff;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (param_2 != 0) {\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }" ({ "{") (do_statement "do {\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);" (do "do") (compound_statement "{\n      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);\n      if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);" (assignment_expression "iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0)" (parenthesized_expression "(*(code *)PTR_hash_remove_00157014)" (( "(") (pointer_expression "*(code *)PTR_hash_remove_00157014" (* "*") (cast_expression "(code *)PTR_hash_remove_00157014" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_hash_remove_00157014"))) () ")")) (argument_list "(param_1,*(undefined4 *)(param_2 + 0x14),0)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = *(undefined4 *)(iVar1 + 8);\n        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));\n        (*(code *)PTR_free_001585ac)(iVar1);\n        dispose_variable(uVar2);\n        return 0;\n      }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)(iVar1 + 8);" (assignment_expression "uVar2 = *(undefined4 *)(iVar1 + 8)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));" (call_expression "(*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4))" (parenthesized_expression "(*(code *)PTR_free_001585ac)" (( "(") (pointer_expression "*(code *)PTR_free_001585ac" (* "*") (cast_expression "(code *)PTR_free_001585ac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_001585ac"))) () ")")) (argument_list "(*(undefined4 *)(iVar1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_001585ac)(iVar1);" (call_expression "(*(code *)PTR_free_001585ac)(iVar1)" (parenthesized_expression "(*(code *)PTR_free_001585ac)" (( "(") (pointer_expression "*(code *)PTR_free_001585ac" (* "*") (cast_expression "(code *)PTR_free_001585ac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_001585ac"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "dispose_variable(uVar2);" (call_expression "dispose_variable(uVar2)" (identifier "dispose_variable") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "param_2 = *(int *)(param_2 + 0x10);" (assignment_expression "param_2 = *(int *)(param_2 + 0x10)" (identifier "param_2") (= "=") (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}")))

int function_1(char *name,type_1 *var_1)

{
  int var_2;
  
  if (var_1 != (type_1 *)0x0) {
    do {
      var_2 = (*(type_2 *)PTR_hash_remove_00157014)(name,var_1->table,0);
      if (var_2 != 0) {
        var_2 = (*(type_2 *)PTR_free_001585ac)(*(type_3 *)(var_2 + 4));
        return var_2;
      }
      var_1 = var_1->down;
    } while (var_1 != (type_4 *)0x0);
  }
  return -1;
}


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

undefined4 MASKED(undefined4 param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_2 != 0) {
    do {
      iVar1 = (*(code *)PTR_hash_remove_00157014)(param_1,*(undefined4 *)(param_2 + 0x14),0);
      if (iVar1 != 0) {
        uVar2 = *(undefined4 *)(iVar1 + 8);
        (*(code *)PTR_free_001585ac)(*(undefined4 *)(iVar1 + 4));
        (*(code *)PTR_free_001585ac)(iVar1);
        dispose_variable(uVar2);
        return 0;
      }
      param_2 = *(int *)(param_2 + 0x10);
    } while (param_2 != 0);
  }
  return 0xffffffff;
}

