
void free_prompts(prompts_t *p)

{
  prompt_t *ppVar1;
  uint uVar2;
  int in_t9;
  code *pcVar3;
  
  if (p->n_prompts != 0) {
    uVar2 = 0;
    do {
      ppVar1 = p->prompts[uVar2];
      uVar2 = uVar2 + 1;
      if (ppVar1->result != (char *)0x0) {
        pcVar3 = *(code **)(in_t9 + 0x4b91c);
        if (ppVar1->resultsize != 0) {
          smemclr(ppVar1->result,ppVar1->resultsize);
          if (ppVar1->result == (char *)0x0) goto LAB_0001ecd0;
          pcVar3 = *(code **)(in_t9 + 0x4b91c);
        }
        (*pcVar3)();
      }
LAB_0001ecd0:
      if (ppVar1->prompt != (char *)0x0) {
        (**(code **)(in_t9 + 0x4b91c))();
      }
      (**(code **)(in_t9 + 0x4b91c))(ppVar1);
    } while (uVar2 < p->n_prompts);
  }
  if (p->prompts != (prompt_t **)0x0) {
    (**(code **)(in_t9 + 0x4b91c))();
  }
  if (p->name != (char *)0x0) {
    (**(code **)(in_t9 + 0x4b91c))();
  }
  if (p->instruction != (char *)0x0) {
    (**(code **)(in_t9 + 0x4b91c))();
  }
                    /* WARNING: Could not recover jumptable at 0x0001edb0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(in_t9 + 0x4b91c))(p);
  return;
}



void free_prompts(int param_1)

{
  int *piVar1;
  uint uVar2;
  
  if (*(int *)(param_1 + 0x14) != 0) {
    uVar2 = 0;
    do {
      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);
      uVar2 = uVar2 + 1;
      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {
        (*(code *)PTR_free_0006a59c)();
      }
      if (*piVar1 != 0) {
        (*(code *)PTR_free_0006a59c)();
      }
      (*(code *)PTR_free_0006a59c)(piVar1);
    } while (uVar2 < *(uint *)(param_1 + 0x14));
  }
  if (*(int *)(param_1 + 0x18) != 0) {
    (*(code *)PTR_free_0006a59c)();
  }
  if (*(int *)(param_1 + 4) != 0) {
    (*(code *)PTR_free_0006a59c)();
  }
  if (*(int *)(param_1 + 0xc) != 0) {
    (*(code *)PTR_free_0006a59c)();
  }
                    /* WARNING: Could not recover jumptable at 0x0001edb0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_free_0006a59c)(param_1);
  return;
}


lui gp,0x5
addiu gp,gp,0x33b0
addu gp,gp,t9
addiu sp,sp,-0x30
lw v0,0x14(a0)
sw gp,0x10(sp)
sw s2,0x24(sp)
or s2,a0,zero
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s1,0x20(sp)
beq v0,zero,0x0001ed4c
_sw s0,0x1c(sp)
lw s3,-0x7e7c(gp)
or s1,zero,zero
b 0x0001ed04
_addiu s3,s3,-0x174c
jalr t9
_nop
lw gp,0x10(sp)
lw a0,0x0(s0)
beq a0,zero,0x0001ece8
_lw t9,-0x7a94(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7a94(gp)
jalr t9
_or a0,s0,zero
lw v0,0x14(s2)
sltu v0,s1,v0
beq v0,zero,0x0001ed4c
_lw gp,0x10(sp)
lw v1,0x18(s2)
sll v0,s1,0x2
addu v0,v1,v0
lw s0,0x0(v0)
lw a0,0x8(s0)
beq a0,zero,0x0001ecd0
_addiu s1,s1,0x1
lw a1,0xc(s0)
beq a1,zero,0x0001ecc4
_lw t9,-0x7a94(gp)
or t9,s3,zero
bal 0x0001e8b4
_nop
lw a0,0x8(s0)
beq a0,zero,0x0001ecd0
_lw gp,0x10(sp)
b 0x0001ecc4
_lw t9,-0x7a94(gp)
lw a0,0x18(s2)
beq a0,zero,0x0001ed64
_lw t9,-0x7a94(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw a0,0x4(s2)
beq a0,zero,0x0001ed7c
_lw t9,-0x7a94(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw a0,0xc(s2)
beq a0,zero,0x0001ed94
_lw t9,-0x7a94(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw ra,0x2c(sp)
or a0,s2,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x7a94(gp)
jr t9
_addiu sp,sp,0x30
(translation_unit "void free_prompts(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  if (*(int *)(param_1 + 0x18) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001edb0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_free_0006a59c)(param_1);\n  return;\n}\n\n" (function_definition "void free_prompts(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  if (*(int *)(param_1 + 0x18) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001edb0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_free_0006a59c)(param_1);\n  return;\n}" primitive_type (function_declarator "free_prompts(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  if (*(int *)(param_1 + 0x18) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001edb0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_free_0006a59c)(param_1);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" ( (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar2 = 0;\n    do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));" do (compound_statement "{\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    }" { (expression_statement "piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" * (cast_expression "(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + uVar2 * 4)" ( (binary_expression "*(int *)(param_1 + 0x18) + uVar2 * 4" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + (binary_expression "uVar2 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (if_statement "if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }" if (parenthesized_expression "((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0))))" ( (binary_expression "(piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))" (parenthesized_expression "(piVar1[2] != 0)" ( (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))" ( (parenthesized_expression "(piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0))" ( (binary_expression "piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)" (binary_expression "piVar1[3] == 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) == number_literal) || (parenthesized_expression "(FUN_0001e8b4(), piVar1[2] != 0)" ( (comma_expression "FUN_0001e8b4(), piVar1[2] != 0" (call_expression "FUN_0001e8b4()" identifier (argument_list "()" ( ))) , (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) != number_literal)) ))) )) ))) )) (compound_statement "{\n        (*(code *)PTR_free_0006a59c)();\n      }" { (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" ( (pointer_expression "*(code *)PTR_free_0006a59c" * (cast_expression "(code *)PTR_free_0006a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n        (*(code *)PTR_free_0006a59c)();\n      }" { (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" ( (pointer_expression "*(code *)PTR_free_0006a59c" * (cast_expression "(code *)PTR_free_0006a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "(*(code *)PTR_free_0006a59c)(piVar1);" (call_expression "(*(code *)PTR_free_0006a59c)(piVar1)" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" ( (pointer_expression "*(code *)PTR_free_0006a59c" * (cast_expression "(code *)PTR_free_0006a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar1)" ( identifier ))) ;) }) while (parenthesized_expression "(uVar2 < *(uint *)(param_1 + 0x14))" ( (binary_expression "uVar2 < *(uint *)(param_1 + 0x14)" identifier < (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )) ;) })) (if_statement "if (*(int *)(param_1 + 0x18) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x18) != 0)" ( (binary_expression "*(int *)(param_1 + 0x18) != 0" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*(code *)PTR_free_0006a59c)();\n  }" { (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" ( (pointer_expression "*(code *)PTR_free_0006a59c" * (cast_expression "(code *)PTR_free_0006a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*(code *)PTR_free_0006a59c)();\n  }" { (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" ( (pointer_expression "*(code *)PTR_free_0006a59c" * (cast_expression "(code *)PTR_free_0006a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*(code *)PTR_free_0006a59c)();\n  }" { (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" ( (pointer_expression "*(code *)PTR_free_0006a59c" * (cast_expression "(code *)PTR_free_0006a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) comment comment (expression_statement "(*(code *)PTR_free_0006a59c)(param_1);" (call_expression "(*(code *)PTR_free_0006a59c)(param_1)" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" ( (pointer_expression "*(code *)PTR_free_0006a59c" * (cast_expression "(code *)PTR_free_0006a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void free_prompts(prompts_t *p)\n\n{\n  prompt_t *ppVar1;\n  uint uVar2;\n  int in_t9;\n  code *pcVar3;\n  \n  if (p->n_prompts != 0) {\n    uVar2 = 0;\n    do {\n      ppVar1 = p->prompts[uVar2];\n      uVar2 = uVar2 + 1;\n      if (ppVar1->result != (char *)0x0) {\n        pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        if (ppVar1->resultsize != 0) {\n          smemclr(ppVar1->result,ppVar1->resultsize);\n          if (ppVar1->result == (char *)0x0) goto LAB_0001ecd0;\n          pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        }\n        (*pcVar3)();\n      }\nLAB_0001ecd0:\n      if (ppVar1->prompt != (char *)0x0) {\n        (**(code **)(in_t9 + 0x4b91c))();\n      }\n      (**(code **)(in_t9 + 0x4b91c))(ppVar1);\n    } while (uVar2 < p->n_prompts);\n  }\n  if (p->prompts != (prompt_t **)0x0) {\n    (**(code **)(in_t9 + 0x4b91c))();\n  }\n  if (p->name != (char *)0x0) {\n    (**(code **)(in_t9 + 0x4b91c))();\n  }\n  if (p->instruction != (char *)0x0) {\n    (**(code **)(in_t9 + 0x4b91c))();\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001edb0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(in_t9 + 0x4b91c))(p);\n  return;\n}\n\n" (function_definition "void free_prompts(prompts_t *p)\n\n{\n  prompt_t *ppVar1;\n  uint uVar2;\n  int in_t9;\n  code *pcVar3;\n  \n  if (p->n_prompts != 0) {\n    uVar2 = 0;\n    do {\n      ppVar1 = p->prompts[uVar2];\n      uVar2 = uVar2 + 1;\n      if (ppVar1->result != (char *)0x0) {\n        pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        if (ppVar1->resultsize != 0) {\n          smemclr(ppVar1->result,ppVar1->resultsize);\n          if (ppVar1->result == (char *)0x0) goto LAB_0001ecd0;\n          pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        }\n        (*pcVar3)();\n      }\nLAB_0001ecd0:\n      if (ppVar1->prompt != (char *)0x0) {\n        (**(code **)(in_t9 + 0x4b91c))();\n      }\n      (**(code **)(in_t9 + 0x4b91c))(ppVar1);\n    } while (uVar2 < p->n_prompts);\n  }\n  if (p->prompts != (prompt_t **)0x0) {\n    (**(code **)(in_t9 + 0x4b91c))();\n  }\n  if (p->name != (char *)0x0) {\n    (**(code **)(in_t9 + 0x4b91c))();\n  }\n  if (p->instruction != (char *)0x0) {\n    (**(code **)(in_t9 + 0x4b91c))();\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001edb0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(in_t9 + 0x4b91c))(p);\n  return;\n}" primitive_type (function_declarator "free_prompts(prompts_t *p)" identifier (parameter_list "(prompts_t *p)" ( (parameter_declaration "prompts_t *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  prompt_t *ppVar1;\n  uint uVar2;\n  int in_t9;\n  code *pcVar3;\n  \n  if (p->n_prompts != 0) {\n    uVar2 = 0;\n    do {\n      ppVar1 = p->prompts[uVar2];\n      uVar2 = uVar2 + 1;\n      if (ppVar1->result != (char *)0x0) {\n        pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        if (ppVar1->resultsize != 0) {\n          smemclr(ppVar1->result,ppVar1->resultsize);\n          if (ppVar1->result == (char *)0x0) goto LAB_0001ecd0;\n          pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        }\n        (*pcVar3)();\n      }\nLAB_0001ecd0:\n      if (ppVar1->prompt != (char *)0x0) {\n        (**(code **)(in_t9 + 0x4b91c))();\n      }\n      (**(code **)(in_t9 + 0x4b91c))(ppVar1);\n    } while (uVar2 < p->n_prompts);\n  }\n  if (p->prompts != (prompt_t **)0x0) {\n    (**(code **)(in_t9 + 0x4b91c))();\n  }\n  if (p->name != (char *)0x0) {\n    (**(code **)(in_t9 + 0x4b91c))();\n  }\n  if (p->instruction != (char *)0x0) {\n    (**(code **)(in_t9 + 0x4b91c))();\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001edb0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(in_t9 + 0x4b91c))(p);\n  return;\n}" { (declaration "prompt_t *ppVar1;" type_identifier (pointer_declarator "*ppVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (p->n_prompts != 0) {\n    uVar2 = 0;\n    do {\n      ppVar1 = p->prompts[uVar2];\n      uVar2 = uVar2 + 1;\n      if (ppVar1->result != (char *)0x0) {\n        pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        if (ppVar1->resultsize != 0) {\n          smemclr(ppVar1->result,ppVar1->resultsize);\n          if (ppVar1->result == (char *)0x0) goto LAB_0001ecd0;\n          pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        }\n        (*pcVar3)();\n      }\nLAB_0001ecd0:\n      if (ppVar1->prompt != (char *)0x0) {\n        (**(code **)(in_t9 + 0x4b91c))();\n      }\n      (**(code **)(in_t9 + 0x4b91c))(ppVar1);\n    } while (uVar2 < p->n_prompts);\n  }" if (parenthesized_expression "(p->n_prompts != 0)" ( (binary_expression "p->n_prompts != 0" (field_expression "p->n_prompts" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    uVar2 = 0;\n    do {\n      ppVar1 = p->prompts[uVar2];\n      uVar2 = uVar2 + 1;\n      if (ppVar1->result != (char *)0x0) {\n        pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        if (ppVar1->resultsize != 0) {\n          smemclr(ppVar1->result,ppVar1->resultsize);\n          if (ppVar1->result == (char *)0x0) goto LAB_0001ecd0;\n          pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        }\n        (*pcVar3)();\n      }\nLAB_0001ecd0:\n      if (ppVar1->prompt != (char *)0x0) {\n        (**(code **)(in_t9 + 0x4b91c))();\n      }\n      (**(code **)(in_t9 + 0x4b91c))(ppVar1);\n    } while (uVar2 < p->n_prompts);\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      ppVar1 = p->prompts[uVar2];\n      uVar2 = uVar2 + 1;\n      if (ppVar1->result != (char *)0x0) {\n        pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        if (ppVar1->resultsize != 0) {\n          smemclr(ppVar1->result,ppVar1->resultsize);\n          if (ppVar1->result == (char *)0x0) goto LAB_0001ecd0;\n          pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        }\n        (*pcVar3)();\n      }\nLAB_0001ecd0:\n      if (ppVar1->prompt != (char *)0x0) {\n        (**(code **)(in_t9 + 0x4b91c))();\n      }\n      (**(code **)(in_t9 + 0x4b91c))(ppVar1);\n    } while (uVar2 < p->n_prompts);" do (compound_statement "{\n      ppVar1 = p->prompts[uVar2];\n      uVar2 = uVar2 + 1;\n      if (ppVar1->result != (char *)0x0) {\n        pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        if (ppVar1->resultsize != 0) {\n          smemclr(ppVar1->result,ppVar1->resultsize);\n          if (ppVar1->result == (char *)0x0) goto LAB_0001ecd0;\n          pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        }\n        (*pcVar3)();\n      }\nLAB_0001ecd0:\n      if (ppVar1->prompt != (char *)0x0) {\n        (**(code **)(in_t9 + 0x4b91c))();\n      }\n      (**(code **)(in_t9 + 0x4b91c))(ppVar1);\n    }" { (expression_statement "ppVar1 = p->prompts[uVar2];" (assignment_expression "ppVar1 = p->prompts[uVar2]" identifier = (subscript_expression "p->prompts[uVar2]" (field_expression "p->prompts" identifier -> field_identifier) [ identifier ])) ;) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (if_statement "if (ppVar1->result != (char *)0x0) {\n        pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        if (ppVar1->resultsize != 0) {\n          smemclr(ppVar1->result,ppVar1->resultsize);\n          if (ppVar1->result == (char *)0x0) goto LAB_0001ecd0;\n          pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        }\n        (*pcVar3)();\n      }" if (parenthesized_expression "(ppVar1->result != (char *)0x0)" ( (binary_expression "ppVar1->result != (char *)0x0" (field_expression "ppVar1->result" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        if (ppVar1->resultsize != 0) {\n          smemclr(ppVar1->result,ppVar1->resultsize);\n          if (ppVar1->result == (char *)0x0) goto LAB_0001ecd0;\n          pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        }\n        (*pcVar3)();\n      }" { (expression_statement "pcVar3 = *(code **)(in_t9 + 0x4b91c);" (assignment_expression "pcVar3 = *(code **)(in_t9 + 0x4b91c)" identifier = (pointer_expression "*(code **)(in_t9 + 0x4b91c)" * (cast_expression "(code **)(in_t9 + 0x4b91c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x4b91c)" ( (binary_expression "in_t9 + 0x4b91c" identifier + number_literal) ))))) ;) (if_statement "if (ppVar1->resultsize != 0) {\n          smemclr(ppVar1->result,ppVar1->resultsize);\n          if (ppVar1->result == (char *)0x0) goto LAB_0001ecd0;\n          pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        }" if (parenthesized_expression "(ppVar1->resultsize != 0)" ( (binary_expression "ppVar1->resultsize != 0" (field_expression "ppVar1->resultsize" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n          smemclr(ppVar1->result,ppVar1->resultsize);\n          if (ppVar1->result == (char *)0x0) goto LAB_0001ecd0;\n          pcVar3 = *(code **)(in_t9 + 0x4b91c);\n        }" { (expression_statement "smemclr(ppVar1->result,ppVar1->resultsize);" (call_expression "smemclr(ppVar1->result,ppVar1->resultsize)" identifier (argument_list "(ppVar1->result,ppVar1->resultsize)" ( (field_expression "ppVar1->result" identifier -> field_identifier) , (field_expression "ppVar1->resultsize" identifier -> field_identifier) ))) ;) (if_statement "if (ppVar1->result == (char *)0x0) goto LAB_0001ecd0;" if (parenthesized_expression "(ppVar1->result == (char *)0x0)" ( (binary_expression "ppVar1->result == (char *)0x0" (field_expression "ppVar1->result" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001ecd0;" goto statement_identifier ;)) (expression_statement "pcVar3 = *(code **)(in_t9 + 0x4b91c);" (assignment_expression "pcVar3 = *(code **)(in_t9 + 0x4b91c)" identifier = (pointer_expression "*(code **)(in_t9 + 0x4b91c)" * (cast_expression "(code **)(in_t9 + 0x4b91c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x4b91c)" ( (binary_expression "in_t9 + 0x4b91c" identifier + number_literal) ))))) ;) })) (expression_statement "(*pcVar3)();" (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "()" ( ))) ;) })) (labeled_statement "LAB_0001ecd0:\n      if (ppVar1->prompt != (char *)0x0) {\n        (**(code **)(in_t9 + 0x4b91c))();\n      }" statement_identifier : (if_statement "if (ppVar1->prompt != (char *)0x0) {\n        (**(code **)(in_t9 + 0x4b91c))();\n      }" if (parenthesized_expression "(ppVar1->prompt != (char *)0x0)" ( (binary_expression "ppVar1->prompt != (char *)0x0" (field_expression "ppVar1->prompt" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(in_t9 + 0x4b91c))();\n      }" { (expression_statement "(**(code **)(in_t9 + 0x4b91c))();" (call_expression "(**(code **)(in_t9 + 0x4b91c))()" (parenthesized_expression "(**(code **)(in_t9 + 0x4b91c))" ( (pointer_expression "**(code **)(in_t9 + 0x4b91c)" * (pointer_expression "*(code **)(in_t9 + 0x4b91c)" * (cast_expression "(code **)(in_t9 + 0x4b91c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x4b91c)" ( (binary_expression "in_t9 + 0x4b91c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) }))) (expression_statement "(**(code **)(in_t9 + 0x4b91c))(ppVar1);" (call_expression "(**(code **)(in_t9 + 0x4b91c))(ppVar1)" (parenthesized_expression "(**(code **)(in_t9 + 0x4b91c))" ( (pointer_expression "**(code **)(in_t9 + 0x4b91c)" * (pointer_expression "*(code **)(in_t9 + 0x4b91c)" * (cast_expression "(code **)(in_t9 + 0x4b91c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x4b91c)" ( (binary_expression "in_t9 + 0x4b91c" identifier + number_literal) ))))) )) (argument_list "(ppVar1)" ( identifier ))) ;) }) while (parenthesized_expression "(uVar2 < p->n_prompts)" ( (binary_expression "uVar2 < p->n_prompts" identifier < (field_expression "p->n_prompts" identifier -> field_identifier)) )) ;) })) (if_statement "if (p->prompts != (prompt_t **)0x0) {\n    (**(code **)(in_t9 + 0x4b91c))();\n  }" if (parenthesized_expression "(p->prompts != (prompt_t **)0x0)" ( (binary_expression "p->prompts != (prompt_t **)0x0" (field_expression "p->prompts" identifier -> field_identifier) != (cast_expression "(prompt_t **)0x0" ( (type_descriptor "prompt_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    (**(code **)(in_t9 + 0x4b91c))();\n  }" { (expression_statement "(**(code **)(in_t9 + 0x4b91c))();" (call_expression "(**(code **)(in_t9 + 0x4b91c))()" (parenthesized_expression "(**(code **)(in_t9 + 0x4b91c))" ( (pointer_expression "**(code **)(in_t9 + 0x4b91c)" * (pointer_expression "*(code **)(in_t9 + 0x4b91c)" * (cast_expression "(code **)(in_t9 + 0x4b91c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x4b91c)" ( (binary_expression "in_t9 + 0x4b91c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (if_statement "if (p->name != (char *)0x0) {\n    (**(code **)(in_t9 + 0x4b91c))();\n  }" if (parenthesized_expression "(p->name != (char *)0x0)" ( (binary_expression "p->name != (char *)0x0" (field_expression "p->name" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(in_t9 + 0x4b91c))();\n  }" { (expression_statement "(**(code **)(in_t9 + 0x4b91c))();" (call_expression "(**(code **)(in_t9 + 0x4b91c))()" (parenthesized_expression "(**(code **)(in_t9 + 0x4b91c))" ( (pointer_expression "**(code **)(in_t9 + 0x4b91c)" * (pointer_expression "*(code **)(in_t9 + 0x4b91c)" * (cast_expression "(code **)(in_t9 + 0x4b91c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x4b91c)" ( (binary_expression "in_t9 + 0x4b91c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (if_statement "if (p->instruction != (char *)0x0) {\n    (**(code **)(in_t9 + 0x4b91c))();\n  }" if (parenthesized_expression "(p->instruction != (char *)0x0)" ( (binary_expression "p->instruction != (char *)0x0" (field_expression "p->instruction" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(in_t9 + 0x4b91c))();\n  }" { (expression_statement "(**(code **)(in_t9 + 0x4b91c))();" (call_expression "(**(code **)(in_t9 + 0x4b91c))()" (parenthesized_expression "(**(code **)(in_t9 + 0x4b91c))" ( (pointer_expression "**(code **)(in_t9 + 0x4b91c)" * (pointer_expression "*(code **)(in_t9 + 0x4b91c)" * (cast_expression "(code **)(in_t9 + 0x4b91c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x4b91c)" ( (binary_expression "in_t9 + 0x4b91c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) comment comment (expression_statement "(**(code **)(in_t9 + 0x4b91c))(p);" (call_expression "(**(code **)(in_t9 + 0x4b91c))(p)" (parenthesized_expression "(**(code **)(in_t9 + 0x4b91c))" ( (pointer_expression "**(code **)(in_t9 + 0x4b91c)" * (pointer_expression "*(code **)(in_t9 + 0x4b91c)" * (cast_expression "(code **)(in_t9 + 0x4b91c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x4b91c)" ( (binary_expression "in_t9 + 0x4b91c" identifier + number_literal) ))))) )) (argument_list "(p)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void free_prompts(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  if (*(int *)(param_1 + 0x18) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n                    \n                    \n  (*(code *)PTR_free_0006a59c)(param_1);\n  return;\n}\n\n" (function_definition "void free_prompts(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  if (*(int *)(param_1 + 0x18) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n                    \n                    \n  (*(code *)PTR_free_0006a59c)(param_1);\n  return;\n}" primitive_type (function_declarator "free_prompts(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  if (*(int *)(param_1 + 0x18) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n                    \n                    \n  (*(code *)PTR_free_0006a59c)(param_1);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" ( (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar2 = 0;\n    do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));" do (compound_statement "{\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    }" { (expression_statement "piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" * (cast_expression "(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + uVar2 * 4)" ( (binary_expression "*(int *)(param_1 + 0x18) + uVar2 * 4" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + (binary_expression "uVar2 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (if_statement "if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }" if (parenthesized_expression "((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0))))" ( (binary_expression "(piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))" (parenthesized_expression "(piVar1[2] != 0)" ( (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))" ( (parenthesized_expression "(piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0))" ( (binary_expression "piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)" (binary_expression "piVar1[3] == 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) == number_literal) || (parenthesized_expression "(FUN_0001e8b4(), piVar1[2] != 0)" ( (comma_expression "FUN_0001e8b4(), piVar1[2] != 0" (call_expression "FUN_0001e8b4()" identifier (argument_list "()" ( ))) , (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) != number_literal)) ))) )) ))) )) (compound_statement "{\n        (*(code *)PTR_free_0006a59c)();\n      }" { (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" ( (pointer_expression "*(code *)PTR_free_0006a59c" * (cast_expression "(code *)PTR_free_0006a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n        (*(code *)PTR_free_0006a59c)();\n      }" { (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" ( (pointer_expression "*(code *)PTR_free_0006a59c" * (cast_expression "(code *)PTR_free_0006a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "(*(code *)PTR_free_0006a59c)(piVar1);" (call_expression "(*(code *)PTR_free_0006a59c)(piVar1)" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" ( (pointer_expression "*(code *)PTR_free_0006a59c" * (cast_expression "(code *)PTR_free_0006a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar1)" ( identifier ))) ;) }) while (parenthesized_expression "(uVar2 < *(uint *)(param_1 + 0x14))" ( (binary_expression "uVar2 < *(uint *)(param_1 + 0x14)" identifier < (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) )) ;) })) (if_statement "if (*(int *)(param_1 + 0x18) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x18) != 0)" ( (binary_expression "*(int *)(param_1 + 0x18) != 0" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*(code *)PTR_free_0006a59c)();\n  }" { (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" ( (pointer_expression "*(code *)PTR_free_0006a59c" * (cast_expression "(code *)PTR_free_0006a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*(code *)PTR_free_0006a59c)();\n  }" { (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" ( (pointer_expression "*(code *)PTR_free_0006a59c" * (cast_expression "(code *)PTR_free_0006a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*(code *)PTR_free_0006a59c)();\n  }" { (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" ( (pointer_expression "*(code *)PTR_free_0006a59c" * (cast_expression "(code *)PTR_free_0006a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "(*(code *)PTR_free_0006a59c)(param_1);" (call_expression "(*(code *)PTR_free_0006a59c)(param_1)" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" ( (pointer_expression "*(code *)PTR_free_0006a59c" * (cast_expression "(code *)PTR_free_0006a59c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) || (parenthesized_expression ( (comma_expression (call_expression IDENT (argument_list ( ))) , (binary_expression (subscript_expression IDENT [ LIT ]) != LIT)) ))) )) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void free_prompts(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  if (*(int *)(param_1 + 0x18) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n                    \n                    \n  (*(code *)PTR_free_0006a59c)(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "free_prompts(int param_1)" (identifier "free_prompts") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  if (*(int *)(param_1 + 0x18) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }\n                    \n                    \n  (*(code *)PTR_free_0006a59c)(param_1);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (if_statement "if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = 0;\n    do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    } while (uVar2 < *(uint *)(param_1 + 0x14));" (do "do") (compound_statement "{\n      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      uVar2 = uVar2 + 1;\n      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }\n      (*(code *)PTR_free_0006a59c)(piVar1);\n    }" ({ "{") (expression_statement "piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);" (assignment_expression "piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" (* "*") (cast_expression "(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x18) + uVar2 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) + uVar2 * 4" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (binary_expression "uVar2 * 4" (identifier "uVar2") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {\n        (*(code *)PTR_free_0006a59c)();\n      }" (if "if") (parenthesized_expression "((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0))))" (( "(") (binary_expression "(piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))" (parenthesized_expression "(piVar1[2] != 0)" (( "(") (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))" (( "(") (parenthesized_expression "(piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0))" (( "(") (binary_expression "piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)" (binary_expression "piVar1[3] == 0" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "(FUN_0001e8b4(), piVar1[2] != 0)" (( "(") (comma_expression "FUN_0001e8b4(), piVar1[2] != 0" (call_expression "FUN_0001e8b4()" (identifier "FUN_0001e8b4") (argument_list "()" (( "(") () ")"))) (, ",") (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        (*(code *)PTR_free_0006a59c)();\n      }" ({ "{") (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" (( "(") (pointer_expression "*(code *)PTR_free_0006a59c" (* "*") (cast_expression "(code *)PTR_free_0006a59c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0006a59c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (*piVar1 != 0) {\n        (*(code *)PTR_free_0006a59c)();\n      }" (if "if") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)PTR_free_0006a59c)();\n      }" ({ "{") (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" (( "(") (pointer_expression "*(code *)PTR_free_0006a59c" (* "*") (cast_expression "(code *)PTR_free_0006a59c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0006a59c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_0006a59c)(piVar1);" (call_expression "(*(code *)PTR_free_0006a59c)(piVar1)" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" (( "(") (pointer_expression "*(code *)PTR_free_0006a59c" (* "*") (cast_expression "(code *)PTR_free_0006a59c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0006a59c"))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar2 < *(uint *)(param_1 + 0x14))" (( "(") (binary_expression "uVar2 < *(uint *)(param_1 + 0x14)" (identifier "uVar2") (< "<") (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x18) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x18) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) != 0" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_free_0006a59c)();\n  }" ({ "{") (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" (( "(") (pointer_expression "*(code *)PTR_free_0006a59c" (* "*") (cast_expression "(code *)PTR_free_0006a59c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0006a59c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_free_0006a59c)();\n  }" ({ "{") (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" (( "(") (pointer_expression "*(code *)PTR_free_0006a59c" (* "*") (cast_expression "(code *)PTR_free_0006a59c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0006a59c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (*(code *)PTR_free_0006a59c)();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_free_0006a59c)();\n  }" ({ "{") (expression_statement "(*(code *)PTR_free_0006a59c)();" (call_expression "(*(code *)PTR_free_0006a59c)()" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" (( "(") (pointer_expression "*(code *)PTR_free_0006a59c" (* "*") (cast_expression "(code *)PTR_free_0006a59c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0006a59c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_0006a59c)(param_1);" (call_expression "(*(code *)PTR_free_0006a59c)(param_1)" (parenthesized_expression "(*(code *)PTR_free_0006a59c)" (( "(") (pointer_expression "*(code *)PTR_free_0006a59c" (* "*") (cast_expression "(code *)PTR_free_0006a59c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0006a59c"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *p)

{
  type_2 *ppVar1;
  type_3 var_1;
  int var_2;
  type_4 *pcVar3;
  
  if (p->n_prompts != 0) {
    var_1 = 0;
    do {
      ppVar1 = p->prompts[var_1];
      var_1 = var_1 + 1;
      if (ppVar1->result != (char *)0x0) {
        pcVar3 = *(type_4 **)(var_2 + 0x4b91c);
        if (ppVar1->resultsize != 0) {
          var_3(ppVar1->result,ppVar1->resultsize);
          if (ppVar1->result == (char *)0x0) goto LAB_0001ecd0;
          pcVar3 = *(type_4 **)(var_2 + 0x4b91c);
        }
        (*pcVar3)();
      }
LAB_0001ecd0:
      if (ppVar1->prompt != (char *)0x0) {
        (**(type_4 **)(var_2 + 0x4b91c))();
      }
      (**(type_4 **)(var_2 + 0x4b91c))(ppVar1);
    } while (var_1 < p->n_prompts);
  }
  if (p->prompts != (type_2 **)0x0) {
    (**(type_4 **)(var_2 + 0x4b91c))();
  }
  if (p->name != (char *)0x0) {
    (**(type_4 **)(var_2 + 0x4b91c))();
  }
  if (p->instruction != (char *)0x0) {
    (**(type_4 **)(var_2 + 0x4b91c))();
  }
                    /* WARNING: Could not recover jumptable at 0x0001edb0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(type_4 **)(var_2 + 0x4b91c))(p);
  return;
}


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

void MASKED(int param_1)

{
  int *piVar1;
  uint uVar2;
  
  if (*(int *)(param_1 + 0x14) != 0) {
    uVar2 = 0;
    do {
      piVar1 = *(int **)(*(int *)(param_1 + 0x18) + uVar2 * 4);
      uVar2 = uVar2 + 1;
      if ((piVar1[2] != 0) && ((piVar1[3] == 0 || (FUN_0001e8b4(), piVar1[2] != 0)))) {
        (*(code *)PTR_free_0006a59c)();
      }
      if (*piVar1 != 0) {
        (*(code *)PTR_free_0006a59c)();
      }
      (*(code *)PTR_free_0006a59c)(piVar1);
    } while (uVar2 < *(uint *)(param_1 + 0x14));
  }
  if (*(int *)(param_1 + 0x18) != 0) {
    (*(code *)PTR_free_0006a59c)();
  }
  if (*(int *)(param_1 + 4) != 0) {
    (*(code *)PTR_free_0006a59c)();
  }
  if (*(int *)(param_1 + 0xc) != 0) {
    (*(code *)PTR_free_0006a59c)();
  }
                    /* WARNING: Could not recover jumptable at 0x0001edb0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_free_0006a59c)(param_1);
  return;
}

