
void allocate_buffers(int n)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  int iVar6;
  
  puVar1 = PTR_pidstat_table_3077__0015656c;
  iVar6 = *(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00);
  *(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00) = n + 0x14;
  puVar2 = PTR_pidstat_table_3077__0015656c;
  iVar3 = (*(code *)PTR_xrealloc_0015673c)
                    (*(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x4cfc),(n + 0x14) * 4);
  *(int *)(puVar2 + -0x4cfc) = iVar3;
  iVar5 = *(int *)(puVar1 + -0x4d00);
  if (iVar6 < iVar5) {
    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);
    do {
      *puVar4 = 0;
      puVar4 = puVar4 + 1;
    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));
  }
  return;
}



void FUN_0009118c(int param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  int iVar6;
  
  puVar1 = PTR_DAT_0015656c;
  iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00);
  *(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14;
  puVar2 = PTR_DAT_0015656c;
  iVar3 = (*(code *)PTR_xrealloc_0015673c)
                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4);
  *(int *)(puVar2 + -0x4cfc) = iVar3;
  iVar5 = *(int *)(puVar1 + -0x4d00);
  if (iVar6 < iVar5) {
    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);
    do {
      *puVar4 = 0;
      puVar4 = puVar4 + 1;
    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));
  }
  return;
}


lui gp,0xd
addiu gp,gp,-0x2c4c
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
lw s1,-0x7fd4(gp)
lw s0,-0x4d00(s1)
addiu a0,a0,0x14
sw a0,-0x4d00(s1)
lw s2,-0x7fd4(gp)
sll a1,a0,0x2
lw a0,-0x4cfc(s2)
lw t9,-0x7e04(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw v0,-0x4cfc(s2)
lw a0,-0x4d00(s1)
slt v1,s0,a0
beq v1,zero,0x0009120c
_sll a0,a0,0x2
sll v1,s0,0x2
addu v1,v0,v1
addu v0,v0,a0
sw zero,0x0(v1)
addiu v1,v1,0x4
bne v1,v0,0x000911fc
_nop
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_0009118c(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_0015656c;\n  iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00);\n  *(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14;\n  puVar2 = PTR_DAT_0015656c;\n  iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4);\n  *(int *)(puVar2 + -0x4cfc) = iVar3;\n  iVar5 = *(int *)(puVar1 + -0x4d00);\n  if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }\n  return;\n}\n\n" (function_definition "void FUN_0009118c(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_0015656c;\n  iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00);\n  *(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14;\n  puVar2 = PTR_DAT_0015656c;\n  iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4);\n  *(int *)(puVar2 + -0x4cfc) = iVar3;\n  iVar5 = *(int *)(puVar1 + -0x4d00);\n  if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0009118c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_0015656c;\n  iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00);\n  *(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14;\n  puVar2 = PTR_DAT_0015656c;\n  iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4);\n  *(int *)(puVar2 + -0x4cfc) = iVar3;\n  iVar5 = *(int *)(puVar1 + -0x4d00);\n  if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_DAT_0015656c;" (assignment_expression "puVar1 = PTR_DAT_0015656c" identifier = identifier) ;) (expression_statement "iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00);" (assignment_expression "iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00)" identifier = (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x4d00)" * (cast_expression "(int *)(PTR_DAT_0015656c + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015656c + -0x4d00)" ( (binary_expression "PTR_DAT_0015656c + -0x4d00" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14;" (assignment_expression "*(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14" (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x4d00)" * (cast_expression "(int *)(PTR_DAT_0015656c + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015656c + -0x4d00)" ( (binary_expression "PTR_DAT_0015656c + -0x4d00" identifier + number_literal) )))) = (binary_expression "param_1 + 0x14" identifier + number_literal)) ;) (expression_statement "puVar2 = PTR_DAT_0015656c;" (assignment_expression "puVar2 = PTR_DAT_0015656c" identifier = identifier) ;) (expression_statement "iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4);" (assignment_expression "iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4)" identifier = (call_expression "(*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4)" (parenthesized_expression "(*(code *)PTR_xrealloc_0015673c)" ( (pointer_expression "*(code *)PTR_xrealloc_0015673c" * (cast_expression "(code *)PTR_xrealloc_0015673c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc)" * (cast_expression "(undefined4 *)(PTR_DAT_0015656c + -0x4cfc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015656c + -0x4cfc)" ( (binary_expression "PTR_DAT_0015656c + -0x4cfc" identifier + number_literal) )))) , (binary_expression "(param_1 + 0x14) * 4" (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )) * number_literal) )))) ;) (expression_statement "*(int *)(puVar2 + -0x4cfc) = iVar3;" (assignment_expression "*(int *)(puVar2 + -0x4cfc) = iVar3" (pointer_expression "*(int *)(puVar2 + -0x4cfc)" * (cast_expression "(int *)(puVar2 + -0x4cfc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x4cfc)" ( (binary_expression "puVar2 + -0x4cfc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = *(int *)(puVar1 + -0x4d00);" (assignment_expression "iVar5 = *(int *)(puVar1 + -0x4d00)" identifier = (pointer_expression "*(int *)(puVar1 + -0x4d00)" * (cast_expression "(int *)(puVar1 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x4d00)" ( (binary_expression "puVar1 + -0x4d00" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }" if (parenthesized_expression "(iVar6 < iVar5)" ( (binary_expression "iVar6 < iVar5" identifier < identifier) )) (compound_statement "{\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }" { (expression_statement "puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);" (assignment_expression "puVar4 = (undefined4 *)(iVar3 + iVar6 * 4)" identifier = (cast_expression "(undefined4 *)(iVar3 + iVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar6 * 4)" ( (binary_expression "iVar3 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));" do (compound_statement "{\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar4 != (undefined4 *)(iVar3 + iVar5 * 4))" ( (binary_expression "puVar4 != (undefined4 *)(iVar3 + iVar5 * 4)" identifier != (cast_expression "(undefined4 *)(iVar3 + iVar5 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5 * 4)" ( (binary_expression "iVar3 + iVar5 * 4" identifier + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void allocate_buffers(int n)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar1 = PTR_pidstat_table_3077__0015656c;\n  iVar6 = *(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00);\n  *(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00) = n + 0x14;\n  puVar2 = PTR_pidstat_table_3077__0015656c;\n  iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x4cfc),(n + 0x14) * 4);\n  *(int *)(puVar2 + -0x4cfc) = iVar3;\n  iVar5 = *(int *)(puVar1 + -0x4d00);\n  if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }\n  return;\n}\n\n" (function_definition "void allocate_buffers(int n)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar1 = PTR_pidstat_table_3077__0015656c;\n  iVar6 = *(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00);\n  *(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00) = n + 0x14;\n  puVar2 = PTR_pidstat_table_3077__0015656c;\n  iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x4cfc),(n + 0x14) * 4);\n  *(int *)(puVar2 + -0x4cfc) = iVar3;\n  iVar5 = *(int *)(puVar1 + -0x4d00);\n  if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }\n  return;\n}" primitive_type (function_declarator "allocate_buffers(int n)" identifier (parameter_list "(int n)" ( (parameter_declaration "int n" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar1 = PTR_pidstat_table_3077__0015656c;\n  iVar6 = *(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00);\n  *(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00) = n + 0x14;\n  puVar2 = PTR_pidstat_table_3077__0015656c;\n  iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x4cfc),(n + 0x14) * 4);\n  *(int *)(puVar2 + -0x4cfc) = iVar3;\n  iVar5 = *(int *)(puVar1 + -0x4d00);\n  if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_pidstat_table_3077__0015656c;" (assignment_expression "puVar1 = PTR_pidstat_table_3077__0015656c" identifier = identifier) ;) (expression_statement "iVar6 = *(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00);" (assignment_expression "iVar6 = *(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00)" identifier = (pointer_expression "*(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00)" * (cast_expression "(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_pidstat_table_3077__0015656c + -0x4d00)" ( (binary_expression "PTR_pidstat_table_3077__0015656c + -0x4d00" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00) = n + 0x14;" (assignment_expression "*(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00) = n + 0x14" (pointer_expression "*(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00)" * (cast_expression "(int *)(PTR_pidstat_table_3077__0015656c + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_pidstat_table_3077__0015656c + -0x4d00)" ( (binary_expression "PTR_pidstat_table_3077__0015656c + -0x4d00" identifier + number_literal) )))) = (binary_expression "n + 0x14" identifier + number_literal)) ;) (expression_statement "puVar2 = PTR_pidstat_table_3077__0015656c;" (assignment_expression "puVar2 = PTR_pidstat_table_3077__0015656c" identifier = identifier) ;) (expression_statement "iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x4cfc),(n + 0x14) * 4);" (assignment_expression "iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x4cfc),(n + 0x14) * 4)" identifier = (call_expression "(*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x4cfc),(n + 0x14) * 4)" (parenthesized_expression "(*(code *)PTR_xrealloc_0015673c)" ( (pointer_expression "*(code *)PTR_xrealloc_0015673c" * (cast_expression "(code *)PTR_xrealloc_0015673c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x4cfc),(n + 0x14) * 4)" ( (pointer_expression "*(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x4cfc)" * (cast_expression "(undefined4 *)(PTR_pidstat_table_3077__0015656c + -0x4cfc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_pidstat_table_3077__0015656c + -0x4cfc)" ( (binary_expression "PTR_pidstat_table_3077__0015656c + -0x4cfc" identifier + number_literal) )))) , (binary_expression "(n + 0x14) * 4" (parenthesized_expression "(n + 0x14)" ( (binary_expression "n + 0x14" identifier + number_literal) )) * number_literal) )))) ;) (expression_statement "*(int *)(puVar2 + -0x4cfc) = iVar3;" (assignment_expression "*(int *)(puVar2 + -0x4cfc) = iVar3" (pointer_expression "*(int *)(puVar2 + -0x4cfc)" * (cast_expression "(int *)(puVar2 + -0x4cfc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x4cfc)" ( (binary_expression "puVar2 + -0x4cfc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = *(int *)(puVar1 + -0x4d00);" (assignment_expression "iVar5 = *(int *)(puVar1 + -0x4d00)" identifier = (pointer_expression "*(int *)(puVar1 + -0x4d00)" * (cast_expression "(int *)(puVar1 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x4d00)" ( (binary_expression "puVar1 + -0x4d00" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }" if (parenthesized_expression "(iVar6 < iVar5)" ( (binary_expression "iVar6 < iVar5" identifier < identifier) )) (compound_statement "{\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }" { (expression_statement "puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);" (assignment_expression "puVar4 = (undefined4 *)(iVar3 + iVar6 * 4)" identifier = (cast_expression "(undefined4 *)(iVar3 + iVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar6 * 4)" ( (binary_expression "iVar3 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));" do (compound_statement "{\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar4 != (undefined4 *)(iVar3 + iVar5 * 4))" ( (binary_expression "puVar4 != (undefined4 *)(iVar3 + iVar5 * 4)" identifier != (cast_expression "(undefined4 *)(iVar3 + iVar5 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5 * 4)" ( (binary_expression "iVar3 + iVar5 * 4" identifier + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0009118c(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_0015656c;\n  iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00);\n  *(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14;\n  puVar2 = PTR_DAT_0015656c;\n  iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4);\n  *(int *)(puVar2 + -0x4cfc) = iVar3;\n  iVar5 = *(int *)(puVar1 + -0x4d00);\n  if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }\n  return;\n}\n\n" (function_definition "void FUN_0009118c(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_0015656c;\n  iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00);\n  *(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14;\n  puVar2 = PTR_DAT_0015656c;\n  iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4);\n  *(int *)(puVar2 + -0x4cfc) = iVar3;\n  iVar5 = *(int *)(puVar1 + -0x4d00);\n  if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0009118c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_0015656c;\n  iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00);\n  *(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14;\n  puVar2 = PTR_DAT_0015656c;\n  iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4);\n  *(int *)(puVar2 + -0x4cfc) = iVar3;\n  iVar5 = *(int *)(puVar1 + -0x4d00);\n  if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_DAT_0015656c;" (assignment_expression "puVar1 = PTR_DAT_0015656c" identifier = identifier) ;) (expression_statement "iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00);" (assignment_expression "iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00)" identifier = (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x4d00)" * (cast_expression "(int *)(PTR_DAT_0015656c + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015656c + -0x4d00)" ( (binary_expression "PTR_DAT_0015656c + -0x4d00" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14;" (assignment_expression "*(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14" (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x4d00)" * (cast_expression "(int *)(PTR_DAT_0015656c + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015656c + -0x4d00)" ( (binary_expression "PTR_DAT_0015656c + -0x4d00" identifier + number_literal) )))) = (binary_expression "param_1 + 0x14" identifier + number_literal)) ;) (expression_statement "puVar2 = PTR_DAT_0015656c;" (assignment_expression "puVar2 = PTR_DAT_0015656c" identifier = identifier) ;) (expression_statement "iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4);" (assignment_expression "iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4)" identifier = (call_expression "(*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4)" (parenthesized_expression "(*(code *)PTR_xrealloc_0015673c)" ( (pointer_expression "*(code *)PTR_xrealloc_0015673c" * (cast_expression "(code *)PTR_xrealloc_0015673c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4)" ( (pointer_expression "*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc)" * (cast_expression "(undefined4 *)(PTR_DAT_0015656c + -0x4cfc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015656c + -0x4cfc)" ( (binary_expression "PTR_DAT_0015656c + -0x4cfc" identifier + number_literal) )))) , (binary_expression "(param_1 + 0x14) * 4" (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )) * number_literal) )))) ;) (expression_statement "*(int *)(puVar2 + -0x4cfc) = iVar3;" (assignment_expression "*(int *)(puVar2 + -0x4cfc) = iVar3" (pointer_expression "*(int *)(puVar2 + -0x4cfc)" * (cast_expression "(int *)(puVar2 + -0x4cfc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x4cfc)" ( (binary_expression "puVar2 + -0x4cfc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = *(int *)(puVar1 + -0x4d00);" (assignment_expression "iVar5 = *(int *)(puVar1 + -0x4d00)" identifier = (pointer_expression "*(int *)(puVar1 + -0x4d00)" * (cast_expression "(int *)(puVar1 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x4d00)" ( (binary_expression "puVar1 + -0x4d00" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }" if (parenthesized_expression "(iVar6 < iVar5)" ( (binary_expression "iVar6 < iVar5" identifier < identifier) )) (compound_statement "{\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }" { (expression_statement "puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);" (assignment_expression "puVar4 = (undefined4 *)(iVar3 + iVar6 * 4)" identifier = (cast_expression "(undefined4 *)(iVar3 + iVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar6 * 4)" ( (binary_expression "iVar3 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));" do (compound_statement "{\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar4 != (undefined4 *)(iVar3 + iVar5 * 4))" ( (binary_expression "puVar4 != (undefined4 *)(iVar3 + iVar5 * 4)" identifier != (cast_expression "(undefined4 *)(iVar3 + iVar5 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5 * 4)" ( (binary_expression "iVar3 + iVar5 * 4" identifier + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (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) )))) = IDENT) ;) (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 < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0009118c(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_0015656c;\n  iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00);\n  *(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14;\n  puVar2 = PTR_DAT_0015656c;\n  iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4);\n  *(int *)(puVar2 + -0x4cfc) = iVar3;\n  iVar5 = *(int *)(puVar1 + -0x4d00);\n  if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0009118c(int param_1)" (identifier "FUN_0009118c") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  int iVar6;\n  \n  puVar1 = PTR_DAT_0015656c;\n  iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00);\n  *(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14;\n  puVar2 = PTR_DAT_0015656c;\n  iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4);\n  *(int *)(puVar2 + -0x4cfc) = iVar3;\n  iVar5 = *(int *)(puVar1 + -0x4d00);\n  if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "puVar1 = PTR_DAT_0015656c;" (assignment_expression "puVar1 = PTR_DAT_0015656c" (identifier "puVar1") (= "=") (identifier "PTR_DAT_0015656c")) (; ";")) (expression_statement "iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00);" (assignment_expression "iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x4d00)" (* "*") (cast_expression "(int *)(PTR_DAT_0015656c + -0x4d00)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0015656c + -0x4d00)" (( "(") (binary_expression "PTR_DAT_0015656c + -0x4d00" (identifier "PTR_DAT_0015656c") (+ "+") (number_literal "-0x4d00")) () ")"))))) (; ";")) (expression_statement "*(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14;" (assignment_expression "*(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14" (pointer_expression "*(int *)(PTR_DAT_0015656c + -0x4d00)" (* "*") (cast_expression "(int *)(PTR_DAT_0015656c + -0x4d00)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0015656c + -0x4d00)" (( "(") (binary_expression "PTR_DAT_0015656c + -0x4d00" (identifier "PTR_DAT_0015656c") (+ "+") (number_literal "-0x4d00")) () ")")))) (= "=") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14"))) (; ";")) (expression_statement "puVar2 = PTR_DAT_0015656c;" (assignment_expression "puVar2 = PTR_DAT_0015656c" (identifier "puVar2") (= "=") (identifier "PTR_DAT_0015656c")) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4);" (assignment_expression "iVar3 = (*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_xrealloc_0015673c)\n                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4)" (parenthesized_expression "(*(code *)PTR_xrealloc_0015673c)" (( "(") (pointer_expression "*(code *)PTR_xrealloc_0015673c" (* "*") (cast_expression "(code *)PTR_xrealloc_0015673c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xrealloc_0015673c"))) () ")")) (argument_list "(*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4)" (( "(") (pointer_expression "*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_0015656c + -0x4cfc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0015656c + -0x4cfc)" (( "(") (binary_expression "PTR_DAT_0015656c + -0x4cfc" (identifier "PTR_DAT_0015656c") (+ "+") (number_literal "-0x4cfc")) () ")")))) (, ",") (binary_expression "(param_1 + 0x14) * 4" (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")) (* "*") (number_literal "4")) () ")")))) (; ";")) (expression_statement "*(int *)(puVar2 + -0x4cfc) = iVar3;" (assignment_expression "*(int *)(puVar2 + -0x4cfc) = iVar3" (pointer_expression "*(int *)(puVar2 + -0x4cfc)" (* "*") (cast_expression "(int *)(puVar2 + -0x4cfc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + -0x4cfc)" (( "(") (binary_expression "puVar2 + -0x4cfc" (identifier "puVar2") (+ "+") (number_literal "-0x4cfc")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar5 = *(int *)(puVar1 + -0x4d00);" (assignment_expression "iVar5 = *(int *)(puVar1 + -0x4d00)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(puVar1 + -0x4d00)" (* "*") (cast_expression "(int *)(puVar1 + -0x4d00)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0x4d00)" (( "(") (binary_expression "puVar1 + -0x4d00" (identifier "puVar1") (+ "+") (number_literal "-0x4d00")) () ")"))))) (; ";")) (if_statement "if (iVar6 < iVar5) {\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }" (if "if") (parenthesized_expression "(iVar6 < iVar5)" (( "(") (binary_expression "iVar6 < iVar5" (identifier "iVar6") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));\n  }" ({ "{") (expression_statement "puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);" (assignment_expression "puVar4 = (undefined4 *)(iVar3 + iVar6 * 4)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(iVar3 + iVar6 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar6 * 4)" (( "(") (binary_expression "iVar3 + iVar6 * 4" (identifier "iVar3") (+ "+") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) () ")")))) (; ";")) (do_statement "do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));" (do "do") (compound_statement "{\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar4 != (undefined4 *)(iVar3 + iVar5 * 4))" (( "(") (binary_expression "puVar4 != (undefined4 *)(iVar3 + iVar5 * 4)" (identifier "puVar4") (!= "!=") (cast_expression "(undefined4 *)(iVar3 + iVar5 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar5 * 4)" (( "(") (binary_expression "iVar3 + iVar5 * 4" (identifier "iVar3") (+ "+") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) () ")")))) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(int var_2)

{
  type_1 *var_4;
  type_1 *var_3;
  int var_7;
  type_2 *var_8;
  int var_6;
  int var_5;
  
  var_4 = var_1;
  var_5 = *(int *)(var_1 + -0x4d00);
  *(int *)(var_1 + -0x4d00) = var_2 + 0x14;
  var_3 = var_1;
  var_7 = (*(type_3 *)PTR_xrealloc_0015673c)
                    (*(type_2 *)(var_1 + -0x4cfc),(var_2 + 0x14) * 4);
  *(int *)(var_3 + -0x4cfc) = var_7;
  var_6 = *(int *)(var_4 + -0x4d00);
  if (var_5 < var_6) {
    var_8 = (type_2 *)(var_7 + var_5 * 4);
    do {
      *var_8 = 0;
      var_8 = var_8 + 1;
    } while (var_8 != (type_2 *)(var_7 + var_6 * 4));
  }
  return;
}


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

void MASKED(int param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  int iVar6;
  
  puVar1 = PTR_DAT_0015656c;
  iVar6 = *(int *)(PTR_DAT_0015656c + -0x4d00);
  *(int *)(PTR_DAT_0015656c + -0x4d00) = param_1 + 0x14;
  puVar2 = PTR_DAT_0015656c;
  iVar3 = (*(code *)PTR_xrealloc_0015673c)
                    (*(undefined4 *)(PTR_DAT_0015656c + -0x4cfc),(param_1 + 0x14) * 4);
  *(int *)(puVar2 + -0x4cfc) = iVar3;
  iVar5 = *(int *)(puVar1 + -0x4d00);
  if (iVar6 < iVar5) {
    puVar4 = (undefined4 *)(iVar3 + iVar6 * 4);
    do {
      *puVar4 = 0;
      puVar4 = puVar4 + 1;
    } while (puVar4 != (undefined4 *)(iVar3 + iVar5 * 4));
  }
  return;
}

