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

{
  undefined *puVar1;
  int *piVar2;
  reg_errcode_t rVar3;
  int *piVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  Idx *pIVar8;
  Idx *pIVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  
  puVar1 = PTR_malloc_00078034;
  if ((src1 == (re_node_set *)0x0) || (iVar10 = src1->nelem, iVar10 < 1)) {
    if ((src2 != (re_node_set *)0x0) && (src1 = src2, 0 < src2->nelem)) goto LAB_0004fe0c;
    rVar3 = _REG_NOERROR;
    dest->alloc = 0;
    dest->nelem = 0;
    dest->elems = (Idx *)0x0;
  }
  else {
    if ((src2 == (re_node_set *)0x0) || (iVar12 = src2->nelem, iVar12 < 1)) {
LAB_0004fe0c:
      rVar3 = re_node_set_init_copy(dest,src1);
      return rVar3;
    }
    dest->alloc = iVar10 + iVar12;
    piVar2 = (int *)(*(code *)puVar1)((iVar10 + iVar12) * 4);
    dest->elems = piVar2;
    if (piVar2 != (int *)0x0) {
      pIVar9 = src1->elems;
      iVar11 = 0;
      iVar7 = 0;
      iVar5 = 0;
      piVar4 = piVar2;
      do {
        if (iVar12 <= iVar7) {
          (*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4);
          dest->nelem = iVar11 + (iVar10 - iVar5);
          return _REG_NOERROR;
        }
        pIVar8 = src2->elems;
        iVar10 = pIVar9[iVar5];
        iVar6 = pIVar8[iVar7];
        iVar11 = iVar11 + 1;
        if (iVar6 < iVar10) {
          iVar7 = iVar7 + 1;
          *piVar4 = iVar6;
        }
        else {
          iVar5 = iVar5 + 1;
          if (iVar10 == iVar6) {
            iVar7 = iVar7 + 1;
          }
          *piVar4 = iVar10;
        }
        iVar10 = src1->nelem;
        piVar4 = piVar4 + 1;
      } while (iVar5 < iVar10);
      if (iVar7 < src2->nelem) {
        iVar10 = src2->nelem - iVar7;
        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar11,pIVar8 + iVar7,iVar10 * 4);
        dest->nelem = iVar11 + iVar10;
      }
      else {
        dest->nelem = iVar11;
      }
      return _REG_NOERROR;
    }
    rVar3 = _REG_ESPACE;
  }
  return rVar3;
}



undefined4 FUN_0004fca0(int *param_1,int param_2,int param_3)

{
  undefined *puVar1;
  int *piVar2;
  undefined4 uVar3;
  int *piVar4;
  int *piVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  int iVar13;
  
  puVar1 = PTR_malloc_00078034;
  if ((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)) {
    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;
    uVar3 = 0;
    *param_1 = 0;
    param_1[1] = 0;
    param_1[2] = 0;
  }
  else {
    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {
LAB_0004fe0c:
      uVar3 = FUN_0004fbd0(param_1,param_2);
      return uVar3;
    }
    *param_1 = iVar11 + iVar13;
    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);
    param_1[2] = (int)piVar2;
    if (piVar2 != (int *)0x0) {
      iVar10 = *(int *)(param_2 + 8);
      iVar12 = 0;
      iVar8 = 0;
      iVar6 = 0;
      piVar5 = piVar2;
      do {
        piVar4 = (int *)(iVar10 + iVar6 * 4);
        if (iVar13 <= iVar8) {
          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);
          param_1[1] = iVar12 + (iVar11 - iVar6);
          return 0;
        }
        iVar9 = *(int *)(param_3 + 8);
        iVar11 = *piVar4;
        iVar7 = *(int *)(iVar9 + iVar8 * 4);
        iVar12 = iVar12 + 1;
        if (iVar7 < iVar11) {
          iVar8 = iVar8 + 1;
          *piVar5 = iVar7;
        }
        else {
          iVar6 = iVar6 + 1;
          if (iVar11 == iVar7) {
            iVar8 = iVar8 + 1;
          }
          *piVar5 = iVar11;
        }
        iVar11 = *(int *)(param_2 + 4);
        piVar5 = piVar5 + 1;
      } while (iVar6 < iVar11);
      if (iVar8 < *(int *)(param_3 + 4)) {
        iVar11 = *(int *)(param_3 + 4) - iVar8;
        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);
        param_1[1] = iVar12 + iVar11;
      }
      else {
        param_1[1] = iVar12;
      }
      return 0;
    }
    uVar3 = 0xc;
  }
  return uVar3;
}


lui gp,0x3
addiu gp,gp,-0x780
addu gp,gp,t9
addiu sp,sp,-0x38
sw gp,0x10(sp)
sw ra,0x34(sp)
sw s5,0x30(sp)
sw s4,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
beq a1,zero,0x0004fdbc
_sw s0,0x1c(sp)
lw s1,0x4(a1)
blez s1,0x0004fdbc
_nop
beq a2,zero,0x0004fe08
_lw t9,-0x76dc(gp)
lw s5,0x4(a2)
blez s5,0x0004fe0c
_lw ra,0x34(sp)
addu v0,s1,s5
lw t9,-0x74ec(gp)
or s3,a0,zero
sll a0,v0,0x2
sw v0,0x0(s3)
or s2,a2,zero
jalr t9
_or s0,a1,zero
lw gp,0x10(sp)
beq v0,zero,0x0004fe94
_sw v0,0x8(s3)
lw t3,0x8(s0)
or s4,zero,zero
or t1,zero,zero
or a2,zero,zero
or a0,v0,zero
sll v1,a2,0x2
slt a3,t1,s5
sll t0,t1,0x2
beq a3,zero,0x0004fe70
_addu v1,t3,v1
lw t2,0x8(s2)
lw v1,0x0(v1)
addu t0,t2,t0
lw a3,0x0(t0)
slt a1,a3,v1
bne a1,zero,0x0004fe38
_addiu s4,s4,0x1
beq v1,a3,0x0004fe30
_addiu a2,a2,0x1
sw v1,0x0(a0)
lw s1,0x4(s0)
slt v1,a2,s1
bne v1,zero,0x0004fd34
_addiu a0,a0,0x4
lw v1,0x4(s2)
slt a0,t1,v1
bne a0,zero,0x0004fe44
_lw t9,-0x7420(gp)
or v0,zero,zero
sw s4,0x4(s3)
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
beq a2,zero,0x0004fdd4
_or v0,zero,zero
lw v0,0x4(a2)
bgtz v0,0x0004fe04
_or a1,a2,zero
or v0,zero,zero
sw zero,0x0(a0)
sw zero,0x4(a0)
sw zero,0x8(a0)
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x76dc(gp)
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
addiu t9,t9,-0x430
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
b 0x0004fbd0
_addiu sp,sp,0x38
b 0x0004fd6c
_addiu t1,t1,0x1
addiu t1,t1,0x1
b 0x0004fd70
_sw a3,0x0(a0)
subu v1,v1,t1
sll a0,s4,0x2
sll a1,t1,0x2
addu s4,s4,v1
sll a2,v1,0x2
addu a1,t2,a1
jalr t9
_addu a0,v0,a0
or v0,zero,zero
b 0x0004fd98
_sw s4,0x4(s3)
subu s1,s1,a2
lw t9,-0x7420(gp)
or a1,v1,zero
sll a2,s1,0x2
jalr t9
_addu s4,s4,s1
or v0,zero,zero
b 0x0004fd98
_sw s4,0x4(s3)
b 0x0004fde0
_li v0,0xc
(translation_unit "undefined4 FUN_0004fca0(int *param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  \n  puVar1 = PTR_malloc_00078034;\n  if ((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)) {\n    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;\n    uVar3 = 0;\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n  }\n  else {\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_0004fca0(int *param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  \n  puVar1 = PTR_malloc_00078034;\n  if ((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)) {\n    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;\n    uVar3 = 0;\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n  }\n  else {\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0004fca0(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  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  \n  puVar1 = PTR_malloc_00078034;\n  if ((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)) {\n    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;\n    uVar3 = 0;\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n  }\n  else {\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }\n  return uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_malloc_00078034;" (assignment_expression "puVar1 = PTR_malloc_00078034" identifier = identifier) ;) (if_statement "if ((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)) {\n    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;\n    uVar3 = 0;\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n  }\n  else {\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }" if (parenthesized_expression "((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1))" ( (binary_expression "(param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar11 = *(int *)(param_2 + 4), iVar11 < 1)" ( (comma_expression "iVar11 = *(int *)(param_2 + 4), iVar11 < 1" (assignment_expression "iVar11 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) , (binary_expression "iVar11 < 1" identifier < number_literal)) ))) )) (compound_statement "{\n    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;\n    uVar3 = 0;\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n  }" { (if_statement "if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;" if (parenthesized_expression "((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4)))" ( (binary_expression "(param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 = param_3, 0 < *(int *)(param_3 + 4))" ( (comma_expression "param_2 = param_3, 0 < *(int *)(param_3 + 4)" (assignment_expression "param_2 = param_3" identifier = identifier) , (binary_expression "0 < *(int *)(param_3 + 4)" 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) )))))) ))) )) (goto_statement "goto LAB_0004fe0c;" goto statement_identifier ;)) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }" else (compound_statement "{\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }" { (if_statement "if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }" if (parenthesized_expression "((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1))" ( (binary_expression "(param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)" (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar13 = *(int *)(param_3 + 4), iVar13 < 1)" ( (comma_expression "iVar13 = *(int *)(param_3 + 4), iVar13 < 1" (assignment_expression "iVar13 = *(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) ))))) , (binary_expression "iVar13 < 1" identifier < number_literal)) ))) )) (compound_statement "{\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }" { (labeled_statement "LAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);" statement_identifier : (expression_statement "uVar3 = FUN_0004fbd0(param_1,param_2);" (assignment_expression "uVar3 = FUN_0004fbd0(param_1,param_2)" identifier = (call_expression "FUN_0004fbd0(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;)) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "*param_1 = iVar11 + iVar13;" (assignment_expression "*param_1 = iVar11 + iVar13" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar11 + iVar13" identifier + identifier)) ;) (expression_statement "piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);" (assignment_expression "piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4)" identifier = (cast_expression "(int *)(*(code *)puVar1)((iVar11 + iVar13) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)((iVar11 + iVar13) * 4)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((iVar11 + iVar13) * 4)" ( (binary_expression "(iVar11 + iVar13) * 4" (parenthesized_expression "(iVar11 + iVar13)" ( (binary_expression "iVar11 + iVar13" identifier + identifier) )) * number_literal) ))))) ;) (expression_statement "param_1[2] = (int)piVar2;" (assignment_expression "param_1[2] = (int)piVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }" { (expression_statement "iVar10 = *(int *)(param_2 + 8);" (assignment_expression "iVar10 = *(int *)(param_2 + 8)" identifier = (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) (do_statement "do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);" do (compound_statement "{\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      }" { (expression_statement "piVar4 = (int *)(iVar10 + iVar6 * 4);" (assignment_expression "piVar4 = (int *)(iVar10 + iVar6 * 4)" identifier = (cast_expression "(int *)(iVar10 + iVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + iVar6 * 4)" ( (binary_expression "iVar10 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) ;) (if_statement "if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }" if (parenthesized_expression "(iVar13 <= iVar8)" ( (binary_expression "iVar13 <= iVar8" identifier <= identifier) )) (compound_statement "{\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }" { (expression_statement "(*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);" (call_expression "(*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4)" (parenthesized_expression "(*(code *)PTR_memcpy_00078100)" ( (pointer_expression "*(code *)PTR_memcpy_00078100" * (cast_expression "(code *)PTR_memcpy_00078100" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar5,piVar4,(iVar11 - iVar6) * 4)" ( identifier , identifier , (binary_expression "(iVar11 - iVar6) * 4" (parenthesized_expression "(iVar11 - iVar6)" ( (binary_expression "iVar11 - iVar6" identifier - identifier) )) * number_literal) ))) ;) (expression_statement "param_1[1] = iVar12 + (iVar11 - iVar6);" (assignment_expression "param_1[1] = iVar12 + (iVar11 - iVar6)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar12 + (iVar11 - iVar6)" identifier + (parenthesized_expression "(iVar11 - iVar6)" ( (binary_expression "iVar11 - iVar6" identifier - identifier) )))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar9 = *(int *)(param_3 + 8);" (assignment_expression "iVar9 = *(int *)(param_3 + 8)" identifier = (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) ))))) ;) (expression_statement "iVar11 = *piVar4;" (assignment_expression "iVar11 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar7 = *(int *)(iVar9 + iVar8 * 4);" (assignment_expression "iVar7 = *(int *)(iVar9 + iVar8 * 4)" identifier = (pointer_expression "*(int *)(iVar9 + iVar8 * 4)" * (cast_expression "(int *)(iVar9 + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + iVar8 * 4)" ( (binary_expression "iVar9 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (if_statement "if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }" if (parenthesized_expression "(iVar7 < iVar11)" ( (binary_expression "iVar7 < iVar11" identifier < identifier) )) (compound_statement "{\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }" { (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "*piVar5 = iVar7;" (assignment_expression "*piVar5 = iVar7" (pointer_expression "*piVar5" * identifier) = identifier) ;) }) (else_clause "else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }" else (compound_statement "{\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }" { (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }" if (parenthesized_expression "(iVar11 == iVar7)" ( (binary_expression "iVar11 == iVar7" identifier == identifier) )) (compound_statement "{\n            iVar8 = iVar8 + 1;\n          }" { (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "*piVar5 = iVar11;" (assignment_expression "*piVar5 = iVar11" (pointer_expression "*piVar5" * identifier) = identifier) ;) }))) (expression_statement "iVar11 = *(int *)(param_2 + 4);" (assignment_expression "iVar11 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" identifier = (binary_expression "piVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 < iVar11)" ( (binary_expression "iVar6 < iVar11" identifier < identifier) )) ;) (if_statement "if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }" if (parenthesized_expression "(iVar8 < *(int *)(param_3 + 4))" ( (binary_expression "iVar8 < *(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) ))))) )) (compound_statement "{\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }" { (expression_statement "iVar11 = *(int *)(param_3 + 4) - iVar8;" (assignment_expression "iVar11 = *(int *)(param_3 + 4) - iVar8" identifier = (binary_expression "*(int *)(param_3 + 4) - iVar8" (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) )))) - identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);" (call_expression "(*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4)" (parenthesized_expression "(*(code *)PTR_memcpy_00078100)" ( (pointer_expression "*(code *)PTR_memcpy_00078100" * (cast_expression "(code *)PTR_memcpy_00078100" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4)" ( (binary_expression "piVar2 + iVar12" identifier + identifier) , (binary_expression "iVar9 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) , (binary_expression "iVar11 * 4" identifier * number_literal) ))) ;) (expression_statement "param_1[1] = iVar12 + iVar11;" (assignment_expression "param_1[1] = iVar12 + iVar11" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar12 + iVar11" identifier + identifier)) ;) }) (else_clause "else {\n        param_1[1] = iVar12;\n      }" else (compound_statement "{\n        param_1[1] = iVar12;\n      }" { (expression_statement "param_1[1] = iVar12;" (assignment_expression "param_1[1] = iVar12" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) }))) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar3 = 0xc;" (assignment_expression "uVar3 = 0xc" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "reg_errcode_t re_node_set_init_union(re_node_set *dest,re_node_set *src1,re_node_set *src2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  reg_errcode_t rVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  Idx *pIVar8;\n  Idx *pIVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  puVar1 = PTR_malloc_00078034;\n  if ((src1 == (re_node_set *)0x0) || (iVar10 = src1->nelem, iVar10 < 1)) {\n    if ((src2 != (re_node_set *)0x0) && (src1 = src2, 0 < src2->nelem)) goto LAB_0004fe0c;\n    rVar3 = _REG_NOERROR;\n    dest->alloc = 0;\n    dest->nelem = 0;\n    dest->elems = (Idx *)0x0;\n  }\n  else {\n    if ((src2 == (re_node_set *)0x0) || (iVar12 = src2->nelem, iVar12 < 1)) {\nLAB_0004fe0c:\n      rVar3 = re_node_set_init_copy(dest,src1);\n      return rVar3;\n    }\n    dest->alloc = iVar10 + iVar12;\n    piVar2 = (int *)(*(code *)puVar1)((iVar10 + iVar12) * 4);\n    dest->elems = piVar2;\n    if (piVar2 != (int *)0x0) {\n      pIVar9 = src1->elems;\n      iVar11 = 0;\n      iVar7 = 0;\n      iVar5 = 0;\n      piVar4 = piVar2;\n      do {\n        if (iVar12 <= iVar7) {\n          (*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4);\n          dest->nelem = iVar11 + (iVar10 - iVar5);\n          return _REG_NOERROR;\n        }\n        pIVar8 = src2->elems;\n        iVar10 = pIVar9[iVar5];\n        iVar6 = pIVar8[iVar7];\n        iVar11 = iVar11 + 1;\n        if (iVar6 < iVar10) {\n          iVar7 = iVar7 + 1;\n          *piVar4 = iVar6;\n        }\n        else {\n          iVar5 = iVar5 + 1;\n          if (iVar10 == iVar6) {\n            iVar7 = iVar7 + 1;\n          }\n          *piVar4 = iVar10;\n        }\n        iVar10 = src1->nelem;\n        piVar4 = piVar4 + 1;\n      } while (iVar5 < iVar10);\n      if (iVar7 < src2->nelem) {\n        iVar10 = src2->nelem - iVar7;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar11,pIVar8 + iVar7,iVar10 * 4);\n        dest->nelem = iVar11 + iVar10;\n      }\n      else {\n        dest->nelem = iVar11;\n      }\n      return _REG_NOERROR;\n    }\n    rVar3 = _REG_ESPACE;\n  }\n  return rVar3;\n}\n\n" (function_definition "reg_errcode_t re_node_set_init_union(re_node_set *dest,re_node_set *src1,re_node_set *src2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  reg_errcode_t rVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  Idx *pIVar8;\n  Idx *pIVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  puVar1 = PTR_malloc_00078034;\n  if ((src1 == (re_node_set *)0x0) || (iVar10 = src1->nelem, iVar10 < 1)) {\n    if ((src2 != (re_node_set *)0x0) && (src1 = src2, 0 < src2->nelem)) goto LAB_0004fe0c;\n    rVar3 = _REG_NOERROR;\n    dest->alloc = 0;\n    dest->nelem = 0;\n    dest->elems = (Idx *)0x0;\n  }\n  else {\n    if ((src2 == (re_node_set *)0x0) || (iVar12 = src2->nelem, iVar12 < 1)) {\nLAB_0004fe0c:\n      rVar3 = re_node_set_init_copy(dest,src1);\n      return rVar3;\n    }\n    dest->alloc = iVar10 + iVar12;\n    piVar2 = (int *)(*(code *)puVar1)((iVar10 + iVar12) * 4);\n    dest->elems = piVar2;\n    if (piVar2 != (int *)0x0) {\n      pIVar9 = src1->elems;\n      iVar11 = 0;\n      iVar7 = 0;\n      iVar5 = 0;\n      piVar4 = piVar2;\n      do {\n        if (iVar12 <= iVar7) {\n          (*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4);\n          dest->nelem = iVar11 + (iVar10 - iVar5);\n          return _REG_NOERROR;\n        }\n        pIVar8 = src2->elems;\n        iVar10 = pIVar9[iVar5];\n        iVar6 = pIVar8[iVar7];\n        iVar11 = iVar11 + 1;\n        if (iVar6 < iVar10) {\n          iVar7 = iVar7 + 1;\n          *piVar4 = iVar6;\n        }\n        else {\n          iVar5 = iVar5 + 1;\n          if (iVar10 == iVar6) {\n            iVar7 = iVar7 + 1;\n          }\n          *piVar4 = iVar10;\n        }\n        iVar10 = src1->nelem;\n        piVar4 = piVar4 + 1;\n      } while (iVar5 < iVar10);\n      if (iVar7 < src2->nelem) {\n        iVar10 = src2->nelem - iVar7;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar11,pIVar8 + iVar7,iVar10 * 4);\n        dest->nelem = iVar11 + iVar10;\n      }\n      else {\n        dest->nelem = iVar11;\n      }\n      return _REG_NOERROR;\n    }\n    rVar3 = _REG_ESPACE;\n  }\n  return rVar3;\n}" type_identifier (function_declarator "re_node_set_init_union(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  undefined *puVar1;\n  int *piVar2;\n  reg_errcode_t rVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  Idx *pIVar8;\n  Idx *pIVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  puVar1 = PTR_malloc_00078034;\n  if ((src1 == (re_node_set *)0x0) || (iVar10 = src1->nelem, iVar10 < 1)) {\n    if ((src2 != (re_node_set *)0x0) && (src1 = src2, 0 < src2->nelem)) goto LAB_0004fe0c;\n    rVar3 = _REG_NOERROR;\n    dest->alloc = 0;\n    dest->nelem = 0;\n    dest->elems = (Idx *)0x0;\n  }\n  else {\n    if ((src2 == (re_node_set *)0x0) || (iVar12 = src2->nelem, iVar12 < 1)) {\nLAB_0004fe0c:\n      rVar3 = re_node_set_init_copy(dest,src1);\n      return rVar3;\n    }\n    dest->alloc = iVar10 + iVar12;\n    piVar2 = (int *)(*(code *)puVar1)((iVar10 + iVar12) * 4);\n    dest->elems = piVar2;\n    if (piVar2 != (int *)0x0) {\n      pIVar9 = src1->elems;\n      iVar11 = 0;\n      iVar7 = 0;\n      iVar5 = 0;\n      piVar4 = piVar2;\n      do {\n        if (iVar12 <= iVar7) {\n          (*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4);\n          dest->nelem = iVar11 + (iVar10 - iVar5);\n          return _REG_NOERROR;\n        }\n        pIVar8 = src2->elems;\n        iVar10 = pIVar9[iVar5];\n        iVar6 = pIVar8[iVar7];\n        iVar11 = iVar11 + 1;\n        if (iVar6 < iVar10) {\n          iVar7 = iVar7 + 1;\n          *piVar4 = iVar6;\n        }\n        else {\n          iVar5 = iVar5 + 1;\n          if (iVar10 == iVar6) {\n            iVar7 = iVar7 + 1;\n          }\n          *piVar4 = iVar10;\n        }\n        iVar10 = src1->nelem;\n        piVar4 = piVar4 + 1;\n      } while (iVar5 < iVar10);\n      if (iVar7 < src2->nelem) {\n        iVar10 = src2->nelem - iVar7;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar11,pIVar8 + iVar7,iVar10 * 4);\n        dest->nelem = iVar11 + iVar10;\n      }\n      else {\n        dest->nelem = iVar11;\n      }\n      return _REG_NOERROR;\n    }\n    rVar3 = _REG_ESPACE;\n  }\n  return rVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "reg_errcode_t rVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "Idx *pIVar8;" type_identifier (pointer_declarator "*pIVar8" * identifier) ;) (declaration "Idx *pIVar9;" type_identifier (pointer_declarator "*pIVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_malloc_00078034;" (assignment_expression "puVar1 = PTR_malloc_00078034" identifier = identifier) ;) (if_statement "if ((src1 == (re_node_set *)0x0) || (iVar10 = src1->nelem, iVar10 < 1)) {\n    if ((src2 != (re_node_set *)0x0) && (src1 = src2, 0 < src2->nelem)) goto LAB_0004fe0c;\n    rVar3 = _REG_NOERROR;\n    dest->alloc = 0;\n    dest->nelem = 0;\n    dest->elems = (Idx *)0x0;\n  }\n  else {\n    if ((src2 == (re_node_set *)0x0) || (iVar12 = src2->nelem, iVar12 < 1)) {\nLAB_0004fe0c:\n      rVar3 = re_node_set_init_copy(dest,src1);\n      return rVar3;\n    }\n    dest->alloc = iVar10 + iVar12;\n    piVar2 = (int *)(*(code *)puVar1)((iVar10 + iVar12) * 4);\n    dest->elems = piVar2;\n    if (piVar2 != (int *)0x0) {\n      pIVar9 = src1->elems;\n      iVar11 = 0;\n      iVar7 = 0;\n      iVar5 = 0;\n      piVar4 = piVar2;\n      do {\n        if (iVar12 <= iVar7) {\n          (*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4);\n          dest->nelem = iVar11 + (iVar10 - iVar5);\n          return _REG_NOERROR;\n        }\n        pIVar8 = src2->elems;\n        iVar10 = pIVar9[iVar5];\n        iVar6 = pIVar8[iVar7];\n        iVar11 = iVar11 + 1;\n        if (iVar6 < iVar10) {\n          iVar7 = iVar7 + 1;\n          *piVar4 = iVar6;\n        }\n        else {\n          iVar5 = iVar5 + 1;\n          if (iVar10 == iVar6) {\n            iVar7 = iVar7 + 1;\n          }\n          *piVar4 = iVar10;\n        }\n        iVar10 = src1->nelem;\n        piVar4 = piVar4 + 1;\n      } while (iVar5 < iVar10);\n      if (iVar7 < src2->nelem) {\n        iVar10 = src2->nelem - iVar7;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar11,pIVar8 + iVar7,iVar10 * 4);\n        dest->nelem = iVar11 + iVar10;\n      }\n      else {\n        dest->nelem = iVar11;\n      }\n      return _REG_NOERROR;\n    }\n    rVar3 = _REG_ESPACE;\n  }" if (parenthesized_expression "((src1 == (re_node_set *)0x0) || (iVar10 = src1->nelem, iVar10 < 1))" ( (binary_expression "(src1 == (re_node_set *)0x0) || (iVar10 = src1->nelem, iVar10 < 1)" (parenthesized_expression "(src1 == (re_node_set *)0x0)" ( (binary_expression "src1 == (re_node_set *)0x0" identifier == (cast_expression "(re_node_set *)0x0" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar10 = src1->nelem, iVar10 < 1)" ( (comma_expression "iVar10 = src1->nelem, iVar10 < 1" (assignment_expression "iVar10 = src1->nelem" identifier = (field_expression "src1->nelem" identifier -> field_identifier)) , (binary_expression "iVar10 < 1" identifier < number_literal)) ))) )) (compound_statement "{\n    if ((src2 != (re_node_set *)0x0) && (src1 = src2, 0 < src2->nelem)) goto LAB_0004fe0c;\n    rVar3 = _REG_NOERROR;\n    dest->alloc = 0;\n    dest->nelem = 0;\n    dest->elems = (Idx *)0x0;\n  }" { (if_statement "if ((src2 != (re_node_set *)0x0) && (src1 = src2, 0 < src2->nelem)) goto LAB_0004fe0c;" if (parenthesized_expression "((src2 != (re_node_set *)0x0) && (src1 = src2, 0 < src2->nelem))" ( (binary_expression "(src2 != (re_node_set *)0x0) && (src1 = src2, 0 < src2->nelem)" (parenthesized_expression "(src2 != (re_node_set *)0x0)" ( (binary_expression "src2 != (re_node_set *)0x0" identifier != (cast_expression "(re_node_set *)0x0" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(src1 = src2, 0 < src2->nelem)" ( (comma_expression "src1 = src2, 0 < src2->nelem" (assignment_expression "src1 = src2" identifier = identifier) , (binary_expression "0 < src2->nelem" number_literal < (field_expression "src2->nelem" identifier -> field_identifier))) ))) )) (goto_statement "goto LAB_0004fe0c;" goto statement_identifier ;)) (expression_statement "rVar3 = _REG_NOERROR;" (assignment_expression "rVar3 = _REG_NOERROR" identifier = identifier) ;) (expression_statement "dest->alloc = 0;" (assignment_expression "dest->alloc = 0" (field_expression "dest->alloc" identifier -> field_identifier) = number_literal) ;) (expression_statement "dest->nelem = 0;" (assignment_expression "dest->nelem = 0" (field_expression "dest->nelem" identifier -> field_identifier) = number_literal) ;) (expression_statement "dest->elems = (Idx *)0x0;" (assignment_expression "dest->elems = (Idx *)0x0" (field_expression "dest->elems" identifier -> field_identifier) = (cast_expression "(Idx *)0x0" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    if ((src2 == (re_node_set *)0x0) || (iVar12 = src2->nelem, iVar12 < 1)) {\nLAB_0004fe0c:\n      rVar3 = re_node_set_init_copy(dest,src1);\n      return rVar3;\n    }\n    dest->alloc = iVar10 + iVar12;\n    piVar2 = (int *)(*(code *)puVar1)((iVar10 + iVar12) * 4);\n    dest->elems = piVar2;\n    if (piVar2 != (int *)0x0) {\n      pIVar9 = src1->elems;\n      iVar11 = 0;\n      iVar7 = 0;\n      iVar5 = 0;\n      piVar4 = piVar2;\n      do {\n        if (iVar12 <= iVar7) {\n          (*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4);\n          dest->nelem = iVar11 + (iVar10 - iVar5);\n          return _REG_NOERROR;\n        }\n        pIVar8 = src2->elems;\n        iVar10 = pIVar9[iVar5];\n        iVar6 = pIVar8[iVar7];\n        iVar11 = iVar11 + 1;\n        if (iVar6 < iVar10) {\n          iVar7 = iVar7 + 1;\n          *piVar4 = iVar6;\n        }\n        else {\n          iVar5 = iVar5 + 1;\n          if (iVar10 == iVar6) {\n            iVar7 = iVar7 + 1;\n          }\n          *piVar4 = iVar10;\n        }\n        iVar10 = src1->nelem;\n        piVar4 = piVar4 + 1;\n      } while (iVar5 < iVar10);\n      if (iVar7 < src2->nelem) {\n        iVar10 = src2->nelem - iVar7;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar11,pIVar8 + iVar7,iVar10 * 4);\n        dest->nelem = iVar11 + iVar10;\n      }\n      else {\n        dest->nelem = iVar11;\n      }\n      return _REG_NOERROR;\n    }\n    rVar3 = _REG_ESPACE;\n  }" else (compound_statement "{\n    if ((src2 == (re_node_set *)0x0) || (iVar12 = src2->nelem, iVar12 < 1)) {\nLAB_0004fe0c:\n      rVar3 = re_node_set_init_copy(dest,src1);\n      return rVar3;\n    }\n    dest->alloc = iVar10 + iVar12;\n    piVar2 = (int *)(*(code *)puVar1)((iVar10 + iVar12) * 4);\n    dest->elems = piVar2;\n    if (piVar2 != (int *)0x0) {\n      pIVar9 = src1->elems;\n      iVar11 = 0;\n      iVar7 = 0;\n      iVar5 = 0;\n      piVar4 = piVar2;\n      do {\n        if (iVar12 <= iVar7) {\n          (*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4);\n          dest->nelem = iVar11 + (iVar10 - iVar5);\n          return _REG_NOERROR;\n        }\n        pIVar8 = src2->elems;\n        iVar10 = pIVar9[iVar5];\n        iVar6 = pIVar8[iVar7];\n        iVar11 = iVar11 + 1;\n        if (iVar6 < iVar10) {\n          iVar7 = iVar7 + 1;\n          *piVar4 = iVar6;\n        }\n        else {\n          iVar5 = iVar5 + 1;\n          if (iVar10 == iVar6) {\n            iVar7 = iVar7 + 1;\n          }\n          *piVar4 = iVar10;\n        }\n        iVar10 = src1->nelem;\n        piVar4 = piVar4 + 1;\n      } while (iVar5 < iVar10);\n      if (iVar7 < src2->nelem) {\n        iVar10 = src2->nelem - iVar7;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar11,pIVar8 + iVar7,iVar10 * 4);\n        dest->nelem = iVar11 + iVar10;\n      }\n      else {\n        dest->nelem = iVar11;\n      }\n      return _REG_NOERROR;\n    }\n    rVar3 = _REG_ESPACE;\n  }" { (if_statement "if ((src2 == (re_node_set *)0x0) || (iVar12 = src2->nelem, iVar12 < 1)) {\nLAB_0004fe0c:\n      rVar3 = re_node_set_init_copy(dest,src1);\n      return rVar3;\n    }" if (parenthesized_expression "((src2 == (re_node_set *)0x0) || (iVar12 = src2->nelem, iVar12 < 1))" ( (binary_expression "(src2 == (re_node_set *)0x0) || (iVar12 = src2->nelem, iVar12 < 1)" (parenthesized_expression "(src2 == (re_node_set *)0x0)" ( (binary_expression "src2 == (re_node_set *)0x0" identifier == (cast_expression "(re_node_set *)0x0" ( (type_descriptor "re_node_set *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar12 = src2->nelem, iVar12 < 1)" ( (comma_expression "iVar12 = src2->nelem, iVar12 < 1" (assignment_expression "iVar12 = src2->nelem" identifier = (field_expression "src2->nelem" identifier -> field_identifier)) , (binary_expression "iVar12 < 1" identifier < number_literal)) ))) )) (compound_statement "{\nLAB_0004fe0c:\n      rVar3 = re_node_set_init_copy(dest,src1);\n      return rVar3;\n    }" { (labeled_statement "LAB_0004fe0c:\n      rVar3 = re_node_set_init_copy(dest,src1);" statement_identifier : (expression_statement "rVar3 = re_node_set_init_copy(dest,src1);" (assignment_expression "rVar3 = re_node_set_init_copy(dest,src1)" identifier = (call_expression "re_node_set_init_copy(dest,src1)" identifier (argument_list "(dest,src1)" ( identifier , identifier )))) ;)) (return_statement "return rVar3;" return identifier ;) })) (expression_statement "dest->alloc = iVar10 + iVar12;" (assignment_expression "dest->alloc = iVar10 + iVar12" (field_expression "dest->alloc" identifier -> field_identifier) = (binary_expression "iVar10 + iVar12" identifier + identifier)) ;) (expression_statement "piVar2 = (int *)(*(code *)puVar1)((iVar10 + iVar12) * 4);" (assignment_expression "piVar2 = (int *)(*(code *)puVar1)((iVar10 + iVar12) * 4)" identifier = (cast_expression "(int *)(*(code *)puVar1)((iVar10 + iVar12) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)((iVar10 + iVar12) * 4)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((iVar10 + iVar12) * 4)" ( (binary_expression "(iVar10 + iVar12) * 4" (parenthesized_expression "(iVar10 + iVar12)" ( (binary_expression "iVar10 + iVar12" identifier + identifier) )) * number_literal) ))))) ;) (expression_statement "dest->elems = piVar2;" (assignment_expression "dest->elems = piVar2" (field_expression "dest->elems" identifier -> field_identifier) = identifier) ;) (if_statement "if (piVar2 != (int *)0x0) {\n      pIVar9 = src1->elems;\n      iVar11 = 0;\n      iVar7 = 0;\n      iVar5 = 0;\n      piVar4 = piVar2;\n      do {\n        if (iVar12 <= iVar7) {\n          (*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4);\n          dest->nelem = iVar11 + (iVar10 - iVar5);\n          return _REG_NOERROR;\n        }\n        pIVar8 = src2->elems;\n        iVar10 = pIVar9[iVar5];\n        iVar6 = pIVar8[iVar7];\n        iVar11 = iVar11 + 1;\n        if (iVar6 < iVar10) {\n          iVar7 = iVar7 + 1;\n          *piVar4 = iVar6;\n        }\n        else {\n          iVar5 = iVar5 + 1;\n          if (iVar10 == iVar6) {\n            iVar7 = iVar7 + 1;\n          }\n          *piVar4 = iVar10;\n        }\n        iVar10 = src1->nelem;\n        piVar4 = piVar4 + 1;\n      } while (iVar5 < iVar10);\n      if (iVar7 < src2->nelem) {\n        iVar10 = src2->nelem - iVar7;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar11,pIVar8 + iVar7,iVar10 * 4);\n        dest->nelem = iVar11 + iVar10;\n      }\n      else {\n        dest->nelem = iVar11;\n      }\n      return _REG_NOERROR;\n    }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pIVar9 = src1->elems;\n      iVar11 = 0;\n      iVar7 = 0;\n      iVar5 = 0;\n      piVar4 = piVar2;\n      do {\n        if (iVar12 <= iVar7) {\n          (*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4);\n          dest->nelem = iVar11 + (iVar10 - iVar5);\n          return _REG_NOERROR;\n        }\n        pIVar8 = src2->elems;\n        iVar10 = pIVar9[iVar5];\n        iVar6 = pIVar8[iVar7];\n        iVar11 = iVar11 + 1;\n        if (iVar6 < iVar10) {\n          iVar7 = iVar7 + 1;\n          *piVar4 = iVar6;\n        }\n        else {\n          iVar5 = iVar5 + 1;\n          if (iVar10 == iVar6) {\n            iVar7 = iVar7 + 1;\n          }\n          *piVar4 = iVar10;\n        }\n        iVar10 = src1->nelem;\n        piVar4 = piVar4 + 1;\n      } while (iVar5 < iVar10);\n      if (iVar7 < src2->nelem) {\n        iVar10 = src2->nelem - iVar7;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar11,pIVar8 + iVar7,iVar10 * 4);\n        dest->nelem = iVar11 + iVar10;\n      }\n      else {\n        dest->nelem = iVar11;\n      }\n      return _REG_NOERROR;\n    }" { (expression_statement "pIVar9 = src1->elems;" (assignment_expression "pIVar9 = src1->elems" identifier = (field_expression "src1->elems" identifier -> field_identifier)) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "piVar4 = piVar2;" (assignment_expression "piVar4 = piVar2" identifier = identifier) ;) (do_statement "do {\n        if (iVar12 <= iVar7) {\n          (*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4);\n          dest->nelem = iVar11 + (iVar10 - iVar5);\n          return _REG_NOERROR;\n        }\n        pIVar8 = src2->elems;\n        iVar10 = pIVar9[iVar5];\n        iVar6 = pIVar8[iVar7];\n        iVar11 = iVar11 + 1;\n        if (iVar6 < iVar10) {\n          iVar7 = iVar7 + 1;\n          *piVar4 = iVar6;\n        }\n        else {\n          iVar5 = iVar5 + 1;\n          if (iVar10 == iVar6) {\n            iVar7 = iVar7 + 1;\n          }\n          *piVar4 = iVar10;\n        }\n        iVar10 = src1->nelem;\n        piVar4 = piVar4 + 1;\n      } while (iVar5 < iVar10);" do (compound_statement "{\n        if (iVar12 <= iVar7) {\n          (*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4);\n          dest->nelem = iVar11 + (iVar10 - iVar5);\n          return _REG_NOERROR;\n        }\n        pIVar8 = src2->elems;\n        iVar10 = pIVar9[iVar5];\n        iVar6 = pIVar8[iVar7];\n        iVar11 = iVar11 + 1;\n        if (iVar6 < iVar10) {\n          iVar7 = iVar7 + 1;\n          *piVar4 = iVar6;\n        }\n        else {\n          iVar5 = iVar5 + 1;\n          if (iVar10 == iVar6) {\n            iVar7 = iVar7 + 1;\n          }\n          *piVar4 = iVar10;\n        }\n        iVar10 = src1->nelem;\n        piVar4 = piVar4 + 1;\n      }" { (if_statement "if (iVar12 <= iVar7) {\n          (*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4);\n          dest->nelem = iVar11 + (iVar10 - iVar5);\n          return _REG_NOERROR;\n        }" if (parenthesized_expression "(iVar12 <= iVar7)" ( (binary_expression "iVar12 <= iVar7" identifier <= identifier) )) (compound_statement "{\n          (*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4);\n          dest->nelem = iVar11 + (iVar10 - iVar5);\n          return _REG_NOERROR;\n        }" { (expression_statement "(*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4);" (call_expression "(*(code *)PTR_memcpy_00078100)(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4)" (parenthesized_expression "(*(code *)PTR_memcpy_00078100)" ( (pointer_expression "*(code *)PTR_memcpy_00078100" * (cast_expression "(code *)PTR_memcpy_00078100" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar4,pIVar9 + iVar5,(iVar10 - iVar5) * 4)" ( identifier , (binary_expression "pIVar9 + iVar5" identifier + identifier) , (binary_expression "(iVar10 - iVar5) * 4" (parenthesized_expression "(iVar10 - iVar5)" ( (binary_expression "iVar10 - iVar5" identifier - identifier) )) * number_literal) ))) ;) (expression_statement "dest->nelem = iVar11 + (iVar10 - iVar5);" (assignment_expression "dest->nelem = iVar11 + (iVar10 - iVar5)" (field_expression "dest->nelem" identifier -> field_identifier) = (binary_expression "iVar11 + (iVar10 - iVar5)" identifier + (parenthesized_expression "(iVar10 - iVar5)" ( (binary_expression "iVar10 - iVar5" identifier - identifier) )))) ;) (return_statement "return _REG_NOERROR;" return identifier ;) })) (expression_statement "pIVar8 = src2->elems;" (assignment_expression "pIVar8 = src2->elems" identifier = (field_expression "src2->elems" identifier -> field_identifier)) ;) (expression_statement "iVar10 = pIVar9[iVar5];" (assignment_expression "iVar10 = pIVar9[iVar5]" identifier = (subscript_expression "pIVar9[iVar5]" identifier [ identifier ])) ;) (expression_statement "iVar6 = pIVar8[iVar7];" (assignment_expression "iVar6 = pIVar8[iVar7]" identifier = (subscript_expression "pIVar8[iVar7]" identifier [ identifier ])) ;) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (if_statement "if (iVar6 < iVar10) {\n          iVar7 = iVar7 + 1;\n          *piVar4 = iVar6;\n        }\n        else {\n          iVar5 = iVar5 + 1;\n          if (iVar10 == iVar6) {\n            iVar7 = iVar7 + 1;\n          }\n          *piVar4 = iVar10;\n        }" if (parenthesized_expression "(iVar6 < iVar10)" ( (binary_expression "iVar6 < iVar10" identifier < identifier) )) (compound_statement "{\n          iVar7 = iVar7 + 1;\n          *piVar4 = iVar6;\n        }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "*piVar4 = iVar6;" (assignment_expression "*piVar4 = iVar6" (pointer_expression "*piVar4" * identifier) = identifier) ;) }) (else_clause "else {\n          iVar5 = iVar5 + 1;\n          if (iVar10 == iVar6) {\n            iVar7 = iVar7 + 1;\n          }\n          *piVar4 = iVar10;\n        }" else (compound_statement "{\n          iVar5 = iVar5 + 1;\n          if (iVar10 == iVar6) {\n            iVar7 = iVar7 + 1;\n          }\n          *piVar4 = iVar10;\n        }" { (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (if_statement "if (iVar10 == iVar6) {\n            iVar7 = iVar7 + 1;\n          }" if (parenthesized_expression "(iVar10 == iVar6)" ( (binary_expression "iVar10 == iVar6" identifier == identifier) )) (compound_statement "{\n            iVar7 = iVar7 + 1;\n          }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "*piVar4 = iVar10;" (assignment_expression "*piVar4 = iVar10" (pointer_expression "*piVar4" * identifier) = identifier) ;) }))) (expression_statement "iVar10 = src1->nelem;" (assignment_expression "iVar10 = src1->nelem" identifier = (field_expression "src1->nelem" identifier -> field_identifier)) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < iVar10)" ( (binary_expression "iVar5 < iVar10" identifier < identifier) )) ;) (if_statement "if (iVar7 < src2->nelem) {\n        iVar10 = src2->nelem - iVar7;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar11,pIVar8 + iVar7,iVar10 * 4);\n        dest->nelem = iVar11 + iVar10;\n      }\n      else {\n        dest->nelem = iVar11;\n      }" if (parenthesized_expression "(iVar7 < src2->nelem)" ( (binary_expression "iVar7 < src2->nelem" identifier < (field_expression "src2->nelem" identifier -> field_identifier)) )) (compound_statement "{\n        iVar10 = src2->nelem - iVar7;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar11,pIVar8 + iVar7,iVar10 * 4);\n        dest->nelem = iVar11 + iVar10;\n      }" { (expression_statement "iVar10 = src2->nelem - iVar7;" (assignment_expression "iVar10 = src2->nelem - iVar7" identifier = (binary_expression "src2->nelem - iVar7" (field_expression "src2->nelem" identifier -> field_identifier) - identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_00078100)(piVar2 + iVar11,pIVar8 + iVar7,iVar10 * 4);" (call_expression "(*(code *)PTR_memcpy_00078100)(piVar2 + iVar11,pIVar8 + iVar7,iVar10 * 4)" (parenthesized_expression "(*(code *)PTR_memcpy_00078100)" ( (pointer_expression "*(code *)PTR_memcpy_00078100" * (cast_expression "(code *)PTR_memcpy_00078100" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2 + iVar11,pIVar8 + iVar7,iVar10 * 4)" ( (binary_expression "piVar2 + iVar11" identifier + identifier) , (binary_expression "pIVar8 + iVar7" identifier + identifier) , (binary_expression "iVar10 * 4" identifier * number_literal) ))) ;) (expression_statement "dest->nelem = iVar11 + iVar10;" (assignment_expression "dest->nelem = iVar11 + iVar10" (field_expression "dest->nelem" identifier -> field_identifier) = (binary_expression "iVar11 + iVar10" identifier + identifier)) ;) }) (else_clause "else {\n        dest->nelem = iVar11;\n      }" else (compound_statement "{\n        dest->nelem = iVar11;\n      }" { (expression_statement "dest->nelem = iVar11;" (assignment_expression "dest->nelem = iVar11" (field_expression "dest->nelem" identifier -> field_identifier) = identifier) ;) }))) (return_statement "return _REG_NOERROR;" return identifier ;) })) (expression_statement "rVar3 = _REG_ESPACE;" (assignment_expression "rVar3 = _REG_ESPACE" identifier = identifier) ;) }))) (return_statement "return rVar3;" return identifier ;) })))
(translation_unit "undefined4 FUN_0004fca0(int *param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  \n  puVar1 = PTR_malloc_00078034;\n  if ((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)) {\n    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;\n    uVar3 = 0;\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n  }\n  else {\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_0004fca0(int *param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  \n  puVar1 = PTR_malloc_00078034;\n  if ((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)) {\n    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;\n    uVar3 = 0;\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n  }\n  else {\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0004fca0(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  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  \n  puVar1 = PTR_malloc_00078034;\n  if ((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)) {\n    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;\n    uVar3 = 0;\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n  }\n  else {\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }\n  return uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_malloc_00078034;" (assignment_expression "puVar1 = PTR_malloc_00078034" identifier = identifier) ;) (if_statement "if ((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)) {\n    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;\n    uVar3 = 0;\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n  }\n  else {\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }" if (parenthesized_expression "((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1))" ( (binary_expression "(param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar11 = *(int *)(param_2 + 4), iVar11 < 1)" ( (comma_expression "iVar11 = *(int *)(param_2 + 4), iVar11 < 1" (assignment_expression "iVar11 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) , (binary_expression "iVar11 < 1" identifier < number_literal)) ))) )) (compound_statement "{\n    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;\n    uVar3 = 0;\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n  }" { (if_statement "if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;" if (parenthesized_expression "((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4)))" ( (binary_expression "(param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 = param_3, 0 < *(int *)(param_3 + 4))" ( (comma_expression "param_2 = param_3, 0 < *(int *)(param_3 + 4)" (assignment_expression "param_2 = param_3" identifier = identifier) , (binary_expression "0 < *(int *)(param_3 + 4)" 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) )))))) ))) )) (goto_statement "goto LAB_0004fe0c;" goto statement_identifier ;)) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }" else (compound_statement "{\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }" { (if_statement "if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }" if (parenthesized_expression "((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1))" ( (binary_expression "(param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)" (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar13 = *(int *)(param_3 + 4), iVar13 < 1)" ( (comma_expression "iVar13 = *(int *)(param_3 + 4), iVar13 < 1" (assignment_expression "iVar13 = *(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) ))))) , (binary_expression "iVar13 < 1" identifier < number_literal)) ))) )) (compound_statement "{\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }" { (labeled_statement "LAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);" statement_identifier : (expression_statement "uVar3 = FUN_0004fbd0(param_1,param_2);" (assignment_expression "uVar3 = FUN_0004fbd0(param_1,param_2)" identifier = (call_expression "FUN_0004fbd0(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;)) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "*param_1 = iVar11 + iVar13;" (assignment_expression "*param_1 = iVar11 + iVar13" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar11 + iVar13" identifier + identifier)) ;) (expression_statement "piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);" (assignment_expression "piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4)" identifier = (cast_expression "(int *)(*(code *)puVar1)((iVar11 + iVar13) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)((iVar11 + iVar13) * 4)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((iVar11 + iVar13) * 4)" ( (binary_expression "(iVar11 + iVar13) * 4" (parenthesized_expression "(iVar11 + iVar13)" ( (binary_expression "iVar11 + iVar13" identifier + identifier) )) * number_literal) ))))) ;) (expression_statement "param_1[2] = (int)piVar2;" (assignment_expression "param_1[2] = (int)piVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }" { (expression_statement "iVar10 = *(int *)(param_2 + 8);" (assignment_expression "iVar10 = *(int *)(param_2 + 8)" identifier = (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) (do_statement "do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);" do (compound_statement "{\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      }" { (expression_statement "piVar4 = (int *)(iVar10 + iVar6 * 4);" (assignment_expression "piVar4 = (int *)(iVar10 + iVar6 * 4)" identifier = (cast_expression "(int *)(iVar10 + iVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + iVar6 * 4)" ( (binary_expression "iVar10 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) ;) (if_statement "if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }" if (parenthesized_expression "(iVar13 <= iVar8)" ( (binary_expression "iVar13 <= iVar8" identifier <= identifier) )) (compound_statement "{\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }" { (expression_statement "(*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);" (call_expression "(*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4)" (parenthesized_expression "(*(code *)PTR_memcpy_00078100)" ( (pointer_expression "*(code *)PTR_memcpy_00078100" * (cast_expression "(code *)PTR_memcpy_00078100" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar5,piVar4,(iVar11 - iVar6) * 4)" ( identifier , identifier , (binary_expression "(iVar11 - iVar6) * 4" (parenthesized_expression "(iVar11 - iVar6)" ( (binary_expression "iVar11 - iVar6" identifier - identifier) )) * number_literal) ))) ;) (expression_statement "param_1[1] = iVar12 + (iVar11 - iVar6);" (assignment_expression "param_1[1] = iVar12 + (iVar11 - iVar6)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar12 + (iVar11 - iVar6)" identifier + (parenthesized_expression "(iVar11 - iVar6)" ( (binary_expression "iVar11 - iVar6" identifier - identifier) )))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar9 = *(int *)(param_3 + 8);" (assignment_expression "iVar9 = *(int *)(param_3 + 8)" identifier = (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) ))))) ;) (expression_statement "iVar11 = *piVar4;" (assignment_expression "iVar11 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar7 = *(int *)(iVar9 + iVar8 * 4);" (assignment_expression "iVar7 = *(int *)(iVar9 + iVar8 * 4)" identifier = (pointer_expression "*(int *)(iVar9 + iVar8 * 4)" * (cast_expression "(int *)(iVar9 + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + iVar8 * 4)" ( (binary_expression "iVar9 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (if_statement "if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }" if (parenthesized_expression "(iVar7 < iVar11)" ( (binary_expression "iVar7 < iVar11" identifier < identifier) )) (compound_statement "{\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }" { (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "*piVar5 = iVar7;" (assignment_expression "*piVar5 = iVar7" (pointer_expression "*piVar5" * identifier) = identifier) ;) }) (else_clause "else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }" else (compound_statement "{\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }" { (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }" if (parenthesized_expression "(iVar11 == iVar7)" ( (binary_expression "iVar11 == iVar7" identifier == identifier) )) (compound_statement "{\n            iVar8 = iVar8 + 1;\n          }" { (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "*piVar5 = iVar11;" (assignment_expression "*piVar5 = iVar11" (pointer_expression "*piVar5" * identifier) = identifier) ;) }))) (expression_statement "iVar11 = *(int *)(param_2 + 4);" (assignment_expression "iVar11 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" identifier = (binary_expression "piVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 < iVar11)" ( (binary_expression "iVar6 < iVar11" identifier < identifier) )) ;) (if_statement "if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }" if (parenthesized_expression "(iVar8 < *(int *)(param_3 + 4))" ( (binary_expression "iVar8 < *(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) ))))) )) (compound_statement "{\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }" { (expression_statement "iVar11 = *(int *)(param_3 + 4) - iVar8;" (assignment_expression "iVar11 = *(int *)(param_3 + 4) - iVar8" identifier = (binary_expression "*(int *)(param_3 + 4) - iVar8" (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) )))) - identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);" (call_expression "(*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4)" (parenthesized_expression "(*(code *)PTR_memcpy_00078100)" ( (pointer_expression "*(code *)PTR_memcpy_00078100" * (cast_expression "(code *)PTR_memcpy_00078100" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4)" ( (binary_expression "piVar2 + iVar12" identifier + identifier) , (binary_expression "iVar9 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) , (binary_expression "iVar11 * 4" identifier * number_literal) ))) ;) (expression_statement "param_1[1] = iVar12 + iVar11;" (assignment_expression "param_1[1] = iVar12 + iVar11" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar12 + iVar11" identifier + identifier)) ;) }) (else_clause "else {\n        param_1[1] = iVar12;\n      }" else (compound_statement "{\n        param_1[1] = iVar12;\n      }" { (expression_statement "param_1[1] = iVar12;" (assignment_expression "param_1[1] = iVar12" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) }))) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar3 = 0xc;" (assignment_expression "uVar3 = 0xc" identifier = number_literal) ;) }))) (return_statement "return uVar3;" 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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT < LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT < LIT)) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;)) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (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) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , (binary_expression IDENT + (binary_expression IDENT * LIT)) , (binary_expression IDENT * LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0004fca0(int *param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  \n  puVar1 = PTR_malloc_00078034;\n  if ((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)) {\n    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;\n    uVar3 = 0;\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n  }\n  else {\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_0004fca0(int *param_1,int param_2,int param_3)" (identifier "FUN_0004fca0") (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  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  \n  puVar1 = PTR_malloc_00078034;\n  if ((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)) {\n    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;\n    uVar3 = 0;\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n  }\n  else {\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }\n  return uVar3;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (expression_statement "puVar1 = PTR_malloc_00078034;" (assignment_expression "puVar1 = PTR_malloc_00078034" (identifier "puVar1") (= "=") (identifier "PTR_malloc_00078034")) (; ";")) (if_statement "if ((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)) {\n    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;\n    uVar3 = 0;\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n  }\n  else {\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }" (if "if") (parenthesized_expression "((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1))" (( "(") (binary_expression "(param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)" (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar11 = *(int *)(param_2 + 4), iVar11 < 1)" (( "(") (comma_expression "iVar11 = *(int *)(param_2 + 4), iVar11 < 1" (assignment_expression "iVar11 = *(int *)(param_2 + 4)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (, ",") (binary_expression "iVar11 < 1" (identifier "iVar11") (< "<") (number_literal "1"))) () ")"))) () ")")) (compound_statement "{\n    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;\n    uVar3 = 0;\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n  }" ({ "{") (if_statement "if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;" (if "if") (parenthesized_expression "((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4)))" (( "(") (binary_expression "(param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))" (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 = param_3, 0 < *(int *)(param_3 + 4))" (( "(") (comma_expression "param_2 = param_3, 0 < *(int *)(param_3 + 4)" (assignment_expression "param_2 = param_3" (identifier "param_2") (= "=") (identifier "param_3")) (, ",") (binary_expression "0 < *(int *)(param_3 + 4)" (number_literal "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")) () ")")))))) () ")"))) () ")")) (goto_statement "goto LAB_0004fe0c;" (goto "goto") (statement_identifier "LAB_0004fe0c") (; ";"))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }" (else "else") (compound_statement "{\n    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }\n    *param_1 = iVar11 + iVar13;\n    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);\n    param_1[2] = (int)piVar2;\n    if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }\n    uVar3 = 0xc;\n  }" ({ "{") (if_statement "if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }" (if "if") (parenthesized_expression "((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1))" (( "(") (binary_expression "(param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)" (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar13 = *(int *)(param_3 + 4), iVar13 < 1)" (( "(") (comma_expression "iVar13 = *(int *)(param_3 + 4), iVar13 < 1" (assignment_expression "iVar13 = *(int *)(param_3 + 4)" (identifier "iVar13") (= "=") (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")) () ")"))))) (, ",") (binary_expression "iVar13 < 1" (identifier "iVar13") (< "<") (number_literal "1"))) () ")"))) () ")")) (compound_statement "{\nLAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);\n      return uVar3;\n    }" ({ "{") (labeled_statement "LAB_0004fe0c:\n      uVar3 = FUN_0004fbd0(param_1,param_2);" (statement_identifier "LAB_0004fe0c") (: ":") (expression_statement "uVar3 = FUN_0004fbd0(param_1,param_2);" (assignment_expression "uVar3 = FUN_0004fbd0(param_1,param_2)" (identifier "uVar3") (= "=") (call_expression "FUN_0004fbd0(param_1,param_2)" (identifier "FUN_0004fbd0") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "*param_1 = iVar11 + iVar13;" (assignment_expression "*param_1 = iVar11 + iVar13" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "iVar11 + iVar13" (identifier "iVar11") (+ "+") (identifier "iVar13"))) (; ";")) (expression_statement "piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);" (assignment_expression "piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4)" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)puVar1)((iVar11 + iVar13) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)puVar1)((iVar11 + iVar13) * 4)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "((iVar11 + iVar13) * 4)" (( "(") (binary_expression "(iVar11 + iVar13) * 4" (parenthesized_expression "(iVar11 + iVar13)" (( "(") (binary_expression "iVar11 + iVar13" (identifier "iVar11") (+ "+") (identifier "iVar13")) () ")")) (* "*") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "param_1[2] = (int)piVar2;" (assignment_expression "param_1[2] = (int)piVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2"))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar10 = *(int *)(param_2 + 8);\n      iVar12 = 0;\n      iVar8 = 0;\n      iVar6 = 0;\n      piVar5 = piVar2;\n      do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);\n      if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }\n      return 0;\n    }" ({ "{") (expression_statement "iVar10 = *(int *)(param_2 + 8);" (assignment_expression "iVar10 = *(int *)(param_2 + 8)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" (identifier "piVar5") (= "=") (identifier "piVar2")) (; ";")) (do_statement "do {\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      } while (iVar6 < iVar11);" (do "do") (compound_statement "{\n        piVar4 = (int *)(iVar10 + iVar6 * 4);\n        if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }\n        iVar9 = *(int *)(param_3 + 8);\n        iVar11 = *piVar4;\n        iVar7 = *(int *)(iVar9 + iVar8 * 4);\n        iVar12 = iVar12 + 1;\n        if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }\n        iVar11 = *(int *)(param_2 + 4);\n        piVar5 = piVar5 + 1;\n      }" ({ "{") (expression_statement "piVar4 = (int *)(iVar10 + iVar6 * 4);" (assignment_expression "piVar4 = (int *)(iVar10 + iVar6 * 4)" (identifier "piVar4") (= "=") (cast_expression "(int *)(iVar10 + iVar6 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + iVar6 * 4)" (( "(") (binary_expression "iVar10 + iVar6 * 4" (identifier "iVar10") (+ "+") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) () ")")))) (; ";")) (if_statement "if (iVar13 <= iVar8) {\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }" (if "if") (parenthesized_expression "(iVar13 <= iVar8)" (( "(") (binary_expression "iVar13 <= iVar8" (identifier "iVar13") (<= "<=") (identifier "iVar8")) () ")")) (compound_statement "{\n          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);\n          param_1[1] = iVar12 + (iVar11 - iVar6);\n          return 0;\n        }" ({ "{") (expression_statement "(*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);" (call_expression "(*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4)" (parenthesized_expression "(*(code *)PTR_memcpy_00078100)" (( "(") (pointer_expression "*(code *)PTR_memcpy_00078100" (* "*") (cast_expression "(code *)PTR_memcpy_00078100" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_00078100"))) () ")")) (argument_list "(piVar5,piVar4,(iVar11 - iVar6) * 4)" (( "(") (identifier "piVar5") (, ",") (identifier "piVar4") (, ",") (binary_expression "(iVar11 - iVar6) * 4" (parenthesized_expression "(iVar11 - iVar6)" (( "(") (binary_expression "iVar11 - iVar6" (identifier "iVar11") (- "-") (identifier "iVar6")) () ")")) (* "*") (number_literal "4")) () ")"))) (; ";")) (expression_statement "param_1[1] = iVar12 + (iVar11 - iVar6);" (assignment_expression "param_1[1] = iVar12 + (iVar11 - iVar6)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar12 + (iVar11 - iVar6)" (identifier "iVar12") (+ "+") (parenthesized_expression "(iVar11 - iVar6)" (( "(") (binary_expression "iVar11 - iVar6" (identifier "iVar11") (- "-") (identifier "iVar6")) () ")")))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar9 = *(int *)(param_3 + 8);" (assignment_expression "iVar9 = *(int *)(param_3 + 8)" (identifier "iVar9") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "iVar11 = *piVar4;" (assignment_expression "iVar11 = *piVar4" (identifier "iVar11") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "iVar7 = *(int *)(iVar9 + iVar8 * 4);" (assignment_expression "iVar7 = *(int *)(iVar9 + iVar8 * 4)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar9 + iVar8 * 4)" (* "*") (cast_expression "(int *)(iVar9 + iVar8 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + iVar8 * 4)" (( "(") (binary_expression "iVar9 + iVar8 * 4" (identifier "iVar9") (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar7 < iVar11) {\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }\n        else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }" (if "if") (parenthesized_expression "(iVar7 < iVar11)" (( "(") (binary_expression "iVar7 < iVar11" (identifier "iVar7") (< "<") (identifier "iVar11")) () ")")) (compound_statement "{\n          iVar8 = iVar8 + 1;\n          *piVar5 = iVar7;\n        }" ({ "{") (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*piVar5 = iVar7;" (assignment_expression "*piVar5 = iVar7" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "iVar7")) (; ";")) (} "}")) (else_clause "else {\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }" (else "else") (compound_statement "{\n          iVar6 = iVar6 + 1;\n          if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }\n          *piVar5 = iVar11;\n        }" ({ "{") (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar11 == iVar7) {\n            iVar8 = iVar8 + 1;\n          }" (if "if") (parenthesized_expression "(iVar11 == iVar7)" (( "(") (binary_expression "iVar11 == iVar7" (identifier "iVar11") (== "==") (identifier "iVar7")) () ")")) (compound_statement "{\n            iVar8 = iVar8 + 1;\n          }" ({ "{") (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*piVar5 = iVar11;" (assignment_expression "*piVar5 = iVar11" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "iVar11")) (; ";")) (} "}")))) (expression_statement "iVar11 = *(int *)(param_2 + 4);" (assignment_expression "iVar11 = *(int *)(param_2 + 4)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" (identifier "piVar5") (= "=") (binary_expression "piVar5 + 1" (identifier "piVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 < iVar11)" (( "(") (binary_expression "iVar6 < iVar11" (identifier "iVar6") (< "<") (identifier "iVar11")) () ")")) (; ";")) (if_statement "if (iVar8 < *(int *)(param_3 + 4)) {\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }\n      else {\n        param_1[1] = iVar12;\n      }" (if "if") (parenthesized_expression "(iVar8 < *(int *)(param_3 + 4))" (( "(") (binary_expression "iVar8 < *(int *)(param_3 + 4)" (identifier "iVar8") (< "<") (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")) () ")"))))) () ")")) (compound_statement "{\n        iVar11 = *(int *)(param_3 + 4) - iVar8;\n        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);\n        param_1[1] = iVar12 + iVar11;\n      }" ({ "{") (expression_statement "iVar11 = *(int *)(param_3 + 4) - iVar8;" (assignment_expression "iVar11 = *(int *)(param_3 + 4) - iVar8" (identifier "iVar11") (= "=") (binary_expression "*(int *)(param_3 + 4) - iVar8" (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")) () ")")))) (- "-") (identifier "iVar8"))) (; ";")) (expression_statement "(*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);" (call_expression "(*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4)" (parenthesized_expression "(*(code *)PTR_memcpy_00078100)" (( "(") (pointer_expression "*(code *)PTR_memcpy_00078100" (* "*") (cast_expression "(code *)PTR_memcpy_00078100" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_00078100"))) () ")")) (argument_list "(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4)" (( "(") (binary_expression "piVar2 + iVar12" (identifier "piVar2") (+ "+") (identifier "iVar12")) (, ",") (binary_expression "iVar9 + iVar8 * 4" (identifier "iVar9") (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) (, ",") (binary_expression "iVar11 * 4" (identifier "iVar11") (* "*") (number_literal "4")) () ")"))) (; ";")) (expression_statement "param_1[1] = iVar12 + iVar11;" (assignment_expression "param_1[1] = iVar12 + iVar11" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar12 + iVar11" (identifier "iVar12") (+ "+") (identifier "iVar11"))) (; ";")) (} "}")) (else_clause "else {\n        param_1[1] = iVar12;\n      }" (else "else") (compound_statement "{\n        param_1[1] = iVar12;\n      }" ({ "{") (expression_statement "param_1[1] = iVar12;" (assignment_expression "param_1[1] = iVar12" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar12")) (; ";")) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar3 = 0xc;" (assignment_expression "uVar3 = 0xc" (identifier "uVar3") (= "=") (number_literal "0xc")) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

type_1 function_1(type_2 *dest,type_2 *var_1,type_2 *var_3)

{
  type_3 *puVar1;
  int *var_6;
  type_1 rVar3;
  int *var_12;
  int var_9;
  int var_11;
  int var_7;
  type_4 *var_13;
  type_4 *var_8;
  int var_2;
  int var_10;
  int var_4;
  
  puVar1 = PTR_malloc_00078034;
  if ((var_1 == (type_2 *)0x0) || (var_2 = var_1->nelem, var_2 < 1)) {
    if ((var_3 != (type_2 *)0x0) && (var_1 = var_3, 0 < var_3->nelem)) goto LAB_0004fe0c;
    rVar3 = _REG_NOERROR;
    dest->alloc = 0;
    dest->nelem = 0;
    dest->elems = (type_4 *)0x0;
  }
  else {
    if ((var_3 == (type_2 *)0x0) || (var_4 = var_3->nelem, var_4 < 1)) {
LAB_0004fe0c:
      rVar3 = var_5(dest,var_1);
      return rVar3;
    }
    dest->alloc = var_2 + var_4;
    var_6 = (int *)(*(type_5 *)puVar1)((var_2 + var_4) * 4);
    dest->elems = var_6;
    if (var_6 != (int *)0x0) {
      var_8 = var_1->elems;
      var_10 = 0;
      var_7 = 0;
      var_9 = 0;
      var_12 = var_6;
      do {
        if (var_4 <= var_7) {
          (*(type_5 *)PTR_memcpy_00078100)(var_12,var_8 + var_9,(var_2 - var_9) * 4);
          dest->nelem = var_10 + (var_2 - var_9);
          return _REG_NOERROR;
        }
        var_13 = var_3->elems;
        var_2 = var_8[var_9];
        var_11 = var_13[var_7];
        var_10 = var_10 + 1;
        if (var_11 < var_2) {
          var_7 = var_7 + 1;
          *var_12 = var_11;
        }
        else {
          var_9 = var_9 + 1;
          if (var_2 == var_11) {
            var_7 = var_7 + 1;
          }
          *var_12 = var_2;
        }
        var_2 = var_1->nelem;
        var_12 = var_12 + 1;
      } while (var_9 < var_2);
      if (var_7 < var_3->nelem) {
        var_2 = var_3->nelem - var_7;
        (*(type_5 *)PTR_memcpy_00078100)(var_6 + var_10,var_13 + var_7,var_2 * 4);
        dest->nelem = var_10 + var_2;
      }
      else {
        dest->nelem = var_10;
      }
      return _REG_NOERROR;
    }
    rVar3 = _REG_ESPACE;
  }
  return rVar3;
}


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

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

{
  undefined *puVar1;
  int *piVar2;
  undefined4 uVar3;
  int *piVar4;
  int *piVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  int iVar13;
  
  puVar1 = PTR_malloc_00078034;
  if ((param_2 == 0) || (iVar11 = *(int *)(param_2 + 4), iVar11 < 1)) {
    if ((param_3 != 0) && (param_2 = param_3, 0 < *(int *)(param_3 + 4))) goto LAB_0004fe0c;
    uVar3 = 0;
    *param_1 = 0;
    param_1[1] = 0;
    param_1[2] = 0;
  }
  else {
    if ((param_3 == 0) || (iVar13 = *(int *)(param_3 + 4), iVar13 < 1)) {
LAB_0004fe0c:
      uVar3 = FUN_0004fbd0(param_1,param_2);
      return uVar3;
    }
    *param_1 = iVar11 + iVar13;
    piVar2 = (int *)(*(code *)puVar1)((iVar11 + iVar13) * 4);
    param_1[2] = (int)piVar2;
    if (piVar2 != (int *)0x0) {
      iVar10 = *(int *)(param_2 + 8);
      iVar12 = 0;
      iVar8 = 0;
      iVar6 = 0;
      piVar5 = piVar2;
      do {
        piVar4 = (int *)(iVar10 + iVar6 * 4);
        if (iVar13 <= iVar8) {
          (*(code *)PTR_memcpy_00078100)(piVar5,piVar4,(iVar11 - iVar6) * 4);
          param_1[1] = iVar12 + (iVar11 - iVar6);
          return 0;
        }
        iVar9 = *(int *)(param_3 + 8);
        iVar11 = *piVar4;
        iVar7 = *(int *)(iVar9 + iVar8 * 4);
        iVar12 = iVar12 + 1;
        if (iVar7 < iVar11) {
          iVar8 = iVar8 + 1;
          *piVar5 = iVar7;
        }
        else {
          iVar6 = iVar6 + 1;
          if (iVar11 == iVar7) {
            iVar8 = iVar8 + 1;
          }
          *piVar5 = iVar11;
        }
        iVar11 = *(int *)(param_2 + 4);
        piVar5 = piVar5 + 1;
      } while (iVar6 < iVar11);
      if (iVar8 < *(int *)(param_3 + 4)) {
        iVar11 = *(int *)(param_3 + 4) - iVar8;
        (*(code *)PTR_memcpy_00078100)(piVar2 + iVar12,iVar9 + iVar8 * 4,iVar11 * 4);
        param_1[1] = iVar12 + iVar11;
      }
      else {
        param_1[1] = iVar12;
      }
      return 0;
    }
    uVar3 = 0xc;
  }
  return uVar3;
}

