
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* DWARF original name: __heap_select<__gnu_cxx::__normal_iterator<gold::Output_reloc<4, true, 64,
   false>*, std::vector<gold::Output_reloc<4, true, 64, false>, std::allocator<gold::Output_reloc<4,
   true, 64, false> > > >, __gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4, true,
   64, false>::Sort_relocs_comparison> > */

void std::
     __heap_select<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>
               (Output_reloc<9,_true,_64,_false> *__first,Output_reloc<9,_true,_64,_false> *__middle
               ,Output_reloc<9,_true,_64,_false> *__last)

{
  anon_union_8_2_238bdeaa_for_u2_ aVar1;
  anon_union_8_4_c82d8563_for_u1_ aVar2;
  Output_reloc<9,_true,_64,_false> *pOVar3;
  uint uVar4;
  undefined4 uVar5;
  int iVar6;
  long lVar7;
  long lVar8;
  _ValueType __value;
  
  lVar7 = ((long)__middle - (long)__first >> 4) * -0x5555555555555555;
  if (0x30 < (long)__middle - (long)__first) {
    for (lVar8 = (lVar7 + -2) / 2;
        __adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>
                  (__first,lVar8,lVar7), lVar8 != 0; lVar8 = lVar8 + -1) {
    }
  }
  if (__middle < __last) {
    do {
      while( true ) {
        iVar6 = gold::Output_reloc<9,_true,_64,_false>::compare(__middle,__first);
        if ((-1 < iVar6) && ((iVar6 != 0 || (__first[1].u1_.relobj <= __middle[1].u1_.relobj))))
        break;
        aVar1 = __first->u2_;
        pOVar3 = __middle + 1;
        __middle->u1_ = __first->u1_;
        __middle->u2_ = aVar1;
        uVar4 = __first->local_sym_index_;
        uVar5 = *(undefined4 *)&__first->field_0x1c;
        __middle->address_ = __first->address_;
        __middle->local_sym_index_ = uVar4;
        *(undefined4 *)&__middle->field_0x1c = uVar5;
        uVar5 = *(undefined4 *)&__first->field_0x24;
        aVar2 = __first[1].u1_;
        __middle->shndx_ = __first->shndx_;
        *(undefined4 *)&__middle->field_0x24 = uVar5;
        __middle[1].u1_ = aVar2;
        __adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>
                  (__first,0,lVar7);
        __middle = (Output_reloc<9,_true,_64,_false> *)&pOVar3->u2_;
        if (__last <= &pOVar3->u2_) {
          return;
        }
      }
      __middle = (Output_reloc<9,_true,_64,_false> *)&__middle[1].u2_;
    } while (__middle < __last);
  }
  return;
}



void FUN_00404490(undefined8 *param_1,undefined8 *param_2,undefined8 *param_3)

{
  undefined8 uVar1;
  int iVar2;
  long lVar3;
  long lVar4;
  undefined8 *puVar5;
  
  lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555;
  if (0x30 < (long)param_2 - (long)param_1) {
    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1
        ) {
    }
  }
  if (param_2 < param_3) {
    do {
      while( true ) {
        iVar2 = FUN_003fc030(param_2,param_1);
        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;
        uVar1 = param_1[1];
        puVar5 = param_2 + 6;
        *param_2 = *param_1;
        param_2[1] = uVar1;
        uVar1 = param_1[3];
        param_2[2] = param_1[2];
        param_2[3] = uVar1;
        uVar1 = param_1[5];
        param_2[4] = param_1[4];
        param_2[5] = uVar1;
        FUN_00404230(param_1,0,lVar3);
        param_2 = puVar5;
        if (param_3 <= puVar5) {
          return;
        }
      }
      param_2 = param_2 + 6;
    } while (param_2 < param_3);
  }
  return;
}


MOV RAX,RSI
PUSH R14
SUB RAX,RDI
PUSH R13
MOV R13,RDI
PUSH R12
MOV R12,RDX
MOV RDX,-0x5555555555555555
PUSH RBP
MOV RBP,RAX
PUSH RBX
SAR RBP,0x4
MOV RBX,RSI
IMUL RBP,RDX
SUB RSP,0x30
CMP RAX,0x30
JLE 0x00404546
LEA RAX,[RBP + -0x2]
MOV R14,RAX
SHR R14,0x3f
ADD R14,RAX
SAR R14,0x1
JMP 0x004044e4
SUB R14,0x1
LEA RCX,[R14 + R14*0x2]
SHL RCX,0x4
MOV RDX,qword ptr [R13 + RCX*0x1 + 0x8]
MOV RSI,qword ptr [R13 + RCX*0x1 + 0x10]
MOV RDI,qword ptr [R13 + RCX*0x1 + 0x18]
MOV RAX,qword ptr [R13 + RCX*0x1]
MOV R9,qword ptr [R13 + RCX*0x1 + 0x20]
MOV R10,qword ptr [R13 + RCX*0x1 + 0x28]
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RSP + 0x10],RSI
MOV qword ptr [RSP + 0x18],RDI
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x20],R9
MOV qword ptr [RSP + 0x28],R10
PUSH R10
PUSH R9
PUSH RDI
MOV RDI,R13
PUSH RSI
MOV RSI,R14
PUSH RDX
MOV RDX,RBP
PUSH RAX
CALL 0x00404230
ADD RSP,0x30
TEST R14,R14
JNZ 0x004044e0
MOV R14,RBX
CMP R12,RBX
JA 0x00404565
JMP 0x004045fa
ADD R14,0x30
CMP R12,R14
JBE 0x004045fa
MOV RSI,R13
MOV RDI,R14
CALL 0x003fc030
TEST EAX,EAX
JS 0x00404580
JNZ 0x00404558
MOV RAX,qword ptr [R13 + 0x28]
CMP qword ptr [R14 + 0x28],RAX
JNC 0x00404558
MOVDQU XMM0,xmmword ptr [R13]
MOV RDX,qword ptr [R14 + 0x8]
ADD R14,0x30
MOV RAX,qword ptr [R14 + -0x30]
MOV RSI,qword ptr [R14 + -0x10]
MOVUPS xmmword ptr [R14 + -0x30],XMM0
MOVDQU XMM1,xmmword ptr [R13 + 0x10]
MOV RDI,qword ptr [R14 + -0x8]
MOV RCX,qword ptr [R14 + -0x20]
MOV RBX,qword ptr [R14 + -0x18]
MOV qword ptr [RSP + 0x8],RDX
MOVUPS xmmword ptr [R14 + -0x20],XMM1
MOVDQU XMM2,xmmword ptr [R13 + 0x20]
MOV qword ptr [RSP + 0x20],RSI
MOV qword ptr [RSP + 0x28],RDI
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x10],RCX
MOV qword ptr [RSP + 0x18],RBX
MOVUPS xmmword ptr [R14 + -0x10],XMM2
PUSH RDI
MOV RDI,R13
PUSH RSI
XOR ESI,ESI
PUSH RBX
PUSH RCX
PUSH RDX
MOV RDX,RBP
PUSH RAX
CALL 0x00404230
ADD RSP,0x30
CMP R12,R14
JA 0x00404565
ADD RSP,0x30
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
(translation_unit "void FUN_00404490(undefined8 *param_1,undefined8 *param_2,undefined8 *param_3)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  \n  lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555;\n  if (0x30 < (long)param_2 - (long)param_1) {\n    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }\n  }\n  if (param_2 < param_3) {\n    do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00404490(undefined8 *param_1,undefined8 *param_2,undefined8 *param_3)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  \n  lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555;\n  if (0x30 < (long)param_2 - (long)param_1) {\n    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }\n  }\n  if (param_2 < param_3) {\n    do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00404490(undefined8 *param_1,undefined8 *param_2,undefined8 *param_3)" identifier (parameter_list "(undefined8 *param_1,undefined8 *param_2,undefined8 *param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  \n  lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555;\n  if (0x30 < (long)param_2 - (long)param_1) {\n    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }\n  }\n  if (param_2 < param_3) {\n    do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);\n  }\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555;" (assignment_expression "lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555" identifier = (binary_expression "((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555" (parenthesized_expression "((long)param_2 - (long)param_1 >> 4)" ( (binary_expression "(long)param_2 - (long)param_1 >> 4" (binary_expression "(long)param_2 - (long)param_1" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal) )) * number_literal)) ;) (if_statement "if (0x30 < (long)param_2 - (long)param_1) {\n    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }\n  }" if (parenthesized_expression "(0x30 < (long)param_2 - (long)param_1)" ( (binary_expression "0x30 < (long)param_2 - (long)param_1" number_literal < (binary_expression "(long)param_2 - (long)param_1" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) )) (compound_statement "{\n    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }\n  }" { (for_statement "for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }" for ( (assignment_expression "lVar4 = (lVar3 + -2) / 2" identifier = (binary_expression "(lVar3 + -2) / 2" (parenthesized_expression "(lVar3 + -2)" ( (binary_expression "lVar3 + -2" identifier + number_literal) )) / number_literal)) ; (comma_expression "FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0" (call_expression "FUN_00404230(param_1,lVar4,lVar3)" identifier (argument_list "(param_1,lVar4,lVar3)" ( identifier , identifier , identifier ))) , (binary_expression "lVar4 != 0" identifier != number_literal)) ; (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n    }" { })) })) (if_statement "if (param_2 < param_3) {\n    do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);\n  }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n    do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);\n  }" { (do_statement "do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);" do (compound_statement "{\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    }" { (while_statement "while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }" { (expression_statement "iVar2 = FUN_003fc030(param_2,param_1);" (assignment_expression "iVar2 = FUN_003fc030(param_2,param_1)" identifier = (call_expression "FUN_003fc030(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier )))) ;) (if_statement "if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;" if (parenthesized_expression "((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5]))))" ( (binary_expression "(-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) && (parenthesized_expression "((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))" ( (parenthesized_expression "(iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5]))" ( (binary_expression "iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])" (binary_expression "iVar2 != 0" identifier != number_literal) || (parenthesized_expression "((ulong)param_1[5] <= (ulong)param_2[5])" ( (binary_expression "(ulong)param_1[5] <= (ulong)param_2[5]" (cast_expression "(ulong)param_1[5]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[5]" identifier [ number_literal ])) <= (cast_expression "(ulong)param_2[5]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_2[5]" identifier [ number_literal ]))) ))) )) ))) )) (break_statement "break;" break ;)) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "puVar5 = param_2 + 6;" (assignment_expression "puVar5 = param_2 + 6" identifier = (binary_expression "param_2 + 6" identifier + number_literal)) ;) (expression_statement "*param_2 = *param_1;" (assignment_expression "*param_2 = *param_1" (pointer_expression "*param_2" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_2[1] = uVar1;" (assignment_expression "param_2[1] = uVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "param_2[2] = param_1[2];" (assignment_expression "param_2[2] = param_1[2]" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_2[3] = uVar1;" (assignment_expression "param_2[3] = uVar1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = param_1[5];" (assignment_expression "uVar1 = param_1[5]" identifier = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "param_2[4] = param_1[4];" (assignment_expression "param_2[4] = param_1[4]" (subscript_expression "param_2[4]" identifier [ number_literal ]) = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "param_2[5] = uVar1;" (assignment_expression "param_2[5] = uVar1" (subscript_expression "param_2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00404230(param_1,0,lVar3);" (call_expression "FUN_00404230(param_1,0,lVar3)" identifier (argument_list "(param_1,0,lVar3)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_2 = puVar5;" (assignment_expression "param_2 = puVar5" identifier = identifier) ;) (if_statement "if (param_3 <= puVar5) {\n          return;\n        }" if (parenthesized_expression "(param_3 <= puVar5)" ( (binary_expression "param_3 <= puVar5" identifier <= identifier) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) })) (expression_statement "param_2 = param_2 + 6;" (assignment_expression "param_2 = param_2 + 6" identifier = (binary_expression "param_2 + 6" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* DWARF original name: __heap_select<__gnu_cxx::__normal_iterator<gold::Output_reloc<4, true, 64,\n   false>*, std::vector<gold::Output_reloc<4, true, 64, false>, std::allocator<gold::Output_reloc<4,\n   true, 64, false> > > >, __gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4, true,\n   64, false>::Sort_relocs_comparison> > */\n\nvoid std::\n     __heap_select<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n               (Output_reloc<9,_true,_64,_false> *__first,Output_reloc<9,_true,_64,_false> *__middle\n               ,Output_reloc<9,_true,_64,_false> *__last)\n\n{\n  anon_union_8_2_238bdeaa_for_u2_ aVar1;\n  anon_union_8_4_c82d8563_for_u1_ aVar2;\n  Output_reloc<9,_true,_64,_false> *pOVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  long lVar7;\n  long lVar8;\n  _ValueType __value;\n  \n  lVar7 = ((long)__middle - (long)__first >> 4) * -0x5555555555555555;\n  if (0x30 < (long)__middle - (long)__first) {\n    for (lVar8 = (lVar7 + -2) / 2;\n        __adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,lVar8,lVar7), lVar8 != 0; lVar8 = lVar8 + -1) {\n    }\n  }\n  if (__middle < __last) {\n    do {\n      while( true ) {\n        iVar6 = gold::Output_reloc<9,_true,_64,_false>::compare(__middle,__first);\n        if ((-1 < iVar6) && ((iVar6 != 0 || (__first[1].u1_.relobj <= __middle[1].u1_.relobj))))\n        break;\n        aVar1 = __first->u2_;\n        pOVar3 = __middle + 1;\n        __middle->u1_ = __first->u1_;\n        __middle->u2_ = aVar1;\n        uVar4 = __first->local_sym_index_;\n        uVar5 = *(undefined4 *)&__first->field_0x1c;\n        __middle->address_ = __first->address_;\n        __middle->local_sym_index_ = uVar4;\n        *(undefined4 *)&__middle->field_0x1c = uVar5;\n        uVar5 = *(undefined4 *)&__first->field_0x24;\n        aVar2 = __first[1].u1_;\n        __middle->shndx_ = __first->shndx_;\n        *(undefined4 *)&__middle->field_0x24 = uVar5;\n        __middle[1].u1_ = aVar2;\n        __adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,0,lVar7);\n        __middle = (Output_reloc<9,_true,_64,_false> *)&pOVar3->u2_;\n        if (__last <= &pOVar3->u2_) {\n          return;\n        }\n      }\n      __middle = (Output_reloc<9,_true,_64,_false> *)&__middle[1].u2_;\n    } while (__middle < __last);\n  }\n  return;\n}\n\n" comment comment (declaration "void std::\n     __heap_select<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n               (Output_reloc<9,_true,_64,_false> *__first,Output_reloc<9,_true,_64,_false> *__middle\n               ,Output_reloc<9,_true,_64,_false> *__last)\n\n{\n  anon_union_8_2_238bdeaa_for_u2_ aVar1;" primitive_type (ERROR "std::\n     __heap_select<__gnu_cxx::__normal_iterator<gold::" identifier : : identifier < identifier : : identifier < identifier : :) identifier (ERROR "<4" < number_literal) , identifier , identifier , identifier (ERROR ">*" > *) , (ERROR "_std::vector<gold::" identifier : : identifier < identifier : :) identifier (ERROR "<4" < number_literal) , identifier , identifier , identifier (ERROR ">" >) , (ERROR "_std::allocator<gold::" identifier : : identifier < identifier : :) identifier (ERROR "<4" < number_literal) , identifier , identifier , identifier (ERROR ">_>_>_>" > identifier > identifier > identifier >) , (ERROR "___gnu_cxx::__ops::_Iter_comp_iter<gold::" identifier : : identifier : : identifier < identifier : :) identifier (ERROR "<4" < number_literal) , identifier , identifier , (ERROR "_false>::Sort_relocs_comparison>_>\n               (Output_reloc<9,_true,_64,_false> *__first,Output_reloc<9,_true,_64,_false> *__middle\n               ,Output_reloc<9,_true,_64,_false> *__last)\n\n{\n  anon_union_8_2_238bdeaa_for_u2_" identifier > : : identifier > (function_declarator "_>\n               (Output_reloc<9,_true,_64,_false> *__first,Output_reloc<9,_true,_64,_false> *__middle\n               ,Output_reloc<9,_true,_64,_false> *__last)" identifier (ERROR ">" >) (parameter_list "(Output_reloc<9,_true,_64,_false> *__first,Output_reloc<9,_true,_64,_false> *__middle\n               ,Output_reloc<9,_true,_64,_false> *__last)" ( (parameter_declaration "Output_reloc" type_identifier) (ERROR "<9" < number_literal) , (parameter_declaration "_true" type_identifier) , (parameter_declaration "_64" type_identifier) , (parameter_declaration "_false> *__first" type_identifier (ERROR ">" >) (pointer_declarator "*__first" * identifier)) , (parameter_declaration "Output_reloc" type_identifier) (ERROR "<9" < number_literal) , (parameter_declaration "_true" type_identifier) , (parameter_declaration "_64" type_identifier) , (parameter_declaration "_false> *__middle" type_identifier (ERROR ">" >) (pointer_declarator "*__middle" * identifier)) , (parameter_declaration "Output_reloc" type_identifier) (ERROR "<9" < number_literal) , (parameter_declaration "_true" type_identifier) , (parameter_declaration "_64" type_identifier) , (parameter_declaration "_false> *__last" type_identifier (ERROR ">" >) (pointer_declarator "*__last" * identifier)) ))) { identifier) identifier ;) (declaration "anon_union_8_4_c82d8563_for_u1_ aVar2;" type_identifier identifier ;) (expression_statement "Output_reloc<9,_true,_64,_false> *pOVar3;" (update_expression "Output_reloc<9,_true,_64,_false> *pOVar3" (binary_expression "Output_reloc<9,_true,_64,_false> *pOVar3" (binary_expression "Output_reloc<9" identifier < number_literal) (ERROR ",_true,_64,_false" , identifier , identifier , identifier) > (pointer_expression "*pOVar3" * identifier)) --) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "_ValueType __value;" type_identifier identifier ;) (expression_statement "lVar7 = ((long)__middle - (long)__first >> 4) * -0x5555555555555555;" (assignment_expression "lVar7 = ((long)__middle - (long)__first >> 4) * -0x5555555555555555" identifier = (binary_expression "((long)__middle - (long)__first >> 4) * -0x5555555555555555" (parenthesized_expression "((long)__middle - (long)__first >> 4)" ( (binary_expression "(long)__middle - (long)__first >> 4" (binary_expression "(long)__middle - (long)__first" (cast_expression "(long)__middle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)__first" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal) )) * number_literal)) ;) (if_statement "if (0x30 < (long)__middle - (long)__first) {\n    for (lVar8 = (lVar7 + -2) / 2;\n        __adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,lVar8,lVar7), lVar8 != 0; lVar8 = lVar8 + -1) {\n    }\n  }" if (parenthesized_expression "(0x30 < (long)__middle - (long)__first)" ( (binary_expression "0x30 < (long)__middle - (long)__first" number_literal < (binary_expression "(long)__middle - (long)__first" (cast_expression "(long)__middle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)__first" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) )) (compound_statement "{\n    for (lVar8 = (lVar7 + -2) / 2;\n        __adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,lVar8,lVar7), lVar8 != 0; lVar8 = lVar8 + -1) {\n    }\n  }" { (for_statement "for (lVar8 = (lVar7 + -2) / 2;\n        __adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,lVar8,lVar7), lVar8 != 0; lVar8 = lVar8 + -1) {\n    }" for ( (assignment_expression "lVar8 = (lVar7 + -2) / 2" identifier = (binary_expression "(lVar7 + -2) / 2" (parenthesized_expression "(lVar7 + -2)" ( (binary_expression "lVar7 + -2" identifier + number_literal) )) / number_literal)) ; (ERROR "__adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::__ops::_Iter_comp_iter<gold::" (comma_expression "__adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std" (binary_expression "__adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4" (binary_expression "__adjust_heap<__gnu_cxx::__normal_iterator<gold" (binary_expression "__adjust_heap<__gnu_cxx" identifier < identifier) (ERROR "::__normal_iterator" : : identifier) < identifier) (ERROR "::Output_reloc" : : identifier) < number_literal) , (comma_expression "_true,_64,_false>*,_std" identifier , (comma_expression "_64,_false>*,_std" identifier , (binary_expression "_false>*,_std" identifier > (pointer_expression "*,_std" * (ERROR "," ,) identifier))))) : : (binary_expression "vector<gold" identifier < identifier) : : (comma_expression "Output_reloc<4,_true,_64,_false>,_std" (binary_expression "Output_reloc<4" identifier < number_literal) , (comma_expression "_true,_64,_false>,_std" identifier , (comma_expression "_64,_false>,_std" identifier , (binary_expression "_false>,_std" identifier > (ERROR "," ,) identifier)))) : : (binary_expression "allocator<gold" identifier < identifier) : : (comma_expression "Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold" (binary_expression "Output_reloc<4" identifier < number_literal) , (comma_expression "_true,_64,_false>_>_>_>,_long_int,_gold" identifier , (comma_expression "_64,_false>_>_>_>,_long_int,_gold" identifier , (comma_expression "_false>_>_>_>,_long_int,_gold" (binary_expression "_false>_>_>_>,_long_int" (binary_expression "_false>_>_>_" (binary_expression "_false>_>_" (binary_expression "_false>_" identifier > identifier) > identifier) > identifier) > (ERROR "," ,) identifier) , identifier)))) : : (comma_expression "Output_reloc<4,_true,_64,_false>,___gnu_cxx" (binary_expression "Output_reloc<4" identifier < number_literal) , (comma_expression "_true,_64,_false>,___gnu_cxx" identifier , (comma_expression "_64,_false>,___gnu_cxx" identifier , (binary_expression "_false>,___gnu_cxx" identifier > (ERROR "," ,) identifier)))) : : identifier : : (binary_expression "_Iter_comp_iter<gold" identifier < identifier) : :) (comma_expression "Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,lVar8,lVar7), lVar8 != 0" (binary_expression "Output_data_reloc_base<4" identifier < number_literal) , (comma_expression "_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,lVar8,lVar7), lVar8 != 0" identifier , (comma_expression "_64,_false>::Sort_relocs_comparison>_>\n                  (__first,lVar8,lVar7), lVar8 != 0" identifier , (comma_expression "_false>::Sort_relocs_comparison>_>\n                  (__first,lVar8,lVar7), lVar8 != 0" (binary_expression "_false>::Sort_relocs_comparison>_>\n                  (__first,lVar8,lVar7)" (binary_expression "_false>::Sort_relocs_comparison>_" (binary_expression "_false>::Sort_relocs_comparison" identifier > (ERROR "::" : :) identifier) > identifier) > (parenthesized_expression "(__first,lVar8,lVar7)" ( (comma_expression "__first,lVar8,lVar7" identifier , (comma_expression "lVar8,lVar7" identifier , identifier)) ))) , (binary_expression "lVar8 != 0" identifier != number_literal))))) ; (assignment_expression "lVar8 = lVar8 + -1" identifier = (binary_expression "lVar8 + -1" identifier + number_literal)) ) (compound_statement "{\n    }" { })) })) (if_statement "if (__middle < __last) {\n    do {\n      while( true ) {\n        iVar6 = gold::Output_reloc<9,_true,_64,_false>::compare(__middle,__first);\n        if ((-1 < iVar6) && ((iVar6 != 0 || (__first[1].u1_.relobj <= __middle[1].u1_.relobj))))\n        break;\n        aVar1 = __first->u2_;\n        pOVar3 = __middle + 1;\n        __middle->u1_ = __first->u1_;\n        __middle->u2_ = aVar1;\n        uVar4 = __first->local_sym_index_;\n        uVar5 = *(undefined4 *)&__first->field_0x1c;\n        __middle->address_ = __first->address_;\n        __middle->local_sym_index_ = uVar4;\n        *(undefined4 *)&__middle->field_0x1c = uVar5;\n        uVar5 = *(undefined4 *)&__first->field_0x24;\n        aVar2 = __first[1].u1_;\n        __middle->shndx_ = __first->shndx_;\n        *(undefined4 *)&__middle->field_0x24 = uVar5;\n        __middle[1].u1_ = aVar2;\n        __adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,0,lVar7);\n        __middle = (Output_reloc<9,_true,_64,_false> *)&pOVar3->u2_;\n        if (__last <= &pOVar3->u2_) {\n          return;\n        }\n      }\n      __middle = (Output_reloc<9,_true,_64,_false> *)&__middle[1].u2_;\n    } while (__middle < __last);\n  }" if (parenthesized_expression "(__middle < __last)" ( (binary_expression "__middle < __last" identifier < identifier) )) (compound_statement "{\n    do {\n      while( true ) {\n        iVar6 = gold::Output_reloc<9,_true,_64,_false>::compare(__middle,__first);\n        if ((-1 < iVar6) && ((iVar6 != 0 || (__first[1].u1_.relobj <= __middle[1].u1_.relobj))))\n        break;\n        aVar1 = __first->u2_;\n        pOVar3 = __middle + 1;\n        __middle->u1_ = __first->u1_;\n        __middle->u2_ = aVar1;\n        uVar4 = __first->local_sym_index_;\n        uVar5 = *(undefined4 *)&__first->field_0x1c;\n        __middle->address_ = __first->address_;\n        __middle->local_sym_index_ = uVar4;\n        *(undefined4 *)&__middle->field_0x1c = uVar5;\n        uVar5 = *(undefined4 *)&__first->field_0x24;\n        aVar2 = __first[1].u1_;\n        __middle->shndx_ = __first->shndx_;\n        *(undefined4 *)&__middle->field_0x24 = uVar5;\n        __middle[1].u1_ = aVar2;\n        __adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,0,lVar7);\n        __middle = (Output_reloc<9,_true,_64,_false> *)&pOVar3->u2_;\n        if (__last <= &pOVar3->u2_) {\n          return;\n        }\n      }\n      __middle = (Output_reloc<9,_true,_64,_false> *)&__middle[1].u2_;\n    } while (__middle < __last);\n  }" { (do_statement "do {\n      while( true ) {\n        iVar6 = gold::Output_reloc<9,_true,_64,_false>::compare(__middle,__first);\n        if ((-1 < iVar6) && ((iVar6 != 0 || (__first[1].u1_.relobj <= __middle[1].u1_.relobj))))\n        break;\n        aVar1 = __first->u2_;\n        pOVar3 = __middle + 1;\n        __middle->u1_ = __first->u1_;\n        __middle->u2_ = aVar1;\n        uVar4 = __first->local_sym_index_;\n        uVar5 = *(undefined4 *)&__first->field_0x1c;\n        __middle->address_ = __first->address_;\n        __middle->local_sym_index_ = uVar4;\n        *(undefined4 *)&__middle->field_0x1c = uVar5;\n        uVar5 = *(undefined4 *)&__first->field_0x24;\n        aVar2 = __first[1].u1_;\n        __middle->shndx_ = __first->shndx_;\n        *(undefined4 *)&__middle->field_0x24 = uVar5;\n        __middle[1].u1_ = aVar2;\n        __adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,0,lVar7);\n        __middle = (Output_reloc<9,_true,_64,_false> *)&pOVar3->u2_;\n        if (__last <= &pOVar3->u2_) {\n          return;\n        }\n      }\n      __middle = (Output_reloc<9,_true,_64,_false> *)&__middle[1].u2_;\n    } while (__middle < __last);" do (compound_statement "{\n      while( true ) {\n        iVar6 = gold::Output_reloc<9,_true,_64,_false>::compare(__middle,__first);\n        if ((-1 < iVar6) && ((iVar6 != 0 || (__first[1].u1_.relobj <= __middle[1].u1_.relobj))))\n        break;\n        aVar1 = __first->u2_;\n        pOVar3 = __middle + 1;\n        __middle->u1_ = __first->u1_;\n        __middle->u2_ = aVar1;\n        uVar4 = __first->local_sym_index_;\n        uVar5 = *(undefined4 *)&__first->field_0x1c;\n        __middle->address_ = __first->address_;\n        __middle->local_sym_index_ = uVar4;\n        *(undefined4 *)&__middle->field_0x1c = uVar5;\n        uVar5 = *(undefined4 *)&__first->field_0x24;\n        aVar2 = __first[1].u1_;\n        __middle->shndx_ = __first->shndx_;\n        *(undefined4 *)&__middle->field_0x24 = uVar5;\n        __middle[1].u1_ = aVar2;\n        __adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,0,lVar7);\n        __middle = (Output_reloc<9,_true,_64,_false> *)&pOVar3->u2_;\n        if (__last <= &pOVar3->u2_) {\n          return;\n        }\n      }\n      __middle = (Output_reloc<9,_true,_64,_false> *)&__middle[1].u2_;\n    }" { (while_statement "while( true ) {\n        iVar6 = gold::Output_reloc<9,_true,_64,_false>::compare(__middle,__first);\n        if ((-1 < iVar6) && ((iVar6 != 0 || (__first[1].u1_.relobj <= __middle[1].u1_.relobj))))\n        break;\n        aVar1 = __first->u2_;\n        pOVar3 = __middle + 1;\n        __middle->u1_ = __first->u1_;\n        __middle->u2_ = aVar1;\n        uVar4 = __first->local_sym_index_;\n        uVar5 = *(undefined4 *)&__first->field_0x1c;\n        __middle->address_ = __first->address_;\n        __middle->local_sym_index_ = uVar4;\n        *(undefined4 *)&__middle->field_0x1c = uVar5;\n        uVar5 = *(undefined4 *)&__first->field_0x24;\n        aVar2 = __first[1].u1_;\n        __middle->shndx_ = __first->shndx_;\n        *(undefined4 *)&__middle->field_0x24 = uVar5;\n        __middle[1].u1_ = aVar2;\n        __adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,0,lVar7);\n        __middle = (Output_reloc<9,_true,_64,_false> *)&pOVar3->u2_;\n        if (__last <= &pOVar3->u2_) {\n          return;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar6 = gold::Output_reloc<9,_true,_64,_false>::compare(__middle,__first);\n        if ((-1 < iVar6) && ((iVar6 != 0 || (__first[1].u1_.relobj <= __middle[1].u1_.relobj))))\n        break;\n        aVar1 = __first->u2_;\n        pOVar3 = __middle + 1;\n        __middle->u1_ = __first->u1_;\n        __middle->u2_ = aVar1;\n        uVar4 = __first->local_sym_index_;\n        uVar5 = *(undefined4 *)&__first->field_0x1c;\n        __middle->address_ = __first->address_;\n        __middle->local_sym_index_ = uVar4;\n        *(undefined4 *)&__middle->field_0x1c = uVar5;\n        uVar5 = *(undefined4 *)&__first->field_0x24;\n        aVar2 = __first[1].u1_;\n        __middle->shndx_ = __first->shndx_;\n        *(undefined4 *)&__middle->field_0x24 = uVar5;\n        __middle[1].u1_ = aVar2;\n        __adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,0,lVar7);\n        __middle = (Output_reloc<9,_true,_64,_false> *)&pOVar3->u2_;\n        if (__last <= &pOVar3->u2_) {\n          return;\n        }\n      }" { (ERROR "iVar6 = gold::" (assignment_expression "iVar6 = gold" identifier = identifier) : :) (expression_statement "Output_reloc<9,_true,_64,_false>::compare(__middle,__first);" (comma_expression "Output_reloc<9,_true,_64,_false>::compare(__middle,__first)" (binary_expression "Output_reloc<9" identifier < number_literal) , (comma_expression "_true,_64,_false>::compare(__middle,__first)" identifier , (comma_expression "_64,_false>::compare(__middle,__first)" identifier , (binary_expression "_false>::compare(__middle,__first)" identifier > (ERROR "::" : :) (call_expression "compare(__middle,__first)" identifier (argument_list "(__middle,__first)" ( identifier , identifier ))))))) ;) (if_statement "if ((-1 < iVar6) && ((iVar6 != 0 || (__first[1].u1_.relobj <= __middle[1].u1_.relobj))))\n        break;" if (parenthesized_expression "((-1 < iVar6) && ((iVar6 != 0 || (__first[1].u1_.relobj <= __middle[1].u1_.relobj))))" ( (binary_expression "(-1 < iVar6) && ((iVar6 != 0 || (__first[1].u1_.relobj <= __middle[1].u1_.relobj)))" (parenthesized_expression "(-1 < iVar6)" ( (binary_expression "-1 < iVar6" number_literal < identifier) )) && (parenthesized_expression "((iVar6 != 0 || (__first[1].u1_.relobj <= __middle[1].u1_.relobj)))" ( (parenthesized_expression "(iVar6 != 0 || (__first[1].u1_.relobj <= __middle[1].u1_.relobj))" ( (binary_expression "iVar6 != 0 || (__first[1].u1_.relobj <= __middle[1].u1_.relobj)" (binary_expression "iVar6 != 0" identifier != number_literal) || (parenthesized_expression "(__first[1].u1_.relobj <= __middle[1].u1_.relobj)" ( (binary_expression "__first[1].u1_.relobj <= __middle[1].u1_.relobj" (field_expression "__first[1].u1_.relobj" (field_expression "__first[1].u1_" (subscript_expression "__first[1]" identifier [ number_literal ]) . field_identifier) . field_identifier) <= (field_expression "__middle[1].u1_.relobj" (field_expression "__middle[1].u1_" (subscript_expression "__middle[1]" identifier [ number_literal ]) . field_identifier) . field_identifier)) ))) )) ))) )) (break_statement "break;" break ;)) (expression_statement "aVar1 = __first->u2_;" (assignment_expression "aVar1 = __first->u2_" identifier = (field_expression "__first->u2_" identifier -> field_identifier)) ;) (expression_statement "pOVar3 = __middle + 1;" (assignment_expression "pOVar3 = __middle + 1" identifier = (binary_expression "__middle + 1" identifier + number_literal)) ;) (expression_statement "__middle->u1_ = __first->u1_;" (assignment_expression "__middle->u1_ = __first->u1_" (field_expression "__middle->u1_" identifier -> field_identifier) = (field_expression "__first->u1_" identifier -> field_identifier)) ;) (expression_statement "__middle->u2_ = aVar1;" (assignment_expression "__middle->u2_ = aVar1" (field_expression "__middle->u2_" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar4 = __first->local_sym_index_;" (assignment_expression "uVar4 = __first->local_sym_index_" identifier = (field_expression "__first->local_sym_index_" identifier -> field_identifier)) ;) (expression_statement "uVar5 = *(undefined4 *)&__first->field_0x1c;" (assignment_expression "uVar5 = *(undefined4 *)&__first->field_0x1c" identifier = (pointer_expression "*(undefined4 *)&__first->field_0x1c" * (cast_expression "(undefined4 *)&__first->field_0x1c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&__first->field_0x1c" & (field_expression "__first->field_0x1c" identifier -> field_identifier))))) ;) (expression_statement "__middle->address_ = __first->address_;" (assignment_expression "__middle->address_ = __first->address_" (field_expression "__middle->address_" identifier -> field_identifier) = (field_expression "__first->address_" identifier -> field_identifier)) ;) (expression_statement "__middle->local_sym_index_ = uVar4;" (assignment_expression "__middle->local_sym_index_ = uVar4" (field_expression "__middle->local_sym_index_" identifier -> field_identifier) = identifier) ;) (expression_statement "*(undefined4 *)&__middle->field_0x1c = uVar5;" (assignment_expression "*(undefined4 *)&__middle->field_0x1c = uVar5" (pointer_expression "*(undefined4 *)&__middle->field_0x1c" * (cast_expression "(undefined4 *)&__middle->field_0x1c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&__middle->field_0x1c" & (field_expression "__middle->field_0x1c" identifier -> field_identifier)))) = identifier) ;) (expression_statement "uVar5 = *(undefined4 *)&__first->field_0x24;" (assignment_expression "uVar5 = *(undefined4 *)&__first->field_0x24" identifier = (pointer_expression "*(undefined4 *)&__first->field_0x24" * (cast_expression "(undefined4 *)&__first->field_0x24" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&__first->field_0x24" & (field_expression "__first->field_0x24" identifier -> field_identifier))))) ;) (expression_statement "aVar2 = __first[1].u1_;" (assignment_expression "aVar2 = __first[1].u1_" identifier = (field_expression "__first[1].u1_" (subscript_expression "__first[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "__middle->shndx_ = __first->shndx_;" (assignment_expression "__middle->shndx_ = __first->shndx_" (field_expression "__middle->shndx_" identifier -> field_identifier) = (field_expression "__first->shndx_" identifier -> field_identifier)) ;) (expression_statement "*(undefined4 *)&__middle->field_0x24 = uVar5;" (assignment_expression "*(undefined4 *)&__middle->field_0x24 = uVar5" (pointer_expression "*(undefined4 *)&__middle->field_0x24" * (cast_expression "(undefined4 *)&__middle->field_0x24" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&__middle->field_0x24" & (field_expression "__middle->field_0x24" identifier -> field_identifier)))) = identifier) ;) (expression_statement "__middle[1].u1_ = aVar2;" (assignment_expression "__middle[1].u1_ = aVar2" (field_expression "__middle[1].u1_" (subscript_expression "__middle[1]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (ERROR "__adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std::vector<gold::Output_reloc<4,_true,_64,_false>,_std::allocator<gold::Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold::Output_reloc<4,_true,_64,_false>,___gnu_cxx::" (comma_expression "__adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4,_true,_64,_false>*,_std" (binary_expression "__adjust_heap<__gnu_cxx::__normal_iterator<gold::Output_reloc<4" (binary_expression "__adjust_heap<__gnu_cxx::__normal_iterator<gold" (binary_expression "__adjust_heap<__gnu_cxx" identifier < identifier) (ERROR "::__normal_iterator" : : identifier) < identifier) (ERROR "::Output_reloc" : : identifier) < number_literal) , (comma_expression "_true,_64,_false>*,_std" identifier , (comma_expression "_64,_false>*,_std" identifier , (binary_expression "_false>*,_std" identifier > (pointer_expression "*,_std" * (ERROR "," ,) identifier))))) : : (binary_expression "vector<gold" identifier < identifier) : : (comma_expression "Output_reloc<4,_true,_64,_false>,_std" (binary_expression "Output_reloc<4" identifier < number_literal) , (comma_expression "_true,_64,_false>,_std" identifier , (comma_expression "_64,_false>,_std" identifier , (binary_expression "_false>,_std" identifier > (ERROR "," ,) identifier)))) : : (binary_expression "allocator<gold" identifier < identifier) : : (comma_expression "Output_reloc<4,_true,_64,_false>_>_>_>,_long_int,_gold" (binary_expression "Output_reloc<4" identifier < number_literal) , (comma_expression "_true,_64,_false>_>_>_>,_long_int,_gold" identifier , (comma_expression "_64,_false>_>_>_>,_long_int,_gold" identifier , (comma_expression "_false>_>_>_>,_long_int,_gold" (binary_expression "_false>_>_>_>,_long_int" (binary_expression "_false>_>_>_" (binary_expression "_false>_>_" (binary_expression "_false>_" identifier > identifier) > identifier) > identifier) > (ERROR "," ,) identifier) , identifier)))) : : (comma_expression "Output_reloc<4,_true,_64,_false>,___gnu_cxx" (binary_expression "Output_reloc<4" identifier < number_literal) , (comma_expression "_true,_64,_false>,___gnu_cxx" identifier , (comma_expression "_64,_false>,___gnu_cxx" identifier , (binary_expression "_false>,___gnu_cxx" identifier > (ERROR "," ,) identifier)))) : :) (labeled_statement "__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,0,lVar7);" statement_identifier (ERROR "::_Iter_comp_iter<gold:" : : (binary_expression "_Iter_comp_iter<gold" identifier < identifier) :) : (expression_statement "Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,0,lVar7);" (comma_expression "Output_data_reloc_base<4,_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,0,lVar7)" (binary_expression "Output_data_reloc_base<4" identifier < number_literal) , (comma_expression "_true,_64,_false>::Sort_relocs_comparison>_>\n                  (__first,0,lVar7)" identifier , (comma_expression "_64,_false>::Sort_relocs_comparison>_>\n                  (__first,0,lVar7)" identifier , (binary_expression "_false>::Sort_relocs_comparison>_>\n                  (__first,0,lVar7)" (binary_expression "_false>::Sort_relocs_comparison>_" (binary_expression "_false>::Sort_relocs_comparison" identifier > (ERROR "::" : :) identifier) > identifier) > (parenthesized_expression "(__first,0,lVar7)" ( (comma_expression "__first,0,lVar7" identifier , (comma_expression "0,lVar7" number_literal , identifier)) )))))) ;)) (expression_statement "__middle = (Output_reloc<9,_true,_64,_false> *)&pOVar3->u2_;" (assignment_expression "__middle = (Output_reloc<9,_true,_64,_false> *)&pOVar3->u2_" identifier = (binary_expression "(Output_reloc<9,_true,_64,_false> *)&pOVar3->u2_" (parenthesized_expression "(Output_reloc<9,_true,_64,_false> *)" ( (comma_expression "Output_reloc<9,_true,_64,_false> *" (binary_expression "Output_reloc<9" identifier < number_literal) , (comma_expression "_true,_64,_false> *" identifier , (comma_expression "_64,_false> *" identifier , (binary_expression "_false> *" identifier > (pointer_expression "*" * identifier))))) )) & (field_expression "pOVar3->u2_" identifier -> field_identifier))) ;) (if_statement "if (__last <= &pOVar3->u2_) {\n          return;\n        }" if (parenthesized_expression "(__last <= &pOVar3->u2_)" ( (binary_expression "__last <= &pOVar3->u2_" identifier <= (pointer_expression "&pOVar3->u2_" & (field_expression "pOVar3->u2_" identifier -> field_identifier))) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) })) (expression_statement "__middle = (Output_reloc<9,_true,_64,_false> *)&__middle[1].u2_;" (assignment_expression "__middle = (Output_reloc<9,_true,_64,_false> *)&__middle[1].u2_" identifier = (binary_expression "(Output_reloc<9,_true,_64,_false> *)&__middle[1].u2_" (parenthesized_expression "(Output_reloc<9,_true,_64,_false> *)" ( (comma_expression "Output_reloc<9,_true,_64,_false> *" (binary_expression "Output_reloc<9" identifier < number_literal) , (comma_expression "_true,_64,_false> *" identifier , (comma_expression "_64,_false> *" identifier , (binary_expression "_false> *" identifier > (pointer_expression "*" * identifier))))) )) & (field_expression "__middle[1].u2_" (subscript_expression "__middle[1]" identifier [ number_literal ]) . field_identifier))) ;) }) while (parenthesized_expression "(__middle < __last)" ( (binary_expression "__middle < __last" identifier < identifier) )) ;) })) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_00404490(undefined8 *param_1,undefined8 *param_2,undefined8 *param_3)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  \n  lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555;\n  if (0x30 < (long)param_2 - (long)param_1) {\n    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }\n  }\n  if (param_2 < param_3) {\n    do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00404490(undefined8 *param_1,undefined8 *param_2,undefined8 *param_3)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  \n  lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555;\n  if (0x30 < (long)param_2 - (long)param_1) {\n    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }\n  }\n  if (param_2 < param_3) {\n    do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00404490(undefined8 *param_1,undefined8 *param_2,undefined8 *param_3)" identifier (parameter_list "(undefined8 *param_1,undefined8 *param_2,undefined8 *param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  \n  lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555;\n  if (0x30 < (long)param_2 - (long)param_1) {\n    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }\n  }\n  if (param_2 < param_3) {\n    do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);\n  }\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555;" (assignment_expression "lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555" identifier = (binary_expression "((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555" (parenthesized_expression "((long)param_2 - (long)param_1 >> 4)" ( (binary_expression "(long)param_2 - (long)param_1 >> 4" (binary_expression "(long)param_2 - (long)param_1" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal) )) * number_literal)) ;) (if_statement "if (0x30 < (long)param_2 - (long)param_1) {\n    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }\n  }" if (parenthesized_expression "(0x30 < (long)param_2 - (long)param_1)" ( (binary_expression "0x30 < (long)param_2 - (long)param_1" number_literal < (binary_expression "(long)param_2 - (long)param_1" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) )) (compound_statement "{\n    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }\n  }" { (for_statement "for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }" for ( (assignment_expression "lVar4 = (lVar3 + -2) / 2" identifier = (binary_expression "(lVar3 + -2) / 2" (parenthesized_expression "(lVar3 + -2)" ( (binary_expression "lVar3 + -2" identifier + number_literal) )) / number_literal)) ; (comma_expression "FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0" (call_expression "FUN_00404230(param_1,lVar4,lVar3)" identifier (argument_list "(param_1,lVar4,lVar3)" ( identifier , identifier , identifier ))) , (binary_expression "lVar4 != 0" identifier != number_literal)) ; (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n    }" { })) })) (if_statement "if (param_2 < param_3) {\n    do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);\n  }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n    do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);\n  }" { (do_statement "do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);" do (compound_statement "{\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    }" { (while_statement "while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }" { (expression_statement "iVar2 = FUN_003fc030(param_2,param_1);" (assignment_expression "iVar2 = FUN_003fc030(param_2,param_1)" identifier = (call_expression "FUN_003fc030(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier )))) ;) (if_statement "if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;" if (parenthesized_expression "((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5]))))" ( (binary_expression "(-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) && (parenthesized_expression "((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))" ( (parenthesized_expression "(iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5]))" ( (binary_expression "iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])" (binary_expression "iVar2 != 0" identifier != number_literal) || (parenthesized_expression "((ulong)param_1[5] <= (ulong)param_2[5])" ( (binary_expression "(ulong)param_1[5] <= (ulong)param_2[5]" (cast_expression "(ulong)param_1[5]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[5]" identifier [ number_literal ])) <= (cast_expression "(ulong)param_2[5]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_2[5]" identifier [ number_literal ]))) ))) )) ))) )) (break_statement "break;" break ;)) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "puVar5 = param_2 + 6;" (assignment_expression "puVar5 = param_2 + 6" identifier = (binary_expression "param_2 + 6" identifier + number_literal)) ;) (expression_statement "*param_2 = *param_1;" (assignment_expression "*param_2 = *param_1" (pointer_expression "*param_2" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_2[1] = uVar1;" (assignment_expression "param_2[1] = uVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "param_2[2] = param_1[2];" (assignment_expression "param_2[2] = param_1[2]" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_2[3] = uVar1;" (assignment_expression "param_2[3] = uVar1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = param_1[5];" (assignment_expression "uVar1 = param_1[5]" identifier = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "param_2[4] = param_1[4];" (assignment_expression "param_2[4] = param_1[4]" (subscript_expression "param_2[4]" identifier [ number_literal ]) = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "param_2[5] = uVar1;" (assignment_expression "param_2[5] = uVar1" (subscript_expression "param_2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00404230(param_1,0,lVar3);" (call_expression "FUN_00404230(param_1,0,lVar3)" identifier (argument_list "(param_1,0,lVar3)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_2 = puVar5;" (assignment_expression "param_2 = puVar5" identifier = identifier) ;) (if_statement "if (param_3 <= puVar5) {\n          return;\n        }" if (parenthesized_expression "(param_3 <= puVar5)" ( (binary_expression "param_3 <= puVar5" identifier <= identifier) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) })) (expression_statement "param_2 = param_2 + 6;" (assignment_expression "param_2 = param_2 + 6" identifier = (binary_expression "param_2 + 6" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) >> LIT) )) * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) )) (compound_statement { (for_statement for ( (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) / LIT)) ; (comma_expression (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) , (binary_expression IDENT != LIT)) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ))) )) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00404490(undefined8 *param_1,undefined8 *param_2,undefined8 *param_3)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  \n  lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555;\n  if (0x30 < (long)param_2 - (long)param_1) {\n    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }\n  }\n  if (param_2 < param_3) {\n    do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00404490(undefined8 *param_1,undefined8 *param_2,undefined8 *param_3)" (identifier "FUN_00404490") (parameter_list "(undefined8 *param_1,undefined8 *param_2,undefined8 *param_3)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 *param_3" (type_identifier "undefined8") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  undefined8 *puVar5;\n  \n  lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555;\n  if (0x30 < (long)param_2 - (long)param_1) {\n    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }\n  }\n  if (param_2 < param_3) {\n    do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);\n  }\n  return;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "undefined8 *puVar5;" (type_identifier "undefined8") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (expression_statement "lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555;" (assignment_expression "lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555" (identifier "lVar3") (= "=") (binary_expression "((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555" (parenthesized_expression "((long)param_2 - (long)param_1 >> 4)" (( "(") (binary_expression "(long)param_2 - (long)param_1 >> 4" (binary_expression "(long)param_2 - (long)param_1" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (- "-") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1"))) (>> ">>") (number_literal "4")) () ")")) (* "*") (number_literal "-0x5555555555555555"))) (; ";")) (if_statement "if (0x30 < (long)param_2 - (long)param_1) {\n    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }\n  }" (if "if") (parenthesized_expression "(0x30 < (long)param_2 - (long)param_1)" (( "(") (binary_expression "0x30 < (long)param_2 - (long)param_1" (number_literal "0x30") (< "<") (binary_expression "(long)param_2 - (long)param_1" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (- "-") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) () ")")) (compound_statement "{\n    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }\n  }" ({ "{") (for_statement "for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1\n        ) {\n    }" (for "for") (( "(") (assignment_expression "lVar4 = (lVar3 + -2) / 2" (identifier "lVar4") (= "=") (binary_expression "(lVar3 + -2) / 2" (parenthesized_expression "(lVar3 + -2)" (( "(") (binary_expression "lVar3 + -2" (identifier "lVar3") (+ "+") (number_literal "-2")) () ")")) (/ "/") (number_literal "2"))) (; ";") (comma_expression "FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0" (call_expression "FUN_00404230(param_1,lVar4,lVar3)" (identifier "FUN_00404230") (argument_list "(param_1,lVar4,lVar3)" (( "(") (identifier "param_1") (, ",") (identifier "lVar4") (, ",") (identifier "lVar3") () ")"))) (, ",") (binary_expression "lVar4 != 0" (identifier "lVar4") (!= "!=") (number_literal "0"))) (; ";") (assignment_expression "lVar4 = lVar4 + -1" (identifier "lVar4") (= "=") (binary_expression "lVar4 + -1" (identifier "lVar4") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    }" ({ "{") (} "}"))) (} "}"))) (if_statement "if (param_2 < param_3) {\n    do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);\n  }" (if "if") (parenthesized_expression "(param_2 < param_3)" (( "(") (binary_expression "param_2 < param_3" (identifier "param_2") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);\n  }" ({ "{") (do_statement "do {\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    } while (param_2 < param_3);" (do "do") (compound_statement "{\n      while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }\n      param_2 = param_2 + 6;\n    }" ({ "{") (while_statement "while( true ) {\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        iVar2 = FUN_003fc030(param_2,param_1);\n        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;\n        uVar1 = param_1[1];\n        puVar5 = param_2 + 6;\n        *param_2 = *param_1;\n        param_2[1] = uVar1;\n        uVar1 = param_1[3];\n        param_2[2] = param_1[2];\n        param_2[3] = uVar1;\n        uVar1 = param_1[5];\n        param_2[4] = param_1[4];\n        param_2[5] = uVar1;\n        FUN_00404230(param_1,0,lVar3);\n        param_2 = puVar5;\n        if (param_3 <= puVar5) {\n          return;\n        }\n      }" ({ "{") (expression_statement "iVar2 = FUN_003fc030(param_2,param_1);" (assignment_expression "iVar2 = FUN_003fc030(param_2,param_1)" (identifier "iVar2") (= "=") (call_expression "FUN_003fc030(param_2,param_1)" (identifier "FUN_003fc030") (argument_list "(param_2,param_1)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;" (if "if") (parenthesized_expression "((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5]))))" (( "(") (binary_expression "(-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))" (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (&& "&&") (parenthesized_expression "((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))" (( "(") (parenthesized_expression "(iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5]))" (( "(") (binary_expression "iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])" (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "((ulong)param_1[5] <= (ulong)param_2[5])" (( "(") (binary_expression "(ulong)param_1[5] <= (ulong)param_2[5]" (cast_expression "(ulong)param_1[5]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (<= "<=") (cast_expression "(ulong)param_2[5]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")))) () ")"))) () ")")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" (identifier "uVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar5 = param_2 + 6;" (assignment_expression "puVar5 = param_2 + 6" (identifier "puVar5") (= "=") (binary_expression "param_2 + 6" (identifier "param_2") (+ "+") (number_literal "6"))) (; ";")) (expression_statement "*param_2 = *param_1;" (assignment_expression "*param_2 = *param_1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_2[1] = uVar1;" (assignment_expression "param_2[1] = uVar1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" (identifier "uVar1") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "param_2[2] = param_1[2];" (assignment_expression "param_2[2] = param_1[2]" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_2[3] = uVar1;" (assignment_expression "param_2[3] = uVar1" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = param_1[5];" (assignment_expression "uVar1 = param_1[5]" (identifier "uVar1") (= "=") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "param_2[4] = param_1[4];" (assignment_expression "param_2[4] = param_1[4]" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "param_2[5] = uVar1;" (assignment_expression "param_2[5] = uVar1" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "FUN_00404230(param_1,0,lVar3);" (call_expression "FUN_00404230(param_1,0,lVar3)" (identifier "FUN_00404230") (argument_list "(param_1,0,lVar3)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (identifier "lVar3") () ")"))) (; ";")) (expression_statement "param_2 = puVar5;" (assignment_expression "param_2 = puVar5" (identifier "param_2") (= "=") (identifier "puVar5")) (; ";")) (if_statement "if (param_3 <= puVar5) {\n          return;\n        }" (if "if") (parenthesized_expression "(param_3 <= puVar5)" (( "(") (binary_expression "param_3 <= puVar5" (identifier "param_3") (<= "<=") (identifier "puVar5")) () ")")) (compound_statement "{\n          return;\n        }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "param_2 = param_2 + 6;" (assignment_expression "param_2 = param_2 + 6" (identifier "param_2") (= "=") (binary_expression "param_2 + 6" (identifier "param_2") (+ "+") (number_literal "6"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 < param_3)" (( "(") (binary_expression "param_2 < param_3" (identifier "param_2") (< "<") (identifier "param_3")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* DWARF original name: __heap_select<__gnu_cxx::__normal_iterator<gold::Output_reloc<4, true, 64,
   false>*, std::vector<gold::Output_reloc<4, true, 64, false>, std::allocator<gold::Output_reloc<4,
   true, 64, false> > > >, __gnu_cxx::__ops::_Iter_comp_iter<gold::Output_data_reloc_base<4, true,
   64, false>::Sort_relocs_comparison> > */

void std::
     __heap_select<__gnu_cxx::__normal_iterator<gold::var_1<4,_true,_64,var_4>*,_std::vector<gold::var_1<4,_true,_64,var_4>,_std::allocator<gold::var_1<4,_true,_64,var_4>var_6>var_6>var_6>,___gnu_cxx::__ops::_Iter_comp_iter<gold::var_3<4,_true,_64,var_4>::var_5>var_6>
               (var_1<9,_true,_64,var_4> *__first,var_1<9,_true,_64,var_4> *var_8
               ,var_1<9,_true,_64,var_4> *var_9)

{
  anon_union_8_2_238bdeaa_for_u2_ aVar1;
  type_1 aVar2;
  var_1<9,_true,_64,var_4> *pOVar3;
  type_2 uVar4;
  type_3 uVar5;
  int var_11;
  long var_2;
  long var_7;
  type_4 __value;
  
  var_2 = ((long)var_8 - (long)__first >> 4) * -0x5555555555555555;
  if (0x30 < (long)var_8 - (long)__first) {
    for (var_7 = (var_2 + -2) / 2;
        __adjust_heap<__gnu_cxx::__normal_iterator<gold::var_1<4,_true,_64,var_4>*,_std::vector<gold::var_1<4,_true,_64,var_4>,_std::allocator<gold::var_1<4,_true,_64,var_4>var_6>var_6>var_6>,_long_int,_gold::var_1<4,_true,_64,var_4>,___gnu_cxx::__ops::_Iter_comp_iter<gold::var_3<4,_true,_64,var_4>::var_5>var_6>
                  (__first,var_7,var_2), var_7 != 0; var_7 = var_7 + -1) {
    }
  }
  if (var_8 < var_9) {
    do {
      while( true ) {
        var_11 = gold::var_1<9,_true,_64,var_4>::var_10(var_8,__first);
        if ((-1 < var_11) && ((var_11 != 0 || (__first[1].u1_.relobj <= var_8[1].u1_.relobj))))
        break;
        aVar1 = __first->u2_;
        pOVar3 = var_8 + 1;
        var_8->u1_ = __first->u1_;
        var_8->u2_ = aVar1;
        uVar4 = __first->local_sym_index_;
        uVar5 = *(type_3 *)&__first->field_0x1c;
        var_8->address_ = __first->address_;
        var_8->local_sym_index_ = uVar4;
        *(type_3 *)&var_8->field_0x1c = uVar5;
        uVar5 = *(type_3 *)&__first->field_0x24;
        aVar2 = __first[1].u1_;
        var_8->shndx_ = __first->shndx_;
        *(type_3 *)&var_8->field_0x24 = uVar5;
        var_8[1].u1_ = aVar2;
        __adjust_heap<__gnu_cxx::__normal_iterator<gold::var_1<4,_true,_64,var_4>*,_std::vector<gold::var_1<4,_true,_64,var_4>,_std::allocator<gold::var_1<4,_true,_64,var_4>var_6>var_6>var_6>,_long_int,_gold::var_1<4,_true,_64,var_4>,___gnu_cxx::__ops::_Iter_comp_iter<gold::var_3<4,_true,_64,var_4>::var_5>var_6>
                  (__first,0,var_2);
        var_8 = (var_1<9,_true,_64,var_4> *)&pOVar3->u2_;
        if (var_9 <= &pOVar3->u2_) {
          return;
        }
      }
      var_8 = (var_1<9,_true,_64,var_4> *)&var_8[1].u2_;
    } while (var_8 < var_9);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))) right: (number_literal))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))) consequence: (compound_statement (for_statement initializer: (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) condition: (comma_expression left: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))) right: (binary_expression left: (identifier) right: (number_literal))) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))))))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (return_statement))))

void MASKED(undefined8 *param_1,undefined8 *param_2,undefined8 *param_3)

{
  undefined8 uVar1;
  int iVar2;
  long lVar3;
  long lVar4;
  undefined8 *puVar5;
  
  lVar3 = ((long)param_2 - (long)param_1 >> 4) * -0x5555555555555555;
  if (0x30 < (long)param_2 - (long)param_1) {
    for (lVar4 = (lVar3 + -2) / 2; FUN_00404230(param_1,lVar4,lVar3), lVar4 != 0; lVar4 = lVar4 + -1
        ) {
    }
  }
  if (param_2 < param_3) {
    do {
      while( true ) {
        iVar2 = FUN_003fc030(param_2,param_1);
        if ((-1 < iVar2) && ((iVar2 != 0 || ((ulong)param_1[5] <= (ulong)param_2[5])))) break;
        uVar1 = param_1[1];
        puVar5 = param_2 + 6;
        *param_2 = *param_1;
        param_2[1] = uVar1;
        uVar1 = param_1[3];
        param_2[2] = param_1[2];
        param_2[3] = uVar1;
        uVar1 = param_1[5];
        param_2[4] = param_1[4];
        param_2[5] = uVar1;
        FUN_00404230(param_1,0,lVar3);
        param_2 = puVar5;
        if (param_3 <= puVar5) {
          return;
        }
      }
      param_2 = param_2 + 6;
    } while (param_2 < param_3);
  }
  return;
}

