
/* WARNING: Unknown calling convention */

reg_errcode_t re_node_set_merge(re_node_set *dest,re_node_set *src)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  Idx *pIVar4;
  Idx *pIVar5;
  Idx IVar6;
  int iVar7;
  int iVar8;
  Idx IVar9;
  int iVar10;
  int iVar11;
  
  if ((src == (re_node_set *)0x0) || (iVar7 = src->nelem, iVar7 == 0)) {
    return _REG_NOERROR;
  }
  iVar3 = dest->nelem;
  if (dest->alloc < iVar7 * 2 + iVar3) {
    iVar2 = iVar7 + dest->alloc;
    pIVar4 = (Idx *)(*(code *)PTR_realloc_004b22d8)(dest->elems,iVar2 * 8);
    if (pIVar4 == (Idx *)0x0) {
      return _REG_ESPACE;
    }
    iVar7 = src->nelem;
    iVar3 = dest->nelem;
    dest->elems = pIVar4;
    dest->alloc = iVar2 * 2;
  }
  puVar1 = PTR_memcpy_004b2390;
  if (iVar3 == 0) {
    pIVar4 = src->elems;
    dest->nelem = iVar7;
    (*(code *)puVar1)(dest->elems,pIVar4,src->nelem << 2);
  }
  else {
    iVar8 = iVar7 + -1;
    iVar11 = iVar7 * 2 + iVar3;
    iVar2 = iVar3 + -1;
    iVar7 = iVar11;
    if (-1 < iVar8) {
      pIVar4 = dest->elems;
      iVar3 = iVar2 * 4;
      pIVar5 = src->elems;
      if (iVar2 < 0) {
LAB_00481594:
        iVar7 = iVar11 - (iVar8 + 1);
        (*(code *)PTR_memcpy_004b2390)(pIVar4 + iVar7,pIVar5,(iVar8 + 1) * 4);
      }
      else {
        do {
          while( true ) {
            iVar7 = pIVar5[iVar8];
            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;
            iVar8 = iVar8 + -1;
            iVar7 = iVar11;
            if (iVar8 == -1) goto LAB_00481490;
            if (iVar2 == 0) goto LAB_00481594;
LAB_00481580:
            iVar2 = iVar2 + -1;
            iVar3 = iVar2 * 4;
          }
          if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {
            if (iVar2 != 0) goto LAB_00481580;
            goto LAB_00481594;
          }
          iVar11 = iVar11 + -1;
          iVar8 = iVar8 + -1;
          pIVar4[iVar11] = iVar7;
          iVar7 = iVar11;
        } while (iVar8 != -1);
      }
LAB_00481490:
      iVar3 = dest->nelem;
      iVar2 = iVar3 + -1;
      iVar11 = src->nelem * 2 + iVar3;
    }
    iVar8 = iVar11 - iVar7;
    iVar11 = iVar11 + -1;
    if (iVar8 != 0) {
      pIVar4 = dest->elems;
      iVar10 = iVar11 * 4;
      dest->nelem = iVar8 + iVar3;
      do {
        IVar9 = *(int *)((int)pIVar4 + iVar10);
        IVar6 = pIVar4[iVar2];
        pIVar5 = pIVar4 + iVar2 + iVar8;
        if (IVar6 < IVar9) {
          do {
            iVar8 = iVar8 + -1;
            *pIVar5 = IVar9;
            iVar11 = iVar11 + -1;
            if (iVar8 == 0) {
              return _REG_NOERROR;
            }
            iVar10 = iVar11 * 4;
            IVar6 = pIVar4[iVar2];
            IVar9 = pIVar4[iVar11];
            pIVar5 = pIVar4 + iVar2 + iVar8;
          } while (IVar6 < IVar9);
        }
        iVar2 = iVar2 + -1;
        *pIVar5 = IVar6;
      } while (-1 < iVar2);
      (*(code *)PTR_memcpy_004b2390)(pIVar4,pIVar4 + iVar7,iVar8 << 2);
    }
  }
  return _REG_NOERROR;
}



undefined4 FUN_004813d4(int *param_1,int param_2)

{
  undefined *puVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  
  if ((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)) {
    return 0;
  }
  iVar4 = param_1[1];
  if (*param_1 < iVar7 * 2 + iVar4) {
    iVar8 = iVar7 + *param_1;
    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);
    if (iVar3 == 0) {
      return 0xc;
    }
    iVar7 = *(int *)(param_2 + 4);
    iVar4 = param_1[1];
    param_1[2] = iVar3;
    *param_1 = iVar8 * 2;
  }
  puVar1 = PTR_memcpy_004b2390;
  if (iVar4 == 0) {
    uVar6 = *(undefined4 *)(param_2 + 8);
    param_1[1] = iVar7;
    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);
  }
  else {
    iVar8 = iVar7 + -1;
    iVar11 = iVar7 * 2 + iVar4;
    iVar3 = iVar4 + -1;
    iVar7 = iVar11;
    if (-1 < iVar8) {
      iVar4 = param_1[2];
      iVar10 = iVar3 * 4;
      iVar5 = *(int *)(param_2 + 8);
      if (iVar3 < 0) {
LAB_00481594:
        iVar7 = iVar11 - (iVar8 + 1);
        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);
      }
      else {
        do {
          while( true ) {
            iVar7 = *(int *)(iVar5 + iVar8 * 4);
            if (*(int *)(iVar4 + iVar10) != iVar7) break;
            iVar8 = iVar8 + -1;
            iVar7 = iVar11;
            if (iVar8 == -1) goto LAB_00481490;
            if (iVar3 == 0) goto LAB_00481594;
LAB_00481580:
            iVar3 = iVar3 + -1;
            iVar10 = iVar3 * 4;
          }
          if (iVar7 <= *(int *)(iVar4 + iVar10)) {
            if (iVar3 != 0) goto LAB_00481580;
            goto LAB_00481594;
          }
          iVar11 = iVar11 + -1;
          iVar8 = iVar8 + -1;
          *(int *)(iVar4 + iVar11 * 4) = iVar7;
          iVar7 = iVar11;
        } while (iVar8 != -1);
      }
LAB_00481490:
      iVar4 = param_1[1];
      iVar3 = iVar4 + -1;
      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;
    }
    iVar8 = iVar11 - iVar7;
    iVar11 = iVar11 + -1;
    if (iVar8 != 0) {
      iVar5 = param_1[2];
      iVar10 = iVar11 * 4;
      param_1[1] = iVar8 + iVar4;
      do {
        iVar9 = *(int *)(iVar5 + iVar10);
        iVar4 = *(int *)(iVar5 + iVar3 * 4);
        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);
        if (iVar4 < iVar9) {
          do {
            iVar8 = iVar8 + -1;
            *piVar2 = iVar9;
            iVar11 = iVar11 + -1;
            if (iVar8 == 0) {
              return 0;
            }
            iVar10 = iVar11 * 4;
            iVar4 = *(int *)(iVar5 + iVar3 * 4);
            iVar9 = *(int *)(iVar5 + iVar10);
            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);
          } while (iVar4 < iVar9);
        }
        iVar3 = iVar3 + -1;
        *piVar2 = iVar4;
      } while (-1 < iVar3);
      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);
    }
  }
  return 0;
}


beq a1,zero,0x00481534
_nop
lw a2,0x4(a1)
beq a2,zero,0x00481534
_nop
addiu sp,sp,-0x28
sll v0,a2,0x1
lui gp,0x4c
sw s1,0x1c(sp)
or s1,a0,zero
lw a0,0x4(a0)
addiu gp,gp,-0x64e0
lw v1,0x0(s1)
sw s2,0x20(sp)
or s2,a1,zero
addu v0,v0,a0
sw ra,0x24(sp)
sw s0,0x18(sp)
slt v0,v1,v0
bne v0,zero,0x004815b8
_sw gp,0x10(sp)
beq a0,zero,0x004815ec
_sll s0,a2,0x1
addiu a2,a2,-0x1
addu s0,s0,a0
bltz a2,0x00481610
_addiu v1,a0,-0x1
lw a0,0x8(s1)
sll t0,v1,0x2
lw a1,0x8(s2)
bltz v1,0x00481594
_li t2,-0x1
sll v0,a2,0x2
addu a3,a0,t0
addu v0,a1,v0
lw a3,0x0(a3)
lw v0,0x0(v0)
beq a3,v0,0x0048156c
_slt t1,a3,v0
beq t1,zero,0x00481588
_nop
addiu s0,s0,-0x1
addiu a2,a2,-0x1
sll a3,s0,0x2
addu a3,a0,a3
bne a2,t2,0x00481454
_sw v0,0x0(a3)
lw t1,0x4(s2)
lw a0,0x4(s1)
sll t1,t1,0x1
addiu v1,a0,-0x1
addu t1,t1,a0
subu a2,t1,s0
beq a2,zero,0x00481550
_addiu t1,t1,-0x1
addu v0,a2,a0
lw a0,0x8(s1)
sll t0,v1,0x2
sll t3,t1,0x2
sw v0,0x4(s1)
addu a3,a0,t3
addu a1,a0,t0
addu v0,v1,a2
lw a3,0x0(a3)
lw a1,0x0(a1)
sll v0,v0,0x2
slt t2,a1,a3
beq t2,zero,0x00481520
_addu v0,a0,v0
addiu a2,a2,-0x1
sw a3,0x0(v0)
beq a2,zero,0x00481550
_addiu t1,t1,-0x1
sll t3,t1,0x2
addu a1,a0,t0
addu a3,a0,t3
addu v0,v1,a2
lw a1,0x0(a1)
lw a3,0x0(a3)
sll v0,v0,0x2
slt t2,a1,a3
bne t2,zero,0x004814e8
_addu v0,a0,v0
addiu v1,v1,-0x1
bltz v1,0x0048153c
_sw a1,0x0(v0)
b 0x004814c4
_sll t0,v1,0x2
jr ra
_or v0,zero,zero
sll a1,s0,0x2
lw t9,-0x7790(gp)
sll a2,a2,0x2
jalr t9
_addu a1,a0,a1
or v0,zero,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
addiu a2,a2,-0x1
beq a2,t2,0x00481490
_addiu v1,v1,-0x1
beq v1,t2,0x00481594
_nop
b 0x00481454
_sll t0,v1,0x2
addiu v1,v1,-0x1
bne v1,t2,0x00481580
_nop
addiu a2,a2,0x1
lw t9,-0x7790(gp)
subu s0,s0,a2
sll a2,a2,0x2
sll v0,s0,0x2
jalr t9
_addu a0,a0,v0
b 0x00481490
_lw gp,0x10(sp)
addu a2,a2,v1
lw t9,-0x7848(gp)
lw a0,0x8(s1)
sll a1,a2,0x3
jalr t9
_sll s0,a2,0x1
beq v0,zero,0x00481618
_lw gp,0x10(sp)
lw a2,0x4(s2)
lw a0,0x4(s1)
sw v0,0x8(s1)
b 0x00481428
_sw s0,0x0(s1)
lw a1,0x8(s2)
lw t9,-0x7790(gp)
lw a0,0x8(s1)
sw a2,0x4(s1)
lw a2,0x4(s2)
jalr t9
_sll a2,a2,0x2
b 0x00481554
_or v0,zero,zero
b 0x004814a4
_or t1,s0,zero
b 0x00481554
_li v0,0xc
(translation_unit "undefined4 FUN_004813d4(int *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if ((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)) {\n    return 0;\n  }\n  iVar4 = param_1[1];\n  if (*param_1 < iVar7 * 2 + iVar4) {\n    iVar8 = iVar7 + *param_1;\n    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);\n    if (iVar3 == 0) {\n      return 0xc;\n    }\n    iVar7 = *(int *)(param_2 + 4);\n    iVar4 = param_1[1];\n    param_1[2] = iVar3;\n    *param_1 = iVar8 * 2;\n  }\n  puVar1 = PTR_memcpy_004b2390;\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_2 + 8);\n    param_1[1] = iVar7;\n    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_004813d4(int *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if ((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)) {\n    return 0;\n  }\n  iVar4 = param_1[1];\n  if (*param_1 < iVar7 * 2 + iVar4) {\n    iVar8 = iVar7 + *param_1;\n    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);\n    if (iVar3 == 0) {\n      return 0xc;\n    }\n    iVar7 = *(int *)(param_2 + 4);\n    iVar4 = param_1[1];\n    param_1[2] = iVar3;\n    *param_1 = iVar8 * 2;\n  }\n  puVar1 = PTR_memcpy_004b2390;\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_2 + 8);\n    param_1[1] = iVar7;\n    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_004813d4(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if ((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)) {\n    return 0;\n  }\n  iVar4 = param_1[1];\n  if (*param_1 < iVar7 * 2 + iVar4) {\n    iVar8 = iVar7 + *param_1;\n    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);\n    if (iVar3 == 0) {\n      return 0xc;\n    }\n    iVar7 = *(int *)(param_2 + 4);\n    iVar4 = param_1[1];\n    param_1[2] = iVar3;\n    *param_1 = iVar8 * 2;\n  }\n  puVar1 = PTR_memcpy_004b2390;\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_2 + 8);\n    param_1[1] = iVar7;\n    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type 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 ;) (declaration "int iVar11;" primitive_type identifier ;) (if_statement "if ((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)) {\n    return 0;\n  }" if (parenthesized_expression "((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0))" ( (binary_expression "(param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar7 = *(int *)(param_2 + 4), iVar7 == 0)" ( (comma_expression "iVar7 = *(int *)(param_2 + 4), iVar7 == 0" (assignment_expression "iVar7 = *(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) ))))) , (binary_expression "iVar7 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (*param_1 < iVar7 * 2 + iVar4) {\n    iVar8 = iVar7 + *param_1;\n    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);\n    if (iVar3 == 0) {\n      return 0xc;\n    }\n    iVar7 = *(int *)(param_2 + 4);\n    iVar4 = param_1[1];\n    param_1[2] = iVar3;\n    *param_1 = iVar8 * 2;\n  }" if (parenthesized_expression "(*param_1 < iVar7 * 2 + iVar4)" ( (binary_expression "*param_1 < iVar7 * 2 + iVar4" (pointer_expression "*param_1" * identifier) < (binary_expression "iVar7 * 2 + iVar4" (binary_expression "iVar7 * 2" identifier * number_literal) + identifier)) )) (compound_statement "{\n    iVar8 = iVar7 + *param_1;\n    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);\n    if (iVar3 == 0) {\n      return 0xc;\n    }\n    iVar7 = *(int *)(param_2 + 4);\n    iVar4 = param_1[1];\n    param_1[2] = iVar3;\n    *param_1 = iVar8 * 2;\n  }" { (expression_statement "iVar8 = iVar7 + *param_1;" (assignment_expression "iVar8 = iVar7 + *param_1" identifier = (binary_expression "iVar7 + *param_1" identifier + (pointer_expression "*param_1" * identifier))) ;) (expression_statement "iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);" (assignment_expression "iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8)" identifier = (call_expression "(*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8)" (parenthesized_expression "(*(code *)PTR_realloc_004b22d8)" ( (pointer_expression "*(code *)PTR_realloc_004b22d8" * (cast_expression "(code *)PTR_realloc_004b22d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[2],iVar8 * 8)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , (binary_expression "iVar8 * 8" identifier * number_literal) )))) ;) (if_statement "if (iVar3 == 0) {\n      return 0xc;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0xc;\n    }" { (return_statement "return 0xc;" return number_literal ;) })) (expression_statement "iVar7 = *(int *)(param_2 + 4);" (assignment_expression "iVar7 = *(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) ))))) ;) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = iVar8 * 2;" (assignment_expression "*param_1 = iVar8 * 2" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar8 * 2" identifier * number_literal)) ;) })) (expression_statement "puVar1 = PTR_memcpy_004b2390;" (assignment_expression "puVar1 = PTR_memcpy_004b2390" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_2 + 8);\n    param_1[1] = iVar7;\n    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar6 = *(undefined4 *)(param_2 + 8);\n    param_1[1] = iVar7;\n    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);\n  }" { (expression_statement "uVar6 = *(undefined4 *)(param_2 + 8);" (assignment_expression "uVar6 = *(undefined4 *)(param_2 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "param_1[1] = iVar7;" (assignment_expression "param_1[1] = iVar7" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);" (call_expression "(*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[2],uVar6,*(int *)(param_2 + 4) << 2)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier , (binary_expression "*(int *)(param_2 + 4) << 2" (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) ))) ;) }) (else_clause "else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }" else (compound_statement "{\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }" { (expression_statement "iVar8 = iVar7 + -1;" (assignment_expression "iVar8 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "iVar11 = iVar7 * 2 + iVar4;" (assignment_expression "iVar11 = iVar7 * 2 + iVar4" identifier = (binary_expression "iVar7 * 2 + iVar4" (binary_expression "iVar7 * 2" identifier * number_literal) + identifier)) ;) (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar11;" (assignment_expression "iVar7 = iVar11" identifier = identifier) ;) (if_statement "if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }" if (parenthesized_expression "(-1 < iVar8)" ( (binary_expression "-1 < iVar8" number_literal < identifier) )) (compound_statement "{\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }" { (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar10 = iVar3 * 4;" (assignment_expression "iVar10 = iVar3 * 4" identifier = (binary_expression "iVar3 * 4" identifier * number_literal)) ;) (expression_statement "iVar5 = *(int *)(param_2 + 8);" (assignment_expression "iVar5 = *(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) ))))) ;) (if_statement "if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }" { (labeled_statement "LAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);" statement_identifier : (expression_statement "iVar7 = iVar11 - (iVar8 + 1);" (assignment_expression "iVar7 = iVar11 - (iVar8 + 1)" identifier = (binary_expression "iVar11 - (iVar8 + 1)" identifier - (parenthesized_expression "(iVar8 + 1)" ( (binary_expression "iVar8 + 1" identifier + number_literal) )))) ;)) (expression_statement "(*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);" (call_expression "(*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4)" (parenthesized_expression "(*(code *)PTR_memcpy_004b2390)" ( (pointer_expression "*(code *)PTR_memcpy_004b2390" * (cast_expression "(code *)PTR_memcpy_004b2390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4)" ( (binary_expression "iVar4 + iVar7 * 4" identifier + (binary_expression "iVar7 * 4" identifier * number_literal)) , identifier , (binary_expression "(iVar8 + 1) * 4" (parenthesized_expression "(iVar8 + 1)" ( (binary_expression "iVar8 + 1" identifier + number_literal) )) * number_literal) ))) ;) }) (else_clause "else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }" else (compound_statement "{\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }" { (do_statement "do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);" do (compound_statement "{\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        }" { (while_statement "while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }" { (expression_statement "iVar7 = *(int *)(iVar5 + iVar8 * 4);" (assignment_expression "iVar7 = *(int *)(iVar5 + iVar8 * 4)" identifier = (pointer_expression "*(int *)(iVar5 + iVar8 * 4)" * (cast_expression "(int *)(iVar5 + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar8 * 4)" ( (binary_expression "iVar5 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (*(int *)(iVar4 + iVar10) != iVar7) break;" if (parenthesized_expression "(*(int *)(iVar4 + iVar10) != iVar7)" ( (binary_expression "*(int *)(iVar4 + iVar10) != iVar7" (pointer_expression "*(int *)(iVar4 + iVar10)" * (cast_expression "(int *)(iVar4 + iVar10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar10)" ( (binary_expression "iVar4 + iVar10" identifier + identifier) )))) != identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar11;" (assignment_expression "iVar7 = iVar11" identifier = identifier) ;) (if_statement "if (iVar8 == -1) goto LAB_00481490;" if (parenthesized_expression "(iVar8 == -1)" ( (binary_expression "iVar8 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00481490;" goto statement_identifier ;)) (if_statement "if (iVar3 == 0) goto LAB_00481594;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00481594;" goto statement_identifier ;)) (labeled_statement "LAB_00481580:\n            iVar3 = iVar3 + -1;" statement_identifier : (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;)) (expression_statement "iVar10 = iVar3 * 4;" (assignment_expression "iVar10 = iVar3 * 4" identifier = (binary_expression "iVar3 * 4" identifier * number_literal)) ;) })) (if_statement "if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }" if (parenthesized_expression "(iVar7 <= *(int *)(iVar4 + iVar10))" ( (binary_expression "iVar7 <= *(int *)(iVar4 + iVar10)" identifier <= (pointer_expression "*(int *)(iVar4 + iVar10)" * (cast_expression "(int *)(iVar4 + iVar10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar10)" ( (binary_expression "iVar4 + iVar10" identifier + identifier) ))))) )) (compound_statement "{\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }" { (if_statement "if (iVar3 != 0) goto LAB_00481580;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00481580;" goto statement_identifier ;)) (goto_statement "goto LAB_00481594;" goto statement_identifier ;) })) (expression_statement "iVar11 = iVar11 + -1;" (assignment_expression "iVar11 = iVar11 + -1" identifier = (binary_expression "iVar11 + -1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar4 + iVar11 * 4) = iVar7;" (assignment_expression "*(int *)(iVar4 + iVar11 * 4) = iVar7" (pointer_expression "*(int *)(iVar4 + iVar11 * 4)" * (cast_expression "(int *)(iVar4 + iVar11 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar11 * 4)" ( (binary_expression "iVar4 + iVar11 * 4" identifier + (binary_expression "iVar11 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar7 = iVar11;" (assignment_expression "iVar7 = iVar11" identifier = identifier) ;) }) while (parenthesized_expression "(iVar8 != -1)" ( (binary_expression "iVar8 != -1" identifier != number_literal) )) ;) }))) (labeled_statement "LAB_00481490:\n      iVar4 = param_1[1];" statement_identifier : (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;)) (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;" (assignment_expression "iVar11 = *(int *)(param_2 + 4) * 2 + iVar4" identifier = (binary_expression "*(int *)(param_2 + 4) * 2 + iVar4" (binary_expression "*(int *)(param_2 + 4) * 2" (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) + identifier)) ;) })) (expression_statement "iVar8 = iVar11 - iVar7;" (assignment_expression "iVar8 = iVar11 - iVar7" identifier = (binary_expression "iVar11 - iVar7" identifier - identifier)) ;) (expression_statement "iVar11 = iVar11 + -1;" (assignment_expression "iVar11 = iVar11 + -1" identifier = (binary_expression "iVar11 + -1" identifier + number_literal)) ;) (if_statement "if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }" { (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar10 = iVar11 * 4;" (assignment_expression "iVar10 = iVar11 * 4" identifier = (binary_expression "iVar11 * 4" identifier * number_literal)) ;) (expression_statement "param_1[1] = iVar8 + iVar4;" (assignment_expression "param_1[1] = iVar8 + iVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar8 + iVar4" identifier + identifier)) ;) (do_statement "do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);" do (compound_statement "{\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      }" { (expression_statement "iVar9 = *(int *)(iVar5 + iVar10);" (assignment_expression "iVar9 = *(int *)(iVar5 + iVar10)" identifier = (pointer_expression "*(int *)(iVar5 + iVar10)" * (cast_expression "(int *)(iVar5 + iVar10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar10)" ( (binary_expression "iVar5 + iVar10" identifier + identifier) ))))) ;) (expression_statement "iVar4 = *(int *)(iVar5 + iVar3 * 4);" (assignment_expression "iVar4 = *(int *)(iVar5 + iVar3 * 4)" identifier = (pointer_expression "*(int *)(iVar5 + iVar3 * 4)" * (cast_expression "(int *)(iVar5 + iVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar3 * 4)" ( (binary_expression "iVar5 + iVar3 * 4" identifier + (binary_expression "iVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);" (assignment_expression "piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4)" identifier = (cast_expression "(int *)(iVar5 + (iVar3 + iVar8) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + (iVar3 + iVar8) * 4)" ( (binary_expression "iVar5 + (iVar3 + iVar8) * 4" identifier + (binary_expression "(iVar3 + iVar8) * 4" (parenthesized_expression "(iVar3 + iVar8)" ( (binary_expression "iVar3 + iVar8" identifier + identifier) )) * number_literal)) )))) ;) (if_statement "if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }" if (parenthesized_expression "(iVar4 < iVar9)" ( (binary_expression "iVar4 < iVar9" identifier < identifier) )) (compound_statement "{\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }" { (do_statement "do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);" do (compound_statement "{\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          }" { (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "*piVar2 = iVar9;" (assignment_expression "*piVar2 = iVar9" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "iVar11 = iVar11 + -1;" (assignment_expression "iVar11 = iVar11 + -1" identifier = (binary_expression "iVar11 + -1" identifier + number_literal)) ;) (if_statement "if (iVar8 == 0) {\n              return 0;\n            }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n              return 0;\n            }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar10 = iVar11 * 4;" (assignment_expression "iVar10 = iVar11 * 4" identifier = (binary_expression "iVar11 * 4" identifier * number_literal)) ;) (expression_statement "iVar4 = *(int *)(iVar5 + iVar3 * 4);" (assignment_expression "iVar4 = *(int *)(iVar5 + iVar3 * 4)" identifier = (pointer_expression "*(int *)(iVar5 + iVar3 * 4)" * (cast_expression "(int *)(iVar5 + iVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar3 * 4)" ( (binary_expression "iVar5 + iVar3 * 4" identifier + (binary_expression "iVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar9 = *(int *)(iVar5 + iVar10);" (assignment_expression "iVar9 = *(int *)(iVar5 + iVar10)" identifier = (pointer_expression "*(int *)(iVar5 + iVar10)" * (cast_expression "(int *)(iVar5 + iVar10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar10)" ( (binary_expression "iVar5 + iVar10" identifier + identifier) ))))) ;) (expression_statement "piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);" (assignment_expression "piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4)" identifier = (cast_expression "(int *)(iVar5 + (iVar3 + iVar8) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + (iVar3 + iVar8) * 4)" ( (binary_expression "iVar5 + (iVar3 + iVar8) * 4" identifier + (binary_expression "(iVar3 + iVar8) * 4" (parenthesized_expression "(iVar3 + iVar8)" ( (binary_expression "iVar3 + iVar8" identifier + identifier) )) * number_literal)) )))) ;) }) while (parenthesized_expression "(iVar4 < iVar9)" ( (binary_expression "iVar4 < iVar9" identifier < identifier) )) ;) })) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "*piVar2 = iVar4;" (assignment_expression "*piVar2 = iVar4" (pointer_expression "*piVar2" * identifier) = identifier) ;) }) while (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) ;) (expression_statement "(*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);" (call_expression "(*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2)" (parenthesized_expression "(*(code *)PTR_memcpy_004b2390)" ( (pointer_expression "*(code *)PTR_memcpy_004b2390" * (cast_expression "(code *)PTR_memcpy_004b2390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,iVar5 + iVar7 * 4,iVar8 << 2)" ( identifier , (binary_expression "iVar5 + iVar7 * 4" identifier + (binary_expression "iVar7 * 4" identifier * number_literal)) , (binary_expression "iVar8 << 2" identifier << number_literal) ))) ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nreg_errcode_t re_node_set_merge(re_node_set *dest,re_node_set *src)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  Idx *pIVar4;\n  Idx *pIVar5;\n  Idx IVar6;\n  int iVar7;\n  int iVar8;\n  Idx IVar9;\n  int iVar10;\n  int iVar11;\n  \n  if ((src == (re_node_set *)0x0) || (iVar7 = src->nelem, iVar7 == 0)) {\n    return _REG_NOERROR;\n  }\n  iVar3 = dest->nelem;\n  if (dest->alloc < iVar7 * 2 + iVar3) {\n    iVar2 = iVar7 + dest->alloc;\n    pIVar4 = (Idx *)(*(code *)PTR_realloc_004b22d8)(dest->elems,iVar2 * 8);\n    if (pIVar4 == (Idx *)0x0) {\n      return _REG_ESPACE;\n    }\n    iVar7 = src->nelem;\n    iVar3 = dest->nelem;\n    dest->elems = pIVar4;\n    dest->alloc = iVar2 * 2;\n  }\n  puVar1 = PTR_memcpy_004b2390;\n  if (iVar3 == 0) {\n    pIVar4 = src->elems;\n    dest->nelem = iVar7;\n    (*(code *)puVar1)(dest->elems,pIVar4,src->nelem << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar3;\n    iVar2 = iVar3 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      pIVar4 = dest->elems;\n      iVar3 = iVar2 * 4;\n      pIVar5 = src->elems;\n      if (iVar2 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(pIVar4 + iVar7,pIVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }\n          if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          pIVar4[iVar11] = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar3 = dest->nelem;\n      iVar2 = iVar3 + -1;\n      iVar11 = src->nelem * 2 + iVar3;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      pIVar4 = dest->elems;\n      iVar10 = iVar11 * 4;\n      dest->nelem = iVar8 + iVar3;\n      do {\n        IVar9 = *(int *)((int)pIVar4 + iVar10);\n        IVar6 = pIVar4[iVar2];\n        pIVar5 = pIVar4 + iVar2 + iVar8;\n        if (IVar6 < IVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *pIVar5 = IVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }\n            iVar10 = iVar11 * 4;\n            IVar6 = pIVar4[iVar2];\n            IVar9 = pIVar4[iVar11];\n            pIVar5 = pIVar4 + iVar2 + iVar8;\n          } while (IVar6 < IVar9);\n        }\n        iVar2 = iVar2 + -1;\n        *pIVar5 = IVar6;\n      } while (-1 < iVar2);\n      (*(code *)PTR_memcpy_004b2390)(pIVar4,pIVar4 + iVar7,iVar8 << 2);\n    }\n  }\n  return _REG_NOERROR;\n}\n\n" comment (function_definition "reg_errcode_t re_node_set_merge(re_node_set *dest,re_node_set *src)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  Idx *pIVar4;\n  Idx *pIVar5;\n  Idx IVar6;\n  int iVar7;\n  int iVar8;\n  Idx IVar9;\n  int iVar10;\n  int iVar11;\n  \n  if ((src == (re_node_set *)0x0) || (iVar7 = src->nelem, iVar7 == 0)) {\n    return _REG_NOERROR;\n  }\n  iVar3 = dest->nelem;\n  if (dest->alloc < iVar7 * 2 + iVar3) {\n    iVar2 = iVar7 + dest->alloc;\n    pIVar4 = (Idx *)(*(code *)PTR_realloc_004b22d8)(dest->elems,iVar2 * 8);\n    if (pIVar4 == (Idx *)0x0) {\n      return _REG_ESPACE;\n    }\n    iVar7 = src->nelem;\n    iVar3 = dest->nelem;\n    dest->elems = pIVar4;\n    dest->alloc = iVar2 * 2;\n  }\n  puVar1 = PTR_memcpy_004b2390;\n  if (iVar3 == 0) {\n    pIVar4 = src->elems;\n    dest->nelem = iVar7;\n    (*(code *)puVar1)(dest->elems,pIVar4,src->nelem << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar3;\n    iVar2 = iVar3 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      pIVar4 = dest->elems;\n      iVar3 = iVar2 * 4;\n      pIVar5 = src->elems;\n      if (iVar2 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(pIVar4 + iVar7,pIVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }\n          if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          pIVar4[iVar11] = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar3 = dest->nelem;\n      iVar2 = iVar3 + -1;\n      iVar11 = src->nelem * 2 + iVar3;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      pIVar4 = dest->elems;\n      iVar10 = iVar11 * 4;\n      dest->nelem = iVar8 + iVar3;\n      do {\n        IVar9 = *(int *)((int)pIVar4 + iVar10);\n        IVar6 = pIVar4[iVar2];\n        pIVar5 = pIVar4 + iVar2 + iVar8;\n        if (IVar6 < IVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *pIVar5 = IVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }\n            iVar10 = iVar11 * 4;\n            IVar6 = pIVar4[iVar2];\n            IVar9 = pIVar4[iVar11];\n            pIVar5 = pIVar4 + iVar2 + iVar8;\n          } while (IVar6 < IVar9);\n        }\n        iVar2 = iVar2 + -1;\n        *pIVar5 = IVar6;\n      } while (-1 < iVar2);\n      (*(code *)PTR_memcpy_004b2390)(pIVar4,pIVar4 + iVar7,iVar8 << 2);\n    }\n  }\n  return _REG_NOERROR;\n}" type_identifier (function_declarator "re_node_set_merge(re_node_set *dest,re_node_set *src)" identifier (parameter_list "(re_node_set *dest,re_node_set *src)" ( (parameter_declaration "re_node_set *dest" type_identifier (pointer_declarator "*dest" * identifier)) , (parameter_declaration "re_node_set *src" type_identifier (pointer_declarator "*src" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  Idx *pIVar4;\n  Idx *pIVar5;\n  Idx IVar6;\n  int iVar7;\n  int iVar8;\n  Idx IVar9;\n  int iVar10;\n  int iVar11;\n  \n  if ((src == (re_node_set *)0x0) || (iVar7 = src->nelem, iVar7 == 0)) {\n    return _REG_NOERROR;\n  }\n  iVar3 = dest->nelem;\n  if (dest->alloc < iVar7 * 2 + iVar3) {\n    iVar2 = iVar7 + dest->alloc;\n    pIVar4 = (Idx *)(*(code *)PTR_realloc_004b22d8)(dest->elems,iVar2 * 8);\n    if (pIVar4 == (Idx *)0x0) {\n      return _REG_ESPACE;\n    }\n    iVar7 = src->nelem;\n    iVar3 = dest->nelem;\n    dest->elems = pIVar4;\n    dest->alloc = iVar2 * 2;\n  }\n  puVar1 = PTR_memcpy_004b2390;\n  if (iVar3 == 0) {\n    pIVar4 = src->elems;\n    dest->nelem = iVar7;\n    (*(code *)puVar1)(dest->elems,pIVar4,src->nelem << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar3;\n    iVar2 = iVar3 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      pIVar4 = dest->elems;\n      iVar3 = iVar2 * 4;\n      pIVar5 = src->elems;\n      if (iVar2 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(pIVar4 + iVar7,pIVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }\n          if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          pIVar4[iVar11] = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar3 = dest->nelem;\n      iVar2 = iVar3 + -1;\n      iVar11 = src->nelem * 2 + iVar3;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      pIVar4 = dest->elems;\n      iVar10 = iVar11 * 4;\n      dest->nelem = iVar8 + iVar3;\n      do {\n        IVar9 = *(int *)((int)pIVar4 + iVar10);\n        IVar6 = pIVar4[iVar2];\n        pIVar5 = pIVar4 + iVar2 + iVar8;\n        if (IVar6 < IVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *pIVar5 = IVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }\n            iVar10 = iVar11 * 4;\n            IVar6 = pIVar4[iVar2];\n            IVar9 = pIVar4[iVar11];\n            pIVar5 = pIVar4 + iVar2 + iVar8;\n          } while (IVar6 < IVar9);\n        }\n        iVar2 = iVar2 + -1;\n        *pIVar5 = IVar6;\n      } while (-1 < iVar2);\n      (*(code *)PTR_memcpy_004b2390)(pIVar4,pIVar4 + iVar7,iVar8 << 2);\n    }\n  }\n  return _REG_NOERROR;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "Idx *pIVar4;" type_identifier (pointer_declarator "*pIVar4" * identifier) ;) (declaration "Idx *pIVar5;" type_identifier (pointer_declarator "*pIVar5" * identifier) ;) (declaration "Idx IVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "Idx IVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (if_statement "if ((src == (re_node_set *)0x0) || (iVar7 = src->nelem, iVar7 == 0)) {\n    return _REG_NOERROR;\n  }" if (parenthesized_expression "((src == (re_node_set *)0x0) || (iVar7 = src->nelem, iVar7 == 0))" ( (binary_expression "(src == (re_node_set *)0x0) || (iVar7 = src->nelem, iVar7 == 0)" (parenthesized_expression "(src == (re_node_set *)0x0)" ( (binary_expression "src == (re_node_set *)0x0" identifier == (cast_expression "(re_node_set *)0x0" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar7 = src->nelem, iVar7 == 0)" ( (comma_expression "iVar7 = src->nelem, iVar7 == 0" (assignment_expression "iVar7 = src->nelem" identifier = (field_expression "src->nelem" identifier -> field_identifier)) , (binary_expression "iVar7 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    return _REG_NOERROR;\n  }" { (return_statement "return _REG_NOERROR;" return identifier ;) })) (expression_statement "iVar3 = dest->nelem;" (assignment_expression "iVar3 = dest->nelem" identifier = (field_expression "dest->nelem" identifier -> field_identifier)) ;) (if_statement "if (dest->alloc < iVar7 * 2 + iVar3) {\n    iVar2 = iVar7 + dest->alloc;\n    pIVar4 = (Idx *)(*(code *)PTR_realloc_004b22d8)(dest->elems,iVar2 * 8);\n    if (pIVar4 == (Idx *)0x0) {\n      return _REG_ESPACE;\n    }\n    iVar7 = src->nelem;\n    iVar3 = dest->nelem;\n    dest->elems = pIVar4;\n    dest->alloc = iVar2 * 2;\n  }" if (parenthesized_expression "(dest->alloc < iVar7 * 2 + iVar3)" ( (binary_expression "dest->alloc < iVar7 * 2 + iVar3" (field_expression "dest->alloc" identifier -> field_identifier) < (binary_expression "iVar7 * 2 + iVar3" (binary_expression "iVar7 * 2" identifier * number_literal) + identifier)) )) (compound_statement "{\n    iVar2 = iVar7 + dest->alloc;\n    pIVar4 = (Idx *)(*(code *)PTR_realloc_004b22d8)(dest->elems,iVar2 * 8);\n    if (pIVar4 == (Idx *)0x0) {\n      return _REG_ESPACE;\n    }\n    iVar7 = src->nelem;\n    iVar3 = dest->nelem;\n    dest->elems = pIVar4;\n    dest->alloc = iVar2 * 2;\n  }" { (expression_statement "iVar2 = iVar7 + dest->alloc;" (assignment_expression "iVar2 = iVar7 + dest->alloc" identifier = (binary_expression "iVar7 + dest->alloc" identifier + (field_expression "dest->alloc" identifier -> field_identifier))) ;) (expression_statement "pIVar4 = (Idx *)(*(code *)PTR_realloc_004b22d8)(dest->elems,iVar2 * 8);" (assignment_expression "pIVar4 = (Idx *)(*(code *)PTR_realloc_004b22d8)(dest->elems,iVar2 * 8)" identifier = (cast_expression "(Idx *)(*(code *)PTR_realloc_004b22d8)(dest->elems,iVar2 * 8)" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_realloc_004b22d8)(dest->elems,iVar2 * 8)" (parenthesized_expression "(*(code *)PTR_realloc_004b22d8)" ( (pointer_expression "*(code *)PTR_realloc_004b22d8" * (cast_expression "(code *)PTR_realloc_004b22d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dest->elems,iVar2 * 8)" ( (field_expression "dest->elems" identifier -> field_identifier) , (binary_expression "iVar2 * 8" identifier * number_literal) ))))) ;) (if_statement "if (pIVar4 == (Idx *)0x0) {\n      return _REG_ESPACE;\n    }" if (parenthesized_expression "(pIVar4 == (Idx *)0x0)" ( (binary_expression "pIVar4 == (Idx *)0x0" identifier == (cast_expression "(Idx *)0x0" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return _REG_ESPACE;\n    }" { (return_statement "return _REG_ESPACE;" return identifier ;) })) (expression_statement "iVar7 = src->nelem;" (assignment_expression "iVar7 = src->nelem" identifier = (field_expression "src->nelem" identifier -> field_identifier)) ;) (expression_statement "iVar3 = dest->nelem;" (assignment_expression "iVar3 = dest->nelem" identifier = (field_expression "dest->nelem" identifier -> field_identifier)) ;) (expression_statement "dest->elems = pIVar4;" (assignment_expression "dest->elems = pIVar4" (field_expression "dest->elems" identifier -> field_identifier) = identifier) ;) (expression_statement "dest->alloc = iVar2 * 2;" (assignment_expression "dest->alloc = iVar2 * 2" (field_expression "dest->alloc" identifier -> field_identifier) = (binary_expression "iVar2 * 2" identifier * number_literal)) ;) })) (expression_statement "puVar1 = PTR_memcpy_004b2390;" (assignment_expression "puVar1 = PTR_memcpy_004b2390" identifier = identifier) ;) (if_statement "if (iVar3 == 0) {\n    pIVar4 = src->elems;\n    dest->nelem = iVar7;\n    (*(code *)puVar1)(dest->elems,pIVar4,src->nelem << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar3;\n    iVar2 = iVar3 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      pIVar4 = dest->elems;\n      iVar3 = iVar2 * 4;\n      pIVar5 = src->elems;\n      if (iVar2 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(pIVar4 + iVar7,pIVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }\n          if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          pIVar4[iVar11] = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar3 = dest->nelem;\n      iVar2 = iVar3 + -1;\n      iVar11 = src->nelem * 2 + iVar3;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      pIVar4 = dest->elems;\n      iVar10 = iVar11 * 4;\n      dest->nelem = iVar8 + iVar3;\n      do {\n        IVar9 = *(int *)((int)pIVar4 + iVar10);\n        IVar6 = pIVar4[iVar2];\n        pIVar5 = pIVar4 + iVar2 + iVar8;\n        if (IVar6 < IVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *pIVar5 = IVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }\n            iVar10 = iVar11 * 4;\n            IVar6 = pIVar4[iVar2];\n            IVar9 = pIVar4[iVar11];\n            pIVar5 = pIVar4 + iVar2 + iVar8;\n          } while (IVar6 < IVar9);\n        }\n        iVar2 = iVar2 + -1;\n        *pIVar5 = IVar6;\n      } while (-1 < iVar2);\n      (*(code *)PTR_memcpy_004b2390)(pIVar4,pIVar4 + iVar7,iVar8 << 2);\n    }\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    pIVar4 = src->elems;\n    dest->nelem = iVar7;\n    (*(code *)puVar1)(dest->elems,pIVar4,src->nelem << 2);\n  }" { (expression_statement "pIVar4 = src->elems;" (assignment_expression "pIVar4 = src->elems" identifier = (field_expression "src->elems" identifier -> field_identifier)) ;) (expression_statement "dest->nelem = iVar7;" (assignment_expression "dest->nelem = iVar7" (field_expression "dest->nelem" identifier -> field_identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(dest->elems,pIVar4,src->nelem << 2);" (call_expression "(*(code *)puVar1)(dest->elems,pIVar4,src->nelem << 2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dest->elems,pIVar4,src->nelem << 2)" ( (field_expression "dest->elems" identifier -> field_identifier) , identifier , (binary_expression "src->nelem << 2" (field_expression "src->nelem" identifier -> field_identifier) << number_literal) ))) ;) }) (else_clause "else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar3;\n    iVar2 = iVar3 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      pIVar4 = dest->elems;\n      iVar3 = iVar2 * 4;\n      pIVar5 = src->elems;\n      if (iVar2 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(pIVar4 + iVar7,pIVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }\n          if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          pIVar4[iVar11] = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar3 = dest->nelem;\n      iVar2 = iVar3 + -1;\n      iVar11 = src->nelem * 2 + iVar3;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      pIVar4 = dest->elems;\n      iVar10 = iVar11 * 4;\n      dest->nelem = iVar8 + iVar3;\n      do {\n        IVar9 = *(int *)((int)pIVar4 + iVar10);\n        IVar6 = pIVar4[iVar2];\n        pIVar5 = pIVar4 + iVar2 + iVar8;\n        if (IVar6 < IVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *pIVar5 = IVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }\n            iVar10 = iVar11 * 4;\n            IVar6 = pIVar4[iVar2];\n            IVar9 = pIVar4[iVar11];\n            pIVar5 = pIVar4 + iVar2 + iVar8;\n          } while (IVar6 < IVar9);\n        }\n        iVar2 = iVar2 + -1;\n        *pIVar5 = IVar6;\n      } while (-1 < iVar2);\n      (*(code *)PTR_memcpy_004b2390)(pIVar4,pIVar4 + iVar7,iVar8 << 2);\n    }\n  }" else (compound_statement "{\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar3;\n    iVar2 = iVar3 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      pIVar4 = dest->elems;\n      iVar3 = iVar2 * 4;\n      pIVar5 = src->elems;\n      if (iVar2 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(pIVar4 + iVar7,pIVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }\n          if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          pIVar4[iVar11] = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar3 = dest->nelem;\n      iVar2 = iVar3 + -1;\n      iVar11 = src->nelem * 2 + iVar3;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      pIVar4 = dest->elems;\n      iVar10 = iVar11 * 4;\n      dest->nelem = iVar8 + iVar3;\n      do {\n        IVar9 = *(int *)((int)pIVar4 + iVar10);\n        IVar6 = pIVar4[iVar2];\n        pIVar5 = pIVar4 + iVar2 + iVar8;\n        if (IVar6 < IVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *pIVar5 = IVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }\n            iVar10 = iVar11 * 4;\n            IVar6 = pIVar4[iVar2];\n            IVar9 = pIVar4[iVar11];\n            pIVar5 = pIVar4 + iVar2 + iVar8;\n          } while (IVar6 < IVar9);\n        }\n        iVar2 = iVar2 + -1;\n        *pIVar5 = IVar6;\n      } while (-1 < iVar2);\n      (*(code *)PTR_memcpy_004b2390)(pIVar4,pIVar4 + iVar7,iVar8 << 2);\n    }\n  }" { (expression_statement "iVar8 = iVar7 + -1;" (assignment_expression "iVar8 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "iVar11 = iVar7 * 2 + iVar3;" (assignment_expression "iVar11 = iVar7 * 2 + iVar3" identifier = (binary_expression "iVar7 * 2 + iVar3" (binary_expression "iVar7 * 2" identifier * number_literal) + identifier)) ;) (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar11;" (assignment_expression "iVar7 = iVar11" identifier = identifier) ;) (if_statement "if (-1 < iVar8) {\n      pIVar4 = dest->elems;\n      iVar3 = iVar2 * 4;\n      pIVar5 = src->elems;\n      if (iVar2 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(pIVar4 + iVar7,pIVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }\n          if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          pIVar4[iVar11] = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar3 = dest->nelem;\n      iVar2 = iVar3 + -1;\n      iVar11 = src->nelem * 2 + iVar3;\n    }" if (parenthesized_expression "(-1 < iVar8)" ( (binary_expression "-1 < iVar8" number_literal < identifier) )) (compound_statement "{\n      pIVar4 = dest->elems;\n      iVar3 = iVar2 * 4;\n      pIVar5 = src->elems;\n      if (iVar2 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(pIVar4 + iVar7,pIVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }\n          if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          pIVar4[iVar11] = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar3 = dest->nelem;\n      iVar2 = iVar3 + -1;\n      iVar11 = src->nelem * 2 + iVar3;\n    }" { (expression_statement "pIVar4 = dest->elems;" (assignment_expression "pIVar4 = dest->elems" identifier = (field_expression "dest->elems" identifier -> field_identifier)) ;) (expression_statement "iVar3 = iVar2 * 4;" (assignment_expression "iVar3 = iVar2 * 4" identifier = (binary_expression "iVar2 * 4" identifier * number_literal)) ;) (expression_statement "pIVar5 = src->elems;" (assignment_expression "pIVar5 = src->elems" identifier = (field_expression "src->elems" identifier -> field_identifier)) ;) (if_statement "if (iVar2 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(pIVar4 + iVar7,pIVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }\n          if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          pIVar4[iVar11] = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(pIVar4 + iVar7,pIVar5,(iVar8 + 1) * 4);\n      }" { (labeled_statement "LAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);" statement_identifier : (expression_statement "iVar7 = iVar11 - (iVar8 + 1);" (assignment_expression "iVar7 = iVar11 - (iVar8 + 1)" identifier = (binary_expression "iVar11 - (iVar8 + 1)" identifier - (parenthesized_expression "(iVar8 + 1)" ( (binary_expression "iVar8 + 1" identifier + number_literal) )))) ;)) (expression_statement "(*(code *)PTR_memcpy_004b2390)(pIVar4 + iVar7,pIVar5,(iVar8 + 1) * 4);" (call_expression "(*(code *)PTR_memcpy_004b2390)(pIVar4 + iVar7,pIVar5,(iVar8 + 1) * 4)" (parenthesized_expression "(*(code *)PTR_memcpy_004b2390)" ( (pointer_expression "*(code *)PTR_memcpy_004b2390" * (cast_expression "(code *)PTR_memcpy_004b2390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pIVar4 + iVar7,pIVar5,(iVar8 + 1) * 4)" ( (binary_expression "pIVar4 + iVar7" identifier + identifier) , identifier , (binary_expression "(iVar8 + 1) * 4" (parenthesized_expression "(iVar8 + 1)" ( (binary_expression "iVar8 + 1" identifier + number_literal) )) * number_literal) ))) ;) }) (else_clause "else {\n        do {\n          while( true ) {\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }\n          if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          pIVar4[iVar11] = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }" else (compound_statement "{\n        do {\n          while( true ) {\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }\n          if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          pIVar4[iVar11] = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }" { (do_statement "do {\n          while( true ) {\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }\n          if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          pIVar4[iVar11] = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);" do (compound_statement "{\n          while( true ) {\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }\n          if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          pIVar4[iVar11] = iVar7;\n          iVar7 = iVar11;\n        }" { (while_statement "while( true ) {\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            iVar7 = pIVar5[iVar8];\n            if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar2 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar2 = iVar2 + -1;\n            iVar3 = iVar2 * 4;\n          }" { (expression_statement "iVar7 = pIVar5[iVar8];" (assignment_expression "iVar7 = pIVar5[iVar8]" identifier = (subscript_expression "pIVar5[iVar8]" identifier [ identifier ])) ;) (if_statement "if (*(int *)((int)pIVar4 + iVar3) != iVar7) break;" if (parenthesized_expression "(*(int *)((int)pIVar4 + iVar3) != iVar7)" ( (binary_expression "*(int *)((int)pIVar4 + iVar3) != iVar7" (pointer_expression "*(int *)((int)pIVar4 + iVar3)" * (cast_expression "(int *)((int)pIVar4 + iVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pIVar4 + iVar3)" ( (binary_expression "(int)pIVar4 + iVar3" (cast_expression "(int)pIVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) != identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar11;" (assignment_expression "iVar7 = iVar11" identifier = identifier) ;) (if_statement "if (iVar8 == -1) goto LAB_00481490;" if (parenthesized_expression "(iVar8 == -1)" ( (binary_expression "iVar8 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00481490;" goto statement_identifier ;)) (if_statement "if (iVar2 == 0) goto LAB_00481594;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00481594;" goto statement_identifier ;)) (labeled_statement "LAB_00481580:\n            iVar2 = iVar2 + -1;" statement_identifier : (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;)) (expression_statement "iVar3 = iVar2 * 4;" (assignment_expression "iVar3 = iVar2 * 4" identifier = (binary_expression "iVar2 * 4" identifier * number_literal)) ;) })) (if_statement "if (iVar7 <= *(int *)((int)pIVar4 + iVar3)) {\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }" if (parenthesized_expression "(iVar7 <= *(int *)((int)pIVar4 + iVar3))" ( (binary_expression "iVar7 <= *(int *)((int)pIVar4 + iVar3)" identifier <= (pointer_expression "*(int *)((int)pIVar4 + iVar3)" * (cast_expression "(int *)((int)pIVar4 + iVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pIVar4 + iVar3)" ( (binary_expression "(int)pIVar4 + iVar3" (cast_expression "(int)pIVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))))) )) (compound_statement "{\n            if (iVar2 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }" { (if_statement "if (iVar2 != 0) goto LAB_00481580;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00481580;" goto statement_identifier ;)) (goto_statement "goto LAB_00481594;" goto statement_identifier ;) })) (expression_statement "iVar11 = iVar11 + -1;" (assignment_expression "iVar11 = iVar11 + -1" identifier = (binary_expression "iVar11 + -1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "pIVar4[iVar11] = iVar7;" (assignment_expression "pIVar4[iVar11] = iVar7" (subscript_expression "pIVar4[iVar11]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar7 = iVar11;" (assignment_expression "iVar7 = iVar11" identifier = identifier) ;) }) while (parenthesized_expression "(iVar8 != -1)" ( (binary_expression "iVar8 != -1" identifier != number_literal) )) ;) }))) (labeled_statement "LAB_00481490:\n      iVar3 = dest->nelem;" statement_identifier : (expression_statement "iVar3 = dest->nelem;" (assignment_expression "iVar3 = dest->nelem" identifier = (field_expression "dest->nelem" identifier -> field_identifier)) ;)) (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "iVar11 = src->nelem * 2 + iVar3;" (assignment_expression "iVar11 = src->nelem * 2 + iVar3" identifier = (binary_expression "src->nelem * 2 + iVar3" (binary_expression "src->nelem * 2" (field_expression "src->nelem" identifier -> field_identifier) * number_literal) + identifier)) ;) })) (expression_statement "iVar8 = iVar11 - iVar7;" (assignment_expression "iVar8 = iVar11 - iVar7" identifier = (binary_expression "iVar11 - iVar7" identifier - identifier)) ;) (expression_statement "iVar11 = iVar11 + -1;" (assignment_expression "iVar11 = iVar11 + -1" identifier = (binary_expression "iVar11 + -1" identifier + number_literal)) ;) (if_statement "if (iVar8 != 0) {\n      pIVar4 = dest->elems;\n      iVar10 = iVar11 * 4;\n      dest->nelem = iVar8 + iVar3;\n      do {\n        IVar9 = *(int *)((int)pIVar4 + iVar10);\n        IVar6 = pIVar4[iVar2];\n        pIVar5 = pIVar4 + iVar2 + iVar8;\n        if (IVar6 < IVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *pIVar5 = IVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }\n            iVar10 = iVar11 * 4;\n            IVar6 = pIVar4[iVar2];\n            IVar9 = pIVar4[iVar11];\n            pIVar5 = pIVar4 + iVar2 + iVar8;\n          } while (IVar6 < IVar9);\n        }\n        iVar2 = iVar2 + -1;\n        *pIVar5 = IVar6;\n      } while (-1 < iVar2);\n      (*(code *)PTR_memcpy_004b2390)(pIVar4,pIVar4 + iVar7,iVar8 << 2);\n    }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n      pIVar4 = dest->elems;\n      iVar10 = iVar11 * 4;\n      dest->nelem = iVar8 + iVar3;\n      do {\n        IVar9 = *(int *)((int)pIVar4 + iVar10);\n        IVar6 = pIVar4[iVar2];\n        pIVar5 = pIVar4 + iVar2 + iVar8;\n        if (IVar6 < IVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *pIVar5 = IVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }\n            iVar10 = iVar11 * 4;\n            IVar6 = pIVar4[iVar2];\n            IVar9 = pIVar4[iVar11];\n            pIVar5 = pIVar4 + iVar2 + iVar8;\n          } while (IVar6 < IVar9);\n        }\n        iVar2 = iVar2 + -1;\n        *pIVar5 = IVar6;\n      } while (-1 < iVar2);\n      (*(code *)PTR_memcpy_004b2390)(pIVar4,pIVar4 + iVar7,iVar8 << 2);\n    }" { (expression_statement "pIVar4 = dest->elems;" (assignment_expression "pIVar4 = dest->elems" identifier = (field_expression "dest->elems" identifier -> field_identifier)) ;) (expression_statement "iVar10 = iVar11 * 4;" (assignment_expression "iVar10 = iVar11 * 4" identifier = (binary_expression "iVar11 * 4" identifier * number_literal)) ;) (expression_statement "dest->nelem = iVar8 + iVar3;" (assignment_expression "dest->nelem = iVar8 + iVar3" (field_expression "dest->nelem" identifier -> field_identifier) = (binary_expression "iVar8 + iVar3" identifier + identifier)) ;) (do_statement "do {\n        IVar9 = *(int *)((int)pIVar4 + iVar10);\n        IVar6 = pIVar4[iVar2];\n        pIVar5 = pIVar4 + iVar2 + iVar8;\n        if (IVar6 < IVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *pIVar5 = IVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }\n            iVar10 = iVar11 * 4;\n            IVar6 = pIVar4[iVar2];\n            IVar9 = pIVar4[iVar11];\n            pIVar5 = pIVar4 + iVar2 + iVar8;\n          } while (IVar6 < IVar9);\n        }\n        iVar2 = iVar2 + -1;\n        *pIVar5 = IVar6;\n      } while (-1 < iVar2);" do (compound_statement "{\n        IVar9 = *(int *)((int)pIVar4 + iVar10);\n        IVar6 = pIVar4[iVar2];\n        pIVar5 = pIVar4 + iVar2 + iVar8;\n        if (IVar6 < IVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *pIVar5 = IVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }\n            iVar10 = iVar11 * 4;\n            IVar6 = pIVar4[iVar2];\n            IVar9 = pIVar4[iVar11];\n            pIVar5 = pIVar4 + iVar2 + iVar8;\n          } while (IVar6 < IVar9);\n        }\n        iVar2 = iVar2 + -1;\n        *pIVar5 = IVar6;\n      }" { (expression_statement "IVar9 = *(int *)((int)pIVar4 + iVar10);" (assignment_expression "IVar9 = *(int *)((int)pIVar4 + iVar10)" identifier = (pointer_expression "*(int *)((int)pIVar4 + iVar10)" * (cast_expression "(int *)((int)pIVar4 + iVar10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pIVar4 + iVar10)" ( (binary_expression "(int)pIVar4 + iVar10" (cast_expression "(int)pIVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))))) ;) (expression_statement "IVar6 = pIVar4[iVar2];" (assignment_expression "IVar6 = pIVar4[iVar2]" identifier = (subscript_expression "pIVar4[iVar2]" identifier [ identifier ])) ;) (expression_statement "pIVar5 = pIVar4 + iVar2 + iVar8;" (assignment_expression "pIVar5 = pIVar4 + iVar2 + iVar8" identifier = (binary_expression "pIVar4 + iVar2 + iVar8" (binary_expression "pIVar4 + iVar2" identifier + identifier) + identifier)) ;) (if_statement "if (IVar6 < IVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *pIVar5 = IVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }\n            iVar10 = iVar11 * 4;\n            IVar6 = pIVar4[iVar2];\n            IVar9 = pIVar4[iVar11];\n            pIVar5 = pIVar4 + iVar2 + iVar8;\n          } while (IVar6 < IVar9);\n        }" if (parenthesized_expression "(IVar6 < IVar9)" ( (binary_expression "IVar6 < IVar9" identifier < identifier) )) (compound_statement "{\n          do {\n            iVar8 = iVar8 + -1;\n            *pIVar5 = IVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }\n            iVar10 = iVar11 * 4;\n            IVar6 = pIVar4[iVar2];\n            IVar9 = pIVar4[iVar11];\n            pIVar5 = pIVar4 + iVar2 + iVar8;\n          } while (IVar6 < IVar9);\n        }" { (do_statement "do {\n            iVar8 = iVar8 + -1;\n            *pIVar5 = IVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }\n            iVar10 = iVar11 * 4;\n            IVar6 = pIVar4[iVar2];\n            IVar9 = pIVar4[iVar11];\n            pIVar5 = pIVar4 + iVar2 + iVar8;\n          } while (IVar6 < IVar9);" do (compound_statement "{\n            iVar8 = iVar8 + -1;\n            *pIVar5 = IVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }\n            iVar10 = iVar11 * 4;\n            IVar6 = pIVar4[iVar2];\n            IVar9 = pIVar4[iVar11];\n            pIVar5 = pIVar4 + iVar2 + iVar8;\n          }" { (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "*pIVar5 = IVar9;" (assignment_expression "*pIVar5 = IVar9" (pointer_expression "*pIVar5" * identifier) = identifier) ;) (expression_statement "iVar11 = iVar11 + -1;" (assignment_expression "iVar11 = iVar11 + -1" identifier = (binary_expression "iVar11 + -1" identifier + number_literal)) ;) (if_statement "if (iVar8 == 0) {\n              return _REG_NOERROR;\n            }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n              return _REG_NOERROR;\n            }" { (return_statement "return _REG_NOERROR;" return identifier ;) })) (expression_statement "iVar10 = iVar11 * 4;" (assignment_expression "iVar10 = iVar11 * 4" identifier = (binary_expression "iVar11 * 4" identifier * number_literal)) ;) (expression_statement "IVar6 = pIVar4[iVar2];" (assignment_expression "IVar6 = pIVar4[iVar2]" identifier = (subscript_expression "pIVar4[iVar2]" identifier [ identifier ])) ;) (expression_statement "IVar9 = pIVar4[iVar11];" (assignment_expression "IVar9 = pIVar4[iVar11]" identifier = (subscript_expression "pIVar4[iVar11]" identifier [ identifier ])) ;) (expression_statement "pIVar5 = pIVar4 + iVar2 + iVar8;" (assignment_expression "pIVar5 = pIVar4 + iVar2 + iVar8" identifier = (binary_expression "pIVar4 + iVar2 + iVar8" (binary_expression "pIVar4 + iVar2" identifier + identifier) + identifier)) ;) }) while (parenthesized_expression "(IVar6 < IVar9)" ( (binary_expression "IVar6 < IVar9" identifier < identifier) )) ;) })) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "*pIVar5 = IVar6;" (assignment_expression "*pIVar5 = IVar6" (pointer_expression "*pIVar5" * identifier) = identifier) ;) }) while (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) ;) (expression_statement "(*(code *)PTR_memcpy_004b2390)(pIVar4,pIVar4 + iVar7,iVar8 << 2);" (call_expression "(*(code *)PTR_memcpy_004b2390)(pIVar4,pIVar4 + iVar7,iVar8 << 2)" (parenthesized_expression "(*(code *)PTR_memcpy_004b2390)" ( (pointer_expression "*(code *)PTR_memcpy_004b2390" * (cast_expression "(code *)PTR_memcpy_004b2390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pIVar4,pIVar4 + iVar7,iVar8 << 2)" ( identifier , (binary_expression "pIVar4 + iVar7" identifier + identifier) , (binary_expression "iVar8 << 2" identifier << number_literal) ))) ;) })) }))) (return_statement "return _REG_NOERROR;" return identifier ;) })))
(translation_unit "undefined4 FUN_004813d4(int *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if ((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)) {\n    return 0;\n  }\n  iVar4 = param_1[1];\n  if (*param_1 < iVar7 * 2 + iVar4) {\n    iVar8 = iVar7 + *param_1;\n    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);\n    if (iVar3 == 0) {\n      return 0xc;\n    }\n    iVar7 = *(int *)(param_2 + 4);\n    iVar4 = param_1[1];\n    param_1[2] = iVar3;\n    *param_1 = iVar8 * 2;\n  }\n  puVar1 = PTR_memcpy_004b2390;\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_2 + 8);\n    param_1[1] = iVar7;\n    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_004813d4(int *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if ((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)) {\n    return 0;\n  }\n  iVar4 = param_1[1];\n  if (*param_1 < iVar7 * 2 + iVar4) {\n    iVar8 = iVar7 + *param_1;\n    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);\n    if (iVar3 == 0) {\n      return 0xc;\n    }\n    iVar7 = *(int *)(param_2 + 4);\n    iVar4 = param_1[1];\n    param_1[2] = iVar3;\n    *param_1 = iVar8 * 2;\n  }\n  puVar1 = PTR_memcpy_004b2390;\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_2 + 8);\n    param_1[1] = iVar7;\n    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_004813d4(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if ((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)) {\n    return 0;\n  }\n  iVar4 = param_1[1];\n  if (*param_1 < iVar7 * 2 + iVar4) {\n    iVar8 = iVar7 + *param_1;\n    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);\n    if (iVar3 == 0) {\n      return 0xc;\n    }\n    iVar7 = *(int *)(param_2 + 4);\n    iVar4 = param_1[1];\n    param_1[2] = iVar3;\n    *param_1 = iVar8 * 2;\n  }\n  puVar1 = PTR_memcpy_004b2390;\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_2 + 8);\n    param_1[1] = iVar7;\n    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type 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 ;) (declaration "int iVar11;" primitive_type identifier ;) (if_statement "if ((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)) {\n    return 0;\n  }" if (parenthesized_expression "((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0))" ( (binary_expression "(param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar7 = *(int *)(param_2 + 4), iVar7 == 0)" ( (comma_expression "iVar7 = *(int *)(param_2 + 4), iVar7 == 0" (assignment_expression "iVar7 = *(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) ))))) , (binary_expression "iVar7 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (*param_1 < iVar7 * 2 + iVar4) {\n    iVar8 = iVar7 + *param_1;\n    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);\n    if (iVar3 == 0) {\n      return 0xc;\n    }\n    iVar7 = *(int *)(param_2 + 4);\n    iVar4 = param_1[1];\n    param_1[2] = iVar3;\n    *param_1 = iVar8 * 2;\n  }" if (parenthesized_expression "(*param_1 < iVar7 * 2 + iVar4)" ( (binary_expression "*param_1 < iVar7 * 2 + iVar4" (pointer_expression "*param_1" * identifier) < (binary_expression "iVar7 * 2 + iVar4" (binary_expression "iVar7 * 2" identifier * number_literal) + identifier)) )) (compound_statement "{\n    iVar8 = iVar7 + *param_1;\n    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);\n    if (iVar3 == 0) {\n      return 0xc;\n    }\n    iVar7 = *(int *)(param_2 + 4);\n    iVar4 = param_1[1];\n    param_1[2] = iVar3;\n    *param_1 = iVar8 * 2;\n  }" { (expression_statement "iVar8 = iVar7 + *param_1;" (assignment_expression "iVar8 = iVar7 + *param_1" identifier = (binary_expression "iVar7 + *param_1" identifier + (pointer_expression "*param_1" * identifier))) ;) (expression_statement "iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);" (assignment_expression "iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8)" identifier = (call_expression "(*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8)" (parenthesized_expression "(*(code *)PTR_realloc_004b22d8)" ( (pointer_expression "*(code *)PTR_realloc_004b22d8" * (cast_expression "(code *)PTR_realloc_004b22d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[2],iVar8 * 8)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , (binary_expression "iVar8 * 8" identifier * number_literal) )))) ;) (if_statement "if (iVar3 == 0) {\n      return 0xc;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0xc;\n    }" { (return_statement "return 0xc;" return number_literal ;) })) (expression_statement "iVar7 = *(int *)(param_2 + 4);" (assignment_expression "iVar7 = *(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) ))))) ;) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = iVar8 * 2;" (assignment_expression "*param_1 = iVar8 * 2" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar8 * 2" identifier * number_literal)) ;) })) (expression_statement "puVar1 = PTR_memcpy_004b2390;" (assignment_expression "puVar1 = PTR_memcpy_004b2390" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_2 + 8);\n    param_1[1] = iVar7;\n    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar6 = *(undefined4 *)(param_2 + 8);\n    param_1[1] = iVar7;\n    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);\n  }" { (expression_statement "uVar6 = *(undefined4 *)(param_2 + 8);" (assignment_expression "uVar6 = *(undefined4 *)(param_2 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "param_1[1] = iVar7;" (assignment_expression "param_1[1] = iVar7" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);" (call_expression "(*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[2],uVar6,*(int *)(param_2 + 4) << 2)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , identifier , (binary_expression "*(int *)(param_2 + 4) << 2" (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) ))) ;) }) (else_clause "else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }" else (compound_statement "{\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }" { (expression_statement "iVar8 = iVar7 + -1;" (assignment_expression "iVar8 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "iVar11 = iVar7 * 2 + iVar4;" (assignment_expression "iVar11 = iVar7 * 2 + iVar4" identifier = (binary_expression "iVar7 * 2 + iVar4" (binary_expression "iVar7 * 2" identifier * number_literal) + identifier)) ;) (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar11;" (assignment_expression "iVar7 = iVar11" identifier = identifier) ;) (if_statement "if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }" if (parenthesized_expression "(-1 < iVar8)" ( (binary_expression "-1 < iVar8" number_literal < identifier) )) (compound_statement "{\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }" { (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar10 = iVar3 * 4;" (assignment_expression "iVar10 = iVar3 * 4" identifier = (binary_expression "iVar3 * 4" identifier * number_literal)) ;) (expression_statement "iVar5 = *(int *)(param_2 + 8);" (assignment_expression "iVar5 = *(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) ))))) ;) (if_statement "if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }" { (labeled_statement "LAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);" statement_identifier : (expression_statement "iVar7 = iVar11 - (iVar8 + 1);" (assignment_expression "iVar7 = iVar11 - (iVar8 + 1)" identifier = (binary_expression "iVar11 - (iVar8 + 1)" identifier - (parenthesized_expression "(iVar8 + 1)" ( (binary_expression "iVar8 + 1" identifier + number_literal) )))) ;)) (expression_statement "(*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);" (call_expression "(*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4)" (parenthesized_expression "(*(code *)PTR_memcpy_004b2390)" ( (pointer_expression "*(code *)PTR_memcpy_004b2390" * (cast_expression "(code *)PTR_memcpy_004b2390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4)" ( (binary_expression "iVar4 + iVar7 * 4" identifier + (binary_expression "iVar7 * 4" identifier * number_literal)) , identifier , (binary_expression "(iVar8 + 1) * 4" (parenthesized_expression "(iVar8 + 1)" ( (binary_expression "iVar8 + 1" identifier + number_literal) )) * number_literal) ))) ;) }) (else_clause "else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }" else (compound_statement "{\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }" { (do_statement "do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);" do (compound_statement "{\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        }" { (while_statement "while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }" { (expression_statement "iVar7 = *(int *)(iVar5 + iVar8 * 4);" (assignment_expression "iVar7 = *(int *)(iVar5 + iVar8 * 4)" identifier = (pointer_expression "*(int *)(iVar5 + iVar8 * 4)" * (cast_expression "(int *)(iVar5 + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar8 * 4)" ( (binary_expression "iVar5 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (*(int *)(iVar4 + iVar10) != iVar7) break;" if (parenthesized_expression "(*(int *)(iVar4 + iVar10) != iVar7)" ( (binary_expression "*(int *)(iVar4 + iVar10) != iVar7" (pointer_expression "*(int *)(iVar4 + iVar10)" * (cast_expression "(int *)(iVar4 + iVar10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar10)" ( (binary_expression "iVar4 + iVar10" identifier + identifier) )))) != identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar11;" (assignment_expression "iVar7 = iVar11" identifier = identifier) ;) (if_statement "if (iVar8 == -1) goto LAB_00481490;" if (parenthesized_expression "(iVar8 == -1)" ( (binary_expression "iVar8 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00481490;" goto statement_identifier ;)) (if_statement "if (iVar3 == 0) goto LAB_00481594;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00481594;" goto statement_identifier ;)) (labeled_statement "LAB_00481580:\n            iVar3 = iVar3 + -1;" statement_identifier : (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;)) (expression_statement "iVar10 = iVar3 * 4;" (assignment_expression "iVar10 = iVar3 * 4" identifier = (binary_expression "iVar3 * 4" identifier * number_literal)) ;) })) (if_statement "if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }" if (parenthesized_expression "(iVar7 <= *(int *)(iVar4 + iVar10))" ( (binary_expression "iVar7 <= *(int *)(iVar4 + iVar10)" identifier <= (pointer_expression "*(int *)(iVar4 + iVar10)" * (cast_expression "(int *)(iVar4 + iVar10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar10)" ( (binary_expression "iVar4 + iVar10" identifier + identifier) ))))) )) (compound_statement "{\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }" { (if_statement "if (iVar3 != 0) goto LAB_00481580;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00481580;" goto statement_identifier ;)) (goto_statement "goto LAB_00481594;" goto statement_identifier ;) })) (expression_statement "iVar11 = iVar11 + -1;" (assignment_expression "iVar11 = iVar11 + -1" identifier = (binary_expression "iVar11 + -1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar4 + iVar11 * 4) = iVar7;" (assignment_expression "*(int *)(iVar4 + iVar11 * 4) = iVar7" (pointer_expression "*(int *)(iVar4 + iVar11 * 4)" * (cast_expression "(int *)(iVar4 + iVar11 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar11 * 4)" ( (binary_expression "iVar4 + iVar11 * 4" identifier + (binary_expression "iVar11 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar7 = iVar11;" (assignment_expression "iVar7 = iVar11" identifier = identifier) ;) }) while (parenthesized_expression "(iVar8 != -1)" ( (binary_expression "iVar8 != -1" identifier != number_literal) )) ;) }))) (labeled_statement "LAB_00481490:\n      iVar4 = param_1[1];" statement_identifier : (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;)) (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;" (assignment_expression "iVar11 = *(int *)(param_2 + 4) * 2 + iVar4" identifier = (binary_expression "*(int *)(param_2 + 4) * 2 + iVar4" (binary_expression "*(int *)(param_2 + 4) * 2" (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) + identifier)) ;) })) (expression_statement "iVar8 = iVar11 - iVar7;" (assignment_expression "iVar8 = iVar11 - iVar7" identifier = (binary_expression "iVar11 - iVar7" identifier - identifier)) ;) (expression_statement "iVar11 = iVar11 + -1;" (assignment_expression "iVar11 = iVar11 + -1" identifier = (binary_expression "iVar11 + -1" identifier + number_literal)) ;) (if_statement "if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }" { (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar10 = iVar11 * 4;" (assignment_expression "iVar10 = iVar11 * 4" identifier = (binary_expression "iVar11 * 4" identifier * number_literal)) ;) (expression_statement "param_1[1] = iVar8 + iVar4;" (assignment_expression "param_1[1] = iVar8 + iVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar8 + iVar4" identifier + identifier)) ;) (do_statement "do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);" do (compound_statement "{\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      }" { (expression_statement "iVar9 = *(int *)(iVar5 + iVar10);" (assignment_expression "iVar9 = *(int *)(iVar5 + iVar10)" identifier = (pointer_expression "*(int *)(iVar5 + iVar10)" * (cast_expression "(int *)(iVar5 + iVar10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar10)" ( (binary_expression "iVar5 + iVar10" identifier + identifier) ))))) ;) (expression_statement "iVar4 = *(int *)(iVar5 + iVar3 * 4);" (assignment_expression "iVar4 = *(int *)(iVar5 + iVar3 * 4)" identifier = (pointer_expression "*(int *)(iVar5 + iVar3 * 4)" * (cast_expression "(int *)(iVar5 + iVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar3 * 4)" ( (binary_expression "iVar5 + iVar3 * 4" identifier + (binary_expression "iVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);" (assignment_expression "piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4)" identifier = (cast_expression "(int *)(iVar5 + (iVar3 + iVar8) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + (iVar3 + iVar8) * 4)" ( (binary_expression "iVar5 + (iVar3 + iVar8) * 4" identifier + (binary_expression "(iVar3 + iVar8) * 4" (parenthesized_expression "(iVar3 + iVar8)" ( (binary_expression "iVar3 + iVar8" identifier + identifier) )) * number_literal)) )))) ;) (if_statement "if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }" if (parenthesized_expression "(iVar4 < iVar9)" ( (binary_expression "iVar4 < iVar9" identifier < identifier) )) (compound_statement "{\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }" { (do_statement "do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);" do (compound_statement "{\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          }" { (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "*piVar2 = iVar9;" (assignment_expression "*piVar2 = iVar9" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "iVar11 = iVar11 + -1;" (assignment_expression "iVar11 = iVar11 + -1" identifier = (binary_expression "iVar11 + -1" identifier + number_literal)) ;) (if_statement "if (iVar8 == 0) {\n              return 0;\n            }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n              return 0;\n            }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar10 = iVar11 * 4;" (assignment_expression "iVar10 = iVar11 * 4" identifier = (binary_expression "iVar11 * 4" identifier * number_literal)) ;) (expression_statement "iVar4 = *(int *)(iVar5 + iVar3 * 4);" (assignment_expression "iVar4 = *(int *)(iVar5 + iVar3 * 4)" identifier = (pointer_expression "*(int *)(iVar5 + iVar3 * 4)" * (cast_expression "(int *)(iVar5 + iVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar3 * 4)" ( (binary_expression "iVar5 + iVar3 * 4" identifier + (binary_expression "iVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar9 = *(int *)(iVar5 + iVar10);" (assignment_expression "iVar9 = *(int *)(iVar5 + iVar10)" identifier = (pointer_expression "*(int *)(iVar5 + iVar10)" * (cast_expression "(int *)(iVar5 + iVar10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar10)" ( (binary_expression "iVar5 + iVar10" identifier + identifier) ))))) ;) (expression_statement "piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);" (assignment_expression "piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4)" identifier = (cast_expression "(int *)(iVar5 + (iVar3 + iVar8) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + (iVar3 + iVar8) * 4)" ( (binary_expression "iVar5 + (iVar3 + iVar8) * 4" identifier + (binary_expression "(iVar3 + iVar8) * 4" (parenthesized_expression "(iVar3 + iVar8)" ( (binary_expression "iVar3 + iVar8" identifier + identifier) )) * number_literal)) )))) ;) }) while (parenthesized_expression "(iVar4 < iVar9)" ( (binary_expression "iVar4 < iVar9" identifier < identifier) )) ;) })) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "*piVar2 = iVar4;" (assignment_expression "*piVar2 = iVar4" (pointer_expression "*piVar2" * identifier) = identifier) ;) }) while (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) ;) (expression_statement "(*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);" (call_expression "(*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2)" (parenthesized_expression "(*(code *)PTR_memcpy_004b2390)" ( (pointer_expression "*(code *)PTR_memcpy_004b2390" * (cast_expression "(code *)PTR_memcpy_004b2390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,iVar5 + iVar7 * 4,iVar8 << 2)" ( identifier , (binary_expression "iVar5 + iVar7 * 4" identifier + (binary_expression "iVar7 * 4" identifier * number_literal)) , (binary_expression "iVar8 << 2" identifier << number_literal) ))) ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (binary_expression (binary_expression IDENT * LIT) + IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , (binary_expression IDENT * LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return 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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT * LIT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT) ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;)) (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)) , IDENT , (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT) ))) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) != IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT) + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) )))) ;) (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 (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (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 + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression LIT < IDENT) )) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + (binary_expression IDENT * LIT)) , (binary_expression IDENT << LIT) ))) ;) })) }))) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_004813d4(int *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if ((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)) {\n    return 0;\n  }\n  iVar4 = param_1[1];\n  if (*param_1 < iVar7 * 2 + iVar4) {\n    iVar8 = iVar7 + *param_1;\n    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);\n    if (iVar3 == 0) {\n      return 0xc;\n    }\n    iVar7 = *(int *)(param_2 + 4);\n    iVar4 = param_1[1];\n    param_1[2] = iVar3;\n    *param_1 = iVar8 * 2;\n  }\n  puVar1 = PTR_memcpy_004b2390;\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_2 + 8);\n    param_1[1] = iVar7;\n    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_004813d4(int *param_1,int param_2)" (identifier "FUN_004813d4") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if ((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)) {\n    return 0;\n  }\n  iVar4 = param_1[1];\n  if (*param_1 < iVar7 * 2 + iVar4) {\n    iVar8 = iVar7 + *param_1;\n    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);\n    if (iVar3 == 0) {\n      return 0xc;\n    }\n    iVar7 = *(int *)(param_2 + 4);\n    iVar4 = param_1[1];\n    param_1[2] = iVar3;\n    *param_1 = iVar8 * 2;\n  }\n  puVar1 = PTR_memcpy_004b2390;\n  if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_2 + 8);\n    param_1[1] = iVar7;\n    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (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") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (if_statement "if ((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0))" (( "(") (binary_expression "(param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)" (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar7 = *(int *)(param_2 + 4), iVar7 == 0)" (( "(") (comma_expression "iVar7 = *(int *)(param_2 + 4), iVar7 == 0" (assignment_expression "iVar7 = *(int *)(param_2 + 4)" (identifier "iVar7") (= "=") (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")) () ")"))))) (, ",") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" (identifier "iVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (*param_1 < iVar7 * 2 + iVar4) {\n    iVar8 = iVar7 + *param_1;\n    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);\n    if (iVar3 == 0) {\n      return 0xc;\n    }\n    iVar7 = *(int *)(param_2 + 4);\n    iVar4 = param_1[1];\n    param_1[2] = iVar3;\n    *param_1 = iVar8 * 2;\n  }" (if "if") (parenthesized_expression "(*param_1 < iVar7 * 2 + iVar4)" (( "(") (binary_expression "*param_1 < iVar7 * 2 + iVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (binary_expression "iVar7 * 2 + iVar4" (binary_expression "iVar7 * 2" (identifier "iVar7") (* "*") (number_literal "2")) (+ "+") (identifier "iVar4"))) () ")")) (compound_statement "{\n    iVar8 = iVar7 + *param_1;\n    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);\n    if (iVar3 == 0) {\n      return 0xc;\n    }\n    iVar7 = *(int *)(param_2 + 4);\n    iVar4 = param_1[1];\n    param_1[2] = iVar3;\n    *param_1 = iVar8 * 2;\n  }" ({ "{") (expression_statement "iVar8 = iVar7 + *param_1;" (assignment_expression "iVar8 = iVar7 + *param_1" (identifier "iVar8") (= "=") (binary_expression "iVar7 + *param_1" (identifier "iVar7") (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);" (assignment_expression "iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8)" (parenthesized_expression "(*(code *)PTR_realloc_004b22d8)" (( "(") (pointer_expression "*(code *)PTR_realloc_004b22d8" (* "*") (cast_expression "(code *)PTR_realloc_004b22d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_realloc_004b22d8"))) () ")")) (argument_list "(param_1[2],iVar8 * 8)" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (binary_expression "iVar8 * 8" (identifier "iVar8") (* "*") (number_literal "8")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      return 0xc;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0xc;\n    }" ({ "{") (return_statement "return 0xc;" (return "return") (number_literal "0xc") (; ";")) (} "}"))) (expression_statement "iVar7 = *(int *)(param_2 + 4);" (assignment_expression "iVar7 = *(int *)(param_2 + 4)" (identifier "iVar7") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" (identifier "iVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1[2] = iVar3;" (assignment_expression "param_1[2] = iVar3" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*param_1 = iVar8 * 2;" (assignment_expression "*param_1 = iVar8 * 2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "iVar8 * 2" (identifier "iVar8") (* "*") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "puVar1 = PTR_memcpy_004b2390;" (assignment_expression "puVar1 = PTR_memcpy_004b2390" (identifier "puVar1") (= "=") (identifier "PTR_memcpy_004b2390")) (; ";")) (if_statement "if (iVar4 == 0) {\n    uVar6 = *(undefined4 *)(param_2 + 8);\n    param_1[1] = iVar7;\n    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);\n  }\n  else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar6 = *(undefined4 *)(param_2 + 8);\n    param_1[1] = iVar7;\n    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);\n  }" ({ "{") (expression_statement "uVar6 = *(undefined4 *)(param_2 + 8);" (assignment_expression "uVar6 = *(undefined4 *)(param_2 + 8)" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "param_1[1] = iVar7;" (assignment_expression "param_1[1] = iVar7" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "(*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);" (call_expression "(*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2)" (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 "(param_1[2],uVar6,*(int *)(param_2 + 4) << 2)" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "uVar6") (, ",") (binary_expression "*(int *)(param_2 + 4) << 2" (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 "2")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }" (else "else") (compound_statement "{\n    iVar8 = iVar7 + -1;\n    iVar11 = iVar7 * 2 + iVar4;\n    iVar3 = iVar4 + -1;\n    iVar7 = iVar11;\n    if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }\n    iVar8 = iVar11 - iVar7;\n    iVar11 = iVar11 + -1;\n    if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }\n  }" ({ "{") (expression_statement "iVar8 = iVar7 + -1;" (assignment_expression "iVar8 = iVar7 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar11 = iVar7 * 2 + iVar4;" (assignment_expression "iVar11 = iVar7 * 2 + iVar4" (identifier "iVar11") (= "=") (binary_expression "iVar7 * 2 + iVar4" (binary_expression "iVar7 * 2" (identifier "iVar7") (* "*") (number_literal "2")) (+ "+") (identifier "iVar4"))) (; ";")) (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar7 = iVar11;" (assignment_expression "iVar7 = iVar11" (identifier "iVar7") (= "=") (identifier "iVar11")) (; ";")) (if_statement "if (-1 < iVar8) {\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }" (if "if") (parenthesized_expression "(-1 < iVar8)" (( "(") (binary_expression "-1 < iVar8" (number_literal "-1") (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\n      iVar4 = param_1[2];\n      iVar10 = iVar3 * 4;\n      iVar5 = *(int *)(param_2 + 8);\n      if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }\nLAB_00481490:\n      iVar4 = param_1[1];\n      iVar3 = iVar4 + -1;\n      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;\n    }" ({ "{") (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" (identifier "iVar4") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar10 = iVar3 * 4;" (assignment_expression "iVar10 = iVar3 * 4" (identifier "iVar10") (= "=") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar5 = *(int *)(param_2 + 8);" (assignment_expression "iVar5 = *(int *)(param_2 + 8)" (identifier "iVar5") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (iVar3 < 0) {\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }\n      else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);\n        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);\n      }" ({ "{") (labeled_statement "LAB_00481594:\n        iVar7 = iVar11 - (iVar8 + 1);" (statement_identifier "LAB_00481594") (: ":") (expression_statement "iVar7 = iVar11 - (iVar8 + 1);" (assignment_expression "iVar7 = iVar11 - (iVar8 + 1)" (identifier "iVar7") (= "=") (binary_expression "iVar11 - (iVar8 + 1)" (identifier "iVar11") (- "-") (parenthesized_expression "(iVar8 + 1)" (( "(") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1")) () ")")))) (; ";"))) (expression_statement "(*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);" (call_expression "(*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4)" (parenthesized_expression "(*(code *)PTR_memcpy_004b2390)" (( "(") (pointer_expression "*(code *)PTR_memcpy_004b2390" (* "*") (cast_expression "(code *)PTR_memcpy_004b2390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_004b2390"))) () ")")) (argument_list "(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4)" (( "(") (binary_expression "iVar4 + iVar7 * 4" (identifier "iVar4") (+ "+") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4"))) (, ",") (identifier "iVar5") (, ",") (binary_expression "(iVar8 + 1) * 4" (parenthesized_expression "(iVar8 + 1)" (( "(") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "4")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }" (else "else") (compound_statement "{\n        do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);\n      }" ({ "{") (do_statement "do {\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        } while (iVar8 != -1);" (do "do") (compound_statement "{\n          while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }\n          if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }\n          iVar11 = iVar11 + -1;\n          iVar8 = iVar8 + -1;\n          *(int *)(iVar4 + iVar11 * 4) = iVar7;\n          iVar7 = iVar11;\n        }" ({ "{") (while_statement "while( true ) {\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n            iVar7 = *(int *)(iVar5 + iVar8 * 4);\n            if (*(int *)(iVar4 + iVar10) != iVar7) break;\n            iVar8 = iVar8 + -1;\n            iVar7 = iVar11;\n            if (iVar8 == -1) goto LAB_00481490;\n            if (iVar3 == 0) goto LAB_00481594;\nLAB_00481580:\n            iVar3 = iVar3 + -1;\n            iVar10 = iVar3 * 4;\n          }" ({ "{") (expression_statement "iVar7 = *(int *)(iVar5 + iVar8 * 4);" (assignment_expression "iVar7 = *(int *)(iVar5 + iVar8 * 4)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar5 + iVar8 * 4)" (* "*") (cast_expression "(int *)(iVar5 + iVar8 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar8 * 4)" (( "(") (binary_expression "iVar5 + iVar8 * 4" (identifier "iVar5") (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar4 + iVar10) != iVar7) break;" (if "if") (parenthesized_expression "(*(int *)(iVar4 + iVar10) != iVar7)" (( "(") (binary_expression "*(int *)(iVar4 + iVar10) != iVar7" (pointer_expression "*(int *)(iVar4 + iVar10)" (* "*") (cast_expression "(int *)(iVar4 + iVar10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar10)" (( "(") (binary_expression "iVar4 + iVar10" (identifier "iVar4") (+ "+") (identifier "iVar10")) () ")")))) (!= "!=") (identifier "iVar7")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + -1" (identifier "iVar8") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar7 = iVar11;" (assignment_expression "iVar7 = iVar11" (identifier "iVar7") (= "=") (identifier "iVar11")) (; ";")) (if_statement "if (iVar8 == -1) goto LAB_00481490;" (if "if") (parenthesized_expression "(iVar8 == -1)" (( "(") (binary_expression "iVar8 == -1" (identifier "iVar8") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00481490;" (goto "goto") (statement_identifier "LAB_00481490") (; ";"))) (if_statement "if (iVar3 == 0) goto LAB_00481594;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00481594;" (goto "goto") (statement_identifier "LAB_00481594") (; ";"))) (labeled_statement "LAB_00481580:\n            iVar3 = iVar3 + -1;" (statement_identifier "LAB_00481580") (: ":") (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";"))) (expression_statement "iVar10 = iVar3 * 4;" (assignment_expression "iVar10 = iVar3 * 4" (identifier "iVar10") (= "=") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4"))) (; ";")) (} "}"))) (if_statement "if (iVar7 <= *(int *)(iVar4 + iVar10)) {\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }" (if "if") (parenthesized_expression "(iVar7 <= *(int *)(iVar4 + iVar10))" (( "(") (binary_expression "iVar7 <= *(int *)(iVar4 + iVar10)" (identifier "iVar7") (<= "<=") (pointer_expression "*(int *)(iVar4 + iVar10)" (* "*") (cast_expression "(int *)(iVar4 + iVar10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar10)" (( "(") (binary_expression "iVar4 + iVar10" (identifier "iVar4") (+ "+") (identifier "iVar10")) () ")"))))) () ")")) (compound_statement "{\n            if (iVar3 != 0) goto LAB_00481580;\n            goto LAB_00481594;\n          }" ({ "{") (if_statement "if (iVar3 != 0) goto LAB_00481580;" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00481580;" (goto "goto") (statement_identifier "LAB_00481580") (; ";"))) (goto_statement "goto LAB_00481594;" (goto "goto") (statement_identifier "LAB_00481594") (; ";")) (} "}"))) (expression_statement "iVar11 = iVar11 + -1;" (assignment_expression "iVar11 = iVar11 + -1" (identifier "iVar11") (= "=") (binary_expression "iVar11 + -1" (identifier "iVar11") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + -1" (identifier "iVar8") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(iVar4 + iVar11 * 4) = iVar7;" (assignment_expression "*(int *)(iVar4 + iVar11 * 4) = iVar7" (pointer_expression "*(int *)(iVar4 + iVar11 * 4)" (* "*") (cast_expression "(int *)(iVar4 + iVar11 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar11 * 4)" (( "(") (binary_expression "iVar4 + iVar11 * 4" (identifier "iVar4") (+ "+") (binary_expression "iVar11 * 4" (identifier "iVar11") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "iVar7 = iVar11;" (assignment_expression "iVar7 = iVar11" (identifier "iVar7") (= "=") (identifier "iVar11")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 != -1)" (( "(") (binary_expression "iVar8 != -1" (identifier "iVar8") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (} "}")))) (labeled_statement "LAB_00481490:\n      iVar4 = param_1[1];" (statement_identifier "LAB_00481490") (: ":") (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" (identifier "iVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";"))) (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;" (assignment_expression "iVar11 = *(int *)(param_2 + 4) * 2 + iVar4" (identifier "iVar11") (= "=") (binary_expression "*(int *)(param_2 + 4) * 2 + iVar4" (binary_expression "*(int *)(param_2 + 4) * 2" (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 "2")) (+ "+") (identifier "iVar4"))) (; ";")) (} "}"))) (expression_statement "iVar8 = iVar11 - iVar7;" (assignment_expression "iVar8 = iVar11 - iVar7" (identifier "iVar8") (= "=") (binary_expression "iVar11 - iVar7" (identifier "iVar11") (- "-") (identifier "iVar7"))) (; ";")) (expression_statement "iVar11 = iVar11 + -1;" (assignment_expression "iVar11 = iVar11 + -1" (identifier "iVar11") (= "=") (binary_expression "iVar11 + -1" (identifier "iVar11") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar8 != 0) {\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = param_1[2];\n      iVar10 = iVar11 * 4;\n      param_1[1] = iVar8 + iVar4;\n      do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);\n      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);\n    }" ({ "{") (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" (identifier "iVar5") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar10 = iVar11 * 4;" (assignment_expression "iVar10 = iVar11 * 4" (identifier "iVar10") (= "=") (binary_expression "iVar11 * 4" (identifier "iVar11") (* "*") (number_literal "4"))) (; ";")) (expression_statement "param_1[1] = iVar8 + iVar4;" (assignment_expression "param_1[1] = iVar8 + iVar4" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar8 + iVar4" (identifier "iVar8") (+ "+") (identifier "iVar4"))) (; ";")) (do_statement "do {\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      } while (-1 < iVar3);" (do "do") (compound_statement "{\n        iVar9 = *(int *)(iVar5 + iVar10);\n        iVar4 = *(int *)(iVar5 + iVar3 * 4);\n        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n        if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }\n        iVar3 = iVar3 + -1;\n        *piVar2 = iVar4;\n      }" ({ "{") (expression_statement "iVar9 = *(int *)(iVar5 + iVar10);" (assignment_expression "iVar9 = *(int *)(iVar5 + iVar10)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(iVar5 + iVar10)" (* "*") (cast_expression "(int *)(iVar5 + iVar10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar10)" (( "(") (binary_expression "iVar5 + iVar10" (identifier "iVar5") (+ "+") (identifier "iVar10")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar5 + iVar3 * 4);" (assignment_expression "iVar4 = *(int *)(iVar5 + iVar3 * 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar5 + iVar3 * 4)" (* "*") (cast_expression "(int *)(iVar5 + iVar3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar3 * 4)" (( "(") (binary_expression "iVar5 + iVar3 * 4" (identifier "iVar5") (+ "+") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);" (assignment_expression "piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4)" (identifier "piVar2") (= "=") (cast_expression "(int *)(iVar5 + (iVar3 + iVar8) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + (iVar3 + iVar8) * 4)" (( "(") (binary_expression "iVar5 + (iVar3 + iVar8) * 4" (identifier "iVar5") (+ "+") (binary_expression "(iVar3 + iVar8) * 4" (parenthesized_expression "(iVar3 + iVar8)" (( "(") (binary_expression "iVar3 + iVar8" (identifier "iVar3") (+ "+") (identifier "iVar8")) () ")")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (if_statement "if (iVar4 < iVar9) {\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }" (if "if") (parenthesized_expression "(iVar4 < iVar9)" (( "(") (binary_expression "iVar4 < iVar9" (identifier "iVar4") (< "<") (identifier "iVar9")) () ")")) (compound_statement "{\n          do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);\n        }" ({ "{") (do_statement "do {\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          } while (iVar4 < iVar9);" (do "do") (compound_statement "{\n            iVar8 = iVar8 + -1;\n            *piVar2 = iVar9;\n            iVar11 = iVar11 + -1;\n            if (iVar8 == 0) {\n              return 0;\n            }\n            iVar10 = iVar11 * 4;\n            iVar4 = *(int *)(iVar5 + iVar3 * 4);\n            iVar9 = *(int *)(iVar5 + iVar10);\n            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);\n          }" ({ "{") (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + -1" (identifier "iVar8") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*piVar2 = iVar9;" (assignment_expression "*piVar2 = iVar9" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar9")) (; ";")) (expression_statement "iVar11 = iVar11 + -1;" (assignment_expression "iVar11 = iVar11 + -1" (identifier "iVar11") (= "=") (binary_expression "iVar11 + -1" (identifier "iVar11") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar8 == 0) {\n              return 0;\n            }" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              return 0;\n            }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar10 = iVar11 * 4;" (assignment_expression "iVar10 = iVar11 * 4" (identifier "iVar10") (= "=") (binary_expression "iVar11 * 4" (identifier "iVar11") (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar5 + iVar3 * 4);" (assignment_expression "iVar4 = *(int *)(iVar5 + iVar3 * 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar5 + iVar3 * 4)" (* "*") (cast_expression "(int *)(iVar5 + iVar3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar3 * 4)" (( "(") (binary_expression "iVar5 + iVar3 * 4" (identifier "iVar5") (+ "+") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "iVar9 = *(int *)(iVar5 + iVar10);" (assignment_expression "iVar9 = *(int *)(iVar5 + iVar10)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(iVar5 + iVar10)" (* "*") (cast_expression "(int *)(iVar5 + iVar10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar10)" (( "(") (binary_expression "iVar5 + iVar10" (identifier "iVar5") (+ "+") (identifier "iVar10")) () ")"))))) (; ";")) (expression_statement "piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);" (assignment_expression "piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4)" (identifier "piVar2") (= "=") (cast_expression "(int *)(iVar5 + (iVar3 + iVar8) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + (iVar3 + iVar8) * 4)" (( "(") (binary_expression "iVar5 + (iVar3 + iVar8) * 4" (identifier "iVar5") (+ "+") (binary_expression "(iVar3 + iVar8) * 4" (parenthesized_expression "(iVar3 + iVar8)" (( "(") (binary_expression "iVar3 + iVar8" (identifier "iVar3") (+ "+") (identifier "iVar8")) () ")")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 < iVar9)" (( "(") (binary_expression "iVar4 < iVar9" (identifier "iVar4") (< "<") (identifier "iVar9")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*piVar2 = iVar4;" (assignment_expression "*piVar2 = iVar4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(-1 < iVar3)" (( "(") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3")) () ")")) (; ";")) (expression_statement "(*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);" (call_expression "(*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2)" (parenthesized_expression "(*(code *)PTR_memcpy_004b2390)" (( "(") (pointer_expression "*(code *)PTR_memcpy_004b2390" (* "*") (cast_expression "(code *)PTR_memcpy_004b2390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_004b2390"))) () ")")) (argument_list "(iVar5,iVar5 + iVar7 * 4,iVar8 << 2)" (( "(") (identifier "iVar5") (, ",") (binary_expression "iVar5 + iVar7 * 4" (identifier "iVar5") (+ "+") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4"))) (, ",") (binary_expression "iVar8 << 2" (identifier "iVar8") (<< "<<") (number_literal "2")) () ")"))) (; ";")) (} "}"))) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 function_1(type_2 *dest,type_2 *var_1)

{
  type_3 *puVar1;
  int var_4;
  int var_3;
  type_4 *var_5;
  type_4 *pIVar5;
  type_4 var_9;
  int var_2;
  int var_6;
  type_4 var_10;
  int var_8;
  int var_7;
  
  if ((var_1 == (type_2 *)0x0) || (var_2 = var_1->nelem, var_2 == 0)) {
    return _REG_NOERROR;
  }
  var_3 = dest->nelem;
  if (dest->alloc < var_2 * 2 + var_3) {
    var_4 = var_2 + dest->alloc;
    var_5 = (type_4 *)(*(type_5 *)PTR_realloc_004b22d8)(dest->elems,var_4 * 8);
    if (var_5 == (type_4 *)0x0) {
      return _REG_ESPACE;
    }
    var_2 = var_1->nelem;
    var_3 = dest->nelem;
    dest->elems = var_5;
    dest->alloc = var_4 * 2;
  }
  puVar1 = PTR_memcpy_004b2390;
  if (var_3 == 0) {
    var_5 = var_1->elems;
    dest->nelem = var_2;
    (*(type_5 *)puVar1)(dest->elems,var_5,var_1->nelem << 2);
  }
  else {
    var_6 = var_2 + -1;
    var_7 = var_2 * 2 + var_3;
    var_4 = var_3 + -1;
    var_2 = var_7;
    if (-1 < var_6) {
      var_5 = dest->elems;
      var_3 = var_4 * 4;
      pIVar5 = var_1->elems;
      if (var_4 < 0) {
LAB_00481594:
        var_2 = var_7 - (var_6 + 1);
        (*(type_5 *)PTR_memcpy_004b2390)(var_5 + var_2,pIVar5,(var_6 + 1) * 4);
      }
      else {
        do {
          while( true ) {
            var_2 = pIVar5[var_6];
            if (*(int *)((int)var_5 + var_3) != var_2) break;
            var_6 = var_6 + -1;
            var_2 = var_7;
            if (var_6 == -1) goto LAB_00481490;
            if (var_4 == 0) goto LAB_00481594;
LAB_00481580:
            var_4 = var_4 + -1;
            var_3 = var_4 * 4;
          }
          if (var_2 <= *(int *)((int)var_5 + var_3)) {
            if (var_4 != 0) goto LAB_00481580;
            goto LAB_00481594;
          }
          var_7 = var_7 + -1;
          var_6 = var_6 + -1;
          var_5[var_7] = var_2;
          var_2 = var_7;
        } while (var_6 != -1);
      }
LAB_00481490:
      var_3 = dest->nelem;
      var_4 = var_3 + -1;
      var_7 = var_1->nelem * 2 + var_3;
    }
    var_6 = var_7 - var_2;
    var_7 = var_7 + -1;
    if (var_6 != 0) {
      var_5 = dest->elems;
      var_8 = var_7 * 4;
      dest->nelem = var_6 + var_3;
      do {
        var_10 = *(int *)((int)var_5 + var_8);
        var_9 = var_5[var_4];
        pIVar5 = var_5 + var_4 + var_6;
        if (var_9 < var_10) {
          do {
            var_6 = var_6 + -1;
            *pIVar5 = var_10;
            var_7 = var_7 + -1;
            if (var_6 == 0) {
              return _REG_NOERROR;
            }
            var_8 = var_7 * 4;
            var_9 = var_5[var_4];
            var_10 = var_5[var_7];
            pIVar5 = var_5 + var_4 + var_6;
          } while (var_9 < var_10);
        }
        var_4 = var_4 + -1;
        *pIVar5 = var_9;
      } while (-1 < var_4);
      (*(type_5 *)PTR_memcpy_004b2390)(var_5,var_5 + var_2,var_6 << 2);
    }
  }
  return _REG_NOERROR;
}


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

undefined4 MASKED(int *param_1,int param_2)

{
  undefined *puVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  
  if ((param_2 == 0) || (iVar7 = *(int *)(param_2 + 4), iVar7 == 0)) {
    return 0;
  }
  iVar4 = param_1[1];
  if (*param_1 < iVar7 * 2 + iVar4) {
    iVar8 = iVar7 + *param_1;
    iVar3 = (*(code *)PTR_realloc_004b22d8)(param_1[2],iVar8 * 8);
    if (iVar3 == 0) {
      return 0xc;
    }
    iVar7 = *(int *)(param_2 + 4);
    iVar4 = param_1[1];
    param_1[2] = iVar3;
    *param_1 = iVar8 * 2;
  }
  puVar1 = PTR_memcpy_004b2390;
  if (iVar4 == 0) {
    uVar6 = *(undefined4 *)(param_2 + 8);
    param_1[1] = iVar7;
    (*(code *)puVar1)(param_1[2],uVar6,*(int *)(param_2 + 4) << 2);
  }
  else {
    iVar8 = iVar7 + -1;
    iVar11 = iVar7 * 2 + iVar4;
    iVar3 = iVar4 + -1;
    iVar7 = iVar11;
    if (-1 < iVar8) {
      iVar4 = param_1[2];
      iVar10 = iVar3 * 4;
      iVar5 = *(int *)(param_2 + 8);
      if (iVar3 < 0) {
LAB_00481594:
        iVar7 = iVar11 - (iVar8 + 1);
        (*(code *)PTR_memcpy_004b2390)(iVar4 + iVar7 * 4,iVar5,(iVar8 + 1) * 4);
      }
      else {
        do {
          while( true ) {
            iVar7 = *(int *)(iVar5 + iVar8 * 4);
            if (*(int *)(iVar4 + iVar10) != iVar7) break;
            iVar8 = iVar8 + -1;
            iVar7 = iVar11;
            if (iVar8 == -1) goto LAB_00481490;
            if (iVar3 == 0) goto LAB_00481594;
LAB_00481580:
            iVar3 = iVar3 + -1;
            iVar10 = iVar3 * 4;
          }
          if (iVar7 <= *(int *)(iVar4 + iVar10)) {
            if (iVar3 != 0) goto LAB_00481580;
            goto LAB_00481594;
          }
          iVar11 = iVar11 + -1;
          iVar8 = iVar8 + -1;
          *(int *)(iVar4 + iVar11 * 4) = iVar7;
          iVar7 = iVar11;
        } while (iVar8 != -1);
      }
LAB_00481490:
      iVar4 = param_1[1];
      iVar3 = iVar4 + -1;
      iVar11 = *(int *)(param_2 + 4) * 2 + iVar4;
    }
    iVar8 = iVar11 - iVar7;
    iVar11 = iVar11 + -1;
    if (iVar8 != 0) {
      iVar5 = param_1[2];
      iVar10 = iVar11 * 4;
      param_1[1] = iVar8 + iVar4;
      do {
        iVar9 = *(int *)(iVar5 + iVar10);
        iVar4 = *(int *)(iVar5 + iVar3 * 4);
        piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);
        if (iVar4 < iVar9) {
          do {
            iVar8 = iVar8 + -1;
            *piVar2 = iVar9;
            iVar11 = iVar11 + -1;
            if (iVar8 == 0) {
              return 0;
            }
            iVar10 = iVar11 * 4;
            iVar4 = *(int *)(iVar5 + iVar3 * 4);
            iVar9 = *(int *)(iVar5 + iVar10);
            piVar2 = (int *)(iVar5 + (iVar3 + iVar8) * 4);
          } while (iVar4 < iVar9);
        }
        iVar3 = iVar3 + -1;
        *piVar2 = iVar4;
      } while (-1 < iVar3);
      (*(code *)PTR_memcpy_004b2390)(iVar5,iVar5 + iVar7 * 4,iVar8 << 2);
    }
  }
  return 0;
}

