
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* DWARF original name:
   __adjust_heap<__gnu_cxx::__normal_iterator<gold::Object_merge_map::Input_merge_entry*,
   std::vector<gold::Object_merge_map::Input_merge_entry> >, int,
   gold::Object_merge_map::Input_merge_entry,
   __gnu_cxx::__ops::_Iter_comp_iter<gold::Object_merge_map::Input_merge_compare> > */

void std::
     __adjust_heap<__gnu_cxx::__normal_iterator<gold::Object_merge_map::Input_merge_entry*,_std::vector<gold::Object_merge_map::Input_merge_entry>_>,_int,_gold::Object_merge_map::Input_merge_entry,___gnu_cxx::__ops::_Iter_comp_iter<gold::Object_merge_map::Input_merge_compare>_>
               (int __first,int __holeIndex,uint __len,int __value,int param_5,int param_6)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  int iVar6;
  
  iVar3 = (int)(__len - 1) / 2;
  iVar6 = __holeIndex;
  if (__holeIndex < iVar3) {
    do {
      iVar4 = (iVar6 + 1) * 2;
      iVar1 = iVar4 + -1;
      piVar5 = (int *)(__first + (iVar6 + 1) * 0x18);
      piVar2 = (int *)(__first + iVar1 * 0xc);
      if (*piVar5 < *piVar2) {
        iVar4 = iVar1;
        piVar5 = piVar2;
      }
      piVar2 = (int *)(__first + iVar6 * 0xc);
      *piVar2 = *piVar5;
      piVar2[1] = piVar5[1];
      piVar2[2] = piVar5[2];
      iVar6 = iVar4;
    } while (iVar4 < iVar3);
    if ((__len & 1) == 0) goto LAB_001c94d0;
  }
  else {
    piVar5 = (int *)(__first + __holeIndex * 0xc);
    iVar4 = __holeIndex;
    if ((__len & 1) != 0) goto LAB_001c9494;
LAB_001c94d0:
    if ((int)(__len - 2) / 2 == iVar4) {
      iVar4 = iVar4 * 2 + 1;
      piVar2 = (int *)(__first + iVar4 * 0xc);
      *piVar5 = *piVar2;
      piVar5[1] = piVar2[1];
      piVar5[2] = piVar2[2];
      piVar5 = piVar2;
    }
  }
  iVar6 = (iVar4 + -1) / 2;
  if (__holeIndex < iVar4) {
    piVar2 = (int *)(__first + iVar6 * 0xc);
    iVar3 = *piVar2;
    while (iVar1 = iVar6, iVar3 < __value) {
      piVar5 = (int *)(__first + iVar4 * 0xc);
      *piVar5 = *piVar2;
      piVar5[1] = piVar2[1];
      piVar5[2] = piVar2[2];
      iVar6 = (iVar1 + -1) / 2;
      piVar5 = (int *)(__first + iVar1 * 0xc);
      if (iVar1 <= __holeIndex) break;
      piVar2 = (int *)(__first + iVar6 * 0xc);
      iVar4 = iVar1;
      iVar3 = *piVar2;
    }
  }
LAB_001c9494:
  *piVar5 = __value;
  piVar5[1] = param_5;
  piVar5[2] = param_6;
  return;
}



void FUN_001c9390(int param_1,int param_2,uint param_3,int param_4,int param_5,int param_6)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  int iVar6;
  
  iVar3 = (int)(param_3 - 1) / 2;
  iVar6 = param_2;
  if (param_2 < iVar3) {
    do {
      iVar4 = (iVar6 + 1) * 2;
      iVar1 = iVar4 + -1;
      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);
      piVar2 = (int *)(param_1 + iVar1 * 0xc);
      if (*piVar5 < *piVar2) {
        iVar4 = iVar1;
        piVar5 = piVar2;
      }
      piVar2 = (int *)(param_1 + iVar6 * 0xc);
      *piVar2 = *piVar5;
      piVar2[1] = piVar5[1];
      piVar2[2] = piVar5[2];
      iVar6 = iVar4;
    } while (iVar4 < iVar3);
    if ((param_3 & 1) == 0) goto LAB_001c94d0;
  }
  else {
    piVar5 = (int *)(param_1 + param_2 * 0xc);
    iVar4 = param_2;
    if ((param_3 & 1) != 0) goto LAB_001c9494;
LAB_001c94d0:
    if ((int)(param_3 - 2) / 2 == iVar4) {
      iVar4 = iVar4 * 2 + 1;
      piVar2 = (int *)(param_1 + iVar4 * 0xc);
      *piVar5 = *piVar2;
      piVar5[1] = piVar2[1];
      piVar5[2] = piVar2[2];
      piVar5 = piVar2;
    }
  }
  iVar6 = (iVar4 + -1) / 2;
  if (param_2 < iVar4) {
    piVar2 = (int *)(param_1 + iVar6 * 0xc);
    iVar3 = *piVar2;
    while (iVar1 = iVar6, iVar3 < param_4) {
      piVar5 = (int *)(param_1 + iVar4 * 0xc);
      *piVar5 = *piVar2;
      piVar5[1] = piVar2[1];
      piVar5[2] = piVar2[2];
      iVar6 = (iVar1 + -1) / 2;
      piVar5 = (int *)(param_1 + iVar1 * 0xc);
      if (iVar1 <= param_2) break;
      piVar2 = (int *)(param_1 + iVar6 * 0xc);
      iVar4 = iVar1;
      iVar3 = *piVar2;
    }
  }
LAB_001c9494:
  *piVar5 = param_4;
  piVar5[1] = param_5;
  piVar5[2] = param_6;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x14
MOV EAX,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [ESP + 0x28]
SUB EAX,0x1
AND EDI,0x1
MOV EBP,EAX
MOV dword ptr [ESP + 0xc],EDI
MOV EDI,dword ptr [ESP + 0x38]
SHR EBP,0x1f
ADD EBP,EAX
MOV dword ptr [ESP + 0x4],EDI
MOV EDI,dword ptr [ESP + 0x3c]
MOV EAX,EBP
MOV EBP,dword ptr [ESP + 0x34]
SAR EAX,0x1
MOV dword ptr [ESP + 0x8],EDI
CMP dword ptr [ESP + 0x2c],EAX
JGE 0x001c94b0
MOV dword ptr [ESP + 0x10],EBP
MOV EBX,dword ptr [ESP + 0x2c]
MOV dword ptr [ESP],EAX
LEA ESI,[ESI]
LEA EDX,[EBX + 0x1]
LEA EAX,[EDX + EDX*0x1]
LEA ESI,[EAX + -0x1]
LEA EDX,[EAX + EDX*0x4]
LEA EDI,[ESI + ESI*0x2]
LEA EDX,[ECX + EDX*0x4]
LEA EDI,[ECX + EDI*0x4]
MOV EBP,dword ptr [EDX]
CMP dword ptr [EDI],EBP
JLE 0x001c9407
MOV EDX,EDI
MOV EAX,ESI
MOV ESI,dword ptr [EDX]
LEA EBX,[EBX + EBX*0x2]
LEA EBX,[ECX + EBX*0x4]
MOV dword ptr [EBX],ESI
MOV ESI,dword ptr [EDX + 0x4]
MOV dword ptr [EBX + 0x4],ESI
MOV ESI,dword ptr [EDX + 0x8]
MOV dword ptr [EBX + 0x8],ESI
MOV EBX,EAX
CMP EAX,dword ptr [ESP]
JL 0x001c93e8
MOV EBX,dword ptr [ESP + 0xc]
MOV EBP,dword ptr [ESP + 0x10]
TEST EBX,EBX
JZ 0x001c94d0
LEA EBX,[EAX + -0x1]
MOV ESI,EBX
SHR ESI,0x1f
ADD ESI,EBX
SAR ESI,0x1
CMP EAX,dword ptr [ESP + 0x2c]
JLE 0x001c9494
LEA EBX,[ESI + ESI*0x2]
LEA EDI,[ECX + EBX*0x4]
CMP dword ptr [EDI],EBP
JL 0x001c9466
JMP 0x001c9494
LEA EAX,[EBX + EBX*0x2]
LEA EDI,[ECX + EAX*0x4]
MOV EAX,ESI
MOV ESI,EBX
CMP dword ptr [EDI],EBP
JGE 0x001c9494
MOV EDX,dword ptr [EDI]
LEA EAX,[EAX + EAX*0x2]
LEA EAX,[ECX + EAX*0x4]
MOV dword ptr [EAX],EDX
MOV EDX,dword ptr [EDI + 0x4]
MOV dword ptr [EAX + 0x4],EDX
MOV EDX,dword ptr [EDI + 0x8]
MOV dword ptr [EAX + 0x8],EDX
LEA EAX,[ESI + -0x1]
MOV EBX,EAX
SHR EBX,0x1f
ADD EBX,EAX
LEA EAX,[ESI + ESI*0x2]
SAR EBX,0x1
LEA EDX,[ECX + EAX*0x4]
CMP dword ptr [ESP + 0x2c],ESI
JL 0x001c9458
MOV EAX,dword ptr [ESP + 0x4]
MOV dword ptr [EDX],EBP
MOV dword ptr [EDX + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EDX + 0x8],EAX
ADD ESP,0x14
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x2c]
LEA EAX,[EAX + EAX*0x2]
LEA EDX,[ECX + EAX*0x4]
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x001c9494
MOV EAX,dword ptr [ESP + 0x2c]
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV EDI,dword ptr [ESP + 0x30]
LEA ESI,[EDI + -0x2]
MOV EBX,ESI
SHR EBX,0x1f
ADD EBX,ESI
SAR EBX,0x1
CMP EBX,EAX
JNZ 0x001c9434
LEA EAX,[EAX + EAX*0x1 + 0x1]
LEA EBX,[EAX + EAX*0x2]
LEA EBX,[ECX + EBX*0x4]
MOV ESI,dword ptr [EBX]
MOV dword ptr [EDX],ESI
MOV ESI,dword ptr [EBX + 0x4]
MOV dword ptr [EDX + 0x4],ESI
MOV ESI,dword ptr [EBX + 0x8]
MOV dword ptr [EDX + 0x8],ESI
MOV EDX,EBX
JMP 0x001c9434
(translation_unit "void FUN_001c9390(int param_1,int param_2,uint param_3,int param_4,int param_5,int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  iVar3 = (int)(param_3 - 1) / 2;\n  iVar6 = param_2;\n  if (param_2 < iVar3) {\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((param_3 & 1) == 0) goto LAB_001c94d0;\n  }\n  else {\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }\n  iVar6 = (iVar4 + -1) / 2;\n  if (param_2 < iVar4) {\n    piVar2 = (int *)(param_1 + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }\nLAB_001c9494:\n  *piVar5 = param_4;\n  piVar5[1] = param_5;\n  piVar5[2] = param_6;\n  return;\n}\n\n" (function_definition "void FUN_001c9390(int param_1,int param_2,uint param_3,int param_4,int param_5,int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  iVar3 = (int)(param_3 - 1) / 2;\n  iVar6 = param_2;\n  if (param_2 < iVar3) {\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((param_3 & 1) == 0) goto LAB_001c94d0;\n  }\n  else {\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }\n  iVar6 = (iVar4 + -1) / 2;\n  if (param_2 < iVar4) {\n    piVar2 = (int *)(param_1 + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }\nLAB_001c9494:\n  *piVar5 = param_4;\n  piVar5[1] = param_5;\n  piVar5[2] = param_6;\n  return;\n}" primitive_type (function_declarator "FUN_001c9390(int param_1,int param_2,uint param_3,int param_4,int param_5,int param_6)" identifier (parameter_list "(int param_1,int param_2,uint param_3,int param_4,int param_5,int param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  iVar3 = (int)(param_3 - 1) / 2;\n  iVar6 = param_2;\n  if (param_2 < iVar3) {\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((param_3 & 1) == 0) goto LAB_001c94d0;\n  }\n  else {\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }\n  iVar6 = (iVar4 + -1) / 2;\n  if (param_2 < iVar4) {\n    piVar2 = (int *)(param_1 + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }\nLAB_001c9494:\n  *piVar5 = param_4;\n  piVar5[1] = param_5;\n  piVar5[2] = param_6;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar3 = (int)(param_3 - 1) / 2;" (assignment_expression "iVar3 = (int)(param_3 - 1) / 2" identifier = (binary_expression "(int)(param_3 - 1) / 2" (cast_expression "(int)(param_3 - 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_3 - 1)" ( (binary_expression "param_3 - 1" identifier - number_literal) ))) / number_literal)) ;) (expression_statement "iVar6 = param_2;" (assignment_expression "iVar6 = param_2" identifier = identifier) ;) (if_statement "if (param_2 < iVar3) {\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((param_3 & 1) == 0) goto LAB_001c94d0;\n  }\n  else {\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }" if (parenthesized_expression "(param_2 < iVar3)" ( (binary_expression "param_2 < iVar3" identifier < identifier) )) (compound_statement "{\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((param_3 & 1) == 0) goto LAB_001c94d0;\n  }" { (do_statement "do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);" do (compound_statement "{\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    }" { (expression_statement "iVar4 = (iVar6 + 1) * 2;" (assignment_expression "iVar4 = (iVar6 + 1) * 2" identifier = (binary_expression "(iVar6 + 1) * 2" (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )) * number_literal)) ;) (expression_statement "iVar1 = iVar4 + -1;" (assignment_expression "iVar1 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);" (assignment_expression "piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18)" identifier = (cast_expression "(int *)(param_1 + (iVar6 + 1) * 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (iVar6 + 1) * 0x18)" ( (binary_expression "param_1 + (iVar6 + 1) * 0x18" identifier + (binary_expression "(iVar6 + 1) * 0x18" (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )) * number_literal)) )))) ;) (expression_statement "piVar2 = (int *)(param_1 + iVar1 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar1 * 0xc)" identifier = (cast_expression "(int *)(param_1 + iVar1 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1 * 0xc)" ( (binary_expression "param_1 + iVar1 * 0xc" identifier + (binary_expression "iVar1 * 0xc" identifier * number_literal)) )))) ;) (if_statement "if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }" if (parenthesized_expression "(*piVar5 < *piVar2)" ( (binary_expression "*piVar5 < *piVar2" (pointer_expression "*piVar5" * identifier) < (pointer_expression "*piVar2" * identifier)) )) (compound_statement "{\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }" { (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) })) (expression_statement "piVar2 = (int *)(param_1 + iVar6 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar6 * 0xc)" identifier = (cast_expression "(int *)(param_1 + iVar6 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6 * 0xc)" ( (binary_expression "param_1 + iVar6 * 0xc" identifier + (binary_expression "iVar6 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "*piVar2 = *piVar5;" (assignment_expression "*piVar2 = *piVar5" (pointer_expression "*piVar2" * identifier) = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "piVar2[1] = piVar5[1];" (assignment_expression "piVar2[1] = piVar5[1]" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[2] = piVar5[2];" (assignment_expression "piVar2[2] = piVar5[2]" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = (subscript_expression "piVar5[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = iVar4;" (assignment_expression "iVar6 = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "(iVar4 < iVar3)" ( (binary_expression "iVar4 < iVar3" identifier < identifier) )) ;) (if_statement "if ((param_3 & 1) == 0) goto LAB_001c94d0;" if (parenthesized_expression "((param_3 & 1) == 0)" ( (binary_expression "(param_3 & 1) == 0" (parenthesized_expression "(param_3 & 1)" ( (binary_expression "param_3 & 1" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_001c94d0;" goto statement_identifier ;)) }) (else_clause "else {\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }" else (compound_statement "{\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }" { (expression_statement "piVar5 = (int *)(param_1 + param_2 * 0xc);" (assignment_expression "piVar5 = (int *)(param_1 + param_2 * 0xc)" identifier = (cast_expression "(int *)(param_1 + param_2 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + param_2 * 0xc)" ( (binary_expression "param_1 + param_2 * 0xc" identifier + (binary_expression "param_2 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "iVar4 = param_2;" (assignment_expression "iVar4 = param_2" identifier = identifier) ;) (if_statement "if ((param_3 & 1) != 0) goto LAB_001c9494;" if (parenthesized_expression "((param_3 & 1) != 0)" ( (binary_expression "(param_3 & 1) != 0" (parenthesized_expression "(param_3 & 1)" ( (binary_expression "param_3 & 1" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_001c9494;" goto statement_identifier ;)) (labeled_statement "LAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }" statement_identifier : (if_statement "if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }" if (parenthesized_expression "((int)(param_3 - 2) / 2 == iVar4)" ( (binary_expression "(int)(param_3 - 2) / 2 == iVar4" (binary_expression "(int)(param_3 - 2) / 2" (cast_expression "(int)(param_3 - 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_3 - 2)" ( (binary_expression "param_3 - 2" identifier - number_literal) ))) / number_literal) == identifier) )) (compound_statement "{\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }" { (expression_statement "iVar4 = iVar4 * 2 + 1;" (assignment_expression "iVar4 = iVar4 * 2 + 1" identifier = (binary_expression "iVar4 * 2 + 1" (binary_expression "iVar4 * 2" identifier * number_literal) + number_literal)) ;) (expression_statement "piVar2 = (int *)(param_1 + iVar4 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar4 * 0xc)" identifier = (cast_expression "(int *)(param_1 + iVar4 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 * 0xc)" ( (binary_expression "param_1 + iVar4 * 0xc" identifier + (binary_expression "iVar4 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "*piVar5 = *piVar2;" (assignment_expression "*piVar5 = *piVar2" (pointer_expression "*piVar5" * identifier) = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar5[1] = piVar2[1];" (assignment_expression "piVar5[1] = piVar2[1]" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar5[2] = piVar2[2];" (assignment_expression "piVar5[2] = piVar2[2]" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) }))) }))) (expression_statement "iVar6 = (iVar4 + -1) / 2;" (assignment_expression "iVar6 = (iVar4 + -1) / 2" identifier = (binary_expression "(iVar4 + -1) / 2" (parenthesized_expression "(iVar4 + -1)" ( (binary_expression "iVar4 + -1" identifier + number_literal) )) / number_literal)) ;) (if_statement "if (param_2 < iVar4) {\n    piVar2 = (int *)(param_1 + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }" if (parenthesized_expression "(param_2 < iVar4)" ( (binary_expression "param_2 < iVar4" identifier < identifier) )) (compound_statement "{\n    piVar2 = (int *)(param_1 + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }" { (expression_statement "piVar2 = (int *)(param_1 + iVar6 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar6 * 0xc)" identifier = (cast_expression "(int *)(param_1 + iVar6 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6 * 0xc)" ( (binary_expression "param_1 + iVar6 * 0xc" identifier + (binary_expression "iVar6 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (while_statement "while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }" while (parenthesized_expression "(iVar1 = iVar6, iVar3 < param_4)" ( (comma_expression "iVar1 = iVar6, iVar3 < param_4" (assignment_expression "iVar1 = iVar6" identifier = identifier) , (binary_expression "iVar3 < param_4" identifier < identifier)) )) (compound_statement "{\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }" { (expression_statement "piVar5 = (int *)(param_1 + iVar4 * 0xc);" (assignment_expression "piVar5 = (int *)(param_1 + iVar4 * 0xc)" identifier = (cast_expression "(int *)(param_1 + iVar4 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 * 0xc)" ( (binary_expression "param_1 + iVar4 * 0xc" identifier + (binary_expression "iVar4 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "*piVar5 = *piVar2;" (assignment_expression "*piVar5 = *piVar2" (pointer_expression "*piVar5" * identifier) = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar5[1] = piVar2[1];" (assignment_expression "piVar5[1] = piVar2[1]" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar5[2] = piVar2[2];" (assignment_expression "piVar5[2] = piVar2[2]" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = (iVar1 + -1) / 2;" (assignment_expression "iVar6 = (iVar1 + -1) / 2" identifier = (binary_expression "(iVar1 + -1) / 2" (parenthesized_expression "(iVar1 + -1)" ( (binary_expression "iVar1 + -1" identifier + number_literal) )) / number_literal)) ;) (expression_statement "piVar5 = (int *)(param_1 + iVar1 * 0xc);" (assignment_expression "piVar5 = (int *)(param_1 + iVar1 * 0xc)" identifier = (cast_expression "(int *)(param_1 + iVar1 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1 * 0xc)" ( (binary_expression "param_1 + iVar1 * 0xc" identifier + (binary_expression "iVar1 * 0xc" identifier * number_literal)) )))) ;) (if_statement "if (iVar1 <= param_2) break;" if (parenthesized_expression "(iVar1 <= param_2)" ( (binary_expression "iVar1 <= param_2" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "piVar2 = (int *)(param_1 + iVar6 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar6 * 0xc)" identifier = (cast_expression "(int *)(param_1 + iVar6 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6 * 0xc)" ( (binary_expression "param_1 + iVar6 * 0xc" identifier + (binary_expression "iVar6 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) })) (labeled_statement "LAB_001c9494:\n  *piVar5 = param_4;" statement_identifier : (expression_statement "*piVar5 = param_4;" (assignment_expression "*piVar5 = param_4" (pointer_expression "*piVar5" * identifier) = identifier) ;)) (expression_statement "piVar5[1] = param_5;" (assignment_expression "piVar5[1] = param_5" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[2] = param_6;" (assignment_expression "piVar5[2] = param_6" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* DWARF original name:\n   __adjust_heap<__gnu_cxx::__normal_iterator<gold::Object_merge_map::Input_merge_entry*,\n   std::vector<gold::Object_merge_map::Input_merge_entry> >, int,\n   gold::Object_merge_map::Input_merge_entry,\n   __gnu_cxx::__ops::_Iter_comp_iter<gold::Object_merge_map::Input_merge_compare> > */\n\nvoid std::\n     __adjust_heap<__gnu_cxx::__normal_iterator<gold::Object_merge_map::Input_merge_entry*,_std::vector<gold::Object_merge_map::Input_merge_entry>_>,_int,_gold::Object_merge_map::Input_merge_entry,___gnu_cxx::__ops::_Iter_comp_iter<gold::Object_merge_map::Input_merge_compare>_>\n               (int __first,int __holeIndex,uint __len,int __value,int param_5,int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  iVar3 = (int)(__len - 1) / 2;\n  iVar6 = __holeIndex;\n  if (__holeIndex < iVar3) {\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(__first + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(__first + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(__first + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((__len & 1) == 0) goto LAB_001c94d0;\n  }\n  else {\n    piVar5 = (int *)(__first + __holeIndex * 0xc);\n    iVar4 = __holeIndex;\n    if ((__len & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(__len - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(__first + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }\n  iVar6 = (iVar4 + -1) / 2;\n  if (__holeIndex < iVar4) {\n    piVar2 = (int *)(__first + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < __value) {\n      piVar5 = (int *)(__first + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(__first + iVar1 * 0xc);\n      if (iVar1 <= __holeIndex) break;\n      piVar2 = (int *)(__first + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }\nLAB_001c9494:\n  *piVar5 = __value;\n  piVar5[1] = param_5;\n  piVar5[2] = param_6;\n  return;\n}\n\n" comment comment (declaration "void std::\n     __adjust_heap<__gnu_cxx::__normal_iterator<gold::Object_merge_map::Input_merge_entry*,_std::vector<gold::Object_merge_map::Input_merge_entry>_>,_int,_gold::Object_merge_map::Input_merge_entry,___gnu_cxx::__ops::_Iter_comp_iter<gold::Object_merge_map::Input_merge_compare>_>\n               (int __first,int __holeIndex,uint __len,int __value,int param_5,int param_6)\n\n{\n  int iVar1;" primitive_type (ERROR "std::\n     __adjust_heap<__gnu_cxx::__normal_iterator<gold::Object_merge_map::" identifier : : identifier < identifier : : identifier < identifier : : identifier : :) identifier (ERROR "*" *) , (ERROR "_std::vector<gold::Object_merge_map::Input_merge_entry>" identifier : : identifier < identifier : : identifier : : identifier >) identifier (ERROR ">" >) , identifier , (ERROR "_gold::Object_merge_map::" identifier : : identifier : :) identifier , (ERROR "___gnu_cxx::__ops::_Iter_comp_iter<gold::Object_merge_map::Input_merge_compare>_>\n               (int __first,int __holeIndex,uint __len,int __value,int param_5,int param_6)\n\n{\n  int" identifier : : identifier : : identifier < identifier : : identifier : : identifier > (function_declarator "_>\n               (int __first,int __holeIndex,uint __len,int __value,int param_5,int param_6)" identifier (ERROR ">" >) (parameter_list "(int __first,int __holeIndex,uint __len,int __value,int param_5,int param_6)" ( (parameter_declaration "int __first" primitive_type identifier) , (parameter_declaration "int __holeIndex" primitive_type identifier) , (parameter_declaration "uint __len" type_identifier identifier) , (parameter_declaration "int __value" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) { primitive_type) identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar3 = (int)(__len - 1) / 2;" (assignment_expression "iVar3 = (int)(__len - 1) / 2" identifier = (binary_expression "(int)(__len - 1) / 2" (cast_expression "(int)(__len - 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(__len - 1)" ( (binary_expression "__len - 1" identifier - number_literal) ))) / number_literal)) ;) (expression_statement "iVar6 = __holeIndex;" (assignment_expression "iVar6 = __holeIndex" identifier = identifier) ;) (if_statement "if (__holeIndex < iVar3) {\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(__first + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(__first + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(__first + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((__len & 1) == 0) goto LAB_001c94d0;\n  }\n  else {\n    piVar5 = (int *)(__first + __holeIndex * 0xc);\n    iVar4 = __holeIndex;\n    if ((__len & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(__len - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(__first + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }" if (parenthesized_expression "(__holeIndex < iVar3)" ( (binary_expression "__holeIndex < iVar3" identifier < identifier) )) (compound_statement "{\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(__first + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(__first + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(__first + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((__len & 1) == 0) goto LAB_001c94d0;\n  }" { (do_statement "do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(__first + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(__first + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(__first + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);" do (compound_statement "{\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(__first + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(__first + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(__first + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    }" { (expression_statement "iVar4 = (iVar6 + 1) * 2;" (assignment_expression "iVar4 = (iVar6 + 1) * 2" identifier = (binary_expression "(iVar6 + 1) * 2" (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )) * number_literal)) ;) (expression_statement "iVar1 = iVar4 + -1;" (assignment_expression "iVar1 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "piVar5 = (int *)(__first + (iVar6 + 1) * 0x18);" (assignment_expression "piVar5 = (int *)(__first + (iVar6 + 1) * 0x18)" identifier = (cast_expression "(int *)(__first + (iVar6 + 1) * 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + (iVar6 + 1) * 0x18)" ( (binary_expression "__first + (iVar6 + 1) * 0x18" identifier + (binary_expression "(iVar6 + 1) * 0x18" (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )) * number_literal)) )))) ;) (expression_statement "piVar2 = (int *)(__first + iVar1 * 0xc);" (assignment_expression "piVar2 = (int *)(__first + iVar1 * 0xc)" identifier = (cast_expression "(int *)(__first + iVar1 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + iVar1 * 0xc)" ( (binary_expression "__first + iVar1 * 0xc" identifier + (binary_expression "iVar1 * 0xc" identifier * number_literal)) )))) ;) (if_statement "if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }" if (parenthesized_expression "(*piVar5 < *piVar2)" ( (binary_expression "*piVar5 < *piVar2" (pointer_expression "*piVar5" * identifier) < (pointer_expression "*piVar2" * identifier)) )) (compound_statement "{\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }" { (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) })) (expression_statement "piVar2 = (int *)(__first + iVar6 * 0xc);" (assignment_expression "piVar2 = (int *)(__first + iVar6 * 0xc)" identifier = (cast_expression "(int *)(__first + iVar6 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + iVar6 * 0xc)" ( (binary_expression "__first + iVar6 * 0xc" identifier + (binary_expression "iVar6 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "*piVar2 = *piVar5;" (assignment_expression "*piVar2 = *piVar5" (pointer_expression "*piVar2" * identifier) = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "piVar2[1] = piVar5[1];" (assignment_expression "piVar2[1] = piVar5[1]" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[2] = piVar5[2];" (assignment_expression "piVar2[2] = piVar5[2]" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = (subscript_expression "piVar5[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = iVar4;" (assignment_expression "iVar6 = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "(iVar4 < iVar3)" ( (binary_expression "iVar4 < iVar3" identifier < identifier) )) ;) (if_statement "if ((__len & 1) == 0) goto LAB_001c94d0;" if (parenthesized_expression "((__len & 1) == 0)" ( (binary_expression "(__len & 1) == 0" (parenthesized_expression "(__len & 1)" ( (binary_expression "__len & 1" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_001c94d0;" goto statement_identifier ;)) }) (else_clause "else {\n    piVar5 = (int *)(__first + __holeIndex * 0xc);\n    iVar4 = __holeIndex;\n    if ((__len & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(__len - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(__first + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }" else (compound_statement "{\n    piVar5 = (int *)(__first + __holeIndex * 0xc);\n    iVar4 = __holeIndex;\n    if ((__len & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(__len - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(__first + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }" { (expression_statement "piVar5 = (int *)(__first + __holeIndex * 0xc);" (assignment_expression "piVar5 = (int *)(__first + __holeIndex * 0xc)" identifier = (cast_expression "(int *)(__first + __holeIndex * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + __holeIndex * 0xc)" ( (binary_expression "__first + __holeIndex * 0xc" identifier + (binary_expression "__holeIndex * 0xc" identifier * number_literal)) )))) ;) (expression_statement "iVar4 = __holeIndex;" (assignment_expression "iVar4 = __holeIndex" identifier = identifier) ;) (if_statement "if ((__len & 1) != 0) goto LAB_001c9494;" if (parenthesized_expression "((__len & 1) != 0)" ( (binary_expression "(__len & 1) != 0" (parenthesized_expression "(__len & 1)" ( (binary_expression "__len & 1" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_001c9494;" goto statement_identifier ;)) (labeled_statement "LAB_001c94d0:\n    if ((int)(__len - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(__first + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }" statement_identifier : (if_statement "if ((int)(__len - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(__first + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }" if (parenthesized_expression "((int)(__len - 2) / 2 == iVar4)" ( (binary_expression "(int)(__len - 2) / 2 == iVar4" (binary_expression "(int)(__len - 2) / 2" (cast_expression "(int)(__len - 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(__len - 2)" ( (binary_expression "__len - 2" identifier - number_literal) ))) / number_literal) == identifier) )) (compound_statement "{\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(__first + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }" { (expression_statement "iVar4 = iVar4 * 2 + 1;" (assignment_expression "iVar4 = iVar4 * 2 + 1" identifier = (binary_expression "iVar4 * 2 + 1" (binary_expression "iVar4 * 2" identifier * number_literal) + number_literal)) ;) (expression_statement "piVar2 = (int *)(__first + iVar4 * 0xc);" (assignment_expression "piVar2 = (int *)(__first + iVar4 * 0xc)" identifier = (cast_expression "(int *)(__first + iVar4 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + iVar4 * 0xc)" ( (binary_expression "__first + iVar4 * 0xc" identifier + (binary_expression "iVar4 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "*piVar5 = *piVar2;" (assignment_expression "*piVar5 = *piVar2" (pointer_expression "*piVar5" * identifier) = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar5[1] = piVar2[1];" (assignment_expression "piVar5[1] = piVar2[1]" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar5[2] = piVar2[2];" (assignment_expression "piVar5[2] = piVar2[2]" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) }))) }))) (expression_statement "iVar6 = (iVar4 + -1) / 2;" (assignment_expression "iVar6 = (iVar4 + -1) / 2" identifier = (binary_expression "(iVar4 + -1) / 2" (parenthesized_expression "(iVar4 + -1)" ( (binary_expression "iVar4 + -1" identifier + number_literal) )) / number_literal)) ;) (if_statement "if (__holeIndex < iVar4) {\n    piVar2 = (int *)(__first + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < __value) {\n      piVar5 = (int *)(__first + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(__first + iVar1 * 0xc);\n      if (iVar1 <= __holeIndex) break;\n      piVar2 = (int *)(__first + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }" if (parenthesized_expression "(__holeIndex < iVar4)" ( (binary_expression "__holeIndex < iVar4" identifier < identifier) )) (compound_statement "{\n    piVar2 = (int *)(__first + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < __value) {\n      piVar5 = (int *)(__first + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(__first + iVar1 * 0xc);\n      if (iVar1 <= __holeIndex) break;\n      piVar2 = (int *)(__first + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }" { (expression_statement "piVar2 = (int *)(__first + iVar6 * 0xc);" (assignment_expression "piVar2 = (int *)(__first + iVar6 * 0xc)" identifier = (cast_expression "(int *)(__first + iVar6 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + iVar6 * 0xc)" ( (binary_expression "__first + iVar6 * 0xc" identifier + (binary_expression "iVar6 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (while_statement "while (iVar1 = iVar6, iVar3 < __value) {\n      piVar5 = (int *)(__first + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(__first + iVar1 * 0xc);\n      if (iVar1 <= __holeIndex) break;\n      piVar2 = (int *)(__first + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }" while (parenthesized_expression "(iVar1 = iVar6, iVar3 < __value)" ( (comma_expression "iVar1 = iVar6, iVar3 < __value" (assignment_expression "iVar1 = iVar6" identifier = identifier) , (binary_expression "iVar3 < __value" identifier < identifier)) )) (compound_statement "{\n      piVar5 = (int *)(__first + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(__first + iVar1 * 0xc);\n      if (iVar1 <= __holeIndex) break;\n      piVar2 = (int *)(__first + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }" { (expression_statement "piVar5 = (int *)(__first + iVar4 * 0xc);" (assignment_expression "piVar5 = (int *)(__first + iVar4 * 0xc)" identifier = (cast_expression "(int *)(__first + iVar4 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + iVar4 * 0xc)" ( (binary_expression "__first + iVar4 * 0xc" identifier + (binary_expression "iVar4 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "*piVar5 = *piVar2;" (assignment_expression "*piVar5 = *piVar2" (pointer_expression "*piVar5" * identifier) = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar5[1] = piVar2[1];" (assignment_expression "piVar5[1] = piVar2[1]" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar5[2] = piVar2[2];" (assignment_expression "piVar5[2] = piVar2[2]" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = (iVar1 + -1) / 2;" (assignment_expression "iVar6 = (iVar1 + -1) / 2" identifier = (binary_expression "(iVar1 + -1) / 2" (parenthesized_expression "(iVar1 + -1)" ( (binary_expression "iVar1 + -1" identifier + number_literal) )) / number_literal)) ;) (expression_statement "piVar5 = (int *)(__first + iVar1 * 0xc);" (assignment_expression "piVar5 = (int *)(__first + iVar1 * 0xc)" identifier = (cast_expression "(int *)(__first + iVar1 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + iVar1 * 0xc)" ( (binary_expression "__first + iVar1 * 0xc" identifier + (binary_expression "iVar1 * 0xc" identifier * number_literal)) )))) ;) (if_statement "if (iVar1 <= __holeIndex) break;" if (parenthesized_expression "(iVar1 <= __holeIndex)" ( (binary_expression "iVar1 <= __holeIndex" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "piVar2 = (int *)(__first + iVar6 * 0xc);" (assignment_expression "piVar2 = (int *)(__first + iVar6 * 0xc)" identifier = (cast_expression "(int *)(__first + iVar6 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + iVar6 * 0xc)" ( (binary_expression "__first + iVar6 * 0xc" identifier + (binary_expression "iVar6 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) })) (labeled_statement "LAB_001c9494:\n  *piVar5 = __value;" statement_identifier : (expression_statement "*piVar5 = __value;" (assignment_expression "*piVar5 = __value" (pointer_expression "*piVar5" * identifier) = identifier) ;)) (expression_statement "piVar5[1] = param_5;" (assignment_expression "piVar5[1] = param_5" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[2] = param_6;" (assignment_expression "piVar5[2] = param_6" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_001c9390(int param_1,int param_2,uint param_3,int param_4,int param_5,int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  iVar3 = (int)(param_3 - 1) / 2;\n  iVar6 = param_2;\n  if (param_2 < iVar3) {\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((param_3 & 1) == 0) goto LAB_001c94d0;\n  }\n  else {\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }\n  iVar6 = (iVar4 + -1) / 2;\n  if (param_2 < iVar4) {\n    piVar2 = (int *)(param_1 + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }\nLAB_001c9494:\n  *piVar5 = param_4;\n  piVar5[1] = param_5;\n  piVar5[2] = param_6;\n  return;\n}\n\n" (function_definition "void FUN_001c9390(int param_1,int param_2,uint param_3,int param_4,int param_5,int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  iVar3 = (int)(param_3 - 1) / 2;\n  iVar6 = param_2;\n  if (param_2 < iVar3) {\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((param_3 & 1) == 0) goto LAB_001c94d0;\n  }\n  else {\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }\n  iVar6 = (iVar4 + -1) / 2;\n  if (param_2 < iVar4) {\n    piVar2 = (int *)(param_1 + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }\nLAB_001c9494:\n  *piVar5 = param_4;\n  piVar5[1] = param_5;\n  piVar5[2] = param_6;\n  return;\n}" primitive_type (function_declarator "FUN_001c9390(int param_1,int param_2,uint param_3,int param_4,int param_5,int param_6)" identifier (parameter_list "(int param_1,int param_2,uint param_3,int param_4,int param_5,int param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  iVar3 = (int)(param_3 - 1) / 2;\n  iVar6 = param_2;\n  if (param_2 < iVar3) {\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((param_3 & 1) == 0) goto LAB_001c94d0;\n  }\n  else {\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }\n  iVar6 = (iVar4 + -1) / 2;\n  if (param_2 < iVar4) {\n    piVar2 = (int *)(param_1 + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }\nLAB_001c9494:\n  *piVar5 = param_4;\n  piVar5[1] = param_5;\n  piVar5[2] = param_6;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar3 = (int)(param_3 - 1) / 2;" (assignment_expression "iVar3 = (int)(param_3 - 1) / 2" identifier = (binary_expression "(int)(param_3 - 1) / 2" (cast_expression "(int)(param_3 - 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_3 - 1)" ( (binary_expression "param_3 - 1" identifier - number_literal) ))) / number_literal)) ;) (expression_statement "iVar6 = param_2;" (assignment_expression "iVar6 = param_2" identifier = identifier) ;) (if_statement "if (param_2 < iVar3) {\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((param_3 & 1) == 0) goto LAB_001c94d0;\n  }\n  else {\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }" if (parenthesized_expression "(param_2 < iVar3)" ( (binary_expression "param_2 < iVar3" identifier < identifier) )) (compound_statement "{\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((param_3 & 1) == 0) goto LAB_001c94d0;\n  }" { (do_statement "do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);" do (compound_statement "{\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    }" { (expression_statement "iVar4 = (iVar6 + 1) * 2;" (assignment_expression "iVar4 = (iVar6 + 1) * 2" identifier = (binary_expression "(iVar6 + 1) * 2" (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )) * number_literal)) ;) (expression_statement "iVar1 = iVar4 + -1;" (assignment_expression "iVar1 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);" (assignment_expression "piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18)" identifier = (cast_expression "(int *)(param_1 + (iVar6 + 1) * 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (iVar6 + 1) * 0x18)" ( (binary_expression "param_1 + (iVar6 + 1) * 0x18" identifier + (binary_expression "(iVar6 + 1) * 0x18" (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )) * number_literal)) )))) ;) (expression_statement "piVar2 = (int *)(param_1 + iVar1 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar1 * 0xc)" identifier = (cast_expression "(int *)(param_1 + iVar1 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1 * 0xc)" ( (binary_expression "param_1 + iVar1 * 0xc" identifier + (binary_expression "iVar1 * 0xc" identifier * number_literal)) )))) ;) (if_statement "if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }" if (parenthesized_expression "(*piVar5 < *piVar2)" ( (binary_expression "*piVar5 < *piVar2" (pointer_expression "*piVar5" * identifier) < (pointer_expression "*piVar2" * identifier)) )) (compound_statement "{\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }" { (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) })) (expression_statement "piVar2 = (int *)(param_1 + iVar6 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar6 * 0xc)" identifier = (cast_expression "(int *)(param_1 + iVar6 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6 * 0xc)" ( (binary_expression "param_1 + iVar6 * 0xc" identifier + (binary_expression "iVar6 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "*piVar2 = *piVar5;" (assignment_expression "*piVar2 = *piVar5" (pointer_expression "*piVar2" * identifier) = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "piVar2[1] = piVar5[1];" (assignment_expression "piVar2[1] = piVar5[1]" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[2] = piVar5[2];" (assignment_expression "piVar2[2] = piVar5[2]" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = (subscript_expression "piVar5[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = iVar4;" (assignment_expression "iVar6 = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "(iVar4 < iVar3)" ( (binary_expression "iVar4 < iVar3" identifier < identifier) )) ;) (if_statement "if ((param_3 & 1) == 0) goto LAB_001c94d0;" if (parenthesized_expression "((param_3 & 1) == 0)" ( (binary_expression "(param_3 & 1) == 0" (parenthesized_expression "(param_3 & 1)" ( (binary_expression "param_3 & 1" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_001c94d0;" goto statement_identifier ;)) }) (else_clause "else {\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }" else (compound_statement "{\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }" { (expression_statement "piVar5 = (int *)(param_1 + param_2 * 0xc);" (assignment_expression "piVar5 = (int *)(param_1 + param_2 * 0xc)" identifier = (cast_expression "(int *)(param_1 + param_2 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + param_2 * 0xc)" ( (binary_expression "param_1 + param_2 * 0xc" identifier + (binary_expression "param_2 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "iVar4 = param_2;" (assignment_expression "iVar4 = param_2" identifier = identifier) ;) (if_statement "if ((param_3 & 1) != 0) goto LAB_001c9494;" if (parenthesized_expression "((param_3 & 1) != 0)" ( (binary_expression "(param_3 & 1) != 0" (parenthesized_expression "(param_3 & 1)" ( (binary_expression "param_3 & 1" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_001c9494;" goto statement_identifier ;)) (labeled_statement "LAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }" statement_identifier : (if_statement "if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }" if (parenthesized_expression "((int)(param_3 - 2) / 2 == iVar4)" ( (binary_expression "(int)(param_3 - 2) / 2 == iVar4" (binary_expression "(int)(param_3 - 2) / 2" (cast_expression "(int)(param_3 - 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_3 - 2)" ( (binary_expression "param_3 - 2" identifier - number_literal) ))) / number_literal) == identifier) )) (compound_statement "{\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }" { (expression_statement "iVar4 = iVar4 * 2 + 1;" (assignment_expression "iVar4 = iVar4 * 2 + 1" identifier = (binary_expression "iVar4 * 2 + 1" (binary_expression "iVar4 * 2" identifier * number_literal) + number_literal)) ;) (expression_statement "piVar2 = (int *)(param_1 + iVar4 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar4 * 0xc)" identifier = (cast_expression "(int *)(param_1 + iVar4 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 * 0xc)" ( (binary_expression "param_1 + iVar4 * 0xc" identifier + (binary_expression "iVar4 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "*piVar5 = *piVar2;" (assignment_expression "*piVar5 = *piVar2" (pointer_expression "*piVar5" * identifier) = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar5[1] = piVar2[1];" (assignment_expression "piVar5[1] = piVar2[1]" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar5[2] = piVar2[2];" (assignment_expression "piVar5[2] = piVar2[2]" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) }))) }))) (expression_statement "iVar6 = (iVar4 + -1) / 2;" (assignment_expression "iVar6 = (iVar4 + -1) / 2" identifier = (binary_expression "(iVar4 + -1) / 2" (parenthesized_expression "(iVar4 + -1)" ( (binary_expression "iVar4 + -1" identifier + number_literal) )) / number_literal)) ;) (if_statement "if (param_2 < iVar4) {\n    piVar2 = (int *)(param_1 + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }" if (parenthesized_expression "(param_2 < iVar4)" ( (binary_expression "param_2 < iVar4" identifier < identifier) )) (compound_statement "{\n    piVar2 = (int *)(param_1 + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }" { (expression_statement "piVar2 = (int *)(param_1 + iVar6 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar6 * 0xc)" identifier = (cast_expression "(int *)(param_1 + iVar6 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6 * 0xc)" ( (binary_expression "param_1 + iVar6 * 0xc" identifier + (binary_expression "iVar6 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (while_statement "while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }" while (parenthesized_expression "(iVar1 = iVar6, iVar3 < param_4)" ( (comma_expression "iVar1 = iVar6, iVar3 < param_4" (assignment_expression "iVar1 = iVar6" identifier = identifier) , (binary_expression "iVar3 < param_4" identifier < identifier)) )) (compound_statement "{\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }" { (expression_statement "piVar5 = (int *)(param_1 + iVar4 * 0xc);" (assignment_expression "piVar5 = (int *)(param_1 + iVar4 * 0xc)" identifier = (cast_expression "(int *)(param_1 + iVar4 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 * 0xc)" ( (binary_expression "param_1 + iVar4 * 0xc" identifier + (binary_expression "iVar4 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "*piVar5 = *piVar2;" (assignment_expression "*piVar5 = *piVar2" (pointer_expression "*piVar5" * identifier) = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar5[1] = piVar2[1];" (assignment_expression "piVar5[1] = piVar2[1]" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar5[2] = piVar2[2];" (assignment_expression "piVar5[2] = piVar2[2]" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = (iVar1 + -1) / 2;" (assignment_expression "iVar6 = (iVar1 + -1) / 2" identifier = (binary_expression "(iVar1 + -1) / 2" (parenthesized_expression "(iVar1 + -1)" ( (binary_expression "iVar1 + -1" identifier + number_literal) )) / number_literal)) ;) (expression_statement "piVar5 = (int *)(param_1 + iVar1 * 0xc);" (assignment_expression "piVar5 = (int *)(param_1 + iVar1 * 0xc)" identifier = (cast_expression "(int *)(param_1 + iVar1 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1 * 0xc)" ( (binary_expression "param_1 + iVar1 * 0xc" identifier + (binary_expression "iVar1 * 0xc" identifier * number_literal)) )))) ;) (if_statement "if (iVar1 <= param_2) break;" if (parenthesized_expression "(iVar1 <= param_2)" ( (binary_expression "iVar1 <= param_2" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "piVar2 = (int *)(param_1 + iVar6 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar6 * 0xc)" identifier = (cast_expression "(int *)(param_1 + iVar6 * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6 * 0xc)" ( (binary_expression "param_1 + iVar6 * 0xc" identifier + (binary_expression "iVar6 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) })) (labeled_statement "LAB_001c9494:\n  *piVar5 = param_4;" statement_identifier : (expression_statement "*piVar5 = param_4;" (assignment_expression "*piVar5 = param_4" (pointer_expression "*piVar5" * identifier) = identifier) ;)) (expression_statement "piVar5[1] = param_5;" (assignment_expression "piVar5[1] = param_5" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[2] = param_6;" (assignment_expression "piVar5[2] = param_6" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - LIT) ))) / LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - LIT) ))) / LIT) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) }))) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) / LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT < IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) / LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_001c9390(int param_1,int param_2,uint param_3,int param_4,int param_5,int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  iVar3 = (int)(param_3 - 1) / 2;\n  iVar6 = param_2;\n  if (param_2 < iVar3) {\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((param_3 & 1) == 0) goto LAB_001c94d0;\n  }\n  else {\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }\n  iVar6 = (iVar4 + -1) / 2;\n  if (param_2 < iVar4) {\n    piVar2 = (int *)(param_1 + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }\nLAB_001c9494:\n  *piVar5 = param_4;\n  piVar5[1] = param_5;\n  piVar5[2] = param_6;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001c9390(int param_1,int param_2,uint param_3,int param_4,int param_5,int param_6)" (identifier "FUN_001c9390") (parameter_list "(int param_1,int param_2,uint param_3,int param_4,int param_5,int param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  \n  iVar3 = (int)(param_3 - 1) / 2;\n  iVar6 = param_2;\n  if (param_2 < iVar3) {\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((param_3 & 1) == 0) goto LAB_001c94d0;\n  }\n  else {\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }\n  iVar6 = (iVar4 + -1) / 2;\n  if (param_2 < iVar4) {\n    piVar2 = (int *)(param_1 + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }\nLAB_001c9494:\n  *piVar5 = param_4;\n  piVar5[1] = param_5;\n  piVar5[2] = param_6;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "iVar3 = (int)(param_3 - 1) / 2;" (assignment_expression "iVar3 = (int)(param_3 - 1) / 2" (identifier "iVar3") (= "=") (binary_expression "(int)(param_3 - 1) / 2" (cast_expression "(int)(param_3 - 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_3 - 1)" (( "(") (binary_expression "param_3 - 1" (identifier "param_3") (- "-") (number_literal "1")) () ")"))) (/ "/") (number_literal "2"))) (; ";")) (expression_statement "iVar6 = param_2;" (assignment_expression "iVar6 = param_2" (identifier "iVar6") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_2 < iVar3) {\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((param_3 & 1) == 0) goto LAB_001c94d0;\n  }\n  else {\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 < iVar3)" (( "(") (binary_expression "param_2 < iVar3" (identifier "param_2") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);\n    if ((param_3 & 1) == 0) goto LAB_001c94d0;\n  }" ({ "{") (do_statement "do {\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    } while (iVar4 < iVar3);" (do "do") (compound_statement "{\n      iVar4 = (iVar6 + 1) * 2;\n      iVar1 = iVar4 + -1;\n      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);\n      piVar2 = (int *)(param_1 + iVar1 * 0xc);\n      if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      *piVar2 = *piVar5;\n      piVar2[1] = piVar5[1];\n      piVar2[2] = piVar5[2];\n      iVar6 = iVar4;\n    }" ({ "{") (expression_statement "iVar4 = (iVar6 + 1) * 2;" (assignment_expression "iVar4 = (iVar6 + 1) * 2" (identifier "iVar4") (= "=") (binary_expression "(iVar6 + 1) * 2" (parenthesized_expression "(iVar6 + 1)" (( "(") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "iVar1 = iVar4 + -1;" (assignment_expression "iVar1 = iVar4 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);" (assignment_expression "piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18)" (identifier "piVar5") (= "=") (cast_expression "(int *)(param_1 + (iVar6 + 1) * 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + (iVar6 + 1) * 0x18)" (( "(") (binary_expression "param_1 + (iVar6 + 1) * 0x18" (identifier "param_1") (+ "+") (binary_expression "(iVar6 + 1) * 0x18" (parenthesized_expression "(iVar6 + 1)" (( "(") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "0x18"))) () ")")))) (; ";")) (expression_statement "piVar2 = (int *)(param_1 + iVar1 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar1 * 0xc)" (identifier "piVar2") (= "=") (cast_expression "(int *)(param_1 + iVar1 * 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar1 * 0xc)" (( "(") (binary_expression "param_1 + iVar1 * 0xc" (identifier "param_1") (+ "+") (binary_expression "iVar1 * 0xc" (identifier "iVar1") (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (if_statement "if (*piVar5 < *piVar2) {\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }" (if "if") (parenthesized_expression "(*piVar5 < *piVar2)" (( "(") (binary_expression "*piVar5 < *piVar2" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (< "<") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) () ")")) (compound_statement "{\n        iVar4 = iVar1;\n        piVar5 = piVar2;\n      }" ({ "{") (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" (identifier "iVar4") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" (identifier "piVar5") (= "=") (identifier "piVar2")) (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)(param_1 + iVar6 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar6 * 0xc)" (identifier "piVar2") (= "=") (cast_expression "(int *)(param_1 + iVar6 * 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar6 * 0xc)" (( "(") (binary_expression "param_1 + iVar6 * 0xc" (identifier "param_1") (+ "+") (binary_expression "iVar6 * 0xc" (identifier "iVar6") (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "*piVar2 = *piVar5;" (assignment_expression "*piVar2 = *piVar5" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "piVar2[1] = piVar5[1];" (assignment_expression "piVar2[1] = piVar5[1]" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar2[2] = piVar5[2];" (assignment_expression "piVar2[2] = piVar5[2]" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar6 = iVar4;" (assignment_expression "iVar6 = iVar4" (identifier "iVar6") (= "=") (identifier "iVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 < iVar3)" (( "(") (binary_expression "iVar4 < iVar3" (identifier "iVar4") (< "<") (identifier "iVar3")) () ")")) (; ";")) (if_statement "if ((param_3 & 1) == 0) goto LAB_001c94d0;" (if "if") (parenthesized_expression "((param_3 & 1) == 0)" (( "(") (binary_expression "(param_3 & 1) == 0" (parenthesized_expression "(param_3 & 1)" (( "(") (binary_expression "param_3 & 1" (identifier "param_3") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_001c94d0;" (goto "goto") (statement_identifier "LAB_001c94d0") (; ";"))) (} "}")) (else_clause "else {\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }" (else "else") (compound_statement "{\n    piVar5 = (int *)(param_1 + param_2 * 0xc);\n    iVar4 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_001c9494;\nLAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }\n  }" ({ "{") (expression_statement "piVar5 = (int *)(param_1 + param_2 * 0xc);" (assignment_expression "piVar5 = (int *)(param_1 + param_2 * 0xc)" (identifier "piVar5") (= "=") (cast_expression "(int *)(param_1 + param_2 * 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + param_2 * 0xc)" (( "(") (binary_expression "param_1 + param_2 * 0xc" (identifier "param_1") (+ "+") (binary_expression "param_2 * 0xc" (identifier "param_2") (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "iVar4 = param_2;" (assignment_expression "iVar4 = param_2" (identifier "iVar4") (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((param_3 & 1) != 0) goto LAB_001c9494;" (if "if") (parenthesized_expression "((param_3 & 1) != 0)" (( "(") (binary_expression "(param_3 & 1) != 0" (parenthesized_expression "(param_3 & 1)" (( "(") (binary_expression "param_3 & 1" (identifier "param_3") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_001c9494;" (goto "goto") (statement_identifier "LAB_001c9494") (; ";"))) (labeled_statement "LAB_001c94d0:\n    if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }" (statement_identifier "LAB_001c94d0") (: ":") (if_statement "if ((int)(param_3 - 2) / 2 == iVar4) {\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }" (if "if") (parenthesized_expression "((int)(param_3 - 2) / 2 == iVar4)" (( "(") (binary_expression "(int)(param_3 - 2) / 2 == iVar4" (binary_expression "(int)(param_3 - 2) / 2" (cast_expression "(int)(param_3 - 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_3 - 2)" (( "(") (binary_expression "param_3 - 2" (identifier "param_3") (- "-") (number_literal "2")) () ")"))) (/ "/") (number_literal "2")) (== "==") (identifier "iVar4")) () ")")) (compound_statement "{\n      iVar4 = iVar4 * 2 + 1;\n      piVar2 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      piVar5 = piVar2;\n    }" ({ "{") (expression_statement "iVar4 = iVar4 * 2 + 1;" (assignment_expression "iVar4 = iVar4 * 2 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 * 2 + 1" (binary_expression "iVar4 * 2" (identifier "iVar4") (* "*") (number_literal "2")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar2 = (int *)(param_1 + iVar4 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar4 * 0xc)" (identifier "piVar2") (= "=") (cast_expression "(int *)(param_1 + iVar4 * 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar4 * 0xc)" (( "(") (binary_expression "param_1 + iVar4 * 0xc" (identifier "param_1") (+ "+") (binary_expression "iVar4 * 0xc" (identifier "iVar4") (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "*piVar5 = *piVar2;" (assignment_expression "*piVar5 = *piVar2" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "piVar5[1] = piVar2[1];" (assignment_expression "piVar5[1] = piVar2[1]" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar5[2] = piVar2[2];" (assignment_expression "piVar5[2] = piVar2[2]" (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" (identifier "piVar5") (= "=") (identifier "piVar2")) (; ";")) (} "}")))) (} "}")))) (expression_statement "iVar6 = (iVar4 + -1) / 2;" (assignment_expression "iVar6 = (iVar4 + -1) / 2" (identifier "iVar6") (= "=") (binary_expression "(iVar4 + -1) / 2" (parenthesized_expression "(iVar4 + -1)" (( "(") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1")) () ")")) (/ "/") (number_literal "2"))) (; ";")) (if_statement "if (param_2 < iVar4) {\n    piVar2 = (int *)(param_1 + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 < iVar4)" (( "(") (binary_expression "param_2 < iVar4" (identifier "param_2") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n    piVar2 = (int *)(param_1 + iVar6 * 0xc);\n    iVar3 = *piVar2;\n    while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }\n  }" ({ "{") (expression_statement "piVar2 = (int *)(param_1 + iVar6 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar6 * 0xc)" (identifier "piVar2") (= "=") (cast_expression "(int *)(param_1 + iVar6 * 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar6 * 0xc)" (( "(") (binary_expression "param_1 + iVar6 * 0xc" (identifier "param_1") (+ "+") (binary_expression "iVar6 * 0xc" (identifier "iVar6") (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" (identifier "iVar3") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (while_statement "while (iVar1 = iVar6, iVar3 < param_4) {\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }" (while "while") (parenthesized_expression "(iVar1 = iVar6, iVar3 < param_4)" (( "(") (comma_expression "iVar1 = iVar6, iVar3 < param_4" (assignment_expression "iVar1 = iVar6" (identifier "iVar1") (= "=") (identifier "iVar6")) (, ",") (binary_expression "iVar3 < param_4" (identifier "iVar3") (< "<") (identifier "param_4"))) () ")")) (compound_statement "{\n      piVar5 = (int *)(param_1 + iVar4 * 0xc);\n      *piVar5 = *piVar2;\n      piVar5[1] = piVar2[1];\n      piVar5[2] = piVar2[2];\n      iVar6 = (iVar1 + -1) / 2;\n      piVar5 = (int *)(param_1 + iVar1 * 0xc);\n      if (iVar1 <= param_2) break;\n      piVar2 = (int *)(param_1 + iVar6 * 0xc);\n      iVar4 = iVar1;\n      iVar3 = *piVar2;\n    }" ({ "{") (expression_statement "piVar5 = (int *)(param_1 + iVar4 * 0xc);" (assignment_expression "piVar5 = (int *)(param_1 + iVar4 * 0xc)" (identifier "piVar5") (= "=") (cast_expression "(int *)(param_1 + iVar4 * 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar4 * 0xc)" (( "(") (binary_expression "param_1 + iVar4 * 0xc" (identifier "param_1") (+ "+") (binary_expression "iVar4 * 0xc" (identifier "iVar4") (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "*piVar5 = *piVar2;" (assignment_expression "*piVar5 = *piVar2" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "piVar5[1] = piVar2[1];" (assignment_expression "piVar5[1] = piVar2[1]" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar5[2] = piVar2[2];" (assignment_expression "piVar5[2] = piVar2[2]" (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar6 = (iVar1 + -1) / 2;" (assignment_expression "iVar6 = (iVar1 + -1) / 2" (identifier "iVar6") (= "=") (binary_expression "(iVar1 + -1) / 2" (parenthesized_expression "(iVar1 + -1)" (( "(") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1")) () ")")) (/ "/") (number_literal "2"))) (; ";")) (expression_statement "piVar5 = (int *)(param_1 + iVar1 * 0xc);" (assignment_expression "piVar5 = (int *)(param_1 + iVar1 * 0xc)" (identifier "piVar5") (= "=") (cast_expression "(int *)(param_1 + iVar1 * 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar1 * 0xc)" (( "(") (binary_expression "param_1 + iVar1 * 0xc" (identifier "param_1") (+ "+") (binary_expression "iVar1 * 0xc" (identifier "iVar1") (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (if_statement "if (iVar1 <= param_2) break;" (if "if") (parenthesized_expression "(iVar1 <= param_2)" (( "(") (binary_expression "iVar1 <= param_2" (identifier "iVar1") (<= "<=") (identifier "param_2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "piVar2 = (int *)(param_1 + iVar6 * 0xc);" (assignment_expression "piVar2 = (int *)(param_1 + iVar6 * 0xc)" (identifier "piVar2") (= "=") (cast_expression "(int *)(param_1 + iVar6 * 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar6 * 0xc)" (( "(") (binary_expression "param_1 + iVar6 * 0xc" (identifier "param_1") (+ "+") (binary_expression "iVar6 * 0xc" (identifier "iVar6") (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" (identifier "iVar4") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" (identifier "iVar3") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_001c9494:\n  *piVar5 = param_4;" (statement_identifier "LAB_001c9494") (: ":") (expression_statement "*piVar5 = param_4;" (assignment_expression "*piVar5 = param_4" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "param_4")) (; ";"))) (expression_statement "piVar5[1] = param_5;" (assignment_expression "piVar5[1] = param_5" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "piVar5[2] = param_6;" (assignment_expression "piVar5[2] = param_6" (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_6")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* DWARF original name:
   __adjust_heap<__gnu_cxx::__normal_iterator<gold::Object_merge_map::Input_merge_entry*,
   std::vector<gold::Object_merge_map::Input_merge_entry> >, int,
   gold::Object_merge_map::Input_merge_entry,
   __gnu_cxx::__ops::_Iter_comp_iter<gold::Object_merge_map::Input_merge_compare> > */

void std::
     __adjust_heap<__gnu_cxx::__normal_iterator<gold::Object_merge_map::Input_merge_entry*,_std::vector<gold::Object_merge_map::Input_merge_entry>_>,_int,_gold::Object_merge_map::Input_merge_entry,___gnu_cxx::__ops::_Iter_comp_iter<gold::Object_merge_map::Input_merge_compare>_>
               (int var_6,int var_2,uint var_1,int var_8,int param_5,int param_6)

{
  int var_7;
  int *piVar2;
  int var_3;
  int var_5;
  int *piVar5;
  int var_4;
  
  var_3 = (int)(var_1 - 1) / 2;
  var_4 = var_2;
  if (var_2 < var_3) {
    do {
      var_5 = (var_4 + 1) * 2;
      var_7 = var_5 + -1;
      piVar5 = (int *)(var_6 + (var_4 + 1) * 0x18);
      piVar2 = (int *)(var_6 + var_7 * 0xc);
      if (*piVar5 < *piVar2) {
        var_5 = var_7;
        piVar5 = piVar2;
      }
      piVar2 = (int *)(var_6 + var_4 * 0xc);
      *piVar2 = *piVar5;
      piVar2[1] = piVar5[1];
      piVar2[2] = piVar5[2];
      var_4 = var_5;
    } while (var_5 < var_3);
    if ((var_1 & 1) == 0) goto LAB_001c94d0;
  }
  else {
    piVar5 = (int *)(var_6 + var_2 * 0xc);
    var_5 = var_2;
    if ((var_1 & 1) != 0) goto LAB_001c9494;
LAB_001c94d0:
    if ((int)(var_1 - 2) / 2 == var_5) {
      var_5 = var_5 * 2 + 1;
      piVar2 = (int *)(var_6 + var_5 * 0xc);
      *piVar5 = *piVar2;
      piVar5[1] = piVar2[1];
      piVar5[2] = piVar2[2];
      piVar5 = piVar2;
    }
  }
  var_4 = (var_5 + -1) / 2;
  if (var_2 < var_5) {
    piVar2 = (int *)(var_6 + var_4 * 0xc);
    var_3 = *piVar2;
    while (var_7 = var_4, var_3 < var_8) {
      piVar5 = (int *)(var_6 + var_5 * 0xc);
      *piVar5 = *piVar2;
      piVar5[1] = piVar2[1];
      piVar5[2] = piVar2[2];
      var_4 = (var_7 + -1) / 2;
      piVar5 = (int *)(var_6 + var_7 * 0xc);
      if (var_7 <= var_2) break;
      piVar2 = (int *)(var_6 + var_4 * 0xc);
      var_5 = var_7;
      var_3 = *piVar2;
    }
  }
LAB_001c9494:
  *piVar5 = var_8;
  piVar5[1] = param_5;
  piVar5[2] = param_6;
  return;
}


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

void MASKED(int param_1,int param_2,uint param_3,int param_4,int param_5,int param_6)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  int iVar6;
  
  iVar3 = (int)(param_3 - 1) / 2;
  iVar6 = param_2;
  if (param_2 < iVar3) {
    do {
      iVar4 = (iVar6 + 1) * 2;
      iVar1 = iVar4 + -1;
      piVar5 = (int *)(param_1 + (iVar6 + 1) * 0x18);
      piVar2 = (int *)(param_1 + iVar1 * 0xc);
      if (*piVar5 < *piVar2) {
        iVar4 = iVar1;
        piVar5 = piVar2;
      }
      piVar2 = (int *)(param_1 + iVar6 * 0xc);
      *piVar2 = *piVar5;
      piVar2[1] = piVar5[1];
      piVar2[2] = piVar5[2];
      iVar6 = iVar4;
    } while (iVar4 < iVar3);
    if ((param_3 & 1) == 0) goto LAB_001c94d0;
  }
  else {
    piVar5 = (int *)(param_1 + param_2 * 0xc);
    iVar4 = param_2;
    if ((param_3 & 1) != 0) goto LAB_001c9494;
LAB_001c94d0:
    if ((int)(param_3 - 2) / 2 == iVar4) {
      iVar4 = iVar4 * 2 + 1;
      piVar2 = (int *)(param_1 + iVar4 * 0xc);
      *piVar5 = *piVar2;
      piVar5[1] = piVar2[1];
      piVar5[2] = piVar2[2];
      piVar5 = piVar2;
    }
  }
  iVar6 = (iVar4 + -1) / 2;
  if (param_2 < iVar4) {
    piVar2 = (int *)(param_1 + iVar6 * 0xc);
    iVar3 = *piVar2;
    while (iVar1 = iVar6, iVar3 < param_4) {
      piVar5 = (int *)(param_1 + iVar4 * 0xc);
      *piVar5 = *piVar2;
      piVar5[1] = piVar2[1];
      piVar5[2] = piVar2[2];
      iVar6 = (iVar1 + -1) / 2;
      piVar5 = (int *)(param_1 + iVar1 * 0xc);
      if (iVar1 <= param_2) break;
      piVar2 = (int *)(param_1 + iVar6 * 0xc);
      iVar4 = iVar1;
      iVar3 = *piVar2;
    }
  }
LAB_001c9494:
  *piVar5 = param_4;
  piVar5[1] = param_5;
  piVar5[2] = param_6;
  return;
}

