
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original name: __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_segment**,
   std::vector<gold::Output_segment*> >, gold::Output_segment*,
   __gnu_cxx::__ops::_Val_comp_iter<gold::Layout::Compare_segments> > */

__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>
 std::
 __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*>_>,_gold::Output_segment*,___gnu_cxx::__ops::_Val_comp_iter<gold::Layout::Compare_segments>_>
           (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>
            __first,__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>
                    __last,Output_segment **__val,
           _Val_comp_iter<gold::Layout::Compare_segments> __comp)

{
  bool bVar1;
  long lVar2;
  long lVar3;
  
  lVar2 = (long)__last._M_current - (long)__first._M_current >> 3;
  lVar3 = (long)__last._M_current - (long)__first._M_current;
  do {
    if (lVar3 < 1) {
      return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>
              )__first._M_current;
    }
    while( true ) {
      lVar3 = lVar2 >> 1;
      bVar1 = gold::Layout::segment_precedes
                        ((Layout *)__comp._M_comp.layout_,*__val,__first._M_current[lVar3]);
      if (!bVar1) break;
      lVar2 = lVar3;
      if (lVar3 < 1) {
        return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>
                )__first._M_current;
      }
    }
    __first._M_current = __first._M_current + lVar3 + 1;
    lVar2 = (lVar2 - lVar3) + -1;
    lVar3 = lVar2;
  } while( true );
}



undefined8 * FUN_001b91d0(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)

{
  char cVar1;
  long lVar2;
  long lVar3;
  
  lVar2 = param_2 - (long)param_1 >> 3;
  lVar3 = param_2 - (long)param_1;
  do {
    if (lVar3 < 1) {
      return param_1;
    }
    while( true ) {
      lVar3 = lVar2 >> 1;
      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);
      if (cVar1 == '\0') break;
      lVar2 = lVar3;
      if (lVar3 < 1) {
        return param_1;
      }
    }
    param_1 = param_1 + lVar3 + 1;
    lVar2 = (lVar2 - lVar3) + -1;
    lVar3 = lVar2;
  } while( true );
}


PUSH R15
SUB RSI,RDI
PUSH R14
MOV R14,RDX
PUSH R13
MOV R13,RCX
PUSH R12
MOV R12,RDI
PUSH RBP
PUSH RBX
MOV RBX,RSI
SAR RBX,0x3
SUB RSP,0x8
TEST RSI,RSI
JG 0x001b9210
JMP 0x001b9234
SUB RBX,RBP
LEA R12,[R15 + 0x8]
SUB RBX,0x1
TEST RBX,RBX
JLE 0x001b9234
MOV RBP,RBX
MOV RSI,qword ptr [R14]
MOV RDI,R13
SAR RBP,0x1
LEA R15,[R12 + RBP*0x8]
MOV RDX,qword ptr [R15]
CALL 0x001a5c70
TEST AL,AL
JZ 0x001b9200
MOV RBX,RBP
TEST RBX,RBX
JG 0x001b9210
ADD RSP,0x8
MOV RAX,R12
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "undefined8 * FUN_001b91d0(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)\n\n{\n  char cVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2 - (long)param_1 >> 3;\n  lVar3 = param_2 - (long)param_1;\n  do {\n    if (lVar3 < 1) {\n      return param_1;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }\n    param_1 = param_1 + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  } while( true );\n}\n\n" (function_definition "undefined8 * FUN_001b91d0(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)\n\n{\n  char cVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2 - (long)param_1 >> 3;\n  lVar3 = param_2 - (long)param_1;\n  do {\n    if (lVar3 < 1) {\n      return param_1;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }\n    param_1 = param_1 + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  } while( true );\n}" type_identifier (pointer_declarator "* FUN_001b91d0(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)" * (function_declarator "FUN_001b91d0(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)" identifier (parameter_list "(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined8 param_4" type_identifier identifier) )))) (compound_statement "{\n  char cVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2 - (long)param_1 >> 3;\n  lVar3 = param_2 - (long)param_1;\n  do {\n    if (lVar3 < 1) {\n      return param_1;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }\n    param_1 = param_1 + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = param_2 - (long)param_1 >> 3;" (assignment_expression "lVar2 = param_2 - (long)param_1 >> 3" identifier = (binary_expression "param_2 - (long)param_1 >> 3" (binary_expression "param_2 - (long)param_1" identifier - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal)) ;) (expression_statement "lVar3 = param_2 - (long)param_1;" (assignment_expression "lVar3 = param_2 - (long)param_1" identifier = (binary_expression "param_2 - (long)param_1" identifier - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (do_statement "do {\n    if (lVar3 < 1) {\n      return param_1;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }\n    param_1 = param_1 + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  } while( true );" do (compound_statement "{\n    if (lVar3 < 1) {\n      return param_1;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }\n    param_1 = param_1 + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  }" { (if_statement "if (lVar3 < 1) {\n      return param_1;\n    }" if (parenthesized_expression "(lVar3 < 1)" ( (binary_expression "lVar3 < 1" identifier < number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (while_statement "while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }" { (expression_statement "lVar3 = lVar2 >> 1;" (assignment_expression "lVar3 = lVar2 >> 1" identifier = (binary_expression "lVar2 >> 1" identifier >> number_literal)) ;) (expression_statement "cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);" (assignment_expression "cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3])" identifier = (call_expression "FUN_001a5c70(param_4,*param_3,param_1[lVar3])" identifier (argument_list "(param_4,*param_3,param_1[lVar3])" ( identifier , (pointer_expression "*param_3" * identifier) , (subscript_expression "param_1[lVar3]" identifier [ identifier ]) )))) ;) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "lVar2 = lVar3;" (assignment_expression "lVar2 = lVar3" identifier = identifier) ;) (if_statement "if (lVar3 < 1) {\n        return param_1;\n      }" if (parenthesized_expression "(lVar3 < 1)" ( (binary_expression "lVar3 < 1" identifier < number_literal) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "param_1 = param_1 + lVar3 + 1;" (assignment_expression "param_1 = param_1 + lVar3 + 1" identifier = (binary_expression "param_1 + lVar3 + 1" (binary_expression "param_1 + lVar3" identifier + identifier) + number_literal)) ;) (expression_statement "lVar2 = (lVar2 - lVar3) + -1;" (assignment_expression "lVar2 = (lVar2 - lVar3) + -1" identifier = (binary_expression "(lVar2 - lVar3) + -1" (parenthesized_expression "(lVar2 - lVar3)" ( (binary_expression "lVar2 - lVar3" identifier - identifier) )) + number_literal)) ;) (expression_statement "lVar3 = lVar2;" (assignment_expression "lVar3 = lVar2" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original name: __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_segment**,\n   std::vector<gold::Output_segment*> >, gold::Output_segment*,\n   __gnu_cxx::__ops::_Val_comp_iter<gold::Layout::Compare_segments> > */\n\n__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*>_>,_gold::Output_segment*,___gnu_cxx::__ops::_Val_comp_iter<gold::Layout::Compare_segments>_>\n           (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n            __first,__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                    __last,Output_segment **__val,\n           _Val_comp_iter<gold::Layout::Compare_segments> __comp)\n\n{\n  bool bVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = (long)__last._M_current - (long)__first._M_current >> 3;\n  lVar3 = (long)__last._M_current - (long)__first._M_current;\n  do {\n    if (lVar3 < 1) {\n      return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n              )__first._M_current;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      bVar1 = gold::Layout::segment_precedes\n                        ((Layout *)__comp._M_comp.layout_,*__val,__first._M_current[lVar3]);\n      if (!bVar1) break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                )__first._M_current;\n      }\n    }\n    __first._M_current = __first._M_current + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  } while( true );\n}\n\n" comment comment comment (ERROR "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*>_>,_gold::Output_segment*,___gnu_cxx::__ops::_Val_comp_iter<gold::Layout::Compare_segments>_>\n           (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n            __first,__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                    __last,Output_segment **__val,\n           _Val_comp_iter<gold::Layout::Compare_segments> __comp)" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*>_>,_gold::Output_segment*,___gnu_cxx::__ops::_Val_comp_iter<gold::Layout::Compare_segments>_>\n           (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n            __first,__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                    __last,Output_segment **__val,\n           _Val_comp_iter<gold::Layout::Compare_segments> __comp)" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*>_>,_gold::Output_segment*,___gnu_cxx::__ops::_Val_comp_iter<gold::Layout::Compare_segments>_" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*>_>,_gold::Output_segment*,___gnu_cxx::__ops::_Val_comp_iter<gold" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*>_>,_gold::Output_segment*,___gnu_cxx" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*>_>,_gold" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*>_" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_segment**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_segment**,_std" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n std::\n __upper_bound<__gnu_cxx" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n std" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_segment**,_std" (binary_expression "__normal_iterator<gold" identifier < identifier) (ERROR "::Output_segment" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR ">" >) identifier) > identifier) > identifier) (ERROR "::\n __upper_bound" : : identifier) < identifier) (ERROR "::__normal_iterator" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR ">" >) identifier) > (ERROR "," ,) identifier) (ERROR "::Output_segment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::__ops::_Val_comp_iter" : : identifier : : identifier) < identifier) (ERROR "::Layout::Compare_segments" : : identifier : : identifier) > identifier) > (parenthesized_expression "(__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n            __first,__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                    __last,Output_segment **__val,\n           _Val_comp_iter<gold::Layout::Compare_segments> __comp)" ( (ERROR "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n            __first,__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                    __last,Output_segment **__val,\n           _Val_comp_iter<gold::Layout::" (comma_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n            __first,__normal_iterator<gold" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n            __first" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_segment**,_std" (binary_expression "__normal_iterator<gold" identifier < identifier) (ERROR "::Output_segment" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR ">" >) identifier) > identifier) > identifier) , (binary_expression "__normal_iterator<gold" identifier < identifier)) : : (type_descriptor "Output_segment**" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) , identifier : : (binary_expression "vector<gold" identifier < identifier) : : (type_descriptor "Output_segment*" type_identifier (abstract_pointer_declarator "*" *)) , identifier : : (binary_expression "allocator<gold" identifier < identifier) : : (comma_expression "Output_segment*>_>_>\n                    __last,Output_segment **__val,\n           _Val_comp_iter<gold" (binary_expression "Output_segment*>_>_>\n                    __last" (binary_expression "Output_segment*>_>_" (binary_expression "Output_segment*>_" identifier * (ERROR ">" >) identifier) > identifier) > identifier) , (comma_expression "Output_segment **__val,\n           _Val_comp_iter<gold" (binary_expression "Output_segment **__val" identifier * (pointer_expression "*__val" * identifier)) , (binary_expression "_Val_comp_iter<gold" identifier < identifier))) : : identifier : :) (binary_expression "Compare_segments> __comp" identifier > identifier) )))) (compound_statement "{\n  bool bVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = (long)__last._M_current - (long)__first._M_current >> 3;\n  lVar3 = (long)__last._M_current - (long)__first._M_current;\n  do {\n    if (lVar3 < 1) {\n      return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n              )__first._M_current;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      bVar1 = gold::Layout::segment_precedes\n                        ((Layout *)__comp._M_comp.layout_,*__val,__first._M_current[lVar3]);\n      if (!bVar1) break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                )__first._M_current;\n      }\n    }\n    __first._M_current = __first._M_current + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  } while( true );\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = (long)__last._M_current - (long)__first._M_current >> 3;" (assignment_expression "lVar2 = (long)__last._M_current - (long)__first._M_current >> 3" identifier = (binary_expression "(long)__last._M_current - (long)__first._M_current >> 3" (binary_expression "(long)__last._M_current - (long)__first._M_current" (cast_expression "(long)__last._M_current" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "__last._M_current" identifier . field_identifier)) - (cast_expression "(long)__first._M_current" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "__first._M_current" identifier . field_identifier))) >> number_literal)) ;) (expression_statement "lVar3 = (long)__last._M_current - (long)__first._M_current;" (assignment_expression "lVar3 = (long)__last._M_current - (long)__first._M_current" identifier = (binary_expression "(long)__last._M_current - (long)__first._M_current" (cast_expression "(long)__last._M_current" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "__last._M_current" identifier . field_identifier)) - (cast_expression "(long)__first._M_current" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "__first._M_current" identifier . field_identifier)))) ;) (do_statement "do {\n    if (lVar3 < 1) {\n      return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n              )__first._M_current;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      bVar1 = gold::Layout::segment_precedes\n                        ((Layout *)__comp._M_comp.layout_,*__val,__first._M_current[lVar3]);\n      if (!bVar1) break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                )__first._M_current;\n      }\n    }\n    __first._M_current = __first._M_current + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  } while( true );" do (compound_statement "{\n    if (lVar3 < 1) {\n      return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n              )__first._M_current;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      bVar1 = gold::Layout::segment_precedes\n                        ((Layout *)__comp._M_comp.layout_,*__val,__first._M_current[lVar3]);\n      if (!bVar1) break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                )__first._M_current;\n      }\n    }\n    __first._M_current = __first._M_current + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  }" { (if_statement "if (lVar3 < 1) {\n      return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n              )__first._M_current;\n    }" if (parenthesized_expression "(lVar3 < 1)" ( (binary_expression "lVar3 < 1" identifier < number_literal) )) (compound_statement "{\n      return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n              )__first._M_current;\n    }" { (return_statement "return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n              )__first._M_current;" return (parenthesized_expression "(__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n              )__first._M_current" ( (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n              )__first._M_current" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_segment**,_std" (binary_expression "__normal_iterator<gold" identifier < identifier) (ERROR "::Output_segment" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR ">" >) identifier) > identifier) > (ERROR ")" )) (field_expression "__first._M_current" identifier . field_identifier)) )) ;) })) (while_statement "while( true ) {\n      lVar3 = lVar2 >> 1;\n      bVar1 = gold::Layout::segment_precedes\n                        ((Layout *)__comp._M_comp.layout_,*__val,__first._M_current[lVar3]);\n      if (!bVar1) break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                )__first._M_current;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      lVar3 = lVar2 >> 1;\n      bVar1 = gold::Layout::segment_precedes\n                        ((Layout *)__comp._M_comp.layout_,*__val,__first._M_current[lVar3]);\n      if (!bVar1) break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                )__first._M_current;\n      }\n    }" { (expression_statement "lVar3 = lVar2 >> 1;" (assignment_expression "lVar3 = lVar2 >> 1" identifier = (binary_expression "lVar2 >> 1" identifier >> number_literal)) ;) (ERROR "bVar1 = gold::" (assignment_expression "bVar1 = gold" identifier = identifier) : :) (labeled_statement "Layout::segment_precedes\n                        ((Layout *)__comp._M_comp.layout_,*__val,__first._M_current[lVar3]);" statement_identifier : (ERROR ":" :) (expression_statement "segment_precedes\n                        ((Layout *)__comp._M_comp.layout_,*__val,__first._M_current[lVar3]);" (call_expression "segment_precedes\n                        ((Layout *)__comp._M_comp.layout_,*__val,__first._M_current[lVar3])" identifier (argument_list "((Layout *)__comp._M_comp.layout_,*__val,__first._M_current[lVar3])" ( (cast_expression "(Layout *)__comp._M_comp.layout_" ( (type_descriptor "Layout *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__comp._M_comp.layout_" (field_expression "__comp._M_comp" identifier . field_identifier) . field_identifier)) , (pointer_expression "*__val" * identifier) , (subscript_expression "__first._M_current[lVar3]" (field_expression "__first._M_current" identifier . field_identifier) [ identifier ]) ))) ;)) (if_statement "if (!bVar1) break;" if (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) (break_statement "break;" break ;)) (expression_statement "lVar2 = lVar3;" (assignment_expression "lVar2 = lVar3" identifier = identifier) ;) (if_statement "if (lVar3 < 1) {\n        return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                )__first._M_current;\n      }" if (parenthesized_expression "(lVar3 < 1)" ( (binary_expression "lVar3 < 1" identifier < number_literal) )) (compound_statement "{\n        return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                )__first._M_current;\n      }" { (return_statement "return (__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                )__first._M_current;" return (parenthesized_expression "(__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                )__first._M_current" ( (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_>\n                )__first._M_current" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>_" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold::Output_segment*>_" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std::allocator<gold" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold::Output_segment*,_std" (binary_expression "__normal_iterator<gold::Output_segment**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_segment**,_std" (binary_expression "__normal_iterator<gold" identifier < identifier) (ERROR "::Output_segment" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR ">" >) identifier) > identifier) > (ERROR ")" )) (field_expression "__first._M_current" identifier . field_identifier)) )) ;) })) })) (expression_statement "__first._M_current = __first._M_current + lVar3 + 1;" (assignment_expression "__first._M_current = __first._M_current + lVar3 + 1" (field_expression "__first._M_current" identifier . field_identifier) = (binary_expression "__first._M_current + lVar3 + 1" (binary_expression "__first._M_current + lVar3" (field_expression "__first._M_current" identifier . field_identifier) + identifier) + number_literal)) ;) (expression_statement "lVar2 = (lVar2 - lVar3) + -1;" (assignment_expression "lVar2 = (lVar2 - lVar3) + -1" identifier = (binary_expression "(lVar2 - lVar3) + -1" (parenthesized_expression "(lVar2 - lVar3)" ( (binary_expression "lVar2 - lVar3" identifier - identifier) )) + number_literal)) ;) (expression_statement "lVar3 = lVar2;" (assignment_expression "lVar3 = lVar2" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) }))
(translation_unit "undefined8 * FUN_001b91d0(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)\n\n{\n  char cVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2 - (long)param_1 >> 3;\n  lVar3 = param_2 - (long)param_1;\n  do {\n    if (lVar3 < 1) {\n      return param_1;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }\n    param_1 = param_1 + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  } while( true );\n}\n\n" (function_definition "undefined8 * FUN_001b91d0(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)\n\n{\n  char cVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2 - (long)param_1 >> 3;\n  lVar3 = param_2 - (long)param_1;\n  do {\n    if (lVar3 < 1) {\n      return param_1;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }\n    param_1 = param_1 + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  } while( true );\n}" type_identifier (pointer_declarator "* FUN_001b91d0(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)" * (function_declarator "FUN_001b91d0(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)" identifier (parameter_list "(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined8 param_4" type_identifier identifier) )))) (compound_statement "{\n  char cVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2 - (long)param_1 >> 3;\n  lVar3 = param_2 - (long)param_1;\n  do {\n    if (lVar3 < 1) {\n      return param_1;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }\n    param_1 = param_1 + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = param_2 - (long)param_1 >> 3;" (assignment_expression "lVar2 = param_2 - (long)param_1 >> 3" identifier = (binary_expression "param_2 - (long)param_1 >> 3" (binary_expression "param_2 - (long)param_1" identifier - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal)) ;) (expression_statement "lVar3 = param_2 - (long)param_1;" (assignment_expression "lVar3 = param_2 - (long)param_1" identifier = (binary_expression "param_2 - (long)param_1" identifier - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (do_statement "do {\n    if (lVar3 < 1) {\n      return param_1;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }\n    param_1 = param_1 + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  } while( true );" do (compound_statement "{\n    if (lVar3 < 1) {\n      return param_1;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }\n    param_1 = param_1 + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  }" { (if_statement "if (lVar3 < 1) {\n      return param_1;\n    }" if (parenthesized_expression "(lVar3 < 1)" ( (binary_expression "lVar3 < 1" identifier < number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (while_statement "while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }" { (expression_statement "lVar3 = lVar2 >> 1;" (assignment_expression "lVar3 = lVar2 >> 1" identifier = (binary_expression "lVar2 >> 1" identifier >> number_literal)) ;) (expression_statement "cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);" (assignment_expression "cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3])" identifier = (call_expression "FUN_001a5c70(param_4,*param_3,param_1[lVar3])" identifier (argument_list "(param_4,*param_3,param_1[lVar3])" ( identifier , (pointer_expression "*param_3" * identifier) , (subscript_expression "param_1[lVar3]" identifier [ identifier ]) )))) ;) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "lVar2 = lVar3;" (assignment_expression "lVar2 = lVar3" identifier = identifier) ;) (if_statement "if (lVar3 < 1) {\n        return param_1;\n      }" if (parenthesized_expression "(lVar3 < 1)" ( (binary_expression "lVar3 < 1" identifier < number_literal) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "param_1 = param_1 + lVar3 + 1;" (assignment_expression "param_1 = param_1 + lVar3 + 1" identifier = (binary_expression "param_1 + lVar3 + 1" (binary_expression "param_1 + lVar3" identifier + identifier) + number_literal)) ;) (expression_statement "lVar2 = (lVar2 - lVar3) + -1;" (assignment_expression "lVar2 = (lVar2 - lVar3) + -1" identifier = (binary_expression "(lVar2 - lVar3) + -1" (parenthesized_expression "(lVar2 - lVar3)" ( (binary_expression "lVar2 - lVar3" identifier - identifier) )) + number_literal)) ;) (expression_statement "lVar3 = lVar2;" (assignment_expression "lVar3 = lVar2" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) , (subscript_expression IDENT [ IDENT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined8 * FUN_001b91d0(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)\n\n{\n  char cVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2 - (long)param_1 >> 3;\n  lVar3 = param_2 - (long)param_1;\n  do {\n    if (lVar3 < 1) {\n      return param_1;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }\n    param_1 = param_1 + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  } while( true );\n}" (type_identifier "undefined8") (pointer_declarator "* FUN_001b91d0(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)" (* "*") (function_declarator "FUN_001b91d0(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)" (identifier "FUN_001b91d0") (parameter_list "(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "undefined8 *param_3" (type_identifier "undefined8") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) () ")")))) (compound_statement "{\n  char cVar1;\n  long lVar2;\n  long lVar3;\n  \n  lVar2 = param_2 - (long)param_1 >> 3;\n  lVar3 = param_2 - (long)param_1;\n  do {\n    if (lVar3 < 1) {\n      return param_1;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }\n    param_1 = param_1 + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  } while( true );\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (expression_statement "lVar2 = param_2 - (long)param_1 >> 3;" (assignment_expression "lVar2 = param_2 - (long)param_1 >> 3" (identifier "lVar2") (= "=") (binary_expression "param_2 - (long)param_1 >> 3" (binary_expression "param_2 - (long)param_1" (identifier "param_2") (- "-") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1"))) (>> ">>") (number_literal "3"))) (; ";")) (expression_statement "lVar3 = param_2 - (long)param_1;" (assignment_expression "lVar3 = param_2 - (long)param_1" (identifier "lVar3") (= "=") (binary_expression "param_2 - (long)param_1" (identifier "param_2") (- "-") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";")) (do_statement "do {\n    if (lVar3 < 1) {\n      return param_1;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }\n    param_1 = param_1 + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  } while( true );" (do "do") (compound_statement "{\n    if (lVar3 < 1) {\n      return param_1;\n    }\n    while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }\n    param_1 = param_1 + lVar3 + 1;\n    lVar2 = (lVar2 - lVar3) + -1;\n    lVar3 = lVar2;\n  }" ({ "{") (if_statement "if (lVar3 < 1) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "(lVar3 < 1)" (( "(") (binary_expression "lVar3 < 1" (identifier "lVar3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (while_statement "while( true ) {\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      lVar3 = lVar2 >> 1;\n      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);\n      if (cVar1 == '\0') break;\n      lVar2 = lVar3;\n      if (lVar3 < 1) {\n        return param_1;\n      }\n    }" ({ "{") (expression_statement "lVar3 = lVar2 >> 1;" (assignment_expression "lVar3 = lVar2 >> 1" (identifier "lVar3") (= "=") (binary_expression "lVar2 >> 1" (identifier "lVar2") (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);" (assignment_expression "cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3])" (identifier "cVar1") (= "=") (call_expression "FUN_001a5c70(param_4,*param_3,param_1[lVar3])" (identifier "FUN_001a5c70") (argument_list "(param_4,*param_3,param_1[lVar3])" (( "(") (identifier "param_4") (, ",") (pointer_expression "*param_3" (* "*") (identifier "param_3")) (, ",") (subscript_expression "param_1[lVar3]" (identifier "param_1") ([ "[") (identifier "lVar3") (] "]")) () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') break;" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar2 = lVar3;" (assignment_expression "lVar2 = lVar3" (identifier "lVar2") (= "=") (identifier "lVar3")) (; ";")) (if_statement "if (lVar3 < 1) {\n        return param_1;\n      }" (if "if") (parenthesized_expression "(lVar3 < 1)" (( "(") (binary_expression "lVar3 < 1" (identifier "lVar3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        return param_1;\n      }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (expression_statement "param_1 = param_1 + lVar3 + 1;" (assignment_expression "param_1 = param_1 + lVar3 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + lVar3 + 1" (binary_expression "param_1 + lVar3" (identifier "param_1") (+ "+") (identifier "lVar3")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "lVar2 = (lVar2 - lVar3) + -1;" (assignment_expression "lVar2 = (lVar2 - lVar3) + -1" (identifier "lVar2") (= "=") (binary_expression "(lVar2 - lVar3) + -1" (parenthesized_expression "(lVar2 - lVar3)" (( "(") (binary_expression "lVar2 - lVar3" (identifier "lVar2") (- "-") (identifier "lVar3")) () ")")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "lVar3 = lVar2;" (assignment_expression "lVar3 = lVar2" (identifier "lVar3") (= "=") (identifier "lVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original name: __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_segment**,
   std::vector<gold::Output_segment*> >, gold::Output_segment*,
   __gnu_cxx::__ops::_Val_comp_iter<gold::Layout::Compare_segments> > */

var_2<var_3::Output_segment**,var_4::vector<var_3::Output_segment*,var_4::allocator<var_3::Output_segment*>var_5>var_5>
 std::
 __upper_bound<__gnu_cxx::var_2<var_3::Output_segment**,var_4::vector<var_3::Output_segment*>var_5>,_gold::Output_segment*,___gnu_cxx::__ops::_Val_comp_iter<var_3::type_1::Compare_segments>var_5>
           (var_2<var_3::Output_segment**,var_4::vector<var_3::Output_segment*,var_4::allocator<var_3::Output_segment*>var_5>var_5>
            __first,var_2<var_3::Output_segment**,var_4::vector<var_3::Output_segment*,var_4::allocator<var_3::Output_segment*>var_5>var_5>
                    __last,Output_segment **__val,
           _Val_comp_iter<var_3::type_1::Compare_segments> __comp)

{
  bool bVar1;
  long var_6;
  long var_1;
  
  var_6 = (long)__last._M_current - (long)__first._M_current >> 3;
  var_1 = (long)__last._M_current - (long)__first._M_current;
  do {
    if (var_1 < 1) {
      return (var_2<var_3::Output_segment**,var_4::vector<var_3::Output_segment*,var_4::allocator<var_3::Output_segment*>var_5>var_5>
              )__first._M_current;
    }
    while( true ) {
      var_1 = var_6 >> 1;
      bVar1 = var_3::Layout::var_7
                        ((type_1 *)__comp._M_comp.layout_,*__val,__first._M_current[var_1]);
      if (!bVar1) break;
      var_6 = var_1;
      if (var_1 < 1) {
        return (var_2<var_3::Output_segment**,var_4::vector<var_3::Output_segment*,var_4::allocator<var_3::Output_segment*>var_5>var_5>
                )__first._M_current;
      }
    }
    __first._M_current = __first._M_current + var_1 + 1;
    var_6 = (var_6 - var_1) + -1;
    var_1 = var_6;
  } while( true );
}


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

undefined8 * MASKED(undefined8 *param_1,long param_2,undefined8 *param_3,undefined8 param_4)

{
  char cVar1;
  long lVar2;
  long lVar3;
  
  lVar2 = param_2 - (long)param_1 >> 3;
  lVar3 = param_2 - (long)param_1;
  do {
    if (lVar3 < 1) {
      return param_1;
    }
    while( true ) {
      lVar3 = lVar2 >> 1;
      cVar1 = FUN_001a5c70(param_4,*param_3,param_1[lVar3]);
      if (cVar1 == '\0') break;
      lVar2 = lVar3;
      if (lVar3 < 1) {
        return param_1;
      }
    }
    param_1 = param_1 + lVar3 + 1;
    lVar2 = (lVar2 - lVar3) + -1;
    lVar3 = lVar2;
  } while( true );
}

