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

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

{
  int iVar1;
  undefined4 *puVar2;
  bool bVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 *puVar7;
  _Iter_comp_val<gold::Weak_alias_sorter<32>_> __cmp;
  
  iVar4 = (int)(__len - 1) / 2;
  if (__holeIndex < iVar4) {
    iVar6 = __holeIndex;
    do {
      iVar5 = (iVar6 + 1) * 2;
      puVar7 = (undefined4 *)(__first + (iVar6 + 1) * 8);
      iVar1 = iVar5 + -1;
      puVar2 = (undefined4 *)(__first + iVar1 * 4);
      bVar3 = gold::Weak_alias_sorter<32>::operator()
                        ((Weak_alias_sorter<32> *)&stack0x00000014,(Sized_symbol<32> *)*puVar7,
                         (Sized_symbol<32> *)*puVar2);
      if (bVar3) {
        iVar5 = iVar1;
        puVar7 = puVar2;
      }
      *(undefined4 *)(__first + iVar6 * 4) = *puVar7;
      iVar6 = iVar5;
    } while (iVar5 < iVar4);
    if ((__len & 1) == 0) goto LAB_00132890;
  }
  else {
    puVar7 = (undefined4 *)(__first + __holeIndex * 4);
    iVar5 = __holeIndex;
    if ((__len & 1) != 0) goto LAB_00132867;
LAB_00132890:
    if ((int)(__len - 2) / 2 == iVar5) {
      iVar5 = iVar5 * 2 + 1;
      puVar2 = (undefined4 *)(__first + iVar5 * 4);
      *puVar7 = *puVar2;
      puVar7 = puVar2;
    }
  }
  if (__holeIndex < iVar5) {
    while( true ) {
      iVar4 = (iVar5 + -1) / 2;
      puVar2 = (undefined4 *)(__first + iVar4 * 4);
      bVar3 = gold::Weak_alias_sorter<32>::operator()
                        ((Weak_alias_sorter<32> *)&__cmp,(Sized_symbol<32> *)*puVar2,__value);
      puVar7 = (undefined4 *)(__first + iVar5 * 4);
      if (!bVar3) break;
      *puVar7 = *puVar2;
      iVar5 = iVar4;
      if (iVar4 <= __holeIndex) {
        *puVar2 = __value;
        return;
      }
    }
  }
LAB_00132867:
  *puVar7 = __value;
  return;
}



void FUN_00132770(int param_1,int param_2,uint param_3,undefined4 param_4)

{
  int iVar1;
  undefined4 *puVar2;
  char cVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 *puVar7;
  undefined1 local_1d [13];
  
  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_00132160(&stack0x00000014,*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_00132890;
  }
  else {
    puVar7 = (undefined4 *)(param_1 + param_2 * 4);
    iVar5 = param_2;
    if ((param_3 & 1) != 0) goto LAB_00132867;
LAB_00132890:
    if ((int)(param_3 - 2) / 2 == iVar5) {
      iVar5 = iVar5 * 2 + 1;
      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);
      *puVar7 = *puVar2;
      puVar7 = puVar2;
    }
  }
  if (param_2 < iVar5) {
    while( true ) {
      iVar4 = (iVar5 + -1) / 2;
      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);
      cVar3 = FUN_00132160(local_1d,*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_00132867:
  *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 0x00132878
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 0x00132160
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 0x001327b0
MOV EDX,dword ptr [ESP + 0x1c]
TEST EDX,EDX
JZ 0x00132890
LEA EAX,[EBX + -0x1]
MOV EDX,EAX
SHR EDX,0x1f
ADD EDX,EAX
SAR EDX,0x1
CMP EBX,dword ptr [ESP + 0x54]
JLE 0x00132867
LEA EAX,[ESP + 0x2f]
MOV ESI,EBX
MOV EBP,EDX
MOV EBX,EDI
MOV dword ptr [ESP + 0xc],EAX
JMP 0x00132846
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 0x001328c0
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 0x00132160
LEA ECX,[EBX + ESI*0x4]
ADD ESP,0x10
TEST AL,AL
JNZ 0x00132828
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 0x00132867
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 0x00132803
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 0x00132803
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_00132770(int param_1,int param_2,uint param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined1 local_1d [13];\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_00132160(&stack0x00000014,*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_00132890;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_00132867;\nLAB_00132890:\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  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_00132160(local_1d,*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_00132867:\n  *puVar7 = param_4;\n  return;\n}\n\n" (function_definition "void FUN_00132770(int param_1,int param_2,uint param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined1 local_1d [13];\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_00132160(&stack0x00000014,*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_00132890;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_00132867;\nLAB_00132890:\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  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_00132160(local_1d,*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_00132867:\n  *puVar7 = param_4;\n  return;\n}" primitive_type (function_declarator "FUN_00132770(int param_1,int param_2,uint param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4)" ( (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) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined1 local_1d [13];\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_00132160(&stack0x00000014,*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_00132890;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_00132867;\nLAB_00132890:\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  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_00132160(local_1d,*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_00132867:\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 "undefined1 local_1d [13];" type_identifier (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (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_00132160(&stack0x00000014,*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_00132890;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_00132867;\nLAB_00132890:\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_00132160(&stack0x00000014,*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_00132890;\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_00132160(&stack0x00000014,*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_00132160(&stack0x00000014,*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_00132160(&stack0x00000014,*puVar7,*puVar2);" (assignment_expression "cVar3 = FUN_00132160(&stack0x00000014,*puVar7,*puVar2)" identifier = (call_expression "FUN_00132160(&stack0x00000014,*puVar7,*puVar2)" identifier (argument_list "(&stack0x00000014,*puVar7,*puVar2)" ( (pointer_expression "&stack0x00000014" & 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_00132890;" 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_00132890;" 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_00132867;\nLAB_00132890:\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_00132867;\nLAB_00132890:\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_00132867;" 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_00132867;" goto statement_identifier ;)) (labeled_statement "LAB_00132890:\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) ;) }))) }))) (if_statement "if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_00132160(local_1d,*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_00132160(local_1d,*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_00132160(local_1d,*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_00132160(local_1d,*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_00132160(local_1d,*puVar2,param_4);" (assignment_expression "cVar3 = FUN_00132160(local_1d,*puVar2,param_4)" identifier = (call_expression "FUN_00132160(local_1d,*puVar2,param_4)" identifier (argument_list "(local_1d,*puVar2,param_4)" ( 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_00132867:\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 ;) })))
(ERROR "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* DWARF original name: __adjust_heap<__gnu_cxx::__normal_iterator<gold::Sized_symbol<32>**,\n   std::vector<gold::Sized_symbol<32>*, std::allocator<gold::Sized_symbol<32>*> > >, int,\n   gold::Sized_symbol<32>*, __gnu_cxx::__ops::_Iter_comp_iter<gold::Weak_alias_sorter<32> > > */\n\nvoid std::\n     __adjust_heap<__gnu_cxx::__normal_iterator<gold::Sized_symbol<32>**,_std::vector<gold::Sized_symbol<32>*,_std::allocator<gold::Sized_symbol<32>*>_>_>,_int,_gold::Sized_symbol<32>*,___gnu_cxx::__ops::_Iter_comp_iter<gold::Weak_alias_sorter<32>_>_>\n               (int __first,int __holeIndex,uint __len,Sized_symbol<32> *__value)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  bool bVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  _Iter_comp_val<gold::Weak_alias_sorter<32>_> __cmp;\n  \n  iVar4 = (int)(__len - 1) / 2;\n  if (__holeIndex < iVar4) {\n    iVar6 = __holeIndex;\n    do {\n      iVar5 = (iVar6 + 1) * 2;\n      puVar7 = (undefined4 *)(__first + (iVar6 + 1) * 8);\n      iVar1 = iVar5 + -1;\n      puVar2 = (undefined4 *)(__first + iVar1 * 4);\n      bVar3 = gold::Weak_alias_sorter<32>::operator()\n                        ((Weak_alias_sorter<32> *)&stack0x00000014,(Sized_symbol<32> *)*puVar7,\n                         (Sized_symbol<32> *)*puVar2);\n      if (bVar3) {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(__first + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((__len & 1) == 0) goto LAB_00132890;\n  }\n  else {\n    puVar7 = (undefined4 *)(__first + __holeIndex * 4);\n    iVar5 = __holeIndex;\n    if ((__len & 1) != 0) goto LAB_00132867;\nLAB_00132890:\n    if ((int)(__len - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(__first + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }\n  if (__holeIndex < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(__first + iVar4 * 4);\n      bVar3 = gold::Weak_alias_sorter<32>::operator()\n                        ((Weak_alias_sorter<32> *)&__cmp,(Sized_symbol<32> *)*puVar2,__value);\n      puVar7 = (undefined4 *)(__first + iVar5 * 4);\n      if (!bVar3) break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= __holeIndex) {\n        *puVar2 = __value;\n        return;\n      }\n    }\n  }\nLAB_00132867:\n  *puVar7 = __value;\n  return;\n}\n\n" comment comment (declaration "void std::\n     __adjust_heap<__gnu_cxx::__normal_iterator<gold::Sized_symbol<32>**,_std::vector<gold::Sized_symbol<32>*,_std::allocator<gold::Sized_symbol<32>*>_>_>,_int,_gold::Sized_symbol<32>*,___gnu_cxx::__ops::_Iter_comp_iter<gold::Weak_alias_sorter<32>_>_>\n               (int __first,int __holeIndex,uint __len,Sized_symbol<32> *__value)\n\n{\n  int iVar1;" primitive_type (ERROR "std::\n     __adjust_heap<__gnu_cxx::__normal_iterator<gold::Sized_symbol<32>" identifier : : identifier < identifier : : identifier < identifier : : identifier < number_literal >) (pointer_declarator "**,_std::vector<gold::Sized_symbol<32>*,_std::allocator<gold::Sized_symbol<32>*>_>_" * (pointer_declarator "*,_std::vector<gold::Sized_symbol<32>*,_std::allocator<gold::Sized_symbol<32>*>_>_" * (ERROR ",_std::vector<gold::Sized_symbol<32>" , identifier : : identifier < identifier : : identifier < number_literal >) (pointer_declarator "*,_std::allocator<gold::Sized_symbol<32>*>_>_" * (ERROR ",_std::allocator<gold::Sized_symbol<32>" , identifier : : identifier < identifier : : identifier < number_literal >) (pointer_declarator "*>_>_" * (ERROR ">_>" > identifier >) identifier)))) (ERROR ">,_int,_gold::Sized_symbol<32>*" > , identifier , (ERROR "_gold::Sized_symbol<32>" identifier : : identifier < number_literal >) *) , (ERROR "___gnu_cxx::__ops::_Iter_comp_iter<gold::Weak_alias_sorter<32>_>_>\n               (int __first,int __holeIndex,uint __len,Sized_symbol<32> *__value)\n\n{\n  int" identifier : : identifier : : identifier < identifier : : identifier < number_literal > identifier > (function_declarator "_>\n               (int __first,int __holeIndex,uint __len,Sized_symbol<32> *__value)" identifier (ERROR ">" >) (parameter_list "(int __first,int __holeIndex,uint __len,Sized_symbol<32> *__value)" ( (parameter_declaration "int __first" primitive_type identifier) , (parameter_declaration "int __holeIndex" primitive_type identifier) , (parameter_declaration "uint __len" type_identifier identifier) , (parameter_declaration "Sized_symbol<32> *__value" type_identifier (ERROR "<32>" < number_literal >) (pointer_declarator "*__value" * identifier)) ))) { primitive_type) identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * 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 "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (expression_statement "_Iter_comp_val<gold::Weak_alias_sorter<32>_> __cmp;" (update_expression "_Iter_comp_val<gold::Weak_alias_sorter<32>_> __cmp" (binary_expression "_Iter_comp_val<gold::Weak_alias_sorter<32>_> __cmp" (binary_expression "_Iter_comp_val<gold::Weak_alias_sorter<32>_" (binary_expression "_Iter_comp_val<gold::Weak_alias_sorter<32" (binary_expression "_Iter_comp_val<gold" identifier < identifier) (ERROR "::Weak_alias_sorter" : : identifier) < number_literal) > identifier) > identifier) --) ;) (expression_statement "iVar4 = (int)(__len - 1) / 2;" (assignment_expression "iVar4 = (int)(__len - 1) / 2" identifier = (binary_expression "(int)(__len - 1) / 2" (cast_expression "(int)(__len - 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(__len - 1)" ( (binary_expression "__len - 1" identifier - number_literal) ))) / number_literal)) ;) if (parenthesized_expression "(__holeIndex < iVar4)" ( (binary_expression "__holeIndex < iVar4" identifier < identifier) )) { (expression_statement "iVar6 = __holeIndex;" (assignment_expression "iVar6 = __holeIndex" identifier = identifier) ;) do { (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 *)(__first + (iVar6 + 1) * 8);" (assignment_expression "puVar7 = (undefined4 *)(__first + (iVar6 + 1) * 8)" identifier = (cast_expression "(undefined4 *)(__first + (iVar6 + 1) * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + (iVar6 + 1) * 8)" ( (binary_expression "__first + (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 *)(__first + iVar1 * 4);" (assignment_expression "puVar2 = (undefined4 *)(__first + iVar1 * 4)" identifier = (cast_expression "(undefined4 *)(__first + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + iVar1 * 4)" ( (binary_expression "__first + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) ;) (ERROR "bVar3 = gold::" (assignment_expression "bVar3 = gold" identifier = identifier) : :) (binary_expression "Weak_alias_sorter<32" identifier < number_literal) > (ERROR "::" : :) (call_expression "operator()" identifier (argument_list "()" ( ))) ( ( (binary_expression "Weak_alias_sorter<32> *)&stack0x00000014" (binary_expression "Weak_alias_sorter<32" identifier < number_literal) > (pointer_expression "*)&stack0x00000014" * (ERROR ")" )) (pointer_expression "&stack0x00000014" & identifier))) , ( (ERROR "Sized_symbol<32> *)*puVar7,\n                         (Sized_symbol<32> *)*puVar2);\n      if (bVar3) {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(__first + iVar6 * 4) = *puVar7;\n      iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((__len & 1) == 0) goto LAB_00132890;\n  }\n  else {\n    puVar7 = (undefined4 *)(__first + __holeIndex * 4);\n    iVar5 = __holeIndex;\n    if ((__len & 1) != 0) goto LAB_00132867;\nLAB_00132890:\n    if ((int)(__len - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(__first + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }\n  if (__holeIndex < iVar5)" (comma_expression "Sized_symbol<32> *)*puVar7,\n                         (Sized_symbol<32> *)*puVar2)" (binary_expression "Sized_symbol<32> *)*puVar7" (binary_expression "Sized_symbol<32" identifier < number_literal) > (pointer_expression "*)*puVar7" * (ERROR ")" )) (pointer_expression "*puVar7" * identifier))) , (parenthesized_expression "(Sized_symbol<32> *)*puVar2)" ( (binary_expression "Sized_symbol<32> *)*puVar2" (binary_expression "Sized_symbol<32" identifier < number_literal) > (pointer_expression "*)*puVar2" * (ERROR ")" )) (pointer_expression "*puVar2" * identifier))) ))) ; if (binary_expression "(bVar3) {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }\n      *(undefined4 *)(__first + iVar6 * 4) = *puVar7" (compound_literal_expression "(bVar3) {\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }" ( (type_descriptor "bVar3" type_identifier) ) (initializer_list "{\n        iVar5 = iVar1;\n        puVar7 = puVar2;\n      }" { (ERROR "iVar5 = iVar1;" (assignment_expression "iVar5 = iVar1" identifier = identifier) ;) (assignment_expression "puVar7 = puVar2" identifier = identifier) (ERROR ";" ;) })) * (cast_expression "(undefined4 *)(__first + iVar6 * 4) = *puVar7" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (assignment_expression "(__first + iVar6 * 4) = *puVar7" (parenthesized_expression "(__first + iVar6 * 4)" ( (binary_expression "__first + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )) = (pointer_expression "*puVar7" * identifier)))) ; (call_expression "iVar6 = iVar5;\n    } while (iVar5 < iVar4);\n    if ((__len & 1) == 0)" (call_expression "iVar6 = iVar5;\n    } while (iVar5 < iVar4)" (assignment_expression "iVar6 = iVar5" identifier = identifier) (ERROR ";\n    } while" ; } while) (argument_list "(iVar5 < iVar4)" ( (binary_expression "iVar5 < iVar4" identifier < identifier) ))) (ERROR ";\n    if" ; if) (argument_list "((__len & 1) == 0)" ( (binary_expression "(__len & 1) == 0" (parenthesized_expression "(__len & 1)" ( (binary_expression "__len & 1" identifier & number_literal) )) == number_literal) ))) identifier identifier ; } else (compound_statement "{\n    puVar7 = (undefined4 *)(__first + __holeIndex * 4);\n    iVar5 = __holeIndex;\n    if ((__len & 1) != 0) goto LAB_00132867;\nLAB_00132890:\n    if ((int)(__len - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(__first + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }\n  }" { (expression_statement "puVar7 = (undefined4 *)(__first + __holeIndex * 4);" (assignment_expression "puVar7 = (undefined4 *)(__first + __holeIndex * 4)" identifier = (cast_expression "(undefined4 *)(__first + __holeIndex * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + __holeIndex * 4)" ( (binary_expression "__first + __holeIndex * 4" identifier + (binary_expression "__holeIndex * 4" identifier * number_literal)) )))) ;) (expression_statement "iVar5 = __holeIndex;" (assignment_expression "iVar5 = __holeIndex" identifier = identifier) ;) (if_statement "if ((__len & 1) != 0) goto LAB_00132867;" if (parenthesized_expression "((__len & 1) != 0)" ( (binary_expression "(__len & 1) != 0" (parenthesized_expression "(__len & 1)" ( (binary_expression "__len & 1" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00132867;" goto statement_identifier ;)) (labeled_statement "LAB_00132890:\n    if ((int)(__len - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(__first + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }" statement_identifier : (if_statement "if ((int)(__len - 2) / 2 == iVar5) {\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(__first + iVar5 * 4);\n      *puVar7 = *puVar2;\n      puVar7 = puVar2;\n    }" if (parenthesized_expression "((int)(__len - 2) / 2 == iVar5)" ( (binary_expression "(int)(__len - 2) / 2 == iVar5" (binary_expression "(int)(__len - 2) / 2" (cast_expression "(int)(__len - 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(__len - 2)" ( (binary_expression "__len - 2" identifier - number_literal) ))) / number_literal) == identifier) )) (compound_statement "{\n      iVar5 = iVar5 * 2 + 1;\n      puVar2 = (undefined4 *)(__first + 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 *)(__first + iVar5 * 4);" (assignment_expression "puVar2 = (undefined4 *)(__first + iVar5 * 4)" identifier = (cast_expression "(undefined4 *)(__first + iVar5 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + iVar5 * 4)" ( (binary_expression "__first + 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) ;) }))) }) if (parenthesized_expression "(__holeIndex < iVar5)" ( (binary_expression "__holeIndex < iVar5" identifier < identifier) ))) { while (parenthesized_expression "( true )" ( true )) { (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 *)(__first + iVar4 * 4);" (assignment_expression "puVar2 = (undefined4 *)(__first + iVar4 * 4)" identifier = (cast_expression "(undefined4 *)(__first + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + iVar4 * 4)" ( (binary_expression "__first + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) ;) (ERROR "bVar3 = gold::" (assignment_expression "bVar3 = gold" identifier = identifier) : :) (binary_expression "Weak_alias_sorter<32" identifier < number_literal) > (ERROR "::" : :) (call_expression "operator()" identifier (argument_list "()" ( ))) ( ( (ERROR "Weak_alias_sorter<32> *)&__cmp,(Sized_symbol<32> *)*puVar2,__value);\n      puVar7 = (undefined4 *)(__first + iVar5 * 4);\n      if (!bVar3) break;\n      *puVar7 = *puVar2;\n      iVar5 = iVar4;\n      if (iVar4 <= __holeIndex) {\n        *puVar2 = __value;\n        return;\n      }\n    }\n  }" (comma_expression "Weak_alias_sorter<32> *)&__cmp,(Sized_symbol<32> *)*puVar2,__value)" (binary_expression "Weak_alias_sorter<32> *)&__cmp" (binary_expression "Weak_alias_sorter<32" identifier < number_literal) > (pointer_expression "*)&__cmp" * (ERROR ")" )) (pointer_expression "&__cmp" & identifier))) , (parenthesized_expression "(Sized_symbol<32> *)*puVar2,__value)" ( (comma_expression "Sized_symbol<32> *)*puVar2,__value" (binary_expression "Sized_symbol<32> *)*puVar2" (binary_expression "Sized_symbol<32" identifier < number_literal) > (pointer_expression "*)*puVar2" * (ERROR ")" )) (pointer_expression "*puVar2" * identifier))) , identifier) ))) ; (binary_expression "puVar7 = (undefined4 *)(__first + iVar5 * 4);\n      if (!bVar3) break;\n      *puVar7 = *puVar2" (call_expression "puVar7 = (undefined4 *)(__first + iVar5 * 4);\n      if (!bVar3)" (assignment_expression "puVar7 = (undefined4 *)(__first + iVar5 * 4)" identifier = (cast_expression "(undefined4 *)(__first + iVar5 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__first + iVar5 * 4)" ( (binary_expression "__first + iVar5 * 4" identifier + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) (ERROR ";\n      if" ; if) (argument_list "(!bVar3)" ( (unary_expression "!bVar3" ! identifier) ))) (ERROR "break;" identifier ;) * (assignment_expression "puVar7 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier))) ; (call_expression "iVar5 = iVar4;\n      if (iVar4 <= __holeIndex)" (assignment_expression "iVar5 = iVar4" identifier = identifier) (ERROR ";\n      if" ; if) (argument_list "(iVar4 <= __holeIndex)" ( (binary_expression "iVar4 <= __holeIndex" identifier <= identifier) ))) (compound_statement "{\n        *puVar2 = __value;\n        return;\n      }" { (expression_statement "*puVar2 = __value;" (assignment_expression "*puVar2 = __value" (pointer_expression "*puVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) }) } }) (binary_expression "LAB_00132867:\n  *puVar7 = __value" identifier (ERROR ":" :) * (assignment_expression "puVar7 = __value" identifier = identifier)) ; return ; })
(translation_unit "void FUN_00132770(int param_1,int param_2,uint param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined1 local_1d [13];\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_00132160(&stack0x00000014,*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_00132890;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_00132867;\nLAB_00132890:\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  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_00132160(local_1d,*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_00132867:\n  *puVar7 = param_4;\n  return;\n}\n\n" (function_definition "void FUN_00132770(int param_1,int param_2,uint param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined1 local_1d [13];\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_00132160(&stack0x00000014,*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_00132890;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_00132867;\nLAB_00132890:\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  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_00132160(local_1d,*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_00132867:\n  *puVar7 = param_4;\n  return;\n}" primitive_type (function_declarator "FUN_00132770(int param_1,int param_2,uint param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4)" ( (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) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined1 local_1d [13];\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_00132160(&stack0x00000014,*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_00132890;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_00132867;\nLAB_00132890:\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  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_00132160(local_1d,*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_00132867:\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 "undefined1 local_1d [13];" type_identifier (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (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_00132160(&stack0x00000014,*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_00132890;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_00132867;\nLAB_00132890:\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_00132160(&stack0x00000014,*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_00132890;\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_00132160(&stack0x00000014,*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_00132160(&stack0x00000014,*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_00132160(&stack0x00000014,*puVar7,*puVar2);" (assignment_expression "cVar3 = FUN_00132160(&stack0x00000014,*puVar7,*puVar2)" identifier = (call_expression "FUN_00132160(&stack0x00000014,*puVar7,*puVar2)" identifier (argument_list "(&stack0x00000014,*puVar7,*puVar2)" ( (pointer_expression "&stack0x00000014" & 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_00132890;" 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_00132890;" 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_00132867;\nLAB_00132890:\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_00132867;\nLAB_00132890:\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_00132867;" 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_00132867;" goto statement_identifier ;)) (labeled_statement "LAB_00132890:\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) ;) }))) }))) (if_statement "if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_00132160(local_1d,*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_00132160(local_1d,*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_00132160(local_1d,*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_00132160(local_1d,*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_00132160(local_1d,*puVar2,param_4);" (assignment_expression "cVar3 = FUN_00132160(local_1d,*puVar2,param_4)" identifier = (call_expression "FUN_00132160(local_1d,*puVar2,param_4)" identifier (argument_list "(local_1d,*puVar2,param_4)" ( 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_00132867:\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) ))) (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 (array_declarator IDENT [ LIT ]) ;) (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) ;) }))) }))) (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 ( 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_00132770(int param_1,int param_2,uint param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined1 local_1d [13];\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_00132160(&stack0x00000014,*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_00132890;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_00132867;\nLAB_00132890:\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  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_00132160(local_1d,*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_00132867:\n  *puVar7 = param_4;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00132770(int param_1,int param_2,uint param_3,undefined4 param_4)" (identifier "FUN_00132770") (parameter_list "(int param_1,int param_2,uint param_3,undefined4 param_4)" (( "(") (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")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  undefined1 local_1d [13];\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_00132160(&stack0x00000014,*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_00132890;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_00132867;\nLAB_00132890:\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  if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_00132160(local_1d,*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_00132867:\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 "undefined1 local_1d [13];" (type_identifier "undefined1") (array_declarator "local_1d [13]" (identifier "local_1d") ([ "[") (number_literal "13") (] "]")) (; ";")) (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_00132160(&stack0x00000014,*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_00132890;\n  }\n  else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_00132867;\nLAB_00132890:\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_00132160(&stack0x00000014,*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_00132890;\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_00132160(&stack0x00000014,*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_00132160(&stack0x00000014,*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_00132160(&stack0x00000014,*puVar7,*puVar2);" (assignment_expression "cVar3 = FUN_00132160(&stack0x00000014,*puVar7,*puVar2)" (identifier "cVar3") (= "=") (call_expression "FUN_00132160(&stack0x00000014,*puVar7,*puVar2)" (identifier "FUN_00132160") (argument_list "(&stack0x00000014,*puVar7,*puVar2)" (( "(") (pointer_expression "&stack0x00000014" (& "&") (identifier "stack0x00000014")) (, ",") (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_00132890;" (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_00132890;" (goto "goto") (statement_identifier "LAB_00132890") (; ";"))) (} "}")) (else_clause "else {\n    puVar7 = (undefined4 *)(param_1 + param_2 * 4);\n    iVar5 = param_2;\n    if ((param_3 & 1) != 0) goto LAB_00132867;\nLAB_00132890:\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_00132867;\nLAB_00132890:\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_00132867;" (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_00132867;" (goto "goto") (statement_identifier "LAB_00132867") (; ";"))) (labeled_statement "LAB_00132890:\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_00132890") (: ":") (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")) (; ";")) (} "}")))) (} "}")))) (if_statement "if (param_2 < iVar5) {\n    while( true ) {\n      iVar4 = (iVar5 + -1) / 2;\n      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n      cVar3 = FUN_00132160(local_1d,*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_00132160(local_1d,*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_00132160(local_1d,*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_00132160(local_1d,*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_00132160(local_1d,*puVar2,param_4);" (assignment_expression "cVar3 = FUN_00132160(local_1d,*puVar2,param_4)" (identifier "cVar3") (= "=") (call_expression "FUN_00132160(local_1d,*puVar2,param_4)" (identifier "FUN_00132160") (argument_list "(local_1d,*puVar2,param_4)" (( "(") (identifier "local_1d") (, ",") (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_00132867:\n  *puVar7 = param_4;" (statement_identifier "LAB_00132867") (: ":") (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::Sized_symbol<32>**,
   std::vector<gold::Sized_symbol<32>*, std::allocator<gold::Sized_symbol<32>*> > >, int,
   gold::Sized_symbol<32>*, __gnu_cxx::__ops::_Iter_comp_iter<gold::Weak_alias_sorter<32> > > */

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

{
  int iVar1;
  undefined4 *puVar2;
  bool bVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 *puVar7;
  _Iter_comp_val<gold::Weak_alias_sorter<32>_> __cmp;
  
  iVar4 = (int)(__len - 1) / 2;
  if (__holeIndex < iVar4) {
    iVar6 = __holeIndex;
    do {
      iVar5 = (iVar6 + 1) * 2;
      puVar7 = (undefined4 *)(__first + (iVar6 + 1) * 8);
      iVar1 = iVar5 + -1;
      puVar2 = (undefined4 *)(__first + iVar1 * 4);
      bVar3 = gold::Weak_alias_sorter<32>::operator()
                        ((Weak_alias_sorter<32> *)&stack0x00000014,(Sized_symbol<32> *)*puVar7,
                         (Sized_symbol<32> *)*puVar2);
      if (bVar3) {
        iVar5 = iVar1;
        puVar7 = puVar2;
      }
      *(undefined4 *)(__first + iVar6 * 4) = *puVar7;
      iVar6 = iVar5;
    } while (iVar5 < iVar4);
    if ((__len & 1) == 0) goto LAB_00132890;
  }
  else {
    puVar7 = (undefined4 *)(__first + __holeIndex * 4);
    iVar5 = __holeIndex;
    if ((__len & 1) != 0) goto LAB_00132867;
LAB_00132890:
    if ((int)(__len - 2) / 2 == iVar5) {
      iVar5 = iVar5 * 2 + 1;
      puVar2 = (undefined4 *)(__first + iVar5 * 4);
      *puVar7 = *puVar2;
      puVar7 = puVar2;
    }
  }
  if (__holeIndex < iVar5) {
    while( true ) {
      iVar4 = (iVar5 + -1) / 2;
      puVar2 = (undefined4 *)(__first + iVar4 * 4);
      bVar3 = gold::Weak_alias_sorter<32>::operator()
                        ((Weak_alias_sorter<32> *)&__cmp,(Sized_symbol<32> *)*puVar2,__value);
      puVar7 = (undefined4 *)(__first + iVar5 * 4);
      if (!bVar3) break;
      *puVar7 = *puVar2;
      iVar5 = iVar4;
      if (iVar4 <= __holeIndex) {
        *puVar2 = __value;
        return;
      }
    }
  }
LAB_00132867:
  *puVar7 = __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)))) 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: (array_declarator declarator: (identifier) size: (number_literal))) (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))))))))) (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 (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)

{
  int iVar1;
  undefined4 *puVar2;
  char cVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 *puVar7;
  undefined1 local_1d [13];
  
  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_00132160(&stack0x00000014,*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_00132890;
  }
  else {
    puVar7 = (undefined4 *)(param_1 + param_2 * 4);
    iVar5 = param_2;
    if ((param_3 & 1) != 0) goto LAB_00132867;
LAB_00132890:
    if ((int)(param_3 - 2) / 2 == iVar5) {
      iVar5 = iVar5 * 2 + 1;
      puVar2 = (undefined4 *)(param_1 + iVar5 * 4);
      *puVar7 = *puVar2;
      puVar7 = puVar2;
    }
  }
  if (param_2 < iVar5) {
    while( true ) {
      iVar4 = (iVar5 + -1) / 2;
      puVar2 = (undefined4 *)(param_1 + iVar4 * 4);
      cVar3 = FUN_00132160(local_1d,*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_00132867:
  *puVar7 = param_4;
  return;
}

