
reg_errcode_t re_node_set_add_intersect(re_node_set *dest,re_node_set *src1,re_node_set *src2)

{
  reg_errcode_t rVar1;
  int iVar2;
  int iVar3;
  Idx *pIVar4;
  int *piVar5;
  int iVar6;
  Idx *pIVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  
  rVar1 = src1->nelem;
  if (rVar1 != _REG_NOERROR) {
    if (src2->nelem == 0) {
      rVar1 = _REG_NOERROR;
    }
    else {
      iVar2 = rVar1 + src2->nelem;
      if (dest->alloc < iVar2 + dest->nelem) {
        iVar2 = iVar2 + dest->alloc;
        pIVar4 = (Idx *)(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4);
        if (pIVar4 == (Idx *)0x0) {
          return _REG_ESPACE;
        }
        dest->elems = pIVar4;
        dest->alloc = iVar2;
      }
      iVar10 = dest->nelem + src1->nelem + src2->nelem;
      iVar2 = src1->nelem + -1;
      iVar8 = src2->nelem + -1;
      iVar9 = dest->nelem + -1;
      do {
        while( true ) {
          iVar6 = src1->elems[iVar2];
          if (iVar6 != src2->elems[iVar8]) break;
          if (iVar9 < 0) {
LAB_00052be4:
            iVar10 = iVar10 + -1;
            dest->elems[iVar10] = iVar6;
          }
          else {
            piVar5 = dest->elems + iVar9;
            iVar3 = *piVar5;
            while (iVar6 < iVar3) {
              iVar9 = iVar9 + -1;
              piVar5 = piVar5 + -1;
              if (iVar9 == -1) goto LAB_00052be4;
              iVar3 = *piVar5;
            }
            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;
          }
          iVar2 = iVar2 + -1;
          iVar8 = iVar8 + -1;
          if (iVar2 < 0) goto LAB_00052c5c;
          if (iVar8 < 0) {
            iVar2 = dest->nelem;
            goto LAB_00052c60;
          }
        }
        if (iVar6 < src2->elems[iVar8]) {
          iVar8 = iVar8 + -1;
          iVar6 = iVar8;
        }
        else {
          iVar2 = iVar2 + -1;
          iVar6 = iVar2;
        }
      } while (-1 < iVar6);
LAB_00052c5c:
      iVar2 = dest->nelem;
LAB_00052c60:
      iVar9 = iVar2 + src1->nelem + src2->nelem;
      iVar8 = iVar9 + -1;
      iVar9 = iVar9 - iVar10;
      dest->nelem = iVar2 + iVar9;
      if (0 < iVar9) {
        while (iVar2 = iVar2 + -1, iVar6 = iVar9, -1 < iVar2) {
          while( true ) {
            pIVar4 = dest->elems;
            pIVar7 = pIVar4 + iVar8;
            if (*pIVar7 <= pIVar4[iVar2]) break;
            iVar8 = iVar8 + -1;
            iVar9 = iVar6 + -1;
            pIVar4[iVar2 + iVar6] = *pIVar7;
            iVar6 = iVar9;
            if (iVar9 == 0) goto LAB_00052c90;
          }
          pIVar4[iVar2 + iVar6] = pIVar4[iVar2];
          iVar9 = iVar6;
        }
      }
LAB_00052c90:
      (*(code *)PTR_memcpy_0007d134)(dest->elems,dest->elems + iVar10,iVar9 << 2);
      rVar1 = _REG_NOERROR;
    }
  }
  return rVar1;
}



int FUN_00052ad8(int *param_1,int param_2,int param_3)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  
  iVar1 = *(int *)(param_2 + 4);
  if (iVar1 != 0) {
    if (*(int *)(param_3 + 4) == 0) {
      iVar1 = 0;
    }
    else {
      iVar1 = iVar1 + *(int *)(param_3 + 4);
      if (*param_1 < iVar1 + param_1[1]) {
        iVar1 = iVar1 + *param_1;
        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);
        if (iVar6 == 0) {
          return 0xc;
        }
        param_1[2] = iVar6;
        *param_1 = iVar1;
      }
      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);
      iVar1 = *(int *)(param_2 + 4) + -1;
      iVar6 = *(int *)(param_3 + 4) + -1;
      iVar7 = param_1[1] + -1;
      do {
        while( true ) {
          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);
          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);
          if (iVar4 != iVar2) break;
          if (iVar7 < 0) {
LAB_00052be4:
            iVar8 = iVar8 + -1;
            *(int *)(param_1[2] + iVar8 * 4) = iVar4;
          }
          else {
            piVar3 = (int *)(param_1[2] + iVar7 * 4);
            iVar2 = *piVar3;
            while (iVar4 < iVar2) {
              iVar7 = iVar7 + -1;
              piVar3 = piVar3 + -1;
              if (iVar7 == -1) goto LAB_00052be4;
              iVar2 = *piVar3;
            }
            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;
          }
          iVar1 = iVar1 + -1;
          iVar6 = iVar6 + -1;
          if (iVar1 < 0) goto LAB_00052c5c;
          if (iVar6 < 0) {
            iVar1 = param_1[1];
            goto LAB_00052c60;
          }
        }
        if (iVar4 < iVar2) {
          iVar6 = iVar6 + -1;
          iVar2 = iVar6;
        }
        else {
          iVar1 = iVar1 + -1;
          iVar2 = iVar1;
        }
      } while (-1 < iVar2);
LAB_00052c5c:
      iVar1 = param_1[1];
LAB_00052c60:
      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);
      iVar6 = iVar7 + -1;
      iVar7 = iVar7 - iVar8;
      param_1[1] = iVar1 + iVar7;
      if (0 < iVar7) {
        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {
          while( true ) {
            iVar4 = param_1[2];
            iVar5 = *(int *)(iVar4 + iVar6 * 4);
            iVar7 = *(int *)(iVar4 + iVar1 * 4);
            if (iVar5 <= iVar7) break;
            iVar6 = iVar6 + -1;
            iVar7 = iVar2 + -1;
            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;
            iVar2 = iVar7;
            if (iVar7 == 0) goto LAB_00052c90;
          }
          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;
          iVar7 = iVar2;
        }
      }
LAB_00052c90:
      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);
      iVar1 = 0;
    }
  }
  return iVar1;
}


lui gp,0x3
addiu gp,gp,0x1a48
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
lw v0,0x4(a1)
beq v0,zero,0x00052cb4
_nop
lw v1,0x4(a2)
beq v1,zero,0x00052d3c
_or s1,a2,zero
or s0,a1,zero
addu v0,v0,v1
lw s3,0x0(a0)
lw v1,0x4(a0)
addu v1,v0,v1
slt v1,s3,v1
bne v1,zero,0x00052b60
_or s2,a0,zero
lw a3,0x4(s2)
lw a1,0x4(s0)
lw a2,0x4(s1)
addu t1,a3,a1
addu t1,t1,a2
addiu a1,a1,-0x1
addiu a2,a2,-0x1
addiu a3,a3,-0x1
b 0x00052c20
_li t0,-0x1
addu s3,v0,s3
sll a1,s3,0x2
lw a0,0x8(a0)
lw t9,-0x74b0(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x00052d44
_nop
sw v0,0x8(s2)
b 0x00052b38
_sw s3,0x0(s2)
bltz a3,0x00052be4
_sll v1,a3,0x2
lw t2,0x8(s2)
addu v1,t2,v1
lw v0,0x0(v1)
slt v0,a0,v0
beq v0,zero,0x00052bd4
_sll v0,a3,0x2
addiu a3,a3,-0x1
beq a3,t0,0x00052be4
_addiu v1,v1,-0x4
lw v0,0x0(v1)
slt v0,a0,v0
bne v0,zero,0x00052bb4
_addiu a3,a3,-0x1
addiu a3,a3,0x1
sll v0,a3,0x2
addu t2,t2,v0
lw v0,0x0(t2)
beq a0,v0,0x00052bf8
_nop
addiu t1,t1,-0x1
lw v0,0x8(s2)
sll v1,t1,0x2
addu v0,v0,v1
sw a0,0x0(v0)
addiu a1,a1,-0x1
bltz a1,0x00052c5c
_addiu a2,a2,-0x1
bgez a2,0x00052c20
_nop
b 0x00052c60
_lw v1,0x4(s2)
addiu a1,a1,-0x1
bltz a1,0x00052c5c
_nop
lw v0,0x8(s0)
sll v1,a1,0x2
addu v0,v0,v1
lw a0,0x0(v0)
lw v0,0x8(s1)
sll v1,a2,0x2
addu v0,v0,v1
lw v0,0x0(v0)
beq a0,v0,0x00052b90
_slt v0,a0,v0
beq v0,zero,0x00052c14
_nop
addiu a2,a2,-0x1
bgez a2,0x00052c20
_nop
lw v1,0x4(s2)
lw a2,0x4(s0)
addu a2,v1,a2
lw v0,0x4(s1)
addu a2,a2,v0
addiu a3,a2,-0x1
subu a2,a2,t1
addu v0,v1,a2
blez a2,0x00052c90
_sw v0,0x4(s2)
addiu v1,v1,-0x1
bgez v1,0x00052ce8
_nop
lw a0,0x8(s2)
sll a1,t1,0x2
sll a2,a2,0x2
addu a1,a0,a1
lw t9,-0x73ec(gp)
jalr t9
_nop
lw gp,0x10(sp)
or v0,zero,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
addu a1,v1,a2
sll a1,a1,0x2
addu v0,v0,a1
addiu v1,v1,-0x1
bltz v1,0x00052c90
_sw a0,0x0(v0)
lw v0,0x8(s2)
sll a0,a3,0x2
addu a0,v0,a0
lw a1,0x0(a0)
sll a0,v1,0x2
addu a0,v0,a0
lw a0,0x0(a0)
slt t0,a0,a1
beq t0,zero,0x00052cd0
_nop
addiu a3,a3,-0x1
addiu a0,a2,-0x1
addu a2,v1,a2
sll a2,a2,0x2
addu v0,v0,a2
beq a0,zero,0x00052d34
_sw a1,0x0(v0)
b 0x00052ce8
_or a2,a0,zero
b 0x00052c90
_or a2,a0,zero
b 0x00052cb4
_or v0,v1,zero
b 0x00052cb4
_li v0,0xc
(translation_unit "int FUN_00052ad8(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(param_2 + 4);\n  if (iVar1 != 0) {\n    if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00052ad8(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(param_2 + 4);\n  if (iVar1 != 0) {\n    if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00052ad8(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(param_2 + 4);\n  if (iVar1 != 0) {\n    if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }\n  }" { (if_statement "if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }" if (parenthesized_expression "(*(int *)(param_3 + 4) == 0)" ( (binary_expression "*(int *)(param_3 + 4) == 0" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar1 = 0;\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }" else (compound_statement "{\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }" { (expression_statement "iVar1 = iVar1 + *(int *)(param_3 + 4);" (assignment_expression "iVar1 = iVar1 + *(int *)(param_3 + 4)" identifier = (binary_expression "iVar1 + *(int *)(param_3 + 4)" identifier + (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))))) ;) (if_statement "if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }" if (parenthesized_expression "(*param_1 < iVar1 + param_1[1])" ( (binary_expression "*param_1 < iVar1 + param_1[1]" (pointer_expression "*param_1" * identifier) < (binary_expression "iVar1 + param_1[1]" identifier + (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }" { (expression_statement "iVar1 = iVar1 + *param_1;" (assignment_expression "iVar1 = iVar1 + *param_1" identifier = (binary_expression "iVar1 + *param_1" identifier + (pointer_expression "*param_1" * identifier))) ;) (expression_statement "iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);" (assignment_expression "iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4)" identifier = (call_expression "(*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0007d070)" ( (pointer_expression "*(code *)PTR_realloc_0007d070" * (cast_expression "(code *)PTR_realloc_0007d070" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[2],iVar1 * 4)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , (binary_expression "iVar1 * 4" identifier * number_literal) )))) ;) (if_statement "if (iVar6 == 0) {\n          return 0xc;\n        }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0xc;\n        }" { (return_statement "return 0xc;" return number_literal ;) })) (expression_statement "param_1[2] = iVar6;" (assignment_expression "param_1[2] = iVar6" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) })) (expression_statement "iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);" (assignment_expression "iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4)" identifier = (binary_expression "param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4)" (binary_expression "param_1[1] + *(int *)(param_2 + 4)" (subscript_expression "param_1[1]" identifier [ number_literal ]) + (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) + (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))))) ;) (expression_statement "iVar1 = *(int *)(param_2 + 4) + -1;" (assignment_expression "iVar1 = *(int *)(param_2 + 4) + -1" identifier = (binary_expression "*(int *)(param_2 + 4) + -1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar6 = *(int *)(param_3 + 4) + -1;" (assignment_expression "iVar6 = *(int *)(param_3 + 4) + -1" identifier = (binary_expression "*(int *)(param_3 + 4) + -1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar7 = param_1[1] + -1;" (assignment_expression "iVar7 = param_1[1] + -1" identifier = (binary_expression "param_1[1] + -1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (do_statement "do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);" do (compound_statement "{\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      }" { (while_statement "while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }" { (expression_statement "iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 8) + iVar1 * 4)" * (cast_expression "(int *)(*(int *)(param_2 + 8) + iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 8) + iVar1 * 4)" ( (binary_expression "*(int *)(param_2 + 8) + iVar1 * 4" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);" (assignment_expression "iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_3 + 8) + iVar6 * 4)" * (cast_expression "(int *)(*(int *)(param_3 + 8) + iVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_3 + 8) + iVar6 * 4)" ( (binary_expression "*(int *)(param_3 + 8) + iVar6 * 4" (pointer_expression "*(int *)(param_3 + 8)" * (cast_expression "(int *)(param_3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) + (binary_expression "iVar6 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (iVar4 != iVar2) break;" if (parenthesized_expression "(iVar4 != iVar2)" ( (binary_expression "iVar4 != iVar2" identifier != identifier) )) (break_statement "break;" break ;)) (if_statement "if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }" { (labeled_statement "LAB_00052be4:\n            iVar8 = iVar8 + -1;" statement_identifier : (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;)) (expression_statement "*(int *)(param_1[2] + iVar8 * 4) = iVar4;" (assignment_expression "*(int *)(param_1[2] + iVar8 * 4) = iVar4" (pointer_expression "*(int *)(param_1[2] + iVar8 * 4)" * (cast_expression "(int *)(param_1[2] + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + iVar8 * 4)" ( (binary_expression "param_1[2] + iVar8 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) = identifier) ;) }) (else_clause "else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }" else (compound_statement "{\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }" { (expression_statement "piVar3 = (int *)(param_1[2] + iVar7 * 4);" (assignment_expression "piVar3 = (int *)(param_1[2] + iVar7 * 4)" identifier = (cast_expression "(int *)(param_1[2] + iVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + iVar7 * 4)" ( (binary_expression "param_1[2] + iVar7 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "iVar7 * 4" identifier * number_literal)) )))) ;) (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (while_statement "while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }" while (parenthesized_expression "(iVar4 < iVar2)" ( (binary_expression "iVar4 < iVar2" identifier < identifier) )) (compound_statement "{\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }" { (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "piVar3 = piVar3 + -1;" (assignment_expression "piVar3 = piVar3 + -1" identifier = (binary_expression "piVar3 + -1" identifier + number_literal)) ;) (if_statement "if (iVar7 == -1) goto LAB_00052be4;" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00052be4;" goto statement_identifier ;)) (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (if_statement "if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;" if (parenthesized_expression "(iVar4 != *(int *)(param_1[2] + iVar7 * 4))" ( (binary_expression "iVar4 != *(int *)(param_1[2] + iVar7 * 4)" identifier != (pointer_expression "*(int *)(param_1[2] + iVar7 * 4)" * (cast_expression "(int *)(param_1[2] + iVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + iVar7 * 4)" ( (binary_expression "param_1[2] + iVar7 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "iVar7 * 4" identifier * number_literal)) ))))) )) (goto_statement "goto LAB_00052be4;" goto statement_identifier ;)) }))) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (if_statement "if (iVar1 < 0) goto LAB_00052c5c;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00052c5c;" goto statement_identifier ;)) (if_statement "if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (compound_statement "{\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }" { (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_00052c60;" goto statement_identifier ;) })) })) (if_statement "if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }" if (parenthesized_expression "(iVar4 < iVar2)" ( (binary_expression "iVar4 < iVar2" identifier < identifier) )) (compound_statement "{\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }" { (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar6;" (assignment_expression "iVar2 = iVar6" identifier = identifier) ;) }) (else_clause "else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }" else (compound_statement "{\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }" { (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) }))) }) while (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) ;) (labeled_statement "LAB_00052c5c:\n      iVar1 = param_1[1];" statement_identifier : (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;)) (labeled_statement "LAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);" statement_identifier : (expression_statement "iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);" (assignment_expression "iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4)" identifier = (binary_expression "iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4)" (binary_expression "iVar1 + *(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) ))))) + (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))))) ;)) (expression_statement "iVar6 = iVar7 + -1;" (assignment_expression "iVar6 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar7 - iVar8;" (assignment_expression "iVar7 = iVar7 - iVar8" identifier = (binary_expression "iVar7 - iVar8" identifier - identifier)) ;) (expression_statement "param_1[1] = iVar1 + iVar7;" (assignment_expression "param_1[1] = iVar1 + iVar7" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + iVar7" identifier + identifier)) ;) (if_statement "if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }" { (while_statement "while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }" while (parenthesized_expression "(iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1)" ( (comma_expression "iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) , (comma_expression "iVar2 = iVar7, -1 < iVar1" (assignment_expression "iVar2 = iVar7" identifier = identifier) , (binary_expression "-1 < iVar1" number_literal < identifier))) )) (compound_statement "{\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }" { (while_statement "while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }" { (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *(int *)(iVar4 + iVar6 * 4);" (assignment_expression "iVar5 = *(int *)(iVar4 + iVar6 * 4)" identifier = (pointer_expression "*(int *)(iVar4 + iVar6 * 4)" * (cast_expression "(int *)(iVar4 + iVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6 * 4)" ( (binary_expression "iVar4 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar7 = *(int *)(iVar4 + iVar1 * 4);" (assignment_expression "iVar7 = *(int *)(iVar4 + iVar1 * 4)" identifier = (pointer_expression "*(int *)(iVar4 + iVar1 * 4)" * (cast_expression "(int *)(iVar4 + iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar1 * 4)" ( (binary_expression "iVar4 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (iVar5 <= iVar7) break;" if (parenthesized_expression "(iVar5 <= iVar7)" ( (binary_expression "iVar5 <= iVar7" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar2 + -1;" (assignment_expression "iVar7 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;" (assignment_expression "*(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5" (pointer_expression "*(int *)(iVar4 + (iVar1 + iVar2) * 4)" * (cast_expression "(int *)(iVar4 + (iVar1 + iVar2) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (iVar1 + iVar2) * 4)" ( (binary_expression "iVar4 + (iVar1 + iVar2) * 4" identifier + (binary_expression "(iVar1 + iVar2) * 4" (parenthesized_expression "(iVar1 + iVar2)" ( (binary_expression "iVar1 + iVar2" identifier + identifier) )) * number_literal)) )))) = identifier) ;) (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" identifier = identifier) ;) (if_statement "if (iVar7 == 0) goto LAB_00052c90;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00052c90;" goto statement_identifier ;)) })) (expression_statement "*(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;" (assignment_expression "*(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7" (pointer_expression "*(int *)(iVar4 + (iVar1 + iVar2) * 4)" * (cast_expression "(int *)(iVar4 + (iVar1 + iVar2) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (iVar1 + iVar2) * 4)" ( (binary_expression "iVar4 + (iVar1 + iVar2) * 4" identifier + (binary_expression "(iVar1 + iVar2) * 4" (parenthesized_expression "(iVar1 + iVar2)" ( (binary_expression "iVar1 + iVar2" identifier + identifier) )) * number_literal)) )))) = identifier) ;) (expression_statement "iVar7 = iVar2;" (assignment_expression "iVar7 = iVar2" identifier = identifier) ;) })) })) (labeled_statement "LAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);" statement_identifier : (expression_statement "(*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);" (call_expression "(*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2)" (parenthesized_expression "(*(code *)PTR_memcpy_0007d134)" ( (pointer_expression "*(code *)PTR_memcpy_0007d134" * (cast_expression "(code *)PTR_memcpy_0007d134" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , (binary_expression "param_1[2] + iVar8 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "iVar8 * 4" identifier * number_literal)) , (binary_expression "iVar7 << 2" identifier << number_literal) ))) ;)) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }))) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "reg_errcode_t re_node_set_add_intersect(re_node_set *dest,re_node_set *src1,re_node_set *src2)\n\n{\n  reg_errcode_t rVar1;\n  int iVar2;\n  int iVar3;\n  Idx *pIVar4;\n  int *piVar5;\n  int iVar6;\n  Idx *pIVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  \n  rVar1 = src1->nelem;\n  if (rVar1 != _REG_NOERROR) {\n    if (src2->nelem == 0) {\n      rVar1 = _REG_NOERROR;\n    }\n    else {\n      iVar2 = rVar1 + src2->nelem;\n      if (dest->alloc < iVar2 + dest->nelem) {\n        iVar2 = iVar2 + dest->alloc;\n        pIVar4 = (Idx *)(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4);\n        if (pIVar4 == (Idx *)0x0) {\n          return _REG_ESPACE;\n        }\n        dest->elems = pIVar4;\n        dest->alloc = iVar2;\n      }\n      iVar10 = dest->nelem + src1->nelem + src2->nelem;\n      iVar2 = src1->nelem + -1;\n      iVar8 = src2->nelem + -1;\n      iVar9 = dest->nelem + -1;\n      do {\n        while( true ) {\n          iVar6 = src1->elems[iVar2];\n          if (iVar6 != src2->elems[iVar8]) break;\n          if (iVar9 < 0) {\nLAB_00052be4:\n            iVar10 = iVar10 + -1;\n            dest->elems[iVar10] = iVar6;\n          }\n          else {\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }\n          iVar2 = iVar2 + -1;\n          iVar8 = iVar8 + -1;\n          if (iVar2 < 0) goto LAB_00052c5c;\n          if (iVar8 < 0) {\n            iVar2 = dest->nelem;\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar6 < src2->elems[iVar8]) {\n          iVar8 = iVar8 + -1;\n          iVar6 = iVar8;\n        }\n        else {\n          iVar2 = iVar2 + -1;\n          iVar6 = iVar2;\n        }\n      } while (-1 < iVar6);\nLAB_00052c5c:\n      iVar2 = dest->nelem;\nLAB_00052c60:\n      iVar9 = iVar2 + src1->nelem + src2->nelem;\n      iVar8 = iVar9 + -1;\n      iVar9 = iVar9 - iVar10;\n      dest->nelem = iVar2 + iVar9;\n      if (0 < iVar9) {\n        while (iVar2 = iVar2 + -1, iVar6 = iVar9, -1 < iVar2) {\n          while( true ) {\n            pIVar4 = dest->elems;\n            pIVar7 = pIVar4 + iVar8;\n            if (*pIVar7 <= pIVar4[iVar2]) break;\n            iVar8 = iVar8 + -1;\n            iVar9 = iVar6 + -1;\n            pIVar4[iVar2 + iVar6] = *pIVar7;\n            iVar6 = iVar9;\n            if (iVar9 == 0) goto LAB_00052c90;\n          }\n          pIVar4[iVar2 + iVar6] = pIVar4[iVar2];\n          iVar9 = iVar6;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(dest->elems,dest->elems + iVar10,iVar9 << 2);\n      rVar1 = _REG_NOERROR;\n    }\n  }\n  return rVar1;\n}\n\n" (function_definition "reg_errcode_t re_node_set_add_intersect(re_node_set *dest,re_node_set *src1,re_node_set *src2)\n\n{\n  reg_errcode_t rVar1;\n  int iVar2;\n  int iVar3;\n  Idx *pIVar4;\n  int *piVar5;\n  int iVar6;\n  Idx *pIVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  \n  rVar1 = src1->nelem;\n  if (rVar1 != _REG_NOERROR) {\n    if (src2->nelem == 0) {\n      rVar1 = _REG_NOERROR;\n    }\n    else {\n      iVar2 = rVar1 + src2->nelem;\n      if (dest->alloc < iVar2 + dest->nelem) {\n        iVar2 = iVar2 + dest->alloc;\n        pIVar4 = (Idx *)(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4);\n        if (pIVar4 == (Idx *)0x0) {\n          return _REG_ESPACE;\n        }\n        dest->elems = pIVar4;\n        dest->alloc = iVar2;\n      }\n      iVar10 = dest->nelem + src1->nelem + src2->nelem;\n      iVar2 = src1->nelem + -1;\n      iVar8 = src2->nelem + -1;\n      iVar9 = dest->nelem + -1;\n      do {\n        while( true ) {\n          iVar6 = src1->elems[iVar2];\n          if (iVar6 != src2->elems[iVar8]) break;\n          if (iVar9 < 0) {\nLAB_00052be4:\n            iVar10 = iVar10 + -1;\n            dest->elems[iVar10] = iVar6;\n          }\n          else {\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }\n          iVar2 = iVar2 + -1;\n          iVar8 = iVar8 + -1;\n          if (iVar2 < 0) goto LAB_00052c5c;\n          if (iVar8 < 0) {\n            iVar2 = dest->nelem;\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar6 < src2->elems[iVar8]) {\n          iVar8 = iVar8 + -1;\n          iVar6 = iVar8;\n        }\n        else {\n          iVar2 = iVar2 + -1;\n          iVar6 = iVar2;\n        }\n      } while (-1 < iVar6);\nLAB_00052c5c:\n      iVar2 = dest->nelem;\nLAB_00052c60:\n      iVar9 = iVar2 + src1->nelem + src2->nelem;\n      iVar8 = iVar9 + -1;\n      iVar9 = iVar9 - iVar10;\n      dest->nelem = iVar2 + iVar9;\n      if (0 < iVar9) {\n        while (iVar2 = iVar2 + -1, iVar6 = iVar9, -1 < iVar2) {\n          while( true ) {\n            pIVar4 = dest->elems;\n            pIVar7 = pIVar4 + iVar8;\n            if (*pIVar7 <= pIVar4[iVar2]) break;\n            iVar8 = iVar8 + -1;\n            iVar9 = iVar6 + -1;\n            pIVar4[iVar2 + iVar6] = *pIVar7;\n            iVar6 = iVar9;\n            if (iVar9 == 0) goto LAB_00052c90;\n          }\n          pIVar4[iVar2 + iVar6] = pIVar4[iVar2];\n          iVar9 = iVar6;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(dest->elems,dest->elems + iVar10,iVar9 << 2);\n      rVar1 = _REG_NOERROR;\n    }\n  }\n  return rVar1;\n}" type_identifier (function_declarator "re_node_set_add_intersect(re_node_set *dest,re_node_set *src1,re_node_set *src2)" identifier (parameter_list "(re_node_set *dest,re_node_set *src1,re_node_set *src2)" ( (parameter_declaration "re_node_set *dest" type_identifier (pointer_declarator "*dest" * identifier)) , (parameter_declaration "re_node_set *src1" type_identifier (pointer_declarator "*src1" * identifier)) , (parameter_declaration "re_node_set *src2" type_identifier (pointer_declarator "*src2" * identifier)) ))) (compound_statement "{\n  reg_errcode_t rVar1;\n  int iVar2;\n  int iVar3;\n  Idx *pIVar4;\n  int *piVar5;\n  int iVar6;\n  Idx *pIVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  \n  rVar1 = src1->nelem;\n  if (rVar1 != _REG_NOERROR) {\n    if (src2->nelem == 0) {\n      rVar1 = _REG_NOERROR;\n    }\n    else {\n      iVar2 = rVar1 + src2->nelem;\n      if (dest->alloc < iVar2 + dest->nelem) {\n        iVar2 = iVar2 + dest->alloc;\n        pIVar4 = (Idx *)(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4);\n        if (pIVar4 == (Idx *)0x0) {\n          return _REG_ESPACE;\n        }\n        dest->elems = pIVar4;\n        dest->alloc = iVar2;\n      }\n      iVar10 = dest->nelem + src1->nelem + src2->nelem;\n      iVar2 = src1->nelem + -1;\n      iVar8 = src2->nelem + -1;\n      iVar9 = dest->nelem + -1;\n      do {\n        while( true ) {\n          iVar6 = src1->elems[iVar2];\n          if (iVar6 != src2->elems[iVar8]) break;\n          if (iVar9 < 0) {\nLAB_00052be4:\n            iVar10 = iVar10 + -1;\n            dest->elems[iVar10] = iVar6;\n          }\n          else {\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }\n          iVar2 = iVar2 + -1;\n          iVar8 = iVar8 + -1;\n          if (iVar2 < 0) goto LAB_00052c5c;\n          if (iVar8 < 0) {\n            iVar2 = dest->nelem;\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar6 < src2->elems[iVar8]) {\n          iVar8 = iVar8 + -1;\n          iVar6 = iVar8;\n        }\n        else {\n          iVar2 = iVar2 + -1;\n          iVar6 = iVar2;\n        }\n      } while (-1 < iVar6);\nLAB_00052c5c:\n      iVar2 = dest->nelem;\nLAB_00052c60:\n      iVar9 = iVar2 + src1->nelem + src2->nelem;\n      iVar8 = iVar9 + -1;\n      iVar9 = iVar9 - iVar10;\n      dest->nelem = iVar2 + iVar9;\n      if (0 < iVar9) {\n        while (iVar2 = iVar2 + -1, iVar6 = iVar9, -1 < iVar2) {\n          while( true ) {\n            pIVar4 = dest->elems;\n            pIVar7 = pIVar4 + iVar8;\n            if (*pIVar7 <= pIVar4[iVar2]) break;\n            iVar8 = iVar8 + -1;\n            iVar9 = iVar6 + -1;\n            pIVar4[iVar2 + iVar6] = *pIVar7;\n            iVar6 = iVar9;\n            if (iVar9 == 0) goto LAB_00052c90;\n          }\n          pIVar4[iVar2 + iVar6] = pIVar4[iVar2];\n          iVar9 = iVar6;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(dest->elems,dest->elems + iVar10,iVar9 << 2);\n      rVar1 = _REG_NOERROR;\n    }\n  }\n  return rVar1;\n}" { (declaration "reg_errcode_t rVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "Idx *pIVar4;" type_identifier (pointer_declarator "*pIVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "Idx *pIVar7;" type_identifier (pointer_declarator "*pIVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (expression_statement "rVar1 = src1->nelem;" (assignment_expression "rVar1 = src1->nelem" identifier = (field_expression "src1->nelem" identifier -> field_identifier)) ;) (if_statement "if (rVar1 != _REG_NOERROR) {\n    if (src2->nelem == 0) {\n      rVar1 = _REG_NOERROR;\n    }\n    else {\n      iVar2 = rVar1 + src2->nelem;\n      if (dest->alloc < iVar2 + dest->nelem) {\n        iVar2 = iVar2 + dest->alloc;\n        pIVar4 = (Idx *)(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4);\n        if (pIVar4 == (Idx *)0x0) {\n          return _REG_ESPACE;\n        }\n        dest->elems = pIVar4;\n        dest->alloc = iVar2;\n      }\n      iVar10 = dest->nelem + src1->nelem + src2->nelem;\n      iVar2 = src1->nelem + -1;\n      iVar8 = src2->nelem + -1;\n      iVar9 = dest->nelem + -1;\n      do {\n        while( true ) {\n          iVar6 = src1->elems[iVar2];\n          if (iVar6 != src2->elems[iVar8]) break;\n          if (iVar9 < 0) {\nLAB_00052be4:\n            iVar10 = iVar10 + -1;\n            dest->elems[iVar10] = iVar6;\n          }\n          else {\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }\n          iVar2 = iVar2 + -1;\n          iVar8 = iVar8 + -1;\n          if (iVar2 < 0) goto LAB_00052c5c;\n          if (iVar8 < 0) {\n            iVar2 = dest->nelem;\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar6 < src2->elems[iVar8]) {\n          iVar8 = iVar8 + -1;\n          iVar6 = iVar8;\n        }\n        else {\n          iVar2 = iVar2 + -1;\n          iVar6 = iVar2;\n        }\n      } while (-1 < iVar6);\nLAB_00052c5c:\n      iVar2 = dest->nelem;\nLAB_00052c60:\n      iVar9 = iVar2 + src1->nelem + src2->nelem;\n      iVar8 = iVar9 + -1;\n      iVar9 = iVar9 - iVar10;\n      dest->nelem = iVar2 + iVar9;\n      if (0 < iVar9) {\n        while (iVar2 = iVar2 + -1, iVar6 = iVar9, -1 < iVar2) {\n          while( true ) {\n            pIVar4 = dest->elems;\n            pIVar7 = pIVar4 + iVar8;\n            if (*pIVar7 <= pIVar4[iVar2]) break;\n            iVar8 = iVar8 + -1;\n            iVar9 = iVar6 + -1;\n            pIVar4[iVar2 + iVar6] = *pIVar7;\n            iVar6 = iVar9;\n            if (iVar9 == 0) goto LAB_00052c90;\n          }\n          pIVar4[iVar2 + iVar6] = pIVar4[iVar2];\n          iVar9 = iVar6;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(dest->elems,dest->elems + iVar10,iVar9 << 2);\n      rVar1 = _REG_NOERROR;\n    }\n  }" if (parenthesized_expression "(rVar1 != _REG_NOERROR)" ( (binary_expression "rVar1 != _REG_NOERROR" identifier != identifier) )) (compound_statement "{\n    if (src2->nelem == 0) {\n      rVar1 = _REG_NOERROR;\n    }\n    else {\n      iVar2 = rVar1 + src2->nelem;\n      if (dest->alloc < iVar2 + dest->nelem) {\n        iVar2 = iVar2 + dest->alloc;\n        pIVar4 = (Idx *)(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4);\n        if (pIVar4 == (Idx *)0x0) {\n          return _REG_ESPACE;\n        }\n        dest->elems = pIVar4;\n        dest->alloc = iVar2;\n      }\n      iVar10 = dest->nelem + src1->nelem + src2->nelem;\n      iVar2 = src1->nelem + -1;\n      iVar8 = src2->nelem + -1;\n      iVar9 = dest->nelem + -1;\n      do {\n        while( true ) {\n          iVar6 = src1->elems[iVar2];\n          if (iVar6 != src2->elems[iVar8]) break;\n          if (iVar9 < 0) {\nLAB_00052be4:\n            iVar10 = iVar10 + -1;\n            dest->elems[iVar10] = iVar6;\n          }\n          else {\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }\n          iVar2 = iVar2 + -1;\n          iVar8 = iVar8 + -1;\n          if (iVar2 < 0) goto LAB_00052c5c;\n          if (iVar8 < 0) {\n            iVar2 = dest->nelem;\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar6 < src2->elems[iVar8]) {\n          iVar8 = iVar8 + -1;\n          iVar6 = iVar8;\n        }\n        else {\n          iVar2 = iVar2 + -1;\n          iVar6 = iVar2;\n        }\n      } while (-1 < iVar6);\nLAB_00052c5c:\n      iVar2 = dest->nelem;\nLAB_00052c60:\n      iVar9 = iVar2 + src1->nelem + src2->nelem;\n      iVar8 = iVar9 + -1;\n      iVar9 = iVar9 - iVar10;\n      dest->nelem = iVar2 + iVar9;\n      if (0 < iVar9) {\n        while (iVar2 = iVar2 + -1, iVar6 = iVar9, -1 < iVar2) {\n          while( true ) {\n            pIVar4 = dest->elems;\n            pIVar7 = pIVar4 + iVar8;\n            if (*pIVar7 <= pIVar4[iVar2]) break;\n            iVar8 = iVar8 + -1;\n            iVar9 = iVar6 + -1;\n            pIVar4[iVar2 + iVar6] = *pIVar7;\n            iVar6 = iVar9;\n            if (iVar9 == 0) goto LAB_00052c90;\n          }\n          pIVar4[iVar2 + iVar6] = pIVar4[iVar2];\n          iVar9 = iVar6;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(dest->elems,dest->elems + iVar10,iVar9 << 2);\n      rVar1 = _REG_NOERROR;\n    }\n  }" { (if_statement "if (src2->nelem == 0) {\n      rVar1 = _REG_NOERROR;\n    }\n    else {\n      iVar2 = rVar1 + src2->nelem;\n      if (dest->alloc < iVar2 + dest->nelem) {\n        iVar2 = iVar2 + dest->alloc;\n        pIVar4 = (Idx *)(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4);\n        if (pIVar4 == (Idx *)0x0) {\n          return _REG_ESPACE;\n        }\n        dest->elems = pIVar4;\n        dest->alloc = iVar2;\n      }\n      iVar10 = dest->nelem + src1->nelem + src2->nelem;\n      iVar2 = src1->nelem + -1;\n      iVar8 = src2->nelem + -1;\n      iVar9 = dest->nelem + -1;\n      do {\n        while( true ) {\n          iVar6 = src1->elems[iVar2];\n          if (iVar6 != src2->elems[iVar8]) break;\n          if (iVar9 < 0) {\nLAB_00052be4:\n            iVar10 = iVar10 + -1;\n            dest->elems[iVar10] = iVar6;\n          }\n          else {\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }\n          iVar2 = iVar2 + -1;\n          iVar8 = iVar8 + -1;\n          if (iVar2 < 0) goto LAB_00052c5c;\n          if (iVar8 < 0) {\n            iVar2 = dest->nelem;\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar6 < src2->elems[iVar8]) {\n          iVar8 = iVar8 + -1;\n          iVar6 = iVar8;\n        }\n        else {\n          iVar2 = iVar2 + -1;\n          iVar6 = iVar2;\n        }\n      } while (-1 < iVar6);\nLAB_00052c5c:\n      iVar2 = dest->nelem;\nLAB_00052c60:\n      iVar9 = iVar2 + src1->nelem + src2->nelem;\n      iVar8 = iVar9 + -1;\n      iVar9 = iVar9 - iVar10;\n      dest->nelem = iVar2 + iVar9;\n      if (0 < iVar9) {\n        while (iVar2 = iVar2 + -1, iVar6 = iVar9, -1 < iVar2) {\n          while( true ) {\n            pIVar4 = dest->elems;\n            pIVar7 = pIVar4 + iVar8;\n            if (*pIVar7 <= pIVar4[iVar2]) break;\n            iVar8 = iVar8 + -1;\n            iVar9 = iVar6 + -1;\n            pIVar4[iVar2 + iVar6] = *pIVar7;\n            iVar6 = iVar9;\n            if (iVar9 == 0) goto LAB_00052c90;\n          }\n          pIVar4[iVar2 + iVar6] = pIVar4[iVar2];\n          iVar9 = iVar6;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(dest->elems,dest->elems + iVar10,iVar9 << 2);\n      rVar1 = _REG_NOERROR;\n    }" if (parenthesized_expression "(src2->nelem == 0)" ( (binary_expression "src2->nelem == 0" (field_expression "src2->nelem" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      rVar1 = _REG_NOERROR;\n    }" { (expression_statement "rVar1 = _REG_NOERROR;" (assignment_expression "rVar1 = _REG_NOERROR" identifier = identifier) ;) }) (else_clause "else {\n      iVar2 = rVar1 + src2->nelem;\n      if (dest->alloc < iVar2 + dest->nelem) {\n        iVar2 = iVar2 + dest->alloc;\n        pIVar4 = (Idx *)(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4);\n        if (pIVar4 == (Idx *)0x0) {\n          return _REG_ESPACE;\n        }\n        dest->elems = pIVar4;\n        dest->alloc = iVar2;\n      }\n      iVar10 = dest->nelem + src1->nelem + src2->nelem;\n      iVar2 = src1->nelem + -1;\n      iVar8 = src2->nelem + -1;\n      iVar9 = dest->nelem + -1;\n      do {\n        while( true ) {\n          iVar6 = src1->elems[iVar2];\n          if (iVar6 != src2->elems[iVar8]) break;\n          if (iVar9 < 0) {\nLAB_00052be4:\n            iVar10 = iVar10 + -1;\n            dest->elems[iVar10] = iVar6;\n          }\n          else {\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }\n          iVar2 = iVar2 + -1;\n          iVar8 = iVar8 + -1;\n          if (iVar2 < 0) goto LAB_00052c5c;\n          if (iVar8 < 0) {\n            iVar2 = dest->nelem;\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar6 < src2->elems[iVar8]) {\n          iVar8 = iVar8 + -1;\n          iVar6 = iVar8;\n        }\n        else {\n          iVar2 = iVar2 + -1;\n          iVar6 = iVar2;\n        }\n      } while (-1 < iVar6);\nLAB_00052c5c:\n      iVar2 = dest->nelem;\nLAB_00052c60:\n      iVar9 = iVar2 + src1->nelem + src2->nelem;\n      iVar8 = iVar9 + -1;\n      iVar9 = iVar9 - iVar10;\n      dest->nelem = iVar2 + iVar9;\n      if (0 < iVar9) {\n        while (iVar2 = iVar2 + -1, iVar6 = iVar9, -1 < iVar2) {\n          while( true ) {\n            pIVar4 = dest->elems;\n            pIVar7 = pIVar4 + iVar8;\n            if (*pIVar7 <= pIVar4[iVar2]) break;\n            iVar8 = iVar8 + -1;\n            iVar9 = iVar6 + -1;\n            pIVar4[iVar2 + iVar6] = *pIVar7;\n            iVar6 = iVar9;\n            if (iVar9 == 0) goto LAB_00052c90;\n          }\n          pIVar4[iVar2 + iVar6] = pIVar4[iVar2];\n          iVar9 = iVar6;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(dest->elems,dest->elems + iVar10,iVar9 << 2);\n      rVar1 = _REG_NOERROR;\n    }" else (compound_statement "{\n      iVar2 = rVar1 + src2->nelem;\n      if (dest->alloc < iVar2 + dest->nelem) {\n        iVar2 = iVar2 + dest->alloc;\n        pIVar4 = (Idx *)(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4);\n        if (pIVar4 == (Idx *)0x0) {\n          return _REG_ESPACE;\n        }\n        dest->elems = pIVar4;\n        dest->alloc = iVar2;\n      }\n      iVar10 = dest->nelem + src1->nelem + src2->nelem;\n      iVar2 = src1->nelem + -1;\n      iVar8 = src2->nelem + -1;\n      iVar9 = dest->nelem + -1;\n      do {\n        while( true ) {\n          iVar6 = src1->elems[iVar2];\n          if (iVar6 != src2->elems[iVar8]) break;\n          if (iVar9 < 0) {\nLAB_00052be4:\n            iVar10 = iVar10 + -1;\n            dest->elems[iVar10] = iVar6;\n          }\n          else {\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }\n          iVar2 = iVar2 + -1;\n          iVar8 = iVar8 + -1;\n          if (iVar2 < 0) goto LAB_00052c5c;\n          if (iVar8 < 0) {\n            iVar2 = dest->nelem;\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar6 < src2->elems[iVar8]) {\n          iVar8 = iVar8 + -1;\n          iVar6 = iVar8;\n        }\n        else {\n          iVar2 = iVar2 + -1;\n          iVar6 = iVar2;\n        }\n      } while (-1 < iVar6);\nLAB_00052c5c:\n      iVar2 = dest->nelem;\nLAB_00052c60:\n      iVar9 = iVar2 + src1->nelem + src2->nelem;\n      iVar8 = iVar9 + -1;\n      iVar9 = iVar9 - iVar10;\n      dest->nelem = iVar2 + iVar9;\n      if (0 < iVar9) {\n        while (iVar2 = iVar2 + -1, iVar6 = iVar9, -1 < iVar2) {\n          while( true ) {\n            pIVar4 = dest->elems;\n            pIVar7 = pIVar4 + iVar8;\n            if (*pIVar7 <= pIVar4[iVar2]) break;\n            iVar8 = iVar8 + -1;\n            iVar9 = iVar6 + -1;\n            pIVar4[iVar2 + iVar6] = *pIVar7;\n            iVar6 = iVar9;\n            if (iVar9 == 0) goto LAB_00052c90;\n          }\n          pIVar4[iVar2 + iVar6] = pIVar4[iVar2];\n          iVar9 = iVar6;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(dest->elems,dest->elems + iVar10,iVar9 << 2);\n      rVar1 = _REG_NOERROR;\n    }" { (expression_statement "iVar2 = rVar1 + src2->nelem;" (assignment_expression "iVar2 = rVar1 + src2->nelem" identifier = (binary_expression "rVar1 + src2->nelem" identifier + (field_expression "src2->nelem" identifier -> field_identifier))) ;) (if_statement "if (dest->alloc < iVar2 + dest->nelem) {\n        iVar2 = iVar2 + dest->alloc;\n        pIVar4 = (Idx *)(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4);\n        if (pIVar4 == (Idx *)0x0) {\n          return _REG_ESPACE;\n        }\n        dest->elems = pIVar4;\n        dest->alloc = iVar2;\n      }" if (parenthesized_expression "(dest->alloc < iVar2 + dest->nelem)" ( (binary_expression "dest->alloc < iVar2 + dest->nelem" (field_expression "dest->alloc" identifier -> field_identifier) < (binary_expression "iVar2 + dest->nelem" identifier + (field_expression "dest->nelem" identifier -> field_identifier))) )) (compound_statement "{\n        iVar2 = iVar2 + dest->alloc;\n        pIVar4 = (Idx *)(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4);\n        if (pIVar4 == (Idx *)0x0) {\n          return _REG_ESPACE;\n        }\n        dest->elems = pIVar4;\n        dest->alloc = iVar2;\n      }" { (expression_statement "iVar2 = iVar2 + dest->alloc;" (assignment_expression "iVar2 = iVar2 + dest->alloc" identifier = (binary_expression "iVar2 + dest->alloc" identifier + (field_expression "dest->alloc" identifier -> field_identifier))) ;) (expression_statement "pIVar4 = (Idx *)(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4);" (assignment_expression "pIVar4 = (Idx *)(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4)" identifier = (cast_expression "(Idx *)(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4)" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_realloc_0007d070)(dest->elems,iVar2 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0007d070)" ( (pointer_expression "*(code *)PTR_realloc_0007d070" * (cast_expression "(code *)PTR_realloc_0007d070" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dest->elems,iVar2 * 4)" ( (field_expression "dest->elems" identifier -> field_identifier) , (binary_expression "iVar2 * 4" 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 "dest->elems = pIVar4;" (assignment_expression "dest->elems = pIVar4" (field_expression "dest->elems" identifier -> field_identifier) = identifier) ;) (expression_statement "dest->alloc = iVar2;" (assignment_expression "dest->alloc = iVar2" (field_expression "dest->alloc" identifier -> field_identifier) = identifier) ;) })) (expression_statement "iVar10 = dest->nelem + src1->nelem + src2->nelem;" (assignment_expression "iVar10 = dest->nelem + src1->nelem + src2->nelem" identifier = (binary_expression "dest->nelem + src1->nelem + src2->nelem" (binary_expression "dest->nelem + src1->nelem" (field_expression "dest->nelem" identifier -> field_identifier) + (field_expression "src1->nelem" identifier -> field_identifier)) + (field_expression "src2->nelem" identifier -> field_identifier))) ;) (expression_statement "iVar2 = src1->nelem + -1;" (assignment_expression "iVar2 = src1->nelem + -1" identifier = (binary_expression "src1->nelem + -1" (field_expression "src1->nelem" identifier -> field_identifier) + number_literal)) ;) (expression_statement "iVar8 = src2->nelem + -1;" (assignment_expression "iVar8 = src2->nelem + -1" identifier = (binary_expression "src2->nelem + -1" (field_expression "src2->nelem" identifier -> field_identifier) + number_literal)) ;) (expression_statement "iVar9 = dest->nelem + -1;" (assignment_expression "iVar9 = dest->nelem + -1" identifier = (binary_expression "dest->nelem + -1" (field_expression "dest->nelem" identifier -> field_identifier) + number_literal)) ;) (do_statement "do {\n        while( true ) {\n          iVar6 = src1->elems[iVar2];\n          if (iVar6 != src2->elems[iVar8]) break;\n          if (iVar9 < 0) {\nLAB_00052be4:\n            iVar10 = iVar10 + -1;\n            dest->elems[iVar10] = iVar6;\n          }\n          else {\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }\n          iVar2 = iVar2 + -1;\n          iVar8 = iVar8 + -1;\n          if (iVar2 < 0) goto LAB_00052c5c;\n          if (iVar8 < 0) {\n            iVar2 = dest->nelem;\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar6 < src2->elems[iVar8]) {\n          iVar8 = iVar8 + -1;\n          iVar6 = iVar8;\n        }\n        else {\n          iVar2 = iVar2 + -1;\n          iVar6 = iVar2;\n        }\n      } while (-1 < iVar6);" do (compound_statement "{\n        while( true ) {\n          iVar6 = src1->elems[iVar2];\n          if (iVar6 != src2->elems[iVar8]) break;\n          if (iVar9 < 0) {\nLAB_00052be4:\n            iVar10 = iVar10 + -1;\n            dest->elems[iVar10] = iVar6;\n          }\n          else {\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }\n          iVar2 = iVar2 + -1;\n          iVar8 = iVar8 + -1;\n          if (iVar2 < 0) goto LAB_00052c5c;\n          if (iVar8 < 0) {\n            iVar2 = dest->nelem;\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar6 < src2->elems[iVar8]) {\n          iVar8 = iVar8 + -1;\n          iVar6 = iVar8;\n        }\n        else {\n          iVar2 = iVar2 + -1;\n          iVar6 = iVar2;\n        }\n      }" { (while_statement "while( true ) {\n          iVar6 = src1->elems[iVar2];\n          if (iVar6 != src2->elems[iVar8]) break;\n          if (iVar9 < 0) {\nLAB_00052be4:\n            iVar10 = iVar10 + -1;\n            dest->elems[iVar10] = iVar6;\n          }\n          else {\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }\n          iVar2 = iVar2 + -1;\n          iVar8 = iVar8 + -1;\n          if (iVar2 < 0) goto LAB_00052c5c;\n          if (iVar8 < 0) {\n            iVar2 = dest->nelem;\n            goto LAB_00052c60;\n          }\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar6 = src1->elems[iVar2];\n          if (iVar6 != src2->elems[iVar8]) break;\n          if (iVar9 < 0) {\nLAB_00052be4:\n            iVar10 = iVar10 + -1;\n            dest->elems[iVar10] = iVar6;\n          }\n          else {\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }\n          iVar2 = iVar2 + -1;\n          iVar8 = iVar8 + -1;\n          if (iVar2 < 0) goto LAB_00052c5c;\n          if (iVar8 < 0) {\n            iVar2 = dest->nelem;\n            goto LAB_00052c60;\n          }\n        }" { (expression_statement "iVar6 = src1->elems[iVar2];" (assignment_expression "iVar6 = src1->elems[iVar2]" identifier = (subscript_expression "src1->elems[iVar2]" (field_expression "src1->elems" identifier -> field_identifier) [ identifier ])) ;) (if_statement "if (iVar6 != src2->elems[iVar8]) break;" if (parenthesized_expression "(iVar6 != src2->elems[iVar8])" ( (binary_expression "iVar6 != src2->elems[iVar8]" identifier != (subscript_expression "src2->elems[iVar8]" (field_expression "src2->elems" identifier -> field_identifier) [ identifier ])) )) (break_statement "break;" break ;)) (if_statement "if (iVar9 < 0) {\nLAB_00052be4:\n            iVar10 = iVar10 + -1;\n            dest->elems[iVar10] = iVar6;\n          }\n          else {\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }" if (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00052be4:\n            iVar10 = iVar10 + -1;\n            dest->elems[iVar10] = iVar6;\n          }" { (labeled_statement "LAB_00052be4:\n            iVar10 = iVar10 + -1;" statement_identifier : (expression_statement "iVar10 = iVar10 + -1;" (assignment_expression "iVar10 = iVar10 + -1" identifier = (binary_expression "iVar10 + -1" identifier + number_literal)) ;)) (expression_statement "dest->elems[iVar10] = iVar6;" (assignment_expression "dest->elems[iVar10] = iVar6" (subscript_expression "dest->elems[iVar10]" (field_expression "dest->elems" identifier -> field_identifier) [ identifier ]) = identifier) ;) }) (else_clause "else {\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }" else (compound_statement "{\n            piVar5 = dest->elems + iVar9;\n            iVar3 = *piVar5;\n            while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }\n            if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;\n          }" { (expression_statement "piVar5 = dest->elems + iVar9;" (assignment_expression "piVar5 = dest->elems + iVar9" identifier = (binary_expression "dest->elems + iVar9" (field_expression "dest->elems" identifier -> field_identifier) + identifier)) ;) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (while_statement "while (iVar6 < iVar3) {\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }" while (parenthesized_expression "(iVar6 < iVar3)" ( (binary_expression "iVar6 < iVar3" identifier < identifier) )) (compound_statement "{\n              iVar9 = iVar9 + -1;\n              piVar5 = piVar5 + -1;\n              if (iVar9 == -1) goto LAB_00052be4;\n              iVar3 = *piVar5;\n            }" { (expression_statement "iVar9 = iVar9 + -1;" (assignment_expression "iVar9 = iVar9 + -1" identifier = (binary_expression "iVar9 + -1" identifier + number_literal)) ;) (expression_statement "piVar5 = piVar5 + -1;" (assignment_expression "piVar5 = piVar5 + -1" identifier = (binary_expression "piVar5 + -1" identifier + number_literal)) ;) (if_statement "if (iVar9 == -1) goto LAB_00052be4;" if (parenthesized_expression "(iVar9 == -1)" ( (binary_expression "iVar9 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00052be4;" goto statement_identifier ;)) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) })) (if_statement "if (iVar6 != dest->elems[iVar9]) goto LAB_00052be4;" if (parenthesized_expression "(iVar6 != dest->elems[iVar9])" ( (binary_expression "iVar6 != dest->elems[iVar9]" identifier != (subscript_expression "dest->elems[iVar9]" (field_expression "dest->elems" identifier -> field_identifier) [ identifier ])) )) (goto_statement "goto LAB_00052be4;" goto statement_identifier ;)) }))) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (if_statement "if (iVar2 < 0) goto LAB_00052c5c;" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00052c5c;" goto statement_identifier ;)) (if_statement "if (iVar8 < 0) {\n            iVar2 = dest->nelem;\n            goto LAB_00052c60;\n          }" if (parenthesized_expression "(iVar8 < 0)" ( (binary_expression "iVar8 < 0" identifier < number_literal) )) (compound_statement "{\n            iVar2 = dest->nelem;\n            goto LAB_00052c60;\n          }" { (expression_statement "iVar2 = dest->nelem;" (assignment_expression "iVar2 = dest->nelem" identifier = (field_expression "dest->nelem" identifier -> field_identifier)) ;) (goto_statement "goto LAB_00052c60;" goto statement_identifier ;) })) })) (if_statement "if (iVar6 < src2->elems[iVar8]) {\n          iVar8 = iVar8 + -1;\n          iVar6 = iVar8;\n        }\n        else {\n          iVar2 = iVar2 + -1;\n          iVar6 = iVar2;\n        }" if (parenthesized_expression "(iVar6 < src2->elems[iVar8])" ( (binary_expression "iVar6 < src2->elems[iVar8]" identifier < (subscript_expression "src2->elems[iVar8]" (field_expression "src2->elems" identifier -> field_identifier) [ identifier ])) )) (compound_statement "{\n          iVar8 = iVar8 + -1;\n          iVar6 = iVar8;\n        }" { (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar8;" (assignment_expression "iVar6 = iVar8" identifier = identifier) ;) }) (else_clause "else {\n          iVar2 = iVar2 + -1;\n          iVar6 = iVar2;\n        }" else (compound_statement "{\n          iVar2 = iVar2 + -1;\n          iVar6 = iVar2;\n        }" { (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar2;" (assignment_expression "iVar6 = iVar2" identifier = identifier) ;) }))) }) while (parenthesized_expression "(-1 < iVar6)" ( (binary_expression "-1 < iVar6" number_literal < identifier) )) ;) (labeled_statement "LAB_00052c5c:\n      iVar2 = dest->nelem;" statement_identifier : (expression_statement "iVar2 = dest->nelem;" (assignment_expression "iVar2 = dest->nelem" identifier = (field_expression "dest->nelem" identifier -> field_identifier)) ;)) (labeled_statement "LAB_00052c60:\n      iVar9 = iVar2 + src1->nelem + src2->nelem;" statement_identifier : (expression_statement "iVar9 = iVar2 + src1->nelem + src2->nelem;" (assignment_expression "iVar9 = iVar2 + src1->nelem + src2->nelem" identifier = (binary_expression "iVar2 + src1->nelem + src2->nelem" (binary_expression "iVar2 + src1->nelem" identifier + (field_expression "src1->nelem" identifier -> field_identifier)) + (field_expression "src2->nelem" identifier -> field_identifier))) ;)) (expression_statement "iVar8 = iVar9 + -1;" (assignment_expression "iVar8 = iVar9 + -1" identifier = (binary_expression "iVar9 + -1" identifier + number_literal)) ;) (expression_statement "iVar9 = iVar9 - iVar10;" (assignment_expression "iVar9 = iVar9 - iVar10" identifier = (binary_expression "iVar9 - iVar10" identifier - identifier)) ;) (expression_statement "dest->nelem = iVar2 + iVar9;" (assignment_expression "dest->nelem = iVar2 + iVar9" (field_expression "dest->nelem" identifier -> field_identifier) = (binary_expression "iVar2 + iVar9" identifier + identifier)) ;) (if_statement "if (0 < iVar9) {\n        while (iVar2 = iVar2 + -1, iVar6 = iVar9, -1 < iVar2) {\n          while( true ) {\n            pIVar4 = dest->elems;\n            pIVar7 = pIVar4 + iVar8;\n            if (*pIVar7 <= pIVar4[iVar2]) break;\n            iVar8 = iVar8 + -1;\n            iVar9 = iVar6 + -1;\n            pIVar4[iVar2 + iVar6] = *pIVar7;\n            iVar6 = iVar9;\n            if (iVar9 == 0) goto LAB_00052c90;\n          }\n          pIVar4[iVar2 + iVar6] = pIVar4[iVar2];\n          iVar9 = iVar6;\n        }\n      }" if (parenthesized_expression "(0 < iVar9)" ( (binary_expression "0 < iVar9" number_literal < identifier) )) (compound_statement "{\n        while (iVar2 = iVar2 + -1, iVar6 = iVar9, -1 < iVar2) {\n          while( true ) {\n            pIVar4 = dest->elems;\n            pIVar7 = pIVar4 + iVar8;\n            if (*pIVar7 <= pIVar4[iVar2]) break;\n            iVar8 = iVar8 + -1;\n            iVar9 = iVar6 + -1;\n            pIVar4[iVar2 + iVar6] = *pIVar7;\n            iVar6 = iVar9;\n            if (iVar9 == 0) goto LAB_00052c90;\n          }\n          pIVar4[iVar2 + iVar6] = pIVar4[iVar2];\n          iVar9 = iVar6;\n        }\n      }" { (while_statement "while (iVar2 = iVar2 + -1, iVar6 = iVar9, -1 < iVar2) {\n          while( true ) {\n            pIVar4 = dest->elems;\n            pIVar7 = pIVar4 + iVar8;\n            if (*pIVar7 <= pIVar4[iVar2]) break;\n            iVar8 = iVar8 + -1;\n            iVar9 = iVar6 + -1;\n            pIVar4[iVar2 + iVar6] = *pIVar7;\n            iVar6 = iVar9;\n            if (iVar9 == 0) goto LAB_00052c90;\n          }\n          pIVar4[iVar2 + iVar6] = pIVar4[iVar2];\n          iVar9 = iVar6;\n        }" while (parenthesized_expression "(iVar2 = iVar2 + -1, iVar6 = iVar9, -1 < iVar2)" ( (comma_expression "iVar2 = iVar2 + -1, iVar6 = iVar9, -1 < iVar2" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) , (comma_expression "iVar6 = iVar9, -1 < iVar2" (assignment_expression "iVar6 = iVar9" identifier = identifier) , (binary_expression "-1 < iVar2" number_literal < identifier))) )) (compound_statement "{\n          while( true ) {\n            pIVar4 = dest->elems;\n            pIVar7 = pIVar4 + iVar8;\n            if (*pIVar7 <= pIVar4[iVar2]) break;\n            iVar8 = iVar8 + -1;\n            iVar9 = iVar6 + -1;\n            pIVar4[iVar2 + iVar6] = *pIVar7;\n            iVar6 = iVar9;\n            if (iVar9 == 0) goto LAB_00052c90;\n          }\n          pIVar4[iVar2 + iVar6] = pIVar4[iVar2];\n          iVar9 = iVar6;\n        }" { (while_statement "while( true ) {\n            pIVar4 = dest->elems;\n            pIVar7 = pIVar4 + iVar8;\n            if (*pIVar7 <= pIVar4[iVar2]) break;\n            iVar8 = iVar8 + -1;\n            iVar9 = iVar6 + -1;\n            pIVar4[iVar2 + iVar6] = *pIVar7;\n            iVar6 = iVar9;\n            if (iVar9 == 0) goto LAB_00052c90;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            pIVar4 = dest->elems;\n            pIVar7 = pIVar4 + iVar8;\n            if (*pIVar7 <= pIVar4[iVar2]) break;\n            iVar8 = iVar8 + -1;\n            iVar9 = iVar6 + -1;\n            pIVar4[iVar2 + iVar6] = *pIVar7;\n            iVar6 = iVar9;\n            if (iVar9 == 0) goto LAB_00052c90;\n          }" { (expression_statement "pIVar4 = dest->elems;" (assignment_expression "pIVar4 = dest->elems" identifier = (field_expression "dest->elems" identifier -> field_identifier)) ;) (expression_statement "pIVar7 = pIVar4 + iVar8;" (assignment_expression "pIVar7 = pIVar4 + iVar8" identifier = (binary_expression "pIVar4 + iVar8" identifier + identifier)) ;) (if_statement "if (*pIVar7 <= pIVar4[iVar2]) break;" if (parenthesized_expression "(*pIVar7 <= pIVar4[iVar2])" ( (binary_expression "*pIVar7 <= pIVar4[iVar2]" (pointer_expression "*pIVar7" * identifier) <= (subscript_expression "pIVar4[iVar2]" 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 "iVar9 = iVar6 + -1;" (assignment_expression "iVar9 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "pIVar4[iVar2 + iVar6] = *pIVar7;" (assignment_expression "pIVar4[iVar2 + iVar6] = *pIVar7" (subscript_expression "pIVar4[iVar2 + iVar6]" identifier [ (binary_expression "iVar2 + iVar6" identifier + identifier) ]) = (pointer_expression "*pIVar7" * identifier)) ;) (expression_statement "iVar6 = iVar9;" (assignment_expression "iVar6 = iVar9" identifier = identifier) ;) (if_statement "if (iVar9 == 0) goto LAB_00052c90;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00052c90;" goto statement_identifier ;)) })) (expression_statement "pIVar4[iVar2 + iVar6] = pIVar4[iVar2];" (assignment_expression "pIVar4[iVar2 + iVar6] = pIVar4[iVar2]" (subscript_expression "pIVar4[iVar2 + iVar6]" identifier [ (binary_expression "iVar2 + iVar6" identifier + identifier) ]) = (subscript_expression "pIVar4[iVar2]" identifier [ identifier ])) ;) (expression_statement "iVar9 = iVar6;" (assignment_expression "iVar9 = iVar6" identifier = identifier) ;) })) })) (labeled_statement "LAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(dest->elems,dest->elems + iVar10,iVar9 << 2);" statement_identifier : (expression_statement "(*(code *)PTR_memcpy_0007d134)(dest->elems,dest->elems + iVar10,iVar9 << 2);" (call_expression "(*(code *)PTR_memcpy_0007d134)(dest->elems,dest->elems + iVar10,iVar9 << 2)" (parenthesized_expression "(*(code *)PTR_memcpy_0007d134)" ( (pointer_expression "*(code *)PTR_memcpy_0007d134" * (cast_expression "(code *)PTR_memcpy_0007d134" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dest->elems,dest->elems + iVar10,iVar9 << 2)" ( (field_expression "dest->elems" identifier -> field_identifier) , (binary_expression "dest->elems + iVar10" (field_expression "dest->elems" identifier -> field_identifier) + identifier) , (binary_expression "iVar9 << 2" identifier << number_literal) ))) ;)) (expression_statement "rVar1 = _REG_NOERROR;" (assignment_expression "rVar1 = _REG_NOERROR" identifier = identifier) ;) }))) })) (return_statement "return rVar1;" return identifier ;) })))
(translation_unit "int FUN_00052ad8(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(param_2 + 4);\n  if (iVar1 != 0) {\n    if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00052ad8(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(param_2 + 4);\n  if (iVar1 != 0) {\n    if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00052ad8(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(param_2 + 4);\n  if (iVar1 != 0) {\n    if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }\n  }" { (if_statement "if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }" if (parenthesized_expression "(*(int *)(param_3 + 4) == 0)" ( (binary_expression "*(int *)(param_3 + 4) == 0" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar1 = 0;\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }" else (compound_statement "{\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }" { (expression_statement "iVar1 = iVar1 + *(int *)(param_3 + 4);" (assignment_expression "iVar1 = iVar1 + *(int *)(param_3 + 4)" identifier = (binary_expression "iVar1 + *(int *)(param_3 + 4)" identifier + (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))))) ;) (if_statement "if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }" if (parenthesized_expression "(*param_1 < iVar1 + param_1[1])" ( (binary_expression "*param_1 < iVar1 + param_1[1]" (pointer_expression "*param_1" * identifier) < (binary_expression "iVar1 + param_1[1]" identifier + (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }" { (expression_statement "iVar1 = iVar1 + *param_1;" (assignment_expression "iVar1 = iVar1 + *param_1" identifier = (binary_expression "iVar1 + *param_1" identifier + (pointer_expression "*param_1" * identifier))) ;) (expression_statement "iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);" (assignment_expression "iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4)" identifier = (call_expression "(*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0007d070)" ( (pointer_expression "*(code *)PTR_realloc_0007d070" * (cast_expression "(code *)PTR_realloc_0007d070" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[2],iVar1 * 4)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , (binary_expression "iVar1 * 4" identifier * number_literal) )))) ;) (if_statement "if (iVar6 == 0) {\n          return 0xc;\n        }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0xc;\n        }" { (return_statement "return 0xc;" return number_literal ;) })) (expression_statement "param_1[2] = iVar6;" (assignment_expression "param_1[2] = iVar6" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) })) (expression_statement "iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);" (assignment_expression "iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4)" identifier = (binary_expression "param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4)" (binary_expression "param_1[1] + *(int *)(param_2 + 4)" (subscript_expression "param_1[1]" identifier [ number_literal ]) + (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) + (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))))) ;) (expression_statement "iVar1 = *(int *)(param_2 + 4) + -1;" (assignment_expression "iVar1 = *(int *)(param_2 + 4) + -1" identifier = (binary_expression "*(int *)(param_2 + 4) + -1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar6 = *(int *)(param_3 + 4) + -1;" (assignment_expression "iVar6 = *(int *)(param_3 + 4) + -1" identifier = (binary_expression "*(int *)(param_3 + 4) + -1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar7 = param_1[1] + -1;" (assignment_expression "iVar7 = param_1[1] + -1" identifier = (binary_expression "param_1[1] + -1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (do_statement "do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);" do (compound_statement "{\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      }" { (while_statement "while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }" { (expression_statement "iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 8) + iVar1 * 4)" * (cast_expression "(int *)(*(int *)(param_2 + 8) + iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 8) + iVar1 * 4)" ( (binary_expression "*(int *)(param_2 + 8) + iVar1 * 4" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);" (assignment_expression "iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_3 + 8) + iVar6 * 4)" * (cast_expression "(int *)(*(int *)(param_3 + 8) + iVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_3 + 8) + iVar6 * 4)" ( (binary_expression "*(int *)(param_3 + 8) + iVar6 * 4" (pointer_expression "*(int *)(param_3 + 8)" * (cast_expression "(int *)(param_3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) + (binary_expression "iVar6 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (iVar4 != iVar2) break;" if (parenthesized_expression "(iVar4 != iVar2)" ( (binary_expression "iVar4 != iVar2" identifier != identifier) )) (break_statement "break;" break ;)) (if_statement "if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }" { (labeled_statement "LAB_00052be4:\n            iVar8 = iVar8 + -1;" statement_identifier : (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;)) (expression_statement "*(int *)(param_1[2] + iVar8 * 4) = iVar4;" (assignment_expression "*(int *)(param_1[2] + iVar8 * 4) = iVar4" (pointer_expression "*(int *)(param_1[2] + iVar8 * 4)" * (cast_expression "(int *)(param_1[2] + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + iVar8 * 4)" ( (binary_expression "param_1[2] + iVar8 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) = identifier) ;) }) (else_clause "else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }" else (compound_statement "{\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }" { (expression_statement "piVar3 = (int *)(param_1[2] + iVar7 * 4);" (assignment_expression "piVar3 = (int *)(param_1[2] + iVar7 * 4)" identifier = (cast_expression "(int *)(param_1[2] + iVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + iVar7 * 4)" ( (binary_expression "param_1[2] + iVar7 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "iVar7 * 4" identifier * number_literal)) )))) ;) (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (while_statement "while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }" while (parenthesized_expression "(iVar4 < iVar2)" ( (binary_expression "iVar4 < iVar2" identifier < identifier) )) (compound_statement "{\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }" { (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "piVar3 = piVar3 + -1;" (assignment_expression "piVar3 = piVar3 + -1" identifier = (binary_expression "piVar3 + -1" identifier + number_literal)) ;) (if_statement "if (iVar7 == -1) goto LAB_00052be4;" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00052be4;" goto statement_identifier ;)) (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (if_statement "if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;" if (parenthesized_expression "(iVar4 != *(int *)(param_1[2] + iVar7 * 4))" ( (binary_expression "iVar4 != *(int *)(param_1[2] + iVar7 * 4)" identifier != (pointer_expression "*(int *)(param_1[2] + iVar7 * 4)" * (cast_expression "(int *)(param_1[2] + iVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + iVar7 * 4)" ( (binary_expression "param_1[2] + iVar7 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "iVar7 * 4" identifier * number_literal)) ))))) )) (goto_statement "goto LAB_00052be4;" goto statement_identifier ;)) }))) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (if_statement "if (iVar1 < 0) goto LAB_00052c5c;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00052c5c;" goto statement_identifier ;)) (if_statement "if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (compound_statement "{\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }" { (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_00052c60;" goto statement_identifier ;) })) })) (if_statement "if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }" if (parenthesized_expression "(iVar4 < iVar2)" ( (binary_expression "iVar4 < iVar2" identifier < identifier) )) (compound_statement "{\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }" { (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar6;" (assignment_expression "iVar2 = iVar6" identifier = identifier) ;) }) (else_clause "else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }" else (compound_statement "{\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }" { (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) }))) }) while (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) ;) (labeled_statement "LAB_00052c5c:\n      iVar1 = param_1[1];" statement_identifier : (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;)) (labeled_statement "LAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);" statement_identifier : (expression_statement "iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);" (assignment_expression "iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4)" identifier = (binary_expression "iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4)" (binary_expression "iVar1 + *(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) ))))) + (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))))) ;)) (expression_statement "iVar6 = iVar7 + -1;" (assignment_expression "iVar6 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar7 - iVar8;" (assignment_expression "iVar7 = iVar7 - iVar8" identifier = (binary_expression "iVar7 - iVar8" identifier - identifier)) ;) (expression_statement "param_1[1] = iVar1 + iVar7;" (assignment_expression "param_1[1] = iVar1 + iVar7" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + iVar7" identifier + identifier)) ;) (if_statement "if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }" { (while_statement "while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }" while (parenthesized_expression "(iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1)" ( (comma_expression "iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) , (comma_expression "iVar2 = iVar7, -1 < iVar1" (assignment_expression "iVar2 = iVar7" identifier = identifier) , (binary_expression "-1 < iVar1" number_literal < identifier))) )) (compound_statement "{\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }" { (while_statement "while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }" { (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *(int *)(iVar4 + iVar6 * 4);" (assignment_expression "iVar5 = *(int *)(iVar4 + iVar6 * 4)" identifier = (pointer_expression "*(int *)(iVar4 + iVar6 * 4)" * (cast_expression "(int *)(iVar4 + iVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6 * 4)" ( (binary_expression "iVar4 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar7 = *(int *)(iVar4 + iVar1 * 4);" (assignment_expression "iVar7 = *(int *)(iVar4 + iVar1 * 4)" identifier = (pointer_expression "*(int *)(iVar4 + iVar1 * 4)" * (cast_expression "(int *)(iVar4 + iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar1 * 4)" ( (binary_expression "iVar4 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (iVar5 <= iVar7) break;" if (parenthesized_expression "(iVar5 <= iVar7)" ( (binary_expression "iVar5 <= iVar7" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar2 + -1;" (assignment_expression "iVar7 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;" (assignment_expression "*(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5" (pointer_expression "*(int *)(iVar4 + (iVar1 + iVar2) * 4)" * (cast_expression "(int *)(iVar4 + (iVar1 + iVar2) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (iVar1 + iVar2) * 4)" ( (binary_expression "iVar4 + (iVar1 + iVar2) * 4" identifier + (binary_expression "(iVar1 + iVar2) * 4" (parenthesized_expression "(iVar1 + iVar2)" ( (binary_expression "iVar1 + iVar2" identifier + identifier) )) * number_literal)) )))) = identifier) ;) (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" identifier = identifier) ;) (if_statement "if (iVar7 == 0) goto LAB_00052c90;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00052c90;" goto statement_identifier ;)) })) (expression_statement "*(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;" (assignment_expression "*(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7" (pointer_expression "*(int *)(iVar4 + (iVar1 + iVar2) * 4)" * (cast_expression "(int *)(iVar4 + (iVar1 + iVar2) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (iVar1 + iVar2) * 4)" ( (binary_expression "iVar4 + (iVar1 + iVar2) * 4" identifier + (binary_expression "(iVar1 + iVar2) * 4" (parenthesized_expression "(iVar1 + iVar2)" ( (binary_expression "iVar1 + iVar2" identifier + identifier) )) * number_literal)) )))) = identifier) ;) (expression_statement "iVar7 = iVar2;" (assignment_expression "iVar7 = iVar2" identifier = identifier) ;) })) })) (labeled_statement "LAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);" statement_identifier : (expression_statement "(*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);" (call_expression "(*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2)" (parenthesized_expression "(*(code *)PTR_memcpy_0007d134)" ( (pointer_expression "*(code *)PTR_memcpy_0007d134" * (cast_expression "(code *)PTR_memcpy_0007d134" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , (binary_expression "param_1[2] + iVar8 * 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "iVar8 * 4" identifier * number_literal)) , (binary_expression "iVar7 << 2" identifier << number_literal) ))) ;)) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }))) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (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 { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (binary_expression IDENT + (subscript_expression IDENT [ LIT ]))) )) (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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (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 (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (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 == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) ))))) )) (goto_statement goto 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 < LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (goto_statement goto statement_identifier ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) }) while (parenthesized_expression ( (binary_expression LIT < IDENT) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression LIT < IDENT))) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_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 + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (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 (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) , (binary_expression IDENT << LIT) ))) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) }))) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00052ad8(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(param_2 + 4);\n  if (iVar1 != 0) {\n    if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00052ad8(int *param_1,int param_2,int param_3)" (identifier "FUN_00052ad8") (parameter_list "(int *param_1,int param_2,int param_3)" (( "(") (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")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(param_2 + 4);\n  if (iVar1 != 0) {\n    if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }\n  }" ({ "{") (if_statement "if (*(int *)(param_3 + 4) == 0) {\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 4) == 0)" (( "(") (binary_expression "*(int *)(param_3 + 4) == 0" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = 0;\n    }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }" (else "else") (compound_statement "{\n      iVar1 = iVar1 + *(int *)(param_3 + 4);\n      if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }\n      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar1 = *(int *)(param_2 + 4) + -1;\n      iVar6 = *(int *)(param_3 + 4) + -1;\n      iVar7 = param_1[1] + -1;\n      do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);\nLAB_00052c5c:\n      iVar1 = param_1[1];\nLAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);\n      iVar6 = iVar7 + -1;\n      iVar7 = iVar7 - iVar8;\n      param_1[1] = iVar1 + iVar7;\n      if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }\nLAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);\n      iVar1 = 0;\n    }" ({ "{") (expression_statement "iVar1 = iVar1 + *(int *)(param_3 + 4);" (assignment_expression "iVar1 = iVar1 + *(int *)(param_3 + 4)" (identifier "iVar1") (= "=") (binary_expression "iVar1 + *(int *)(param_3 + 4)" (identifier "iVar1") (+ "+") (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))))) (; ";")) (if_statement "if (*param_1 < iVar1 + param_1[1]) {\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }" (if "if") (parenthesized_expression "(*param_1 < iVar1 + param_1[1])" (( "(") (binary_expression "*param_1 < iVar1 + param_1[1]" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (binary_expression "iVar1 + param_1[1]" (identifier "iVar1") (+ "+") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n        iVar1 = iVar1 + *param_1;\n        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        param_1[2] = iVar6;\n        *param_1 = iVar1;\n      }" ({ "{") (expression_statement "iVar1 = iVar1 + *param_1;" (assignment_expression "iVar1 = iVar1 + *param_1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + *param_1" (identifier "iVar1") (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);" (assignment_expression "iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4)" (parenthesized_expression "(*(code *)PTR_realloc_0007d070)" (( "(") (pointer_expression "*(code *)PTR_realloc_0007d070" (* "*") (cast_expression "(code *)PTR_realloc_0007d070" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_realloc_0007d070"))) () ")")) (argument_list "(param_1[2],iVar1 * 4)" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4")) () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n          return 0xc;\n        }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return 0xc;\n        }" ({ "{") (return_statement "return 0xc;" (return "return") (number_literal "0xc") (; ";")) (} "}"))) (expression_statement "param_1[2] = iVar6;" (assignment_expression "param_1[2] = iVar6" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (expression_statement "iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);" (assignment_expression "iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4)" (identifier "iVar8") (= "=") (binary_expression "param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4)" (binary_expression "param_1[1] + *(int *)(param_2 + 4)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (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")) () ")"))))) (+ "+") (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_2 + 4) + -1;" (assignment_expression "iVar1 = *(int *)(param_2 + 4) + -1" (identifier "iVar1") (= "=") (binary_expression "*(int *)(param_2 + 4) + -1" (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 "-1"))) (; ";")) (expression_statement "iVar6 = *(int *)(param_3 + 4) + -1;" (assignment_expression "iVar6 = *(int *)(param_3 + 4) + -1" (identifier "iVar6") (= "=") (binary_expression "*(int *)(param_3 + 4) + -1" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar7 = param_1[1] + -1;" (assignment_expression "iVar7 = param_1[1] + -1" (identifier "iVar7") (= "=") (binary_expression "param_1[1] + -1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "-1"))) (; ";")) (do_statement "do {\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      } while (-1 < iVar2);" (do "do") (compound_statement "{\n        while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }\n        if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }\n      }" ({ "{") (while_statement "while( true ) {\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);\n          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);\n          if (iVar4 != iVar2) break;\n          if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }\n          iVar1 = iVar1 + -1;\n          iVar6 = iVar6 + -1;\n          if (iVar1 < 0) goto LAB_00052c5c;\n          if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }\n        }" ({ "{") (expression_statement "iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);" (assignment_expression "iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(*(int *)(param_2 + 8) + iVar1 * 4)" (* "*") (cast_expression "(int *)(*(int *)(param_2 + 8) + iVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 8) + iVar1 * 4)" (( "(") (binary_expression "*(int *)(param_2 + 8) + iVar1 * 4" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);" (assignment_expression "iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*(int *)(param_3 + 8) + iVar6 * 4)" (* "*") (cast_expression "(int *)(*(int *)(param_3 + 8) + iVar6 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_3 + 8) + iVar6 * 4)" (( "(") (binary_expression "*(int *)(param_3 + 8) + iVar6 * 4" (pointer_expression "*(int *)(param_3 + 8)" (* "*") (cast_expression "(int *)(param_3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")")))) (+ "+") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (iVar4 != iVar2) break;" (if "if") (parenthesized_expression "(iVar4 != iVar2)" (( "(") (binary_expression "iVar4 != iVar2" (identifier "iVar4") (!= "!=") (identifier "iVar2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (iVar7 < 0) {\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }\n          else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }" (if "if") (parenthesized_expression "(iVar7 < 0)" (( "(") (binary_expression "iVar7 < 0" (identifier "iVar7") (< "<") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00052be4:\n            iVar8 = iVar8 + -1;\n            *(int *)(param_1[2] + iVar8 * 4) = iVar4;\n          }" ({ "{") (labeled_statement "LAB_00052be4:\n            iVar8 = iVar8 + -1;" (statement_identifier "LAB_00052be4") (: ":") (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + -1" (identifier "iVar8") (+ "+") (number_literal "-1"))) (; ";"))) (expression_statement "*(int *)(param_1[2] + iVar8 * 4) = iVar4;" (assignment_expression "*(int *)(param_1[2] + iVar8 * 4) = iVar4" (pointer_expression "*(int *)(param_1[2] + iVar8 * 4)" (* "*") (cast_expression "(int *)(param_1[2] + iVar8 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + iVar8 * 4)" (( "(") (binary_expression "param_1[2] + iVar8 * 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (} "}")) (else_clause "else {\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }" (else "else") (compound_statement "{\n            piVar3 = (int *)(param_1[2] + iVar7 * 4);\n            iVar2 = *piVar3;\n            while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }\n            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;\n          }" ({ "{") (expression_statement "piVar3 = (int *)(param_1[2] + iVar7 * 4);" (assignment_expression "piVar3 = (int *)(param_1[2] + iVar7 * 4)" (identifier "piVar3") (= "=") (cast_expression "(int *)(param_1[2] + iVar7 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + iVar7 * 4)" (( "(") (binary_expression "param_1[2] + iVar7 * 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" (identifier "iVar2") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (while_statement "while (iVar4 < iVar2) {\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }" (while "while") (parenthesized_expression "(iVar4 < iVar2)" (( "(") (binary_expression "iVar4 < iVar2" (identifier "iVar4") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n              iVar7 = iVar7 + -1;\n              piVar3 = piVar3 + -1;\n              if (iVar7 == -1) goto LAB_00052be4;\n              iVar2 = *piVar3;\n            }" ({ "{") (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "piVar3 = piVar3 + -1;" (assignment_expression "piVar3 = piVar3 + -1" (identifier "piVar3") (= "=") (binary_expression "piVar3 + -1" (identifier "piVar3") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar7 == -1) goto LAB_00052be4;" (if "if") (parenthesized_expression "(iVar7 == -1)" (( "(") (binary_expression "iVar7 == -1" (identifier "iVar7") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00052be4;" (goto "goto") (statement_identifier "LAB_00052be4") (; ";"))) (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" (identifier "iVar2") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (} "}"))) (if_statement "if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;" (if "if") (parenthesized_expression "(iVar4 != *(int *)(param_1[2] + iVar7 * 4))" (( "(") (binary_expression "iVar4 != *(int *)(param_1[2] + iVar7 * 4)" (identifier "iVar4") (!= "!=") (pointer_expression "*(int *)(param_1[2] + iVar7 * 4)" (* "*") (cast_expression "(int *)(param_1[2] + iVar7 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + iVar7 * 4)" (( "(") (binary_expression "param_1[2] + iVar7 * 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4"))) () ")"))))) () ")")) (goto_statement "goto LAB_00052be4;" (goto "goto") (statement_identifier "LAB_00052be4") (; ";"))) (} "}")))) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + -1" (identifier "iVar6") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar1 < 0) goto LAB_00052c5c;" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_00052c5c;" (goto "goto") (statement_identifier "LAB_00052c5c") (; ";"))) (if_statement "if (iVar6 < 0) {\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }" (if "if") (parenthesized_expression "(iVar6 < 0)" (( "(") (binary_expression "iVar6 < 0" (identifier "iVar6") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n            iVar1 = param_1[1];\n            goto LAB_00052c60;\n          }" ({ "{") (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" (identifier "iVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (goto_statement "goto LAB_00052c60;" (goto "goto") (statement_identifier "LAB_00052c60") (; ";")) (} "}"))) (} "}"))) (if_statement "if (iVar4 < iVar2) {\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }\n        else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }" (if "if") (parenthesized_expression "(iVar4 < iVar2)" (( "(") (binary_expression "iVar4 < iVar2" (identifier "iVar4") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n          iVar6 = iVar6 + -1;\n          iVar2 = iVar6;\n        }" ({ "{") (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + -1" (identifier "iVar6") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar2 = iVar6;" (assignment_expression "iVar2 = iVar6" (identifier "iVar2") (= "=") (identifier "iVar6")) (; ";")) (} "}")) (else_clause "else {\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }" (else "else") (compound_statement "{\n          iVar1 = iVar1 + -1;\n          iVar2 = iVar1;\n        }" ({ "{") (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" (identifier "iVar2") (= "=") (identifier "iVar1")) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (; ";")) (labeled_statement "LAB_00052c5c:\n      iVar1 = param_1[1];" (statement_identifier "LAB_00052c5c") (: ":") (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" (identifier "iVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";"))) (labeled_statement "LAB_00052c60:\n      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);" (statement_identifier "LAB_00052c60") (: ":") (expression_statement "iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);" (assignment_expression "iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4)" (identifier "iVar7") (= "=") (binary_expression "iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4)" (binary_expression "iVar1 + *(int *)(param_2 + 4)" (identifier "iVar1") (+ "+") (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")) () ")"))))) (+ "+") (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))))) (; ";"))) (expression_statement "iVar6 = iVar7 + -1;" (assignment_expression "iVar6 = iVar7 + -1" (identifier "iVar6") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar7 = iVar7 - iVar8;" (assignment_expression "iVar7 = iVar7 - iVar8" (identifier "iVar7") (= "=") (binary_expression "iVar7 - iVar8" (identifier "iVar7") (- "-") (identifier "iVar8"))) (; ";")) (expression_statement "param_1[1] = iVar1 + iVar7;" (assignment_expression "param_1[1] = iVar1 + iVar7" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar1 + iVar7" (identifier "iVar1") (+ "+") (identifier "iVar7"))) (; ";")) (if_statement "if (0 < iVar7) {\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }" (if "if") (parenthesized_expression "(0 < iVar7)" (( "(") (binary_expression "0 < iVar7" (number_literal "0") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }\n      }" ({ "{") (while_statement "while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }" (while "while") (parenthesized_expression "(iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1)" (( "(") (comma_expression "iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1" (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (, ",") (comma_expression "iVar2 = iVar7, -1 < iVar1" (assignment_expression "iVar2 = iVar7" (identifier "iVar2") (= "=") (identifier "iVar7")) (, ",") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")))) () ")")) (compound_statement "{\n          while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }\n          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;\n          iVar7 = iVar2;\n        }" ({ "{") (while_statement "while( true ) {\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\n          }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n            iVar4 = param_1[2];\n            iVar5 = *(int *)(iVar4 + iVar6 * 4);\n            iVar7 = *(int *)(iVar4 + iVar1 * 4);\n            if (iVar5 <= iVar7) break;\n            iVar6 = iVar6 + -1;\n            iVar7 = iVar2 + -1;\n            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;\n            iVar2 = iVar7;\n            if (iVar7 == 0) goto LAB_00052c90;\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 "iVar5 = *(int *)(iVar4 + iVar6 * 4);" (assignment_expression "iVar5 = *(int *)(iVar4 + iVar6 * 4)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar4 + iVar6 * 4)" (* "*") (cast_expression "(int *)(iVar4 + iVar6 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar6 * 4)" (( "(") (binary_expression "iVar4 + iVar6 * 4" (identifier "iVar4") (+ "+") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "iVar7 = *(int *)(iVar4 + iVar1 * 4);" (assignment_expression "iVar7 = *(int *)(iVar4 + iVar1 * 4)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar4 + iVar1 * 4)" (* "*") (cast_expression "(int *)(iVar4 + iVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar1 * 4)" (( "(") (binary_expression "iVar4 + iVar1 * 4" (identifier "iVar4") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (iVar5 <= iVar7) break;" (if "if") (parenthesized_expression "(iVar5 <= iVar7)" (( "(") (binary_expression "iVar5 <= iVar7" (identifier "iVar5") (<= "<=") (identifier "iVar7")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + -1" (identifier "iVar6") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar7 = iVar2 + -1;" (assignment_expression "iVar7 = iVar2 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;" (assignment_expression "*(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5" (pointer_expression "*(int *)(iVar4 + (iVar1 + iVar2) * 4)" (* "*") (cast_expression "(int *)(iVar4 + (iVar1 + iVar2) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + (iVar1 + iVar2) * 4)" (( "(") (binary_expression "iVar4 + (iVar1 + iVar2) * 4" (identifier "iVar4") (+ "+") (binary_expression "(iVar1 + iVar2) * 4" (parenthesized_expression "(iVar1 + iVar2)" (( "(") (binary_expression "iVar1 + iVar2" (identifier "iVar1") (+ "+") (identifier "iVar2")) () ")")) (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "iVar2 = iVar7;" (assignment_expression "iVar2 = iVar7" (identifier "iVar2") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar7 == 0) goto LAB_00052c90;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00052c90;" (goto "goto") (statement_identifier "LAB_00052c90") (; ";"))) (} "}"))) (expression_statement "*(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;" (assignment_expression "*(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7" (pointer_expression "*(int *)(iVar4 + (iVar1 + iVar2) * 4)" (* "*") (cast_expression "(int *)(iVar4 + (iVar1 + iVar2) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + (iVar1 + iVar2) * 4)" (( "(") (binary_expression "iVar4 + (iVar1 + iVar2) * 4" (identifier "iVar4") (+ "+") (binary_expression "(iVar1 + iVar2) * 4" (parenthesized_expression "(iVar1 + iVar2)" (( "(") (binary_expression "iVar1 + iVar2" (identifier "iVar1") (+ "+") (identifier "iVar2")) () ")")) (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "iVar7 = iVar2;" (assignment_expression "iVar7 = iVar2" (identifier "iVar7") (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_00052c90:\n      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);" (statement_identifier "LAB_00052c90") (: ":") (expression_statement "(*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);" (call_expression "(*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2)" (parenthesized_expression "(*(code *)PTR_memcpy_0007d134)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0007d134" (* "*") (cast_expression "(code *)PTR_memcpy_0007d134" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0007d134"))) () ")")) (argument_list "(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2)" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (binary_expression "param_1[2] + iVar8 * 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) (, ",") (binary_expression "iVar7 << 2" (identifier "iVar7") (<< "<<") (number_literal "2")) () ")"))) (; ";"))) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

type_1 function_1(type_2 *dest,type_2 *src1,type_2 *src2)

{
  type_1 var_1;
  int var_3;
  int var_8;
  type_3 *var_4;
  int *var_9;
  int var_5;
  type_3 *pIVar7;
  int var_10;
  int var_6;
  int var_7;
  
  var_1 = src1->nelem;
  if (var_1 != var_2) {
    if (src2->nelem == 0) {
      var_1 = var_2;
    }
    else {
      var_3 = var_1 + src2->nelem;
      if (dest->alloc < var_3 + dest->nelem) {
        var_3 = var_3 + dest->alloc;
        var_4 = (type_3 *)(*(type_4 *)PTR_realloc_0007d070)(dest->elems,var_3 * 4);
        if (var_4 == (type_3 *)0x0) {
          return _REG_ESPACE;
        }
        dest->elems = var_4;
        dest->alloc = var_3;
      }
      var_7 = dest->nelem + src1->nelem + src2->nelem;
      var_3 = src1->nelem + -1;
      var_10 = src2->nelem + -1;
      var_6 = dest->nelem + -1;
      do {
        while( true ) {
          var_5 = src1->elems[var_3];
          if (var_5 != src2->elems[var_10]) break;
          if (var_6 < 0) {
LAB_00052be4:
            var_7 = var_7 + -1;
            dest->elems[var_7] = var_5;
          }
          else {
            var_9 = dest->elems + var_6;
            var_8 = *var_9;
            while (var_5 < var_8) {
              var_6 = var_6 + -1;
              var_9 = var_9 + -1;
              if (var_6 == -1) goto LAB_00052be4;
              var_8 = *var_9;
            }
            if (var_5 != dest->elems[var_6]) goto LAB_00052be4;
          }
          var_3 = var_3 + -1;
          var_10 = var_10 + -1;
          if (var_3 < 0) goto LAB_00052c5c;
          if (var_10 < 0) {
            var_3 = dest->nelem;
            goto LAB_00052c60;
          }
        }
        if (var_5 < src2->elems[var_10]) {
          var_10 = var_10 + -1;
          var_5 = var_10;
        }
        else {
          var_3 = var_3 + -1;
          var_5 = var_3;
        }
      } while (-1 < var_5);
LAB_00052c5c:
      var_3 = dest->nelem;
LAB_00052c60:
      var_6 = var_3 + src1->nelem + src2->nelem;
      var_10 = var_6 + -1;
      var_6 = var_6 - var_7;
      dest->nelem = var_3 + var_6;
      if (0 < var_6) {
        while (var_3 = var_3 + -1, var_5 = var_6, -1 < var_3) {
          while( true ) {
            var_4 = dest->elems;
            pIVar7 = var_4 + var_10;
            if (*pIVar7 <= var_4[var_3]) break;
            var_10 = var_10 + -1;
            var_6 = var_5 + -1;
            var_4[var_3 + var_5] = *pIVar7;
            var_5 = var_6;
            if (var_6 == 0) goto LAB_00052c90;
          }
          var_4[var_3 + var_5] = var_4[var_3];
          var_6 = var_5;
        }
      }
LAB_00052c90:
      (*(type_4 *)PTR_memcpy_0007d134)(dest->elems,dest->elems + var_7,var_6 << 2);
      var_1 = var_2;
    }
  }
  return var_1;
}


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

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

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  
  iVar1 = *(int *)(param_2 + 4);
  if (iVar1 != 0) {
    if (*(int *)(param_3 + 4) == 0) {
      iVar1 = 0;
    }
    else {
      iVar1 = iVar1 + *(int *)(param_3 + 4);
      if (*param_1 < iVar1 + param_1[1]) {
        iVar1 = iVar1 + *param_1;
        iVar6 = (*(code *)PTR_realloc_0007d070)(param_1[2],iVar1 * 4);
        if (iVar6 == 0) {
          return 0xc;
        }
        param_1[2] = iVar6;
        *param_1 = iVar1;
      }
      iVar8 = param_1[1] + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);
      iVar1 = *(int *)(param_2 + 4) + -1;
      iVar6 = *(int *)(param_3 + 4) + -1;
      iVar7 = param_1[1] + -1;
      do {
        while( true ) {
          iVar4 = *(int *)(*(int *)(param_2 + 8) + iVar1 * 4);
          iVar2 = *(int *)(*(int *)(param_3 + 8) + iVar6 * 4);
          if (iVar4 != iVar2) break;
          if (iVar7 < 0) {
LAB_00052be4:
            iVar8 = iVar8 + -1;
            *(int *)(param_1[2] + iVar8 * 4) = iVar4;
          }
          else {
            piVar3 = (int *)(param_1[2] + iVar7 * 4);
            iVar2 = *piVar3;
            while (iVar4 < iVar2) {
              iVar7 = iVar7 + -1;
              piVar3 = piVar3 + -1;
              if (iVar7 == -1) goto LAB_00052be4;
              iVar2 = *piVar3;
            }
            if (iVar4 != *(int *)(param_1[2] + iVar7 * 4)) goto LAB_00052be4;
          }
          iVar1 = iVar1 + -1;
          iVar6 = iVar6 + -1;
          if (iVar1 < 0) goto LAB_00052c5c;
          if (iVar6 < 0) {
            iVar1 = param_1[1];
            goto LAB_00052c60;
          }
        }
        if (iVar4 < iVar2) {
          iVar6 = iVar6 + -1;
          iVar2 = iVar6;
        }
        else {
          iVar1 = iVar1 + -1;
          iVar2 = iVar1;
        }
      } while (-1 < iVar2);
LAB_00052c5c:
      iVar1 = param_1[1];
LAB_00052c60:
      iVar7 = iVar1 + *(int *)(param_2 + 4) + *(int *)(param_3 + 4);
      iVar6 = iVar7 + -1;
      iVar7 = iVar7 - iVar8;
      param_1[1] = iVar1 + iVar7;
      if (0 < iVar7) {
        while (iVar1 = iVar1 + -1, iVar2 = iVar7, -1 < iVar1) {
          while( true ) {
            iVar4 = param_1[2];
            iVar5 = *(int *)(iVar4 + iVar6 * 4);
            iVar7 = *(int *)(iVar4 + iVar1 * 4);
            if (iVar5 <= iVar7) break;
            iVar6 = iVar6 + -1;
            iVar7 = iVar2 + -1;
            *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar5;
            iVar2 = iVar7;
            if (iVar7 == 0) goto LAB_00052c90;
          }
          *(int *)(iVar4 + (iVar1 + iVar2) * 4) = iVar7;
          iVar7 = iVar2;
        }
      }
LAB_00052c90:
      (*(code *)PTR_memcpy_0007d134)(param_1[2],param_1[2] + iVar8 * 4,iVar7 << 2);
      iVar1 = 0;
    }
  }
  return iVar1;
}

