
void indent(int amount)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined1 *puVar4;
  undefined1 *puVar5;
  
  puVar2 = PTR_xrealloc_0014473c;
  puVar1 = PTR_data_start_00144568;
  iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);
  puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);
  if (iVar3 <= amount) {
    iVar3 = (amount - iVar3 & 0xfffffff0U) + iVar3 + 0x10;
    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;
    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);
    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;
  }
  puVar1 = PTR_DAT_001445ac;
  puVar5 = puVar4 + amount;
  if (amount < 1) {
    *puVar4 = 0;
                    /* WARNING: Subroutine does not return */
    cprintf(puVar1 + -0x66c0);
  }
  do {
    *puVar4 = 0x20;
    puVar1 = PTR_DAT_001445ac;
    puVar4 = puVar4 + 1;
  } while (puVar5 != puVar4);
  *puVar5 = 0;
                    /* WARNING: Subroutine does not return */
  cprintf(puVar1 + -0x66c0);
}



void FUN_00044aac(int param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined1 *puVar4;
  undefined1 *puVar5;
  
  puVar2 = PTR_xrealloc_0014473c;
  puVar1 = PTR_data_start_00144568;
  iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);
  puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);
  if (iVar3 <= param_1) {
    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;
    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;
    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);
    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;
  }
  puVar1 = PTR_DAT_001445ac;
  puVar5 = puVar4 + param_1;
  if (param_1 < 1) {
    *puVar4 = 0;
    FUN_00044708(puVar1 + -0x66c0);
    return;
  }
  do {
    *puVar4 = 0x20;
    puVar1 = PTR_DAT_001445ac;
    puVar4 = puVar4 + 1;
  } while (puVar5 != puVar4);
  *puVar5 = 0;
  FUN_00044708(puVar1 + -0x66c0);
  return;
}


lui gp,0x10
addiu gp,gp,0x7a94
addu gp,gp,t9
lw a2,-0x7fd8(gp)
addiu sp,sp,-0x28
sw s1,0x20(sp)
sw gp,0x10(sp)
sw s0,0x1c(sp)
or s0,a0,zero
sw ra,0x24(sp)
lw s1,-0x7fd8(gp)
lw v1,0x7bf0(a2)
slt v0,a0,v1
bne v0,zero,0x00044b1c
_lw a1,0x7bf4(s1)
subu v0,a0,v1
lw t9,-0x7e04(gp)
addiu v1,v1,0x10
srl v0,v0,0x4
or a0,a1,zero
sll v0,v0,0x4
addu v0,v0,v1
or a1,v0,zero
jalr t9
_sw v0,0x7bf0(a2)
lw gp,0x10(sp)
or a1,v0,zero
sw v0,0x7bf4(s1)
blez s0,0x00044b60
_addu a2,a1,s0
li a3,0x20
or v1,a1,zero
sb a3,0x0(v1)
addiu v1,v1,0x1
bne a2,v1,0x00044b2c
_lw a0,-0x7f94(gp)
lw t9,-0x7b54(gp)
sb zero,0x0(a2)
lw ra,0x24(sp)
addiu a0,a0,-0x66c0
lw s1,0x20(sp)
addiu t9,t9,0x4708
lw s0,0x1c(sp)
b 0x00044708
_addiu sp,sp,0x28
or a2,a1,zero
lw a0,-0x7f94(gp)
lw t9,-0x7b54(gp)
sb zero,0x0(a2)
lw ra,0x24(sp)
addiu a0,a0,-0x66c0
lw s1,0x20(sp)
addiu t9,t9,0x4708
lw s0,0x1c(sp)
b 0x00044708
_addiu sp,sp,0x28
(translation_unit "void FUN_00044aac(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  \n  puVar2 = PTR_xrealloc_0014473c;\n  puVar1 = PTR_data_start_00144568;\n  iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);\n  puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);\n  if (iVar3 <= param_1) {\n    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }\n  puVar1 = PTR_DAT_001445ac;\n  puVar5 = puVar4 + param_1;\n  if (param_1 < 1) {\n    *puVar4 = 0;\n    FUN_00044708(puVar1 + -0x66c0);\n    return;\n  }\n  do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);\n  *puVar5 = 0;\n  FUN_00044708(puVar1 + -0x66c0);\n  return;\n}\n\n" (function_definition "void FUN_00044aac(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  \n  puVar2 = PTR_xrealloc_0014473c;\n  puVar1 = PTR_data_start_00144568;\n  iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);\n  puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);\n  if (iVar3 <= param_1) {\n    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }\n  puVar1 = PTR_DAT_001445ac;\n  puVar5 = puVar4 + param_1;\n  if (param_1 < 1) {\n    *puVar4 = 0;\n    FUN_00044708(puVar1 + -0x66c0);\n    return;\n  }\n  do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);\n  *puVar5 = 0;\n  FUN_00044708(puVar1 + -0x66c0);\n  return;\n}" primitive_type (function_declarator "FUN_00044aac(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  undefined1 *puVar4;\n  undefined1 *puVar5;\n  \n  puVar2 = PTR_xrealloc_0014473c;\n  puVar1 = PTR_data_start_00144568;\n  iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);\n  puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);\n  if (iVar3 <= param_1) {\n    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }\n  puVar1 = PTR_DAT_001445ac;\n  puVar5 = puVar4 + param_1;\n  if (param_1 < 1) {\n    *puVar4 = 0;\n    FUN_00044708(puVar1 + -0x66c0);\n    return;\n  }\n  do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);\n  *puVar5 = 0;\n  FUN_00044708(puVar1 + -0x66c0);\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 "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar2 = PTR_xrealloc_0014473c;" (assignment_expression "puVar2 = PTR_xrealloc_0014473c" identifier = identifier) ;) (expression_statement "puVar1 = PTR_data_start_00144568;" (assignment_expression "puVar1 = PTR_data_start_00144568" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);" (assignment_expression "iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0)" identifier = (pointer_expression "*(int *)(PTR_data_start_00144568 + 0x7bf0)" * (cast_expression "(int *)(PTR_data_start_00144568 + 0x7bf0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x7bf0)" ( (binary_expression "PTR_data_start_00144568 + 0x7bf0" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);" (assignment_expression "puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4)" identifier = (pointer_expression "*(undefined1 **)(PTR_data_start_00144568 + 0x7bf4)" * (cast_expression "(undefined1 **)(PTR_data_start_00144568 + 0x7bf4)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x7bf4)" ( (binary_expression "PTR_data_start_00144568 + 0x7bf4" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 <= param_1) {\n    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }" if (parenthesized_expression "(iVar3 <= param_1)" ( (binary_expression "iVar3 <= param_1" identifier <= identifier) )) (compound_statement "{\n    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }" { (expression_statement "iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;" (assignment_expression "iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10" identifier = (binary_expression "(param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10" (binary_expression "(param_1 - iVar3 & 0xfffffff0U) + iVar3" (parenthesized_expression "(param_1 - iVar3 & 0xfffffff0U)" ( (binary_expression "param_1 - iVar3 & 0xfffffff0U" (binary_expression "param_1 - iVar3" identifier - identifier) & number_literal) )) + identifier) + number_literal)) ;) (expression_statement "*(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;" (assignment_expression "*(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3" (pointer_expression "*(int *)(PTR_data_start_00144568 + 0x7bf0)" * (cast_expression "(int *)(PTR_data_start_00144568 + 0x7bf0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x7bf0)" ( (binary_expression "PTR_data_start_00144568 + 0x7bf0" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);" (assignment_expression "puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3)" identifier = (cast_expression "(undefined1 *)(*(code *)puVar2)(puVar4,iVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar2)(puVar4,iVar3)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4,iVar3)" ( identifier , identifier ))))) ;) (expression_statement "*(undefined1 **)(puVar1 + 0x7bf4) = puVar4;" (assignment_expression "*(undefined1 **)(puVar1 + 0x7bf4) = puVar4" (pointer_expression "*(undefined1 **)(puVar1 + 0x7bf4)" * (cast_expression "(undefined1 **)(puVar1 + 0x7bf4)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x7bf4)" ( (binary_expression "puVar1 + 0x7bf4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "puVar1 = PTR_DAT_001445ac;" (assignment_expression "puVar1 = PTR_DAT_001445ac" identifier = identifier) ;) (expression_statement "puVar5 = puVar4 + param_1;" (assignment_expression "puVar5 = puVar4 + param_1" identifier = (binary_expression "puVar4 + param_1" identifier + identifier)) ;) (if_statement "if (param_1 < 1) {\n    *puVar4 = 0;\n    FUN_00044708(puVar1 + -0x66c0);\n    return;\n  }" if (parenthesized_expression "(param_1 < 1)" ( (binary_expression "param_1 < 1" identifier < number_literal) )) (compound_statement "{\n    *puVar4 = 0;\n    FUN_00044708(puVar1 + -0x66c0);\n    return;\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "FUN_00044708(puVar1 + -0x66c0);" (call_expression "FUN_00044708(puVar1 + -0x66c0)" identifier (argument_list "(puVar1 + -0x66c0)" ( (binary_expression "puVar1 + -0x66c0" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (do_statement "do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);" do (compound_statement "{\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  }" { (expression_statement "*puVar4 = 0x20;" (assignment_expression "*puVar4 = 0x20" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar1 = PTR_DAT_001445ac;" (assignment_expression "puVar1 = PTR_DAT_001445ac" identifier = identifier) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar5 != puVar4)" ( (binary_expression "puVar5 != puVar4" identifier != identifier) )) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "FUN_00044708(puVar1 + -0x66c0);" (call_expression "FUN_00044708(puVar1 + -0x66c0)" identifier (argument_list "(puVar1 + -0x66c0)" ( (binary_expression "puVar1 + -0x66c0" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void indent(int amount)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  \n  puVar2 = PTR_xrealloc_0014473c;\n  puVar1 = PTR_data_start_00144568;\n  iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);\n  puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);\n  if (iVar3 <= amount) {\n    iVar3 = (amount - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }\n  puVar1 = PTR_DAT_001445ac;\n  puVar5 = puVar4 + amount;\n  if (amount < 1) {\n    *puVar4 = 0;\n                    /* WARNING: Subroutine does not return */\n    cprintf(puVar1 + -0x66c0);\n  }\n  do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);\n  *puVar5 = 0;\n                    /* WARNING: Subroutine does not return */\n  cprintf(puVar1 + -0x66c0);\n}\n\n" (function_definition "void indent(int amount)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  \n  puVar2 = PTR_xrealloc_0014473c;\n  puVar1 = PTR_data_start_00144568;\n  iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);\n  puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);\n  if (iVar3 <= amount) {\n    iVar3 = (amount - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }\n  puVar1 = PTR_DAT_001445ac;\n  puVar5 = puVar4 + amount;\n  if (amount < 1) {\n    *puVar4 = 0;\n                    /* WARNING: Subroutine does not return */\n    cprintf(puVar1 + -0x66c0);\n  }\n  do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);\n  *puVar5 = 0;\n                    /* WARNING: Subroutine does not return */\n  cprintf(puVar1 + -0x66c0);\n}" primitive_type (function_declarator "indent(int amount)" identifier (parameter_list "(int amount)" ( (parameter_declaration "int amount" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  \n  puVar2 = PTR_xrealloc_0014473c;\n  puVar1 = PTR_data_start_00144568;\n  iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);\n  puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);\n  if (iVar3 <= amount) {\n    iVar3 = (amount - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }\n  puVar1 = PTR_DAT_001445ac;\n  puVar5 = puVar4 + amount;\n  if (amount < 1) {\n    *puVar4 = 0;\n                    /* WARNING: Subroutine does not return */\n    cprintf(puVar1 + -0x66c0);\n  }\n  do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);\n  *puVar5 = 0;\n                    /* WARNING: Subroutine does not return */\n  cprintf(puVar1 + -0x66c0);\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 "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar2 = PTR_xrealloc_0014473c;" (assignment_expression "puVar2 = PTR_xrealloc_0014473c" identifier = identifier) ;) (expression_statement "puVar1 = PTR_data_start_00144568;" (assignment_expression "puVar1 = PTR_data_start_00144568" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);" (assignment_expression "iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0)" identifier = (pointer_expression "*(int *)(PTR_data_start_00144568 + 0x7bf0)" * (cast_expression "(int *)(PTR_data_start_00144568 + 0x7bf0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x7bf0)" ( (binary_expression "PTR_data_start_00144568 + 0x7bf0" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);" (assignment_expression "puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4)" identifier = (pointer_expression "*(undefined1 **)(PTR_data_start_00144568 + 0x7bf4)" * (cast_expression "(undefined1 **)(PTR_data_start_00144568 + 0x7bf4)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x7bf4)" ( (binary_expression "PTR_data_start_00144568 + 0x7bf4" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 <= amount) {\n    iVar3 = (amount - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }" if (parenthesized_expression "(iVar3 <= amount)" ( (binary_expression "iVar3 <= amount" identifier <= identifier) )) (compound_statement "{\n    iVar3 = (amount - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }" { (expression_statement "iVar3 = (amount - iVar3 & 0xfffffff0U) + iVar3 + 0x10;" (assignment_expression "iVar3 = (amount - iVar3 & 0xfffffff0U) + iVar3 + 0x10" identifier = (binary_expression "(amount - iVar3 & 0xfffffff0U) + iVar3 + 0x10" (binary_expression "(amount - iVar3 & 0xfffffff0U) + iVar3" (parenthesized_expression "(amount - iVar3 & 0xfffffff0U)" ( (binary_expression "amount - iVar3 & 0xfffffff0U" (binary_expression "amount - iVar3" identifier - identifier) & number_literal) )) + identifier) + number_literal)) ;) (expression_statement "*(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;" (assignment_expression "*(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3" (pointer_expression "*(int *)(PTR_data_start_00144568 + 0x7bf0)" * (cast_expression "(int *)(PTR_data_start_00144568 + 0x7bf0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x7bf0)" ( (binary_expression "PTR_data_start_00144568 + 0x7bf0" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);" (assignment_expression "puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3)" identifier = (cast_expression "(undefined1 *)(*(code *)puVar2)(puVar4,iVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar2)(puVar4,iVar3)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4,iVar3)" ( identifier , identifier ))))) ;) (expression_statement "*(undefined1 **)(puVar1 + 0x7bf4) = puVar4;" (assignment_expression "*(undefined1 **)(puVar1 + 0x7bf4) = puVar4" (pointer_expression "*(undefined1 **)(puVar1 + 0x7bf4)" * (cast_expression "(undefined1 **)(puVar1 + 0x7bf4)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x7bf4)" ( (binary_expression "puVar1 + 0x7bf4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "puVar1 = PTR_DAT_001445ac;" (assignment_expression "puVar1 = PTR_DAT_001445ac" identifier = identifier) ;) (expression_statement "puVar5 = puVar4 + amount;" (assignment_expression "puVar5 = puVar4 + amount" identifier = (binary_expression "puVar4 + amount" identifier + identifier)) ;) (if_statement "if (amount < 1) {\n    *puVar4 = 0;\n                    /* WARNING: Subroutine does not return */\n    cprintf(puVar1 + -0x66c0);\n  }" if (parenthesized_expression "(amount < 1)" ( (binary_expression "amount < 1" identifier < number_literal) )) (compound_statement "{\n    *puVar4 = 0;\n                    /* WARNING: Subroutine does not return */\n    cprintf(puVar1 + -0x66c0);\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) comment (expression_statement "cprintf(puVar1 + -0x66c0);" (call_expression "cprintf(puVar1 + -0x66c0)" identifier (argument_list "(puVar1 + -0x66c0)" ( (binary_expression "puVar1 + -0x66c0" identifier + number_literal) ))) ;) })) (do_statement "do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);" do (compound_statement "{\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  }" { (expression_statement "*puVar4 = 0x20;" (assignment_expression "*puVar4 = 0x20" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar1 = PTR_DAT_001445ac;" (assignment_expression "puVar1 = PTR_DAT_001445ac" identifier = identifier) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar5 != puVar4)" ( (binary_expression "puVar5 != puVar4" identifier != identifier) )) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) comment (expression_statement "cprintf(puVar1 + -0x66c0);" (call_expression "cprintf(puVar1 + -0x66c0)" identifier (argument_list "(puVar1 + -0x66c0)" ( (binary_expression "puVar1 + -0x66c0" identifier + number_literal) ))) ;) })))
(translation_unit "void FUN_00044aac(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  \n  puVar2 = PTR_xrealloc_0014473c;\n  puVar1 = PTR_data_start_00144568;\n  iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);\n  puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);\n  if (iVar3 <= param_1) {\n    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }\n  puVar1 = PTR_DAT_001445ac;\n  puVar5 = puVar4 + param_1;\n  if (param_1 < 1) {\n    *puVar4 = 0;\n    FUN_00044708(puVar1 + -0x66c0);\n    return;\n  }\n  do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);\n  *puVar5 = 0;\n  FUN_00044708(puVar1 + -0x66c0);\n  return;\n}\n\n" (function_definition "void FUN_00044aac(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  \n  puVar2 = PTR_xrealloc_0014473c;\n  puVar1 = PTR_data_start_00144568;\n  iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);\n  puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);\n  if (iVar3 <= param_1) {\n    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }\n  puVar1 = PTR_DAT_001445ac;\n  puVar5 = puVar4 + param_1;\n  if (param_1 < 1) {\n    *puVar4 = 0;\n    FUN_00044708(puVar1 + -0x66c0);\n    return;\n  }\n  do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);\n  *puVar5 = 0;\n  FUN_00044708(puVar1 + -0x66c0);\n  return;\n}" primitive_type (function_declarator "FUN_00044aac(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  undefined1 *puVar4;\n  undefined1 *puVar5;\n  \n  puVar2 = PTR_xrealloc_0014473c;\n  puVar1 = PTR_data_start_00144568;\n  iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);\n  puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);\n  if (iVar3 <= param_1) {\n    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }\n  puVar1 = PTR_DAT_001445ac;\n  puVar5 = puVar4 + param_1;\n  if (param_1 < 1) {\n    *puVar4 = 0;\n    FUN_00044708(puVar1 + -0x66c0);\n    return;\n  }\n  do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);\n  *puVar5 = 0;\n  FUN_00044708(puVar1 + -0x66c0);\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 "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar2 = PTR_xrealloc_0014473c;" (assignment_expression "puVar2 = PTR_xrealloc_0014473c" identifier = identifier) ;) (expression_statement "puVar1 = PTR_data_start_00144568;" (assignment_expression "puVar1 = PTR_data_start_00144568" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);" (assignment_expression "iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0)" identifier = (pointer_expression "*(int *)(PTR_data_start_00144568 + 0x7bf0)" * (cast_expression "(int *)(PTR_data_start_00144568 + 0x7bf0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x7bf0)" ( (binary_expression "PTR_data_start_00144568 + 0x7bf0" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);" (assignment_expression "puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4)" identifier = (pointer_expression "*(undefined1 **)(PTR_data_start_00144568 + 0x7bf4)" * (cast_expression "(undefined1 **)(PTR_data_start_00144568 + 0x7bf4)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x7bf4)" ( (binary_expression "PTR_data_start_00144568 + 0x7bf4" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 <= param_1) {\n    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }" if (parenthesized_expression "(iVar3 <= param_1)" ( (binary_expression "iVar3 <= param_1" identifier <= identifier) )) (compound_statement "{\n    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }" { (expression_statement "iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;" (assignment_expression "iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10" identifier = (binary_expression "(param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10" (binary_expression "(param_1 - iVar3 & 0xfffffff0U) + iVar3" (parenthesized_expression "(param_1 - iVar3 & 0xfffffff0U)" ( (binary_expression "param_1 - iVar3 & 0xfffffff0U" (binary_expression "param_1 - iVar3" identifier - identifier) & number_literal) )) + identifier) + number_literal)) ;) (expression_statement "*(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;" (assignment_expression "*(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3" (pointer_expression "*(int *)(PTR_data_start_00144568 + 0x7bf0)" * (cast_expression "(int *)(PTR_data_start_00144568 + 0x7bf0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_data_start_00144568 + 0x7bf0)" ( (binary_expression "PTR_data_start_00144568 + 0x7bf0" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);" (assignment_expression "puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3)" identifier = (cast_expression "(undefined1 *)(*(code *)puVar2)(puVar4,iVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar2)(puVar4,iVar3)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4,iVar3)" ( identifier , identifier ))))) ;) (expression_statement "*(undefined1 **)(puVar1 + 0x7bf4) = puVar4;" (assignment_expression "*(undefined1 **)(puVar1 + 0x7bf4) = puVar4" (pointer_expression "*(undefined1 **)(puVar1 + 0x7bf4)" * (cast_expression "(undefined1 **)(puVar1 + 0x7bf4)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x7bf4)" ( (binary_expression "puVar1 + 0x7bf4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "puVar1 = PTR_DAT_001445ac;" (assignment_expression "puVar1 = PTR_DAT_001445ac" identifier = identifier) ;) (expression_statement "puVar5 = puVar4 + param_1;" (assignment_expression "puVar5 = puVar4 + param_1" identifier = (binary_expression "puVar4 + param_1" identifier + identifier)) ;) (if_statement "if (param_1 < 1) {\n    *puVar4 = 0;\n    FUN_00044708(puVar1 + -0x66c0);\n    return;\n  }" if (parenthesized_expression "(param_1 < 1)" ( (binary_expression "param_1 < 1" identifier < number_literal) )) (compound_statement "{\n    *puVar4 = 0;\n    FUN_00044708(puVar1 + -0x66c0);\n    return;\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "FUN_00044708(puVar1 + -0x66c0);" (call_expression "FUN_00044708(puVar1 + -0x66c0)" identifier (argument_list "(puVar1 + -0x66c0)" ( (binary_expression "puVar1 + -0x66c0" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (do_statement "do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);" do (compound_statement "{\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  }" { (expression_statement "*puVar4 = 0x20;" (assignment_expression "*puVar4 = 0x20" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar1 = PTR_DAT_001445ac;" (assignment_expression "puVar1 = PTR_DAT_001445ac" identifier = identifier) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar5 != puVar4)" ( (binary_expression "puVar5 != puVar4" identifier != identifier) )) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "FUN_00044708(puVar1 + -0x66c0);" (call_expression "FUN_00044708(puVar1 + -0x66c0)" identifier (argument_list "(puVar1 + -0x66c0)" ( (binary_expression "puVar1 + -0x66c0" 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 (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = 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 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 <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) & LIT) )) + IDENT) + 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00044aac(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined1 *puVar5;\n  \n  puVar2 = PTR_xrealloc_0014473c;\n  puVar1 = PTR_data_start_00144568;\n  iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);\n  puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);\n  if (iVar3 <= param_1) {\n    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }\n  puVar1 = PTR_DAT_001445ac;\n  puVar5 = puVar4 + param_1;\n  if (param_1 < 1) {\n    *puVar4 = 0;\n    FUN_00044708(puVar1 + -0x66c0);\n    return;\n  }\n  do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);\n  *puVar5 = 0;\n  FUN_00044708(puVar1 + -0x66c0);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00044aac(int param_1)" (identifier "FUN_00044aac") (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  undefined1 *puVar4;\n  undefined1 *puVar5;\n  \n  puVar2 = PTR_xrealloc_0014473c;\n  puVar1 = PTR_data_start_00144568;\n  iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);\n  puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);\n  if (iVar3 <= param_1) {\n    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }\n  puVar1 = PTR_DAT_001445ac;\n  puVar5 = puVar4 + param_1;\n  if (param_1 < 1) {\n    *puVar4 = 0;\n    FUN_00044708(puVar1 + -0x66c0);\n    return;\n  }\n  do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);\n  *puVar5 = 0;\n  FUN_00044708(puVar1 + -0x66c0);\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 "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (expression_statement "puVar2 = PTR_xrealloc_0014473c;" (assignment_expression "puVar2 = PTR_xrealloc_0014473c" (identifier "puVar2") (= "=") (identifier "PTR_xrealloc_0014473c")) (; ";")) (expression_statement "puVar1 = PTR_data_start_00144568;" (assignment_expression "puVar1 = PTR_data_start_00144568" (identifier "puVar1") (= "=") (identifier "PTR_data_start_00144568")) (; ";")) (expression_statement "iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);" (assignment_expression "iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(PTR_data_start_00144568 + 0x7bf0)" (* "*") (cast_expression "(int *)(PTR_data_start_00144568 + 0x7bf0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_data_start_00144568 + 0x7bf0)" (( "(") (binary_expression "PTR_data_start_00144568 + 0x7bf0" (identifier "PTR_data_start_00144568") (+ "+") (number_literal "0x7bf0")) () ")"))))) (; ";")) (expression_statement "puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);" (assignment_expression "puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4)" (identifier "puVar4") (= "=") (pointer_expression "*(undefined1 **)(PTR_data_start_00144568 + 0x7bf4)" (* "*") (cast_expression "(undefined1 **)(PTR_data_start_00144568 + 0x7bf4)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_data_start_00144568 + 0x7bf4)" (( "(") (binary_expression "PTR_data_start_00144568 + 0x7bf4" (identifier "PTR_data_start_00144568") (+ "+") (number_literal "0x7bf4")) () ")"))))) (; ";")) (if_statement "if (iVar3 <= param_1) {\n    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }" (if "if") (parenthesized_expression "(iVar3 <= param_1)" (( "(") (binary_expression "iVar3 <= param_1" (identifier "iVar3") (<= "<=") (identifier "param_1")) () ")")) (compound_statement "{\n    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;\n    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;\n    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);\n    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;\n  }" ({ "{") (expression_statement "iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;" (assignment_expression "iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10" (identifier "iVar3") (= "=") (binary_expression "(param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10" (binary_expression "(param_1 - iVar3 & 0xfffffff0U) + iVar3" (parenthesized_expression "(param_1 - iVar3 & 0xfffffff0U)" (( "(") (binary_expression "param_1 - iVar3 & 0xfffffff0U" (binary_expression "param_1 - iVar3" (identifier "param_1") (- "-") (identifier "iVar3")) (& "&") (number_literal "0xfffffff0U")) () ")")) (+ "+") (identifier "iVar3")) (+ "+") (number_literal "0x10"))) (; ";")) (expression_statement "*(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;" (assignment_expression "*(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3" (pointer_expression "*(int *)(PTR_data_start_00144568 + 0x7bf0)" (* "*") (cast_expression "(int *)(PTR_data_start_00144568 + 0x7bf0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_data_start_00144568 + 0x7bf0)" (( "(") (binary_expression "PTR_data_start_00144568 + 0x7bf0" (identifier "PTR_data_start_00144568") (+ "+") (number_literal "0x7bf0")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);" (assignment_expression "puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)(*(code *)puVar2)(puVar4,iVar3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)puVar2)(puVar4,iVar3)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(puVar4,iVar3)" (( "(") (identifier "puVar4") (, ",") (identifier "iVar3") () ")"))))) (; ";")) (expression_statement "*(undefined1 **)(puVar1 + 0x7bf4) = puVar4;" (assignment_expression "*(undefined1 **)(puVar1 + 0x7bf4) = puVar4" (pointer_expression "*(undefined1 **)(puVar1 + 0x7bf4)" (* "*") (cast_expression "(undefined1 **)(puVar1 + 0x7bf4)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0x7bf4)" (( "(") (binary_expression "puVar1 + 0x7bf4" (identifier "puVar1") (+ "+") (number_literal "0x7bf4")) () ")")))) (= "=") (identifier "puVar4")) (; ";")) (} "}"))) (expression_statement "puVar1 = PTR_DAT_001445ac;" (assignment_expression "puVar1 = PTR_DAT_001445ac" (identifier "puVar1") (= "=") (identifier "PTR_DAT_001445ac")) (; ";")) (expression_statement "puVar5 = puVar4 + param_1;" (assignment_expression "puVar5 = puVar4 + param_1" (identifier "puVar5") (= "=") (binary_expression "puVar4 + param_1" (identifier "puVar4") (+ "+") (identifier "param_1"))) (; ";")) (if_statement "if (param_1 < 1) {\n    *puVar4 = 0;\n    FUN_00044708(puVar1 + -0x66c0);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 < 1)" (( "(") (binary_expression "param_1 < 1" (identifier "param_1") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    *puVar4 = 0;\n    FUN_00044708(puVar1 + -0x66c0);\n    return;\n  }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00044708(puVar1 + -0x66c0);" (call_expression "FUN_00044708(puVar1 + -0x66c0)" (identifier "FUN_00044708") (argument_list "(puVar1 + -0x66c0)" (( "(") (binary_expression "puVar1 + -0x66c0" (identifier "puVar1") (+ "+") (number_literal "-0x66c0")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (do_statement "do {\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  } while (puVar5 != puVar4);" (do "do") (compound_statement "{\n    *puVar4 = 0x20;\n    puVar1 = PTR_DAT_001445ac;\n    puVar4 = puVar4 + 1;\n  }" ({ "{") (expression_statement "*puVar4 = 0x20;" (assignment_expression "*puVar4 = 0x20" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0x20")) (; ";")) (expression_statement "puVar1 = PTR_DAT_001445ac;" (assignment_expression "puVar1 = PTR_DAT_001445ac" (identifier "puVar1") (= "=") (identifier "PTR_DAT_001445ac")) (; ";")) (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 "(puVar5 != puVar4)" (( "(") (binary_expression "puVar5 != puVar4" (identifier "puVar5") (!= "!=") (identifier "puVar4")) () ")")) (; ";")) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00044708(puVar1 + -0x66c0);" (call_expression "FUN_00044708(puVar1 + -0x66c0)" (identifier "FUN_00044708") (argument_list "(puVar1 + -0x66c0)" (( "(") (binary_expression "puVar1 + -0x66c0" (identifier "puVar1") (+ "+") (number_literal "-0x66c0")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(int var_3)

{
  type_1 *var_4;
  type_1 *puVar2;
  int var_2;
  type_2 *var_5;
  type_2 *var_7;
  
  puVar2 = PTR_xrealloc_0014473c;
  var_4 = var_1;
  var_2 = *(int *)(var_1 + 0x7bf0);
  var_5 = *(type_2 **)(var_1 + 0x7bf4);
  if (var_2 <= var_3) {
    var_2 = (var_3 - var_2 & 0xfffffff0U) + var_2 + 0x10;
    *(int *)(var_1 + 0x7bf0) = var_2;
    var_5 = (type_2 *)(*(type_3 *)puVar2)(var_5,var_2);
    *(type_2 **)(var_4 + 0x7bf4) = var_5;
  }
  var_4 = PTR_DAT_001445ac;
  var_7 = var_5 + var_3;
  if (var_3 < 1) {
    *var_5 = 0;
                    /* WARNING: Subroutine does not return */
    var_6(var_4 + -0x66c0);
  }
  do {
    *var_5 = 0x20;
    var_4 = PTR_DAT_001445ac;
    var_5 = var_5 + 1;
  } while (var_7 != var_5);
  *var_7 = 0;
                    /* WARNING: Subroutine does not return */
  var_6(var_4 + -0x66c0);
}


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

void MASKED(int param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined1 *puVar4;
  undefined1 *puVar5;
  
  puVar2 = PTR_xrealloc_0014473c;
  puVar1 = PTR_data_start_00144568;
  iVar3 = *(int *)(PTR_data_start_00144568 + 0x7bf0);
  puVar4 = *(undefined1 **)(PTR_data_start_00144568 + 0x7bf4);
  if (iVar3 <= param_1) {
    iVar3 = (param_1 - iVar3 & 0xfffffff0U) + iVar3 + 0x10;
    *(int *)(PTR_data_start_00144568 + 0x7bf0) = iVar3;
    puVar4 = (undefined1 *)(*(code *)puVar2)(puVar4,iVar3);
    *(undefined1 **)(puVar1 + 0x7bf4) = puVar4;
  }
  puVar1 = PTR_DAT_001445ac;
  puVar5 = puVar4 + param_1;
  if (param_1 < 1) {
    *puVar4 = 0;
    FUN_00044708(puVar1 + -0x66c0);
    return;
  }
  do {
    *puVar4 = 0x20;
    puVar1 = PTR_DAT_001445ac;
    puVar4 = puVar4 + 1;
  } while (puVar5 != puVar4);
  *puVar5 = 0;
  FUN_00044708(puVar1 + -0x66c0);
  return;
}

