
void free_prompts(prompts_t *p)

{
  prompt_t *ppVar1;
  
  if (p->n_prompts != 0) {
    ppVar1 = *p->prompts;
    smemclr(ppVar1->result,ppVar1->resultsize);
                    /* WARNING: Subroutine does not return */
    safefree(ppVar1->result);
  }
                    /* WARNING: Subroutine does not return */
  safefree(p->prompts);
}



void free_prompts(int param_1)

{
  undefined4 *puVar1;
  uint uVar2;
  
  if (*(int *)(param_1 + 0x14) != 0) {
    uVar2 = 0;
    do {
      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);
      smemclr(puVar1[2],puVar1[3]);
      safefree(puVar1[2]);
      safefree(*puVar1);
      safefree(puVar1);
      uVar2 = uVar2 + 1;
    } while (uVar2 < *(uint *)(param_1 + 0x14));
  }
  safefree(*(undefined4 *)(param_1 + 0x18));
  safefree(*(undefined4 *)(param_1 + 4));
  safefree(*(undefined4 *)(param_1 + 0xc));
  safefree(param_1);
  return;
}


lui gp,0xf
addiu gp,gp,-0x3418
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
lw v0,0x14(a0)
beq v0,zero,0x0003c784
_or s3,a0,zero
or s1,zero,zero
lw s4,-0x7f58(gp)
lw s2,-0x7fac(gp)
lw v0,0x18(s3)
sll v1,s1,0x2
addu v0,v0,v1
lw s0,0x0(v0)
lw a1,0xc(s0)
lw a0,0x8(s0)
or t9,s4,zero
bal 0x0003c4e8
_nop
lw gp,0x10(sp)
lw a0,0x8(s0)
or t9,s2,zero
bal 0x0003c018
_nop
lw gp,0x10(sp)
lw a0,0x0(s0)
or t9,s2,zero
bal 0x0003c018
_nop
lw gp,0x10(sp)
or a0,s0,zero
or t9,s2,zero
bal 0x0003c018
_nop
lw gp,0x10(sp)
addiu s1,s1,0x1
lw v0,0x14(s3)
sltu v0,s1,v0
bne v0,zero,0x0003c70c
_nop
lw a0,0x18(s3)
lw s0,-0x7fac(gp)
or t9,s0,zero
bal 0x0003c018
_nop
lw gp,0x10(sp)
lw a0,0x4(s3)
or t9,s0,zero
bal 0x0003c018
_nop
lw gp,0x10(sp)
lw a0,0xc(s3)
or t9,s0,zero
bal 0x0003c018
_nop
lw gp,0x10(sp)
or a0,s3,zero
or t9,s0,zero
bal 0x0003c018
_nop
lw gp,0x10(sp)
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "void free_prompts(int param_1)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  safefree(*(undefined4 *)(param_1 + 0x18));\n  safefree(*(undefined4 *)(param_1 + 4));\n  safefree(*(undefined4 *)(param_1 + 0xc));\n  safefree(param_1);\n  return;\n}\n\n" (function_definition "void free_prompts(int param_1)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  safefree(*(undefined4 *)(param_1 + 0x18));\n  safefree(*(undefined4 *)(param_1 + 4));\n  safefree(*(undefined4 *)(param_1 + 0xc));\n  safefree(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  undefined4 *puVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  safefree(*(undefined4 *)(param_1 + 0x18));\n  safefree(*(undefined4 *)(param_1 + 4));\n  safefree(*(undefined4 *)(param_1 + 0xc));\n  safefree(param_1);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\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      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    } while (uVar2 < *(uint *)(param_1 + 0x14));" do (compound_statement "{\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    }" { (expression_statement "puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" identifier = (pointer_expression "*(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" * (cast_expression "(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" ( (type_descriptor "undefined4 **" type_identifier (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 "smemclr(puVar1[2],puVar1[3]);" (call_expression "smemclr(puVar1[2],puVar1[3])" identifier (argument_list "(puVar1[2],puVar1[3])" ( (subscript_expression "puVar1[2]" identifier [ number_literal ]) , (subscript_expression "puVar1[3]" identifier [ number_literal ]) ))) ;) (expression_statement "safefree(puVar1[2]);" (call_expression "safefree(puVar1[2])" identifier (argument_list "(puVar1[2])" ( (subscript_expression "puVar1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "safefree(*puVar1);" (call_expression "safefree(*puVar1)" identifier (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) ))) ;) (expression_statement "safefree(puVar1);" (call_expression "safefree(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) }) 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) ))))) )) ;) })) (expression_statement "safefree(*(undefined4 *)(param_1 + 0x18));" (call_expression "safefree(*(undefined4 *)(param_1 + 0x18))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ))) ;) (expression_statement "safefree(*(undefined4 *)(param_1 + 4));" (call_expression "safefree(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "safefree(*(undefined4 *)(param_1 + 0xc));" (call_expression "safefree(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "safefree(param_1);" (call_expression "safefree(param_1)" 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  \n  if (p->n_prompts != 0) {\n    ppVar1 = *p->prompts;\n    smemclr(ppVar1->result,ppVar1->resultsize);\n                    /* WARNING: Subroutine does not return */\n    safefree(ppVar1->result);\n  }\n                    /* WARNING: Subroutine does not return */\n  safefree(p->prompts);\n}\n\n" (function_definition "void free_prompts(prompts_t *p)\n\n{\n  prompt_t *ppVar1;\n  \n  if (p->n_prompts != 0) {\n    ppVar1 = *p->prompts;\n    smemclr(ppVar1->result,ppVar1->resultsize);\n                    /* WARNING: Subroutine does not return */\n    safefree(ppVar1->result);\n  }\n                    /* WARNING: Subroutine does not return */\n  safefree(p->prompts);\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  \n  if (p->n_prompts != 0) {\n    ppVar1 = *p->prompts;\n    smemclr(ppVar1->result,ppVar1->resultsize);\n                    /* WARNING: Subroutine does not return */\n    safefree(ppVar1->result);\n  }\n                    /* WARNING: Subroutine does not return */\n  safefree(p->prompts);\n}" { (declaration "prompt_t *ppVar1;" type_identifier (pointer_declarator "*ppVar1" * identifier) ;) (if_statement "if (p->n_prompts != 0) {\n    ppVar1 = *p->prompts;\n    smemclr(ppVar1->result,ppVar1->resultsize);\n                    /* WARNING: Subroutine does not return */\n    safefree(ppVar1->result);\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    ppVar1 = *p->prompts;\n    smemclr(ppVar1->result,ppVar1->resultsize);\n                    /* WARNING: Subroutine does not return */\n    safefree(ppVar1->result);\n  }" { (expression_statement "ppVar1 = *p->prompts;" (assignment_expression "ppVar1 = *p->prompts" identifier = (pointer_expression "*p->prompts" * (field_expression "p->prompts" identifier -> field_identifier))) ;) (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) ))) ;) comment (expression_statement "safefree(ppVar1->result);" (call_expression "safefree(ppVar1->result)" identifier (argument_list "(ppVar1->result)" ( (field_expression "ppVar1->result" identifier -> field_identifier) ))) ;) })) comment (expression_statement "safefree(p->prompts);" (call_expression "safefree(p->prompts)" identifier (argument_list "(p->prompts)" ( (field_expression "p->prompts" identifier -> field_identifier) ))) ;) })))
(translation_unit "void free_prompts(int param_1)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  safefree(*(undefined4 *)(param_1 + 0x18));\n  safefree(*(undefined4 *)(param_1 + 4));\n  safefree(*(undefined4 *)(param_1 + 0xc));\n  safefree(param_1);\n  return;\n}\n\n" (function_definition "void free_prompts(int param_1)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  safefree(*(undefined4 *)(param_1 + 0x18));\n  safefree(*(undefined4 *)(param_1 + 4));\n  safefree(*(undefined4 *)(param_1 + 0xc));\n  safefree(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  undefined4 *puVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  safefree(*(undefined4 *)(param_1 + 0x18));\n  safefree(*(undefined4 *)(param_1 + 4));\n  safefree(*(undefined4 *)(param_1 + 0xc));\n  safefree(param_1);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\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      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    } while (uVar2 < *(uint *)(param_1 + 0x14));" do (compound_statement "{\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    }" { (expression_statement "puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" identifier = (pointer_expression "*(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" * (cast_expression "(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" ( (type_descriptor "undefined4 **" type_identifier (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 "smemclr(puVar1[2],puVar1[3]);" (call_expression "smemclr(puVar1[2],puVar1[3])" identifier (argument_list "(puVar1[2],puVar1[3])" ( (subscript_expression "puVar1[2]" identifier [ number_literal ]) , (subscript_expression "puVar1[3]" identifier [ number_literal ]) ))) ;) (expression_statement "safefree(puVar1[2]);" (call_expression "safefree(puVar1[2])" identifier (argument_list "(puVar1[2])" ( (subscript_expression "puVar1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "safefree(*puVar1);" (call_expression "safefree(*puVar1)" identifier (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) ))) ;) (expression_statement "safefree(puVar1);" (call_expression "safefree(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) }) 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) ))))) )) ;) })) (expression_statement "safefree(*(undefined4 *)(param_1 + 0x18));" (call_expression "safefree(*(undefined4 *)(param_1 + 0x18))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ))) ;) (expression_statement "safefree(*(undefined4 *)(param_1 + 4));" (call_expression "safefree(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "safefree(*(undefined4 *)(param_1 + 0xc));" (call_expression "safefree(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "safefree(param_1);" (call_expression "safefree(param_1)" 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 (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void free_prompts(int param_1)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  safefree(*(undefined4 *)(param_1 + 0x18));\n  safefree(*(undefined4 *)(param_1 + 4));\n  safefree(*(undefined4 *)(param_1 + 0xc));\n  safefree(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  undefined4 *puVar1;\n  uint uVar2;\n  \n  if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    } while (uVar2 < *(uint *)(param_1 + 0x14));\n  }\n  safefree(*(undefined4 *)(param_1 + 0x18));\n  safefree(*(undefined4 *)(param_1 + 4));\n  safefree(*(undefined4 *)(param_1 + 0xc));\n  safefree(param_1);\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (if_statement "if (*(int *)(param_1 + 0x14) != 0) {\n    uVar2 = 0;\n    do {\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\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      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\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      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    } while (uVar2 < *(uint *)(param_1 + 0x14));" (do "do") (compound_statement "{\n      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);\n      smemclr(puVar1[2],puVar1[3]);\n      safefree(puVar1[2]);\n      safefree(*puVar1);\n      safefree(puVar1);\n      uVar2 = uVar2 + 1;\n    }" ({ "{") (expression_statement "puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" (* "*") (cast_expression "(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (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 "smemclr(puVar1[2],puVar1[3]);" (call_expression "smemclr(puVar1[2],puVar1[3])" (identifier "smemclr") (argument_list "(puVar1[2],puVar1[3])" (( "(") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (, ",") (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) () ")"))) (; ";")) (expression_statement "safefree(puVar1[2]);" (call_expression "safefree(puVar1[2])" (identifier "safefree") (argument_list "(puVar1[2])" (( "(") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "safefree(*puVar1);" (call_expression "safefree(*puVar1)" (identifier "safefree") (argument_list "(*puVar1)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) () ")"))) (; ";")) (expression_statement "safefree(puVar1);" (call_expression "safefree(puVar1)" (identifier "safefree") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (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")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "safefree(*(undefined4 *)(param_1 + 0x18));" (call_expression "safefree(*(undefined4 *)(param_1 + 0x18))" (identifier "safefree") (argument_list "(*(undefined4 *)(param_1 + 0x18))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) () ")"))) (; ";")) (expression_statement "safefree(*(undefined4 *)(param_1 + 4));" (call_expression "safefree(*(undefined4 *)(param_1 + 4))" (identifier "safefree") (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "safefree(*(undefined4 *)(param_1 + 0xc));" (call_expression "safefree(*(undefined4 *)(param_1 + 0xc))" (identifier "safefree") (argument_list "(*(undefined4 *)(param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "safefree(param_1);" (call_expression "safefree(param_1)" (identifier "safefree") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "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: (type_identifier) 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: (type_identifier) 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 (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) 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)))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

void MASKED(int param_1)

{
  undefined4 *puVar1;
  uint uVar2;
  
  if (*(int *)(param_1 + 0x14) != 0) {
    uVar2 = 0;
    do {
      puVar1 = *(undefined4 **)(*(int *)(param_1 + 0x18) + uVar2 * 4);
      smemclr(puVar1[2],puVar1[3]);
      safefree(puVar1[2]);
      safefree(*puVar1);
      safefree(puVar1);
      uVar2 = uVar2 + 1;
    } while (uVar2 < *(uint *)(param_1 + 0x14));
  }
  safefree(*(undefined4 *)(param_1 + 0x18));
  safefree(*(undefined4 *)(param_1 + 4));
  safefree(*(undefined4 *)(param_1 + 0xc));
  safefree(param_1);
  return;
}

