
void setprompt_if(smallint do_set,int whichprompt)

{
  undefined *puVar1;
  int iVar2;
  undefined4 uVar3;
  undefined3 in_register_00000010;
  char *pcVar4;
  stackmark smark;
  
  iVar2 = *(int *)PTR___stack_chk_guard_00132164;
  if (CONCAT31(in_register_00000010,do_set) == 0) goto LAB_0007e014;
  PTR_OptArray_14__flags_00131178[0x23e9] = 0;
  if (whichprompt == 1) {
    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4);
  }
  else {
    if (whichprompt == 2) goto LAB_0007e030;
    pcVar4 = (char *)(*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c);
  }
  while( true ) {
    pushstackmark(&smark,*(size_t *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc));
    pcVar4 = expandstr(pcVar4,4);
    puVar1 = PTR_OptArray_14__flags_00131178;
    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x2330));
    uVar3 = (*(code *)PTR_xstrdup_001312b8)(pcVar4);
    *(undefined4 *)(puVar1 + 0x2330) = uVar3;
    popstackmark(&smark);
LAB_0007e014:
    if (iVar2 == *(int *)PTR___stack_chk_guard_00132164) break;
    (*(code *)PTR___stack_chk_fail_001320e4)();
LAB_0007e030:
    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4);
  }
  return;
}



void FUN_0007df18(int param_1,int param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  undefined1 auStack_20 [12];
  int local_14;
  
  local_14 = *(int *)PTR___stack_chk_guard_00132164;
  if (param_1 == 0) goto LAB_0007e014;
  PTR_DAT_00131178[0x23e9] = 0;
  if (param_2 == 1) {
    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;
  }
  else {
    if (param_2 == 2) goto LAB_0007e030;
    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;
  }
  while( true ) {
    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))
    ;
    uVar2 = FUN_0007dd7c(iVar3,4);
    puVar1 = PTR_DAT_00131178;
    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));
    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);
    *(undefined4 *)(puVar1 + 0x2330) = uVar2;
    FUN_000729b4(auStack_20);
LAB_0007e014:
    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;
    (*(code *)PTR___stack_chk_fail_001320e4)();
LAB_0007e030:
    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;
  }
  return;
}


lui gp,0xc
addiu gp,gp,-0x4dc8
addu gp,gp,t9
addiu sp,sp,-0x38
sw ra,0x34(sp)
sw s2,0x30(sp)
sw s1,0x2c(sp)
sw s0,0x28(sp)
sw gp,0x10(sp)
lw v0,-0x6fec(gp)
lw v0,0x0(v0)
sw v0,0x24(sp)
beq a0,zero,0x0007e014
_lw v0,-0x7fd8(gp)
sb zero,0x23e9(v0)
li v0,0x1
beq a1,v0,0x0007df74
_li v0,0x2
beq a1,v0,0x0007e030
_lw v0,-0x78c4(gp)
lw s0,0x0(v0)
b 0x0007df84
_addiu s0,s0,0x2c
lw v0,-0x78c8(gp)
lw v0,0x0(v0)
lw s0,0x100(v0)
addiu s0,s0,0x4
lw v0,-0x78cc(gp)
lw v0,0x0(v0)
lw a1,0xc(v0)
addiu s1,sp,0x18
or a0,s1,zero
lw t9,-0x7938(gp)
addiu t9,t9,0x4c7c
bal 0x00074c7c
_nop
lw gp,0x10(sp)
li a1,0x4
or a0,s0,zero
lw t9,-0x78a8(gp)
addiu t9,t9,-0x2284
bal 0x0007dd7c
_nop
lw gp,0x10(sp)
or s2,v0,zero
lw s0,-0x7fd8(gp)
lw a0,0x2330(s0)
lw t9,-0x6fd0(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a0,s2,zero
lw t9,-0x7e98(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw v0,0x2330(s0)
or a0,s1,zero
lw t9,-0x7938(gp)
addiu t9,t9,0x29b4
bal 0x000729b4
_nop
lw gp,0x10(sp)
lw v1,0x24(sp)
lw v0,-0x6fec(gp)
lw v0,0x0(v0)
beq v1,v0,0x0007e044
_lw t9,-0x706c(gp)
jalr t9
_nop
lw v0,-0x78c8(gp)
lw v0,0x0(v0)
lw s0,0x110(v0)
b 0x0007df84
_addiu s0,s0,0x4
lw ra,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "void FUN_0007df18(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined1 auStack_20 [12];\n  int local_14;\n  \n  local_14 = *(int *)PTR___stack_chk_guard_00132164;\n  if (param_1 == 0) goto LAB_0007e014;\n  PTR_DAT_00131178[0x23e9] = 0;\n  if (param_2 == 1) {\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;\n  }\n  else {\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }\n  while( true ) {\n    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;\n    uVar2 = FUN_0007dd7c(iVar3,4);\n    puVar1 = PTR_DAT_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));\n    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar2;\n    FUN_000729b4(auStack_20);\nLAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0007df18(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined1 auStack_20 [12];\n  int local_14;\n  \n  local_14 = *(int *)PTR___stack_chk_guard_00132164;\n  if (param_1 == 0) goto LAB_0007e014;\n  PTR_DAT_00131178[0x23e9] = 0;\n  if (param_2 == 1) {\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;\n  }\n  else {\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }\n  while( true ) {\n    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;\n    uVar2 = FUN_0007dd7c(iVar3,4);\n    puVar1 = PTR_DAT_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));\n    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar2;\n    FUN_000729b4(auStack_20);\nLAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0007df18(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined1 auStack_20 [12];\n  int local_14;\n  \n  local_14 = *(int *)PTR___stack_chk_guard_00132164;\n  if (param_1 == 0) goto LAB_0007e014;\n  PTR_DAT_00131178[0x23e9] = 0;\n  if (param_2 == 1) {\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;\n  }\n  else {\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }\n  while( true ) {\n    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;\n    uVar2 = FUN_0007dd7c(iVar3,4);\n    puVar1 = PTR_DAT_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));\n    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar2;\n    FUN_000729b4(auStack_20);\nLAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 auStack_20 [12];" type_identifier (array_declarator "auStack_20 [12]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_00132164;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_00132164" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" * (cast_expression "(int *)PTR___stack_chk_guard_00132164" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_1 == 0) goto LAB_0007e014;" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0007e014;" goto statement_identifier ;)) (expression_statement "PTR_DAT_00131178[0x23e9] = 0;" (assignment_expression "PTR_DAT_00131178[0x23e9] = 0" (subscript_expression "PTR_DAT_00131178[0x23e9]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_2 == 1) {\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;\n  }\n  else {\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;\n  }" { (expression_statement "iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;" (assignment_expression "iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4" identifier = (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888" * (cast_expression "(int *)PTR_ash_ptr_to_globals_var_00131888" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }" else (compound_statement "{\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }" { (if_statement "if (param_2 == 2) goto LAB_0007e030;" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (goto_statement "goto LAB_0007e030;" goto statement_identifier ;)) (expression_statement "iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;" (assignment_expression "iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c" identifier = (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0013188c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0013188c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal)) ;) }))) (while_statement "while( true ) {\n    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;\n    uVar2 = FUN_0007dd7c(iVar3,4);\n    puVar1 = PTR_DAT_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));\n    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar2;\n    FUN_000729b4(auStack_20);\nLAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;\n    uVar2 = FUN_0007dd7c(iVar3,4);\n    puVar1 = PTR_DAT_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));\n    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar2;\n    FUN_000729b4(auStack_20);\nLAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;\n  }" { (expression_statement "FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;" (call_expression "FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))" identifier (argument_list "(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))" ( identifier , (pointer_expression "*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc)" * (cast_expression "(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_memstack_00131884" * (cast_expression "(int *)PTR_ash_ptr_to_globals_memstack_00131884" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ))) ;) (expression_statement "uVar2 = FUN_0007dd7c(iVar3,4);" (assignment_expression "uVar2 = FUN_0007dd7c(iVar3,4)" identifier = (call_expression "FUN_0007dd7c(iVar3,4)" identifier (argument_list "(iVar3,4)" ( identifier , number_literal )))) ;) (expression_statement "puVar1 = PTR_DAT_00131178;" (assignment_expression "puVar1 = PTR_DAT_00131178" identifier = identifier) ;) (expression_statement "(*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));" (call_expression "(*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330))" (parenthesized_expression "(*(code *)PTR_free_00132180)" ( (pointer_expression "*(code *)PTR_free_00132180" * (cast_expression "(code *)PTR_free_00132180" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_00131178 + 0x2330))" ( (pointer_expression "*(undefined4 *)(PTR_DAT_00131178 + 0x2330)" * (cast_expression "(undefined4 *)(PTR_DAT_00131178 + 0x2330)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00131178 + 0x2330)" ( (binary_expression "PTR_DAT_00131178 + 0x2330" identifier + number_literal) )))) ))) ;) (expression_statement "uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);" (assignment_expression "uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2)" identifier = (call_expression "(*(code *)PTR_FUN_001312b8)(uVar2)" (parenthesized_expression "(*(code *)PTR_FUN_001312b8)" ( (pointer_expression "*(code *)PTR_FUN_001312b8" * (cast_expression "(code *)PTR_FUN_001312b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x2330) = uVar2;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2330) = uVar2" (pointer_expression "*(undefined4 *)(puVar1 + 0x2330)" * (cast_expression "(undefined4 *)(puVar1 + 0x2330)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2330)" ( (binary_expression "puVar1 + 0x2330" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_000729b4(auStack_20);" (call_expression "FUN_000729b4(auStack_20)" identifier (argument_list "(auStack_20)" ( identifier ))) ;) (labeled_statement "LAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;" statement_identifier : (if_statement "if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;" if (parenthesized_expression "(local_14 == *(int *)PTR___stack_chk_guard_00132164)" ( (binary_expression "local_14 == *(int *)PTR___stack_chk_guard_00132164" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" * (cast_expression "(int *)PTR___stack_chk_guard_00132164" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (break_statement "break;" break ;))) (expression_statement "(*(code *)PTR___stack_chk_fail_001320e4)();" (call_expression "(*(code *)PTR___stack_chk_fail_001320e4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001320e4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001320e4" * (cast_expression "(code *)PTR___stack_chk_fail_001320e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;" statement_identifier : (expression_statement "iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;" (assignment_expression "iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4" identifier = (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888" * (cast_expression "(int *)PTR_ash_ptr_to_globals_var_00131888" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal)) ;)) })) (return_statement "return;" return ;) })))
(translation_unit "void setprompt_if(smallint do_set,int whichprompt)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined3 in_register_00000010;\n  char *pcVar4;\n  stackmark smark;\n  \n  iVar2 = *(int *)PTR___stack_chk_guard_00132164;\n  if (CONCAT31(in_register_00000010,do_set) == 0) goto LAB_0007e014;\n  PTR_OptArray_14__flags_00131178[0x23e9] = 0;\n  if (whichprompt == 1) {\n    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4);\n  }\n  else {\n    if (whichprompt == 2) goto LAB_0007e030;\n    pcVar4 = (char *)(*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c);\n  }\n  while( true ) {\n    pushstackmark(&smark,*(size_t *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc));\n    pcVar4 = expandstr(pcVar4,4);\n    puVar1 = PTR_OptArray_14__flags_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x2330));\n    uVar3 = (*(code *)PTR_xstrdup_001312b8)(pcVar4);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar3;\n    popstackmark(&smark);\nLAB_0007e014:\n    if (iVar2 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4);\n  }\n  return;\n}\n\n" (function_definition "void setprompt_if(smallint do_set,int whichprompt)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined3 in_register_00000010;\n  char *pcVar4;\n  stackmark smark;\n  \n  iVar2 = *(int *)PTR___stack_chk_guard_00132164;\n  if (CONCAT31(in_register_00000010,do_set) == 0) goto LAB_0007e014;\n  PTR_OptArray_14__flags_00131178[0x23e9] = 0;\n  if (whichprompt == 1) {\n    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4);\n  }\n  else {\n    if (whichprompt == 2) goto LAB_0007e030;\n    pcVar4 = (char *)(*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c);\n  }\n  while( true ) {\n    pushstackmark(&smark,*(size_t *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc));\n    pcVar4 = expandstr(pcVar4,4);\n    puVar1 = PTR_OptArray_14__flags_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x2330));\n    uVar3 = (*(code *)PTR_xstrdup_001312b8)(pcVar4);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar3;\n    popstackmark(&smark);\nLAB_0007e014:\n    if (iVar2 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4);\n  }\n  return;\n}" primitive_type (function_declarator "setprompt_if(smallint do_set,int whichprompt)" identifier (parameter_list "(smallint do_set,int whichprompt)" ( (parameter_declaration "smallint do_set" type_identifier identifier) , (parameter_declaration "int whichprompt" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined3 in_register_00000010;\n  char *pcVar4;\n  stackmark smark;\n  \n  iVar2 = *(int *)PTR___stack_chk_guard_00132164;\n  if (CONCAT31(in_register_00000010,do_set) == 0) goto LAB_0007e014;\n  PTR_OptArray_14__flags_00131178[0x23e9] = 0;\n  if (whichprompt == 1) {\n    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4);\n  }\n  else {\n    if (whichprompt == 2) goto LAB_0007e030;\n    pcVar4 = (char *)(*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c);\n  }\n  while( true ) {\n    pushstackmark(&smark,*(size_t *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc));\n    pcVar4 = expandstr(pcVar4,4);\n    puVar1 = PTR_OptArray_14__flags_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x2330));\n    uVar3 = (*(code *)PTR_xstrdup_001312b8)(pcVar4);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar3;\n    popstackmark(&smark);\nLAB_0007e014:\n    if (iVar2 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4);\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined3 in_register_00000010;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "stackmark smark;" type_identifier identifier ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_00132164;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_00132164" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" * (cast_expression "(int *)PTR___stack_chk_guard_00132164" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (CONCAT31(in_register_00000010,do_set) == 0) goto LAB_0007e014;" if (parenthesized_expression "(CONCAT31(in_register_00000010,do_set) == 0)" ( (binary_expression "CONCAT31(in_register_00000010,do_set) == 0" (call_expression "CONCAT31(in_register_00000010,do_set)" identifier (argument_list "(in_register_00000010,do_set)" ( identifier , identifier ))) == number_literal) )) (goto_statement "goto LAB_0007e014;" goto statement_identifier ;)) (expression_statement "PTR_OptArray_14__flags_00131178[0x23e9] = 0;" (assignment_expression "PTR_OptArray_14__flags_00131178[0x23e9] = 0" (subscript_expression "PTR_OptArray_14__flags_00131178[0x23e9]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (whichprompt == 1) {\n    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4);\n  }\n  else {\n    if (whichprompt == 2) goto LAB_0007e030;\n    pcVar4 = (char *)(*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c);\n  }" if (parenthesized_expression "(whichprompt == 1)" ( (binary_expression "whichprompt == 1" identifier == number_literal) )) (compound_statement "{\n    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4);\n  }" { (expression_statement "pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4);" (assignment_expression "pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4)" identifier = (cast_expression "(char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4)" ( (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888" * (cast_expression "(int *)PTR_ash_ptr_to_globals_var_00131888" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal) )))) ;) }) (else_clause "else {\n    if (whichprompt == 2) goto LAB_0007e030;\n    pcVar4 = (char *)(*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c);\n  }" else (compound_statement "{\n    if (whichprompt == 2) goto LAB_0007e030;\n    pcVar4 = (char *)(*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c);\n  }" { (if_statement "if (whichprompt == 2) goto LAB_0007e030;" if (parenthesized_expression "(whichprompt == 2)" ( (binary_expression "whichprompt == 2" identifier == number_literal) )) (goto_statement "goto LAB_0007e030;" goto statement_identifier ;)) (expression_statement "pcVar4 = (char *)(*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c);" (assignment_expression "pcVar4 = (char *)(*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c)" identifier = (cast_expression "(char *)(*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0013188c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0013188c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ;) }))) (while_statement "while( true ) {\n    pushstackmark(&smark,*(size_t *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc));\n    pcVar4 = expandstr(pcVar4,4);\n    puVar1 = PTR_OptArray_14__flags_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x2330));\n    uVar3 = (*(code *)PTR_xstrdup_001312b8)(pcVar4);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar3;\n    popstackmark(&smark);\nLAB_0007e014:\n    if (iVar2 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    pushstackmark(&smark,*(size_t *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc));\n    pcVar4 = expandstr(pcVar4,4);\n    puVar1 = PTR_OptArray_14__flags_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x2330));\n    uVar3 = (*(code *)PTR_xstrdup_001312b8)(pcVar4);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar3;\n    popstackmark(&smark);\nLAB_0007e014:\n    if (iVar2 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4);\n  }" { (expression_statement "pushstackmark(&smark,*(size_t *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc));" (call_expression "pushstackmark(&smark,*(size_t *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))" identifier (argument_list "(&smark,*(size_t *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))" ( (pointer_expression "&smark" & identifier) , (pointer_expression "*(size_t *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc)" * (cast_expression "(size_t *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_memstack_00131884" * (cast_expression "(int *)PTR_ash_ptr_to_globals_memstack_00131884" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ))) ;) (expression_statement "pcVar4 = expandstr(pcVar4,4);" (assignment_expression "pcVar4 = expandstr(pcVar4,4)" identifier = (call_expression "expandstr(pcVar4,4)" identifier (argument_list "(pcVar4,4)" ( identifier , number_literal )))) ;) (expression_statement "puVar1 = PTR_OptArray_14__flags_00131178;" (assignment_expression "puVar1 = PTR_OptArray_14__flags_00131178" identifier = identifier) ;) (expression_statement "(*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x2330));" (call_expression "(*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x2330))" (parenthesized_expression "(*(code *)PTR_free_00132180)" ( (pointer_expression "*(code *)PTR_free_00132180" * (cast_expression "(code *)PTR_free_00132180" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x2330))" ( (pointer_expression "*(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x2330)" * (cast_expression "(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x2330)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_OptArray_14__flags_00131178 + 0x2330)" ( (binary_expression "PTR_OptArray_14__flags_00131178 + 0x2330" identifier + number_literal) )))) ))) ;) (expression_statement "uVar3 = (*(code *)PTR_xstrdup_001312b8)(pcVar4);" (assignment_expression "uVar3 = (*(code *)PTR_xstrdup_001312b8)(pcVar4)" identifier = (call_expression "(*(code *)PTR_xstrdup_001312b8)(pcVar4)" (parenthesized_expression "(*(code *)PTR_xstrdup_001312b8)" ( (pointer_expression "*(code *)PTR_xstrdup_001312b8" * (cast_expression "(code *)PTR_xstrdup_001312b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x2330) = uVar3;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2330) = uVar3" (pointer_expression "*(undefined4 *)(puVar1 + 0x2330)" * (cast_expression "(undefined4 *)(puVar1 + 0x2330)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2330)" ( (binary_expression "puVar1 + 0x2330" identifier + number_literal) )))) = identifier) ;) (expression_statement "popstackmark(&smark);" (call_expression "popstackmark(&smark)" identifier (argument_list "(&smark)" ( (pointer_expression "&smark" & identifier) ))) ;) (labeled_statement "LAB_0007e014:\n    if (iVar2 == *(int *)PTR___stack_chk_guard_00132164) break;" statement_identifier : (if_statement "if (iVar2 == *(int *)PTR___stack_chk_guard_00132164) break;" if (parenthesized_expression "(iVar2 == *(int *)PTR___stack_chk_guard_00132164)" ( (binary_expression "iVar2 == *(int *)PTR___stack_chk_guard_00132164" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" * (cast_expression "(int *)PTR___stack_chk_guard_00132164" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (break_statement "break;" break ;))) (expression_statement "(*(code *)PTR___stack_chk_fail_001320e4)();" (call_expression "(*(code *)PTR___stack_chk_fail_001320e4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001320e4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001320e4" * (cast_expression "(code *)PTR___stack_chk_fail_001320e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0007e030:\n    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4);" statement_identifier : (expression_statement "pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4);" (assignment_expression "pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4)" identifier = (cast_expression "(char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4)" ( (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888" * (cast_expression "(int *)PTR_ash_ptr_to_globals_var_00131888" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal) )))) ;)) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0007df18(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined1 auStack_20 [12];\n  int local_14;\n  \n  local_14 = *(int *)PTR___stack_chk_guard_00132164;\n  if (param_1 == 0) goto LAB_0007e014;\n  PTR_DAT_00131178[0x23e9] = 0;\n  if (param_2 == 1) {\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;\n  }\n  else {\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }\n  while( true ) {\n    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;\n    uVar2 = FUN_0007dd7c(iVar3,4);\n    puVar1 = PTR_DAT_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));\n    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar2;\n    FUN_000729b4(auStack_20);\nLAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0007df18(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined1 auStack_20 [12];\n  int local_14;\n  \n  local_14 = *(int *)PTR___stack_chk_guard_00132164;\n  if (param_1 == 0) goto LAB_0007e014;\n  PTR_DAT_00131178[0x23e9] = 0;\n  if (param_2 == 1) {\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;\n  }\n  else {\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }\n  while( true ) {\n    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;\n    uVar2 = FUN_0007dd7c(iVar3,4);\n    puVar1 = PTR_DAT_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));\n    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar2;\n    FUN_000729b4(auStack_20);\nLAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0007df18(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined1 auStack_20 [12];\n  int local_14;\n  \n  local_14 = *(int *)PTR___stack_chk_guard_00132164;\n  if (param_1 == 0) goto LAB_0007e014;\n  PTR_DAT_00131178[0x23e9] = 0;\n  if (param_2 == 1) {\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;\n  }\n  else {\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }\n  while( true ) {\n    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;\n    uVar2 = FUN_0007dd7c(iVar3,4);\n    puVar1 = PTR_DAT_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));\n    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar2;\n    FUN_000729b4(auStack_20);\nLAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 auStack_20 [12];" type_identifier (array_declarator "auStack_20 [12]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_00132164;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_00132164" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" * (cast_expression "(int *)PTR___stack_chk_guard_00132164" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_1 == 0) goto LAB_0007e014;" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0007e014;" goto statement_identifier ;)) (expression_statement "PTR_DAT_00131178[0x23e9] = 0;" (assignment_expression "PTR_DAT_00131178[0x23e9] = 0" (subscript_expression "PTR_DAT_00131178[0x23e9]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_2 == 1) {\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;\n  }\n  else {\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;\n  }" { (expression_statement "iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;" (assignment_expression "iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4" identifier = (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888" * (cast_expression "(int *)PTR_ash_ptr_to_globals_var_00131888" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }" else (compound_statement "{\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }" { (if_statement "if (param_2 == 2) goto LAB_0007e030;" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (goto_statement "goto LAB_0007e030;" goto statement_identifier ;)) (expression_statement "iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;" (assignment_expression "iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c" identifier = (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0013188c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0013188c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal)) ;) }))) (while_statement "while( true ) {\n    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;\n    uVar2 = FUN_0007dd7c(iVar3,4);\n    puVar1 = PTR_DAT_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));\n    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar2;\n    FUN_000729b4(auStack_20);\nLAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;\n    uVar2 = FUN_0007dd7c(iVar3,4);\n    puVar1 = PTR_DAT_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));\n    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar2;\n    FUN_000729b4(auStack_20);\nLAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;\n  }" { (expression_statement "FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;" (call_expression "FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))" identifier (argument_list "(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))" ( identifier , (pointer_expression "*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc)" * (cast_expression "(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_memstack_00131884" * (cast_expression "(int *)PTR_ash_ptr_to_globals_memstack_00131884" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ))) ;) (expression_statement "uVar2 = FUN_0007dd7c(iVar3,4);" (assignment_expression "uVar2 = FUN_0007dd7c(iVar3,4)" identifier = (call_expression "FUN_0007dd7c(iVar3,4)" identifier (argument_list "(iVar3,4)" ( identifier , number_literal )))) ;) (expression_statement "puVar1 = PTR_DAT_00131178;" (assignment_expression "puVar1 = PTR_DAT_00131178" identifier = identifier) ;) (expression_statement "(*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));" (call_expression "(*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330))" (parenthesized_expression "(*(code *)PTR_free_00132180)" ( (pointer_expression "*(code *)PTR_free_00132180" * (cast_expression "(code *)PTR_free_00132180" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_00131178 + 0x2330))" ( (pointer_expression "*(undefined4 *)(PTR_DAT_00131178 + 0x2330)" * (cast_expression "(undefined4 *)(PTR_DAT_00131178 + 0x2330)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00131178 + 0x2330)" ( (binary_expression "PTR_DAT_00131178 + 0x2330" identifier + number_literal) )))) ))) ;) (expression_statement "uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);" (assignment_expression "uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2)" identifier = (call_expression "(*(code *)PTR_FUN_001312b8)(uVar2)" (parenthesized_expression "(*(code *)PTR_FUN_001312b8)" ( (pointer_expression "*(code *)PTR_FUN_001312b8" * (cast_expression "(code *)PTR_FUN_001312b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x2330) = uVar2;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2330) = uVar2" (pointer_expression "*(undefined4 *)(puVar1 + 0x2330)" * (cast_expression "(undefined4 *)(puVar1 + 0x2330)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2330)" ( (binary_expression "puVar1 + 0x2330" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_000729b4(auStack_20);" (call_expression "FUN_000729b4(auStack_20)" identifier (argument_list "(auStack_20)" ( identifier ))) ;) (labeled_statement "LAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;" statement_identifier : (if_statement "if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;" if (parenthesized_expression "(local_14 == *(int *)PTR___stack_chk_guard_00132164)" ( (binary_expression "local_14 == *(int *)PTR___stack_chk_guard_00132164" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" * (cast_expression "(int *)PTR___stack_chk_guard_00132164" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (break_statement "break;" break ;))) (expression_statement "(*(code *)PTR___stack_chk_fail_001320e4)();" (call_expression "(*(code *)PTR___stack_chk_fail_001320e4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001320e4)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001320e4" * (cast_expression "(code *)PTR___stack_chk_fail_001320e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;" statement_identifier : (expression_statement "iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;" (assignment_expression "iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4" identifier = (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888" * (cast_expression "(int *)PTR_ash_ptr_to_globals_var_00131888" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal)) ;)) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT)) ;) }))) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (break_statement break ;))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) + LIT)) ;)) })) (return_statement return ;) })))
(function_definition "void FUN_0007df18(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined1 auStack_20 [12];\n  int local_14;\n  \n  local_14 = *(int *)PTR___stack_chk_guard_00132164;\n  if (param_1 == 0) goto LAB_0007e014;\n  PTR_DAT_00131178[0x23e9] = 0;\n  if (param_2 == 1) {\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;\n  }\n  else {\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }\n  while( true ) {\n    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;\n    uVar2 = FUN_0007dd7c(iVar3,4);\n    puVar1 = PTR_DAT_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));\n    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar2;\n    FUN_000729b4(auStack_20);\nLAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0007df18(int param_1,int param_2)" (identifier "FUN_0007df18") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined1 auStack_20 [12];\n  int local_14;\n  \n  local_14 = *(int *)PTR___stack_chk_guard_00132164;\n  if (param_1 == 0) goto LAB_0007e014;\n  PTR_DAT_00131178[0x23e9] = 0;\n  if (param_2 == 1) {\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;\n  }\n  else {\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }\n  while( true ) {\n    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;\n    uVar2 = FUN_0007dd7c(iVar3,4);\n    puVar1 = PTR_DAT_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));\n    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar2;\n    FUN_000729b4(auStack_20);\nLAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined1 auStack_20 [12];" (type_identifier "undefined1") (array_declarator "auStack_20 [12]" (identifier "auStack_20") ([ "[") (number_literal "12") (] "]")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_00132164;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_00132164" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00132164" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00132164")))) (; ";")) (if_statement "if (param_1 == 0) goto LAB_0007e014;" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0007e014;" (goto "goto") (statement_identifier "LAB_0007e014") (; ";"))) (expression_statement "PTR_DAT_00131178[0x23e9] = 0;" (assignment_expression "PTR_DAT_00131178[0x23e9] = 0" (subscript_expression "PTR_DAT_00131178[0x23e9]" (identifier "PTR_DAT_00131178") ([ "[") (number_literal "0x23e9") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 == 1) {\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;\n  }\n  else {\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }" (if "if") (parenthesized_expression "(param_2 == 1)" (( "(") (binary_expression "param_2 == 1" (identifier "param_2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;\n  }" ({ "{") (expression_statement "iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;" (assignment_expression "iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4" (identifier "iVar3") (= "=") (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100)" (* "*") (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100)" (( "(") (binary_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888" (* "*") (cast_expression "(int *)PTR_ash_ptr_to_globals_var_00131888" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ash_ptr_to_globals_var_00131888"))) (+ "+") (number_literal "0x100")) () ")")))) (+ "+") (number_literal "4"))) (; ";")) (} "}")) (else_clause "else {\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }" (else "else") (compound_statement "{\n    if (param_2 == 2) goto LAB_0007e030;\n    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;\n  }" ({ "{") (if_statement "if (param_2 == 2) goto LAB_0007e030;" (if "if") (parenthesized_expression "(param_2 == 2)" (( "(") (binary_expression "param_2 == 2" (identifier "param_2") (== "==") (number_literal "2")) () ")")) (goto_statement "goto LAB_0007e030;" (goto "goto") (statement_identifier "LAB_0007e030") (; ";"))) (expression_statement "iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;" (assignment_expression "iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c" (identifier "iVar3") (= "=") (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0013188c" (* "*") (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0013188c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ash_ptr_to_globals_misc_0013188c"))) (+ "+") (number_literal "0x2c"))) (; ";")) (} "}")))) (while_statement "while( true ) {\n    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;\n    uVar2 = FUN_0007dd7c(iVar3,4);\n    puVar1 = PTR_DAT_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));\n    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar2;\n    FUN_000729b4(auStack_20);\nLAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;\n    uVar2 = FUN_0007dd7c(iVar3,4);\n    puVar1 = PTR_DAT_00131178;\n    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));\n    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);\n    *(undefined4 *)(puVar1 + 0x2330) = uVar2;\n    FUN_000729b4(auStack_20);\nLAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;\n    (*(code *)PTR___stack_chk_fail_001320e4)();\nLAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;\n  }" ({ "{") (expression_statement "FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))\n    ;" (call_expression "FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))" (identifier "FUN_00074c7c") (argument_list "(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))" (( "(") (identifier "auStack_20") (, ",") (pointer_expression "*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc)" (* "*") (cast_expression "(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc)" (( "(") (binary_expression "*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_memstack_00131884" (* "*") (cast_expression "(int *)PTR_ash_ptr_to_globals_memstack_00131884" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ash_ptr_to_globals_memstack_00131884"))) (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar2 = FUN_0007dd7c(iVar3,4);" (assignment_expression "uVar2 = FUN_0007dd7c(iVar3,4)" (identifier "uVar2") (= "=") (call_expression "FUN_0007dd7c(iVar3,4)" (identifier "FUN_0007dd7c") (argument_list "(iVar3,4)" (( "(") (identifier "iVar3") (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_DAT_00131178;" (assignment_expression "puVar1 = PTR_DAT_00131178" (identifier "puVar1") (= "=") (identifier "PTR_DAT_00131178")) (; ";")) (expression_statement "(*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));" (call_expression "(*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330))" (parenthesized_expression "(*(code *)PTR_free_00132180)" (( "(") (pointer_expression "*(code *)PTR_free_00132180" (* "*") (cast_expression "(code *)PTR_free_00132180" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00132180"))) () ")")) (argument_list "(*(undefined4 *)(PTR_DAT_00131178 + 0x2330))" (( "(") (pointer_expression "*(undefined4 *)(PTR_DAT_00131178 + 0x2330)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_00131178 + 0x2330)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00131178 + 0x2330)" (( "(") (binary_expression "PTR_DAT_00131178 + 0x2330" (identifier "PTR_DAT_00131178") (+ "+") (number_literal "0x2330")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);" (assignment_expression "uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_FUN_001312b8)(uVar2)" (parenthesized_expression "(*(code *)PTR_FUN_001312b8)" (( "(") (pointer_expression "*(code *)PTR_FUN_001312b8" (* "*") (cast_expression "(code *)PTR_FUN_001312b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_001312b8"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 0x2330) = uVar2;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2330) = uVar2" (pointer_expression "*(undefined4 *)(puVar1 + 0x2330)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x2330)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x2330)" (( "(") (binary_expression "puVar1 + 0x2330" (identifier "puVar1") (+ "+") (number_literal "0x2330")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "FUN_000729b4(auStack_20);" (call_expression "FUN_000729b4(auStack_20)" (identifier "FUN_000729b4") (argument_list "(auStack_20)" (( "(") (identifier "auStack_20") () ")"))) (; ";")) (labeled_statement "LAB_0007e014:\n    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;" (statement_identifier "LAB_0007e014") (: ":") (if_statement "if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;" (if "if") (parenthesized_expression "(local_14 == *(int *)PTR___stack_chk_guard_00132164)" (( "(") (binary_expression "local_14 == *(int *)PTR___stack_chk_guard_00132164" (identifier "local_14") (== "==") (pointer_expression "*(int *)PTR___stack_chk_guard_00132164" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00132164" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00132164")))) () ")")) (break_statement "break;" (break "break") (; ";")))) (expression_statement "(*(code *)PTR___stack_chk_fail_001320e4)();" (call_expression "(*(code *)PTR___stack_chk_fail_001320e4)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001320e4)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_001320e4" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_001320e4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_001320e4"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_0007e030:\n    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;" (statement_identifier "LAB_0007e030") (: ":") (expression_statement "iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;" (assignment_expression "iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4" (identifier "iVar3") (= "=") (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110)" (* "*") (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110)" (( "(") (binary_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_var_00131888" (* "*") (cast_expression "(int *)PTR_ash_ptr_to_globals_var_00131888" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ash_ptr_to_globals_var_00131888"))) (+ "+") (number_literal "0x110")) () ")")))) (+ "+") (number_literal "4"))) (; ";"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 do_set,int var_2)

{
  type_2 *var_6;
  int var_8;
  type_3 uVar3;
  type_4 in_register_00000010;
  char *pcVar4;
  type_5 smark;
  
  var_8 = *(int *)PTR___stack_chk_guard_00132164;
  if (var_1(in_register_00000010,do_set) == 0) goto LAB_0007e014;
  var_5[0x23e9] = 0;
  if (var_2 == 1) {
    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4);
  }
  else {
    if (var_2 == 2) goto LAB_0007e030;
    pcVar4 = (char *)(*(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c);
  }
  while( true ) {
    var_3(&smark,*(size_t *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc));
    pcVar4 = var_4(pcVar4,4);
    var_6 = var_5;
    (*(type_6 *)PTR_free_00132180)(*(type_3 *)(var_5 + 0x2330));
    uVar3 = (*(type_6 *)PTR_xstrdup_001312b8)(pcVar4);
    *(type_3 *)(var_6 + 0x2330) = uVar3;
    var_7(&smark);
LAB_0007e014:
    if (var_8 == *(int *)PTR___stack_chk_guard_00132164) break;
    (*(type_6 *)PTR___stack_chk_fail_001320e4)();
LAB_0007e030:
    pcVar4 = (char *)(*(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4);
  }
  return;
}


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

void MASKED(int param_1,int param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  undefined1 auStack_20 [12];
  int local_14;
  
  local_14 = *(int *)PTR___stack_chk_guard_00132164;
  if (param_1 == 0) goto LAB_0007e014;
  PTR_DAT_00131178[0x23e9] = 0;
  if (param_2 == 1) {
    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x100) + 4;
  }
  else {
    if (param_2 == 2) goto LAB_0007e030;
    iVar3 = *(int *)PTR_ash_ptr_to_globals_misc_0013188c + 0x2c;
  }
  while( true ) {
    FUN_00074c7c(auStack_20,*(undefined4 *)(*(int *)PTR_ash_ptr_to_globals_memstack_00131884 + 0xc))
    ;
    uVar2 = FUN_0007dd7c(iVar3,4);
    puVar1 = PTR_DAT_00131178;
    (*(code *)PTR_free_00132180)(*(undefined4 *)(PTR_DAT_00131178 + 0x2330));
    uVar2 = (*(code *)PTR_FUN_001312b8)(uVar2);
    *(undefined4 *)(puVar1 + 0x2330) = uVar2;
    FUN_000729b4(auStack_20);
LAB_0007e014:
    if (local_14 == *(int *)PTR___stack_chk_guard_00132164) break;
    (*(code *)PTR___stack_chk_fail_001320e4)();
LAB_0007e030:
    iVar3 = *(int *)(*(int *)PTR_ash_ptr_to_globals_var_00131888 + 0x110) + 4;
  }
  return;
}

