
void delete_non_B_K_work_stuff(work_stuff *work)

{
  char **ppcVar1;
  int iVar2;
  int iVar3;
  string *psVar4;
  
  forget_types((work_stuff *)&work->typevec,(work_stuff *)&work->ntypes);
  if (work->typevec != (char **)0x0) {
    (*(code *)PTR_free_004c5c18)();
    work->typevec = (char **)0x0;
    work->typevec_size = 0;
  }
  if (work->proctypevec != (int *)0x0) {
    (*(code *)PTR_free_004c5c18)();
    work->proctypevec = (int *)0x0;
    work->proctypevec_size = 0;
  }
  ppcVar1 = work->tmpl_argvec;
  if (ppcVar1 != (char **)0x0) {
    iVar2 = 0;
    if (0 < work->ntmpl_args) {
      do {
        iVar3 = iVar2 + 1;
        (*(code *)PTR_free_004c5c18)(ppcVar1[iVar2]);
        ppcVar1 = work->tmpl_argvec;
        iVar2 = iVar3;
      } while (iVar3 < work->ntmpl_args);
    }
    (*(code *)PTR_free_004c5c18)();
    work->tmpl_argvec = (char **)0x0;
  }
  psVar4 = work->previous_argument;
  if (psVar4 != (string *)0x0) {
    if (psVar4->b != (char *)0x0) {
      (*(code *)PTR_free_004c5c18)();
      psVar4->p = (char *)0x0;
      psVar4->e = (char *)0x0;
      psVar4->b = (char *)0x0;
      psVar4 = work->previous_argument;
    }
    (*(code *)PTR_free_004c5c18)(psVar4);
    work->previous_argument = (string *)0x0;
  }
  return;
}



void FUN_0031214c(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  
  FUN_003120bc(param_1 + 4,param_1 + 0x20);
  if (*(int *)(param_1 + 4) != 0) {
    (*(code *)PTR_free_004c5c18)();
    *(undefined4 *)(param_1 + 4) = 0;
    *(undefined4 *)(param_1 + 0x24) = 0;
  }
  if (*(int *)(param_1 + 0x54) != 0) {
    (*(code *)PTR_free_004c5c18)();
    *(undefined4 *)(param_1 + 0x54) = 0;
    *(undefined4 *)(param_1 + 0x58) = 0;
  }
  iVar2 = *(int *)(param_1 + 0x40);
  if (iVar2 != 0) {
    iVar3 = 0;
    if (0 < *(int *)(param_1 + 0x44)) {
      do {
        iVar1 = iVar3 * 4;
        iVar3 = iVar3 + 1;
        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));
        iVar2 = *(int *)(param_1 + 0x40);
      } while (iVar3 < *(int *)(param_1 + 0x44));
    }
    (*(code *)PTR_free_004c5c18)();
    *(undefined4 *)(param_1 + 0x40) = 0;
  }
  piVar4 = *(int **)(param_1 + 0x4c);
  if (piVar4 != (int *)0x0) {
    if (*piVar4 != 0) {
      (*(code *)PTR_free_004c5c18)();
      piVar4[1] = 0;
      piVar4[2] = 0;
      *piVar4 = 0;
      piVar4 = *(int **)(param_1 + 0x4c);
    }
    (*(code *)PTR_free_004c5c18)(piVar4);
    *(undefined4 *)(param_1 + 0x4c) = 0;
  }
  return;
}


lui gp,0x1b
addiu gp,gp,0x70f4
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x4268(gp)
addiu a1,a0,0x20
sw s1,0x20(sp)
addiu t9,t9,0x20bc
or s1,a0,zero
sw gp,0x10(sp)
addiu a0,a0,0x4
sw ra,0x24(sp)
bal 0x003120bc
_sw s0,0x1c(sp)
lw a0,0x4(s1)
beq a0,zero,0x003121a8
_lw gp,0x10(sp)
lw t9,-0x3628(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw zero,0x4(s1)
sw zero,0x24(s1)
lw a0,0x54(s1)
beq a0,zero,0x003121c8
_lw t9,-0x3628(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw zero,0x54(s1)
sw zero,0x58(s1)
lw a0,0x40(s1)
beq a0,zero,0x00312220
_nop
lw v0,0x44(s1)
blez v0,0x0031220c
_or s0,zero,zero
sll v0,s0,0x2
lw t9,-0x3628(gp)
addiu s0,s0,0x1
addu a0,a0,v0
jalr t9
_lw a0,0x0(a0)
lw v0,0x44(s1)
lw gp,0x10(sp)
slt v0,s0,v0
bne v0,zero,0x003121e0
_lw a0,0x40(s1)
lw t9,-0x3628(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw zero,0x40(s1)
lw s0,0x4c(s1)
beq s0,zero,0x00312268
_lw ra,0x24(sp)
lw a0,0x0(s0)
beq a0,zero,0x00312254
_lw t9,-0x3628(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw zero,0x4(s0)
sw zero,0x8(s0)
sw zero,0x0(s0)
lw s0,0x4c(s1)
lw t9,-0x3628(gp)
jalr t9
_or a0,s0,zero
sw zero,0x4c(s1)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_0031214c(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  \n  FUN_003120bc(param_1 + 4,param_1 + 0x20);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)(param_1 + 0x24) = 0;\n  }\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x54) = 0;\n    *(undefined4 *)(param_1 + 0x58) = 0;\n  }\n  iVar2 = *(int *)(param_1 + 0x40);\n  if (iVar2 != 0) {\n    iVar3 = 0;\n    if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x40) = 0;\n  }\n  piVar4 = *(int **)(param_1 + 0x4c);\n  if (piVar4 != (int *)0x0) {\n    if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }\n    (*(code *)PTR_free_004c5c18)(piVar4);\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0031214c(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  \n  FUN_003120bc(param_1 + 4,param_1 + 0x20);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)(param_1 + 0x24) = 0;\n  }\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x54) = 0;\n    *(undefined4 *)(param_1 + 0x58) = 0;\n  }\n  iVar2 = *(int *)(param_1 + 0x40);\n  if (iVar2 != 0) {\n    iVar3 = 0;\n    if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x40) = 0;\n  }\n  piVar4 = *(int **)(param_1 + 0x4c);\n  if (piVar4 != (int *)0x0) {\n    if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }\n    (*(code *)PTR_free_004c5c18)(piVar4);\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0031214c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  \n  FUN_003120bc(param_1 + 4,param_1 + 0x20);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)(param_1 + 0x24) = 0;\n  }\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x54) = 0;\n    *(undefined4 *)(param_1 + 0x58) = 0;\n  }\n  iVar2 = *(int *)(param_1 + 0x40);\n  if (iVar2 != 0) {\n    iVar3 = 0;\n    if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x40) = 0;\n  }\n  piVar4 = *(int **)(param_1 + 0x4c);\n  if (piVar4 != (int *)0x0) {\n    if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }\n    (*(code *)PTR_free_004c5c18)(piVar4);\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "FUN_003120bc(param_1 + 4,param_1 + 0x20);" (call_expression "FUN_003120bc(param_1 + 4,param_1 + 0x20)" identifier (argument_list "(param_1 + 4,param_1 + 0x20)" ( (binary_expression "param_1 + 4" identifier + number_literal) , (binary_expression "param_1 + 0x20" identifier + number_literal) ))) ;) (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)(param_1 + 0x24) = 0;\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_004c5c18)();\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)(param_1 + 0x24) = 0;\n  }" { (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (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) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(int *)(param_1 + 0x54) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x54) = 0;\n    *(undefined4 *)(param_1 + 0x58) = 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x54) != 0)" ( (binary_expression "*(int *)(param_1 + 0x54) != 0" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x54) = 0;\n    *(undefined4 *)(param_1 + 0x58) = 0;\n  }" { (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 0x40);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x40)" identifier = (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    iVar3 = 0;\n    if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x40) = 0;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x40) = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }" if (parenthesized_expression "(0 < *(int *)(param_1 + 0x44))" ( (binary_expression "0 < *(int *)(param_1 + 0x44)" number_literal < (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) ))))) )) (compound_statement "{\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }" { (do_statement "do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));" do (compound_statement "{\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      }" { (expression_statement "iVar1 = iVar3 * 4;" (assignment_expression "iVar1 = iVar3 * 4" identifier = (binary_expression "iVar3 * 4" identifier * number_literal)) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));" (call_expression "(*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1))" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar2 + iVar1))" ( (pointer_expression "*(undefined4 *)(iVar2 + iVar1)" * (cast_expression "(undefined4 *)(iVar2 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar1)" ( (binary_expression "iVar2 + iVar1" identifier + identifier) )))) ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x40);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x40)" identifier = (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar3 < *(int *)(param_1 + 0x44))" ( (binary_expression "iVar3 < *(int *)(param_1 + 0x44)" identifier < (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) ))))) )) ;) })) (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "piVar4 = *(int **)(param_1 + 0x4c);" (assignment_expression "piVar4 = *(int **)(param_1 + 0x4c)" identifier = (pointer_expression "*(int **)(param_1 + 0x4c)" * (cast_expression "(int **)(param_1 + 0x4c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (if_statement "if (piVar4 != (int *)0x0) {\n    if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }\n    (*(code *)PTR_free_004c5c18)(piVar4);\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n  }" if (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }\n    (*(code *)PTR_free_004c5c18)(piVar4);\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n  }" { (if_statement "if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }" if (parenthesized_expression "(*piVar4 != 0)" ( (binary_expression "*piVar4 != 0" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }" { (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar4[1] = 0;" (assignment_expression "piVar4[1] = 0" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4[2] = 0;" (assignment_expression "piVar4[2] = 0" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" * identifier) = number_literal) ;) (expression_statement "piVar4 = *(int **)(param_1 + 0x4c);" (assignment_expression "piVar4 = *(int **)(param_1 + 0x4c)" identifier = (pointer_expression "*(int **)(param_1 + 0x4c)" * (cast_expression "(int **)(param_1 + 0x4c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) })) (expression_statement "(*(code *)PTR_free_004c5c18)(piVar4);" (call_expression "(*(code *)PTR_free_004c5c18)(piVar4)" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar4)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void delete_non_B_K_work_stuff(work_stuff *work)\n\n{\n  char **ppcVar1;\n  int iVar2;\n  int iVar3;\n  string *psVar4;\n  \n  forget_types((work_stuff *)&work->typevec,(work_stuff *)&work->ntypes);\n  if (work->typevec != (char **)0x0) {\n    (*(code *)PTR_free_004c5c18)();\n    work->typevec = (char **)0x0;\n    work->typevec_size = 0;\n  }\n  if (work->proctypevec != (int *)0x0) {\n    (*(code *)PTR_free_004c5c18)();\n    work->proctypevec = (int *)0x0;\n    work->proctypevec_size = 0;\n  }\n  ppcVar1 = work->tmpl_argvec;\n  if (ppcVar1 != (char **)0x0) {\n    iVar2 = 0;\n    if (0 < work->ntmpl_args) {\n      do {\n        iVar3 = iVar2 + 1;\n        (*(code *)PTR_free_004c5c18)(ppcVar1[iVar2]);\n        ppcVar1 = work->tmpl_argvec;\n        iVar2 = iVar3;\n      } while (iVar3 < work->ntmpl_args);\n    }\n    (*(code *)PTR_free_004c5c18)();\n    work->tmpl_argvec = (char **)0x0;\n  }\n  psVar4 = work->previous_argument;\n  if (psVar4 != (string *)0x0) {\n    if (psVar4->b != (char *)0x0) {\n      (*(code *)PTR_free_004c5c18)();\n      psVar4->p = (char *)0x0;\n      psVar4->e = (char *)0x0;\n      psVar4->b = (char *)0x0;\n      psVar4 = work->previous_argument;\n    }\n    (*(code *)PTR_free_004c5c18)(psVar4);\n    work->previous_argument = (string *)0x0;\n  }\n  return;\n}\n\n" (function_definition "void delete_non_B_K_work_stuff(work_stuff *work)\n\n{\n  char **ppcVar1;\n  int iVar2;\n  int iVar3;\n  string *psVar4;\n  \n  forget_types((work_stuff *)&work->typevec,(work_stuff *)&work->ntypes);\n  if (work->typevec != (char **)0x0) {\n    (*(code *)PTR_free_004c5c18)();\n    work->typevec = (char **)0x0;\n    work->typevec_size = 0;\n  }\n  if (work->proctypevec != (int *)0x0) {\n    (*(code *)PTR_free_004c5c18)();\n    work->proctypevec = (int *)0x0;\n    work->proctypevec_size = 0;\n  }\n  ppcVar1 = work->tmpl_argvec;\n  if (ppcVar1 != (char **)0x0) {\n    iVar2 = 0;\n    if (0 < work->ntmpl_args) {\n      do {\n        iVar3 = iVar2 + 1;\n        (*(code *)PTR_free_004c5c18)(ppcVar1[iVar2]);\n        ppcVar1 = work->tmpl_argvec;\n        iVar2 = iVar3;\n      } while (iVar3 < work->ntmpl_args);\n    }\n    (*(code *)PTR_free_004c5c18)();\n    work->tmpl_argvec = (char **)0x0;\n  }\n  psVar4 = work->previous_argument;\n  if (psVar4 != (string *)0x0) {\n    if (psVar4->b != (char *)0x0) {\n      (*(code *)PTR_free_004c5c18)();\n      psVar4->p = (char *)0x0;\n      psVar4->e = (char *)0x0;\n      psVar4->b = (char *)0x0;\n      psVar4 = work->previous_argument;\n    }\n    (*(code *)PTR_free_004c5c18)(psVar4);\n    work->previous_argument = (string *)0x0;\n  }\n  return;\n}" primitive_type (function_declarator "delete_non_B_K_work_stuff(work_stuff *work)" identifier (parameter_list "(work_stuff *work)" ( (parameter_declaration "work_stuff *work" type_identifier (pointer_declarator "*work" * identifier)) ))) (compound_statement "{\n  char **ppcVar1;\n  int iVar2;\n  int iVar3;\n  string *psVar4;\n  \n  forget_types((work_stuff *)&work->typevec,(work_stuff *)&work->ntypes);\n  if (work->typevec != (char **)0x0) {\n    (*(code *)PTR_free_004c5c18)();\n    work->typevec = (char **)0x0;\n    work->typevec_size = 0;\n  }\n  if (work->proctypevec != (int *)0x0) {\n    (*(code *)PTR_free_004c5c18)();\n    work->proctypevec = (int *)0x0;\n    work->proctypevec_size = 0;\n  }\n  ppcVar1 = work->tmpl_argvec;\n  if (ppcVar1 != (char **)0x0) {\n    iVar2 = 0;\n    if (0 < work->ntmpl_args) {\n      do {\n        iVar3 = iVar2 + 1;\n        (*(code *)PTR_free_004c5c18)(ppcVar1[iVar2]);\n        ppcVar1 = work->tmpl_argvec;\n        iVar2 = iVar3;\n      } while (iVar3 < work->ntmpl_args);\n    }\n    (*(code *)PTR_free_004c5c18)();\n    work->tmpl_argvec = (char **)0x0;\n  }\n  psVar4 = work->previous_argument;\n  if (psVar4 != (string *)0x0) {\n    if (psVar4->b != (char *)0x0) {\n      (*(code *)PTR_free_004c5c18)();\n      psVar4->p = (char *)0x0;\n      psVar4->e = (char *)0x0;\n      psVar4->b = (char *)0x0;\n      psVar4 = work->previous_argument;\n    }\n    (*(code *)PTR_free_004c5c18)(psVar4);\n    work->previous_argument = (string *)0x0;\n  }\n  return;\n}" { (declaration "char **ppcVar1;" primitive_type (pointer_declarator "**ppcVar1" * (pointer_declarator "*ppcVar1" * identifier)) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "string *psVar4;" type_identifier (pointer_declarator "*psVar4" * identifier) ;) (expression_statement "forget_types((work_stuff *)&work->typevec,(work_stuff *)&work->ntypes);" (call_expression "forget_types((work_stuff *)&work->typevec,(work_stuff *)&work->ntypes)" identifier (argument_list "((work_stuff *)&work->typevec,(work_stuff *)&work->ntypes)" ( (cast_expression "(work_stuff *)&work->typevec" ( (type_descriptor "work_stuff *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&work->typevec" & (field_expression "work->typevec" identifier -> field_identifier))) , (cast_expression "(work_stuff *)&work->ntypes" ( (type_descriptor "work_stuff *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&work->ntypes" & (field_expression "work->ntypes" identifier -> field_identifier))) ))) ;) (if_statement "if (work->typevec != (char **)0x0) {\n    (*(code *)PTR_free_004c5c18)();\n    work->typevec = (char **)0x0;\n    work->typevec_size = 0;\n  }" if (parenthesized_expression "(work->typevec != (char **)0x0)" ( (binary_expression "work->typevec != (char **)0x0" (field_expression "work->typevec" identifier -> field_identifier) != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_free_004c5c18)();\n    work->typevec = (char **)0x0;\n    work->typevec_size = 0;\n  }" { (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "work->typevec = (char **)0x0;" (assignment_expression "work->typevec = (char **)0x0" (field_expression "work->typevec" identifier -> field_identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "work->typevec_size = 0;" (assignment_expression "work->typevec_size = 0" (field_expression "work->typevec_size" identifier -> field_identifier) = number_literal) ;) })) (if_statement "if (work->proctypevec != (int *)0x0) {\n    (*(code *)PTR_free_004c5c18)();\n    work->proctypevec = (int *)0x0;\n    work->proctypevec_size = 0;\n  }" if (parenthesized_expression "(work->proctypevec != (int *)0x0)" ( (binary_expression "work->proctypevec != (int *)0x0" (field_expression "work->proctypevec" identifier -> field_identifier) != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_free_004c5c18)();\n    work->proctypevec = (int *)0x0;\n    work->proctypevec_size = 0;\n  }" { (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "work->proctypevec = (int *)0x0;" (assignment_expression "work->proctypevec = (int *)0x0" (field_expression "work->proctypevec" identifier -> field_identifier) = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "work->proctypevec_size = 0;" (assignment_expression "work->proctypevec_size = 0" (field_expression "work->proctypevec_size" identifier -> field_identifier) = number_literal) ;) })) (expression_statement "ppcVar1 = work->tmpl_argvec;" (assignment_expression "ppcVar1 = work->tmpl_argvec" identifier = (field_expression "work->tmpl_argvec" identifier -> field_identifier)) ;) (if_statement "if (ppcVar1 != (char **)0x0) {\n    iVar2 = 0;\n    if (0 < work->ntmpl_args) {\n      do {\n        iVar3 = iVar2 + 1;\n        (*(code *)PTR_free_004c5c18)(ppcVar1[iVar2]);\n        ppcVar1 = work->tmpl_argvec;\n        iVar2 = iVar3;\n      } while (iVar3 < work->ntmpl_args);\n    }\n    (*(code *)PTR_free_004c5c18)();\n    work->tmpl_argvec = (char **)0x0;\n  }" if (parenthesized_expression "(ppcVar1 != (char **)0x0)" ( (binary_expression "ppcVar1 != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    iVar2 = 0;\n    if (0 < work->ntmpl_args) {\n      do {\n        iVar3 = iVar2 + 1;\n        (*(code *)PTR_free_004c5c18)(ppcVar1[iVar2]);\n        ppcVar1 = work->tmpl_argvec;\n        iVar2 = iVar3;\n      } while (iVar3 < work->ntmpl_args);\n    }\n    (*(code *)PTR_free_004c5c18)();\n    work->tmpl_argvec = (char **)0x0;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (0 < work->ntmpl_args) {\n      do {\n        iVar3 = iVar2 + 1;\n        (*(code *)PTR_free_004c5c18)(ppcVar1[iVar2]);\n        ppcVar1 = work->tmpl_argvec;\n        iVar2 = iVar3;\n      } while (iVar3 < work->ntmpl_args);\n    }" if (parenthesized_expression "(0 < work->ntmpl_args)" ( (binary_expression "0 < work->ntmpl_args" number_literal < (field_expression "work->ntmpl_args" identifier -> field_identifier)) )) (compound_statement "{\n      do {\n        iVar3 = iVar2 + 1;\n        (*(code *)PTR_free_004c5c18)(ppcVar1[iVar2]);\n        ppcVar1 = work->tmpl_argvec;\n        iVar2 = iVar3;\n      } while (iVar3 < work->ntmpl_args);\n    }" { (do_statement "do {\n        iVar3 = iVar2 + 1;\n        (*(code *)PTR_free_004c5c18)(ppcVar1[iVar2]);\n        ppcVar1 = work->tmpl_argvec;\n        iVar2 = iVar3;\n      } while (iVar3 < work->ntmpl_args);" do (compound_statement "{\n        iVar3 = iVar2 + 1;\n        (*(code *)PTR_free_004c5c18)(ppcVar1[iVar2]);\n        ppcVar1 = work->tmpl_argvec;\n        iVar2 = iVar3;\n      }" { (expression_statement "iVar3 = iVar2 + 1;" (assignment_expression "iVar3 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_free_004c5c18)(ppcVar1[iVar2]);" (call_expression "(*(code *)PTR_free_004c5c18)(ppcVar1[iVar2])" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ppcVar1[iVar2])" ( (subscript_expression "ppcVar1[iVar2]" identifier [ identifier ]) ))) ;) (expression_statement "ppcVar1 = work->tmpl_argvec;" (assignment_expression "ppcVar1 = work->tmpl_argvec" identifier = (field_expression "work->tmpl_argvec" identifier -> field_identifier)) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(iVar3 < work->ntmpl_args)" ( (binary_expression "iVar3 < work->ntmpl_args" identifier < (field_expression "work->ntmpl_args" identifier -> field_identifier)) )) ;) })) (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "work->tmpl_argvec = (char **)0x0;" (assignment_expression "work->tmpl_argvec = (char **)0x0" (field_expression "work->tmpl_argvec" identifier -> field_identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) })) (expression_statement "psVar4 = work->previous_argument;" (assignment_expression "psVar4 = work->previous_argument" identifier = (field_expression "work->previous_argument" identifier -> field_identifier)) ;) (if_statement "if (psVar4 != (string *)0x0) {\n    if (psVar4->b != (char *)0x0) {\n      (*(code *)PTR_free_004c5c18)();\n      psVar4->p = (char *)0x0;\n      psVar4->e = (char *)0x0;\n      psVar4->b = (char *)0x0;\n      psVar4 = work->previous_argument;\n    }\n    (*(code *)PTR_free_004c5c18)(psVar4);\n    work->previous_argument = (string *)0x0;\n  }" if (parenthesized_expression "(psVar4 != (string *)0x0)" ( (binary_expression "psVar4 != (string *)0x0" identifier != (cast_expression "(string *)0x0" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (psVar4->b != (char *)0x0) {\n      (*(code *)PTR_free_004c5c18)();\n      psVar4->p = (char *)0x0;\n      psVar4->e = (char *)0x0;\n      psVar4->b = (char *)0x0;\n      psVar4 = work->previous_argument;\n    }\n    (*(code *)PTR_free_004c5c18)(psVar4);\n    work->previous_argument = (string *)0x0;\n  }" { (if_statement "if (psVar4->b != (char *)0x0) {\n      (*(code *)PTR_free_004c5c18)();\n      psVar4->p = (char *)0x0;\n      psVar4->e = (char *)0x0;\n      psVar4->b = (char *)0x0;\n      psVar4 = work->previous_argument;\n    }" if (parenthesized_expression "(psVar4->b != (char *)0x0)" ( (binary_expression "psVar4->b != (char *)0x0" (field_expression "psVar4->b" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_free_004c5c18)();\n      psVar4->p = (char *)0x0;\n      psVar4->e = (char *)0x0;\n      psVar4->b = (char *)0x0;\n      psVar4 = work->previous_argument;\n    }" { (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "psVar4->p = (char *)0x0;" (assignment_expression "psVar4->p = (char *)0x0" (field_expression "psVar4->p" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar4->e = (char *)0x0;" (assignment_expression "psVar4->e = (char *)0x0" (field_expression "psVar4->e" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar4->b = (char *)0x0;" (assignment_expression "psVar4->b = (char *)0x0" (field_expression "psVar4->b" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar4 = work->previous_argument;" (assignment_expression "psVar4 = work->previous_argument" identifier = (field_expression "work->previous_argument" identifier -> field_identifier)) ;) })) (expression_statement "(*(code *)PTR_free_004c5c18)(psVar4);" (call_expression "(*(code *)PTR_free_004c5c18)(psVar4)" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(psVar4)" ( identifier ))) ;) (expression_statement "work->previous_argument = (string *)0x0;" (assignment_expression "work->previous_argument = (string *)0x0" (field_expression "work->previous_argument" identifier -> field_identifier) = (cast_expression "(string *)0x0" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0031214c(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  \n  FUN_003120bc(param_1 + 4,param_1 + 0x20);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)(param_1 + 0x24) = 0;\n  }\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x54) = 0;\n    *(undefined4 *)(param_1 + 0x58) = 0;\n  }\n  iVar2 = *(int *)(param_1 + 0x40);\n  if (iVar2 != 0) {\n    iVar3 = 0;\n    if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x40) = 0;\n  }\n  piVar4 = *(int **)(param_1 + 0x4c);\n  if (piVar4 != (int *)0x0) {\n    if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }\n    (*(code *)PTR_free_004c5c18)(piVar4);\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0031214c(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  \n  FUN_003120bc(param_1 + 4,param_1 + 0x20);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)(param_1 + 0x24) = 0;\n  }\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x54) = 0;\n    *(undefined4 *)(param_1 + 0x58) = 0;\n  }\n  iVar2 = *(int *)(param_1 + 0x40);\n  if (iVar2 != 0) {\n    iVar3 = 0;\n    if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x40) = 0;\n  }\n  piVar4 = *(int **)(param_1 + 0x4c);\n  if (piVar4 != (int *)0x0) {\n    if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }\n    (*(code *)PTR_free_004c5c18)(piVar4);\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0031214c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  \n  FUN_003120bc(param_1 + 4,param_1 + 0x20);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)(param_1 + 0x24) = 0;\n  }\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x54) = 0;\n    *(undefined4 *)(param_1 + 0x58) = 0;\n  }\n  iVar2 = *(int *)(param_1 + 0x40);\n  if (iVar2 != 0) {\n    iVar3 = 0;\n    if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x40) = 0;\n  }\n  piVar4 = *(int **)(param_1 + 0x4c);\n  if (piVar4 != (int *)0x0) {\n    if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }\n    (*(code *)PTR_free_004c5c18)(piVar4);\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "FUN_003120bc(param_1 + 4,param_1 + 0x20);" (call_expression "FUN_003120bc(param_1 + 4,param_1 + 0x20)" identifier (argument_list "(param_1 + 4,param_1 + 0x20)" ( (binary_expression "param_1 + 4" identifier + number_literal) , (binary_expression "param_1 + 0x20" identifier + number_literal) ))) ;) (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)(param_1 + 0x24) = 0;\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_004c5c18)();\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)(param_1 + 0x24) = 0;\n  }" { (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (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) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(int *)(param_1 + 0x54) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x54) = 0;\n    *(undefined4 *)(param_1 + 0x58) = 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x54) != 0)" ( (binary_expression "*(int *)(param_1 + 0x54) != 0" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x54) = 0;\n    *(undefined4 *)(param_1 + 0x58) = 0;\n  }" { (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 0x40);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x40)" identifier = (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    iVar3 = 0;\n    if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x40) = 0;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x40) = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }" if (parenthesized_expression "(0 < *(int *)(param_1 + 0x44))" ( (binary_expression "0 < *(int *)(param_1 + 0x44)" number_literal < (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) ))))) )) (compound_statement "{\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }" { (do_statement "do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));" do (compound_statement "{\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      }" { (expression_statement "iVar1 = iVar3 * 4;" (assignment_expression "iVar1 = iVar3 * 4" identifier = (binary_expression "iVar3 * 4" identifier * number_literal)) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));" (call_expression "(*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1))" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar2 + iVar1))" ( (pointer_expression "*(undefined4 *)(iVar2 + iVar1)" * (cast_expression "(undefined4 *)(iVar2 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar1)" ( (binary_expression "iVar2 + iVar1" identifier + identifier) )))) ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x40);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x40)" identifier = (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar3 < *(int *)(param_1 + 0x44))" ( (binary_expression "iVar3 < *(int *)(param_1 + 0x44)" identifier < (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) ))))) )) ;) })) (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "piVar4 = *(int **)(param_1 + 0x4c);" (assignment_expression "piVar4 = *(int **)(param_1 + 0x4c)" identifier = (pointer_expression "*(int **)(param_1 + 0x4c)" * (cast_expression "(int **)(param_1 + 0x4c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (if_statement "if (piVar4 != (int *)0x0) {\n    if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }\n    (*(code *)PTR_free_004c5c18)(piVar4);\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n  }" if (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }\n    (*(code *)PTR_free_004c5c18)(piVar4);\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n  }" { (if_statement "if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }" if (parenthesized_expression "(*piVar4 != 0)" ( (binary_expression "*piVar4 != 0" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }" { (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar4[1] = 0;" (assignment_expression "piVar4[1] = 0" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4[2] = 0;" (assignment_expression "piVar4[2] = 0" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" * identifier) = number_literal) ;) (expression_statement "piVar4 = *(int **)(param_1 + 0x4c);" (assignment_expression "piVar4 = *(int **)(param_1 + 0x4c)" identifier = (pointer_expression "*(int **)(param_1 + 0x4c)" * (cast_expression "(int **)(param_1 + 0x4c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) })) (expression_statement "(*(code *)PTR_free_004c5c18)(piVar4);" (call_expression "(*(code *)PTR_free_004c5c18)(piVar4)" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" ( (pointer_expression "*(code *)PTR_free_004c5c18" * (cast_expression "(code *)PTR_free_004c5c18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar4)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (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 ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (assignment_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 IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0031214c(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  \n  FUN_003120bc(param_1 + 4,param_1 + 0x20);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)(param_1 + 0x24) = 0;\n  }\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x54) = 0;\n    *(undefined4 *)(param_1 + 0x58) = 0;\n  }\n  iVar2 = *(int *)(param_1 + 0x40);\n  if (iVar2 != 0) {\n    iVar3 = 0;\n    if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x40) = 0;\n  }\n  piVar4 = *(int **)(param_1 + 0x4c);\n  if (piVar4 != (int *)0x0) {\n    if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }\n    (*(code *)PTR_free_004c5c18)(piVar4);\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0031214c(int param_1)" (identifier "FUN_0031214c") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  \n  FUN_003120bc(param_1 + 4,param_1 + 0x20);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)(param_1 + 0x24) = 0;\n  }\n  if (*(int *)(param_1 + 0x54) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x54) = 0;\n    *(undefined4 *)(param_1 + 0x58) = 0;\n  }\n  iVar2 = *(int *)(param_1 + 0x40);\n  if (iVar2 != 0) {\n    iVar3 = 0;\n    if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x40) = 0;\n  }\n  piVar4 = *(int **)(param_1 + 0x4c);\n  if (piVar4 != (int *)0x0) {\n    if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }\n    (*(code *)PTR_free_004c5c18)(piVar4);\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (expression_statement "FUN_003120bc(param_1 + 4,param_1 + 0x20);" (call_expression "FUN_003120bc(param_1 + 4,param_1 + 0x20)" (identifier "FUN_003120bc") (argument_list "(param_1 + 4,param_1 + 0x20)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) (, ",") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)(param_1 + 0x24) = 0;\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_004c5c18)();\n    *(undefined4 *)(param_1 + 4) = 0;\n    *(undefined4 *)(param_1 + 0x24) = 0;\n  }" ({ "{") (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" (( "(") (pointer_expression "*(code *)PTR_free_004c5c18" (* "*") (cast_expression "(code *)PTR_free_004c5c18" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_004c5c18"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (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")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x54) != 0) {\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x54) = 0;\n    *(undefined4 *)(param_1 + 0x58) = 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x54) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x54) != 0" (pointer_expression "*(int *)(param_1 + 0x54)" (* "*") (cast_expression "(int *)(param_1 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x54) = 0;\n    *(undefined4 *)(param_1 + 0x58) = 0;\n  }" ({ "{") (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" (( "(") (pointer_expression "*(code *)PTR_free_004c5c18" (* "*") (cast_expression "(code *)PTR_free_004c5c18" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_004c5c18"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x54) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(param_1 + 0x40);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x40)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) {\n    iVar3 = 0;\n    if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x40) = 0;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = 0;\n    if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }\n    (*(code *)PTR_free_004c5c18)();\n    *(undefined4 *)(param_1 + 0x40) = 0;\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < *(int *)(param_1 + 0x44)) {\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }" (if "if") (parenthesized_expression "(0 < *(int *)(param_1 + 0x44))" (( "(") (binary_expression "0 < *(int *)(param_1 + 0x44)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")"))))) () ")")) (compound_statement "{\n      do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));\n    }" ({ "{") (do_statement "do {\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      } while (iVar3 < *(int *)(param_1 + 0x44));" (do "do") (compound_statement "{\n        iVar1 = iVar3 * 4;\n        iVar3 = iVar3 + 1;\n        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));\n        iVar2 = *(int *)(param_1 + 0x40);\n      }" ({ "{") (expression_statement "iVar1 = iVar3 * 4;" (assignment_expression "iVar1 = iVar3 * 4" (identifier "iVar1") (= "=") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));" (call_expression "(*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1))" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" (( "(") (pointer_expression "*(code *)PTR_free_004c5c18" (* "*") (cast_expression "(code *)PTR_free_004c5c18" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_004c5c18"))) () ")")) (argument_list "(*(undefined4 *)(iVar2 + iVar1))" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + iVar1)" (* "*") (cast_expression "(undefined4 *)(iVar2 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar1)" (( "(") (binary_expression "iVar2 + iVar1" (identifier "iVar2") (+ "+") (identifier "iVar1")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x40);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x40)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 < *(int *)(param_1 + 0x44))" (( "(") (binary_expression "iVar3 < *(int *)(param_1 + 0x44)" (identifier "iVar3") (< "<") (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" (( "(") (pointer_expression "*(code *)PTR_free_004c5c18" (* "*") (cast_expression "(code *)PTR_free_004c5c18" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_004c5c18"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x40)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "piVar4 = *(int **)(param_1 + 0x4c);" (assignment_expression "piVar4 = *(int **)(param_1 + 0x4c)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(param_1 + 0x4c)" (* "*") (cast_expression "(int **)(param_1 + 0x4c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (if_statement "if (piVar4 != (int *)0x0) {\n    if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }\n    (*(code *)PTR_free_004c5c18)(piVar4);\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n  }" (if "if") (parenthesized_expression "(piVar4 != (int *)0x0)" (( "(") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }\n    (*(code *)PTR_free_004c5c18)(piVar4);\n    *(undefined4 *)(param_1 + 0x4c) = 0;\n  }" ({ "{") (if_statement "if (*piVar4 != 0) {\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }" (if "if") (parenthesized_expression "(*piVar4 != 0)" (( "(") (binary_expression "*piVar4 != 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_free_004c5c18)();\n      piVar4[1] = 0;\n      piVar4[2] = 0;\n      *piVar4 = 0;\n      piVar4 = *(int **)(param_1 + 0x4c);\n    }" ({ "{") (expression_statement "(*(code *)PTR_free_004c5c18)();" (call_expression "(*(code *)PTR_free_004c5c18)()" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" (( "(") (pointer_expression "*(code *)PTR_free_004c5c18" (* "*") (cast_expression "(code *)PTR_free_004c5c18" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_004c5c18"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar4[1] = 0;" (assignment_expression "piVar4[1] = 0" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar4[2] = 0;" (assignment_expression "piVar4[2] = 0" (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar4 = *(int **)(param_1 + 0x4c);" (assignment_expression "piVar4 = *(int **)(param_1 + 0x4c)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(param_1 + 0x4c)" (* "*") (cast_expression "(int **)(param_1 + 0x4c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_004c5c18)(piVar4);" (call_expression "(*(code *)PTR_free_004c5c18)(piVar4)" (parenthesized_expression "(*(code *)PTR_free_004c5c18)" (( "(") (pointer_expression "*(code *)PTR_free_004c5c18" (* "*") (cast_expression "(code *)PTR_free_004c5c18" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_004c5c18"))) () ")")) (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (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))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (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)))))))))) (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 (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (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: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (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 (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (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: (identifier) right: (number_literal))))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (return_statement))))

void MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  
  FUN_003120bc(param_1 + 4,param_1 + 0x20);
  if (*(int *)(param_1 + 4) != 0) {
    (*(code *)PTR_free_004c5c18)();
    *(undefined4 *)(param_1 + 4) = 0;
    *(undefined4 *)(param_1 + 0x24) = 0;
  }
  if (*(int *)(param_1 + 0x54) != 0) {
    (*(code *)PTR_free_004c5c18)();
    *(undefined4 *)(param_1 + 0x54) = 0;
    *(undefined4 *)(param_1 + 0x58) = 0;
  }
  iVar2 = *(int *)(param_1 + 0x40);
  if (iVar2 != 0) {
    iVar3 = 0;
    if (0 < *(int *)(param_1 + 0x44)) {
      do {
        iVar1 = iVar3 * 4;
        iVar3 = iVar3 + 1;
        (*(code *)PTR_free_004c5c18)(*(undefined4 *)(iVar2 + iVar1));
        iVar2 = *(int *)(param_1 + 0x40);
      } while (iVar3 < *(int *)(param_1 + 0x44));
    }
    (*(code *)PTR_free_004c5c18)();
    *(undefined4 *)(param_1 + 0x40) = 0;
  }
  piVar4 = *(int **)(param_1 + 0x4c);
  if (piVar4 != (int *)0x0) {
    if (*piVar4 != 0) {
      (*(code *)PTR_free_004c5c18)();
      piVar4[1] = 0;
      piVar4[2] = 0;
      *piVar4 = 0;
      piVar4 = *(int **)(param_1 + 0x4c);
    }
    (*(code *)PTR_free_004c5c18)(piVar4);
    *(undefined4 *)(param_1 + 0x4c) = 0;
  }
  return;
}

