
/* WARNING: Unknown calling convention */
/* DWARF original name: __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_section**,
   std::vector<gold::Output_section*> >, gold::Output_section*,
   __gnu_cxx::__ops::_Val_comp_iter<gold::Sort_output_sections> > */

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

{
  _func_int_varargs ***ppp_Var1;
  bool bVar2;
  int iVar3;
  int iVar4;
  Output_section **in_stack_00000004;
  
  if (0 < (int)__last._M_current - (int)__first._M_current) {
    iVar3 = (int)__last._M_current - (int)__first._M_current >> 2;
    do {
      while( true ) {
        iVar4 = iVar3 >> 1;
        ppp_Var1 = &(((Output_section *)__first._M_current)->super_Output_data)._vptr_Output_data +
                   iVar4;
        bVar2 = gold::Sort_output_sections::operator()
                          (&__comp._M_comp,*__val,(Output_section *)*ppp_Var1);
        if (!bVar2) break;
        iVar3 = iVar4;
        if (iVar4 < 1) goto LAB_00164ebd;
      }
      __first._M_current = (Output_section **)(ppp_Var1 + 1);
      iVar3 = (iVar3 - iVar4) + -1;
    } while (0 < iVar3);
  }
LAB_00164ebd:
  *in_stack_00000004 = (Output_section *)__first._M_current;
  return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>
          )in_stack_00000004;
}



void FUN_00164e60(int *param_1,undefined4 *param_2,int param_3,undefined4 *param_4)

{
  char cVar1;
  int iVar2;
  int iVar3;
  
  if (0 < param_3 - (int)param_2) {
    iVar2 = param_3 - (int)param_2 >> 2;
    do {
      while( true ) {
        iVar3 = iVar2 >> 1;
        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);
        if (cVar1 == '\0') break;
        iVar2 = iVar3;
        if (iVar3 < 1) goto LAB_00164ebd;
      }
      param_2 = param_2 + iVar3 + 1;
      iVar2 = (iVar2 - iVar3) + -1;
    } while (0 < iVar2);
  }
LAB_00164ebd:
  *param_1 = (int)param_2;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [ESP + 0x38]
SUB EAX,ESI
MOV EBX,EAX
SAR EBX,0x2
TEST EAX,EAX
JLE 0x00164ebd
LEA EAX,[ESP + 0x40]
MOV dword ptr [ESP + 0xc],EAX
JMP 0x00164e94
SUB EBX,EDI
LEA ESI,[EBP + 0x4]
SUB EBX,0x1
TEST EBX,EBX
JLE 0x00164ebd
MOV EDI,EBX
SUB ESP,0x4
SAR EDI,0x1
LEA EBP,[ESI + EDI*0x4]
PUSH dword ptr [EBP]
MOV EAX,dword ptr [ESP + 0x44]
PUSH dword ptr [EAX]
PUSH dword ptr [ESP + 0x18]
CALL 0x0015cb40
ADD ESP,0x10
TEST AL,AL
JZ 0x00164e88
MOV EBX,EDI
TEST EBX,EBX
JG 0x00164e94
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX],ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
(translation_unit "void FUN_00164e60(int *param_1,undefined4 *param_2,int param_3,undefined4 *param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (0 < param_3 - (int)param_2) {\n    iVar2 = param_3 - (int)param_2 >> 2;\n    do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);\n  }\nLAB_00164ebd:\n  *param_1 = (int)param_2;\n  return;\n}\n\n" (function_definition "void FUN_00164e60(int *param_1,undefined4 *param_2,int param_3,undefined4 *param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (0 < param_3 - (int)param_2) {\n    iVar2 = param_3 - (int)param_2 >> 2;\n    do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);\n  }\nLAB_00164ebd:\n  *param_1 = (int)param_2;\n  return;\n}" primitive_type (function_declarator "FUN_00164e60(int *param_1,undefined4 *param_2,int param_3,undefined4 *param_4)" identifier (parameter_list "(int *param_1,undefined4 *param_2,int param_3,undefined4 *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (0 < param_3 - (int)param_2) {\n    iVar2 = param_3 - (int)param_2 >> 2;\n    do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);\n  }\nLAB_00164ebd:\n  *param_1 = (int)param_2;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (0 < param_3 - (int)param_2) {\n    iVar2 = param_3 - (int)param_2 >> 2;\n    do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);\n  }" if (parenthesized_expression "(0 < param_3 - (int)param_2)" ( (binary_expression "0 < param_3 - (int)param_2" number_literal < (binary_expression "param_3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) )) (compound_statement "{\n    iVar2 = param_3 - (int)param_2 >> 2;\n    do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);\n  }" { (expression_statement "iVar2 = param_3 - (int)param_2 >> 2;" (assignment_expression "iVar2 = param_3 - (int)param_2 >> 2" identifier = (binary_expression "param_3 - (int)param_2 >> 2" (binary_expression "param_3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (do_statement "do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);" do (compound_statement "{\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    }" { (while_statement "while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }" { (expression_statement "iVar3 = iVar2 >> 1;" (assignment_expression "iVar3 = iVar2 >> 1" identifier = (binary_expression "iVar2 >> 1" identifier >> number_literal)) ;) (expression_statement "cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);" (assignment_expression "cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3])" identifier = (call_expression "FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3])" identifier (argument_list "(&stack0x00000014,*param_4,param_2[iVar3])" ( (pointer_expression "&stack0x00000014" & identifier) , (pointer_expression "*param_4" * identifier) , (subscript_expression "param_2[iVar3]" 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 "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) (if_statement "if (iVar3 < 1) goto LAB_00164ebd;" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (goto_statement "goto LAB_00164ebd;" goto statement_identifier ;)) })) (expression_statement "param_2 = param_2 + iVar3 + 1;" (assignment_expression "param_2 = param_2 + iVar3 + 1" identifier = (binary_expression "param_2 + iVar3 + 1" (binary_expression "param_2 + iVar3" identifier + identifier) + number_literal)) ;) (expression_statement "iVar2 = (iVar2 - iVar3) + -1;" (assignment_expression "iVar2 = (iVar2 - iVar3) + -1" identifier = (binary_expression "(iVar2 - iVar3) + -1" (parenthesized_expression "(iVar2 - iVar3)" ( (binary_expression "iVar2 - iVar3" identifier - identifier) )) + number_literal)) ;) }) while (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) ;) })) (labeled_statement "LAB_00164ebd:\n  *param_1 = (int)param_2;" statement_identifier : (expression_statement "*param_1 = (int)param_2;" (assignment_expression "*param_1 = (int)param_2" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n/* DWARF original name: __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_section**,\n   std::vector<gold::Output_section*> >, gold::Output_section*,\n   __gnu_cxx::__ops::_Val_comp_iter<gold::Sort_output_sections> > */\n\n__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_>,_gold::Output_section*,___gnu_cxx::__ops::_Val_comp_iter<gold::Sort_output_sections>_>\n           (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            __first,__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    __last,Output_section **__val,_Val_comp_iter<gold::Sort_output_sections> __comp)\n\n{\n  _func_int_varargs ***ppp_Var1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  Output_section **in_stack_00000004;\n  \n  if (0 < (int)__last._M_current - (int)__first._M_current) {\n    iVar3 = (int)__last._M_current - (int)__first._M_current >> 2;\n    do {\n      while( true ) {\n        iVar4 = iVar3 >> 1;\n        ppp_Var1 = &(((Output_section *)__first._M_current)->super_Output_data)._vptr_Output_data +\n                   iVar4;\n        bVar2 = gold::Sort_output_sections::operator()\n                          (&__comp._M_comp,*__val,(Output_section *)*ppp_Var1);\n        if (!bVar2) break;\n        iVar3 = iVar4;\n        if (iVar4 < 1) goto LAB_00164ebd;\n      }\n      __first._M_current = (Output_section **)(ppp_Var1 + 1);\n      iVar3 = (iVar3 - iVar4) + -1;\n    } while (0 < iVar3);\n  }\nLAB_00164ebd:\n  *in_stack_00000004 = (Output_section *)__first._M_current;\n  return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n          )in_stack_00000004;\n}\n\n" comment comment (expression_statement "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_>,_gold::Output_section*,___gnu_cxx::__ops::_Val_comp_iter<gold::Sort_output_sections>_>\n           (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            __first,__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    __last,Output_section **__val,_Val_comp_iter<gold::Sort_output_sections> __comp)\n\n{\n  _func_int_varargs ***ppp_Var1;" (update_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_>,_gold::Output_section*,___gnu_cxx::__ops::_Val_comp_iter<gold::Sort_output_sections>_>\n           (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            __first,__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    __last,Output_section **__val,_Val_comp_iter<gold::Sort_output_sections> __comp)\n\n{\n  _func_int_varargs ***ppp_Var1" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_>,_gold::Output_section*,___gnu_cxx::__ops::_Val_comp_iter<gold::Sort_output_sections>_>\n           (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            __first,__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    __last,Output_section **__val,_Val_comp_iter<gold::Sort_output_sections> __comp)\n\n{\n  _func_int_varargs ***ppp_Var1" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_>,_gold::Output_section*,___gnu_cxx::__ops::_Val_comp_iter<gold::Sort_output_sections>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_>,_gold::Output_section*,___gnu_cxx::__ops::_Val_comp_iter<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_>,_gold::Output_section*,___gnu_cxx" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_>,_gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_section**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_section**,_std" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::\n __upper_bound<__gnu_cxx::__normal_iterator<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std::\n __upper_bound<__gnu_cxx" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n std" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std" (binary_expression "__normal_iterator<gold" identifier < identifier) (ERROR "::Output_section" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) > identifier) > identifier) (ERROR "::\n __upper_bound" : : identifier) < identifier) (ERROR "::__normal_iterator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) > (ERROR "," ,) identifier) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::__ops::_Val_comp_iter" : : identifier : : identifier) < identifier) (ERROR "::Sort_output_sections" : : identifier) > identifier) > (binary_expression "(__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            __first,__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    __last,Output_section **__val,_Val_comp_iter<gold::Sort_output_sections> __comp)\n\n{\n  _func_int_varargs ***ppp_Var1" (parenthesized_expression "(__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            __first,__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    __last,Output_section **__val,_Val_comp_iter<gold::Sort_output_sections> __comp)" ( (ERROR "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            __first,__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n                    __last,Output_section **__val,_Val_comp_iter<gold::" (comma_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            __first,__normal_iterator<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n            __first" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std" (binary_expression "__normal_iterator<gold" identifier < identifier) (ERROR "::Output_section" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) > identifier) > identifier) , (binary_expression "__normal_iterator<gold" identifier < identifier)) : : (type_descriptor "Output_section**" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) , identifier : : (binary_expression "vector<gold" identifier < identifier) : : (type_descriptor "Output_section*" type_identifier (abstract_pointer_declarator "*" *)) , identifier : : (binary_expression "allocator<gold" identifier < identifier) : : (comma_expression "Output_section*>_>_>\n                    __last,Output_section **__val,_Val_comp_iter<gold" (binary_expression "Output_section*>_>_>\n                    __last" (binary_expression "Output_section*>_>_" (binary_expression "Output_section*>_" identifier * (ERROR ">" >) identifier) > identifier) > identifier) , (comma_expression "Output_section **__val,_Val_comp_iter<gold" (binary_expression "Output_section **__val" identifier * (pointer_expression "*__val" * identifier)) , (binary_expression "_Val_comp_iter<gold" identifier < identifier))) : :) (binary_expression "Sort_output_sections> __comp" identifier > identifier) )) (ERROR "{\n  _func_int_varargs" { identifier) * (pointer_expression "**ppp_Var1" * (pointer_expression "*ppp_Var1" * identifier)))) --) ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "Output_section **in_stack_00000004;" type_identifier (pointer_declarator "**in_stack_00000004" * (pointer_declarator "*in_stack_00000004" * identifier)) ;) (if_statement "if (0 < (int)__last._M_current - (int)__first._M_current) {\n    iVar3 = (int)__last._M_current - (int)__first._M_current >> 2;\n    do {\n      while( true ) {\n        iVar4 = iVar3 >> 1;\n        ppp_Var1 = &(((Output_section *)__first._M_current)->super_Output_data)._vptr_Output_data +\n                   iVar4;\n        bVar2 = gold::Sort_output_sections::operator()\n                          (&__comp._M_comp,*__val,(Output_section *)*ppp_Var1);\n        if (!bVar2) break;\n        iVar3 = iVar4;\n        if (iVar4 < 1) goto LAB_00164ebd;\n      }\n      __first._M_current = (Output_section **)(ppp_Var1 + 1);\n      iVar3 = (iVar3 - iVar4) + -1;\n    } while (0 < iVar3);\n  }" if (parenthesized_expression "(0 < (int)__last._M_current - (int)__first._M_current)" ( (binary_expression "0 < (int)__last._M_current - (int)__first._M_current" number_literal < (binary_expression "(int)__last._M_current - (int)__first._M_current" (cast_expression "(int)__last._M_current" ( (type_descriptor "int" primitive_type) ) (field_expression "__last._M_current" identifier . field_identifier)) - (cast_expression "(int)__first._M_current" ( (type_descriptor "int" primitive_type) ) (field_expression "__first._M_current" identifier . field_identifier)))) )) (compound_statement "{\n    iVar3 = (int)__last._M_current - (int)__first._M_current >> 2;\n    do {\n      while( true ) {\n        iVar4 = iVar3 >> 1;\n        ppp_Var1 = &(((Output_section *)__first._M_current)->super_Output_data)._vptr_Output_data +\n                   iVar4;\n        bVar2 = gold::Sort_output_sections::operator()\n                          (&__comp._M_comp,*__val,(Output_section *)*ppp_Var1);\n        if (!bVar2) break;\n        iVar3 = iVar4;\n        if (iVar4 < 1) goto LAB_00164ebd;\n      }\n      __first._M_current = (Output_section **)(ppp_Var1 + 1);\n      iVar3 = (iVar3 - iVar4) + -1;\n    } while (0 < iVar3);\n  }" { (expression_statement "iVar3 = (int)__last._M_current - (int)__first._M_current >> 2;" (assignment_expression "iVar3 = (int)__last._M_current - (int)__first._M_current >> 2" identifier = (binary_expression "(int)__last._M_current - (int)__first._M_current >> 2" (binary_expression "(int)__last._M_current - (int)__first._M_current" (cast_expression "(int)__last._M_current" ( (type_descriptor "int" primitive_type) ) (field_expression "__last._M_current" identifier . field_identifier)) - (cast_expression "(int)__first._M_current" ( (type_descriptor "int" primitive_type) ) (field_expression "__first._M_current" identifier . field_identifier))) >> number_literal)) ;) (do_statement "do {\n      while( true ) {\n        iVar4 = iVar3 >> 1;\n        ppp_Var1 = &(((Output_section *)__first._M_current)->super_Output_data)._vptr_Output_data +\n                   iVar4;\n        bVar2 = gold::Sort_output_sections::operator()\n                          (&__comp._M_comp,*__val,(Output_section *)*ppp_Var1);\n        if (!bVar2) break;\n        iVar3 = iVar4;\n        if (iVar4 < 1) goto LAB_00164ebd;\n      }\n      __first._M_current = (Output_section **)(ppp_Var1 + 1);\n      iVar3 = (iVar3 - iVar4) + -1;\n    } while (0 < iVar3);" do (compound_statement "{\n      while( true ) {\n        iVar4 = iVar3 >> 1;\n        ppp_Var1 = &(((Output_section *)__first._M_current)->super_Output_data)._vptr_Output_data +\n                   iVar4;\n        bVar2 = gold::Sort_output_sections::operator()\n                          (&__comp._M_comp,*__val,(Output_section *)*ppp_Var1);\n        if (!bVar2) break;\n        iVar3 = iVar4;\n        if (iVar4 < 1) goto LAB_00164ebd;\n      }\n      __first._M_current = (Output_section **)(ppp_Var1 + 1);\n      iVar3 = (iVar3 - iVar4) + -1;\n    }" { (while_statement "while( true ) {\n        iVar4 = iVar3 >> 1;\n        ppp_Var1 = &(((Output_section *)__first._M_current)->super_Output_data)._vptr_Output_data +\n                   iVar4;\n        bVar2 = gold::Sort_output_sections::operator()\n                          (&__comp._M_comp,*__val,(Output_section *)*ppp_Var1);\n        if (!bVar2) break;\n        iVar3 = iVar4;\n        if (iVar4 < 1) goto LAB_00164ebd;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar4 = iVar3 >> 1;\n        ppp_Var1 = &(((Output_section *)__first._M_current)->super_Output_data)._vptr_Output_data +\n                   iVar4;\n        bVar2 = gold::Sort_output_sections::operator()\n                          (&__comp._M_comp,*__val,(Output_section *)*ppp_Var1);\n        if (!bVar2) break;\n        iVar3 = iVar4;\n        if (iVar4 < 1) goto LAB_00164ebd;\n      }" { (expression_statement "iVar4 = iVar3 >> 1;" (assignment_expression "iVar4 = iVar3 >> 1" identifier = (binary_expression "iVar3 >> 1" identifier >> number_literal)) ;) (expression_statement "ppp_Var1 = &(((Output_section *)__first._M_current)->super_Output_data)._vptr_Output_data +\n                   iVar4;" (assignment_expression "ppp_Var1 = &(((Output_section *)__first._M_current)->super_Output_data)._vptr_Output_data +\n                   iVar4" identifier = (binary_expression "&(((Output_section *)__first._M_current)->super_Output_data)._vptr_Output_data +\n                   iVar4" (pointer_expression "&(((Output_section *)__first._M_current)->super_Output_data)._vptr_Output_data" & (field_expression "(((Output_section *)__first._M_current)->super_Output_data)._vptr_Output_data" (parenthesized_expression "(((Output_section *)__first._M_current)->super_Output_data)" ( (field_expression "((Output_section *)__first._M_current)->super_Output_data" (parenthesized_expression "((Output_section *)__first._M_current)" ( (cast_expression "(Output_section *)__first._M_current" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__first._M_current" identifier . field_identifier)) )) -> field_identifier) )) . field_identifier)) + identifier)) ;) (ERROR "bVar2 = gold::" (assignment_expression "bVar2 = gold" identifier = identifier) : :) (labeled_statement "Sort_output_sections::operator()\n                          (&__comp._M_comp,*__val,(Output_section *)*ppp_Var1);" statement_identifier : (ERROR ":" :) (expression_statement "operator()\n                          (&__comp._M_comp,*__val,(Output_section *)*ppp_Var1);" (call_expression "operator()\n                          (&__comp._M_comp,*__val,(Output_section *)*ppp_Var1)" (call_expression "operator()" identifier (argument_list "()" ( ))) (argument_list "(&__comp._M_comp,*__val,(Output_section *)*ppp_Var1)" ( (pointer_expression "&__comp._M_comp" & (field_expression "__comp._M_comp" identifier . field_identifier)) , (pointer_expression "*__val" * identifier) , (cast_expression "(Output_section *)*ppp_Var1" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*ppp_Var1" * identifier)) ))) ;)) (if_statement "if (!bVar2) break;" if (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (if_statement "if (iVar4 < 1) goto LAB_00164ebd;" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (goto_statement "goto LAB_00164ebd;" goto statement_identifier ;)) })) (expression_statement "__first._M_current = (Output_section **)(ppp_Var1 + 1);" (assignment_expression "__first._M_current = (Output_section **)(ppp_Var1 + 1)" (field_expression "__first._M_current" identifier . field_identifier) = (cast_expression "(Output_section **)(ppp_Var1 + 1)" ( (type_descriptor "Output_section **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(ppp_Var1 + 1)" ( (binary_expression "ppp_Var1 + 1" identifier + number_literal) )))) ;) (expression_statement "iVar3 = (iVar3 - iVar4) + -1;" (assignment_expression "iVar3 = (iVar3 - iVar4) + -1" identifier = (binary_expression "(iVar3 - iVar4) + -1" (parenthesized_expression "(iVar3 - iVar4)" ( (binary_expression "iVar3 - iVar4" identifier - identifier) )) + number_literal)) ;) }) while (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) ;) })) (labeled_statement "LAB_00164ebd:\n  *in_stack_00000004 = (Output_section *)__first._M_current;" statement_identifier : (expression_statement "*in_stack_00000004 = (Output_section *)__first._M_current;" (assignment_expression "*in_stack_00000004 = (Output_section *)__first._M_current" (pointer_expression "*in_stack_00000004" * identifier) = (cast_expression "(Output_section *)__first._M_current" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__first._M_current" identifier . field_identifier))) ;)) (ERROR "return (__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n          )in_stack_00000004;\n}" return ( (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_>\n          )in_stack_00000004" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std::allocator<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold::Output_section*,_std" (binary_expression "__normal_iterator<gold::Output_section**,_std::vector<gold" (binary_expression "__normal_iterator<gold::Output_section**,_std" (binary_expression "__normal_iterator<gold" identifier < identifier) (ERROR "::Output_section" : : identifier) * (pointer_expression "*,_std" * (ERROR "," ,) identifier)) (ERROR "::vector" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) > identifier) > (ERROR ")" )) identifier) ; }))
(translation_unit "void FUN_00164e60(int *param_1,undefined4 *param_2,int param_3,undefined4 *param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (0 < param_3 - (int)param_2) {\n    iVar2 = param_3 - (int)param_2 >> 2;\n    do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);\n  }\nLAB_00164ebd:\n  *param_1 = (int)param_2;\n  return;\n}\n\n" (function_definition "void FUN_00164e60(int *param_1,undefined4 *param_2,int param_3,undefined4 *param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (0 < param_3 - (int)param_2) {\n    iVar2 = param_3 - (int)param_2 >> 2;\n    do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);\n  }\nLAB_00164ebd:\n  *param_1 = (int)param_2;\n  return;\n}" primitive_type (function_declarator "FUN_00164e60(int *param_1,undefined4 *param_2,int param_3,undefined4 *param_4)" identifier (parameter_list "(int *param_1,undefined4 *param_2,int param_3,undefined4 *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (0 < param_3 - (int)param_2) {\n    iVar2 = param_3 - (int)param_2 >> 2;\n    do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);\n  }\nLAB_00164ebd:\n  *param_1 = (int)param_2;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (0 < param_3 - (int)param_2) {\n    iVar2 = param_3 - (int)param_2 >> 2;\n    do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);\n  }" if (parenthesized_expression "(0 < param_3 - (int)param_2)" ( (binary_expression "0 < param_3 - (int)param_2" number_literal < (binary_expression "param_3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) )) (compound_statement "{\n    iVar2 = param_3 - (int)param_2 >> 2;\n    do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);\n  }" { (expression_statement "iVar2 = param_3 - (int)param_2 >> 2;" (assignment_expression "iVar2 = param_3 - (int)param_2 >> 2" identifier = (binary_expression "param_3 - (int)param_2 >> 2" (binary_expression "param_3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (do_statement "do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);" do (compound_statement "{\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    }" { (while_statement "while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }" { (expression_statement "iVar3 = iVar2 >> 1;" (assignment_expression "iVar3 = iVar2 >> 1" identifier = (binary_expression "iVar2 >> 1" identifier >> number_literal)) ;) (expression_statement "cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);" (assignment_expression "cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3])" identifier = (call_expression "FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3])" identifier (argument_list "(&stack0x00000014,*param_4,param_2[iVar3])" ( (pointer_expression "&stack0x00000014" & identifier) , (pointer_expression "*param_4" * identifier) , (subscript_expression "param_2[iVar3]" 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 "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) (if_statement "if (iVar3 < 1) goto LAB_00164ebd;" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (goto_statement "goto LAB_00164ebd;" goto statement_identifier ;)) })) (expression_statement "param_2 = param_2 + iVar3 + 1;" (assignment_expression "param_2 = param_2 + iVar3 + 1" identifier = (binary_expression "param_2 + iVar3 + 1" (binary_expression "param_2 + iVar3" identifier + identifier) + number_literal)) ;) (expression_statement "iVar2 = (iVar2 - iVar3) + -1;" (assignment_expression "iVar2 = (iVar2 - iVar3) + -1" identifier = (binary_expression "(iVar2 - iVar3) + -1" (parenthesized_expression "(iVar2 - iVar3)" ( (binary_expression "iVar2 - iVar3" identifier - identifier) )) + number_literal)) ;) }) while (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) ;) })) (labeled_statement "LAB_00164ebd:\n  *param_1 = (int)param_2;" statement_identifier : (expression_statement "*param_1 = (int)param_2;" (assignment_expression "*param_1 = (int)param_2" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) 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 IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT)) ;) (do_statement do (compound_statement { (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 ( (pointer_expression & 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) )) (goto_statement goto statement_identifier ;)) })) (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)) ;) }) while (parenthesized_expression ( (binary_expression LIT < IDENT) )) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;)) (return_statement return ;) })))
(function_definition "void FUN_00164e60(int *param_1,undefined4 *param_2,int param_3,undefined4 *param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (0 < param_3 - (int)param_2) {\n    iVar2 = param_3 - (int)param_2 >> 2;\n    do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);\n  }\nLAB_00164ebd:\n  *param_1 = (int)param_2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00164e60(int *param_1,undefined4 *param_2,int param_3,undefined4 *param_4)" (identifier "FUN_00164e60") (parameter_list "(int *param_1,undefined4 *param_2,int param_3,undefined4 *param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (0 < param_3 - (int)param_2) {\n    iVar2 = param_3 - (int)param_2 >> 2;\n    do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);\n  }\nLAB_00164ebd:\n  *param_1 = (int)param_2;\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (0 < param_3 - (int)param_2) {\n    iVar2 = param_3 - (int)param_2 >> 2;\n    do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);\n  }" (if "if") (parenthesized_expression "(0 < param_3 - (int)param_2)" (( "(") (binary_expression "0 < param_3 - (int)param_2" (number_literal "0") (< "<") (binary_expression "param_3 - (int)param_2" (identifier "param_3") (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) () ")")) (compound_statement "{\n    iVar2 = param_3 - (int)param_2 >> 2;\n    do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);\n  }" ({ "{") (expression_statement "iVar2 = param_3 - (int)param_2 >> 2;" (assignment_expression "iVar2 = param_3 - (int)param_2 >> 2" (identifier "iVar2") (= "=") (binary_expression "param_3 - (int)param_2 >> 2" (binary_expression "param_3 - (int)param_2" (identifier "param_3") (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) (>> ">>") (number_literal "2"))) (; ";")) (do_statement "do {\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    } while (0 < iVar2);" (do "do") (compound_statement "{\n      while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }\n      param_2 = param_2 + iVar3 + 1;\n      iVar2 = (iVar2 - iVar3) + -1;\n    }" ({ "{") (while_statement "while( true ) {\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        iVar3 = iVar2 >> 1;\n        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);\n        if (cVar1 == '\0') break;\n        iVar2 = iVar3;\n        if (iVar3 < 1) goto LAB_00164ebd;\n      }" ({ "{") (expression_statement "iVar3 = iVar2 >> 1;" (assignment_expression "iVar3 = iVar2 >> 1" (identifier "iVar3") (= "=") (binary_expression "iVar2 >> 1" (identifier "iVar2") (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);" (assignment_expression "cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3])" (identifier "cVar1") (= "=") (call_expression "FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3])" (identifier "FUN_0015cb40") (argument_list "(&stack0x00000014,*param_4,param_2[iVar3])" (( "(") (pointer_expression "&stack0x00000014" (& "&") (identifier "stack0x00000014")) (, ",") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (subscript_expression "param_2[iVar3]" (identifier "param_2") ([ "[") (identifier "iVar3") (] "]")) () ")")))) (; ";")) (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 "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" (identifier "iVar2") (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar3 < 1) goto LAB_00164ebd;" (if "if") (parenthesized_expression "(iVar3 < 1)" (( "(") (binary_expression "iVar3 < 1" (identifier "iVar3") (< "<") (number_literal "1")) () ")")) (goto_statement "goto LAB_00164ebd;" (goto "goto") (statement_identifier "LAB_00164ebd") (; ";"))) (} "}"))) (expression_statement "param_2 = param_2 + iVar3 + 1;" (assignment_expression "param_2 = param_2 + iVar3 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + iVar3 + 1" (binary_expression "param_2 + iVar3" (identifier "param_2") (+ "+") (identifier "iVar3")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = (iVar2 - iVar3) + -1;" (assignment_expression "iVar2 = (iVar2 - iVar3) + -1" (identifier "iVar2") (= "=") (binary_expression "(iVar2 - iVar3) + -1" (parenthesized_expression "(iVar2 - iVar3)" (( "(") (binary_expression "iVar2 - iVar3" (identifier "iVar2") (- "-") (identifier "iVar3")) () ")")) (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_00164ebd:\n  *param_1 = (int)param_2;" (statement_identifier "LAB_00164ebd") (: ":") (expression_statement "*param_1 = (int)param_2;" (assignment_expression "*param_1 = (int)param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */
/* DWARF original name: __upper_bound<__gnu_cxx::__normal_iterator<gold::Output_section**,
   std::vector<gold::Output_section*> >, gold::Output_section*,
   __gnu_cxx::__ops::_Val_comp_iter<gold::Sort_output_sections> > */

var_1<var_2::type_1**,var_3::vector<var_2::type_1*,var_3::allocator<var_2::type_1*>var_4>var_4>
 var_5::
 __upper_bound<var_6::var_1<var_2::type_1**,var_3::vector<var_2::type_1*>var_4>,var_7::type_1*,var_8::__ops::_Val_comp_iter<var_2::var_9>var_4>
           (var_1<var_2::type_1**,var_3::vector<var_2::type_1*,var_3::allocator<var_2::type_1*>var_4>var_4>
            __first,var_1<var_2::type_1**,var_3::vector<var_2::type_1*,var_3::allocator<var_2::type_1*>var_4>var_4>
                    __last,type_1 **__val,_Val_comp_iter<var_2::var_9> var_10)

{
  _func_int_varargs ***var_14;
  bool bVar2;
  int var_11;
  int var_12;
  type_1 **in_stack_00000004;
  
  if (0 < (int)__last._M_current - (int)__first._M_current) {
    var_11 = (int)__last._M_current - (int)__first._M_current >> 2;
    do {
      while( true ) {
        var_12 = var_11 >> 1;
        var_14 = &(((type_1 *)__first._M_current)->super_Output_data)._vptr_Output_data +
                   var_12;
        bVar2 = var_2::Sort_output_sections::var_13()
                          (&var_10._M_comp,*__val,(type_1 *)*var_14);
        if (!bVar2) break;
        var_11 = var_12;
        if (var_12 < 1) goto LAB_00164ebd;
      }
      __first._M_current = (type_1 **)(var_14 + 1);
      var_11 = (var_11 - var_12) + -1;
    } while (0 < var_11);
  }
LAB_00164ebd:
  *in_stack_00000004 = (type_1 *)__first._M_current;
  return (var_1<var_2::type_1**,var_3::vector<var_2::type_1*,var_3::allocator<var_2::type_1*>var_4>var_4>
          )in_stack_00000004;
}


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

void MASKED(int *param_1,undefined4 *param_2,int param_3,undefined4 *param_4)

{
  char cVar1;
  int iVar2;
  int iVar3;
  
  if (0 < param_3 - (int)param_2) {
    iVar2 = param_3 - (int)param_2 >> 2;
    do {
      while( true ) {
        iVar3 = iVar2 >> 1;
        cVar1 = FUN_0015cb40(&stack0x00000014,*param_4,param_2[iVar3]);
        if (cVar1 == '\0') break;
        iVar2 = iVar3;
        if (iVar3 < 1) goto LAB_00164ebd;
      }
      param_2 = param_2 + iVar3 + 1;
      iVar2 = (iVar2 - iVar3) + -1;
    } while (0 < iVar2);
  }
LAB_00164ebd:
  *param_1 = (int)param_2;
  return;
}

