
void * stalloc(size_t nbytes)

{
  undefined *puVar1;
  int *piVar2;
  void *pvVar3;
  uint uVar4;
  int *piVar5;
  uint uVar6;
  uint uVar7;
  
  puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;
  uVar6 = nbytes + 7 & 0xfffffff8;
  piVar5 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;
  uVar4 = piVar5[3];
  if (uVar4 < uVar6) {
    uVar4 = 0x1fc;
    if (uVar6 < 0x1f8) {
      uVar7 = 0x1f8;
    }
    else {
      uVar4 = uVar6 + 4;
      uVar7 = uVar6;
      if (uVar4 < uVar6) {
                    /* WARNING: Subroutine does not return */
        ash_msg_and_raise_error(PTR_bb_msg_memory_exhausted_0012a270);
      }
    }
    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =
         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;
    piVar2 = (int *)(*(code *)PTR_xmalloc_0012a230)(uVar4);
    piVar5 = *(int **)puVar1;
    *piVar2 = *piVar5;
    piVar5[1] = (int)(piVar2 + 1);
    piVar5[3] = uVar7;
    piVar5[2] = (int)(piVar2 + 1) + uVar7;
    *piVar5 = (int)piVar2;
    int_on();
    uVar4 = piVar5[3];
  }
  pvVar3 = (void *)piVar5[1];
  piVar5[3] = uVar4 - uVar6;
  piVar5[1] = (int)pvVar3 + uVar6;
  return pvVar3;
}



void FUN_00070940(int param_1)

{
  undefined *puVar1;
  int *piVar2;
  uint uVar3;
  int *piVar4;
  uint uVar5;
  uint uVar6;
  
  puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;
  uVar5 = param_1 + 7U & 0xfffffff8;
  piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;
  uVar3 = piVar4[3];
  if (uVar3 < uVar5) {
    uVar3 = 0x1fc;
    if (uVar5 < 0x1f8) {
      uVar6 = 0x1f8;
    }
    else {
      uVar3 = uVar5 + 4;
      uVar6 = uVar5;
      if (uVar3 < uVar5) {
                    /* WARNING: Subroutine does not return */
        FUN_0006ee68(PTR_s_out_of_memory_0012a270);
      }
    }
    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =
         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;
    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);
    piVar4 = *(int **)puVar1;
    *piVar2 = *piVar4;
    piVar4[1] = (int)(piVar2 + 1);
    piVar4[3] = uVar6;
    piVar4[2] = (int)(piVar2 + 1) + uVar6;
    *piVar4 = (int)piVar2;
    FUN_0006d568();
    uVar3 = piVar4[3];
  }
  piVar4[3] = uVar3 - uVar5;
  piVar4[1] = piVar4[1] + uVar5;
  return;
}


lui gp,0xc
addiu gp,gp,0x1810
addu gp,gp,t9
addiu sp,sp,-0x30
addiu a0,a0,0x7
sw s3,0x28(sp)
sw s0,0x1c(sp)
lw s3,-0x78f8(gp)
sw s1,0x20(sp)
li s1,-0x8
sw gp,0x10(sp)
and s1,a0,s1
sw ra,0x2c(sp)
lw s0,0x0(s3)
sw s2,0x24(sp)
lw v1,0xc(s0)
sltu v0,v1,s1
beq v0,zero,0x00070a04
_sltiu v0,s1,0x1f8
beq v0,zero,0x0007099c
_li a0,0x1fc
b 0x000709ac
_li s2,0x1f8
addiu a0,s1,0x4
sltu v0,a0,s1
bne v0,zero,0x00070a34
_or s2,s1,zero
lw v0,-0x7904(gp)
lw v1,0x0(v0)
lw v0,0x24(v1)
addiu v0,v0,0x1
sw v0,0x24(v1)
lw t9,-0x7f20(gp)
jalr t9
_nop
lw gp,0x10(sp)
addiu v1,v0,0x4
lw s0,0x0(s3)
addu a0,v1,s2
lw t9,-0x793c(gp)
lw a1,0x0(s0)
addiu t9,t9,-0x2a98
sw a1,0x0(v0)
sw v1,0x4(s0)
sw s2,0xc(s0)
sw a0,0x8(s0)
bal 0x0006d568
_sw v0,0x0(s0)
lw v1,0xc(s0)
lw v0,0x4(s0)
subu v1,v1,s1
lw ra,0x2c(sp)
lw s3,0x28(sp)
addu s1,v0,s1
lw s2,0x24(sp)
sw v1,0xc(s0)
sw s1,0x4(s0)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x793c(gp)
lw a0,-0x7ee0(gp)
addiu t9,t9,-0x1198
bal 0x0006ee68
_nop
(translation_unit "void FUN_00070940(int param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar5 = param_1 + 7U & 0xfffffff8;\n  piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar3 = piVar4[3];\n  if (uVar3 < uVar5) {\n    uVar3 = 0x1fc;\n    if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);\n    piVar4 = *(int **)puVar1;\n    *piVar2 = *piVar4;\n    piVar4[1] = (int)(piVar2 + 1);\n    piVar4[3] = uVar6;\n    piVar4[2] = (int)(piVar2 + 1) + uVar6;\n    *piVar4 = (int)piVar2;\n    FUN_0006d568();\n    uVar3 = piVar4[3];\n  }\n  piVar4[3] = uVar3 - uVar5;\n  piVar4[1] = piVar4[1] + uVar5;\n  return;\n}\n\n" (function_definition "void FUN_00070940(int param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar5 = param_1 + 7U & 0xfffffff8;\n  piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar3 = piVar4[3];\n  if (uVar3 < uVar5) {\n    uVar3 = 0x1fc;\n    if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);\n    piVar4 = *(int **)puVar1;\n    *piVar2 = *piVar4;\n    piVar4[1] = (int)(piVar2 + 1);\n    piVar4[3] = uVar6;\n    piVar4[2] = (int)(piVar2 + 1) + uVar6;\n    *piVar4 = (int)piVar2;\n    FUN_0006d568();\n    uVar3 = piVar4[3];\n  }\n  piVar4[3] = uVar3 - uVar5;\n  piVar4[1] = piVar4[1] + uVar5;\n  return;\n}" primitive_type (function_declarator "FUN_00070940(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar5 = param_1 + 7U & 0xfffffff8;\n  piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar3 = piVar4[3];\n  if (uVar3 < uVar5) {\n    uVar3 = 0x1fc;\n    if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);\n    piVar4 = *(int **)puVar1;\n    *piVar2 = *piVar4;\n    piVar4[1] = (int)(piVar2 + 1);\n    piVar4[3] = uVar6;\n    piVar4[2] = (int)(piVar2 + 1) + uVar6;\n    *piVar4 = (int)piVar2;\n    FUN_0006d568();\n    uVar3 = piVar4[3];\n  }\n  piVar4[3] = uVar3 - uVar5;\n  piVar4[1] = piVar4[1] + uVar5;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;" (assignment_expression "puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858" identifier = identifier) ;) (expression_statement "uVar5 = param_1 + 7U & 0xfffffff8;" (assignment_expression "uVar5 = param_1 + 7U & 0xfffffff8" identifier = (binary_expression "param_1 + 7U & 0xfffffff8" (binary_expression "param_1 + 7U" identifier + number_literal) & number_literal)) ;) (expression_statement "piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;" (assignment_expression "piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858" identifier = (pointer_expression "*(int **)PTR_ash_ptr_to_globals_memstack_0012a858" * (cast_expression "(int **)PTR_ash_ptr_to_globals_memstack_0012a858" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "uVar3 = piVar4[3];" (assignment_expression "uVar3 = piVar4[3]" identifier = (subscript_expression "piVar4[3]" identifier [ number_literal ])) ;) (if_statement "if (uVar3 < uVar5) {\n    uVar3 = 0x1fc;\n    if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);\n    piVar4 = *(int **)puVar1;\n    *piVar2 = *piVar4;\n    piVar4[1] = (int)(piVar2 + 1);\n    piVar4[3] = uVar6;\n    piVar4[2] = (int)(piVar2 + 1) + uVar6;\n    *piVar4 = (int)piVar2;\n    FUN_0006d568();\n    uVar3 = piVar4[3];\n  }" if (parenthesized_expression "(uVar3 < uVar5)" ( (binary_expression "uVar3 < uVar5" identifier < identifier) )) (compound_statement "{\n    uVar3 = 0x1fc;\n    if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);\n    piVar4 = *(int **)puVar1;\n    *piVar2 = *piVar4;\n    piVar4[1] = (int)(piVar2 + 1);\n    piVar4[3] = uVar6;\n    piVar4[2] = (int)(piVar2 + 1) + uVar6;\n    *piVar4 = (int)piVar2;\n    FUN_0006d568();\n    uVar3 = piVar4[3];\n  }" { (expression_statement "uVar3 = 0x1fc;" (assignment_expression "uVar3 = 0x1fc" identifier = number_literal) ;) (if_statement "if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }" if (parenthesized_expression "(uVar5 < 0x1f8)" ( (binary_expression "uVar5 < 0x1f8" identifier < number_literal) )) (compound_statement "{\n      uVar6 = 0x1f8;\n    }" { (expression_statement "uVar6 = 0x1f8;" (assignment_expression "uVar6 = 0x1f8" identifier = number_literal) ;) }) (else_clause "else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }" else (compound_statement "{\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }" { (expression_statement "uVar3 = uVar5 + 4;" (assignment_expression "uVar3 = uVar5 + 4" identifier = (binary_expression "uVar5 + 4" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" identifier = identifier) ;) (if_statement "if (uVar3 < uVar5) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }" if (parenthesized_expression "(uVar3 < uVar5)" ( (binary_expression "uVar3 < uVar5" identifier < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }" { comment (expression_statement "FUN_0006ee68(PTR_s_out_of_memory_0012a270);" (call_expression "FUN_0006ee68(PTR_s_out_of_memory_0012a270)" identifier (argument_list "(PTR_s_out_of_memory_0012a270)" ( identifier ))) ;) })) }))) (expression_statement "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;" (assignment_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) = (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal)) ;) (expression_statement "piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3)" identifier = (cast_expression "(int *)(*(code *)PTR_FUN_0012a230)(uVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_FUN_0012a230)(uVar3)" (parenthesized_expression "(*(code *)PTR_FUN_0012a230)" ( (pointer_expression "*(code *)PTR_FUN_0012a230" * (cast_expression "(code *)PTR_FUN_0012a230" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier ))))) ;) (expression_statement "piVar4 = *(int **)puVar1;" (assignment_expression "piVar4 = *(int **)puVar1" identifier = (pointer_expression "*(int **)puVar1" * (cast_expression "(int **)puVar1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "*piVar2 = *piVar4;" (assignment_expression "*piVar2 = *piVar4" (pointer_expression "*piVar2" * identifier) = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar4[1] = (int)(piVar2 + 1);" (assignment_expression "piVar4[1] = (int)(piVar2 + 1)" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = (cast_expression "(int)(piVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "piVar4[3] = uVar6;" (assignment_expression "piVar4[3] = uVar6" (subscript_expression "piVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar4[2] = (int)(piVar2 + 1) + uVar6;" (assignment_expression "piVar4[2] = (int)(piVar2 + 1) + uVar6" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = (binary_expression "(int)(piVar2 + 1) + uVar6" (cast_expression "(int)(piVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) ))) + identifier)) ;) (expression_statement "*piVar4 = (int)piVar2;" (assignment_expression "*piVar4 = (int)piVar2" (pointer_expression "*piVar4" * identifier) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "FUN_0006d568();" (call_expression "FUN_0006d568()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar3 = piVar4[3];" (assignment_expression "uVar3 = piVar4[3]" identifier = (subscript_expression "piVar4[3]" identifier [ number_literal ])) ;) })) (expression_statement "piVar4[3] = uVar3 - uVar5;" (assignment_expression "piVar4[3] = uVar3 - uVar5" (subscript_expression "piVar4[3]" identifier [ number_literal ]) = (binary_expression "uVar3 - uVar5" identifier - identifier)) ;) (expression_statement "piVar4[1] = piVar4[1] + uVar5;" (assignment_expression "piVar4[1] = piVar4[1] + uVar5" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = (binary_expression "piVar4[1] + uVar5" (subscript_expression "piVar4[1]" identifier [ number_literal ]) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void * stalloc(size_t nbytes)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  void *pvVar3;\n  uint uVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar6 = nbytes + 7 & 0xfffffff8;\n  piVar5 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar4 = piVar5[3];\n  if (uVar4 < uVar6) {\n    uVar4 = 0x1fc;\n    if (uVar6 < 0x1f8) {\n      uVar7 = 0x1f8;\n    }\n    else {\n      uVar4 = uVar6 + 4;\n      uVar7 = uVar6;\n      if (uVar4 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n        ash_msg_and_raise_error(PTR_bb_msg_memory_exhausted_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_xmalloc_0012a230)(uVar4);\n    piVar5 = *(int **)puVar1;\n    *piVar2 = *piVar5;\n    piVar5[1] = (int)(piVar2 + 1);\n    piVar5[3] = uVar7;\n    piVar5[2] = (int)(piVar2 + 1) + uVar7;\n    *piVar5 = (int)piVar2;\n    int_on();\n    uVar4 = piVar5[3];\n  }\n  pvVar3 = (void *)piVar5[1];\n  piVar5[3] = uVar4 - uVar6;\n  piVar5[1] = (int)pvVar3 + uVar6;\n  return pvVar3;\n}\n\n" (function_definition "void * stalloc(size_t nbytes)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  void *pvVar3;\n  uint uVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar6 = nbytes + 7 & 0xfffffff8;\n  piVar5 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar4 = piVar5[3];\n  if (uVar4 < uVar6) {\n    uVar4 = 0x1fc;\n    if (uVar6 < 0x1f8) {\n      uVar7 = 0x1f8;\n    }\n    else {\n      uVar4 = uVar6 + 4;\n      uVar7 = uVar6;\n      if (uVar4 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n        ash_msg_and_raise_error(PTR_bb_msg_memory_exhausted_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_xmalloc_0012a230)(uVar4);\n    piVar5 = *(int **)puVar1;\n    *piVar2 = *piVar5;\n    piVar5[1] = (int)(piVar2 + 1);\n    piVar5[3] = uVar7;\n    piVar5[2] = (int)(piVar2 + 1) + uVar7;\n    *piVar5 = (int)piVar2;\n    int_on();\n    uVar4 = piVar5[3];\n  }\n  pvVar3 = (void *)piVar5[1];\n  piVar5[3] = uVar4 - uVar6;\n  piVar5[1] = (int)pvVar3 + uVar6;\n  return pvVar3;\n}" primitive_type (pointer_declarator "* stalloc(size_t nbytes)" * (function_declarator "stalloc(size_t nbytes)" identifier (parameter_list "(size_t nbytes)" ( (parameter_declaration "size_t nbytes" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  void *pvVar3;\n  uint uVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar6 = nbytes + 7 & 0xfffffff8;\n  piVar5 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar4 = piVar5[3];\n  if (uVar4 < uVar6) {\n    uVar4 = 0x1fc;\n    if (uVar6 < 0x1f8) {\n      uVar7 = 0x1f8;\n    }\n    else {\n      uVar4 = uVar6 + 4;\n      uVar7 = uVar6;\n      if (uVar4 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n        ash_msg_and_raise_error(PTR_bb_msg_memory_exhausted_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_xmalloc_0012a230)(uVar4);\n    piVar5 = *(int **)puVar1;\n    *piVar2 = *piVar5;\n    piVar5[1] = (int)(piVar2 + 1);\n    piVar5[3] = uVar7;\n    piVar5[2] = (int)(piVar2 + 1) + uVar7;\n    *piVar5 = (int)piVar2;\n    int_on();\n    uVar4 = piVar5[3];\n  }\n  pvVar3 = (void *)piVar5[1];\n  piVar5[3] = uVar4 - uVar6;\n  piVar5[1] = (int)pvVar3 + uVar6;\n  return pvVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;" (assignment_expression "puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858" identifier = identifier) ;) (expression_statement "uVar6 = nbytes + 7 & 0xfffffff8;" (assignment_expression "uVar6 = nbytes + 7 & 0xfffffff8" identifier = (binary_expression "nbytes + 7 & 0xfffffff8" (binary_expression "nbytes + 7" identifier + number_literal) & number_literal)) ;) (expression_statement "piVar5 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;" (assignment_expression "piVar5 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858" identifier = (pointer_expression "*(int **)PTR_ash_ptr_to_globals_memstack_0012a858" * (cast_expression "(int **)PTR_ash_ptr_to_globals_memstack_0012a858" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "uVar4 = piVar5[3];" (assignment_expression "uVar4 = piVar5[3]" identifier = (subscript_expression "piVar5[3]" identifier [ number_literal ])) ;) (if_statement "if (uVar4 < uVar6) {\n    uVar4 = 0x1fc;\n    if (uVar6 < 0x1f8) {\n      uVar7 = 0x1f8;\n    }\n    else {\n      uVar4 = uVar6 + 4;\n      uVar7 = uVar6;\n      if (uVar4 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n        ash_msg_and_raise_error(PTR_bb_msg_memory_exhausted_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_xmalloc_0012a230)(uVar4);\n    piVar5 = *(int **)puVar1;\n    *piVar2 = *piVar5;\n    piVar5[1] = (int)(piVar2 + 1);\n    piVar5[3] = uVar7;\n    piVar5[2] = (int)(piVar2 + 1) + uVar7;\n    *piVar5 = (int)piVar2;\n    int_on();\n    uVar4 = piVar5[3];\n  }" if (parenthesized_expression "(uVar4 < uVar6)" ( (binary_expression "uVar4 < uVar6" identifier < identifier) )) (compound_statement "{\n    uVar4 = 0x1fc;\n    if (uVar6 < 0x1f8) {\n      uVar7 = 0x1f8;\n    }\n    else {\n      uVar4 = uVar6 + 4;\n      uVar7 = uVar6;\n      if (uVar4 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n        ash_msg_and_raise_error(PTR_bb_msg_memory_exhausted_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_xmalloc_0012a230)(uVar4);\n    piVar5 = *(int **)puVar1;\n    *piVar2 = *piVar5;\n    piVar5[1] = (int)(piVar2 + 1);\n    piVar5[3] = uVar7;\n    piVar5[2] = (int)(piVar2 + 1) + uVar7;\n    *piVar5 = (int)piVar2;\n    int_on();\n    uVar4 = piVar5[3];\n  }" { (expression_statement "uVar4 = 0x1fc;" (assignment_expression "uVar4 = 0x1fc" identifier = number_literal) ;) (if_statement "if (uVar6 < 0x1f8) {\n      uVar7 = 0x1f8;\n    }\n    else {\n      uVar4 = uVar6 + 4;\n      uVar7 = uVar6;\n      if (uVar4 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n        ash_msg_and_raise_error(PTR_bb_msg_memory_exhausted_0012a270);\n      }\n    }" if (parenthesized_expression "(uVar6 < 0x1f8)" ( (binary_expression "uVar6 < 0x1f8" identifier < number_literal) )) (compound_statement "{\n      uVar7 = 0x1f8;\n    }" { (expression_statement "uVar7 = 0x1f8;" (assignment_expression "uVar7 = 0x1f8" identifier = number_literal) ;) }) (else_clause "else {\n      uVar4 = uVar6 + 4;\n      uVar7 = uVar6;\n      if (uVar4 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n        ash_msg_and_raise_error(PTR_bb_msg_memory_exhausted_0012a270);\n      }\n    }" else (compound_statement "{\n      uVar4 = uVar6 + 4;\n      uVar7 = uVar6;\n      if (uVar4 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n        ash_msg_and_raise_error(PTR_bb_msg_memory_exhausted_0012a270);\n      }\n    }" { (expression_statement "uVar4 = uVar6 + 4;" (assignment_expression "uVar4 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) (expression_statement "uVar7 = uVar6;" (assignment_expression "uVar7 = uVar6" identifier = identifier) ;) (if_statement "if (uVar4 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n        ash_msg_and_raise_error(PTR_bb_msg_memory_exhausted_0012a270);\n      }" if (parenthesized_expression "(uVar4 < uVar6)" ( (binary_expression "uVar4 < uVar6" identifier < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        ash_msg_and_raise_error(PTR_bb_msg_memory_exhausted_0012a270);\n      }" { comment (expression_statement "ash_msg_and_raise_error(PTR_bb_msg_memory_exhausted_0012a270);" (call_expression "ash_msg_and_raise_error(PTR_bb_msg_memory_exhausted_0012a270)" identifier (argument_list "(PTR_bb_msg_memory_exhausted_0012a270)" ( identifier ))) ;) })) }))) (expression_statement "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;" (assignment_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) = (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal)) ;) (expression_statement "piVar2 = (int *)(*(code *)PTR_xmalloc_0012a230)(uVar4);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_xmalloc_0012a230)(uVar4)" identifier = (cast_expression "(int *)(*(code *)PTR_xmalloc_0012a230)(uVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_0012a230)(uVar4)" (parenthesized_expression "(*(code *)PTR_xmalloc_0012a230)" ( (pointer_expression "*(code *)PTR_xmalloc_0012a230" * (cast_expression "(code *)PTR_xmalloc_0012a230" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))))) ;) (expression_statement "piVar5 = *(int **)puVar1;" (assignment_expression "piVar5 = *(int **)puVar1" identifier = (pointer_expression "*(int **)puVar1" * (cast_expression "(int **)puVar1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "*piVar2 = *piVar5;" (assignment_expression "*piVar2 = *piVar5" (pointer_expression "*piVar2" * identifier) = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "piVar5[1] = (int)(piVar2 + 1);" (assignment_expression "piVar5[1] = (int)(piVar2 + 1)" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (cast_expression "(int)(piVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "piVar5[3] = uVar7;" (assignment_expression "piVar5[3] = uVar7" (subscript_expression "piVar5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[2] = (int)(piVar2 + 1) + uVar7;" (assignment_expression "piVar5[2] = (int)(piVar2 + 1) + uVar7" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = (binary_expression "(int)(piVar2 + 1) + uVar7" (cast_expression "(int)(piVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) ))) + identifier)) ;) (expression_statement "*piVar5 = (int)piVar2;" (assignment_expression "*piVar5 = (int)piVar2" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "int_on();" (call_expression "int_on()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar4 = piVar5[3];" (assignment_expression "uVar4 = piVar5[3]" identifier = (subscript_expression "piVar5[3]" identifier [ number_literal ])) ;) })) (expression_statement "pvVar3 = (void *)piVar5[1];" (assignment_expression "pvVar3 = (void *)piVar5[1]" identifier = (cast_expression "(void *)piVar5[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar5[3] = uVar4 - uVar6;" (assignment_expression "piVar5[3] = uVar4 - uVar6" (subscript_expression "piVar5[3]" identifier [ number_literal ]) = (binary_expression "uVar4 - uVar6" identifier - identifier)) ;) (expression_statement "piVar5[1] = (int)pvVar3 + uVar6;" (assignment_expression "piVar5[1] = (int)pvVar3 + uVar6" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (binary_expression "(int)pvVar3 + uVar6" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (return_statement "return pvVar3;" return identifier ;) })))
(translation_unit "void FUN_00070940(int param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar5 = param_1 + 7U & 0xfffffff8;\n  piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar3 = piVar4[3];\n  if (uVar3 < uVar5) {\n    uVar3 = 0x1fc;\n    if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);\n    piVar4 = *(int **)puVar1;\n    *piVar2 = *piVar4;\n    piVar4[1] = (int)(piVar2 + 1);\n    piVar4[3] = uVar6;\n    piVar4[2] = (int)(piVar2 + 1) + uVar6;\n    *piVar4 = (int)piVar2;\n    FUN_0006d568();\n    uVar3 = piVar4[3];\n  }\n  piVar4[3] = uVar3 - uVar5;\n  piVar4[1] = piVar4[1] + uVar5;\n  return;\n}\n\n" (function_definition "void FUN_00070940(int param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar5 = param_1 + 7U & 0xfffffff8;\n  piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar3 = piVar4[3];\n  if (uVar3 < uVar5) {\n    uVar3 = 0x1fc;\n    if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);\n    piVar4 = *(int **)puVar1;\n    *piVar2 = *piVar4;\n    piVar4[1] = (int)(piVar2 + 1);\n    piVar4[3] = uVar6;\n    piVar4[2] = (int)(piVar2 + 1) + uVar6;\n    *piVar4 = (int)piVar2;\n    FUN_0006d568();\n    uVar3 = piVar4[3];\n  }\n  piVar4[3] = uVar3 - uVar5;\n  piVar4[1] = piVar4[1] + uVar5;\n  return;\n}" primitive_type (function_declarator "FUN_00070940(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar5 = param_1 + 7U & 0xfffffff8;\n  piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar3 = piVar4[3];\n  if (uVar3 < uVar5) {\n    uVar3 = 0x1fc;\n    if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);\n    piVar4 = *(int **)puVar1;\n    *piVar2 = *piVar4;\n    piVar4[1] = (int)(piVar2 + 1);\n    piVar4[3] = uVar6;\n    piVar4[2] = (int)(piVar2 + 1) + uVar6;\n    *piVar4 = (int)piVar2;\n    FUN_0006d568();\n    uVar3 = piVar4[3];\n  }\n  piVar4[3] = uVar3 - uVar5;\n  piVar4[1] = piVar4[1] + uVar5;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;" (assignment_expression "puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858" identifier = identifier) ;) (expression_statement "uVar5 = param_1 + 7U & 0xfffffff8;" (assignment_expression "uVar5 = param_1 + 7U & 0xfffffff8" identifier = (binary_expression "param_1 + 7U & 0xfffffff8" (binary_expression "param_1 + 7U" identifier + number_literal) & number_literal)) ;) (expression_statement "piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;" (assignment_expression "piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858" identifier = (pointer_expression "*(int **)PTR_ash_ptr_to_globals_memstack_0012a858" * (cast_expression "(int **)PTR_ash_ptr_to_globals_memstack_0012a858" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "uVar3 = piVar4[3];" (assignment_expression "uVar3 = piVar4[3]" identifier = (subscript_expression "piVar4[3]" identifier [ number_literal ])) ;) (if_statement "if (uVar3 < uVar5) {\n    uVar3 = 0x1fc;\n    if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);\n    piVar4 = *(int **)puVar1;\n    *piVar2 = *piVar4;\n    piVar4[1] = (int)(piVar2 + 1);\n    piVar4[3] = uVar6;\n    piVar4[2] = (int)(piVar2 + 1) + uVar6;\n    *piVar4 = (int)piVar2;\n    FUN_0006d568();\n    uVar3 = piVar4[3];\n  }" if (parenthesized_expression "(uVar3 < uVar5)" ( (binary_expression "uVar3 < uVar5" identifier < identifier) )) (compound_statement "{\n    uVar3 = 0x1fc;\n    if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);\n    piVar4 = *(int **)puVar1;\n    *piVar2 = *piVar4;\n    piVar4[1] = (int)(piVar2 + 1);\n    piVar4[3] = uVar6;\n    piVar4[2] = (int)(piVar2 + 1) + uVar6;\n    *piVar4 = (int)piVar2;\n    FUN_0006d568();\n    uVar3 = piVar4[3];\n  }" { (expression_statement "uVar3 = 0x1fc;" (assignment_expression "uVar3 = 0x1fc" identifier = number_literal) ;) (if_statement "if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }" if (parenthesized_expression "(uVar5 < 0x1f8)" ( (binary_expression "uVar5 < 0x1f8" identifier < number_literal) )) (compound_statement "{\n      uVar6 = 0x1f8;\n    }" { (expression_statement "uVar6 = 0x1f8;" (assignment_expression "uVar6 = 0x1f8" identifier = number_literal) ;) }) (else_clause "else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }" else (compound_statement "{\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }" { (expression_statement "uVar3 = uVar5 + 4;" (assignment_expression "uVar3 = uVar5 + 4" identifier = (binary_expression "uVar5 + 4" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" identifier = identifier) ;) (if_statement "if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }" if (parenthesized_expression "(uVar3 < uVar5)" ( (binary_expression "uVar3 < uVar5" identifier < identifier) )) (compound_statement "{\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }" { (expression_statement "FUN_0006ee68(PTR_s_out_of_memory_0012a270);" (call_expression "FUN_0006ee68(PTR_s_out_of_memory_0012a270)" identifier (argument_list "(PTR_s_out_of_memory_0012a270)" ( identifier ))) ;) })) }))) (expression_statement "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;" (assignment_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) = (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal)) ;) (expression_statement "piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3)" identifier = (cast_expression "(int *)(*(code *)PTR_FUN_0012a230)(uVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_FUN_0012a230)(uVar3)" (parenthesized_expression "(*(code *)PTR_FUN_0012a230)" ( (pointer_expression "*(code *)PTR_FUN_0012a230" * (cast_expression "(code *)PTR_FUN_0012a230" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier ))))) ;) (expression_statement "piVar4 = *(int **)puVar1;" (assignment_expression "piVar4 = *(int **)puVar1" identifier = (pointer_expression "*(int **)puVar1" * (cast_expression "(int **)puVar1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "*piVar2 = *piVar4;" (assignment_expression "*piVar2 = *piVar4" (pointer_expression "*piVar2" * identifier) = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar4[1] = (int)(piVar2 + 1);" (assignment_expression "piVar4[1] = (int)(piVar2 + 1)" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = (cast_expression "(int)(piVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "piVar4[3] = uVar6;" (assignment_expression "piVar4[3] = uVar6" (subscript_expression "piVar4[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar4[2] = (int)(piVar2 + 1) + uVar6;" (assignment_expression "piVar4[2] = (int)(piVar2 + 1) + uVar6" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = (binary_expression "(int)(piVar2 + 1) + uVar6" (cast_expression "(int)(piVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 1)" ( (binary_expression "piVar2 + 1" identifier + number_literal) ))) + identifier)) ;) (expression_statement "*piVar4 = (int)piVar2;" (assignment_expression "*piVar4 = (int)piVar2" (pointer_expression "*piVar4" * identifier) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "FUN_0006d568();" (call_expression "FUN_0006d568()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar3 = piVar4[3];" (assignment_expression "uVar3 = piVar4[3]" identifier = (subscript_expression "piVar4[3]" identifier [ number_literal ])) ;) })) (expression_statement "piVar4[3] = uVar3 - uVar5;" (assignment_expression "piVar4[3] = uVar3 - uVar5" (subscript_expression "piVar4[3]" identifier [ number_literal ]) = (binary_expression "uVar3 - uVar5" identifier - identifier)) ;) (expression_statement "piVar4[1] = piVar4[1] + uVar5;" (assignment_expression "piVar4[1] = piVar4[1] + uVar5" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = (binary_expression "piVar4[1] + uVar5" (subscript_expression "piVar4[1]" identifier [ number_literal ]) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (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 = (binary_expression (binary_expression IDENT + LIT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) + LIT)) ;) (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 ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00070940(int param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar5 = param_1 + 7U & 0xfffffff8;\n  piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar3 = piVar4[3];\n  if (uVar3 < uVar5) {\n    uVar3 = 0x1fc;\n    if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);\n    piVar4 = *(int **)puVar1;\n    *piVar2 = *piVar4;\n    piVar4[1] = (int)(piVar2 + 1);\n    piVar4[3] = uVar6;\n    piVar4[2] = (int)(piVar2 + 1) + uVar6;\n    *piVar4 = (int)piVar2;\n    FUN_0006d568();\n    uVar3 = piVar4[3];\n  }\n  piVar4[3] = uVar3 - uVar5;\n  piVar4[1] = piVar4[1] + uVar5;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00070940(int param_1)" (identifier "FUN_00070940") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar5 = param_1 + 7U & 0xfffffff8;\n  piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;\n  uVar3 = piVar4[3];\n  if (uVar3 < uVar5) {\n    uVar3 = 0x1fc;\n    if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);\n    piVar4 = *(int **)puVar1;\n    *piVar2 = *piVar4;\n    piVar4[1] = (int)(piVar2 + 1);\n    piVar4[3] = uVar6;\n    piVar4[2] = (int)(piVar2 + 1) + uVar6;\n    *piVar4 = (int)piVar2;\n    FUN_0006d568();\n    uVar3 = piVar4[3];\n  }\n  piVar4[3] = uVar3 - uVar5;\n  piVar4[1] = piVar4[1] + uVar5;\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (expression_statement "puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;" (assignment_expression "puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858" (identifier "puVar1") (= "=") (identifier "PTR_ash_ptr_to_globals_memstack_0012a858")) (; ";")) (expression_statement "uVar5 = param_1 + 7U & 0xfffffff8;" (assignment_expression "uVar5 = param_1 + 7U & 0xfffffff8" (identifier "uVar5") (= "=") (binary_expression "param_1 + 7U & 0xfffffff8" (binary_expression "param_1 + 7U" (identifier "param_1") (+ "+") (number_literal "7U")) (& "&") (number_literal "0xfffffff8"))) (; ";")) (expression_statement "piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;" (assignment_expression "piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858" (identifier "piVar4") (= "=") (pointer_expression "*(int **)PTR_ash_ptr_to_globals_memstack_0012a858" (* "*") (cast_expression "(int **)PTR_ash_ptr_to_globals_memstack_0012a858" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_ash_ptr_to_globals_memstack_0012a858")))) (; ";")) (expression_statement "uVar3 = piVar4[3];" (assignment_expression "uVar3 = piVar4[3]" (identifier "uVar3") (= "=") (subscript_expression "piVar4[3]" (identifier "piVar4") ([ "[") (number_literal "3") (] "]"))) (; ";")) (if_statement "if (uVar3 < uVar5) {\n    uVar3 = 0x1fc;\n    if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);\n    piVar4 = *(int **)puVar1;\n    *piVar2 = *piVar4;\n    piVar4[1] = (int)(piVar2 + 1);\n    piVar4[3] = uVar6;\n    piVar4[2] = (int)(piVar2 + 1) + uVar6;\n    *piVar4 = (int)piVar2;\n    FUN_0006d568();\n    uVar3 = piVar4[3];\n  }" (if "if") (parenthesized_expression "(uVar3 < uVar5)" (( "(") (binary_expression "uVar3 < uVar5" (identifier "uVar3") (< "<") (identifier "uVar5")) () ")")) (compound_statement "{\n    uVar3 = 0x1fc;\n    if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }\n    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);\n    piVar4 = *(int **)puVar1;\n    *piVar2 = *piVar4;\n    piVar4[1] = (int)(piVar2 + 1);\n    piVar4[3] = uVar6;\n    piVar4[2] = (int)(piVar2 + 1) + uVar6;\n    *piVar4 = (int)piVar2;\n    FUN_0006d568();\n    uVar3 = piVar4[3];\n  }" ({ "{") (expression_statement "uVar3 = 0x1fc;" (assignment_expression "uVar3 = 0x1fc" (identifier "uVar3") (= "=") (number_literal "0x1fc")) (; ";")) (if_statement "if (uVar5 < 0x1f8) {\n      uVar6 = 0x1f8;\n    }\n    else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }" (if "if") (parenthesized_expression "(uVar5 < 0x1f8)" (( "(") (binary_expression "uVar5 < 0x1f8" (identifier "uVar5") (< "<") (number_literal "0x1f8")) () ")")) (compound_statement "{\n      uVar6 = 0x1f8;\n    }" ({ "{") (expression_statement "uVar6 = 0x1f8;" (assignment_expression "uVar6 = 0x1f8" (identifier "uVar6") (= "=") (number_literal "0x1f8")) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }" (else "else") (compound_statement "{\n      uVar3 = uVar5 + 4;\n      uVar6 = uVar5;\n      if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }\n    }" ({ "{") (expression_statement "uVar3 = uVar5 + 4;" (assignment_expression "uVar3 = uVar5 + 4" (identifier "uVar3") (= "=") (binary_expression "uVar5 + 4" (identifier "uVar5") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" (identifier "uVar6") (= "=") (identifier "uVar5")) (; ";")) (if_statement "if (uVar3 < uVar5) {\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }" (if "if") (parenthesized_expression "(uVar3 < uVar5)" (( "(") (binary_expression "uVar3 < uVar5" (identifier "uVar3") (< "<") (identifier "uVar5")) () ")")) (compound_statement "{\n                    \n        FUN_0006ee68(PTR_s_out_of_memory_0012a270);\n      }" ({ "{") (expression_statement "FUN_0006ee68(PTR_s_out_of_memory_0012a270);" (call_expression "FUN_0006ee68(PTR_s_out_of_memory_0012a270)" (identifier "FUN_0006ee68") (argument_list "(PTR_s_out_of_memory_0012a270)" (( "(") (identifier "PTR_s_out_of_memory_0012a270") () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;" (assignment_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" (* "*") (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" (( "(") (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" (* "*") (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ash_ptr_to_globals_misc_0012a84c"))) (+ "+") (number_literal "0x24")) () ")")))) (= "=") (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" (* "*") (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" (( "(") (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" (* "*") (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ash_ptr_to_globals_misc_0012a84c"))) (+ "+") (number_literal "0x24")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3)" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR_FUN_0012a230)(uVar3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_FUN_0012a230)(uVar3)" (parenthesized_expression "(*(code *)PTR_FUN_0012a230)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a230" (* "*") (cast_expression "(code *)PTR_FUN_0012a230" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a230"))) () ")")) (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))))) (; ";")) (expression_statement "piVar4 = *(int **)puVar1;" (assignment_expression "piVar4 = *(int **)puVar1" (identifier "piVar4") (= "=") (pointer_expression "*(int **)puVar1" (* "*") (cast_expression "(int **)puVar1" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "*piVar2 = *piVar4;" (assignment_expression "*piVar2 = *piVar4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "piVar4[1] = (int)(piVar2 + 1);" (assignment_expression "piVar4[1] = (int)(piVar2 + 1)" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)(piVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar2 + 1)" (( "(") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "piVar4[3] = uVar6;" (assignment_expression "piVar4[3] = uVar6" (subscript_expression "piVar4[3]" (identifier "piVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "piVar4[2] = (int)(piVar2 + 1) + uVar6;" (assignment_expression "piVar4[2] = (int)(piVar2 + 1) + uVar6" (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "(int)(piVar2 + 1) + uVar6" (cast_expression "(int)(piVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar2 + 1)" (( "(") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1")) () ")"))) (+ "+") (identifier "uVar6"))) (; ";")) (expression_statement "*piVar4 = (int)piVar2;" (assignment_expression "*piVar4 = (int)piVar2" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2"))) (; ";")) (expression_statement "FUN_0006d568();" (call_expression "FUN_0006d568()" (identifier "FUN_0006d568") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar3 = piVar4[3];" (assignment_expression "uVar3 = piVar4[3]" (identifier "uVar3") (= "=") (subscript_expression "piVar4[3]" (identifier "piVar4") ([ "[") (number_literal "3") (] "]"))) (; ";")) (} "}"))) (expression_statement "piVar4[3] = uVar3 - uVar5;" (assignment_expression "piVar4[3] = uVar3 - uVar5" (subscript_expression "piVar4[3]" (identifier "piVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "uVar3 - uVar5" (identifier "uVar3") (- "-") (identifier "uVar5"))) (; ";")) (expression_statement "piVar4[1] = piVar4[1] + uVar5;" (assignment_expression "piVar4[1] = piVar4[1] + uVar5" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "piVar4[1] + uVar5" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "uVar5"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) 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)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (return_statement))))

void MASKED(int param_1)

{
  undefined *puVar1;
  int *piVar2;
  uint uVar3;
  int *piVar4;
  uint uVar5;
  uint uVar6;
  
  puVar1 = PTR_ash_ptr_to_globals_memstack_0012a858;
  uVar5 = param_1 + 7U & 0xfffffff8;
  piVar4 = *(int **)PTR_ash_ptr_to_globals_memstack_0012a858;
  uVar3 = piVar4[3];
  if (uVar3 < uVar5) {
    uVar3 = 0x1fc;
    if (uVar5 < 0x1f8) {
      uVar6 = 0x1f8;
    }
    else {
      uVar3 = uVar5 + 4;
      uVar6 = uVar5;
      if (uVar3 < uVar5) {
                    /* WARNING: Subroutine does not return */
        FUN_0006ee68(PTR_s_out_of_memory_0012a270);
      }
    }
    *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =
         *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;
    piVar2 = (int *)(*(code *)PTR_FUN_0012a230)(uVar3);
    piVar4 = *(int **)puVar1;
    *piVar2 = *piVar4;
    piVar4[1] = (int)(piVar2 + 1);
    piVar4[3] = uVar6;
    piVar4[2] = (int)(piVar2 + 1) + uVar6;
    *piVar4 = (int)piVar2;
    FUN_0006d568();
    uVar3 = piVar4[3];
  }
  piVar4[3] = uVar3 - uVar5;
  piVar4[1] = piVar4[1] + uVar5;
  return;
}

