
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  int iVar1;
  int iVar2;
  Idx *pIVar3;
  Idx *pIVar4;
  int iVar5;
  int iVar6;
  reg_errcode_t rVar7;
  Idx *pIVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  
  if (src1 == (re_node_set *)0x0) {
LAB_0007c924:
    if ((src2 != (re_node_set *)0x0) && (0 < src2->nelem)) {
      rVar7 = re_node_set_init_copy(dest,src2);
      return rVar7;
    }
    dest->alloc = 0;
    dest->nelem = 0;
    dest->elems = (Idx *)0x0;
    return _REG_NOERROR;
  }
  iVar1 = src1->nelem;
  if ((src2 == (re_node_set *)0x0) || (iVar1 < 1)) {
    if (iVar1 < 1) goto LAB_0007c924;
  }
  else {
    iVar2 = src2->nelem;
    if (0 < iVar2) {
      dest->alloc = iVar2 + iVar1;
      pIVar8 = (Idx *)malloc((iVar2 + iVar1) * 4);
      dest->elems = pIVar8;
      if (pIVar8 == (Idx *)0x0) {
        return _REG_ESPACE;
      }
      pIVar3 = src1->elems;
      pIVar4 = src2->elems;
      iVar10 = 0;
      iVar9 = 0;
      iVar11 = 0;
      while( true ) {
        iVar5 = pIVar3[iVar10];
        iVar12 = iVar11 + 1;
        iVar6 = pIVar4[iVar9];
        if (iVar6 < iVar5) {
          iVar9 = iVar9 + 1;
          pIVar8[iVar11] = iVar6;
        }
        else {
          iVar10 = iVar10 + 1;
          iVar9 = iVar9 + (uint)(iVar5 == iVar6);
          pIVar8[iVar11] = iVar5;
        }
        if (iVar1 <= iVar10) break;
        iVar11 = iVar12;
        if (iVar2 <= iVar9) {
          pIVar8 = pIVar8 + iVar12;
          iVar12 = iVar12 + (iVar1 - iVar10);
          memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4);
LAB_0007c9fa:
          dest->nelem = iVar12;
          return _REG_NOERROR;
        }
      }
      if (iVar9 < iVar2) {
        pIVar8 = pIVar8 + iVar12;
        iVar12 = iVar12 + (iVar2 - iVar9);
        memcpy(pIVar8,pIVar4 + iVar9,(iVar2 - iVar9) * 4);
      }
      goto LAB_0007c9fa;
    }
  }
  rVar7 = re_node_set_init_copy(dest,src1);
  return rVar7;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 uVar7;
  void *pvVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  
  if (param_2 == 0) {
LAB_0007c924:
    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {
      uVar7 = FUN_0007c830();
      return uVar7;
    }
    *param_1 = 0;
    param_1[1] = 0;
    param_1[2] = 0;
    return 0;
  }
  iVar1 = *(int *)(param_2 + 4);
  if ((param_3 == 0) || (iVar1 < 1)) {
    if (iVar1 < 1) goto LAB_0007c924;
  }
  else {
    iVar2 = *(int *)(param_3 + 4);
    if (0 < iVar2) {
      *param_1 = iVar2 + iVar1;
      pvVar8 = malloc((iVar2 + iVar1) * 4);
      param_1[2] = (int)pvVar8;
      if (pvVar8 == (void *)0x0) {
        return 0xc;
      }
      iVar3 = *(int *)(param_2 + 8);
      iVar4 = *(int *)(param_3 + 8);
      iVar10 = 0;
      iVar11 = 0;
      iVar9 = 0;
      while( true ) {
        iVar5 = *(int *)(iVar3 + iVar10 * 4);
        iVar11 = iVar11 + 1;
        iVar6 = *(int *)(iVar4 + iVar9 * 4);
        if (iVar6 < iVar5) {
          iVar9 = iVar9 + 1;
          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;
        }
        else {
          iVar10 = iVar10 + 1;
          iVar9 = iVar9 + (uint)(iVar5 == iVar6);
          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;
        }
        if (iVar1 <= iVar10) break;
        if (iVar2 <= iVar9) {
          iVar2 = iVar11 * 4;
          iVar11 = iVar11 + (iVar1 - iVar10);
          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);
LAB_0007c9fa:
          param_1[1] = iVar11;
          return 0;
        }
      }
      if (iVar9 < iVar2) {
        iVar1 = iVar11 * 4;
        iVar11 = iVar11 + (iVar2 - iVar9);
        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);
      }
      goto LAB_0007c9fa;
    }
  }
  uVar7 = FUN_0007c830();
  return uVar7;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016f50
ADD EBX,0x4240b
SUB ESP,0x2c
MOV EDX,dword ptr [ESP + 0x44]
MOV dword ptr [ESP + 0xc],EBX
MOV ESI,dword ptr [ESP + 0x40]
MOV EDI,dword ptr [ESP + 0x48]
TEST EDX,EDX
JZ 0x0007c924
TEST EDI,EDI
MOV EBP,dword ptr [EDX + 0x4]
JZ 0x0007c920
TEST EBP,EBP
JLE 0x0007c920
MOV EAX,dword ptr [EDI + 0x4]
TEST EAX,EAX
MOV dword ptr [ESP + 0x8],EAX
JG 0x0007c968
MOV dword ptr [ESP + 0x40],ESI
MOV dword ptr [ESP + 0x44],EDX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x0007c830
TEST EBP,EBP
JG 0x0007c90c
TEST EDI,EDI
JZ 0x0007c92f
MOV EAX,dword ptr [EDI + 0x4]
TEST EAX,EAX
JG 0x0007c950
MOV dword ptr [ESI],0x0
MOV dword ptr [ESI + 0x4],0x0
XOR EAX,EAX
MOV dword ptr [ESI + 0x8],0x0
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x44],EDI
MOV dword ptr [ESP + 0x40],ESI
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x0007c830
ADD EAX,EBP
MOV dword ptr [ESP + 0x14],EDX
SUB ESP,0xc
MOV dword ptr [ESI],EAX
SHL EAX,0x2
PUSH EAX
CALL 0x00014140
MOV dword ptr [ESP + 0x20],EAX
ADD ESP,0x10
TEST EAX,EAX
MOV dword ptr [ESI + 0x8],EAX
MOV EDX,dword ptr [ESP + 0x14]
JZ 0x0007ca80
MOV ECX,dword ptr [EDX + 0x8]
MOV EAX,dword ptr [EDI + 0x8]
XOR EDX,EDX
MOV dword ptr [ESP + 0x18],ESI
XOR EDI,EDI
MOV dword ptr [ESP + 0x14],EAX
MOV dword ptr [ESP + 0x1c],ECX
XOR EAX,EAX
MOV ESI,ECX
JMP 0x0007c9cd
SETZ BL
ADD EDX,0x1
MOVZX EBX,BL
ADD EAX,EBX
MOV EBX,dword ptr [ESP + 0x10]
MOV dword ptr [EBX + EDI*0x4 + -0x4],ECX
CMP EBP,EDX
JLE 0x0007c9f0
CMP dword ptr [ESP + 0x8],EAX
JLE 0x0007ca10
MOV EBX,dword ptr [ESP + 0x14]
MOV ECX,dword ptr [ESI + EDX*0x4]
ADD EDI,0x1
MOV EBX,dword ptr [EBX + EAX*0x4]
CMP ECX,EBX
JLE 0x0007c9b0
MOV ECX,dword ptr [ESP + 0x10]
ADD EAX,0x1
MOV dword ptr [ECX + EDI*0x4 + -0x4],EBX
JMP 0x0007c9c3
CMP dword ptr [ESP + 0x8],EAX
MOV ESI,dword ptr [ESP + 0x18]
JG 0x0007ca48
MOV dword ptr [ESI + 0x4],EDI
ADD ESP,0x2c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x10]
MOV EBX,dword ptr [ESP + 0x1c]
SUB EBP,EDX
LEA ECX,[EBP*0x4 + 0x0]
MOV ESI,dword ptr [ESP + 0x18]
SUB ESP,0x4
LEA EAX,[EAX + EDI*0x4]
LEA EDX,[EBX + EDX*0x4]
PUSH ECX
ADD EDI,EBP
PUSH EDX
PUSH EAX
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x00013e80
ADD ESP,0x10
JMP 0x0007c9fa
MOV EBP,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0x10]
SUB ESP,0x4
MOV EBX,dword ptr [ESP + 0x18]
SUB EBP,EAX
LEA ECX,[ECX + EDI*0x4]
LEA EAX,[EBX + EAX*0x4]
LEA EDX,[EBP*0x4 + 0x0]
ADD EDI,EBP
PUSH EDX
PUSH EAX
PUSH ECX
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x00013e80
ADD ESP,0x10
JMP 0x0007c9fa
MOV EAX,0xc
JMP 0x0007c945
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0007c8d0(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if (param_2 == 0) {\nLAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n    return 0;\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((param_3 == 0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }\n  uVar7 = FUN_0007c830();\n  return uVar7;\n}\n\n" comment (function_definition "undefined4 FUN_0007c8d0(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if (param_2 == 0) {\nLAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n    return 0;\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((param_3 == 0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }\n  uVar7 = FUN_0007c830();\n  return uVar7;\n}" type_identifier (function_declarator "FUN_0007c8d0(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if (param_2 == 0) {\nLAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n    return 0;\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((param_3 == 0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }\n  uVar7 = FUN_0007c830();\n  return uVar7;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "void *pvVar8;" primitive_type (pointer_declarator "*pvVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\nLAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n    return 0;\n  }" { (labeled_statement "LAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }" statement_identifier : (if_statement "if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }" if (parenthesized_expression "((param_3 != 0) && (0 < *(int *)(param_3 + 4)))" ( (binary_expression "(param_3 != 0) && (0 < *(int *)(param_3 + 4))" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(0 < *(int *)(param_3 + 4))" ( (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) ))))) ))) )) (compound_statement "{\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }" { (expression_statement "uVar7 = FUN_0007c830();" (assignment_expression "uVar7 = FUN_0007c830()" identifier = (call_expression "FUN_0007c830()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar7;" return identifier ;) }))) (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) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((param_3 == 0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }" if (parenthesized_expression "((param_3 == 0) || (iVar1 < 1))" ( (binary_expression "(param_3 == 0) || (iVar1 < 1)" (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) ))) )) (compound_statement "{\n    if (iVar1 < 1) goto LAB_0007c924;\n  }" { (if_statement "if (iVar1 < 1) goto LAB_0007c924;" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (goto_statement "goto LAB_0007c924;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }" else (compound_statement "{\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }" { (expression_statement "iVar2 = *(int *)(param_3 + 4);" (assignment_expression "iVar2 = *(int *)(param_3 + 4)" identifier = (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }" { (expression_statement "*param_1 = iVar2 + iVar1;" (assignment_expression "*param_1 = iVar2 + iVar1" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar2 + iVar1" identifier + identifier)) ;) (expression_statement "pvVar8 = malloc((iVar2 + iVar1) * 4);" (assignment_expression "pvVar8 = malloc((iVar2 + iVar1) * 4)" identifier = (call_expression "malloc((iVar2 + iVar1) * 4)" identifier (argument_list "((iVar2 + iVar1) * 4)" ( (binary_expression "(iVar2 + iVar1) * 4" (parenthesized_expression "(iVar2 + iVar1)" ( (binary_expression "iVar2 + iVar1" identifier + identifier) )) * number_literal) )))) ;) (expression_statement "param_1[2] = (int)pvVar8;" (assignment_expression "param_1[2] = (int)pvVar8" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }" if (parenthesized_expression "(pvVar8 == (void *)0x0)" ( (binary_expression "pvVar8 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0xc;\n      }" { (return_statement "return 0xc;" return number_literal ;) })) (expression_statement "iVar3 = *(int *)(param_2 + 8);" (assignment_expression "iVar3 = *(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 "iVar4 = *(int *)(param_3 + 8);" (assignment_expression "iVar4 = *(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 "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }" { (expression_statement "iVar5 = *(int *)(iVar3 + iVar10 * 4);" (assignment_expression "iVar5 = *(int *)(iVar3 + iVar10 * 4)" identifier = (pointer_expression "*(int *)(iVar3 + iVar10 * 4)" * (cast_expression "(int *)(iVar3 + iVar10 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar10 * 4)" ( (binary_expression "iVar3 + iVar10 * 4" identifier + (binary_expression "iVar10 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = *(int *)(iVar4 + iVar9 * 4);" (assignment_expression "iVar6 = *(int *)(iVar4 + iVar9 * 4)" identifier = (pointer_expression "*(int *)(iVar4 + iVar9 * 4)" * (cast_expression "(int *)(iVar4 + iVar9 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar9 * 4)" ( (binary_expression "iVar4 + iVar9 * 4" identifier + (binary_expression "iVar9 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }" if (parenthesized_expression "(iVar6 < iVar5)" ( (binary_expression "iVar6 < iVar5" identifier < identifier) )) (compound_statement "{\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;" (assignment_expression "*(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6" (pointer_expression "*(int *)((int)pvVar8 + iVar11 * 4 + -4)" * (cast_expression "(int *)((int)pvVar8 + iVar11 * 4 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + iVar11 * 4 + -4)" ( (binary_expression "(int)pvVar8 + iVar11 * 4 + -4" (binary_expression "(int)pvVar8 + iVar11 * 4" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar11 * 4" identifier * number_literal)) + number_literal) )))) = identifier) ;) }) (else_clause "else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }" else (compound_statement "{\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }" { (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "iVar9 = iVar9 + (uint)(iVar5 == iVar6);" (assignment_expression "iVar9 = iVar9 + (uint)(iVar5 == iVar6)" identifier = (binary_expression "iVar9 + (uint)(iVar5 == iVar6)" identifier + (call_expression "(uint)(iVar5 == iVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar5 == iVar6)" ( (binary_expression "iVar5 == iVar6" identifier == identifier) ))))) ;) (expression_statement "*(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;" (assignment_expression "*(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5" (pointer_expression "*(int *)((int)pvVar8 + iVar11 * 4 + -4)" * (cast_expression "(int *)((int)pvVar8 + iVar11 * 4 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + iVar11 * 4 + -4)" ( (binary_expression "(int)pvVar8 + iVar11 * 4 + -4" (binary_expression "(int)pvVar8 + iVar11 * 4" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar11 * 4" identifier * number_literal)) + number_literal) )))) = identifier) ;) }))) (if_statement "if (iVar1 <= iVar10) break;" if (parenthesized_expression "(iVar1 <= iVar10)" ( (binary_expression "iVar1 <= iVar10" identifier <= identifier) )) (break_statement "break;" break ;)) (if_statement "if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }" if (parenthesized_expression "(iVar2 <= iVar9)" ( (binary_expression "iVar2 <= iVar9" identifier <= identifier) )) (compound_statement "{\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }" { (expression_statement "iVar2 = iVar11 * 4;" (assignment_expression "iVar2 = iVar11 * 4" identifier = (binary_expression "iVar11 * 4" identifier * number_literal)) ;) (expression_statement "iVar11 = iVar11 + (iVar1 - iVar10);" (assignment_expression "iVar11 = iVar11 + (iVar1 - iVar10)" identifier = (binary_expression "iVar11 + (iVar1 - iVar10)" identifier + (parenthesized_expression "(iVar1 - iVar10)" ( (binary_expression "iVar1 - iVar10" identifier - identifier) )))) ;) (expression_statement "memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);" (call_expression "memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4)" identifier (argument_list "((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4)" ( (cast_expression "(void *)((int)pvVar8 + iVar2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + iVar2)" ( (binary_expression "(int)pvVar8 + iVar2" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , (cast_expression "(void *)(iVar3 + iVar10 * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar10 * 4)" ( (binary_expression "iVar3 + iVar10 * 4" identifier + (binary_expression "iVar10 * 4" identifier * number_literal)) ))) , (binary_expression "(iVar1 - iVar10) * 4" (parenthesized_expression "(iVar1 - iVar10)" ( (binary_expression "iVar1 - iVar10" identifier - identifier) )) * number_literal) ))) ;) (labeled_statement "LAB_0007c9fa:\n          param_1[1] = iVar11;" statement_identifier : (expression_statement "param_1[1] = iVar11;" (assignment_expression "param_1[1] = iVar11" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;)) (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }" if (parenthesized_expression "(iVar9 < iVar2)" ( (binary_expression "iVar9 < iVar2" identifier < identifier) )) (compound_statement "{\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }" { (expression_statement "iVar1 = iVar11 * 4;" (assignment_expression "iVar1 = iVar11 * 4" identifier = (binary_expression "iVar11 * 4" identifier * number_literal)) ;) (expression_statement "iVar11 = iVar11 + (iVar2 - iVar9);" (assignment_expression "iVar11 = iVar11 + (iVar2 - iVar9)" identifier = (binary_expression "iVar11 + (iVar2 - iVar9)" identifier + (parenthesized_expression "(iVar2 - iVar9)" ( (binary_expression "iVar2 - iVar9" identifier - identifier) )))) ;) (expression_statement "memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);" (call_expression "memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4)" identifier (argument_list "((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4)" ( (cast_expression "(void *)((int)pvVar8 + iVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + iVar1)" ( (binary_expression "(int)pvVar8 + iVar1" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , (cast_expression "(void *)(iVar4 + iVar9 * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar9 * 4)" ( (binary_expression "iVar4 + iVar9 * 4" identifier + (binary_expression "iVar9 * 4" identifier * number_literal)) ))) , (binary_expression "(iVar2 - iVar9) * 4" (parenthesized_expression "(iVar2 - iVar9)" ( (binary_expression "iVar2 - iVar9" identifier - identifier) )) * number_literal) ))) ;) })) (goto_statement "goto LAB_0007c9fa;" goto statement_identifier ;) })) }))) (expression_statement "uVar7 = FUN_0007c830();" (assignment_expression "uVar7 = FUN_0007c830()" identifier = (call_expression "FUN_0007c830()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar7;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nreg_errcode_t re_node_set_init_union(re_node_set *dest,re_node_set *src1,re_node_set *src2)\n\n{\n  int iVar1;\n  int iVar2;\n  Idx *pIVar3;\n  Idx *pIVar4;\n  int iVar5;\n  int iVar6;\n  reg_errcode_t rVar7;\n  Idx *pIVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  if (src1 == (re_node_set *)0x0) {\nLAB_0007c924:\n    if ((src2 != (re_node_set *)0x0) && (0 < src2->nelem)) {\n      rVar7 = re_node_set_init_copy(dest,src2);\n      return rVar7;\n    }\n    dest->alloc = 0;\n    dest->nelem = 0;\n    dest->elems = (Idx *)0x0;\n    return _REG_NOERROR;\n  }\n  iVar1 = src1->nelem;\n  if ((src2 == (re_node_set *)0x0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = src2->nelem;\n    if (0 < iVar2) {\n      dest->alloc = iVar2 + iVar1;\n      pIVar8 = (Idx *)malloc((iVar2 + iVar1) * 4);\n      dest->elems = pIVar8;\n      if (pIVar8 == (Idx *)0x0) {\n        return _REG_ESPACE;\n      }\n      pIVar3 = src1->elems;\n      pIVar4 = src2->elems;\n      iVar10 = 0;\n      iVar9 = 0;\n      iVar11 = 0;\n      while( true ) {\n        iVar5 = pIVar3[iVar10];\n        iVar12 = iVar11 + 1;\n        iVar6 = pIVar4[iVar9];\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          pIVar8[iVar11] = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          pIVar8[iVar11] = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        iVar11 = iVar12;\n        if (iVar2 <= iVar9) {\n          pIVar8 = pIVar8 + iVar12;\n          iVar12 = iVar12 + (iVar1 - iVar10);\n          memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          dest->nelem = iVar12;\n          return _REG_NOERROR;\n        }\n      }\n      if (iVar9 < iVar2) {\n        pIVar8 = pIVar8 + iVar12;\n        iVar12 = iVar12 + (iVar2 - iVar9);\n        memcpy(pIVar8,pIVar4 + iVar9,(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }\n  rVar7 = re_node_set_init_copy(dest,src1);\n  return rVar7;\n}\n\n" comment (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  int iVar1;\n  int iVar2;\n  Idx *pIVar3;\n  Idx *pIVar4;\n  int iVar5;\n  int iVar6;\n  reg_errcode_t rVar7;\n  Idx *pIVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  if (src1 == (re_node_set *)0x0) {\nLAB_0007c924:\n    if ((src2 != (re_node_set *)0x0) && (0 < src2->nelem)) {\n      rVar7 = re_node_set_init_copy(dest,src2);\n      return rVar7;\n    }\n    dest->alloc = 0;\n    dest->nelem = 0;\n    dest->elems = (Idx *)0x0;\n    return _REG_NOERROR;\n  }\n  iVar1 = src1->nelem;\n  if ((src2 == (re_node_set *)0x0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = src2->nelem;\n    if (0 < iVar2) {\n      dest->alloc = iVar2 + iVar1;\n      pIVar8 = (Idx *)malloc((iVar2 + iVar1) * 4);\n      dest->elems = pIVar8;\n      if (pIVar8 == (Idx *)0x0) {\n        return _REG_ESPACE;\n      }\n      pIVar3 = src1->elems;\n      pIVar4 = src2->elems;\n      iVar10 = 0;\n      iVar9 = 0;\n      iVar11 = 0;\n      while( true ) {\n        iVar5 = pIVar3[iVar10];\n        iVar12 = iVar11 + 1;\n        iVar6 = pIVar4[iVar9];\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          pIVar8[iVar11] = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          pIVar8[iVar11] = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        iVar11 = iVar12;\n        if (iVar2 <= iVar9) {\n          pIVar8 = pIVar8 + iVar12;\n          iVar12 = iVar12 + (iVar1 - iVar10);\n          memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          dest->nelem = iVar12;\n          return _REG_NOERROR;\n        }\n      }\n      if (iVar9 < iVar2) {\n        pIVar8 = pIVar8 + iVar12;\n        iVar12 = iVar12 + (iVar2 - iVar9);\n        memcpy(pIVar8,pIVar4 + iVar9,(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }\n  rVar7 = re_node_set_init_copy(dest,src1);\n  return rVar7;\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  int iVar1;\n  int iVar2;\n  Idx *pIVar3;\n  Idx *pIVar4;\n  int iVar5;\n  int iVar6;\n  reg_errcode_t rVar7;\n  Idx *pIVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  if (src1 == (re_node_set *)0x0) {\nLAB_0007c924:\n    if ((src2 != (re_node_set *)0x0) && (0 < src2->nelem)) {\n      rVar7 = re_node_set_init_copy(dest,src2);\n      return rVar7;\n    }\n    dest->alloc = 0;\n    dest->nelem = 0;\n    dest->elems = (Idx *)0x0;\n    return _REG_NOERROR;\n  }\n  iVar1 = src1->nelem;\n  if ((src2 == (re_node_set *)0x0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = src2->nelem;\n    if (0 < iVar2) {\n      dest->alloc = iVar2 + iVar1;\n      pIVar8 = (Idx *)malloc((iVar2 + iVar1) * 4);\n      dest->elems = pIVar8;\n      if (pIVar8 == (Idx *)0x0) {\n        return _REG_ESPACE;\n      }\n      pIVar3 = src1->elems;\n      pIVar4 = src2->elems;\n      iVar10 = 0;\n      iVar9 = 0;\n      iVar11 = 0;\n      while( true ) {\n        iVar5 = pIVar3[iVar10];\n        iVar12 = iVar11 + 1;\n        iVar6 = pIVar4[iVar9];\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          pIVar8[iVar11] = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          pIVar8[iVar11] = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        iVar11 = iVar12;\n        if (iVar2 <= iVar9) {\n          pIVar8 = pIVar8 + iVar12;\n          iVar12 = iVar12 + (iVar1 - iVar10);\n          memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          dest->nelem = iVar12;\n          return _REG_NOERROR;\n        }\n      }\n      if (iVar9 < iVar2) {\n        pIVar8 = pIVar8 + iVar12;\n        iVar12 = iVar12 + (iVar2 - iVar9);\n        memcpy(pIVar8,pIVar4 + iVar9,(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }\n  rVar7 = re_node_set_init_copy(dest,src1);\n  return rVar7;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Idx *pIVar3;" type_identifier (pointer_declarator "*pIVar3" * identifier) ;) (declaration "Idx *pIVar4;" type_identifier (pointer_declarator "*pIVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "reg_errcode_t rVar7;" type_identifier identifier ;) (declaration "Idx *pIVar8;" type_identifier (pointer_declarator "*pIVar8" * 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 ;) (if_statement "if (src1 == (re_node_set *)0x0) {\nLAB_0007c924:\n    if ((src2 != (re_node_set *)0x0) && (0 < src2->nelem)) {\n      rVar7 = re_node_set_init_copy(dest,src2);\n      return rVar7;\n    }\n    dest->alloc = 0;\n    dest->nelem = 0;\n    dest->elems = (Idx *)0x0;\n    return _REG_NOERROR;\n  }" if (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)) )) (compound_statement "{\nLAB_0007c924:\n    if ((src2 != (re_node_set *)0x0) && (0 < src2->nelem)) {\n      rVar7 = re_node_set_init_copy(dest,src2);\n      return rVar7;\n    }\n    dest->alloc = 0;\n    dest->nelem = 0;\n    dest->elems = (Idx *)0x0;\n    return _REG_NOERROR;\n  }" { (labeled_statement "LAB_0007c924:\n    if ((src2 != (re_node_set *)0x0) && (0 < src2->nelem)) {\n      rVar7 = re_node_set_init_copy(dest,src2);\n      return rVar7;\n    }" statement_identifier : (if_statement "if ((src2 != (re_node_set *)0x0) && (0 < src2->nelem)) {\n      rVar7 = re_node_set_init_copy(dest,src2);\n      return rVar7;\n    }" if (parenthesized_expression "((src2 != (re_node_set *)0x0) && (0 < src2->nelem))" ( (binary_expression "(src2 != (re_node_set *)0x0) && (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 "(0 < src2->nelem)" ( (binary_expression "0 < src2->nelem" number_literal < (field_expression "src2->nelem" identifier -> field_identifier)) ))) )) (compound_statement "{\n      rVar7 = re_node_set_init_copy(dest,src2);\n      return rVar7;\n    }" { (expression_statement "rVar7 = re_node_set_init_copy(dest,src2);" (assignment_expression "rVar7 = re_node_set_init_copy(dest,src2)" identifier = (call_expression "re_node_set_init_copy(dest,src2)" identifier (argument_list "(dest,src2)" ( identifier , identifier )))) ;) (return_statement "return rVar7;" return 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)) ;) (return_statement "return _REG_NOERROR;" return identifier ;) })) (expression_statement "iVar1 = src1->nelem;" (assignment_expression "iVar1 = src1->nelem" identifier = (field_expression "src1->nelem" identifier -> field_identifier)) ;) (if_statement "if ((src2 == (re_node_set *)0x0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = src2->nelem;\n    if (0 < iVar2) {\n      dest->alloc = iVar2 + iVar1;\n      pIVar8 = (Idx *)malloc((iVar2 + iVar1) * 4);\n      dest->elems = pIVar8;\n      if (pIVar8 == (Idx *)0x0) {\n        return _REG_ESPACE;\n      }\n      pIVar3 = src1->elems;\n      pIVar4 = src2->elems;\n      iVar10 = 0;\n      iVar9 = 0;\n      iVar11 = 0;\n      while( true ) {\n        iVar5 = pIVar3[iVar10];\n        iVar12 = iVar11 + 1;\n        iVar6 = pIVar4[iVar9];\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          pIVar8[iVar11] = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          pIVar8[iVar11] = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        iVar11 = iVar12;\n        if (iVar2 <= iVar9) {\n          pIVar8 = pIVar8 + iVar12;\n          iVar12 = iVar12 + (iVar1 - iVar10);\n          memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          dest->nelem = iVar12;\n          return _REG_NOERROR;\n        }\n      }\n      if (iVar9 < iVar2) {\n        pIVar8 = pIVar8 + iVar12;\n        iVar12 = iVar12 + (iVar2 - iVar9);\n        memcpy(pIVar8,pIVar4 + iVar9,(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }" if (parenthesized_expression "((src2 == (re_node_set *)0x0) || (iVar1 < 1))" ( (binary_expression "(src2 == (re_node_set *)0x0) || (iVar1 < 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 "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) ))) )) (compound_statement "{\n    if (iVar1 < 1) goto LAB_0007c924;\n  }" { (if_statement "if (iVar1 < 1) goto LAB_0007c924;" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (goto_statement "goto LAB_0007c924;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar2 = src2->nelem;\n    if (0 < iVar2) {\n      dest->alloc = iVar2 + iVar1;\n      pIVar8 = (Idx *)malloc((iVar2 + iVar1) * 4);\n      dest->elems = pIVar8;\n      if (pIVar8 == (Idx *)0x0) {\n        return _REG_ESPACE;\n      }\n      pIVar3 = src1->elems;\n      pIVar4 = src2->elems;\n      iVar10 = 0;\n      iVar9 = 0;\n      iVar11 = 0;\n      while( true ) {\n        iVar5 = pIVar3[iVar10];\n        iVar12 = iVar11 + 1;\n        iVar6 = pIVar4[iVar9];\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          pIVar8[iVar11] = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          pIVar8[iVar11] = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        iVar11 = iVar12;\n        if (iVar2 <= iVar9) {\n          pIVar8 = pIVar8 + iVar12;\n          iVar12 = iVar12 + (iVar1 - iVar10);\n          memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          dest->nelem = iVar12;\n          return _REG_NOERROR;\n        }\n      }\n      if (iVar9 < iVar2) {\n        pIVar8 = pIVar8 + iVar12;\n        iVar12 = iVar12 + (iVar2 - iVar9);\n        memcpy(pIVar8,pIVar4 + iVar9,(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }" else (compound_statement "{\n    iVar2 = src2->nelem;\n    if (0 < iVar2) {\n      dest->alloc = iVar2 + iVar1;\n      pIVar8 = (Idx *)malloc((iVar2 + iVar1) * 4);\n      dest->elems = pIVar8;\n      if (pIVar8 == (Idx *)0x0) {\n        return _REG_ESPACE;\n      }\n      pIVar3 = src1->elems;\n      pIVar4 = src2->elems;\n      iVar10 = 0;\n      iVar9 = 0;\n      iVar11 = 0;\n      while( true ) {\n        iVar5 = pIVar3[iVar10];\n        iVar12 = iVar11 + 1;\n        iVar6 = pIVar4[iVar9];\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          pIVar8[iVar11] = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          pIVar8[iVar11] = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        iVar11 = iVar12;\n        if (iVar2 <= iVar9) {\n          pIVar8 = pIVar8 + iVar12;\n          iVar12 = iVar12 + (iVar1 - iVar10);\n          memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          dest->nelem = iVar12;\n          return _REG_NOERROR;\n        }\n      }\n      if (iVar9 < iVar2) {\n        pIVar8 = pIVar8 + iVar12;\n        iVar12 = iVar12 + (iVar2 - iVar9);\n        memcpy(pIVar8,pIVar4 + iVar9,(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }" { (expression_statement "iVar2 = src2->nelem;" (assignment_expression "iVar2 = src2->nelem" identifier = (field_expression "src2->nelem" identifier -> field_identifier)) ;) (if_statement "if (0 < iVar2) {\n      dest->alloc = iVar2 + iVar1;\n      pIVar8 = (Idx *)malloc((iVar2 + iVar1) * 4);\n      dest->elems = pIVar8;\n      if (pIVar8 == (Idx *)0x0) {\n        return _REG_ESPACE;\n      }\n      pIVar3 = src1->elems;\n      pIVar4 = src2->elems;\n      iVar10 = 0;\n      iVar9 = 0;\n      iVar11 = 0;\n      while( true ) {\n        iVar5 = pIVar3[iVar10];\n        iVar12 = iVar11 + 1;\n        iVar6 = pIVar4[iVar9];\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          pIVar8[iVar11] = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          pIVar8[iVar11] = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        iVar11 = iVar12;\n        if (iVar2 <= iVar9) {\n          pIVar8 = pIVar8 + iVar12;\n          iVar12 = iVar12 + (iVar1 - iVar10);\n          memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          dest->nelem = iVar12;\n          return _REG_NOERROR;\n        }\n      }\n      if (iVar9 < iVar2) {\n        pIVar8 = pIVar8 + iVar12;\n        iVar12 = iVar12 + (iVar2 - iVar9);\n        memcpy(pIVar8,pIVar4 + iVar9,(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n      dest->alloc = iVar2 + iVar1;\n      pIVar8 = (Idx *)malloc((iVar2 + iVar1) * 4);\n      dest->elems = pIVar8;\n      if (pIVar8 == (Idx *)0x0) {\n        return _REG_ESPACE;\n      }\n      pIVar3 = src1->elems;\n      pIVar4 = src2->elems;\n      iVar10 = 0;\n      iVar9 = 0;\n      iVar11 = 0;\n      while( true ) {\n        iVar5 = pIVar3[iVar10];\n        iVar12 = iVar11 + 1;\n        iVar6 = pIVar4[iVar9];\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          pIVar8[iVar11] = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          pIVar8[iVar11] = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        iVar11 = iVar12;\n        if (iVar2 <= iVar9) {\n          pIVar8 = pIVar8 + iVar12;\n          iVar12 = iVar12 + (iVar1 - iVar10);\n          memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          dest->nelem = iVar12;\n          return _REG_NOERROR;\n        }\n      }\n      if (iVar9 < iVar2) {\n        pIVar8 = pIVar8 + iVar12;\n        iVar12 = iVar12 + (iVar2 - iVar9);\n        memcpy(pIVar8,pIVar4 + iVar9,(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }" { (expression_statement "dest->alloc = iVar2 + iVar1;" (assignment_expression "dest->alloc = iVar2 + iVar1" (field_expression "dest->alloc" identifier -> field_identifier) = (binary_expression "iVar2 + iVar1" identifier + identifier)) ;) (expression_statement "pIVar8 = (Idx *)malloc((iVar2 + iVar1) * 4);" (assignment_expression "pIVar8 = (Idx *)malloc((iVar2 + iVar1) * 4)" identifier = (cast_expression "(Idx *)malloc((iVar2 + iVar1) * 4)" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc((iVar2 + iVar1) * 4)" identifier (argument_list "((iVar2 + iVar1) * 4)" ( (binary_expression "(iVar2 + iVar1) * 4" (parenthesized_expression "(iVar2 + iVar1)" ( (binary_expression "iVar2 + iVar1" identifier + identifier) )) * number_literal) ))))) ;) (expression_statement "dest->elems = pIVar8;" (assignment_expression "dest->elems = pIVar8" (field_expression "dest->elems" identifier -> field_identifier) = identifier) ;) (if_statement "if (pIVar8 == (Idx *)0x0) {\n        return _REG_ESPACE;\n      }" if (parenthesized_expression "(pIVar8 == (Idx *)0x0)" ( (binary_expression "pIVar8 == (Idx *)0x0" identifier == (cast_expression "(Idx *)0x0" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return _REG_ESPACE;\n      }" { (return_statement "return _REG_ESPACE;" return identifier ;) })) (expression_statement "pIVar3 = src1->elems;" (assignment_expression "pIVar3 = src1->elems" identifier = (field_expression "src1->elems" identifier -> field_identifier)) ;) (expression_statement "pIVar4 = src2->elems;" (assignment_expression "pIVar4 = src2->elems" identifier = (field_expression "src2->elems" identifier -> field_identifier)) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n        iVar5 = pIVar3[iVar10];\n        iVar12 = iVar11 + 1;\n        iVar6 = pIVar4[iVar9];\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          pIVar8[iVar11] = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          pIVar8[iVar11] = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        iVar11 = iVar12;\n        if (iVar2 <= iVar9) {\n          pIVar8 = pIVar8 + iVar12;\n          iVar12 = iVar12 + (iVar1 - iVar10);\n          memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          dest->nelem = iVar12;\n          return _REG_NOERROR;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar5 = pIVar3[iVar10];\n        iVar12 = iVar11 + 1;\n        iVar6 = pIVar4[iVar9];\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          pIVar8[iVar11] = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          pIVar8[iVar11] = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        iVar11 = iVar12;\n        if (iVar2 <= iVar9) {\n          pIVar8 = pIVar8 + iVar12;\n          iVar12 = iVar12 + (iVar1 - iVar10);\n          memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          dest->nelem = iVar12;\n          return _REG_NOERROR;\n        }\n      }" { (expression_statement "iVar5 = pIVar3[iVar10];" (assignment_expression "iVar5 = pIVar3[iVar10]" identifier = (subscript_expression "pIVar3[iVar10]" identifier [ identifier ])) ;) (expression_statement "iVar12 = iVar11 + 1;" (assignment_expression "iVar12 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = pIVar4[iVar9];" (assignment_expression "iVar6 = pIVar4[iVar9]" identifier = (subscript_expression "pIVar4[iVar9]" identifier [ identifier ])) ;) (if_statement "if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          pIVar8[iVar11] = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          pIVar8[iVar11] = iVar5;\n        }" if (parenthesized_expression "(iVar6 < iVar5)" ( (binary_expression "iVar6 < iVar5" identifier < identifier) )) (compound_statement "{\n          iVar9 = iVar9 + 1;\n          pIVar8[iVar11] = iVar6;\n        }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "pIVar8[iVar11] = iVar6;" (assignment_expression "pIVar8[iVar11] = iVar6" (subscript_expression "pIVar8[iVar11]" identifier [ identifier ]) = identifier) ;) }) (else_clause "else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          pIVar8[iVar11] = iVar5;\n        }" else (compound_statement "{\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          pIVar8[iVar11] = iVar5;\n        }" { (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "iVar9 = iVar9 + (uint)(iVar5 == iVar6);" (assignment_expression "iVar9 = iVar9 + (uint)(iVar5 == iVar6)" identifier = (binary_expression "iVar9 + (uint)(iVar5 == iVar6)" identifier + (call_expression "(uint)(iVar5 == iVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar5 == iVar6)" ( (binary_expression "iVar5 == iVar6" identifier == identifier) ))))) ;) (expression_statement "pIVar8[iVar11] = iVar5;" (assignment_expression "pIVar8[iVar11] = iVar5" (subscript_expression "pIVar8[iVar11]" identifier [ identifier ]) = identifier) ;) }))) (if_statement "if (iVar1 <= iVar10) break;" if (parenthesized_expression "(iVar1 <= iVar10)" ( (binary_expression "iVar1 <= iVar10" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar11 = iVar12;" (assignment_expression "iVar11 = iVar12" identifier = identifier) ;) (if_statement "if (iVar2 <= iVar9) {\n          pIVar8 = pIVar8 + iVar12;\n          iVar12 = iVar12 + (iVar1 - iVar10);\n          memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          dest->nelem = iVar12;\n          return _REG_NOERROR;\n        }" if (parenthesized_expression "(iVar2 <= iVar9)" ( (binary_expression "iVar2 <= iVar9" identifier <= identifier) )) (compound_statement "{\n          pIVar8 = pIVar8 + iVar12;\n          iVar12 = iVar12 + (iVar1 - iVar10);\n          memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          dest->nelem = iVar12;\n          return _REG_NOERROR;\n        }" { (expression_statement "pIVar8 = pIVar8 + iVar12;" (assignment_expression "pIVar8 = pIVar8 + iVar12" identifier = (binary_expression "pIVar8 + iVar12" identifier + identifier)) ;) (expression_statement "iVar12 = iVar12 + (iVar1 - iVar10);" (assignment_expression "iVar12 = iVar12 + (iVar1 - iVar10)" identifier = (binary_expression "iVar12 + (iVar1 - iVar10)" identifier + (parenthesized_expression "(iVar1 - iVar10)" ( (binary_expression "iVar1 - iVar10" identifier - identifier) )))) ;) (expression_statement "memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4);" (call_expression "memcpy(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4)" identifier (argument_list "(pIVar8,pIVar3 + iVar10,(iVar1 - iVar10) * 4)" ( identifier , (binary_expression "pIVar3 + iVar10" identifier + identifier) , (binary_expression "(iVar1 - iVar10) * 4" (parenthesized_expression "(iVar1 - iVar10)" ( (binary_expression "iVar1 - iVar10" identifier - identifier) )) * number_literal) ))) ;) (labeled_statement "LAB_0007c9fa:\n          dest->nelem = iVar12;" statement_identifier : (expression_statement "dest->nelem = iVar12;" (assignment_expression "dest->nelem = iVar12" (field_expression "dest->nelem" identifier -> field_identifier) = identifier) ;)) (return_statement "return _REG_NOERROR;" return identifier ;) })) })) (if_statement "if (iVar9 < iVar2) {\n        pIVar8 = pIVar8 + iVar12;\n        iVar12 = iVar12 + (iVar2 - iVar9);\n        memcpy(pIVar8,pIVar4 + iVar9,(iVar2 - iVar9) * 4);\n      }" if (parenthesized_expression "(iVar9 < iVar2)" ( (binary_expression "iVar9 < iVar2" identifier < identifier) )) (compound_statement "{\n        pIVar8 = pIVar8 + iVar12;\n        iVar12 = iVar12 + (iVar2 - iVar9);\n        memcpy(pIVar8,pIVar4 + iVar9,(iVar2 - iVar9) * 4);\n      }" { (expression_statement "pIVar8 = pIVar8 + iVar12;" (assignment_expression "pIVar8 = pIVar8 + iVar12" identifier = (binary_expression "pIVar8 + iVar12" identifier + identifier)) ;) (expression_statement "iVar12 = iVar12 + (iVar2 - iVar9);" (assignment_expression "iVar12 = iVar12 + (iVar2 - iVar9)" identifier = (binary_expression "iVar12 + (iVar2 - iVar9)" identifier + (parenthesized_expression "(iVar2 - iVar9)" ( (binary_expression "iVar2 - iVar9" identifier - identifier) )))) ;) (expression_statement "memcpy(pIVar8,pIVar4 + iVar9,(iVar2 - iVar9) * 4);" (call_expression "memcpy(pIVar8,pIVar4 + iVar9,(iVar2 - iVar9) * 4)" identifier (argument_list "(pIVar8,pIVar4 + iVar9,(iVar2 - iVar9) * 4)" ( identifier , (binary_expression "pIVar4 + iVar9" identifier + identifier) , (binary_expression "(iVar2 - iVar9) * 4" (parenthesized_expression "(iVar2 - iVar9)" ( (binary_expression "iVar2 - iVar9" identifier - identifier) )) * number_literal) ))) ;) })) (goto_statement "goto LAB_0007c9fa;" goto statement_identifier ;) })) }))) (expression_statement "rVar7 = re_node_set_init_copy(dest,src1);" (assignment_expression "rVar7 = 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 rVar7;" return identifier ;) })))
(translation_unit "undefined4 FUN_0007c8d0(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if (param_2 == 0) {\nLAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n    return 0;\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((param_3 == 0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }\n  uVar7 = FUN_0007c830();\n  return uVar7;\n}\n\n" (function_definition "undefined4 FUN_0007c8d0(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if (param_2 == 0) {\nLAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n    return 0;\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((param_3 == 0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }\n  uVar7 = FUN_0007c830();\n  return uVar7;\n}" type_identifier (function_declarator "FUN_0007c8d0(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if (param_2 == 0) {\nLAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n    return 0;\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((param_3 == 0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }\n  uVar7 = FUN_0007c830();\n  return uVar7;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "void *pvVar8;" primitive_type (pointer_declarator "*pvVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\nLAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n    return 0;\n  }" { (labeled_statement "LAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }" statement_identifier : (if_statement "if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }" if (parenthesized_expression "((param_3 != 0) && (0 < *(int *)(param_3 + 4)))" ( (binary_expression "(param_3 != 0) && (0 < *(int *)(param_3 + 4))" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(0 < *(int *)(param_3 + 4))" ( (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) ))))) ))) )) (compound_statement "{\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }" { (expression_statement "uVar7 = FUN_0007c830();" (assignment_expression "uVar7 = FUN_0007c830()" identifier = (call_expression "FUN_0007c830()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar7;" return identifier ;) }))) (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) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((param_3 == 0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }" if (parenthesized_expression "((param_3 == 0) || (iVar1 < 1))" ( (binary_expression "(param_3 == 0) || (iVar1 < 1)" (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) ))) )) (compound_statement "{\n    if (iVar1 < 1) goto LAB_0007c924;\n  }" { (if_statement "if (iVar1 < 1) goto LAB_0007c924;" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (goto_statement "goto LAB_0007c924;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }" else (compound_statement "{\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }" { (expression_statement "iVar2 = *(int *)(param_3 + 4);" (assignment_expression "iVar2 = *(int *)(param_3 + 4)" identifier = (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }" { (expression_statement "*param_1 = iVar2 + iVar1;" (assignment_expression "*param_1 = iVar2 + iVar1" (pointer_expression "*param_1" * identifier) = (binary_expression "iVar2 + iVar1" identifier + identifier)) ;) (expression_statement "pvVar8 = malloc((iVar2 + iVar1) * 4);" (assignment_expression "pvVar8 = malloc((iVar2 + iVar1) * 4)" identifier = (call_expression "malloc((iVar2 + iVar1) * 4)" identifier (argument_list "((iVar2 + iVar1) * 4)" ( (binary_expression "(iVar2 + iVar1) * 4" (parenthesized_expression "(iVar2 + iVar1)" ( (binary_expression "iVar2 + iVar1" identifier + identifier) )) * number_literal) )))) ;) (expression_statement "param_1[2] = (int)pvVar8;" (assignment_expression "param_1[2] = (int)pvVar8" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }" if (parenthesized_expression "(pvVar8 == (void *)0x0)" ( (binary_expression "pvVar8 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0xc;\n      }" { (return_statement "return 0xc;" return number_literal ;) })) (expression_statement "iVar3 = *(int *)(param_2 + 8);" (assignment_expression "iVar3 = *(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 "iVar4 = *(int *)(param_3 + 8);" (assignment_expression "iVar4 = *(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 "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }" { (expression_statement "iVar5 = *(int *)(iVar3 + iVar10 * 4);" (assignment_expression "iVar5 = *(int *)(iVar3 + iVar10 * 4)" identifier = (pointer_expression "*(int *)(iVar3 + iVar10 * 4)" * (cast_expression "(int *)(iVar3 + iVar10 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar10 * 4)" ( (binary_expression "iVar3 + iVar10 * 4" identifier + (binary_expression "iVar10 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = *(int *)(iVar4 + iVar9 * 4);" (assignment_expression "iVar6 = *(int *)(iVar4 + iVar9 * 4)" identifier = (pointer_expression "*(int *)(iVar4 + iVar9 * 4)" * (cast_expression "(int *)(iVar4 + iVar9 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar9 * 4)" ( (binary_expression "iVar4 + iVar9 * 4" identifier + (binary_expression "iVar9 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }" if (parenthesized_expression "(iVar6 < iVar5)" ( (binary_expression "iVar6 < iVar5" identifier < identifier) )) (compound_statement "{\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;" (assignment_expression "*(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6" (pointer_expression "*(int *)((int)pvVar8 + iVar11 * 4 + -4)" * (cast_expression "(int *)((int)pvVar8 + iVar11 * 4 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + iVar11 * 4 + -4)" ( (binary_expression "(int)pvVar8 + iVar11 * 4 + -4" (binary_expression "(int)pvVar8 + iVar11 * 4" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar11 * 4" identifier * number_literal)) + number_literal) )))) = identifier) ;) }) (else_clause "else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }" else (compound_statement "{\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }" { (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "iVar9 = iVar9 + (uint)(iVar5 == iVar6);" (assignment_expression "iVar9 = iVar9 + (uint)(iVar5 == iVar6)" identifier = (binary_expression "iVar9 + (uint)(iVar5 == iVar6)" identifier + (call_expression "(uint)(iVar5 == iVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar5 == iVar6)" ( (binary_expression "iVar5 == iVar6" identifier == identifier) ))))) ;) (expression_statement "*(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;" (assignment_expression "*(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5" (pointer_expression "*(int *)((int)pvVar8 + iVar11 * 4 + -4)" * (cast_expression "(int *)((int)pvVar8 + iVar11 * 4 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + iVar11 * 4 + -4)" ( (binary_expression "(int)pvVar8 + iVar11 * 4 + -4" (binary_expression "(int)pvVar8 + iVar11 * 4" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar11 * 4" identifier * number_literal)) + number_literal) )))) = identifier) ;) }))) (if_statement "if (iVar1 <= iVar10) break;" if (parenthesized_expression "(iVar1 <= iVar10)" ( (binary_expression "iVar1 <= iVar10" identifier <= identifier) )) (break_statement "break;" break ;)) (if_statement "if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }" if (parenthesized_expression "(iVar2 <= iVar9)" ( (binary_expression "iVar2 <= iVar9" identifier <= identifier) )) (compound_statement "{\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }" { (expression_statement "iVar2 = iVar11 * 4;" (assignment_expression "iVar2 = iVar11 * 4" identifier = (binary_expression "iVar11 * 4" identifier * number_literal)) ;) (expression_statement "iVar11 = iVar11 + (iVar1 - iVar10);" (assignment_expression "iVar11 = iVar11 + (iVar1 - iVar10)" identifier = (binary_expression "iVar11 + (iVar1 - iVar10)" identifier + (parenthesized_expression "(iVar1 - iVar10)" ( (binary_expression "iVar1 - iVar10" identifier - identifier) )))) ;) (expression_statement "memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);" (call_expression "memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4)" identifier (argument_list "((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4)" ( (cast_expression "(void *)((int)pvVar8 + iVar2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + iVar2)" ( (binary_expression "(int)pvVar8 + iVar2" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , (cast_expression "(void *)(iVar3 + iVar10 * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar10 * 4)" ( (binary_expression "iVar3 + iVar10 * 4" identifier + (binary_expression "iVar10 * 4" identifier * number_literal)) ))) , (binary_expression "(iVar1 - iVar10) * 4" (parenthesized_expression "(iVar1 - iVar10)" ( (binary_expression "iVar1 - iVar10" identifier - identifier) )) * number_literal) ))) ;) (labeled_statement "LAB_0007c9fa:\n          param_1[1] = iVar11;" statement_identifier : (expression_statement "param_1[1] = iVar11;" (assignment_expression "param_1[1] = iVar11" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;)) (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }" if (parenthesized_expression "(iVar9 < iVar2)" ( (binary_expression "iVar9 < iVar2" identifier < identifier) )) (compound_statement "{\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }" { (expression_statement "iVar1 = iVar11 * 4;" (assignment_expression "iVar1 = iVar11 * 4" identifier = (binary_expression "iVar11 * 4" identifier * number_literal)) ;) (expression_statement "iVar11 = iVar11 + (iVar2 - iVar9);" (assignment_expression "iVar11 = iVar11 + (iVar2 - iVar9)" identifier = (binary_expression "iVar11 + (iVar2 - iVar9)" identifier + (parenthesized_expression "(iVar2 - iVar9)" ( (binary_expression "iVar2 - iVar9" identifier - identifier) )))) ;) (expression_statement "memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);" (call_expression "memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4)" identifier (argument_list "((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4)" ( (cast_expression "(void *)((int)pvVar8 + iVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + iVar1)" ( (binary_expression "(int)pvVar8 + iVar1" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , (cast_expression "(void *)(iVar4 + iVar9 * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar9 * 4)" ( (binary_expression "iVar4 + iVar9 * 4" identifier + (binary_expression "iVar9 * 4" identifier * number_literal)) ))) , (binary_expression "(iVar2 - iVar9) * 4" (parenthesized_expression "(iVar2 - iVar9)" ( (binary_expression "iVar2 - iVar9" identifier - identifier) )) * number_literal) ))) ;) })) (goto_statement "goto LAB_0007c9fa;" goto statement_identifier ;) })) }))) (expression_statement "uVar7 = FUN_0007c830();" (assignment_expression "uVar7 = FUN_0007c830()" identifier = (call_expression "FUN_0007c830()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar7;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) }))) (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) ;) (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression 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 { (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 * (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) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == IDENT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) + LIT) )))) = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) ))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))) , (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * LIT) ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;)) (return_statement return 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 IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) ))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))) , (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * LIT) ))) ;) })) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0007c8d0(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if (param_2 == 0) {\nLAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n    return 0;\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((param_3 == 0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }\n  uVar7 = FUN_0007c830();\n  return uVar7;\n}" (type_identifier "undefined4") (function_declarator "FUN_0007c8d0(int *param_1,int param_2,int param_3)" (identifier "FUN_0007c8d0") (parameter_list "(int *param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  void *pvVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  \n  if (param_2 == 0) {\nLAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n    return 0;\n  }\n  iVar1 = *(int *)(param_2 + 4);\n  if ((param_3 == 0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }\n  uVar7 = FUN_0007c830();\n  return uVar7;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "void *pvVar8;" (primitive_type "void") (pointer_declarator "*pvVar8" (* "*") (identifier "pvVar8")) (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (if_statement "if (param_2 == 0) {\nLAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }\n    *param_1 = 0;\n    param_1[1] = 0;\n    param_1[2] = 0;\n    return 0;\n  }" ({ "{") (labeled_statement "LAB_0007c924:\n    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }" (statement_identifier "LAB_0007c924") (: ":") (if_statement "if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }" (if "if") (parenthesized_expression "((param_3 != 0) && (0 < *(int *)(param_3 + 4)))" (( "(") (binary_expression "(param_3 != 0) && (0 < *(int *)(param_3 + 4))" (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(0 < *(int *)(param_3 + 4))" (( "(") (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")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n      uVar7 = FUN_0007c830();\n      return uVar7;\n    }" ({ "{") (expression_statement "uVar7 = FUN_0007c830();" (assignment_expression "uVar7 = FUN_0007c830()" (identifier "uVar7") (= "=") (call_expression "FUN_0007c830()" (identifier "FUN_0007c830") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar7;" (return "return") (identifier "uVar7") (; ";")) (} "}")))) (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")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(param_2 + 4);" (assignment_expression "iVar1 = *(int *)(param_2 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if ((param_3 == 0) || (iVar1 < 1)) {\n    if (iVar1 < 1) goto LAB_0007c924;\n  }\n  else {\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }" (if "if") (parenthesized_expression "((param_3 == 0) || (iVar1 < 1))" (( "(") (binary_expression "(param_3 == 0) || (iVar1 < 1)" (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar1 < 1)" (( "(") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")) () ")"))) () ")")) (compound_statement "{\n    if (iVar1 < 1) goto LAB_0007c924;\n  }" ({ "{") (if_statement "if (iVar1 < 1) goto LAB_0007c924;" (if "if") (parenthesized_expression "(iVar1 < 1)" (( "(") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")) () ")")) (goto_statement "goto LAB_0007c924;" (goto "goto") (statement_identifier "LAB_0007c924") (; ";"))) (} "}")) (else_clause "else {\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }" (else "else") (compound_statement "{\n    iVar2 = *(int *)(param_3 + 4);\n    if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_3 + 4);" (assignment_expression "iVar2 = *(int *)(param_3 + 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (0 < iVar2) {\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n      *param_1 = iVar2 + iVar1;\n      pvVar8 = malloc((iVar2 + iVar1) * 4);\n      param_1[2] = (int)pvVar8;\n      if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }\n      iVar3 = *(int *)(param_2 + 8);\n      iVar4 = *(int *)(param_3 + 8);\n      iVar10 = 0;\n      iVar11 = 0;\n      iVar9 = 0;\n      while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }\n      if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }\n      goto LAB_0007c9fa;\n    }" ({ "{") (expression_statement "*param_1 = iVar2 + iVar1;" (assignment_expression "*param_1 = iVar2 + iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "iVar2 + iVar1" (identifier "iVar2") (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "pvVar8 = malloc((iVar2 + iVar1) * 4);" (assignment_expression "pvVar8 = malloc((iVar2 + iVar1) * 4)" (identifier "pvVar8") (= "=") (call_expression "malloc((iVar2 + iVar1) * 4)" (identifier "malloc") (argument_list "((iVar2 + iVar1) * 4)" (( "(") (binary_expression "(iVar2 + iVar1) * 4" (parenthesized_expression "(iVar2 + iVar1)" (( "(") (binary_expression "iVar2 + iVar1" (identifier "iVar2") (+ "+") (identifier "iVar1")) () ")")) (* "*") (number_literal "4")) () ")")))) (; ";")) (expression_statement "param_1[2] = (int)pvVar8;" (assignment_expression "param_1[2] = (int)pvVar8" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pvVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar8"))) (; ";")) (if_statement "if (pvVar8 == (void *)0x0) {\n        return 0xc;\n      }" (if "if") (parenthesized_expression "(pvVar8 == (void *)0x0)" (( "(") (binary_expression "pvVar8 == (void *)0x0" (identifier "pvVar8") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return 0xc;\n      }" ({ "{") (return_statement "return 0xc;" (return "return") (number_literal "0xc") (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(param_2 + 8);" (assignment_expression "iVar3 = *(int *)(param_2 + 8)" (identifier "iVar3") (= "=") (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 "iVar4 = *(int *)(param_3 + 8);" (assignment_expression "iVar4 = *(int *)(param_3 + 8)" (identifier "iVar4") (= "=") (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 "iVar10 = 0;" (assignment_expression "iVar10 = 0" (identifier "iVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        iVar5 = *(int *)(iVar3 + iVar10 * 4);\n        iVar11 = iVar11 + 1;\n        iVar6 = *(int *)(iVar4 + iVar9 * 4);\n        if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }\n        if (iVar1 <= iVar10) break;\n        if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }\n      }" ({ "{") (expression_statement "iVar5 = *(int *)(iVar3 + iVar10 * 4);" (assignment_expression "iVar5 = *(int *)(iVar3 + iVar10 * 4)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar3 + iVar10 * 4)" (* "*") (cast_expression "(int *)(iVar3 + iVar10 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar10 * 4)" (( "(") (binary_expression "iVar3 + iVar10 * 4" (identifier "iVar3") (+ "+") (binary_expression "iVar10 * 4" (identifier "iVar10") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" (identifier "iVar11") (= "=") (binary_expression "iVar11 + 1" (identifier "iVar11") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar6 = *(int *)(iVar4 + iVar9 * 4);" (assignment_expression "iVar6 = *(int *)(iVar4 + iVar9 * 4)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar4 + iVar9 * 4)" (* "*") (cast_expression "(int *)(iVar4 + iVar9 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar9 * 4)" (( "(") (binary_expression "iVar4 + iVar9 * 4" (identifier "iVar4") (+ "+") (binary_expression "iVar9 * 4" (identifier "iVar9") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (iVar6 < iVar5) {\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }\n        else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }" (if "if") (parenthesized_expression "(iVar6 < iVar5)" (( "(") (binary_expression "iVar6 < iVar5" (identifier "iVar6") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n          iVar9 = iVar9 + 1;\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;\n        }" ({ "{") (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;" (assignment_expression "*(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6" (pointer_expression "*(int *)((int)pvVar8 + iVar11 * 4 + -4)" (* "*") (cast_expression "(int *)((int)pvVar8 + iVar11 * 4 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar8 + iVar11 * 4 + -4)" (( "(") (binary_expression "(int)pvVar8 + iVar11 * 4 + -4" (binary_expression "(int)pvVar8 + iVar11 * 4" (cast_expression "(int)pvVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar8")) (+ "+") (binary_expression "iVar11 * 4" (identifier "iVar11") (* "*") (number_literal "4"))) (+ "+") (number_literal "-4")) () ")")))) (= "=") (identifier "iVar6")) (; ";")) (} "}")) (else_clause "else {\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }" (else "else") (compound_statement "{\n          iVar10 = iVar10 + 1;\n          iVar9 = iVar9 + (uint)(iVar5 == iVar6);\n          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;\n        }" ({ "{") (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar9 = iVar9 + (uint)(iVar5 == iVar6);" (assignment_expression "iVar9 = iVar9 + (uint)(iVar5 == iVar6)" (identifier "iVar9") (= "=") (binary_expression "iVar9 + (uint)(iVar5 == iVar6)" (identifier "iVar9") (+ "+") (call_expression "(uint)(iVar5 == iVar6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar5 == iVar6)" (( "(") (binary_expression "iVar5 == iVar6" (identifier "iVar5") (== "==") (identifier "iVar6")) () ")"))))) (; ";")) (expression_statement "*(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;" (assignment_expression "*(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5" (pointer_expression "*(int *)((int)pvVar8 + iVar11 * 4 + -4)" (* "*") (cast_expression "(int *)((int)pvVar8 + iVar11 * 4 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar8 + iVar11 * 4 + -4)" (( "(") (binary_expression "(int)pvVar8 + iVar11 * 4 + -4" (binary_expression "(int)pvVar8 + iVar11 * 4" (cast_expression "(int)pvVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar8")) (+ "+") (binary_expression "iVar11 * 4" (identifier "iVar11") (* "*") (number_literal "4"))) (+ "+") (number_literal "-4")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (} "}")))) (if_statement "if (iVar1 <= iVar10) break;" (if "if") (parenthesized_expression "(iVar1 <= iVar10)" (( "(") (binary_expression "iVar1 <= iVar10" (identifier "iVar1") (<= "<=") (identifier "iVar10")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (iVar2 <= iVar9) {\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }" (if "if") (parenthesized_expression "(iVar2 <= iVar9)" (( "(") (binary_expression "iVar2 <= iVar9" (identifier "iVar2") (<= "<=") (identifier "iVar9")) () ")")) (compound_statement "{\n          iVar2 = iVar11 * 4;\n          iVar11 = iVar11 + (iVar1 - iVar10);\n          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);\nLAB_0007c9fa:\n          param_1[1] = iVar11;\n          return 0;\n        }" ({ "{") (expression_statement "iVar2 = iVar11 * 4;" (assignment_expression "iVar2 = iVar11 * 4" (identifier "iVar2") (= "=") (binary_expression "iVar11 * 4" (identifier "iVar11") (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar11 = iVar11 + (iVar1 - iVar10);" (assignment_expression "iVar11 = iVar11 + (iVar1 - iVar10)" (identifier "iVar11") (= "=") (binary_expression "iVar11 + (iVar1 - iVar10)" (identifier "iVar11") (+ "+") (parenthesized_expression "(iVar1 - iVar10)" (( "(") (binary_expression "iVar1 - iVar10" (identifier "iVar1") (- "-") (identifier "iVar10")) () ")")))) (; ";")) (expression_statement "memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);" (call_expression "memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4)" (identifier "memcpy") (argument_list "((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4)" (( "(") (cast_expression "(void *)((int)pvVar8 + iVar2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar8 + iVar2)" (( "(") (binary_expression "(int)pvVar8 + iVar2" (cast_expression "(int)pvVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar8")) (+ "+") (identifier "iVar2")) () ")"))) (, ",") (cast_expression "(void *)(iVar3 + iVar10 * 4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar10 * 4)" (( "(") (binary_expression "iVar3 + iVar10 * 4" (identifier "iVar3") (+ "+") (binary_expression "iVar10 * 4" (identifier "iVar10") (* "*") (number_literal "4"))) () ")"))) (, ",") (binary_expression "(iVar1 - iVar10) * 4" (parenthesized_expression "(iVar1 - iVar10)" (( "(") (binary_expression "iVar1 - iVar10" (identifier "iVar1") (- "-") (identifier "iVar10")) () ")")) (* "*") (number_literal "4")) () ")"))) (; ";")) (labeled_statement "LAB_0007c9fa:\n          param_1[1] = iVar11;" (statement_identifier "LAB_0007c9fa") (: ":") (expression_statement "param_1[1] = iVar11;" (assignment_expression "param_1[1] = iVar11" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar11")) (; ";"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (if_statement "if (iVar9 < iVar2) {\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }" (if "if") (parenthesized_expression "(iVar9 < iVar2)" (( "(") (binary_expression "iVar9 < iVar2" (identifier "iVar9") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n        iVar1 = iVar11 * 4;\n        iVar11 = iVar11 + (iVar2 - iVar9);\n        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);\n      }" ({ "{") (expression_statement "iVar1 = iVar11 * 4;" (assignment_expression "iVar1 = iVar11 * 4" (identifier "iVar1") (= "=") (binary_expression "iVar11 * 4" (identifier "iVar11") (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar11 = iVar11 + (iVar2 - iVar9);" (assignment_expression "iVar11 = iVar11 + (iVar2 - iVar9)" (identifier "iVar11") (= "=") (binary_expression "iVar11 + (iVar2 - iVar9)" (identifier "iVar11") (+ "+") (parenthesized_expression "(iVar2 - iVar9)" (( "(") (binary_expression "iVar2 - iVar9" (identifier "iVar2") (- "-") (identifier "iVar9")) () ")")))) (; ";")) (expression_statement "memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);" (call_expression "memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4)" (identifier "memcpy") (argument_list "((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4)" (( "(") (cast_expression "(void *)((int)pvVar8 + iVar1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar8 + iVar1)" (( "(") (binary_expression "(int)pvVar8 + iVar1" (cast_expression "(int)pvVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar8")) (+ "+") (identifier "iVar1")) () ")"))) (, ",") (cast_expression "(void *)(iVar4 + iVar9 * 4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar9 * 4)" (( "(") (binary_expression "iVar4 + iVar9 * 4" (identifier "iVar4") (+ "+") (binary_expression "iVar9 * 4" (identifier "iVar9") (* "*") (number_literal "4"))) () ")"))) (, ",") (binary_expression "(iVar2 - iVar9) * 4" (parenthesized_expression "(iVar2 - iVar9)" (( "(") (binary_expression "iVar2 - iVar9" (identifier "iVar2") (- "-") (identifier "iVar9")) () ")")) (* "*") (number_literal "4")) () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_0007c9fa;" (goto "goto") (statement_identifier "LAB_0007c9fa") (; ";")) (} "}"))) (} "}")))) (expression_statement "uVar7 = FUN_0007c830();" (assignment_expression "uVar7 = FUN_0007c830()" (identifier "uVar7") (= "=") (call_expression "FUN_0007c830()" (identifier "FUN_0007c830") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar7;" (return "return") (identifier "uVar7") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  int var_4;
  int var_5;
  type_3 *var_15;
  type_3 *var_16;
  int var_10;
  int var_9;
  type_1 rVar7;
  type_3 *var_7;
  int var_11;
  int var_12;
  int var_8;
  int var_13;
  
  if (var_1 == (type_2 *)0x0) {
LAB_0007c924:
    if ((var_2 != (type_2 *)0x0) && (0 < var_2->nelem)) {
      rVar7 = var_3(dest,var_2);
      return rVar7;
    }
    dest->alloc = 0;
    dest->nelem = 0;
    dest->elems = (type_3 *)0x0;
    return _REG_NOERROR;
  }
  var_4 = var_1->nelem;
  if ((var_2 == (type_2 *)0x0) || (var_4 < 1)) {
    if (var_4 < 1) goto LAB_0007c924;
  }
  else {
    var_5 = var_2->nelem;
    if (0 < var_5) {
      dest->alloc = var_5 + var_4;
      var_7 = (type_3 *)var_6((var_5 + var_4) * 4);
      dest->elems = var_7;
      if (var_7 == (type_3 *)0x0) {
        return _REG_ESPACE;
      }
      var_15 = var_1->elems;
      var_16 = var_2->elems;
      var_12 = 0;
      var_11 = 0;
      var_8 = 0;
      while( true ) {
        var_10 = var_15[var_12];
        var_13 = var_8 + 1;
        var_9 = var_16[var_11];
        if (var_9 < var_10) {
          var_11 = var_11 + 1;
          var_7[var_8] = var_9;
        }
        else {
          var_12 = var_12 + 1;
          var_11 = var_11 + (uint)(var_10 == var_9);
          var_7[var_8] = var_10;
        }
        if (var_4 <= var_12) break;
        var_8 = var_13;
        if (var_5 <= var_11) {
          var_7 = var_7 + var_13;
          var_13 = var_13 + (var_4 - var_12);
          var_14(var_7,var_15 + var_12,(var_4 - var_12) * 4);
LAB_0007c9fa:
          dest->nelem = var_13;
          return _REG_NOERROR;
        }
      }
      if (var_11 < var_5) {
        var_7 = var_7 + var_13;
        var_13 = var_13 + (var_5 - var_11);
        var_14(var_7,var_16 + var_11,(var_5 - var_11) * 4);
      }
      goto LAB_0007c9fa;
    }
  }
  rVar7 = var_3(dest,var_1);
  return rVar7;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 uVar7;
  void *pvVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  
  if (param_2 == 0) {
LAB_0007c924:
    if ((param_3 != 0) && (0 < *(int *)(param_3 + 4))) {
      uVar7 = FUN_0007c830();
      return uVar7;
    }
    *param_1 = 0;
    param_1[1] = 0;
    param_1[2] = 0;
    return 0;
  }
  iVar1 = *(int *)(param_2 + 4);
  if ((param_3 == 0) || (iVar1 < 1)) {
    if (iVar1 < 1) goto LAB_0007c924;
  }
  else {
    iVar2 = *(int *)(param_3 + 4);
    if (0 < iVar2) {
      *param_1 = iVar2 + iVar1;
      pvVar8 = malloc((iVar2 + iVar1) * 4);
      param_1[2] = (int)pvVar8;
      if (pvVar8 == (void *)0x0) {
        return 0xc;
      }
      iVar3 = *(int *)(param_2 + 8);
      iVar4 = *(int *)(param_3 + 8);
      iVar10 = 0;
      iVar11 = 0;
      iVar9 = 0;
      while( true ) {
        iVar5 = *(int *)(iVar3 + iVar10 * 4);
        iVar11 = iVar11 + 1;
        iVar6 = *(int *)(iVar4 + iVar9 * 4);
        if (iVar6 < iVar5) {
          iVar9 = iVar9 + 1;
          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar6;
        }
        else {
          iVar10 = iVar10 + 1;
          iVar9 = iVar9 + (uint)(iVar5 == iVar6);
          *(int *)((int)pvVar8 + iVar11 * 4 + -4) = iVar5;
        }
        if (iVar1 <= iVar10) break;
        if (iVar2 <= iVar9) {
          iVar2 = iVar11 * 4;
          iVar11 = iVar11 + (iVar1 - iVar10);
          memcpy((void *)((int)pvVar8 + iVar2),(void *)(iVar3 + iVar10 * 4),(iVar1 - iVar10) * 4);
LAB_0007c9fa:
          param_1[1] = iVar11;
          return 0;
        }
      }
      if (iVar9 < iVar2) {
        iVar1 = iVar11 * 4;
        iVar11 = iVar11 + (iVar2 - iVar9);
        memcpy((void *)((int)pvVar8 + iVar1),(void *)(iVar4 + iVar9 * 4),(iVar2 - iVar9) * 4);
      }
      goto LAB_0007c9fa;
    }
  }
  uVar7 = FUN_0007c830();
  return uVar7;
}

