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

void std::
     __adjust_heap<__gnu_cxx::__normal_iterator<gold::Symbol**,_std::vector<gold::Symbol*>_>,_int,_gold::Symbol*,___gnu_cxx::__ops::_Iter_comp_iter<gold::Sort_commons<32>_>_>
               (__normal_iterator<gold::Symbol**,_std::vector<gold::Symbol*,_std::allocator<gold::Symbol*>_>_>
                __first,int __holeIndex,int __len,Symbol *__value,
               _Iter_comp_iter<gold::Sort_commons<32>_> __comp)

{
  int iVar1;
  Symbol **ppSVar2;
  bool bVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  Symbol **ppSVar7;
  _Iter_comp_val<gold::Sort_commons<32>_> __cmp;
  
  iVar4 = (__len + -1) / 2;
  if (__holeIndex < iVar4) {
    iVar6 = __holeIndex;
    do {
      iVar5 = (iVar6 + 1) * 2;
      iVar1 = iVar5 + -1;
      bVar3 = gold::Sort_commons<32>::operator()
                        (&__comp._M_comp,__first._M_current[(iVar6 + 1) * 2],
                         __first._M_current[iVar1]);
      ppSVar7 = __first._M_current + (iVar6 + 1) * 2;
      if (bVar3) {
        iVar5 = iVar1;
        ppSVar7 = __first._M_current + iVar1;
      }
      __first._M_current[iVar6] = *ppSVar7;
      iVar6 = iVar5;
    } while (iVar5 < iVar4);
    if ((__len & 1U) == 0) goto LAB_0019d2a0;
  }
  else {
    ppSVar7 = __first._M_current + __holeIndex;
    iVar5 = __holeIndex;
    if ((__len & 1U) != 0) goto LAB_0019d277;
LAB_0019d2a0:
    if ((__len + -2) / 2 == iVar5) {
      iVar5 = iVar5 * 2 + 1;
      *ppSVar7 = __first._M_current[iVar5];
      ppSVar7 = __first._M_current + iVar5;
    }
  }
  __cmp._M_comp.symtab_ = __comp._M_comp.symtab_;
  __cmp._M_comp.sort_order_ = __comp._M_comp.sort_order_;
  if (__holeIndex < iVar5) {
    while( true ) {
      iVar4 = (iVar5 + -1) / 2;
      ppSVar2 = __first._M_current + iVar4;
      bVar3 = gold::Sort_commons<32>::operator()(&__cmp._M_comp,*ppSVar2,__value);
      ppSVar7 = __first._M_current + iVar5;
      if (!bVar3) break;
      *ppSVar7 = *ppSVar2;
      iVar5 = iVar4;
      if (iVar4 <= __holeIndex) {
        *ppSVar2 = __value;
        return;
      }
    }
  }
LAB_0019d277:
  *ppSVar7 = __value;
  return;
}



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

{
  int iVar1;
  undefined4 *puVar2;
  char cVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 *puVar7;
  undefined4 local_24;
  undefined4 local_20;
  
  iVar4 = (int)(param_3 - 1) / 2;
  if (param_2 < iVar4) {
    iVar6 = param_2;
    do {
      iVar5 = (iVar6 + 1) * 2;
      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);
      iVar1 = iVar5 + -1;
      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);
      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);
      if (cVar3 != '\0') {
        iVar5 = iVar1;
        puVar7 = puVar2;
      }
      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;
      iVar6 = iVar5;
    } while (iVar5 < iVar4);
    if ((param_3 & 1) == 0) goto LAB_0019d2a0;
  }
  else {
    puVar7 = (undefined4 *)(param_1 + param_2 * 4);
    iVar5 = param_2;
    if ((param_3 & 1) != 0) goto LAB_0019d277;
LAB_0019d2a0:
    if ((int)(param_3 - 2) / 2 == iVar5) {
      iVar5 = iVar5 * 2 + 1;
      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);
      *puVar7 = *puVar2;
      puVar7 = puVar2;
    }
  }
  local_24 = param_5;
  local_20 = param_6;
  if (param_2 < iVar5) {
    while( true ) {
      iVar4 = (iVar5 + -1) / 2;
      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);
      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);
      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);
      if (cVar3 == '\0') break;
      *puVar7 = *puVar2;
      iVar5 = iVar4;
      if (iVar4 <= param_2) {
        *puVar2 = param_4;
        return;
      }
    }
  }
LAB_0019d277:
  *puVar7 = param_4;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x3c
MOV EAX,dword ptr [ESP + 0x58]
MOV EDI,dword ptr [ESP + 0x50]
LEA EDX,[EAX + -0x1]
MOV EAX,EDX
SHR EAX,0x1f
ADD EAX,EDX
MOV EDX,dword ptr [ESP + 0x58]
SAR EAX,0x1
AND EDX,0x1
MOV dword ptr [ESP + 0x14],EAX
MOV dword ptr [ESP + 0x1c],EDX
CMP dword ptr [ESP + 0x54],EAX
JGE 0x0019d288
LEA EAX,[ESP + 0x60]
MOV EBP,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[EBP + 0x1]
SUB ESP,0x4
LEA EBX,[EAX + EAX*0x1]
LEA ESI,[EDI + EAX*0x8]
LEA EDX,[EBX + -0x1]
LEA ECX,[EDI + EDX*0x4]
MOV dword ptr [ESP + 0x14],EDX
PUSH dword ptr [ECX]
MOV dword ptr [ESP + 0x14],ECX
PUSH dword ptr [ESI]
PUSH dword ptr [ESP + 0x24]
CALL 0x0019cd90
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x10]
TEST AL,AL
CMOVNZ ESI,ECX
CMOVNZ EBX,EDX
MOV EAX,dword ptr [ESI]
MOV dword ptr [EDI + EBP*0x4],EAX
MOV EBP,EBX
CMP EBX,dword ptr [ESP + 0x14]
JL 0x0019d1b0
MOV EDX,dword ptr [ESP + 0x1c]
TEST EDX,EDX
JZ 0x0019d2a0
MOV EAX,dword ptr [ESP + 0x60]
MOV EDX,dword ptr [ESP + 0x64]
MOV dword ptr [ESP + 0x28],EAX
LEA EAX,[EBX + -0x1]
MOV dword ptr [ESP + 0x2c],EDX
MOV EDX,EAX
SHR EDX,0x1f
ADD EDX,EAX
SAR EDX,0x1
CMP EBX,dword ptr [ESP + 0x54]
JLE 0x0019d277
LEA EAX,[ESP + 0x28]
MOV ESI,EBX
MOV EBP,EDX
MOV EBX,EDI
MOV dword ptr [ESP + 0xc],EAX
JMP 0x0019d256
MOV EAX,dword ptr [EDI]
MOV ESI,EBP
MOV dword ptr [ECX],EAX
LEA ECX,[EBP + -0x1]
MOV EAX,ECX
SHR EAX,0x1f
ADD EAX,ECX
SAR EAX,0x1
CMP dword ptr [ESP + 0x54],EBP
JGE 0x0019d2d0
MOV EBP,EAX
SUB ESP,0x4
LEA EDI,[EBX + EBP*0x4]
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [EDI]
PUSH dword ptr [ESP + 0x18]
CALL 0x0019cd90
LEA ECX,[EBX + ESI*0x4]
ADD ESP,0x10
TEST AL,AL
JNZ 0x0019d238
MOV ESI,ECX
MOV EAX,dword ptr [ESP + 0x5c]
MOV dword ptr [ESI],EAX
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x54]
LEA ESI,[EDI + EAX*0x4]
MOV EAX,dword ptr [ESP + 0x1c]
TEST EAX,EAX
JNZ 0x0019d277
MOV EBX,dword ptr [ESP + 0x54]
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [ESP + 0x58]
LEA EDX,[EAX + -0x2]
MOV EAX,EDX
SHR EAX,0x1f
ADD EAX,EDX
SAR EAX,0x1
CMP EAX,EBX
JNZ 0x0019d203
LEA EBX,[EBX + EBX*0x1 + 0x1]
LEA EAX,[EDI + EBX*0x4]
MOV EDX,dword ptr [EAX]
MOV dword ptr [ESI],EDX
MOV ESI,EAX
JMP 0x0019d203
MOV EAX,dword ptr [ESP + 0x5c]
MOV ESI,EDI
MOV dword ptr [ESI],EAX
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void FUN_0019d170(int param_1,int param_2,uint param_3,undefined4 param_4,undefined4 param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar4 = (int)(param_3 - 1) / 2;\n  if (param_2 < iVar4) {\n    iVar6 = param_2;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((param_3 & 1) == 0) goto LAB_0019d2a0;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }\n  local_24 = param_5;\n  local_20 = param_6;\n  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }\n  }\nLAB_0019d277:\n  *puVar7 = param_4;\n  return;\n}\n\n" (function_definition "void FUN_0019d170(int param_1,int param_2,uint param_3,undefined4 param_4,undefined4 param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar4 = (int)(param_3 - 1) / 2;\n  if (param_2 < iVar4) {\n    iVar6 = param_2;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((param_3 & 1) == 0) goto LAB_0019d2a0;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }\n  local_24 = param_5;\n  local_20 = param_6;\n  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }\n  }\nLAB_0019d277:\n  *puVar7 = param_4;\n  return;\n}" primitive_type (function_declarator "FUN_0019d170(int param_1,int param_2,uint param_3,undefined4 param_4,undefined4 param_5,\n                 undefined4 param_6)" identifier (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4,undefined4 param_5,\n                 undefined4 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 "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar4 = (int)(param_3 - 1) / 2;\n  if (param_2 < iVar4) {\n    iVar6 = param_2;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((param_3 & 1) == 0) goto LAB_0019d2a0;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }\n  local_24 = param_5;\n  local_20 = param_6;\n  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }\n  }\nLAB_0019d277:\n  *puVar7 = param_4;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "iVar4 = (int)(param_3 - 1) / 2;" (assignment_expression "iVar4 = (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)) ;) (if_statement "if (param_2 < iVar4) {\n    iVar6 = param_2;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((param_3 & 1) == 0) goto LAB_0019d2a0;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }" if (parenthesized_expression "(param_2 < iVar4)" ( (binary_expression "param_2 < iVar4" identifier < identifier) )) (compound_statement "{\n    iVar6 = param_2;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((param_3 & 1) == 0) goto LAB_0019d2a0;\n  }" { (expression_statement "iVar6 = param_2;" (assignment_expression "iVar6 = param_2" identifier = identifier) ;) (do_statement "do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);" do (compound_statement "{\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    }" { (expression_statement "iVar5 = (iVar6 + 1) * 2;" (assignment_expression "iVar5 = (iVar6 + 1) * 2" identifier = (binary_expression "(iVar6 + 1) * 2" (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )) * number_literal)) ;) (expression_statement "puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);" (assignment_expression "puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8)" identifier = (cast_expression "(undefined4 *)(param_1 + (iVar6 + 1) * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (iVar6 + 1) * 8)" ( (binary_expression "param_1 + (iVar6 + 1) * 8" identifier + (binary_expression "(iVar6 + 1) * 8" (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )) * number_literal)) )))) ;) (expression_statement "iVar1 = iVar5 + -1;" (assignment_expression "iVar1 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar1 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar1 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1 * 4)" ( (binary_expression "param_1 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) ;) (expression_statement "cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);" (assignment_expression "cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2)" identifier = (call_expression "FUN_0019cd90(&param_5,*puVar7,*puVar2)" identifier (argument_list "(&param_5,*puVar7,*puVar2)" ( (pointer_expression "&param_5" & identifier) , (pointer_expression "*puVar7" * identifier) , (pointer_expression "*puVar2" * identifier) )))) ;) (if_statement "if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }" { (expression_statement "iVar5 = iVar1;" (assignment_expression "iVar5 = iVar1" identifier = identifier) ;) (expression_statement "puVar7 = puVar2;" (assignment_expression "puVar7 = puVar2" identifier = identifier) ;) })) (expression_statement "*(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;" (assignment_expression "*(undefined4 *)(param_1 + iVar6 * 4) = *puVar7" (pointer_expression "*(undefined4 *)(param_1 + iVar6 * 4)" * (cast_expression "(undefined4 *)(param_1 + iVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6 * 4)" ( (binary_expression "param_1 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(iVar5 < iVar4)" ( (binary_expression "iVar5 < iVar4" identifier < identifier) )) ;) (if_statement "if ((param_3 & 1) == 0) goto LAB_0019d2a0;" 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_0019d2a0;" goto statement_identifier ;)) }) (else_clause "else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }" else (compound_statement "{\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }" { (expression_statement "puVar7 = (undefined4 *)(param_1 + param_2 * 4);" (assignment_expression "puVar7 = (undefined4 *)(param_1 + param_2 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + param_2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + param_2 * 4)" ( (binary_expression "param_1 + param_2 * 4" identifier + (binary_expression "param_2 * 4" identifier * number_literal)) )))) ;) (expression_statement "iVar5 = param_2;" (assignment_expression "iVar5 = param_2" identifier = identifier) ;) (if_statement "if ((param_3 & 1) != 0) goto LAB_0019d277;" 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_0019d277;" goto statement_identifier ;)) (labeled_statement "LAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }" statement_identifier : (if_statement "if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }" if (parenthesized_expression "((int)(param_3 - 2) / 2 == iVar5)" ( (binary_expression "(int)(param_3 - 2) / 2 == iVar5" (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      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }" { (expression_statement "iVar5 = iVar5 * 2 + 1;" (assignment_expression "iVar5 = iVar5 * 2 + 1" identifier = (binary_expression "iVar5 * 2 + 1" (binary_expression "iVar5 * 2" identifier * number_literal) + number_literal)) ;) (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar5 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar5 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar5 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar5 * 4)" ( (binary_expression "param_1 + iVar5 * 4" identifier + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) ;) (expression_statement "*puVar7 = *puVar2;" (assignment_expression "*puVar7 = *puVar2" (pointer_expression "*puVar7" * identifier) = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar7 = puVar2;" (assignment_expression "puVar7 = puVar2" identifier = identifier) ;) }))) }))) (expression_statement "local_24 = param_5;" (assignment_expression "local_24 = param_5" identifier = identifier) ;) (expression_statement "local_20 = param_6;" (assignment_expression "local_20 = param_6" identifier = identifier) ;) (if_statement "if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(param_2 < iVar5)" ( (binary_expression "param_2 < iVar5" identifier < identifier) )) (compound_statement "{\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }\n  }" { (while_statement "while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }" { (expression_statement "iVar4 = (iVar5 + -1) / 2;" (assignment_expression "iVar4 = (iVar5 + -1) / 2" identifier = (binary_expression "(iVar5 + -1) / 2" (parenthesized_expression "(iVar5 + -1)" ( (binary_expression "iVar5 + -1" identifier + number_literal) )) / number_literal)) ;) (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar4 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar4 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 * 4)" ( (binary_expression "param_1 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) ;) (expression_statement "cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);" (assignment_expression "cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4)" identifier = (call_expression "FUN_0019cd90(&local_24,*puVar2,param_4)" identifier (argument_list "(&local_24,*puVar2,param_4)" ( (pointer_expression "&local_24" & identifier) , (pointer_expression "*puVar2" * identifier) , identifier )))) ;) (expression_statement "puVar7 = (undefined4 *)(param_1 + iVar5 * 4);" (assignment_expression "puVar7 = (undefined4 *)(param_1 + iVar5 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar5 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar5 * 4)" ( (binary_expression "param_1 + iVar5 * 4" identifier + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) ;) (if_statement "if (cVar3 == '\0') break;" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "*puVar7 = *puVar2;" (assignment_expression "*puVar7 = *puVar2" (pointer_expression "*puVar7" * identifier) = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }" if (parenthesized_expression "(iVar4 <= param_2)" ( (binary_expression "iVar4 <= param_2" identifier <= identifier) )) (compound_statement "{\n        *puVar2 = param_4;\n        return;\n      }" { (expression_statement "*puVar2 = param_4;" (assignment_expression "*puVar2 = param_4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })) })) })) (labeled_statement "LAB_0019d277:\n  *puVar7 = param_4;" statement_identifier : (expression_statement "*puVar7 = param_4;" (assignment_expression "*puVar7 = param_4" (pointer_expression "*puVar7" * identifier) = identifier) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* DWARF original name: __adjust_heap<__gnu_cxx::__normal_iterator<gold::Symbol**,\n   std::vector<gold::Symbol*> >, int, gold::Symbol*,\n   __gnu_cxx::__ops::_Iter_comp_iter<gold::Sort_commons<32> > > */\n\nvoid std::\n     __adjust_heap<__gnu_cxx::__normal_iterator<gold::Symbol**,_std::vector<gold::Symbol*>_>,_int,_gold::Symbol*,___gnu_cxx::__ops::_Iter_comp_iter<gold::Sort_commons<32>_>_>\n               (__normal_iterator<gold::Symbol**,_std::vector<gold::Symbol*,_std::allocator<gold::Symbol*>_>_>\n                __first,int __holeIndex,int __len,Symbol *__value,\n               _Iter_comp_iter<gold::Sort_commons<32>_> __comp)\n\n{\n  int iVar1;\n  Symbol **ppSVar2;\n  bool bVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  Symbol **ppSVar7;\n  _Iter_comp_val<gold::Sort_commons<32>_> __cmp;\n  \n  iVar4 = (__len + -1) / 2;\n  if (__holeIndex < iVar4) {\n    iVar6 = __holeIndex;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      iVar1 = iVar5 + -1;\n      bVar3 = gold::Sort_commons<32>::operator()\n                        (&__comp._M_comp,__first._M_current[(iVar6 + 1) * 2],\n                         __first._M_current[iVar1]);\n      ppSVar7 = __first._M_current + (iVar6 + 1) * 2;\n      if (bVar3) {\n        iVar5 = iVar1;\n        ppSVar7 = __first._M_current + iVar1;\n      }\n      __first._M_current[iVar6] = *ppSVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((__len & 1U) == 0) goto LAB_0019d2a0;\n  }\n  else {\n    ppSVar7 = __first._M_current + __holeIndex;\n    iVar5 = __holeIndex;\n    if ((__len & 1U) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((__len + -2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      *ppSVar7 = __first._M_current[iVar5];\n      ppSVar7 = __first._M_current + iVar5;\n    }\n  }\n  __cmp._M_comp.symtab_ = __comp._M_comp.symtab_;\n  __cmp._M_comp.sort_order_ = __comp._M_comp.sort_order_;\n  if (__holeIndex < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      ppSVar2 = __first._M_current + iVar4;\n      bVar3 = gold::Sort_commons<32>::operator()(&__cmp._M_comp,*ppSVar2,__value);\n      ppSVar7 = __first._M_current + iVar5;\n      if (!bVar3) break;\n      *ppSVar7 = *ppSVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= __holeIndex) {\n        *ppSVar2 = __value;\n        return;\n      }\n    }\n  }\nLAB_0019d277:\n  *ppSVar7 = __value;\n  return;\n}\n\n" comment comment (declaration "void std::\n     __adjust_heap<__gnu_cxx::__normal_iterator<gold::Symbol**,_std::vector<gold::Symbol*>_>,_int,_gold::Symbol*,___gnu_cxx::__ops::_Iter_comp_iter<gold::Sort_commons<32>_>_>\n               (__normal_iterator<gold::Symbol**,_std::vector<gold::Symbol*,_std::allocator<gold::Symbol*>_>_>\n                __first,int __holeIndex,int __len,Symbol *__value,\n               _Iter_comp_iter<gold::Sort_commons<32>_> __comp)\n\n{\n  int iVar1;" primitive_type (ERROR "std::\n     __adjust_heap<__gnu_cxx::__normal_iterator<gold::Symbol" identifier : : identifier < identifier : : identifier < identifier : : identifier) (pointer_declarator "**,_std::vector<gold::Symbol*>_" * (pointer_declarator "*,_std::vector<gold::Symbol*>_" * (ERROR ",_std::vector<gold::Symbol*>" , identifier : : identifier < identifier : : identifier * >) identifier)) (ERROR ">" >) , identifier , (ERROR "_gold::" identifier : :) identifier (ERROR "*" *) , (ERROR "___gnu_cxx::__ops::_Iter_comp_iter<gold::Sort_commons<32>_>_>\n               (__normal_iterator<gold::Symbol**,_std::vector<gold::Symbol*,_std::allocator<gold::Symbol*>_>_>\n                __first,int __holeIndex,int __len,Symbol *__value,\n               _Iter_comp_iter<gold::Sort_commons<32>_> __comp)\n\n{\n  int" identifier : : identifier : : identifier < identifier : : identifier < number_literal > identifier > (function_declarator "_>\n               (__normal_iterator<gold::Symbol**,_std::vector<gold::Symbol*,_std::allocator<gold::Symbol*>_>_>\n                __first,int __holeIndex,int __len,Symbol *__value,\n               _Iter_comp_iter<gold::Sort_commons<32>_> __comp)" identifier (ERROR ">" >) (parameter_list "(__normal_iterator<gold::Symbol**,_std::vector<gold::Symbol*,_std::allocator<gold::Symbol*>_>_>\n                __first,int __holeIndex,int __len,Symbol *__value,\n               _Iter_comp_iter<gold::Sort_commons<32>_> __comp)" ( (parameter_declaration "__normal_iterator<gold::Symbol**" type_identifier (ERROR "<gold::Symbol" < identifier : : identifier) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) , (parameter_declaration "_std::vector<gold::Symbol*" type_identifier (ERROR "::vector<gold::Symbol" : : identifier < identifier : : identifier) (abstract_pointer_declarator "*" *)) , (parameter_declaration "_std::allocator<gold::Symbol*>_>_>\n                __first" type_identifier (ERROR "::allocator<gold::Symbol*>_>_>" : : identifier < identifier : : identifier * > identifier > identifier >) identifier) , (parameter_declaration "int __holeIndex" primitive_type identifier) , (parameter_declaration "int __len" primitive_type identifier) , (parameter_declaration "Symbol *__value" type_identifier (pointer_declarator "*__value" * identifier)) , (parameter_declaration "_Iter_comp_iter<gold::Sort_commons<32>_> __comp" type_identifier (ERROR "<gold::Sort_commons<32>_>" < identifier : : identifier < number_literal > identifier >) identifier) ))) { primitive_type) identifier ;) (declaration "Symbol **ppSVar2;" type_identifier (pointer_declarator "**ppSVar2" * (pointer_declarator "*ppSVar2" * identifier)) ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "Symbol **ppSVar7;" type_identifier (pointer_declarator "**ppSVar7" * (pointer_declarator "*ppSVar7" * identifier)) ;) (expression_statement "_Iter_comp_val<gold::Sort_commons<32>_> __cmp;" (update_expression "_Iter_comp_val<gold::Sort_commons<32>_> __cmp" (binary_expression "_Iter_comp_val<gold::Sort_commons<32>_> __cmp" (binary_expression "_Iter_comp_val<gold::Sort_commons<32>_" (binary_expression "_Iter_comp_val<gold::Sort_commons<32" (binary_expression "_Iter_comp_val<gold" identifier < identifier) (ERROR "::Sort_commons" : : identifier) < number_literal) > identifier) > identifier) --) ;) (expression_statement "iVar4 = (__len + -1) / 2;" (assignment_expression "iVar4 = (__len + -1) / 2" identifier = (binary_expression "(__len + -1) / 2" (parenthesized_expression "(__len + -1)" ( (binary_expression "__len + -1" identifier + number_literal) )) / number_literal)) ;) (if_statement "if (__holeIndex < iVar4) {\n    iVar6 = __holeIndex;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      iVar1 = iVar5 + -1;\n      bVar3 = gold::Sort_commons<32>::operator()\n                        (&__comp._M_comp,__first._M_current[(iVar6 + 1) * 2],\n                         __first._M_current[iVar1]);\n      ppSVar7 = __first._M_current + (iVar6 + 1) * 2;\n      if (bVar3) {\n        iVar5 = iVar1;\n        ppSVar7 = __first._M_current + iVar1;\n      }\n      __first._M_current[iVar6] = *ppSVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((__len & 1U) == 0) goto LAB_0019d2a0;\n  }\n  else {\n    ppSVar7 = __first._M_current + __holeIndex;\n    iVar5 = __holeIndex;\n    if ((__len & 1U) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((__len + -2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      *ppSVar7 = __first._M_current[iVar5];\n      ppSVar7 = __first._M_current + iVar5;\n    }\n  }" if (parenthesized_expression "(__holeIndex < iVar4)" ( (binary_expression "__holeIndex < iVar4" identifier < identifier) )) (compound_statement "{\n    iVar6 = __holeIndex;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      iVar1 = iVar5 + -1;\n      bVar3 = gold::Sort_commons<32>::operator()\n                        (&__comp._M_comp,__first._M_current[(iVar6 + 1) * 2],\n                         __first._M_current[iVar1]);\n      ppSVar7 = __first._M_current + (iVar6 + 1) * 2;\n      if (bVar3) {\n        iVar5 = iVar1;\n        ppSVar7 = __first._M_current + iVar1;\n      }\n      __first._M_current[iVar6] = *ppSVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((__len & 1U) == 0) goto LAB_0019d2a0;\n  }" { (expression_statement "iVar6 = __holeIndex;" (assignment_expression "iVar6 = __holeIndex" identifier = identifier) ;) (do_statement "do {\n      iVar5 = (iVar6 + 1) * 2;\n      iVar1 = iVar5 + -1;\n      bVar3 = gold::Sort_commons<32>::operator()\n                        (&__comp._M_comp,__first._M_current[(iVar6 + 1) * 2],\n                         __first._M_current[iVar1]);\n      ppSVar7 = __first._M_current + (iVar6 + 1) * 2;\n      if (bVar3) {\n        iVar5 = iVar1;\n        ppSVar7 = __first._M_current + iVar1;\n      }\n      __first._M_current[iVar6] = *ppSVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);" do (compound_statement "{\n      iVar5 = (iVar6 + 1) * 2;\n      iVar1 = iVar5 + -1;\n      bVar3 = gold::Sort_commons<32>::operator()\n                        (&__comp._M_comp,__first._M_current[(iVar6 + 1) * 2],\n                         __first._M_current[iVar1]);\n      ppSVar7 = __first._M_current + (iVar6 + 1) * 2;\n      if (bVar3) {\n        iVar5 = iVar1;\n        ppSVar7 = __first._M_current + iVar1;\n      }\n      __first._M_current[iVar6] = *ppSVar7;\n      iVar6 = iVar5;\n    }" { (expression_statement "iVar5 = (iVar6 + 1) * 2;" (assignment_expression "iVar5 = (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 = iVar5 + -1;" (assignment_expression "iVar1 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (ERROR "bVar3 = gold::" (assignment_expression "bVar3 = gold" identifier = identifier) : :) (expression_statement "Sort_commons<32>::operator()\n                        (&__comp._M_comp,__first._M_current[(iVar6 + 1) * 2],\n                         __first._M_current[iVar1]);" (binary_expression "Sort_commons<32>::operator()\n                        (&__comp._M_comp,__first._M_current[(iVar6 + 1) * 2],\n                         __first._M_current[iVar1])" (binary_expression "Sort_commons<32" identifier < number_literal) > (ERROR "::" : :) (call_expression "operator()\n                        (&__comp._M_comp,__first._M_current[(iVar6 + 1) * 2],\n                         __first._M_current[iVar1])" (call_expression "operator()" identifier (argument_list "()" ( ))) (argument_list "(&__comp._M_comp,__first._M_current[(iVar6 + 1) * 2],\n                         __first._M_current[iVar1])" ( (pointer_expression "&__comp._M_comp" & (field_expression "__comp._M_comp" identifier . field_identifier)) , (subscript_expression "__first._M_current[(iVar6 + 1) * 2]" (field_expression "__first._M_current" identifier . field_identifier) [ (binary_expression "(iVar6 + 1) * 2" (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )) * number_literal) ]) , (subscript_expression "__first._M_current[iVar1]" (field_expression "__first._M_current" identifier . field_identifier) [ identifier ]) )))) ;) (expression_statement "ppSVar7 = __first._M_current + (iVar6 + 1) * 2;" (assignment_expression "ppSVar7 = __first._M_current + (iVar6 + 1) * 2" identifier = (binary_expression "__first._M_current + (iVar6 + 1) * 2" (field_expression "__first._M_current" identifier . field_identifier) + (binary_expression "(iVar6 + 1) * 2" (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )) * number_literal))) ;) (if_statement "if (bVar3) {\n        iVar5 = iVar1;\n        ppSVar7 = __first._M_current + iVar1;\n      }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n        iVar5 = iVar1;\n        ppSVar7 = __first._M_current + iVar1;\n      }" { (expression_statement "iVar5 = iVar1;" (assignment_expression "iVar5 = iVar1" identifier = identifier) ;) (expression_statement "ppSVar7 = __first._M_current + iVar1;" (assignment_expression "ppSVar7 = __first._M_current + iVar1" identifier = (binary_expression "__first._M_current + iVar1" (field_expression "__first._M_current" identifier . field_identifier) + identifier)) ;) })) (expression_statement "__first._M_current[iVar6] = *ppSVar7;" (assignment_expression "__first._M_current[iVar6] = *ppSVar7" (subscript_expression "__first._M_current[iVar6]" (field_expression "__first._M_current" identifier . field_identifier) [ identifier ]) = (pointer_expression "*ppSVar7" * identifier)) ;) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(iVar5 < iVar4)" ( (binary_expression "iVar5 < iVar4" identifier < identifier) )) ;) (if_statement "if ((__len & 1U) == 0) goto LAB_0019d2a0;" if (parenthesized_expression "((__len & 1U) == 0)" ( (binary_expression "(__len & 1U) == 0" (parenthesized_expression "(__len & 1U)" ( (binary_expression "__len & 1U" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_0019d2a0;" goto statement_identifier ;)) }) (else_clause "else {\n    ppSVar7 = __first._M_current + __holeIndex;\n    iVar5 = __holeIndex;\n    if ((__len & 1U) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((__len + -2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      *ppSVar7 = __first._M_current[iVar5];\n      ppSVar7 = __first._M_current + iVar5;\n    }\n  }" else (compound_statement "{\n    ppSVar7 = __first._M_current + __holeIndex;\n    iVar5 = __holeIndex;\n    if ((__len & 1U) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((__len + -2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      *ppSVar7 = __first._M_current[iVar5];\n      ppSVar7 = __first._M_current + iVar5;\n    }\n  }" { (expression_statement "ppSVar7 = __first._M_current + __holeIndex;" (assignment_expression "ppSVar7 = __first._M_current + __holeIndex" identifier = (binary_expression "__first._M_current + __holeIndex" (field_expression "__first._M_current" identifier . field_identifier) + identifier)) ;) (expression_statement "iVar5 = __holeIndex;" (assignment_expression "iVar5 = __holeIndex" identifier = identifier) ;) (if_statement "if ((__len & 1U) != 0) goto LAB_0019d277;" if (parenthesized_expression "((__len & 1U) != 0)" ( (binary_expression "(__len & 1U) != 0" (parenthesized_expression "(__len & 1U)" ( (binary_expression "__len & 1U" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_0019d277;" goto statement_identifier ;)) (labeled_statement "LAB_0019d2a0:\n    if ((__len + -2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      *ppSVar7 = __first._M_current[iVar5];\n      ppSVar7 = __first._M_current + iVar5;\n    }" statement_identifier : (if_statement "if ((__len + -2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      *ppSVar7 = __first._M_current[iVar5];\n      ppSVar7 = __first._M_current + iVar5;\n    }" if (parenthesized_expression "((__len + -2) / 2 == iVar5)" ( (binary_expression "(__len + -2) / 2 == iVar5" (binary_expression "(__len + -2) / 2" (parenthesized_expression "(__len + -2)" ( (binary_expression "__len + -2" identifier + number_literal) )) / number_literal) == identifier) )) (compound_statement "{\n      iVar5 = iVar5 * 2 + 1;\n      *ppSVar7 = __first._M_current[iVar5];\n      ppSVar7 = __first._M_current + iVar5;\n    }" { (expression_statement "iVar5 = iVar5 * 2 + 1;" (assignment_expression "iVar5 = iVar5 * 2 + 1" identifier = (binary_expression "iVar5 * 2 + 1" (binary_expression "iVar5 * 2" identifier * number_literal) + number_literal)) ;) (expression_statement "*ppSVar7 = __first._M_current[iVar5];" (assignment_expression "*ppSVar7 = __first._M_current[iVar5]" (pointer_expression "*ppSVar7" * identifier) = (subscript_expression "__first._M_current[iVar5]" (field_expression "__first._M_current" identifier . field_identifier) [ identifier ])) ;) (expression_statement "ppSVar7 = __first._M_current + iVar5;" (assignment_expression "ppSVar7 = __first._M_current + iVar5" identifier = (binary_expression "__first._M_current + iVar5" (field_expression "__first._M_current" identifier . field_identifier) + identifier)) ;) }))) }))) (expression_statement "__cmp._M_comp.symtab_ = __comp._M_comp.symtab_;" (assignment_expression "__cmp._M_comp.symtab_ = __comp._M_comp.symtab_" (field_expression "__cmp._M_comp.symtab_" (field_expression "__cmp._M_comp" identifier . field_identifier) . field_identifier) = (field_expression "__comp._M_comp.symtab_" (field_expression "__comp._M_comp" identifier . field_identifier) . field_identifier)) ;) (expression_statement "__cmp._M_comp.sort_order_ = __comp._M_comp.sort_order_;" (assignment_expression "__cmp._M_comp.sort_order_ = __comp._M_comp.sort_order_" (field_expression "__cmp._M_comp.sort_order_" (field_expression "__cmp._M_comp" identifier . field_identifier) . field_identifier) = (field_expression "__comp._M_comp.sort_order_" (field_expression "__comp._M_comp" identifier . field_identifier) . field_identifier)) ;) (if_statement "if (__holeIndex < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      ppSVar2 = __first._M_current + iVar4;\n      bVar3 = gold::Sort_commons<32>::operator()(&__cmp._M_comp,*ppSVar2,__value);\n      ppSVar7 = __first._M_current + iVar5;\n      if (!bVar3) break;\n      *ppSVar7 = *ppSVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= __holeIndex) {\n        *ppSVar2 = __value;\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(__holeIndex < iVar5)" ( (binary_expression "__holeIndex < iVar5" identifier < identifier) )) (compound_statement "{\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      ppSVar2 = __first._M_current + iVar4;\n      bVar3 = gold::Sort_commons<32>::operator()(&__cmp._M_comp,*ppSVar2,__value);\n      ppSVar7 = __first._M_current + iVar5;\n      if (!bVar3) break;\n      *ppSVar7 = *ppSVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= __holeIndex) {\n        *ppSVar2 = __value;\n        return;\n      }\n    }\n  }" { (while_statement "while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      ppSVar2 = __first._M_current + iVar4;\n      bVar3 = gold::Sort_commons<32>::operator()(&__cmp._M_comp,*ppSVar2,__value);\n      ppSVar7 = __first._M_current + iVar5;\n      if (!bVar3) break;\n      *ppSVar7 = *ppSVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= __holeIndex) {\n        *ppSVar2 = __value;\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar4 = (iVar5 + -1) / 2;\n      ppSVar2 = __first._M_current + iVar4;\n      bVar3 = gold::Sort_commons<32>::operator()(&__cmp._M_comp,*ppSVar2,__value);\n      ppSVar7 = __first._M_current + iVar5;\n      if (!bVar3) break;\n      *ppSVar7 = *ppSVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= __holeIndex) {\n        *ppSVar2 = __value;\n        return;\n      }\n    }" { (expression_statement "iVar4 = (iVar5 + -1) / 2;" (assignment_expression "iVar4 = (iVar5 + -1) / 2" identifier = (binary_expression "(iVar5 + -1) / 2" (parenthesized_expression "(iVar5 + -1)" ( (binary_expression "iVar5 + -1" identifier + number_literal) )) / number_literal)) ;) (expression_statement "ppSVar2 = __first._M_current + iVar4;" (assignment_expression "ppSVar2 = __first._M_current + iVar4" identifier = (binary_expression "__first._M_current + iVar4" (field_expression "__first._M_current" identifier . field_identifier) + identifier)) ;) (ERROR "bVar3 = gold::" (assignment_expression "bVar3 = gold" identifier = identifier) : :) (expression_statement "Sort_commons<32>::operator()(&__cmp._M_comp,*ppSVar2,__value);" (binary_expression "Sort_commons<32>::operator()(&__cmp._M_comp,*ppSVar2,__value)" (binary_expression "Sort_commons<32" identifier < number_literal) > (ERROR "::" : :) (call_expression "operator()(&__cmp._M_comp,*ppSVar2,__value)" (call_expression "operator()" identifier (argument_list "()" ( ))) (argument_list "(&__cmp._M_comp,*ppSVar2,__value)" ( (pointer_expression "&__cmp._M_comp" & (field_expression "__cmp._M_comp" identifier . field_identifier)) , (pointer_expression "*ppSVar2" * identifier) , identifier )))) ;) (expression_statement "ppSVar7 = __first._M_current + iVar5;" (assignment_expression "ppSVar7 = __first._M_current + iVar5" identifier = (binary_expression "__first._M_current + iVar5" (field_expression "__first._M_current" identifier . field_identifier) + identifier)) ;) (if_statement "if (!bVar3) break;" if (parenthesized_expression "(!bVar3)" ( (unary_expression "!bVar3" ! identifier) )) (break_statement "break;" break ;)) (expression_statement "*ppSVar7 = *ppSVar2;" (assignment_expression "*ppSVar7 = *ppSVar2" (pointer_expression "*ppSVar7" * identifier) = (pointer_expression "*ppSVar2" * identifier)) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if (iVar4 <= __holeIndex) {\n        *ppSVar2 = __value;\n        return;\n      }" if (parenthesized_expression "(iVar4 <= __holeIndex)" ( (binary_expression "iVar4 <= __holeIndex" identifier <= identifier) )) (compound_statement "{\n        *ppSVar2 = __value;\n        return;\n      }" { (expression_statement "*ppSVar2 = __value;" (assignment_expression "*ppSVar2 = __value" (pointer_expression "*ppSVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })) })) })) (labeled_statement "LAB_0019d277:\n  *ppSVar7 = __value;" statement_identifier : (expression_statement "*ppSVar7 = __value;" (assignment_expression "*ppSVar7 = __value" (pointer_expression "*ppSVar7" * identifier) = identifier) ;)) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_0019d170(int param_1,int param_2,uint param_3,undefined4 param_4,undefined4 param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar4 = (int)(param_3 - 1) / 2;\n  if (param_2 < iVar4) {\n    iVar6 = param_2;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((param_3 & 1) == 0) goto LAB_0019d2a0;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }\n  local_24 = param_5;\n  local_20 = param_6;\n  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }\n  }\nLAB_0019d277:\n  *puVar7 = param_4;\n  return;\n}\n\n" (function_definition "void FUN_0019d170(int param_1,int param_2,uint param_3,undefined4 param_4,undefined4 param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar4 = (int)(param_3 - 1) / 2;\n  if (param_2 < iVar4) {\n    iVar6 = param_2;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((param_3 & 1) == 0) goto LAB_0019d2a0;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }\n  local_24 = param_5;\n  local_20 = param_6;\n  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }\n  }\nLAB_0019d277:\n  *puVar7 = param_4;\n  return;\n}" primitive_type (function_declarator "FUN_0019d170(int param_1,int param_2,uint param_3,undefined4 param_4,undefined4 param_5,\n                 undefined4 param_6)" identifier (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4,undefined4 param_5,\n                 undefined4 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 "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar4 = (int)(param_3 - 1) / 2;\n  if (param_2 < iVar4) {\n    iVar6 = param_2;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((param_3 & 1) == 0) goto LAB_0019d2a0;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }\n  local_24 = param_5;\n  local_20 = param_6;\n  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }\n  }\nLAB_0019d277:\n  *puVar7 = param_4;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "iVar4 = (int)(param_3 - 1) / 2;" (assignment_expression "iVar4 = (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)) ;) (if_statement "if (param_2 < iVar4) {\n    iVar6 = param_2;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((param_3 & 1) == 0) goto LAB_0019d2a0;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }" if (parenthesized_expression "(param_2 < iVar4)" ( (binary_expression "param_2 < iVar4" identifier < identifier) )) (compound_statement "{\n    iVar6 = param_2;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((param_3 & 1) == 0) goto LAB_0019d2a0;\n  }" { (expression_statement "iVar6 = param_2;" (assignment_expression "iVar6 = param_2" identifier = identifier) ;) (do_statement "do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);" do (compound_statement "{\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    }" { (expression_statement "iVar5 = (iVar6 + 1) * 2;" (assignment_expression "iVar5 = (iVar6 + 1) * 2" identifier = (binary_expression "(iVar6 + 1) * 2" (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )) * number_literal)) ;) (expression_statement "puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);" (assignment_expression "puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8)" identifier = (cast_expression "(undefined4 *)(param_1 + (iVar6 + 1) * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (iVar6 + 1) * 8)" ( (binary_expression "param_1 + (iVar6 + 1) * 8" identifier + (binary_expression "(iVar6 + 1) * 8" (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )) * number_literal)) )))) ;) (expression_statement "iVar1 = iVar5 + -1;" (assignment_expression "iVar1 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar1 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar1 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1 * 4)" ( (binary_expression "param_1 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) ;) (expression_statement "cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);" (assignment_expression "cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2)" identifier = (call_expression "FUN_0019cd90(&param_5,*puVar7,*puVar2)" identifier (argument_list "(&param_5,*puVar7,*puVar2)" ( (pointer_expression "&param_5" & identifier) , (pointer_expression "*puVar7" * identifier) , (pointer_expression "*puVar2" * identifier) )))) ;) (if_statement "if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }" { (expression_statement "iVar5 = iVar1;" (assignment_expression "iVar5 = iVar1" identifier = identifier) ;) (expression_statement "puVar7 = puVar2;" (assignment_expression "puVar7 = puVar2" identifier = identifier) ;) })) (expression_statement "*(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;" (assignment_expression "*(undefined4 *)(param_1 + iVar6 * 4) = *puVar7" (pointer_expression "*(undefined4 *)(param_1 + iVar6 * 4)" * (cast_expression "(undefined4 *)(param_1 + iVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6 * 4)" ( (binary_expression "param_1 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(iVar5 < iVar4)" ( (binary_expression "iVar5 < iVar4" identifier < identifier) )) ;) (if_statement "if ((param_3 & 1) == 0) goto LAB_0019d2a0;" 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_0019d2a0;" goto statement_identifier ;)) }) (else_clause "else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }" else (compound_statement "{\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }" { (expression_statement "puVar7 = (undefined4 *)(param_1 + param_2 * 4);" (assignment_expression "puVar7 = (undefined4 *)(param_1 + param_2 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + param_2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + param_2 * 4)" ( (binary_expression "param_1 + param_2 * 4" identifier + (binary_expression "param_2 * 4" identifier * number_literal)) )))) ;) (expression_statement "iVar5 = param_2;" (assignment_expression "iVar5 = param_2" identifier = identifier) ;) (if_statement "if ((param_3 & 1) != 0) goto LAB_0019d277;" 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_0019d277;" goto statement_identifier ;)) (labeled_statement "LAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }" statement_identifier : (if_statement "if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }" if (parenthesized_expression "((int)(param_3 - 2) / 2 == iVar5)" ( (binary_expression "(int)(param_3 - 2) / 2 == iVar5" (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      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }" { (expression_statement "iVar5 = iVar5 * 2 + 1;" (assignment_expression "iVar5 = iVar5 * 2 + 1" identifier = (binary_expression "iVar5 * 2 + 1" (binary_expression "iVar5 * 2" identifier * number_literal) + number_literal)) ;) (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar5 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar5 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar5 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar5 * 4)" ( (binary_expression "param_1 + iVar5 * 4" identifier + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) ;) (expression_statement "*puVar7 = *puVar2;" (assignment_expression "*puVar7 = *puVar2" (pointer_expression "*puVar7" * identifier) = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar7 = puVar2;" (assignment_expression "puVar7 = puVar2" identifier = identifier) ;) }))) }))) (expression_statement "local_24 = param_5;" (assignment_expression "local_24 = param_5" identifier = identifier) ;) (expression_statement "local_20 = param_6;" (assignment_expression "local_20 = param_6" identifier = identifier) ;) (if_statement "if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(param_2 < iVar5)" ( (binary_expression "param_2 < iVar5" identifier < identifier) )) (compound_statement "{\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }\n  }" { (while_statement "while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }" { (expression_statement "iVar4 = (iVar5 + -1) / 2;" (assignment_expression "iVar4 = (iVar5 + -1) / 2" identifier = (binary_expression "(iVar5 + -1) / 2" (parenthesized_expression "(iVar5 + -1)" ( (binary_expression "iVar5 + -1" identifier + number_literal) )) / number_literal)) ;) (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar4 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar4 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 * 4)" ( (binary_expression "param_1 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) ;) (expression_statement "cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);" (assignment_expression "cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4)" identifier = (call_expression "FUN_0019cd90(&local_24,*puVar2,param_4)" identifier (argument_list "(&local_24,*puVar2,param_4)" ( (pointer_expression "&local_24" & identifier) , (pointer_expression "*puVar2" * identifier) , identifier )))) ;) (expression_statement "puVar7 = (undefined4 *)(param_1 + iVar5 * 4);" (assignment_expression "puVar7 = (undefined4 *)(param_1 + iVar5 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar5 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar5 * 4)" ( (binary_expression "param_1 + iVar5 * 4" identifier + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) ;) (if_statement "if (cVar3 == '\0') break;" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "*puVar7 = *puVar2;" (assignment_expression "*puVar7 = *puVar2" (pointer_expression "*puVar7" * identifier) = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }" if (parenthesized_expression "(iVar4 <= param_2)" ( (binary_expression "iVar4 <= param_2" identifier <= identifier) )) (compound_statement "{\n        *puVar2 = param_4;\n        return;\n      }" { (expression_statement "*puVar2 = param_4;" (assignment_expression "*puVar2 = param_4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })) })) })) (labeled_statement "LAB_0019d277:\n  *puVar7 = param_4;" statement_identifier : (expression_statement "*puVar7 = param_4;" (assignment_expression "*puVar7 = param_4" (pointer_expression "*puVar7" * identifier) = 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - LIT) ))) / LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (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 (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 IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression * IDENT) , (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = (pointer_expression * IDENT)) ;) (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 IDENT = IDENT) ;) }))) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (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)) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_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)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (return_statement return ;) })))
(function_definition "void FUN_0019d170(int param_1,int param_2,uint param_3,undefined4 param_4,undefined4 param_5,\n                 undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar4 = (int)(param_3 - 1) / 2;\n  if (param_2 < iVar4) {\n    iVar6 = param_2;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((param_3 & 1) == 0) goto LAB_0019d2a0;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }\n  local_24 = param_5;\n  local_20 = param_6;\n  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }\n  }\nLAB_0019d277:\n  *puVar7 = param_4;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0019d170(int param_1,int param_2,uint param_3,undefined4 param_4,undefined4 param_5,\n                 undefined4 param_6)" (identifier "FUN_0019d170") (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4,undefined4 param_5,\n                 undefined4 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 "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  iVar4 = (int)(param_3 - 1) / 2;\n  if (param_2 < iVar4) {\n    iVar6 = param_2;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((param_3 & 1) == 0) goto LAB_0019d2a0;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }\n  local_24 = param_5;\n  local_20 = param_6;\n  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }\n  }\nLAB_0019d277:\n  *puVar7 = param_4;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (expression_statement "iVar4 = (int)(param_3 - 1) / 2;" (assignment_expression "iVar4 = (int)(param_3 - 1) / 2" (identifier "iVar4") (= "=") (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"))) (; ";")) (if_statement "if (param_2 < iVar4) {\n    iVar6 = param_2;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((param_3 & 1) == 0) goto LAB_0019d2a0;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 < iVar4)" (( "(") (binary_expression "param_2 < iVar4" (identifier "param_2") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n    iVar6 = param_2;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((param_3 & 1) == 0) goto LAB_0019d2a0;\n  }" ({ "{") (expression_statement "iVar6 = param_2;" (assignment_expression "iVar6 = param_2" (identifier "iVar6") (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);" (do "do") (compound_statement "{\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);\n      if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    }" ({ "{") (expression_statement "iVar5 = (iVar6 + 1) * 2;" (assignment_expression "iVar5 = (iVar6 + 1) * 2" (identifier "iVar5") (= "=") (binary_expression "(iVar6 + 1) * 2" (parenthesized_expression "(iVar6 + 1)" (( "(") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);" (assignment_expression "puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8)" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)(param_1 + (iVar6 + 1) * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + (iVar6 + 1) * 8)" (( "(") (binary_expression "param_1 + (iVar6 + 1) * 8" (identifier "param_1") (+ "+") (binary_expression "(iVar6 + 1) * 8" (parenthesized_expression "(iVar6 + 1)" (( "(") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "iVar1 = iVar5 + -1;" (assignment_expression "iVar1 = iVar5 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar1 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar1 * 4)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(param_1 + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar1 * 4)" (( "(") (binary_expression "param_1 + iVar1 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);" (assignment_expression "cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2)" (identifier "cVar3") (= "=") (call_expression "FUN_0019cd90(&param_5,*puVar7,*puVar2)" (identifier "FUN_0019cd90") (argument_list "(&param_5,*puVar7,*puVar2)" (( "(") (pointer_expression "&param_5" (& "&") (identifier "param_5")) (, ",") (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (, ",") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) () ")")))) (; ";")) (if_statement "if (cVar3 != '\0') {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }" (if "if") (parenthesized_expression "(cVar3 != '\0')" (( "(") (binary_expression "cVar3 != '\0'" (identifier "cVar3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }" ({ "{") (expression_statement "iVar5 = iVar1;" (assignment_expression "iVar5 = iVar1" (identifier "iVar5") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "puVar7 = puVar2;" (assignment_expression "puVar7 = puVar2" (identifier "puVar7") (= "=") (identifier "puVar2")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;" (assignment_expression "*(undefined4 *)(param_1 + iVar6 * 4) = *puVar7" (pointer_expression "*(undefined4 *)(param_1 + iVar6 * 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + iVar6 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar6 * 4)" (( "(") (binary_expression "param_1 + iVar6 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) () ")")))) (= "=") (pointer_expression "*puVar7" (* "*") (identifier "puVar7"))) (; ";")) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" (identifier "iVar6") (= "=") (identifier "iVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 < iVar4)" (( "(") (binary_expression "iVar5 < iVar4" (identifier "iVar5") (< "<") (identifier "iVar4")) () ")")) (; ";")) (if_statement "if ((param_3 & 1) == 0) goto LAB_0019d2a0;" (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_0019d2a0;" (goto "goto") (statement_identifier "LAB_0019d2a0") (; ";"))) (} "}")) (else_clause "else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }" (else "else") (compound_statement "{\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_0019d277;\nLAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }" ({ "{") (expression_statement "puVar7 = (undefined4 *)(param_1 + param_2 * 4);" (assignment_expression "puVar7 = (undefined4 *)(param_1 + param_2 * 4)" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)(param_1 + param_2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + param_2 * 4)" (( "(") (binary_expression "param_1 + param_2 * 4" (identifier "param_1") (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "iVar5 = param_2;" (assignment_expression "iVar5 = param_2" (identifier "iVar5") (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((param_3 & 1) != 0) goto LAB_0019d277;" (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_0019d277;" (goto "goto") (statement_identifier "LAB_0019d277") (; ";"))) (labeled_statement "LAB_0019d2a0:\n    if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }" (statement_identifier "LAB_0019d2a0") (: ":") (if_statement "if ((int)(param_3 - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }" (if "if") (parenthesized_expression "((int)(param_3 - 2) / 2 == iVar5)" (( "(") (binary_expression "(int)(param_3 - 2) / 2 == iVar5" (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 "iVar5")) () ")")) (compound_statement "{\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }" ({ "{") (expression_statement "iVar5 = iVar5 * 2 + 1;" (assignment_expression "iVar5 = iVar5 * 2 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 * 2 + 1" (binary_expression "iVar5 * 2" (identifier "iVar5") (* "*") (number_literal "2")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar5 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar5 * 4)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(param_1 + iVar5 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar5 * 4)" (( "(") (binary_expression "param_1 + iVar5 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "*puVar7 = *puVar2;" (assignment_expression "*puVar7 = *puVar2" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "puVar7 = puVar2;" (assignment_expression "puVar7 = puVar2" (identifier "puVar7") (= "=") (identifier "puVar2")) (; ";")) (} "}")))) (} "}")))) (expression_statement "local_24 = param_5;" (assignment_expression "local_24 = param_5" (identifier "local_24") (= "=") (identifier "param_5")) (; ";")) (expression_statement "local_20 = param_6;" (assignment_expression "local_20 = param_6" (identifier "local_20") (= "=") (identifier "param_6")) (; ";")) (if_statement "if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_2 < iVar5)" (( "(") (binary_expression "param_2 < iVar5" (identifier "param_2") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);\n      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);\n      if (cVar3 == '\0') break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }\n    }" ({ "{") (expression_statement "iVar4 = (iVar5 + -1) / 2;" (assignment_expression "iVar4 = (iVar5 + -1) / 2" (identifier "iVar4") (= "=") (binary_expression "(iVar5 + -1) / 2" (parenthesized_expression "(iVar5 + -1)" (( "(") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1")) () ")")) (/ "/") (number_literal "2"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar4 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar4 * 4)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(param_1 + iVar4 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar4 * 4)" (( "(") (binary_expression "param_1 + iVar4 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);" (assignment_expression "cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4)" (identifier "cVar3") (= "=") (call_expression "FUN_0019cd90(&local_24,*puVar2,param_4)" (identifier "FUN_0019cd90") (argument_list "(&local_24,*puVar2,param_4)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "puVar7 = (undefined4 *)(param_1 + iVar5 * 4);" (assignment_expression "puVar7 = (undefined4 *)(param_1 + iVar5 * 4)" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)(param_1 + iVar5 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar5 * 4)" (( "(") (binary_expression "param_1 + iVar5 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) () ")")))) (; ";")) (if_statement "if (cVar3 == '\0') break;" (if "if") (parenthesized_expression "(cVar3 == '\0')" (( "(") (binary_expression "cVar3 == '\0'" (identifier "cVar3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*puVar7 = *puVar2;" (assignment_expression "*puVar7 = *puVar2" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar4 <= param_2) {\n        *puVar2 = param_4;\n        return;\n      }" (if "if") (parenthesized_expression "(iVar4 <= param_2)" (( "(") (binary_expression "iVar4 <= param_2" (identifier "iVar4") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n        *puVar2 = param_4;\n        return;\n      }" ({ "{") (expression_statement "*puVar2 = param_4;" (assignment_expression "*puVar2 = param_4" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "param_4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (} "}"))) (labeled_statement "LAB_0019d277:\n  *puVar7 = param_4;" (statement_identifier "LAB_0019d277") (: ":") (expression_statement "*puVar7 = param_4;" (assignment_expression "*puVar7 = param_4" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (identifier "param_4")) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void std::
     __adjust_heap<__gnu_cxx::__normal_iterator<var_2::type_1**,_std::vector<var_2::type_1*>var_3>,_int,_gold::type_1*,___gnu_cxx::__ops::_Iter_comp_iter<var_2::var_10<32>var_3>var_3>
               (__normal_iterator<var_2::type_1**,_std::vector<var_2::type_1*,_std::allocator<var_2::type_1*>var_3>var_3>
                __first,int var_6,int var_5,type_1 *__value,
               _Iter_comp_iter<var_2::var_10<32>var_3> __comp)

{
  int var_12;
  type_1 **ppSVar2;
  bool bVar3;
  int var_7;
  int var_9;
  int var_8;
  type_1 **ppSVar7;
  var_1<var_2::var_10<32>var_3> var_4;
  
  var_7 = (var_5 + -1) / 2;
  if (var_6 < var_7) {
    var_8 = var_6;
    do {
      var_9 = (var_8 + 1) * 2;
      var_12 = var_9 + -1;
      bVar3 = var_2::var_10<32>::var_11()
                        (&__comp._M_comp,__first._M_current[(var_8 + 1) * 2],
                         __first._M_current[var_12]);
      ppSVar7 = __first._M_current + (var_8 + 1) * 2;
      if (bVar3) {
        var_9 = var_12;
        ppSVar7 = __first._M_current + var_12;
      }
      __first._M_current[var_8] = *ppSVar7;
      var_8 = var_9;
    } while (var_9 < var_7);
    if ((var_5 & 1U) == 0) goto LAB_0019d2a0;
  }
  else {
    ppSVar7 = __first._M_current + var_6;
    var_9 = var_6;
    if ((var_5 & 1U) != 0) goto LAB_0019d277;
LAB_0019d2a0:
    if ((var_5 + -2) / 2 == var_9) {
      var_9 = var_9 * 2 + 1;
      *ppSVar7 = __first._M_current[var_9];
      ppSVar7 = __first._M_current + var_9;
    }
  }
  var_4._M_comp.symtab_ = __comp._M_comp.symtab_;
  var_4._M_comp.sort_order_ = __comp._M_comp.sort_order_;
  if (var_6 < var_9) {
    while( true ) {
      var_7 = (var_9 + -1) / 2;
      ppSVar2 = __first._M_current + var_7;
      bVar3 = var_2::var_10<32>::var_11()(&var_4._M_comp,*ppSVar2,__value);
      ppSVar7 = __first._M_current + var_9;
      if (!bVar3) break;
      *ppSVar7 = *ppSVar2;
      var_9 = var_7;
      if (var_7 <= var_6) {
        *ppSVar2 = __value;
        return;
      }
    }
  }
LAB_0019d277:
  *ppSVar7 = __value;
  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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (cast_expression type: (type_descriptor type: (type_identifier) 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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) 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: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (pointer_expression argument: (identifier)))) (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: (type_identifier) 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: (type_identifier) 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: (identifier) right: (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (while_statement condition: (parenthesized_expression (true)) 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: (cast_expression type: (type_descriptor type: (type_identifier) 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: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) 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: (char_literal (escape_sequence)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (return_statement))))

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

{
  int iVar1;
  undefined4 *puVar2;
  char cVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 *puVar7;
  undefined4 local_24;
  undefined4 local_20;
  
  iVar4 = (int)(param_3 - 1) / 2;
  if (param_2 < iVar4) {
    iVar6 = param_2;
    do {
      iVar5 = (iVar6 + 1) * 2;
      puVar7 = (undefined4 *)(param_1 + (iVar6 + 1) * 8);
      iVar1 = iVar5 + -1;
      puVar2 = (undefined4 *)(param_1 + iVar1 * 4);
      cVar3 = FUN_0019cd90(&param_5,*puVar7,*puVar2);
      if (cVar3 != '\0') {
        iVar5 = iVar1;
        puVar7 = puVar2;
      }
      *(undefined4 *)(param_1 + iVar6 * 4) = *puVar7;
      iVar6 = iVar5;
    } while (iVar5 < iVar4);
    if ((param_3 & 1) == 0) goto LAB_0019d2a0;
  }
  else {
    puVar7 = (undefined4 *)(param_1 + param_2 * 4);
    iVar5 = param_2;
    if ((param_3 & 1) != 0) goto LAB_0019d277;
LAB_0019d2a0:
    if ((int)(param_3 - 2) / 2 == iVar5) {
      iVar5 = iVar5 * 2 + 1;
      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);
      *puVar7 = *puVar2;
      puVar7 = puVar2;
    }
  }
  local_24 = param_5;
  local_20 = param_6;
  if (param_2 < iVar5) {
    while( true ) {
      iVar4 = (iVar5 + -1) / 2;
      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);
      cVar3 = FUN_0019cd90(&local_24,*puVar2,param_4);
      puVar7 = (undefined4 *)(param_1 + iVar5 * 4);
      if (cVar3 == '\0') break;
      *puVar7 = *puVar2;
      iVar5 = iVar4;
      if (iVar4 <= param_2) {
        *puVar2 = param_4;
        return;
      }
    }
  }
LAB_0019d277:
  *puVar7 = param_4;
  return;
}

