
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void resizeline(Terminal *term,termline *line,int cols)

{
  undefined *puVar1;
  termchar *ptVar2;
  termchar *ptVar3;
  int *piVar4;
  termchar *ptVar5;
  ulong uVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  
  puVar1 = PTR_saferealloc_001113f0;
  iVar9 = line->cols;
  if (iVar9 != cols) {
    iVar10 = cols - iVar9;
    iVar7 = cols;
    if (cols < iVar9) {
      do {
        iVar8 = iVar7 + 1;
        clear_cc(line,iVar7);
        iVar7 = iVar8;
      } while (iVar9 != iVar8);
      (*(code *)PTR_memmove_00111fe8)
                (line->chars + cols,line->chars + iVar9,(line->size - line->cols) * 0xc);
      puVar1 = PTR_saferealloc_001113f0;
      iVar7 = iVar10 + line->size;
      line->size = iVar7;
      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);
      line->chars = ptVar2;
      line->cols = cols;
    }
    else {
      iVar7 = iVar10 + line->size;
      line->size = iVar7;
      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);
      line->cols = cols;
      line->chars = ptVar2;
      if (iVar9 < cols) {
        (*(code *)PTR_memmove_00111fe8)(ptVar2 + cols,ptVar2 + iVar9,(line->size - cols) * 0xc);
      }
    }
    if ((0 < iVar9) && (iVar7 = 0, 0 < cols)) {
      piVar4 = &line->chars->cc_next;
      do {
        iVar7 = iVar7 + 1;
        if (*piVar4 != 0) {
          *piVar4 = *piVar4 + iVar10;
        }
      } while ((iVar9 != iVar7) && (piVar4 = piVar4 + 3, cols != iVar7));
    }
    if (line->cc_free != 0) {
      line->cc_free = line->cc_free + iVar10;
    }
    if (iVar9 < cols) {
      ptVar5 = line->chars;
      ptVar2 = ptVar5 + iVar9;
      do {
        ptVar3 = ptVar2 + 1;
        uVar6 = (term->basic_erase_char).attr;
        iVar9 = (term->basic_erase_char).cc_next;
        ptVar2->chr = (term->basic_erase_char).chr;
        ptVar2->attr = uVar6;
        ptVar2->cc_next = iVar9;
        ptVar2 = ptVar3;
      } while (ptVar3 != ptVar5 + cols);
    }
  }
  return;
}



void FUN_00090b64(int param_1,int param_2,int param_3)

{
  undefined *puVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  int *piVar5;
  undefined4 uVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  
  puVar1 = PTR_saferealloc_001113f0;
  iVar9 = *(int *)(param_2 + 4);
  if (iVar9 != param_3) {
    iVar10 = param_3 - iVar9;
    iVar7 = param_3;
    if (param_3 < iVar9) {
      do {
        iVar8 = iVar7 + 1;
        FUN_00090ab0(param_2,iVar7);
        iVar7 = iVar8;
      } while (iVar9 != iVar8);
      (*(code *)PTR_memmove_00111fe8)
                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,
                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);
      puVar1 = PTR_saferealloc_001113f0;
      iVar7 = iVar10 + *(int *)(param_2 + 8);
      *(int *)(param_2 + 8) = iVar7;
      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);
      *(undefined4 *)(param_2 + 0x14) = uVar2;
      *(int *)(param_2 + 4) = param_3;
    }
    else {
      iVar7 = iVar10 + *(int *)(param_2 + 8);
      *(int *)(param_2 + 8) = iVar7;
      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);
      *(int *)(param_2 + 4) = param_3;
      *(int *)(param_2 + 0x14) = iVar7;
      if (iVar9 < param_3) {
        (*(code *)PTR_memmove_00111fe8)
                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc
                  );
      }
    }
    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {
      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);
      do {
        iVar7 = iVar7 + 1;
        if (*piVar5 != 0) {
          *piVar5 = *piVar5 + iVar10;
        }
      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));
    }
    if (*(int *)(param_2 + 0x10) != 0) {
      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;
    }
    if (iVar9 < param_3) {
      iVar7 = *(int *)(param_2 + 0x14);
      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);
      do {
        puVar4 = puVar3 + 3;
        uVar6 = *(undefined4 *)(param_1 + 0x4c);
        uVar2 = *(undefined4 *)(param_1 + 0x50);
        *puVar3 = *(undefined4 *)(param_1 + 0x48);
        puVar3[1] = uVar6;
        puVar3[2] = uVar2;
        puVar3 = puVar4;
      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));
    }
  }
  return;
}


lui gp,0x9
addiu gp,gp,-0x78b4
addu gp,gp,t9
addiu sp,sp,-0x38
sw s2,0x20(sp)
sw gp,0x10(sp)
sw ra,0x34(sp)
sw s6,0x30(sp)
sw s5,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
lw s2,0x4(a1)
beq s2,a2,0x00090ce8
_or s1,a0,zero
slt v0,a2,s2
or s3,a2,zero
or s5,a1,zero
beq v0,zero,0x00090d10
_subu s4,a2,s2
lw s6,-0x77d8(gp)
or s0,a2,zero
addiu s6,s6,0xab0
or a1,s0,zero
addiu s0,s0,0x1
or t9,s6,zero
bal 0x00090ab0
_or a0,s5,zero
bne s2,s0,0x00090bc4
_lw gp,0x10(sp)
lw v1,0x4(s5)
sll a1,s2,0x1
lw a2,0x8(s5)
sll v0,s3,0x1
addu a1,a1,s2
lw a0,0x14(s5)
addu v0,v0,s3
lw t9,-0x72c8(gp)
subu a2,a2,v1
sll v0,v0,0x2
sll v1,a2,0x1
sll a1,a1,0x2
addu a2,v1,a2
addu a1,a0,a1
sll a2,a2,0x2
addu a0,a0,v0
jalr t9
_slt s0,s2,s3
li a2,0xc
lw gp,0x10(sp)
lw a1,0x8(s5)
lw a0,0x14(s5)
lw t9,-0x7ec0(gp)
addu a1,s4,a1
jalr t9
_sw a1,0x8(s5)
sw v0,0x14(s5)
sw s3,0x4(s5)
blez s2,0x00090c90
_nop
blez s3,0x00090c90
_or v0,zero,zero
lw v1,0x14(s5)
b 0x00090c74
_addiu v1,v1,0x8
beq s3,v0,0x00090c90
_addiu v1,v1,0xc
lw a0,0x0(v1)
addiu v0,v0,0x1
beq a0,zero,0x00090c88
_addu a1,a0,s4
sw a1,0x0(v1)
bne s2,v0,0x00090c6c
_nop
lw v0,0x10(s5)
beq v0,zero,0x00090ca0
_addu s4,v0,s4
sw s4,0x10(s5)
beq s0,zero,0x00090ce8
_sll a2,s3,0x1
sll v0,s2,0x1
lw v1,0x14(s5)
addu v0,v0,s2
addu s3,a2,s3
sll v0,v0,0x2
sll s3,s3,0x2
addu v0,v1,v0
addu s3,v1,s3
lw a1,0x48(s1)
addiu v0,v0,0xc
lw a0,0x4c(s1)
lw v1,0x50(s1)
sw a1,-0xc(v0)
sw a0,-0x8(v0)
bne v0,s3,0x00090cc8
_sw v1,-0x4(v0)
lw ra,0x34(sp)
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x38
lw a1,0x8(a1)
li a2,0xc
lw t9,-0x7ec0(gp)
slt s0,s2,s3
lw a0,0x14(s5)
addu a1,s4,a1
jalr t9
_sw a1,0x8(s5)
lw gp,0x10(sp)
sw s3,0x4(s5)
beq s0,zero,0x00090c50
_sw v0,0x14(s5)
lw a2,0x8(s5)
sll a1,s2,0x1
sll v1,s3,0x1
lw t9,-0x72c8(gp)
addu a1,a1,s2
subu a2,a2,s3
addu v1,v1,s3
sll a0,a2,0x1
sll v1,v1,0x2
addu a2,a0,a2
sll a1,a1,0x2
sll a2,a2,0x2
addu a1,v0,a1
jalr t9
_addu a0,v0,v1
b 0x00090c50
_nop
(translation_unit "void FUN_00090b64(int param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  \n  puVar1 = PTR_saferealloc_001113f0;\n  iVar9 = *(int *)(param_2 + 4);\n  if (iVar9 != param_3) {\n    iVar10 = param_3 - iVar9;\n    iVar7 = param_3;\n    if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }\n    if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }\n    if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00090b64(int param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  \n  puVar1 = PTR_saferealloc_001113f0;\n  iVar9 = *(int *)(param_2 + 4);\n  if (iVar9 != param_3) {\n    iVar10 = param_3 - iVar9;\n    iVar7 = param_3;\n    if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }\n    if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }\n    if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00090b64(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  \n  puVar1 = PTR_saferealloc_001113f0;\n  iVar9 = *(int *)(param_2 + 4);\n  if (iVar9 != param_3) {\n    iVar10 = param_3 - iVar9;\n    iVar7 = param_3;\n    if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }\n    if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }\n    if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_saferealloc_001113f0;" (assignment_expression "puVar1 = PTR_saferealloc_001113f0" identifier = identifier) ;) (expression_statement "iVar9 = *(int *)(param_2 + 4);" (assignment_expression "iVar9 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar9 != param_3) {\n    iVar10 = param_3 - iVar9;\n    iVar7 = param_3;\n    if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }\n    if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }\n    if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }\n  }" if (parenthesized_expression "(iVar9 != param_3)" ( (binary_expression "iVar9 != param_3" identifier != identifier) )) (compound_statement "{\n    iVar10 = param_3 - iVar9;\n    iVar7 = param_3;\n    if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }\n    if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }\n    if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }\n  }" { (expression_statement "iVar10 = param_3 - iVar9;" (assignment_expression "iVar10 = param_3 - iVar9" identifier = (binary_expression "param_3 - iVar9" identifier - identifier)) ;) (expression_statement "iVar7 = param_3;" (assignment_expression "iVar7 = param_3" identifier = identifier) ;) (if_statement "if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }" if (parenthesized_expression "(param_3 < iVar9)" ( (binary_expression "param_3 < iVar9" identifier < identifier) )) (compound_statement "{\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }" { (do_statement "do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);" do (compound_statement "{\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      }" { (expression_statement "iVar8 = iVar7 + 1;" (assignment_expression "iVar8 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00090ab0(param_2,iVar7);" (call_expression "FUN_00090ab0(param_2,iVar7)" identifier (argument_list "(param_2,iVar7)" ( identifier , identifier ))) ;) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) }) while (parenthesized_expression "(iVar9 != iVar8)" ( (binary_expression "iVar9 != iVar8" identifier != identifier) )) ;) (expression_statement "(*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);" (call_expression "(*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc)" (parenthesized_expression "(*(code *)PTR_memmove_00111fe8)" ( (pointer_expression "*(code *)PTR_memmove_00111fe8" * (cast_expression "(code *)PTR_memmove_00111fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc)" ( (binary_expression "*(int *)(param_2 + 0x14) + param_3 * 0xc" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + (binary_expression "param_3 * 0xc" identifier * number_literal)) , (binary_expression "*(int *)(param_2 + 0x14) + iVar9 * 0xc" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + (binary_expression "iVar9 * 0xc" identifier * number_literal)) , (binary_expression "(*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc" (parenthesized_expression "(*(int *)(param_2 + 8) - *(int *)(param_2 + 4))" ( (binary_expression "*(int *)(param_2 + 8) - *(int *)(param_2 + 4)" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) )) * number_literal) ))) ;) (expression_statement "puVar1 = PTR_saferealloc_001113f0;" (assignment_expression "puVar1 = PTR_saferealloc_001113f0" identifier = identifier) ;) (expression_statement "iVar7 = iVar10 + *(int *)(param_2 + 8);" (assignment_expression "iVar7 = iVar10 + *(int *)(param_2 + 8)" identifier = (binary_expression "iVar10 + *(int *)(param_2 + 8)" identifier + (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))))) ;) (expression_statement "*(int *)(param_2 + 8) = iVar7;" (assignment_expression "*(int *)(param_2 + 8) = iVar7" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);" (assignment_expression "uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" identifier = (call_expression "(*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) , identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x14) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 4) = param_3;" (assignment_expression "*(int *)(param_2 + 4) = param_3" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }" else (compound_statement "{\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }" { (expression_statement "iVar7 = iVar10 + *(int *)(param_2 + 8);" (assignment_expression "iVar7 = iVar10 + *(int *)(param_2 + 8)" identifier = (binary_expression "iVar10 + *(int *)(param_2 + 8)" identifier + (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))))) ;) (expression_statement "*(int *)(param_2 + 8) = iVar7;" (assignment_expression "*(int *)(param_2 + 8) = iVar7" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);" (assignment_expression "iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" identifier = (call_expression "(*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) , identifier , number_literal )))) ;) (expression_statement "*(int *)(param_2 + 4) = param_3;" (assignment_expression "*(int *)(param_2 + 4) = param_3" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 0x14) = iVar7;" (assignment_expression "*(int *)(param_2 + 0x14) = iVar7" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }" if (parenthesized_expression "(iVar9 < param_3)" ( (binary_expression "iVar9 < param_3" identifier < identifier) )) (compound_statement "{\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }" { (expression_statement "(*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );" (call_expression "(*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  )" (parenthesized_expression "(*(code *)PTR_memmove_00111fe8)" ( (pointer_expression "*(code *)PTR_memmove_00111fe8" * (cast_expression "(code *)PTR_memmove_00111fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  )" ( (binary_expression "iVar7 + param_3 * 0xc" identifier + (binary_expression "param_3 * 0xc" identifier * number_literal)) , (binary_expression "iVar7 + iVar9 * 0xc" identifier + (binary_expression "iVar9 * 0xc" identifier * number_literal)) , (binary_expression "(*(int *)(param_2 + 8) - param_3) * 0xc" (parenthesized_expression "(*(int *)(param_2 + 8) - param_3)" ( (binary_expression "*(int *)(param_2 + 8) - param_3" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) - identifier) )) * number_literal) ))) ;) })) }))) (if_statement "if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }" if (parenthesized_expression "((0 < iVar9) && (iVar7 = 0, 0 < param_3))" ( (binary_expression "(0 < iVar9) && (iVar7 = 0, 0 < param_3)" (parenthesized_expression "(0 < iVar9)" ( (binary_expression "0 < iVar9" number_literal < identifier) )) && (parenthesized_expression "(iVar7 = 0, 0 < param_3)" ( (comma_expression "iVar7 = 0, 0 < param_3" (assignment_expression "iVar7 = 0" identifier = number_literal) , (binary_expression "0 < param_3" number_literal < identifier)) ))) )) (compound_statement "{\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }" { (expression_statement "piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);" (assignment_expression "piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8)" identifier = (cast_expression "(int *)(*(int *)(param_2 + 0x14) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x14) + 8)" ( (binary_expression "*(int *)(param_2 + 0x14) + 8" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + number_literal) )))) ;) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));" do (compound_statement "{\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }" if (parenthesized_expression "(*piVar5 != 0)" ( (binary_expression "*piVar5 != 0" (pointer_expression "*piVar5" * identifier) != number_literal) )) (compound_statement "{\n          *piVar5 = *piVar5 + iVar10;\n        }" { (expression_statement "*piVar5 = *piVar5 + iVar10;" (assignment_expression "*piVar5 = *piVar5 + iVar10" (pointer_expression "*piVar5" * identifier) = (binary_expression "*piVar5 + iVar10" (pointer_expression "*piVar5" * identifier) + identifier)) ;) })) }) while (parenthesized_expression "((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7))" ( (binary_expression "(iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7)" (parenthesized_expression "(iVar9 != iVar7)" ( (binary_expression "iVar9 != iVar7" identifier != identifier) )) && (parenthesized_expression "(piVar5 = piVar5 + 3, param_3 != iVar7)" ( (comma_expression "piVar5 = piVar5 + 3, param_3 != iVar7" (assignment_expression "piVar5 = piVar5 + 3" identifier = (binary_expression "piVar5 + 3" identifier + number_literal)) , (binary_expression "param_3 != iVar7" identifier != identifier)) ))) )) ;) })) (if_statement "if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }" if (parenthesized_expression "(*(int *)(param_2 + 0x10) != 0)" ( (binary_expression "*(int *)(param_2 + 0x10) != 0" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }" { (expression_statement "*(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;" (assignment_expression "*(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 0x10) + iVar10" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) + identifier)) ;) })) (if_statement "if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }" if (parenthesized_expression "(iVar9 < param_3)" ( (binary_expression "iVar9 < param_3" identifier < identifier) )) (compound_statement "{\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }" { (expression_statement "iVar7 = *(int *)(param_2 + 0x14);" (assignment_expression "iVar7 = *(int *)(param_2 + 0x14)" identifier = (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);" (assignment_expression "puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc)" identifier = (cast_expression "(undefined4 *)(iVar7 + iVar9 * 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + iVar9 * 0xc)" ( (binary_expression "iVar7 + iVar9 * 0xc" identifier + (binary_expression "iVar9 * 0xc" identifier * number_literal)) )))) ;) (do_statement "do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));" do (compound_statement "{\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      }" { (expression_statement "puVar4 = puVar3 + 3;" (assignment_expression "puVar4 = puVar3 + 3" identifier = (binary_expression "puVar3 + 3" identifier + number_literal)) ;) (expression_statement "uVar6 = *(undefined4 *)(param_1 + 0x4c);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 0x4c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x50);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x50)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) (expression_statement "*puVar3 = *(undefined4 *)(param_1 + 0x48);" (assignment_expression "*puVar3 = *(undefined4 *)(param_1 + 0x48)" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;) (expression_statement "puVar3[1] = uVar6;" (assignment_expression "puVar3[1] = uVar6" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[2] = uVar2;" (assignment_expression "puVar3[2] = uVar2" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = puVar4;" (assignment_expression "puVar3 = puVar4" identifier = identifier) ;) }) while (parenthesized_expression "(puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc))" ( (binary_expression "puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc)" identifier != (cast_expression "(undefined4 *)(iVar7 + param_3 * 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + param_3 * 0xc)" ( (binary_expression "iVar7 + param_3 * 0xc" identifier + (binary_expression "param_3 * 0xc" identifier * number_literal)) )))) )) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid resizeline(Terminal *term,termline *line,int cols)\n\n{\n  undefined *puVar1;\n  termchar *ptVar2;\n  termchar *ptVar3;\n  int *piVar4;\n  termchar *ptVar5;\n  ulong uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  \n  puVar1 = PTR_saferealloc_001113f0;\n  iVar9 = line->cols;\n  if (iVar9 != cols) {\n    iVar10 = cols - iVar9;\n    iVar7 = cols;\n    if (cols < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        clear_cc(line,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (line->chars + cols,line->chars + iVar9,(line->size - line->cols) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->chars = ptVar2;\n      line->cols = cols;\n    }\n    else {\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->cols = cols;\n      line->chars = ptVar2;\n      if (iVar9 < cols) {\n        (*(code *)PTR_memmove_00111fe8)(ptVar2 + cols,ptVar2 + iVar9,(line->size - cols) * 0xc);\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < cols)) {\n      piVar4 = &line->chars->cc_next;\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar4 = piVar4 + 3, cols != iVar7));\n    }\n    if (line->cc_free != 0) {\n      line->cc_free = line->cc_free + iVar10;\n    }\n    if (iVar9 < cols) {\n      ptVar5 = line->chars;\n      ptVar2 = ptVar5 + iVar9;\n      do {\n        ptVar3 = ptVar2 + 1;\n        uVar6 = (term->basic_erase_char).attr;\n        iVar9 = (term->basic_erase_char).cc_next;\n        ptVar2->chr = (term->basic_erase_char).chr;\n        ptVar2->attr = uVar6;\n        ptVar2->cc_next = iVar9;\n        ptVar2 = ptVar3;\n      } while (ptVar3 != ptVar5 + cols);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void resizeline(Terminal *term,termline *line,int cols)\n\n{\n  undefined *puVar1;\n  termchar *ptVar2;\n  termchar *ptVar3;\n  int *piVar4;\n  termchar *ptVar5;\n  ulong uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  \n  puVar1 = PTR_saferealloc_001113f0;\n  iVar9 = line->cols;\n  if (iVar9 != cols) {\n    iVar10 = cols - iVar9;\n    iVar7 = cols;\n    if (cols < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        clear_cc(line,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (line->chars + cols,line->chars + iVar9,(line->size - line->cols) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->chars = ptVar2;\n      line->cols = cols;\n    }\n    else {\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->cols = cols;\n      line->chars = ptVar2;\n      if (iVar9 < cols) {\n        (*(code *)PTR_memmove_00111fe8)(ptVar2 + cols,ptVar2 + iVar9,(line->size - cols) * 0xc);\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < cols)) {\n      piVar4 = &line->chars->cc_next;\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar4 = piVar4 + 3, cols != iVar7));\n    }\n    if (line->cc_free != 0) {\n      line->cc_free = line->cc_free + iVar10;\n    }\n    if (iVar9 < cols) {\n      ptVar5 = line->chars;\n      ptVar2 = ptVar5 + iVar9;\n      do {\n        ptVar3 = ptVar2 + 1;\n        uVar6 = (term->basic_erase_char).attr;\n        iVar9 = (term->basic_erase_char).cc_next;\n        ptVar2->chr = (term->basic_erase_char).chr;\n        ptVar2->attr = uVar6;\n        ptVar2->cc_next = iVar9;\n        ptVar2 = ptVar3;\n      } while (ptVar3 != ptVar5 + cols);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "resizeline(Terminal *term,termline *line,int cols)" identifier (parameter_list "(Terminal *term,termline *line,int cols)" ( (parameter_declaration "Terminal *term" type_identifier (pointer_declarator "*term" * identifier)) , (parameter_declaration "termline *line" type_identifier (pointer_declarator "*line" * identifier)) , (parameter_declaration "int cols" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  termchar *ptVar2;\n  termchar *ptVar3;\n  int *piVar4;\n  termchar *ptVar5;\n  ulong uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  \n  puVar1 = PTR_saferealloc_001113f0;\n  iVar9 = line->cols;\n  if (iVar9 != cols) {\n    iVar10 = cols - iVar9;\n    iVar7 = cols;\n    if (cols < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        clear_cc(line,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (line->chars + cols,line->chars + iVar9,(line->size - line->cols) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->chars = ptVar2;\n      line->cols = cols;\n    }\n    else {\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->cols = cols;\n      line->chars = ptVar2;\n      if (iVar9 < cols) {\n        (*(code *)PTR_memmove_00111fe8)(ptVar2 + cols,ptVar2 + iVar9,(line->size - cols) * 0xc);\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < cols)) {\n      piVar4 = &line->chars->cc_next;\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar4 = piVar4 + 3, cols != iVar7));\n    }\n    if (line->cc_free != 0) {\n      line->cc_free = line->cc_free + iVar10;\n    }\n    if (iVar9 < cols) {\n      ptVar5 = line->chars;\n      ptVar2 = ptVar5 + iVar9;\n      do {\n        ptVar3 = ptVar2 + 1;\n        uVar6 = (term->basic_erase_char).attr;\n        iVar9 = (term->basic_erase_char).cc_next;\n        ptVar2->chr = (term->basic_erase_char).chr;\n        ptVar2->attr = uVar6;\n        ptVar2->cc_next = iVar9;\n        ptVar2 = ptVar3;\n      } while (ptVar3 != ptVar5 + cols);\n    }\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "termchar *ptVar2;" type_identifier (pointer_declarator "*ptVar2" * identifier) ;) (declaration "termchar *ptVar3;" type_identifier (pointer_declarator "*ptVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "termchar *ptVar5;" type_identifier (pointer_declarator "*ptVar5" * identifier) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_saferealloc_001113f0;" (assignment_expression "puVar1 = PTR_saferealloc_001113f0" identifier = identifier) ;) (expression_statement "iVar9 = line->cols;" (assignment_expression "iVar9 = line->cols" identifier = (field_expression "line->cols" identifier -> field_identifier)) ;) (if_statement "if (iVar9 != cols) {\n    iVar10 = cols - iVar9;\n    iVar7 = cols;\n    if (cols < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        clear_cc(line,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (line->chars + cols,line->chars + iVar9,(line->size - line->cols) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->chars = ptVar2;\n      line->cols = cols;\n    }\n    else {\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->cols = cols;\n      line->chars = ptVar2;\n      if (iVar9 < cols) {\n        (*(code *)PTR_memmove_00111fe8)(ptVar2 + cols,ptVar2 + iVar9,(line->size - cols) * 0xc);\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < cols)) {\n      piVar4 = &line->chars->cc_next;\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar4 = piVar4 + 3, cols != iVar7));\n    }\n    if (line->cc_free != 0) {\n      line->cc_free = line->cc_free + iVar10;\n    }\n    if (iVar9 < cols) {\n      ptVar5 = line->chars;\n      ptVar2 = ptVar5 + iVar9;\n      do {\n        ptVar3 = ptVar2 + 1;\n        uVar6 = (term->basic_erase_char).attr;\n        iVar9 = (term->basic_erase_char).cc_next;\n        ptVar2->chr = (term->basic_erase_char).chr;\n        ptVar2->attr = uVar6;\n        ptVar2->cc_next = iVar9;\n        ptVar2 = ptVar3;\n      } while (ptVar3 != ptVar5 + cols);\n    }\n  }" if (parenthesized_expression "(iVar9 != cols)" ( (binary_expression "iVar9 != cols" identifier != identifier) )) (compound_statement "{\n    iVar10 = cols - iVar9;\n    iVar7 = cols;\n    if (cols < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        clear_cc(line,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (line->chars + cols,line->chars + iVar9,(line->size - line->cols) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->chars = ptVar2;\n      line->cols = cols;\n    }\n    else {\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->cols = cols;\n      line->chars = ptVar2;\n      if (iVar9 < cols) {\n        (*(code *)PTR_memmove_00111fe8)(ptVar2 + cols,ptVar2 + iVar9,(line->size - cols) * 0xc);\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < cols)) {\n      piVar4 = &line->chars->cc_next;\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar4 = piVar4 + 3, cols != iVar7));\n    }\n    if (line->cc_free != 0) {\n      line->cc_free = line->cc_free + iVar10;\n    }\n    if (iVar9 < cols) {\n      ptVar5 = line->chars;\n      ptVar2 = ptVar5 + iVar9;\n      do {\n        ptVar3 = ptVar2 + 1;\n        uVar6 = (term->basic_erase_char).attr;\n        iVar9 = (term->basic_erase_char).cc_next;\n        ptVar2->chr = (term->basic_erase_char).chr;\n        ptVar2->attr = uVar6;\n        ptVar2->cc_next = iVar9;\n        ptVar2 = ptVar3;\n      } while (ptVar3 != ptVar5 + cols);\n    }\n  }" { (expression_statement "iVar10 = cols - iVar9;" (assignment_expression "iVar10 = cols - iVar9" identifier = (binary_expression "cols - iVar9" identifier - identifier)) ;) (expression_statement "iVar7 = cols;" (assignment_expression "iVar7 = cols" identifier = identifier) ;) (if_statement "if (cols < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        clear_cc(line,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (line->chars + cols,line->chars + iVar9,(line->size - line->cols) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->chars = ptVar2;\n      line->cols = cols;\n    }\n    else {\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->cols = cols;\n      line->chars = ptVar2;\n      if (iVar9 < cols) {\n        (*(code *)PTR_memmove_00111fe8)(ptVar2 + cols,ptVar2 + iVar9,(line->size - cols) * 0xc);\n      }\n    }" if (parenthesized_expression "(cols < iVar9)" ( (binary_expression "cols < iVar9" identifier < identifier) )) (compound_statement "{\n      do {\n        iVar8 = iVar7 + 1;\n        clear_cc(line,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (line->chars + cols,line->chars + iVar9,(line->size - line->cols) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->chars = ptVar2;\n      line->cols = cols;\n    }" { (do_statement "do {\n        iVar8 = iVar7 + 1;\n        clear_cc(line,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);" do (compound_statement "{\n        iVar8 = iVar7 + 1;\n        clear_cc(line,iVar7);\n        iVar7 = iVar8;\n      }" { (expression_statement "iVar8 = iVar7 + 1;" (assignment_expression "iVar8 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "clear_cc(line,iVar7);" (call_expression "clear_cc(line,iVar7)" identifier (argument_list "(line,iVar7)" ( identifier , identifier ))) ;) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) }) while (parenthesized_expression "(iVar9 != iVar8)" ( (binary_expression "iVar9 != iVar8" identifier != identifier) )) ;) (expression_statement "(*(code *)PTR_memmove_00111fe8)\n                (line->chars + cols,line->chars + iVar9,(line->size - line->cols) * 0xc);" (call_expression "(*(code *)PTR_memmove_00111fe8)\n                (line->chars + cols,line->chars + iVar9,(line->size - line->cols) * 0xc)" (parenthesized_expression "(*(code *)PTR_memmove_00111fe8)" ( (pointer_expression "*(code *)PTR_memmove_00111fe8" * (cast_expression "(code *)PTR_memmove_00111fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(line->chars + cols,line->chars + iVar9,(line->size - line->cols) * 0xc)" ( (binary_expression "line->chars + cols" (field_expression "line->chars" identifier -> field_identifier) + identifier) , (binary_expression "line->chars + iVar9" (field_expression "line->chars" identifier -> field_identifier) + identifier) , (binary_expression "(line->size - line->cols) * 0xc" (parenthesized_expression "(line->size - line->cols)" ( (binary_expression "line->size - line->cols" (field_expression "line->size" identifier -> field_identifier) - (field_expression "line->cols" identifier -> field_identifier)) )) * number_literal) ))) ;) (expression_statement "puVar1 = PTR_saferealloc_001113f0;" (assignment_expression "puVar1 = PTR_saferealloc_001113f0" identifier = identifier) ;) (expression_statement "iVar7 = iVar10 + line->size;" (assignment_expression "iVar7 = iVar10 + line->size" identifier = (binary_expression "iVar10 + line->size" identifier + (field_expression "line->size" identifier -> field_identifier))) ;) (expression_statement "line->size = iVar7;" (assignment_expression "line->size = iVar7" (field_expression "line->size" identifier -> field_identifier) = identifier) ;) (expression_statement "ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);" (assignment_expression "ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc)" identifier = (cast_expression "(termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc)" ( (type_descriptor "termchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)(line->chars,iVar7,0xc)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(line->chars,iVar7,0xc)" ( (field_expression "line->chars" identifier -> field_identifier) , identifier , number_literal ))))) ;) (expression_statement "line->chars = ptVar2;" (assignment_expression "line->chars = ptVar2" (field_expression "line->chars" identifier -> field_identifier) = identifier) ;) (expression_statement "line->cols = cols;" (assignment_expression "line->cols = cols" (field_expression "line->cols" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->cols = cols;\n      line->chars = ptVar2;\n      if (iVar9 < cols) {\n        (*(code *)PTR_memmove_00111fe8)(ptVar2 + cols,ptVar2 + iVar9,(line->size - cols) * 0xc);\n      }\n    }" else (compound_statement "{\n      iVar7 = iVar10 + line->size;\n      line->size = iVar7;\n      ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);\n      line->cols = cols;\n      line->chars = ptVar2;\n      if (iVar9 < cols) {\n        (*(code *)PTR_memmove_00111fe8)(ptVar2 + cols,ptVar2 + iVar9,(line->size - cols) * 0xc);\n      }\n    }" { (expression_statement "iVar7 = iVar10 + line->size;" (assignment_expression "iVar7 = iVar10 + line->size" identifier = (binary_expression "iVar10 + line->size" identifier + (field_expression "line->size" identifier -> field_identifier))) ;) (expression_statement "line->size = iVar7;" (assignment_expression "line->size = iVar7" (field_expression "line->size" identifier -> field_identifier) = identifier) ;) (expression_statement "ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc);" (assignment_expression "ptVar2 = (termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc)" identifier = (cast_expression "(termchar *)(*(code *)puVar1)(line->chars,iVar7,0xc)" ( (type_descriptor "termchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)(line->chars,iVar7,0xc)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(line->chars,iVar7,0xc)" ( (field_expression "line->chars" identifier -> field_identifier) , identifier , number_literal ))))) ;) (expression_statement "line->cols = cols;" (assignment_expression "line->cols = cols" (field_expression "line->cols" identifier -> field_identifier) = identifier) ;) (expression_statement "line->chars = ptVar2;" (assignment_expression "line->chars = ptVar2" (field_expression "line->chars" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar9 < cols) {\n        (*(code *)PTR_memmove_00111fe8)(ptVar2 + cols,ptVar2 + iVar9,(line->size - cols) * 0xc);\n      }" if (parenthesized_expression "(iVar9 < cols)" ( (binary_expression "iVar9 < cols" identifier < identifier) )) (compound_statement "{\n        (*(code *)PTR_memmove_00111fe8)(ptVar2 + cols,ptVar2 + iVar9,(line->size - cols) * 0xc);\n      }" { (expression_statement "(*(code *)PTR_memmove_00111fe8)(ptVar2 + cols,ptVar2 + iVar9,(line->size - cols) * 0xc);" (call_expression "(*(code *)PTR_memmove_00111fe8)(ptVar2 + cols,ptVar2 + iVar9,(line->size - cols) * 0xc)" (parenthesized_expression "(*(code *)PTR_memmove_00111fe8)" ( (pointer_expression "*(code *)PTR_memmove_00111fe8" * (cast_expression "(code *)PTR_memmove_00111fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ptVar2 + cols,ptVar2 + iVar9,(line->size - cols) * 0xc)" ( (binary_expression "ptVar2 + cols" identifier + identifier) , (binary_expression "ptVar2 + iVar9" identifier + identifier) , (binary_expression "(line->size - cols) * 0xc" (parenthesized_expression "(line->size - cols)" ( (binary_expression "line->size - cols" (field_expression "line->size" identifier -> field_identifier) - identifier) )) * number_literal) ))) ;) })) }))) (if_statement "if ((0 < iVar9) && (iVar7 = 0, 0 < cols)) {\n      piVar4 = &line->chars->cc_next;\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar4 = piVar4 + 3, cols != iVar7));\n    }" if (parenthesized_expression "((0 < iVar9) && (iVar7 = 0, 0 < cols))" ( (binary_expression "(0 < iVar9) && (iVar7 = 0, 0 < cols)" (parenthesized_expression "(0 < iVar9)" ( (binary_expression "0 < iVar9" number_literal < identifier) )) && (parenthesized_expression "(iVar7 = 0, 0 < cols)" ( (comma_expression "iVar7 = 0, 0 < cols" (assignment_expression "iVar7 = 0" identifier = number_literal) , (binary_expression "0 < cols" number_literal < identifier)) ))) )) (compound_statement "{\n      piVar4 = &line->chars->cc_next;\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar4 = piVar4 + 3, cols != iVar7));\n    }" { (expression_statement "piVar4 = &line->chars->cc_next;" (assignment_expression "piVar4 = &line->chars->cc_next" identifier = (pointer_expression "&line->chars->cc_next" & (field_expression "line->chars->cc_next" (field_expression "line->chars" identifier -> field_identifier) -> field_identifier))) ;) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar4 = piVar4 + 3, cols != iVar7));" do (compound_statement "{\n        iVar7 = iVar7 + 1;\n        if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar10;\n        }\n      }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (*piVar4 != 0) {\n          *piVar4 = *piVar4 + iVar10;\n        }" if (parenthesized_expression "(*piVar4 != 0)" ( (binary_expression "*piVar4 != 0" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n          *piVar4 = *piVar4 + iVar10;\n        }" { (expression_statement "*piVar4 = *piVar4 + iVar10;" (assignment_expression "*piVar4 = *piVar4 + iVar10" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + iVar10" (pointer_expression "*piVar4" * identifier) + identifier)) ;) })) }) while (parenthesized_expression "((iVar9 != iVar7) && (piVar4 = piVar4 + 3, cols != iVar7))" ( (binary_expression "(iVar9 != iVar7) && (piVar4 = piVar4 + 3, cols != iVar7)" (parenthesized_expression "(iVar9 != iVar7)" ( (binary_expression "iVar9 != iVar7" identifier != identifier) )) && (parenthesized_expression "(piVar4 = piVar4 + 3, cols != iVar7)" ( (comma_expression "piVar4 = piVar4 + 3, cols != iVar7" (assignment_expression "piVar4 = piVar4 + 3" identifier = (binary_expression "piVar4 + 3" identifier + number_literal)) , (binary_expression "cols != iVar7" identifier != identifier)) ))) )) ;) })) (if_statement "if (line->cc_free != 0) {\n      line->cc_free = line->cc_free + iVar10;\n    }" if (parenthesized_expression "(line->cc_free != 0)" ( (binary_expression "line->cc_free != 0" (field_expression "line->cc_free" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      line->cc_free = line->cc_free + iVar10;\n    }" { (expression_statement "line->cc_free = line->cc_free + iVar10;" (assignment_expression "line->cc_free = line->cc_free + iVar10" (field_expression "line->cc_free" identifier -> field_identifier) = (binary_expression "line->cc_free + iVar10" (field_expression "line->cc_free" identifier -> field_identifier) + identifier)) ;) })) (if_statement "if (iVar9 < cols) {\n      ptVar5 = line->chars;\n      ptVar2 = ptVar5 + iVar9;\n      do {\n        ptVar3 = ptVar2 + 1;\n        uVar6 = (term->basic_erase_char).attr;\n        iVar9 = (term->basic_erase_char).cc_next;\n        ptVar2->chr = (term->basic_erase_char).chr;\n        ptVar2->attr = uVar6;\n        ptVar2->cc_next = iVar9;\n        ptVar2 = ptVar3;\n      } while (ptVar3 != ptVar5 + cols);\n    }" if (parenthesized_expression "(iVar9 < cols)" ( (binary_expression "iVar9 < cols" identifier < identifier) )) (compound_statement "{\n      ptVar5 = line->chars;\n      ptVar2 = ptVar5 + iVar9;\n      do {\n        ptVar3 = ptVar2 + 1;\n        uVar6 = (term->basic_erase_char).attr;\n        iVar9 = (term->basic_erase_char).cc_next;\n        ptVar2->chr = (term->basic_erase_char).chr;\n        ptVar2->attr = uVar6;\n        ptVar2->cc_next = iVar9;\n        ptVar2 = ptVar3;\n      } while (ptVar3 != ptVar5 + cols);\n    }" { (expression_statement "ptVar5 = line->chars;" (assignment_expression "ptVar5 = line->chars" identifier = (field_expression "line->chars" identifier -> field_identifier)) ;) (expression_statement "ptVar2 = ptVar5 + iVar9;" (assignment_expression "ptVar2 = ptVar5 + iVar9" identifier = (binary_expression "ptVar5 + iVar9" identifier + identifier)) ;) (do_statement "do {\n        ptVar3 = ptVar2 + 1;\n        uVar6 = (term->basic_erase_char).attr;\n        iVar9 = (term->basic_erase_char).cc_next;\n        ptVar2->chr = (term->basic_erase_char).chr;\n        ptVar2->attr = uVar6;\n        ptVar2->cc_next = iVar9;\n        ptVar2 = ptVar3;\n      } while (ptVar3 != ptVar5 + cols);" do (compound_statement "{\n        ptVar3 = ptVar2 + 1;\n        uVar6 = (term->basic_erase_char).attr;\n        iVar9 = (term->basic_erase_char).cc_next;\n        ptVar2->chr = (term->basic_erase_char).chr;\n        ptVar2->attr = uVar6;\n        ptVar2->cc_next = iVar9;\n        ptVar2 = ptVar3;\n      }" { (expression_statement "ptVar3 = ptVar2 + 1;" (assignment_expression "ptVar3 = ptVar2 + 1" identifier = (binary_expression "ptVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = (term->basic_erase_char).attr;" (assignment_expression "uVar6 = (term->basic_erase_char).attr" identifier = (field_expression "(term->basic_erase_char).attr" (parenthesized_expression "(term->basic_erase_char)" ( (field_expression "term->basic_erase_char" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar9 = (term->basic_erase_char).cc_next;" (assignment_expression "iVar9 = (term->basic_erase_char).cc_next" identifier = (field_expression "(term->basic_erase_char).cc_next" (parenthesized_expression "(term->basic_erase_char)" ( (field_expression "term->basic_erase_char" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "ptVar2->chr = (term->basic_erase_char).chr;" (assignment_expression "ptVar2->chr = (term->basic_erase_char).chr" (field_expression "ptVar2->chr" identifier -> field_identifier) = (field_expression "(term->basic_erase_char).chr" (parenthesized_expression "(term->basic_erase_char)" ( (field_expression "term->basic_erase_char" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "ptVar2->attr = uVar6;" (assignment_expression "ptVar2->attr = uVar6" (field_expression "ptVar2->attr" identifier -> field_identifier) = identifier) ;) (expression_statement "ptVar2->cc_next = iVar9;" (assignment_expression "ptVar2->cc_next = iVar9" (field_expression "ptVar2->cc_next" identifier -> field_identifier) = identifier) ;) (expression_statement "ptVar2 = ptVar3;" (assignment_expression "ptVar2 = ptVar3" identifier = identifier) ;) }) while (parenthesized_expression "(ptVar3 != ptVar5 + cols)" ( (binary_expression "ptVar3 != ptVar5 + cols" identifier != (binary_expression "ptVar5 + cols" identifier + identifier)) )) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00090b64(int param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  \n  puVar1 = PTR_saferealloc_001113f0;\n  iVar9 = *(int *)(param_2 + 4);\n  if (iVar9 != param_3) {\n    iVar10 = param_3 - iVar9;\n    iVar7 = param_3;\n    if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }\n    if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }\n    if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00090b64(int param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  \n  puVar1 = PTR_saferealloc_001113f0;\n  iVar9 = *(int *)(param_2 + 4);\n  if (iVar9 != param_3) {\n    iVar10 = param_3 - iVar9;\n    iVar7 = param_3;\n    if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }\n    if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }\n    if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00090b64(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  \n  puVar1 = PTR_saferealloc_001113f0;\n  iVar9 = *(int *)(param_2 + 4);\n  if (iVar9 != param_3) {\n    iVar10 = param_3 - iVar9;\n    iVar7 = param_3;\n    if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }\n    if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }\n    if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_saferealloc_001113f0;" (assignment_expression "puVar1 = PTR_saferealloc_001113f0" identifier = identifier) ;) (expression_statement "iVar9 = *(int *)(param_2 + 4);" (assignment_expression "iVar9 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar9 != param_3) {\n    iVar10 = param_3 - iVar9;\n    iVar7 = param_3;\n    if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }\n    if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }\n    if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }\n  }" if (parenthesized_expression "(iVar9 != param_3)" ( (binary_expression "iVar9 != param_3" identifier != identifier) )) (compound_statement "{\n    iVar10 = param_3 - iVar9;\n    iVar7 = param_3;\n    if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }\n    if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }\n    if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }\n  }" { (expression_statement "iVar10 = param_3 - iVar9;" (assignment_expression "iVar10 = param_3 - iVar9" identifier = (binary_expression "param_3 - iVar9" identifier - identifier)) ;) (expression_statement "iVar7 = param_3;" (assignment_expression "iVar7 = param_3" identifier = identifier) ;) (if_statement "if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }" if (parenthesized_expression "(param_3 < iVar9)" ( (binary_expression "param_3 < iVar9" identifier < identifier) )) (compound_statement "{\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }" { (do_statement "do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);" do (compound_statement "{\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      }" { (expression_statement "iVar8 = iVar7 + 1;" (assignment_expression "iVar8 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00090ab0(param_2,iVar7);" (call_expression "FUN_00090ab0(param_2,iVar7)" identifier (argument_list "(param_2,iVar7)" ( identifier , identifier ))) ;) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) }) while (parenthesized_expression "(iVar9 != iVar8)" ( (binary_expression "iVar9 != iVar8" identifier != identifier) )) ;) (expression_statement "(*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);" (call_expression "(*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc)" (parenthesized_expression "(*(code *)PTR_memmove_00111fe8)" ( (pointer_expression "*(code *)PTR_memmove_00111fe8" * (cast_expression "(code *)PTR_memmove_00111fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc)" ( (binary_expression "*(int *)(param_2 + 0x14) + param_3 * 0xc" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + (binary_expression "param_3 * 0xc" identifier * number_literal)) , (binary_expression "*(int *)(param_2 + 0x14) + iVar9 * 0xc" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + (binary_expression "iVar9 * 0xc" identifier * number_literal)) , (binary_expression "(*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc" (parenthesized_expression "(*(int *)(param_2 + 8) - *(int *)(param_2 + 4))" ( (binary_expression "*(int *)(param_2 + 8) - *(int *)(param_2 + 4)" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) )) * number_literal) ))) ;) (expression_statement "puVar1 = PTR_saferealloc_001113f0;" (assignment_expression "puVar1 = PTR_saferealloc_001113f0" identifier = identifier) ;) (expression_statement "iVar7 = iVar10 + *(int *)(param_2 + 8);" (assignment_expression "iVar7 = iVar10 + *(int *)(param_2 + 8)" identifier = (binary_expression "iVar10 + *(int *)(param_2 + 8)" identifier + (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))))) ;) (expression_statement "*(int *)(param_2 + 8) = iVar7;" (assignment_expression "*(int *)(param_2 + 8) = iVar7" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);" (assignment_expression "uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" identifier = (call_expression "(*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) , identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x14) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 4) = param_3;" (assignment_expression "*(int *)(param_2 + 4) = param_3" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }" else (compound_statement "{\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }" { (expression_statement "iVar7 = iVar10 + *(int *)(param_2 + 8);" (assignment_expression "iVar7 = iVar10 + *(int *)(param_2 + 8)" identifier = (binary_expression "iVar10 + *(int *)(param_2 + 8)" identifier + (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))))) ;) (expression_statement "*(int *)(param_2 + 8) = iVar7;" (assignment_expression "*(int *)(param_2 + 8) = iVar7" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);" (assignment_expression "iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" identifier = (call_expression "(*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) , identifier , number_literal )))) ;) (expression_statement "*(int *)(param_2 + 4) = param_3;" (assignment_expression "*(int *)(param_2 + 4) = param_3" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 0x14) = iVar7;" (assignment_expression "*(int *)(param_2 + 0x14) = iVar7" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }" if (parenthesized_expression "(iVar9 < param_3)" ( (binary_expression "iVar9 < param_3" identifier < identifier) )) (compound_statement "{\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }" { (expression_statement "(*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );" (call_expression "(*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  )" (parenthesized_expression "(*(code *)PTR_memmove_00111fe8)" ( (pointer_expression "*(code *)PTR_memmove_00111fe8" * (cast_expression "(code *)PTR_memmove_00111fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  )" ( (binary_expression "iVar7 + param_3 * 0xc" identifier + (binary_expression "param_3 * 0xc" identifier * number_literal)) , (binary_expression "iVar7 + iVar9 * 0xc" identifier + (binary_expression "iVar9 * 0xc" identifier * number_literal)) , (binary_expression "(*(int *)(param_2 + 8) - param_3) * 0xc" (parenthesized_expression "(*(int *)(param_2 + 8) - param_3)" ( (binary_expression "*(int *)(param_2 + 8) - param_3" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) - identifier) )) * number_literal) ))) ;) })) }))) (if_statement "if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }" if (parenthesized_expression "((0 < iVar9) && (iVar7 = 0, 0 < param_3))" ( (binary_expression "(0 < iVar9) && (iVar7 = 0, 0 < param_3)" (parenthesized_expression "(0 < iVar9)" ( (binary_expression "0 < iVar9" number_literal < identifier) )) && (parenthesized_expression "(iVar7 = 0, 0 < param_3)" ( (comma_expression "iVar7 = 0, 0 < param_3" (assignment_expression "iVar7 = 0" identifier = number_literal) , (binary_expression "0 < param_3" number_literal < identifier)) ))) )) (compound_statement "{\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }" { (expression_statement "piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);" (assignment_expression "piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8)" identifier = (cast_expression "(int *)(*(int *)(param_2 + 0x14) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x14) + 8)" ( (binary_expression "*(int *)(param_2 + 0x14) + 8" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + number_literal) )))) ;) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));" do (compound_statement "{\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }" if (parenthesized_expression "(*piVar5 != 0)" ( (binary_expression "*piVar5 != 0" (pointer_expression "*piVar5" * identifier) != number_literal) )) (compound_statement "{\n          *piVar5 = *piVar5 + iVar10;\n        }" { (expression_statement "*piVar5 = *piVar5 + iVar10;" (assignment_expression "*piVar5 = *piVar5 + iVar10" (pointer_expression "*piVar5" * identifier) = (binary_expression "*piVar5 + iVar10" (pointer_expression "*piVar5" * identifier) + identifier)) ;) })) }) while (parenthesized_expression "((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7))" ( (binary_expression "(iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7)" (parenthesized_expression "(iVar9 != iVar7)" ( (binary_expression "iVar9 != iVar7" identifier != identifier) )) && (parenthesized_expression "(piVar5 = piVar5 + 3, param_3 != iVar7)" ( (comma_expression "piVar5 = piVar5 + 3, param_3 != iVar7" (assignment_expression "piVar5 = piVar5 + 3" identifier = (binary_expression "piVar5 + 3" identifier + number_literal)) , (binary_expression "param_3 != iVar7" identifier != identifier)) ))) )) ;) })) (if_statement "if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }" if (parenthesized_expression "(*(int *)(param_2 + 0x10) != 0)" ( (binary_expression "*(int *)(param_2 + 0x10) != 0" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }" { (expression_statement "*(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;" (assignment_expression "*(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 0x10) + iVar10" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) + identifier)) ;) })) (if_statement "if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }" if (parenthesized_expression "(iVar9 < param_3)" ( (binary_expression "iVar9 < param_3" identifier < identifier) )) (compound_statement "{\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }" { (expression_statement "iVar7 = *(int *)(param_2 + 0x14);" (assignment_expression "iVar7 = *(int *)(param_2 + 0x14)" identifier = (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);" (assignment_expression "puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc)" identifier = (cast_expression "(undefined4 *)(iVar7 + iVar9 * 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + iVar9 * 0xc)" ( (binary_expression "iVar7 + iVar9 * 0xc" identifier + (binary_expression "iVar9 * 0xc" identifier * number_literal)) )))) ;) (do_statement "do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));" do (compound_statement "{\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      }" { (expression_statement "puVar4 = puVar3 + 3;" (assignment_expression "puVar4 = puVar3 + 3" identifier = (binary_expression "puVar3 + 3" identifier + number_literal)) ;) (expression_statement "uVar6 = *(undefined4 *)(param_1 + 0x4c);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 0x4c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x50);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x50)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) (expression_statement "*puVar3 = *(undefined4 *)(param_1 + 0x48);" (assignment_expression "*puVar3 = *(undefined4 *)(param_1 + 0x48)" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;) (expression_statement "puVar3[1] = uVar6;" (assignment_expression "puVar3[1] = uVar6" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[2] = uVar2;" (assignment_expression "puVar3[2] = uVar2" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = puVar4;" (assignment_expression "puVar3 = puVar4" identifier = identifier) ;) }) while (parenthesized_expression "(puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc))" ( (binary_expression "puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc)" identifier != (cast_expression "(undefined4 *)(iVar7 + param_3 * 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + param_3 * 0xc)" ( (binary_expression "iVar7 + param_3 * 0xc" identifier + (binary_expression "param_3 * 0xc" identifier * number_literal)) )))) )) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) * LIT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + (binary_expression IDENT * LIT)) , (binary_expression IDENT + (binary_expression IDENT * LIT)) , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) )) * LIT) ))) ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression LIT < IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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)) ;) })) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT != IDENT)) ))) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) )) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_00090b64(int param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  \n  puVar1 = PTR_saferealloc_001113f0;\n  iVar9 = *(int *)(param_2 + 4);\n  if (iVar9 != param_3) {\n    iVar10 = param_3 - iVar9;\n    iVar7 = param_3;\n    if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }\n    if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }\n    if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00090b64(int param_1,int param_2,int param_3)" (identifier "FUN_00090b64") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  \n  puVar1 = PTR_saferealloc_001113f0;\n  iVar9 = *(int *)(param_2 + 4);\n  if (iVar9 != param_3) {\n    iVar10 = param_3 - iVar9;\n    iVar7 = param_3;\n    if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }\n    if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }\n    if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (expression_statement "puVar1 = PTR_saferealloc_001113f0;" (assignment_expression "puVar1 = PTR_saferealloc_001113f0" (identifier "puVar1") (= "=") (identifier "PTR_saferealloc_001113f0")) (; ";")) (expression_statement "iVar9 = *(int *)(param_2 + 4);" (assignment_expression "iVar9 = *(int *)(param_2 + 4)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (iVar9 != param_3) {\n    iVar10 = param_3 - iVar9;\n    iVar7 = param_3;\n    if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }\n    if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }\n    if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }\n  }" (if "if") (parenthesized_expression "(iVar9 != param_3)" (( "(") (binary_expression "iVar9 != param_3" (identifier "iVar9") (!= "!=") (identifier "param_3")) () ")")) (compound_statement "{\n    iVar10 = param_3 - iVar9;\n    iVar7 = param_3;\n    if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }\n    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }\n    if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }\n    if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }\n  }" ({ "{") (expression_statement "iVar10 = param_3 - iVar9;" (assignment_expression "iVar10 = param_3 - iVar9" (identifier "iVar10") (= "=") (binary_expression "param_3 - iVar9" (identifier "param_3") (- "-") (identifier "iVar9"))) (; ";")) (expression_statement "iVar7 = param_3;" (assignment_expression "iVar7 = param_3" (identifier "iVar7") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_3 < iVar9) {\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }\n    else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }" (if "if") (parenthesized_expression "(param_3 < iVar9)" (( "(") (binary_expression "param_3 < iVar9" (identifier "param_3") (< "<") (identifier "iVar9")) () ")")) (compound_statement "{\n      do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);\n      (*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);\n      puVar1 = PTR_saferealloc_001113f0;\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(undefined4 *)(param_2 + 0x14) = uVar2;\n      *(int *)(param_2 + 4) = param_3;\n    }" ({ "{") (do_statement "do {\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      } while (iVar9 != iVar8);" (do "do") (compound_statement "{\n        iVar8 = iVar7 + 1;\n        FUN_00090ab0(param_2,iVar7);\n        iVar7 = iVar8;\n      }" ({ "{") (expression_statement "iVar8 = iVar7 + 1;" (assignment_expression "iVar8 = iVar7 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00090ab0(param_2,iVar7);" (call_expression "FUN_00090ab0(param_2,iVar7)" (identifier "FUN_00090ab0") (argument_list "(param_2,iVar7)" (( "(") (identifier "param_2") (, ",") (identifier "iVar7") () ")"))) (; ";")) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" (identifier "iVar7") (= "=") (identifier "iVar8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar9 != iVar8)" (( "(") (binary_expression "iVar9 != iVar8" (identifier "iVar9") (!= "!=") (identifier "iVar8")) () ")")) (; ";")) (expression_statement "(*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);" (call_expression "(*(code *)PTR_memmove_00111fe8)\n                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc)" (parenthesized_expression "(*(code *)PTR_memmove_00111fe8)" (( "(") (pointer_expression "*(code *)PTR_memmove_00111fe8" (* "*") (cast_expression "(code *)PTR_memmove_00111fe8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memmove_00111fe8"))) () ")")) (argument_list "(*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,\n                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc)" (( "(") (binary_expression "*(int *)(param_2 + 0x14) + param_3 * 0xc" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (binary_expression "param_3 * 0xc" (identifier "param_3") (* "*") (number_literal "0xc"))) (, ",") (binary_expression "*(int *)(param_2 + 0x14) + iVar9 * 0xc" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (binary_expression "iVar9 * 0xc" (identifier "iVar9") (* "*") (number_literal "0xc"))) (, ",") (binary_expression "(*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc" (parenthesized_expression "(*(int *)(param_2 + 8) - *(int *)(param_2 + 4))" (( "(") (binary_expression "*(int *)(param_2 + 8) - *(int *)(param_2 + 4)" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (- "-") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) () ")")) (* "*") (number_literal "0xc")) () ")"))) (; ";")) (expression_statement "puVar1 = PTR_saferealloc_001113f0;" (assignment_expression "puVar1 = PTR_saferealloc_001113f0" (identifier "puVar1") (= "=") (identifier "PTR_saferealloc_001113f0")) (; ";")) (expression_statement "iVar7 = iVar10 + *(int *)(param_2 + 8);" (assignment_expression "iVar7 = iVar10 + *(int *)(param_2 + 8)" (identifier "iVar7") (= "=") (binary_expression "iVar10 + *(int *)(param_2 + 8)" (identifier "iVar10") (+ "+") (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))))) (; ";")) (expression_statement "*(int *)(param_2 + 8) = iVar7;" (assignment_expression "*(int *)(param_2 + 8) = iVar7" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);" (assignment_expression "uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" (identifier "uVar2") (= "=") (call_expression "(*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" (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 "(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (identifier "iVar7") (, ",") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x14) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(int *)(param_2 + 4) = param_3;" (assignment_expression "*(int *)(param_2 + 4) = param_3" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (} "}")) (else_clause "else {\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }" (else "else") (compound_statement "{\n      iVar7 = iVar10 + *(int *)(param_2 + 8);\n      *(int *)(param_2 + 8) = iVar7;\n      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);\n      *(int *)(param_2 + 4) = param_3;\n      *(int *)(param_2 + 0x14) = iVar7;\n      if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }\n    }" ({ "{") (expression_statement "iVar7 = iVar10 + *(int *)(param_2 + 8);" (assignment_expression "iVar7 = iVar10 + *(int *)(param_2 + 8)" (identifier "iVar7") (= "=") (binary_expression "iVar10 + *(int *)(param_2 + 8)" (identifier "iVar10") (+ "+") (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))))) (; ";")) (expression_statement "*(int *)(param_2 + 8) = iVar7;" (assignment_expression "*(int *)(param_2 + 8) = iVar7" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);" (assignment_expression "iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" (identifier "iVar7") (= "=") (call_expression "(*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" (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 "(*(undefined4 *)(param_2 + 0x14),iVar7,0xc)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (identifier "iVar7") (, ",") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "*(int *)(param_2 + 4) = param_3;" (assignment_expression "*(int *)(param_2 + 4) = param_3" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(int *)(param_2 + 0x14) = iVar7;" (assignment_expression "*(int *)(param_2 + 0x14) = iVar7" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar9 < param_3) {\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }" (if "if") (parenthesized_expression "(iVar9 < param_3)" (( "(") (binary_expression "iVar9 < param_3" (identifier "iVar9") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n        (*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );\n      }" ({ "{") (expression_statement "(*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  );" (call_expression "(*(code *)PTR_memmove_00111fe8)\n                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  )" (parenthesized_expression "(*(code *)PTR_memmove_00111fe8)" (( "(") (pointer_expression "*(code *)PTR_memmove_00111fe8" (* "*") (cast_expression "(code *)PTR_memmove_00111fe8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memmove_00111fe8"))) () ")")) (argument_list "(iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc\n                  )" (( "(") (binary_expression "iVar7 + param_3 * 0xc" (identifier "iVar7") (+ "+") (binary_expression "param_3 * 0xc" (identifier "param_3") (* "*") (number_literal "0xc"))) (, ",") (binary_expression "iVar7 + iVar9 * 0xc" (identifier "iVar7") (+ "+") (binary_expression "iVar9 * 0xc" (identifier "iVar9") (* "*") (number_literal "0xc"))) (, ",") (binary_expression "(*(int *)(param_2 + 8) - param_3) * 0xc" (parenthesized_expression "(*(int *)(param_2 + 8) - param_3)" (( "(") (binary_expression "*(int *)(param_2 + 8) - param_3" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (- "-") (identifier "param_3")) () ")")) (* "*") (number_literal "0xc")) () ")"))) (; ";")) (} "}"))) (} "}")))) (if_statement "if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }" (if "if") (parenthesized_expression "((0 < iVar9) && (iVar7 = 0, 0 < param_3))" (( "(") (binary_expression "(0 < iVar9) && (iVar7 = 0, 0 < param_3)" (parenthesized_expression "(0 < iVar9)" (( "(") (binary_expression "0 < iVar9" (number_literal "0") (< "<") (identifier "iVar9")) () ")")) (&& "&&") (parenthesized_expression "(iVar7 = 0, 0 < param_3)" (( "(") (comma_expression "iVar7 = 0, 0 < param_3" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (, ",") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3"))) () ")"))) () ")")) (compound_statement "{\n      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);\n      do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));\n    }" ({ "{") (expression_statement "piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);" (assignment_expression "piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8)" (identifier "piVar5") (= "=") (cast_expression "(int *)(*(int *)(param_2 + 0x14) + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x14) + 8)" (( "(") (binary_expression "*(int *)(param_2 + 0x14) + 8" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "8")) () ")")))) (; ";")) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));" (do "do") (compound_statement "{\n        iVar7 = iVar7 + 1;\n        if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }\n      }" ({ "{") (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*piVar5 != 0) {\n          *piVar5 = *piVar5 + iVar10;\n        }" (if "if") (parenthesized_expression "(*piVar5 != 0)" (( "(") (binary_expression "*piVar5 != 0" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          *piVar5 = *piVar5 + iVar10;\n        }" ({ "{") (expression_statement "*piVar5 = *piVar5 + iVar10;" (assignment_expression "*piVar5 = *piVar5 + iVar10" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (binary_expression "*piVar5 + iVar10" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (+ "+") (identifier "iVar10"))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7))" (( "(") (binary_expression "(iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7)" (parenthesized_expression "(iVar9 != iVar7)" (( "(") (binary_expression "iVar9 != iVar7" (identifier "iVar9") (!= "!=") (identifier "iVar7")) () ")")) (&& "&&") (parenthesized_expression "(piVar5 = piVar5 + 3, param_3 != iVar7)" (( "(") (comma_expression "piVar5 = piVar5 + 3, param_3 != iVar7" (assignment_expression "piVar5 = piVar5 + 3" (identifier "piVar5") (= "=") (binary_expression "piVar5 + 3" (identifier "piVar5") (+ "+") (number_literal "3"))) (, ",") (binary_expression "param_3 != iVar7" (identifier "param_3") (!= "!=") (identifier "iVar7"))) () ")"))) () ")")) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_2 + 0x10) != 0) {\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x10) != 0" (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;\n    }" ({ "{") (expression_statement "*(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;" (assignment_expression "*(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10" (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (binary_expression "*(int *)(param_2 + 0x10) + iVar10" (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (identifier "iVar10"))) (; ";")) (} "}"))) (if_statement "if (iVar9 < param_3) {\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }" (if "if") (parenthesized_expression "(iVar9 < param_3)" (( "(") (binary_expression "iVar9 < param_3" (identifier "iVar9") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n      iVar7 = *(int *)(param_2 + 0x14);\n      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);\n      do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));\n    }" ({ "{") (expression_statement "iVar7 = *(int *)(param_2 + 0x14);" (assignment_expression "iVar7 = *(int *)(param_2 + 0x14)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);" (assignment_expression "puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(iVar7 + iVar9 * 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + iVar9 * 0xc)" (( "(") (binary_expression "iVar7 + iVar9 * 0xc" (identifier "iVar7") (+ "+") (binary_expression "iVar9 * 0xc" (identifier "iVar9") (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (do_statement "do {\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));" (do "do") (compound_statement "{\n        puVar4 = puVar3 + 3;\n        uVar6 = *(undefined4 *)(param_1 + 0x4c);\n        uVar2 = *(undefined4 *)(param_1 + 0x50);\n        *puVar3 = *(undefined4 *)(param_1 + 0x48);\n        puVar3[1] = uVar6;\n        puVar3[2] = uVar2;\n        puVar3 = puVar4;\n      }" ({ "{") (expression_statement "puVar4 = puVar3 + 3;" (assignment_expression "puVar4 = puVar3 + 3" (identifier "puVar4") (= "=") (binary_expression "puVar3 + 3" (identifier "puVar3") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "uVar6 = *(undefined4 *)(param_1 + 0x4c);" (assignment_expression "uVar6 = *(undefined4 *)(param_1 + 0x4c)" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x50);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x50)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (expression_statement "*puVar3 = *(undefined4 *)(param_1 + 0x48);" (assignment_expression "*puVar3 = *(undefined4 *)(param_1 + 0x48)" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x48)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (expression_statement "puVar3[1] = uVar6;" (assignment_expression "puVar3[1] = uVar6" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "puVar3[2] = uVar2;" (assignment_expression "puVar3[2] = uVar2" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar3 = puVar4;" (assignment_expression "puVar3 = puVar4" (identifier "puVar3") (= "=") (identifier "puVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc))" (( "(") (binary_expression "puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc)" (identifier "puVar4") (!= "!=") (cast_expression "(undefined4 *)(iVar7 + param_3 * 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + param_3 * 0xc)" (( "(") (binary_expression "iVar7 + param_3 * 0xc" (identifier "iVar7") (+ "+") (binary_expression "param_3 * 0xc" (identifier "param_3") (* "*") (number_literal "0xc"))) () ")")))) () ")")) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *term,type_2 *line,int var_2)

{
  type_3 *puVar1;
  type_4 *var_7;
  type_4 *var_10;
  int *var_8;
  type_4 *var_9;
  type_5 uVar6;
  int var_3;
  int var_5;
  int var_1;
  int var_6;
  
  puVar1 = PTR_saferealloc_001113f0;
  var_1 = line->var_2;
  if (var_1 != var_2) {
    var_6 = var_2 - var_1;
    var_3 = var_2;
    if (var_2 < var_1) {
      do {
        var_5 = var_3 + 1;
        var_4(line,var_3);
        var_3 = var_5;
      } while (var_1 != var_5);
      (*(type_6 *)PTR_memmove_00111fe8)
                (line->chars + var_2,line->chars + var_1,(line->size - line->var_2) * 0xc);
      puVar1 = PTR_saferealloc_001113f0;
      var_3 = var_6 + line->size;
      line->size = var_3;
      var_7 = (type_4 *)(*(type_6 *)puVar1)(line->chars,var_3,0xc);
      line->chars = var_7;
      line->var_2 = var_2;
    }
    else {
      var_3 = var_6 + line->size;
      line->size = var_3;
      var_7 = (type_4 *)(*(type_6 *)puVar1)(line->chars,var_3,0xc);
      line->var_2 = var_2;
      line->chars = var_7;
      if (var_1 < var_2) {
        (*(type_6 *)PTR_memmove_00111fe8)(var_7 + var_2,var_7 + var_1,(line->size - var_2) * 0xc);
      }
    }
    if ((0 < var_1) && (var_3 = 0, 0 < var_2)) {
      var_8 = &line->chars->cc_next;
      do {
        var_3 = var_3 + 1;
        if (*var_8 != 0) {
          *var_8 = *var_8 + var_6;
        }
      } while ((var_1 != var_3) && (var_8 = var_8 + 3, var_2 != var_3));
    }
    if (line->cc_free != 0) {
      line->cc_free = line->cc_free + var_6;
    }
    if (var_1 < var_2) {
      var_9 = line->chars;
      var_7 = var_9 + var_1;
      do {
        var_10 = var_7 + 1;
        uVar6 = (term->basic_erase_char).attr;
        var_1 = (term->basic_erase_char).cc_next;
        var_7->chr = (term->basic_erase_char).chr;
        var_7->attr = uVar6;
        var_7->cc_next = var_1;
        var_7 = var_10;
      } while (var_10 != var_9 + var_2);
    }
  }
  return;
}


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

void MASKED(int param_1,int param_2,int param_3)

{
  undefined *puVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  int *piVar5;
  undefined4 uVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  
  puVar1 = PTR_saferealloc_001113f0;
  iVar9 = *(int *)(param_2 + 4);
  if (iVar9 != param_3) {
    iVar10 = param_3 - iVar9;
    iVar7 = param_3;
    if (param_3 < iVar9) {
      do {
        iVar8 = iVar7 + 1;
        FUN_00090ab0(param_2,iVar7);
        iVar7 = iVar8;
      } while (iVar9 != iVar8);
      (*(code *)PTR_memmove_00111fe8)
                (*(int *)(param_2 + 0x14) + param_3 * 0xc,*(int *)(param_2 + 0x14) + iVar9 * 0xc,
                 (*(int *)(param_2 + 8) - *(int *)(param_2 + 4)) * 0xc);
      puVar1 = PTR_saferealloc_001113f0;
      iVar7 = iVar10 + *(int *)(param_2 + 8);
      *(int *)(param_2 + 8) = iVar7;
      uVar2 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);
      *(undefined4 *)(param_2 + 0x14) = uVar2;
      *(int *)(param_2 + 4) = param_3;
    }
    else {
      iVar7 = iVar10 + *(int *)(param_2 + 8);
      *(int *)(param_2 + 8) = iVar7;
      iVar7 = (*(code *)puVar1)(*(undefined4 *)(param_2 + 0x14),iVar7,0xc);
      *(int *)(param_2 + 4) = param_3;
      *(int *)(param_2 + 0x14) = iVar7;
      if (iVar9 < param_3) {
        (*(code *)PTR_memmove_00111fe8)
                  (iVar7 + param_3 * 0xc,iVar7 + iVar9 * 0xc,(*(int *)(param_2 + 8) - param_3) * 0xc
                  );
      }
    }
    if ((0 < iVar9) && (iVar7 = 0, 0 < param_3)) {
      piVar5 = (int *)(*(int *)(param_2 + 0x14) + 8);
      do {
        iVar7 = iVar7 + 1;
        if (*piVar5 != 0) {
          *piVar5 = *piVar5 + iVar10;
        }
      } while ((iVar9 != iVar7) && (piVar5 = piVar5 + 3, param_3 != iVar7));
    }
    if (*(int *)(param_2 + 0x10) != 0) {
      *(int *)(param_2 + 0x10) = *(int *)(param_2 + 0x10) + iVar10;
    }
    if (iVar9 < param_3) {
      iVar7 = *(int *)(param_2 + 0x14);
      puVar3 = (undefined4 *)(iVar7 + iVar9 * 0xc);
      do {
        puVar4 = puVar3 + 3;
        uVar6 = *(undefined4 *)(param_1 + 0x4c);
        uVar2 = *(undefined4 *)(param_1 + 0x50);
        *puVar3 = *(undefined4 *)(param_1 + 0x48);
        puVar3[1] = uVar6;
        puVar3[2] = uVar2;
        puVar3 = puVar4;
      } while (puVar4 != (undefined4 *)(iVar7 + param_3 * 0xc));
    }
  }
  return;
}

