
uintptr_t text_hole_make(char *p,int size)

{
  undefined *puVar1;
  uint uVar2;
  uint uVar3;
  int *piVar4;
  int iVar5;
  int iVar6;
  int *piVar7;
  uintptr_t uVar8;
  
  uVar8 = 0;
  if (0 < size) {
    piVar7 = *(int **)PTR_ptr_to_globals_0012a304;
    iVar5 = piVar7[1];
    uVar2 = iVar5 + size;
    uVar3 = *piVar7 + piVar7[3];
    piVar7[1] = uVar2;
    puVar1 = PTR_xrealloc_0012a2a4;
    if (uVar3 <= uVar2) {
      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];
      iVar5 = (*(code *)puVar1)();
      piVar4 = piVar7 + 0x3e;
      iVar6 = piVar7[1];
      uVar8 = iVar5 - *piVar7;
      piVar7[0x12] = piVar7[0x12] + uVar8;
      piVar7[2] = piVar7[2] + uVar8;
      piVar7[1] = iVar6 + uVar8;
      do {
        if (*piVar4 != 0) {
          *piVar4 = *piVar4 + uVar8;
        }
        piVar4 = piVar4 + 1;
      } while (piVar7 + 0x5a != piVar4);
      p = p + uVar8;
      *piVar7 = iVar5;
      iVar5 = (iVar6 + uVar8) - size;
    }
    (*(code *)PTR_memmove_0012b174)(p + size,p,iVar5 - (int)p);
    (*(code *)PTR_memset_0012aebc)(p,0x20,size);
  }
  return uVar8;
}



int FUN_000d8620(int param_1,int param_2)

{
  undefined *puVar1;
  uint uVar2;
  uint uVar3;
  int *piVar4;
  int iVar5;
  int iVar6;
  int *piVar7;
  int iVar8;
  
  iVar8 = 0;
  if (0 < param_2) {
    piVar7 = *(int **)PTR_DAT_0012a304;
    iVar5 = piVar7[1];
    uVar2 = iVar5 + param_2;
    uVar3 = *piVar7 + piVar7[3];
    piVar7[1] = uVar2;
    puVar1 = PTR_FUN_0012a2a4;
    if (uVar3 <= uVar2) {
      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];
      iVar5 = (*(code *)puVar1)();
      piVar4 = piVar7 + 0x3e;
      iVar6 = piVar7[1];
      iVar8 = iVar5 - *piVar7;
      piVar7[0x12] = piVar7[0x12] + iVar8;
      piVar7[2] = piVar7[2] + iVar8;
      piVar7[1] = iVar6 + iVar8;
      do {
        if (*piVar4 != 0) {
          *piVar4 = *piVar4 + iVar8;
        }
        piVar4 = piVar4 + 1;
      } while (piVar7 + 0x5a != piVar4);
      param_1 = param_1 + iVar8;
      *piVar7 = iVar5;
      iVar5 = (iVar6 + iVar8) - param_2;
    }
    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);
    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);
  }
  return iVar8;
}


lui gp,0x6
addiu gp,gp,-0x64d0
addu gp,gp,t9
addiu sp,sp,-0x30
sw gp,0x10(sp)
sw s1,0x20(sp)
or s1,zero,zero
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
blez a1,0x000d86ac
_sw s0,0x1c(sp)
lw v0,-0x7e4c(gp)
or s3,a1,zero
or s2,a0,zero
lw s0,0x0(v0)
lw a2,0x4(s0)
lw a0,0x0(s0)
lw a1,0xc(s0)
addu v0,a2,s3
addu v1,a0,a1
sltu a3,v0,v1
beq a3,zero,0x000d86cc
_sw v0,0x4(s0)
lw t9,-0x6fdc(gp)
subu a2,a2,s2
addu a0,s2,s3
jalr t9
_or a1,s2,zero
li a1,0x20
lw gp,0x10(sp)
or a2,s3,zero
lw t9,-0x7294(gp)
jalr t9
_or a0,s2,zero
lw ra,0x2c(sp)
or v0,s1,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
subu v0,v0,v1
lw t9,-0x7eac(gp)
addiu v0,v0,0x2800
addu a1,v0,a1
jalr t9
_sw a1,0xc(s0)
addiu v1,s0,0xf8
lw s1,0x0(s0)
addiu a3,s0,0x168
lw a1,0x48(s0)
lw a0,0x8(s0)
lw a2,0x4(s0)
subu s1,v0,s1
lw gp,0x10(sp)
addu a1,a1,s1
addu a0,a0,s1
addu a2,a2,s1
sw a1,0x48(s0)
sw a0,0x8(s0)
sw a2,0x4(s0)
lw a0,0x0(v1)
beq a0,zero,0x000d872c
_addu a0,a0,s1
sw a0,0x0(v1)
addiu v1,v1,0x4
bne a3,v1,0x000d871c
_nop
addu s2,s2,s1
sw v0,0x0(s0)
b 0x000d8680
_subu a2,a2,s3
(translation_unit "int FUN_000d8620(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int iVar8;\n  \n  iVar8 = 0;\n  if (0 < param_2) {\n    piVar7 = *(int **)PTR_DAT_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + param_2;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_FUN_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }\n    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);\n    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);\n  }\n  return iVar8;\n}\n\n" (function_definition "int FUN_000d8620(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int iVar8;\n  \n  iVar8 = 0;\n  if (0 < param_2) {\n    piVar7 = *(int **)PTR_DAT_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + param_2;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_FUN_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }\n    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);\n    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);\n  }\n  return iVar8;\n}" primitive_type (function_declarator "FUN_000d8620(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int iVar8;\n  \n  iVar8 = 0;\n  if (0 < param_2) {\n    piVar7 = *(int **)PTR_DAT_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + param_2;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_FUN_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }\n    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);\n    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);\n  }\n  return iVar8;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (if_statement "if (0 < param_2) {\n    piVar7 = *(int **)PTR_DAT_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + param_2;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_FUN_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }\n    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);\n    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    piVar7 = *(int **)PTR_DAT_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + param_2;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_FUN_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }\n    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);\n    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);\n  }" { (expression_statement "piVar7 = *(int **)PTR_DAT_0012a304;" (assignment_expression "piVar7 = *(int **)PTR_DAT_0012a304" identifier = (pointer_expression "*(int **)PTR_DAT_0012a304" * (cast_expression "(int **)PTR_DAT_0012a304" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar5 = piVar7[1];" (assignment_expression "iVar5 = piVar7[1]" identifier = (subscript_expression "piVar7[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = iVar5 + param_2;" (assignment_expression "uVar2 = iVar5 + param_2" identifier = (binary_expression "iVar5 + param_2" identifier + identifier)) ;) (expression_statement "uVar3 = *piVar7 + piVar7[3];" (assignment_expression "uVar3 = *piVar7 + piVar7[3]" identifier = (binary_expression "*piVar7 + piVar7[3]" (pointer_expression "*piVar7" * identifier) + (subscript_expression "piVar7[3]" identifier [ number_literal ]))) ;) (expression_statement "piVar7[1] = uVar2;" (assignment_expression "piVar7[1] = uVar2" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1 = PTR_FUN_0012a2a4;" (assignment_expression "puVar1 = PTR_FUN_0012a2a4" identifier = identifier) ;) (if_statement "if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }" if (parenthesized_expression "(uVar3 <= uVar2)" ( (binary_expression "uVar3 <= uVar2" identifier <= identifier) )) (compound_statement "{\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }" { (expression_statement "piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];" (assignment_expression "piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3]" (subscript_expression "piVar7[3]" identifier [ number_literal ]) = (binary_expression "(uVar2 - uVar3) + 0x2800 + piVar7[3]" (binary_expression "(uVar2 - uVar3) + 0x2800" (parenthesized_expression "(uVar2 - uVar3)" ( (binary_expression "uVar2 - uVar3" identifier - identifier) )) + number_literal) + (subscript_expression "piVar7[3]" identifier [ number_literal ]))) ;) (expression_statement "iVar5 = (*(code *)puVar1)();" (assignment_expression "iVar5 = (*(code *)puVar1)()" identifier = (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "piVar4 = piVar7 + 0x3e;" (assignment_expression "piVar4 = piVar7 + 0x3e" identifier = (binary_expression "piVar7 + 0x3e" identifier + number_literal)) ;) (expression_statement "iVar6 = piVar7[1];" (assignment_expression "iVar6 = piVar7[1]" identifier = (subscript_expression "piVar7[1]" identifier [ number_literal ])) ;) (expression_statement "iVar8 = iVar5 - *piVar7;" (assignment_expression "iVar8 = iVar5 - *piVar7" identifier = (binary_expression "iVar5 - *piVar7" identifier - (pointer_expression "*piVar7" * identifier))) ;) (expression_statement "piVar7[0x12] = piVar7[0x12] + iVar8;" (assignment_expression "piVar7[0x12] = piVar7[0x12] + iVar8" (subscript_expression "piVar7[0x12]" identifier [ number_literal ]) = (binary_expression "piVar7[0x12] + iVar8" (subscript_expression "piVar7[0x12]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "piVar7[2] = piVar7[2] + iVar8;" (assignment_expression "piVar7[2] = piVar7[2] + iVar8" (subscript_expression "piVar7[2]" identifier [ number_literal ]) = (binary_expression "piVar7[2] + iVar8" (subscript_expression "piVar7[2]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "piVar7[1] = iVar6 + iVar8;" (assignment_expression "piVar7[1] = iVar6 + iVar8" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = (binary_expression "iVar6 + iVar8" identifier + identifier)) ;) (do_statement "do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);" do (compound_statement "{\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      }" { (if_statement "if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }" if (parenthesized_expression "(*piVar4 != 0)" ( (binary_expression "*piVar4 != 0" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n          *piVar4 = *piVar4 + iVar8;\n        }" { (expression_statement "*piVar4 = *piVar4 + iVar8;" (assignment_expression "*piVar4 = *piVar4 + iVar8" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + iVar8" (pointer_expression "*piVar4" * identifier) + identifier)) ;) })) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar7 + 0x5a != piVar4)" ( (binary_expression "piVar7 + 0x5a != piVar4" (binary_expression "piVar7 + 0x5a" identifier + number_literal) != identifier) )) ;) (expression_statement "param_1 = param_1 + iVar8;" (assignment_expression "param_1 = param_1 + iVar8" identifier = (binary_expression "param_1 + iVar8" identifier + identifier)) ;) (expression_statement "*piVar7 = iVar5;" (assignment_expression "*piVar7 = iVar5" (pointer_expression "*piVar7" * identifier) = identifier) ;) (expression_statement "iVar5 = (iVar6 + iVar8) - param_2;" (assignment_expression "iVar5 = (iVar6 + iVar8) - param_2" identifier = (binary_expression "(iVar6 + iVar8) - param_2" (parenthesized_expression "(iVar6 + iVar8)" ( (binary_expression "iVar6 + iVar8" identifier + identifier) )) - identifier)) ;) })) (expression_statement "(*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);" (call_expression "(*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1)" (parenthesized_expression "(*(code *)PTR_memmove_0012b174)" ( (pointer_expression "*(code *)PTR_memmove_0012b174" * (cast_expression "(code *)PTR_memmove_0012b174" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + param_2,param_1,iVar5 - param_1)" ( (binary_expression "param_1 + param_2" identifier + identifier) , identifier , (binary_expression "iVar5 - param_1" identifier - identifier) ))) ;) (expression_statement "(*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);" (call_expression "(*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" ( (pointer_expression "*(code *)PTR_memset_0012aebc" * (cast_expression "(code *)PTR_memset_0012aebc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x20,param_2)" ( identifier , number_literal , identifier ))) ;) })) (return_statement "return iVar8;" return identifier ;) })))
(translation_unit "uintptr_t text_hole_make(char *p,int size)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  uintptr_t uVar8;\n  \n  uVar8 = 0;\n  if (0 < size) {\n    piVar7 = *(int **)PTR_ptr_to_globals_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + size;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_xrealloc_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      uVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + uVar8;\n      piVar7[2] = piVar7[2] + uVar8;\n      piVar7[1] = iVar6 + uVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + uVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      p = p + uVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + uVar8) - size;\n    }\n    (*(code *)PTR_memmove_0012b174)(p + size,p,iVar5 - (int)p);\n    (*(code *)PTR_memset_0012aebc)(p,0x20,size);\n  }\n  return uVar8;\n}\n\n" (function_definition "uintptr_t text_hole_make(char *p,int size)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  uintptr_t uVar8;\n  \n  uVar8 = 0;\n  if (0 < size) {\n    piVar7 = *(int **)PTR_ptr_to_globals_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + size;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_xrealloc_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      uVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + uVar8;\n      piVar7[2] = piVar7[2] + uVar8;\n      piVar7[1] = iVar6 + uVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + uVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      p = p + uVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + uVar8) - size;\n    }\n    (*(code *)PTR_memmove_0012b174)(p + size,p,iVar5 - (int)p);\n    (*(code *)PTR_memset_0012aebc)(p,0x20,size);\n  }\n  return uVar8;\n}" primitive_type (function_declarator "text_hole_make(char *p,int size)" identifier (parameter_list "(char *p,int size)" ( (parameter_declaration "char *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "int size" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  uintptr_t uVar8;\n  \n  uVar8 = 0;\n  if (0 < size) {\n    piVar7 = *(int **)PTR_ptr_to_globals_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + size;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_xrealloc_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      uVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + uVar8;\n      piVar7[2] = piVar7[2] + uVar8;\n      piVar7[1] = iVar6 + uVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + uVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      p = p + uVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + uVar8) - size;\n    }\n    (*(code *)PTR_memmove_0012b174)(p + size,p,iVar5 - (int)p);\n    (*(code *)PTR_memset_0012aebc)(p,0x20,size);\n  }\n  return uVar8;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "uintptr_t uVar8;" primitive_type identifier ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (if_statement "if (0 < size) {\n    piVar7 = *(int **)PTR_ptr_to_globals_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + size;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_xrealloc_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      uVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + uVar8;\n      piVar7[2] = piVar7[2] + uVar8;\n      piVar7[1] = iVar6 + uVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + uVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      p = p + uVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + uVar8) - size;\n    }\n    (*(code *)PTR_memmove_0012b174)(p + size,p,iVar5 - (int)p);\n    (*(code *)PTR_memset_0012aebc)(p,0x20,size);\n  }" if (parenthesized_expression "(0 < size)" ( (binary_expression "0 < size" number_literal < identifier) )) (compound_statement "{\n    piVar7 = *(int **)PTR_ptr_to_globals_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + size;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_xrealloc_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      uVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + uVar8;\n      piVar7[2] = piVar7[2] + uVar8;\n      piVar7[1] = iVar6 + uVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + uVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      p = p + uVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + uVar8) - size;\n    }\n    (*(code *)PTR_memmove_0012b174)(p + size,p,iVar5 - (int)p);\n    (*(code *)PTR_memset_0012aebc)(p,0x20,size);\n  }" { (expression_statement "piVar7 = *(int **)PTR_ptr_to_globals_0012a304;" (assignment_expression "piVar7 = *(int **)PTR_ptr_to_globals_0012a304" identifier = (pointer_expression "*(int **)PTR_ptr_to_globals_0012a304" * (cast_expression "(int **)PTR_ptr_to_globals_0012a304" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar5 = piVar7[1];" (assignment_expression "iVar5 = piVar7[1]" identifier = (subscript_expression "piVar7[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = iVar5 + size;" (assignment_expression "uVar2 = iVar5 + size" identifier = (binary_expression "iVar5 + size" identifier + identifier)) ;) (expression_statement "uVar3 = *piVar7 + piVar7[3];" (assignment_expression "uVar3 = *piVar7 + piVar7[3]" identifier = (binary_expression "*piVar7 + piVar7[3]" (pointer_expression "*piVar7" * identifier) + (subscript_expression "piVar7[3]" identifier [ number_literal ]))) ;) (expression_statement "piVar7[1] = uVar2;" (assignment_expression "piVar7[1] = uVar2" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1 = PTR_xrealloc_0012a2a4;" (assignment_expression "puVar1 = PTR_xrealloc_0012a2a4" identifier = identifier) ;) (if_statement "if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      uVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + uVar8;\n      piVar7[2] = piVar7[2] + uVar8;\n      piVar7[1] = iVar6 + uVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + uVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      p = p + uVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + uVar8) - size;\n    }" if (parenthesized_expression "(uVar3 <= uVar2)" ( (binary_expression "uVar3 <= uVar2" identifier <= identifier) )) (compound_statement "{\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      uVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + uVar8;\n      piVar7[2] = piVar7[2] + uVar8;\n      piVar7[1] = iVar6 + uVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + uVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      p = p + uVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + uVar8) - size;\n    }" { (expression_statement "piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];" (assignment_expression "piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3]" (subscript_expression "piVar7[3]" identifier [ number_literal ]) = (binary_expression "(uVar2 - uVar3) + 0x2800 + piVar7[3]" (binary_expression "(uVar2 - uVar3) + 0x2800" (parenthesized_expression "(uVar2 - uVar3)" ( (binary_expression "uVar2 - uVar3" identifier - identifier) )) + number_literal) + (subscript_expression "piVar7[3]" identifier [ number_literal ]))) ;) (expression_statement "iVar5 = (*(code *)puVar1)();" (assignment_expression "iVar5 = (*(code *)puVar1)()" identifier = (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "piVar4 = piVar7 + 0x3e;" (assignment_expression "piVar4 = piVar7 + 0x3e" identifier = (binary_expression "piVar7 + 0x3e" identifier + number_literal)) ;) (expression_statement "iVar6 = piVar7[1];" (assignment_expression "iVar6 = piVar7[1]" identifier = (subscript_expression "piVar7[1]" identifier [ number_literal ])) ;) (expression_statement "uVar8 = iVar5 - *piVar7;" (assignment_expression "uVar8 = iVar5 - *piVar7" identifier = (binary_expression "iVar5 - *piVar7" identifier - (pointer_expression "*piVar7" * identifier))) ;) (expression_statement "piVar7[0x12] = piVar7[0x12] + uVar8;" (assignment_expression "piVar7[0x12] = piVar7[0x12] + uVar8" (subscript_expression "piVar7[0x12]" identifier [ number_literal ]) = (binary_expression "piVar7[0x12] + uVar8" (subscript_expression "piVar7[0x12]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "piVar7[2] = piVar7[2] + uVar8;" (assignment_expression "piVar7[2] = piVar7[2] + uVar8" (subscript_expression "piVar7[2]" identifier [ number_literal ]) = (binary_expression "piVar7[2] + uVar8" (subscript_expression "piVar7[2]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "piVar7[1] = iVar6 + uVar8;" (assignment_expression "piVar7[1] = iVar6 + uVar8" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = (binary_expression "iVar6 + uVar8" identifier + identifier)) ;) (do_statement "do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + uVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);" do (compound_statement "{\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + uVar8;\n        }\n        piVar4 = piVar4 + 1;\n      }" { (if_statement "if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + uVar8;\n        }" if (parenthesized_expression "(*piVar4 != 0)" ( (binary_expression "*piVar4 != 0" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n          *piVar4 = *piVar4 + uVar8;\n        }" { (expression_statement "*piVar4 = *piVar4 + uVar8;" (assignment_expression "*piVar4 = *piVar4 + uVar8" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + uVar8" (pointer_expression "*piVar4" * identifier) + identifier)) ;) })) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar7 + 0x5a != piVar4)" ( (binary_expression "piVar7 + 0x5a != piVar4" (binary_expression "piVar7 + 0x5a" identifier + number_literal) != identifier) )) ;) (expression_statement "p = p + uVar8;" (assignment_expression "p = p + uVar8" identifier = (binary_expression "p + uVar8" identifier + identifier)) ;) (expression_statement "*piVar7 = iVar5;" (assignment_expression "*piVar7 = iVar5" (pointer_expression "*piVar7" * identifier) = identifier) ;) (expression_statement "iVar5 = (iVar6 + uVar8) - size;" (assignment_expression "iVar5 = (iVar6 + uVar8) - size" identifier = (binary_expression "(iVar6 + uVar8) - size" (parenthesized_expression "(iVar6 + uVar8)" ( (binary_expression "iVar6 + uVar8" identifier + identifier) )) - identifier)) ;) })) (expression_statement "(*(code *)PTR_memmove_0012b174)(p + size,p,iVar5 - (int)p);" (call_expression "(*(code *)PTR_memmove_0012b174)(p + size,p,iVar5 - (int)p)" (parenthesized_expression "(*(code *)PTR_memmove_0012b174)" ( (pointer_expression "*(code *)PTR_memmove_0012b174" * (cast_expression "(code *)PTR_memmove_0012b174" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p + size,p,iVar5 - (int)p)" ( (binary_expression "p + size" identifier + identifier) , identifier , (binary_expression "iVar5 - (int)p" identifier - (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "(*(code *)PTR_memset_0012aebc)(p,0x20,size);" (call_expression "(*(code *)PTR_memset_0012aebc)(p,0x20,size)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" ( (pointer_expression "*(code *)PTR_memset_0012aebc" * (cast_expression "(code *)PTR_memset_0012aebc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p,0x20,size)" ( identifier , number_literal , identifier ))) ;) })) (return_statement "return uVar8;" return identifier ;) })))
(translation_unit "int FUN_000d8620(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int iVar8;\n  \n  iVar8 = 0;\n  if (0 < param_2) {\n    piVar7 = *(int **)PTR_DAT_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + param_2;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_FUN_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }\n    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);\n    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);\n  }\n  return iVar8;\n}\n\n" (function_definition "int FUN_000d8620(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int iVar8;\n  \n  iVar8 = 0;\n  if (0 < param_2) {\n    piVar7 = *(int **)PTR_DAT_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + param_2;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_FUN_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }\n    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);\n    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);\n  }\n  return iVar8;\n}" primitive_type (function_declarator "FUN_000d8620(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int iVar8;\n  \n  iVar8 = 0;\n  if (0 < param_2) {\n    piVar7 = *(int **)PTR_DAT_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + param_2;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_FUN_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }\n    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);\n    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);\n  }\n  return iVar8;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (if_statement "if (0 < param_2) {\n    piVar7 = *(int **)PTR_DAT_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + param_2;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_FUN_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }\n    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);\n    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    piVar7 = *(int **)PTR_DAT_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + param_2;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_FUN_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }\n    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);\n    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);\n  }" { (expression_statement "piVar7 = *(int **)PTR_DAT_0012a304;" (assignment_expression "piVar7 = *(int **)PTR_DAT_0012a304" identifier = (pointer_expression "*(int **)PTR_DAT_0012a304" * (cast_expression "(int **)PTR_DAT_0012a304" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar5 = piVar7[1];" (assignment_expression "iVar5 = piVar7[1]" identifier = (subscript_expression "piVar7[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = iVar5 + param_2;" (assignment_expression "uVar2 = iVar5 + param_2" identifier = (binary_expression "iVar5 + param_2" identifier + identifier)) ;) (expression_statement "uVar3 = *piVar7 + piVar7[3];" (assignment_expression "uVar3 = *piVar7 + piVar7[3]" identifier = (binary_expression "*piVar7 + piVar7[3]" (pointer_expression "*piVar7" * identifier) + (subscript_expression "piVar7[3]" identifier [ number_literal ]))) ;) (expression_statement "piVar7[1] = uVar2;" (assignment_expression "piVar7[1] = uVar2" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1 = PTR_FUN_0012a2a4;" (assignment_expression "puVar1 = PTR_FUN_0012a2a4" identifier = identifier) ;) (if_statement "if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }" if (parenthesized_expression "(uVar3 <= uVar2)" ( (binary_expression "uVar3 <= uVar2" identifier <= identifier) )) (compound_statement "{\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }" { (expression_statement "piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];" (assignment_expression "piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3]" (subscript_expression "piVar7[3]" identifier [ number_literal ]) = (binary_expression "(uVar2 - uVar3) + 0x2800 + piVar7[3]" (binary_expression "(uVar2 - uVar3) + 0x2800" (parenthesized_expression "(uVar2 - uVar3)" ( (binary_expression "uVar2 - uVar3" identifier - identifier) )) + number_literal) + (subscript_expression "piVar7[3]" identifier [ number_literal ]))) ;) (expression_statement "iVar5 = (*(code *)puVar1)();" (assignment_expression "iVar5 = (*(code *)puVar1)()" identifier = (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "piVar4 = piVar7 + 0x3e;" (assignment_expression "piVar4 = piVar7 + 0x3e" identifier = (binary_expression "piVar7 + 0x3e" identifier + number_literal)) ;) (expression_statement "iVar6 = piVar7[1];" (assignment_expression "iVar6 = piVar7[1]" identifier = (subscript_expression "piVar7[1]" identifier [ number_literal ])) ;) (expression_statement "iVar8 = iVar5 - *piVar7;" (assignment_expression "iVar8 = iVar5 - *piVar7" identifier = (binary_expression "iVar5 - *piVar7" identifier - (pointer_expression "*piVar7" * identifier))) ;) (expression_statement "piVar7[0x12] = piVar7[0x12] + iVar8;" (assignment_expression "piVar7[0x12] = piVar7[0x12] + iVar8" (subscript_expression "piVar7[0x12]" identifier [ number_literal ]) = (binary_expression "piVar7[0x12] + iVar8" (subscript_expression "piVar7[0x12]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "piVar7[2] = piVar7[2] + iVar8;" (assignment_expression "piVar7[2] = piVar7[2] + iVar8" (subscript_expression "piVar7[2]" identifier [ number_literal ]) = (binary_expression "piVar7[2] + iVar8" (subscript_expression "piVar7[2]" identifier [ number_literal ]) + identifier)) ;) (expression_statement "piVar7[1] = iVar6 + iVar8;" (assignment_expression "piVar7[1] = iVar6 + iVar8" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = (binary_expression "iVar6 + iVar8" identifier + identifier)) ;) (do_statement "do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);" do (compound_statement "{\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      }" { (if_statement "if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }" if (parenthesized_expression "(*piVar4 != 0)" ( (binary_expression "*piVar4 != 0" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n          *piVar4 = *piVar4 + iVar8;\n        }" { (expression_statement "*piVar4 = *piVar4 + iVar8;" (assignment_expression "*piVar4 = *piVar4 + iVar8" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + iVar8" (pointer_expression "*piVar4" * identifier) + identifier)) ;) })) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar7 + 0x5a != piVar4)" ( (binary_expression "piVar7 + 0x5a != piVar4" (binary_expression "piVar7 + 0x5a" identifier + number_literal) != identifier) )) ;) (expression_statement "param_1 = param_1 + iVar8;" (assignment_expression "param_1 = param_1 + iVar8" identifier = (binary_expression "param_1 + iVar8" identifier + identifier)) ;) (expression_statement "*piVar7 = iVar5;" (assignment_expression "*piVar7 = iVar5" (pointer_expression "*piVar7" * identifier) = identifier) ;) (expression_statement "iVar5 = (iVar6 + iVar8) - param_2;" (assignment_expression "iVar5 = (iVar6 + iVar8) - param_2" identifier = (binary_expression "(iVar6 + iVar8) - param_2" (parenthesized_expression "(iVar6 + iVar8)" ( (binary_expression "iVar6 + iVar8" identifier + identifier) )) - identifier)) ;) })) (expression_statement "(*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);" (call_expression "(*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1)" (parenthesized_expression "(*(code *)PTR_memmove_0012b174)" ( (pointer_expression "*(code *)PTR_memmove_0012b174" * (cast_expression "(code *)PTR_memmove_0012b174" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + param_2,param_1,iVar5 - param_1)" ( (binary_expression "param_1 + param_2" identifier + identifier) , identifier , (binary_expression "iVar5 - param_1" identifier - identifier) ))) ;) (expression_statement "(*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);" (call_expression "(*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" ( (pointer_expression "*(code *)PTR_memset_0012aebc" * (cast_expression "(code *)PTR_memset_0012aebc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x20,param_2)" ( identifier , number_literal , identifier ))) ;) })) (return_statement "return iVar8;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (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 ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) + (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) - IDENT)) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , IDENT , (binary_expression IDENT - IDENT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000d8620(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int iVar8;\n  \n  iVar8 = 0;\n  if (0 < param_2) {\n    piVar7 = *(int **)PTR_DAT_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + param_2;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_FUN_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }\n    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);\n    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);\n  }\n  return iVar8;\n}" (primitive_type "int") (function_declarator "FUN_000d8620(int param_1,int param_2)" (identifier "FUN_000d8620") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int *piVar7;\n  int iVar8;\n  \n  iVar8 = 0;\n  if (0 < param_2) {\n    piVar7 = *(int **)PTR_DAT_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + param_2;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_FUN_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }\n    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);\n    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);\n  }\n  return iVar8;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < param_2) {\n    piVar7 = *(int **)PTR_DAT_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + param_2;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_FUN_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }\n    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);\n    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);\n  }" (if "if") (parenthesized_expression "(0 < param_2)" (( "(") (binary_expression "0 < param_2" (number_literal "0") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    piVar7 = *(int **)PTR_DAT_0012a304;\n    iVar5 = piVar7[1];\n    uVar2 = iVar5 + param_2;\n    uVar3 = *piVar7 + piVar7[3];\n    piVar7[1] = uVar2;\n    puVar1 = PTR_FUN_0012a2a4;\n    if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }\n    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);\n    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);\n  }" ({ "{") (expression_statement "piVar7 = *(int **)PTR_DAT_0012a304;" (assignment_expression "piVar7 = *(int **)PTR_DAT_0012a304" (identifier "piVar7") (= "=") (pointer_expression "*(int **)PTR_DAT_0012a304" (* "*") (cast_expression "(int **)PTR_DAT_0012a304" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_DAT_0012a304")))) (; ";")) (expression_statement "iVar5 = piVar7[1];" (assignment_expression "iVar5 = piVar7[1]" (identifier "iVar5") (= "=") (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar2 = iVar5 + param_2;" (assignment_expression "uVar2 = iVar5 + param_2" (identifier "uVar2") (= "=") (binary_expression "iVar5 + param_2" (identifier "iVar5") (+ "+") (identifier "param_2"))) (; ";")) (expression_statement "uVar3 = *piVar7 + piVar7[3];" (assignment_expression "uVar3 = *piVar7 + piVar7[3]" (identifier "uVar3") (= "=") (binary_expression "*piVar7 + piVar7[3]" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (+ "+") (subscript_expression "piVar7[3]" (identifier "piVar7") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "piVar7[1] = uVar2;" (assignment_expression "piVar7[1] = uVar2" (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar1 = PTR_FUN_0012a2a4;" (assignment_expression "puVar1 = PTR_FUN_0012a2a4" (identifier "puVar1") (= "=") (identifier "PTR_FUN_0012a2a4")) (; ";")) (if_statement "if (uVar3 <= uVar2) {\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }" (if "if") (parenthesized_expression "(uVar3 <= uVar2)" (( "(") (binary_expression "uVar3 <= uVar2" (identifier "uVar3") (<= "<=") (identifier "uVar2")) () ")")) (compound_statement "{\n      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];\n      iVar5 = (*(code *)puVar1)();\n      piVar4 = piVar7 + 0x3e;\n      iVar6 = piVar7[1];\n      iVar8 = iVar5 - *piVar7;\n      piVar7[0x12] = piVar7[0x12] + iVar8;\n      piVar7[2] = piVar7[2] + iVar8;\n      piVar7[1] = iVar6 + iVar8;\n      do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);\n      param_1 = param_1 + iVar8;\n      *piVar7 = iVar5;\n      iVar5 = (iVar6 + iVar8) - param_2;\n    }" ({ "{") (expression_statement "piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];" (assignment_expression "piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3]" (subscript_expression "piVar7[3]" (identifier "piVar7") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "(uVar2 - uVar3) + 0x2800 + piVar7[3]" (binary_expression "(uVar2 - uVar3) + 0x2800" (parenthesized_expression "(uVar2 - uVar3)" (( "(") (binary_expression "uVar2 - uVar3" (identifier "uVar2") (- "-") (identifier "uVar3")) () ")")) (+ "+") (number_literal "0x2800")) (+ "+") (subscript_expression "piVar7[3]" (identifier "piVar7") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "iVar5 = (*(code *)puVar1)();" (assignment_expression "iVar5 = (*(code *)puVar1)()" (identifier "iVar5") (= "=") (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar4 = piVar7 + 0x3e;" (assignment_expression "piVar4 = piVar7 + 0x3e" (identifier "piVar4") (= "=") (binary_expression "piVar7 + 0x3e" (identifier "piVar7") (+ "+") (number_literal "0x3e"))) (; ";")) (expression_statement "iVar6 = piVar7[1];" (assignment_expression "iVar6 = piVar7[1]" (identifier "iVar6") (= "=") (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar8 = iVar5 - *piVar7;" (assignment_expression "iVar8 = iVar5 - *piVar7" (identifier "iVar8") (= "=") (binary_expression "iVar5 - *piVar7" (identifier "iVar5") (- "-") (pointer_expression "*piVar7" (* "*") (identifier "piVar7")))) (; ";")) (expression_statement "piVar7[0x12] = piVar7[0x12] + iVar8;" (assignment_expression "piVar7[0x12] = piVar7[0x12] + iVar8" (subscript_expression "piVar7[0x12]" (identifier "piVar7") ([ "[") (number_literal "0x12") (] "]")) (= "=") (binary_expression "piVar7[0x12] + iVar8" (subscript_expression "piVar7[0x12]" (identifier "piVar7") ([ "[") (number_literal "0x12") (] "]")) (+ "+") (identifier "iVar8"))) (; ";")) (expression_statement "piVar7[2] = piVar7[2] + iVar8;" (assignment_expression "piVar7[2] = piVar7[2] + iVar8" (subscript_expression "piVar7[2]" (identifier "piVar7") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "piVar7[2] + iVar8" (subscript_expression "piVar7[2]" (identifier "piVar7") ([ "[") (number_literal "2") (] "]")) (+ "+") (identifier "iVar8"))) (; ";")) (expression_statement "piVar7[1] = iVar6 + iVar8;" (assignment_expression "piVar7[1] = iVar6 + iVar8" (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar6 + iVar8" (identifier "iVar6") (+ "+") (identifier "iVar8"))) (; ";")) (do_statement "do {\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      } while (piVar7 + 0x5a != piVar4);" (do "do") (compound_statement "{\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }\n        piVar4 = piVar4 + 1;\n      }" ({ "{") (if_statement "if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar8;\n        }" (if "if") (parenthesized_expression "(*piVar4 != 0)" (( "(") (binary_expression "*piVar4 != 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          *piVar4 = *piVar4 + iVar8;\n        }" ({ "{") (expression_statement "*piVar4 = *piVar4 + iVar8;" (assignment_expression "*piVar4 = *piVar4 + iVar8" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (binary_expression "*piVar4 + iVar8" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (identifier "iVar8"))) (; ";")) (} "}"))) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar7 + 0x5a != piVar4)" (( "(") (binary_expression "piVar7 + 0x5a != piVar4" (binary_expression "piVar7 + 0x5a" (identifier "piVar7") (+ "+") (number_literal "0x5a")) (!= "!=") (identifier "piVar4")) () ")")) (; ";")) (expression_statement "param_1 = param_1 + iVar8;" (assignment_expression "param_1 = param_1 + iVar8" (identifier "param_1") (= "=") (binary_expression "param_1 + iVar8" (identifier "param_1") (+ "+") (identifier "iVar8"))) (; ";")) (expression_statement "*piVar7 = iVar5;" (assignment_expression "*piVar7 = iVar5" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "iVar5 = (iVar6 + iVar8) - param_2;" (assignment_expression "iVar5 = (iVar6 + iVar8) - param_2" (identifier "iVar5") (= "=") (binary_expression "(iVar6 + iVar8) - param_2" (parenthesized_expression "(iVar6 + iVar8)" (( "(") (binary_expression "iVar6 + iVar8" (identifier "iVar6") (+ "+") (identifier "iVar8")) () ")")) (- "-") (identifier "param_2"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);" (call_expression "(*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1)" (parenthesized_expression "(*(code *)PTR_memmove_0012b174)" (( "(") (pointer_expression "*(code *)PTR_memmove_0012b174" (* "*") (cast_expression "(code *)PTR_memmove_0012b174" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memmove_0012b174"))) () ")")) (argument_list "(param_1 + param_2,param_1,iVar5 - param_1)" (( "(") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2")) (, ",") (identifier "param_1") (, ",") (binary_expression "iVar5 - param_1" (identifier "iVar5") (- "-") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);" (call_expression "(*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" (( "(") (pointer_expression "*(code *)PTR_memset_0012aebc" (* "*") (cast_expression "(code *)PTR_memset_0012aebc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_0012aebc"))) () ")")) (argument_list "(param_1,0x20,param_2)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (return_statement "return iVar8;" (return "return") (identifier "iVar8") (; ";")) (} "}")))

uintptr_t function_1(char *var_9,int var_1)

{
  type_1 *puVar1;
  type_2 var_4;
  type_2 var_3;
  int *var_8;
  int var_2;
  int var_7;
  int *var_5;
  uintptr_t var_6;
  
  var_6 = 0;
  if (0 < var_1) {
    var_5 = *(int **)PTR_ptr_to_globals_0012a304;
    var_2 = var_5[1];
    var_4 = var_2 + var_1;
    var_3 = *var_5 + var_5[3];
    var_5[1] = var_4;
    puVar1 = PTR_xrealloc_0012a2a4;
    if (var_3 <= var_4) {
      var_5[3] = (var_4 - var_3) + 0x2800 + var_5[3];
      var_2 = (*(type_3 *)puVar1)();
      var_8 = var_5 + 0x3e;
      var_7 = var_5[1];
      var_6 = var_2 - *var_5;
      var_5[0x12] = var_5[0x12] + var_6;
      var_5[2] = var_5[2] + var_6;
      var_5[1] = var_7 + var_6;
      do {
        if (*var_8 != 0) {
          *var_8 = *var_8 + var_6;
        }
        var_8 = var_8 + 1;
      } while (var_5 + 0x5a != var_8);
      var_9 = var_9 + var_6;
      *var_5 = var_2;
      var_2 = (var_7 + var_6) - var_1;
    }
    (*(type_3 *)PTR_memmove_0012b174)(var_9 + var_1,var_9,var_2 - (int)var_9);
    (*(type_3 *)PTR_memset_0012aebc)(var_9,0x20,var_1);
  }
  return var_6;
}


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

int MASKED(int param_1,int param_2)

{
  undefined *puVar1;
  uint uVar2;
  uint uVar3;
  int *piVar4;
  int iVar5;
  int iVar6;
  int *piVar7;
  int iVar8;
  
  iVar8 = 0;
  if (0 < param_2) {
    piVar7 = *(int **)PTR_DAT_0012a304;
    iVar5 = piVar7[1];
    uVar2 = iVar5 + param_2;
    uVar3 = *piVar7 + piVar7[3];
    piVar7[1] = uVar2;
    puVar1 = PTR_FUN_0012a2a4;
    if (uVar3 <= uVar2) {
      piVar7[3] = (uVar2 - uVar3) + 0x2800 + piVar7[3];
      iVar5 = (*(code *)puVar1)();
      piVar4 = piVar7 + 0x3e;
      iVar6 = piVar7[1];
      iVar8 = iVar5 - *piVar7;
      piVar7[0x12] = piVar7[0x12] + iVar8;
      piVar7[2] = piVar7[2] + iVar8;
      piVar7[1] = iVar6 + iVar8;
      do {
        if (*piVar4 != 0) {
          *piVar4 = *piVar4 + iVar8;
        }
        piVar4 = piVar4 + 1;
      } while (piVar7 + 0x5a != piVar4);
      param_1 = param_1 + iVar8;
      *piVar7 = iVar5;
      iVar5 = (iVar6 + iVar8) - param_2;
    }
    (*(code *)PTR_memmove_0012b174)(param_1 + param_2,param_1,iVar5 - param_1);
    (*(code *)PTR_memset_0012aebc)(param_1,0x20,param_2);
  }
  return iVar8;
}

