
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* DWARF original name:
   __lower_bound<__gnu_cxx::__normal_iterator<gold::Output_section::Input_section*,
   std::vector<gold::Output_section::Input_section> >, gold::Output_section::Input_section,
   __gnu_cxx::__ops::_Iter_comp_val<(anonymous namespace)::Sort_toc_sections<false> > > */

__normal_iterator<gold::Output_section::Input_section*,_std::vector<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>_>
 std::
 __lower_bound<__gnu_cxx::__normal_iterator<gold::Output_section::Input_section*,_std::vector<gold::Output_section::Input_section>_>,_gold::Output_section::Input_section,___gnu_cxx::__ops::_Iter_comp_val<(anonymous_namespace)::Sort_toc_sections<false>_>_>
           (void)

{
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 FUN_000b50e0(undefined4 *param_1,uint *param_2,int param_3,int *param_4)

{
  uint *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  byte bVar5;
  
  param_3 = param_3 - (int)param_2;
  iVar3 = (param_3 >> 3) * -0x55555555;
joined_r0x000b510f:
  do {
    iVar2 = iVar3;
    if (param_3 < 1) {
      *param_1 = param_2;
      return;
    }
    param_3 = iVar2 >> 1;
    puVar1 = param_2 + param_3 * 6;
    iVar3 = param_3;
    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;
  } while (*param_4 + 4U < 4);
  goto LAB_000b51a2;
LAB_000b5150:
  iVar4 = FUN_002c6110(puVar1);
  bVar5 = *(byte *)(iVar4 + 0x14c);
  if (3 < *param_4 + 4U) {
    iVar4 = FUN_002c6110(param_4);
    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);
  }
  if (bVar5 != 0) {
LAB_000b51a2:
    param_2 = puVar1 + 6;
    param_3 = (iVar2 - param_3) + -1;
    iVar3 = param_3;
  }
  goto joined_r0x000b510f;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x534f17
SUB ESP,0x1c
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,ECX
MOV ECX,dword ptr [ESP + 0x30]
SUB EAX,EDX
MOV dword ptr [ESP + 0x4],EDX
MOV ESI,EAX
SAR ESI,0x3
IMUL ESI,ESI,-0x55555555
TEST EAX,EAX
JLE 0x000b513c
LEA ESI,[ESI]
MOV EDI,ESI
MOV EDX,dword ptr [ESP + 0x4]
SAR EDI,0x1
LEA EAX,[EDI + EDI*0x2]
LEA EBP,[EDX + EAX*0x8]
CMP dword ptr [EBP],-0x4
JC 0x000b5150
MOV EAX,dword ptr [ECX]
ADD EAX,0x4
CMP EAX,0x3
JA 0x000b51a2
MOV ESI,EDI
TEST ESI,ESI
JG 0x000b5118
MOV EAX,dword ptr [ESP + 0xc]
MOV EBX,dword ptr [ESP + 0x4]
MOV dword ptr [EAX],EBX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x30],ECX
SUB ESP,0xc
PUSH EBP
CALL 0x002c6110
MOV ECX,dword ptr [ESP + 0x40]
ADD ESP,0x10
MOVZX EDX,byte ptr [EAX + 0x14c]
MOV EAX,dword ptr [ECX]
ADD EAX,0x4
CMP EAX,0x3
JBE 0x000b519e
MOV byte ptr [ESP + 0xb],DL
SUB ESP,0xc
PUSH ECX
MOV dword ptr [ESP + 0x40],ECX
CALL 0x002c6110
MOVZX EDX,byte ptr [ESP + 0x1b]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x30]
MOVZX EAX,byte ptr [EAX + 0x14c]
XOR EAX,0x1
AND EDX,EAX
TEST DL,DL
JZ 0x000b5136
LEA EAX,[EBP + 0x18]
SUB ESI,EDI
MOV dword ptr [ESP + 0x4],EAX
SUB ESI,0x1
JMP 0x000b5138
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000b50e0(undefined4 *param_1,uint *param_2,int param_3,int *param_4)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  byte bVar5;\n  \n  param_3 = param_3 - (int)param_2;\n  iVar3 = (param_3 >> 3) * -0x55555555;\njoined_r0x000b510f:\n  do {\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  } while (*param_4 + 4U < 4);\n  goto LAB_000b51a2;\nLAB_000b5150:\n  iVar4 = FUN_002c6110(puVar1);\n  bVar5 = *(byte *)(iVar4 + 0x14c);\n  if (3 < *param_4 + 4U) {\n    iVar4 = FUN_002c6110(param_4);\n    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);\n  }\n  if (bVar5 != 0) {\nLAB_000b51a2:\n    param_2 = puVar1 + 6;\n    param_3 = (iVar2 - param_3) + -1;\n    iVar3 = param_3;\n  }\n  goto joined_r0x000b510f;\n}\n\n" comment (function_definition "void __regparm3 FUN_000b50e0(undefined4 *param_1,uint *param_2,int param_3,int *param_4)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  byte bVar5;\n  \n  param_3 = param_3 - (int)param_2;\n  iVar3 = (param_3 >> 3) * -0x55555555;\njoined_r0x000b510f:\n  do {\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  } while (*param_4 + 4U < 4);\n  goto LAB_000b51a2;\nLAB_000b5150:\n  iVar4 = FUN_002c6110(puVar1);\n  bVar5 = *(byte *)(iVar4 + 0x14c);\n  if (3 < *param_4 + 4U) {\n    iVar4 = FUN_002c6110(param_4);\n    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);\n  }\n  if (bVar5 != 0) {\nLAB_000b51a2:\n    param_2 = puVar1 + 6;\n    param_3 = (iVar2 - param_3) + -1;\n    iVar3 = param_3;\n  }\n  goto joined_r0x000b510f;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000b50e0(undefined4 *param_1,uint *param_2,int param_3,int *param_4)" identifier (parameter_list "(undefined4 *param_1,uint *param_2,int param_3,int *param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  byte bVar5;\n  \n  param_3 = param_3 - (int)param_2;\n  iVar3 = (param_3 >> 3) * -0x55555555;\njoined_r0x000b510f:\n  do {\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  } while (*param_4 + 4U < 4);\n  goto LAB_000b51a2;\nLAB_000b5150:\n  iVar4 = FUN_002c6110(puVar1);\n  bVar5 = *(byte *)(iVar4 + 0x14c);\n  if (3 < *param_4 + 4U) {\n    iVar4 = FUN_002c6110(param_4);\n    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);\n  }\n  if (bVar5 != 0) {\nLAB_000b51a2:\n    param_2 = puVar1 + 6;\n    param_3 = (iVar2 - param_3) + -1;\n    iVar3 = param_3;\n  }\n  goto joined_r0x000b510f;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "param_3 = param_3 - (int)param_2;" (assignment_expression "param_3 = param_3 - (int)param_2" identifier = (binary_expression "param_3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar3 = (param_3 >> 3) * -0x55555555;" (assignment_expression "iVar3 = (param_3 >> 3) * -0x55555555" identifier = (binary_expression "(param_3 >> 3) * -0x55555555" (parenthesized_expression "(param_3 >> 3)" ( (binary_expression "param_3 >> 3" identifier >> number_literal) )) * number_literal)) ;) (labeled_statement "joined_r0x000b510f:\n  do {\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  } while (*param_4 + 4U < 4);" statement_identifier : (do_statement "do {\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  } while (*param_4 + 4U < 4);" do (compound_statement "{\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  }" { (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) (if_statement "if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n      *param_1 = param_2;\n      return;\n    }" { (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "param_3 = iVar2 >> 1;" (assignment_expression "param_3 = iVar2 >> 1" identifier = (binary_expression "iVar2 >> 1" identifier >> number_literal)) ;) (expression_statement "puVar1 = param_2 + param_3 * 6;" (assignment_expression "puVar1 = param_2 + param_3 * 6" identifier = (binary_expression "param_2 + param_3 * 6" identifier + (binary_expression "param_3 * 6" identifier * number_literal))) ;) (expression_statement "iVar3 = param_3;" (assignment_expression "iVar3 = param_3" identifier = identifier) ;) (if_statement "if (*puVar1 < 0xfffffffc) goto LAB_000b5150;" if (parenthesized_expression "(*puVar1 < 0xfffffffc)" ( (binary_expression "*puVar1 < 0xfffffffc" (pointer_expression "*puVar1" * identifier) < number_literal) )) (goto_statement "goto LAB_000b5150;" goto statement_identifier ;)) }) while (parenthesized_expression "(*param_4 + 4U < 4)" ( (binary_expression "*param_4 + 4U < 4" (binary_expression "*param_4 + 4U" (pointer_expression "*param_4" * identifier) + number_literal) < number_literal) )) ;)) (goto_statement "goto LAB_000b51a2;" goto statement_identifier ;) (labeled_statement "LAB_000b5150:\n  iVar4 = FUN_002c6110(puVar1);" statement_identifier : (expression_statement "iVar4 = FUN_002c6110(puVar1);" (assignment_expression "iVar4 = FUN_002c6110(puVar1)" identifier = (call_expression "FUN_002c6110(puVar1)" identifier (argument_list "(puVar1)" ( identifier )))) ;)) (expression_statement "bVar5 = *(byte *)(iVar4 + 0x14c);" (assignment_expression "bVar5 = *(byte *)(iVar4 + 0x14c)" identifier = (pointer_expression "*(byte *)(iVar4 + 0x14c)" * (cast_expression "(byte *)(iVar4 + 0x14c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14c)" ( (binary_expression "iVar4 + 0x14c" identifier + number_literal) ))))) ;) (if_statement "if (3 < *param_4 + 4U) {\n    iVar4 = FUN_002c6110(param_4);\n    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);\n  }" if (parenthesized_expression "(3 < *param_4 + 4U)" ( (binary_expression "3 < *param_4 + 4U" number_literal < (binary_expression "*param_4 + 4U" (pointer_expression "*param_4" * identifier) + number_literal)) )) (compound_statement "{\n    iVar4 = FUN_002c6110(param_4);\n    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);\n  }" { (expression_statement "iVar4 = FUN_002c6110(param_4);" (assignment_expression "iVar4 = FUN_002c6110(param_4)" identifier = (call_expression "FUN_002c6110(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);" (assignment_expression "bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1)" identifier = (binary_expression "bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1)" identifier & (parenthesized_expression "(*(byte *)(iVar4 + 0x14c) ^ 1)" ( (binary_expression "*(byte *)(iVar4 + 0x14c) ^ 1" (pointer_expression "*(byte *)(iVar4 + 0x14c)" * (cast_expression "(byte *)(iVar4 + 0x14c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14c)" ( (binary_expression "iVar4 + 0x14c" identifier + number_literal) )))) ^ number_literal) )))) ;) })) (if_statement "if (bVar5 != 0) {\nLAB_000b51a2:\n    param_2 = puVar1 + 6;\n    param_3 = (iVar2 - param_3) + -1;\n    iVar3 = param_3;\n  }" if (parenthesized_expression "(bVar5 != 0)" ( (binary_expression "bVar5 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_000b51a2:\n    param_2 = puVar1 + 6;\n    param_3 = (iVar2 - param_3) + -1;\n    iVar3 = param_3;\n  }" { (labeled_statement "LAB_000b51a2:\n    param_2 = puVar1 + 6;" statement_identifier : (expression_statement "param_2 = puVar1 + 6;" (assignment_expression "param_2 = puVar1 + 6" identifier = (binary_expression "puVar1 + 6" identifier + number_literal)) ;)) (expression_statement "param_3 = (iVar2 - param_3) + -1;" (assignment_expression "param_3 = (iVar2 - param_3) + -1" identifier = (binary_expression "(iVar2 - param_3) + -1" (parenthesized_expression "(iVar2 - param_3)" ( (binary_expression "iVar2 - param_3" identifier - identifier) )) + number_literal)) ;) (expression_statement "iVar3 = param_3;" (assignment_expression "iVar3 = param_3" identifier = identifier) ;) })) (goto_statement "goto joined_r0x000b510f;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* DWARF original name:\n   __lower_bound<__gnu_cxx::__normal_iterator<gold::Output_section::Input_section*,\n   std::vector<gold::Output_section::Input_section> >, gold::Output_section::Input_section,\n   __gnu_cxx::__ops::_Iter_comp_val<(anonymous namespace)::Sort_toc_sections<false> > > */\n\n__normal_iterator<gold::Output_section::Input_section*,_std::vector<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>_>\n std::\n __lower_bound<__gnu_cxx::__normal_iterator<gold::Output_section::Input_section*,_std::vector<gold::Output_section::Input_section>_>,_gold::Output_section::Input_section,___gnu_cxx::__ops::_Iter_comp_val<(anonymous_namespace)::Sort_toc_sections<false>_>_>\n           (void)\n\n{\n}\n\n" comment comment comment (ERROR "__normal_iterator<gold::" (binary_expression "__normal_iterator<gold" identifier < identifier) : :) (labeled_statement "Output_section::Input_section*,_std::vector<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>_>\n std::\n __lower_bound<__gnu_cxx::__normal_iterator<gold::Output_section::Input_section*,_std::vector<gold::Output_section::Input_section>_>,_gold::Output_section::Input_section,___gnu_cxx::__ops::_Iter_comp_val<(anonymous_namespace)::Sort_toc_sections<false>_>_>\n           (void)\n\n{\n}" statement_identifier (ERROR "::Input_section*,_std::vector<gold:" : : (binary_expression "Input_section*,_std" identifier * (ERROR "," ,) identifier) : : (binary_expression "vector<gold" identifier < identifier) :) : (labeled_statement "Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>_>_>\n std::\n __lower_bound<__gnu_cxx::__normal_iterator<gold::Output_section::Input_section*,_std::vector<gold::Output_section::Input_section>_>,_gold::Output_section::Input_section,___gnu_cxx::__ops::_Iter_comp_val<(anonymous_namespace)::Sort_toc_sections<false>_>_>\n           (void)\n\n{\n}" statement_identifier (ERROR "::Input_section,_std::allocator<gold:" : : (comma_expression "Input_section,_std" identifier , identifier) : : (binary_expression "allocator<gold" identifier < identifier) :) : (labeled_statement "Output_section::Input_section>_>_>\n std::\n __lower_bound<__gnu_cxx::__normal_iterator<gold::Output_section::Input_section*,_std::vector<gold::Output_section::Input_section>_>,_gold::Output_section::Input_section,___gnu_cxx::__ops::_Iter_comp_val<(anonymous_namespace)::Sort_toc_sections<false>_>_>\n           (void)\n\n{\n}" statement_identifier (ERROR "::Input_section>_>_>\n std::\n __lower_bound<__gnu_cxx::__normal_iterator<gold::Output_section::Input_section*,_std::vector<gold::Output_section::Input_section>_>,_gold:" : : (binary_expression "Input_section>_>_>\n std" (binary_expression "Input_section>_>_" (binary_expression "Input_section>_" identifier > identifier) > identifier) > identifier) : : (binary_expression "__lower_bound<__gnu_cxx" identifier < identifier) : : (binary_expression "__normal_iterator<gold" identifier < identifier) : : (comma_expression "Output_section::Input_section*,_std" identifier (ERROR "::Input_section*" : : identifier *) , identifier) : : (binary_expression "vector<gold" identifier < identifier) : : (comma_expression "Output_section::Input_section>_>,_gold" identifier (ERROR "::Input_section>_>" : : (binary_expression "Input_section>_" identifier > identifier) >) , identifier) :) : (labeled_statement "Output_section::Input_section,___gnu_cxx::__ops::_Iter_comp_val<(anonymous_namespace)::Sort_toc_sections<false>_>_>\n           (void)\n\n{\n}" statement_identifier (ERROR "::Input_section,___gnu_cxx:" : : (comma_expression "Input_section,___gnu_cxx" identifier , identifier) :) : (labeled_statement "__ops::_Iter_comp_val<(anonymous_namespace)::Sort_toc_sections<false>_>_>\n           (void)\n\n{\n}" statement_identifier (ERROR "::_Iter_comp_val<(anonymous_namespace):" : : (binary_expression "_Iter_comp_val<(anonymous_namespace)" identifier < (parenthesized_expression "(anonymous_namespace)" ( identifier ))) :) : (expression_statement "Sort_toc_sections<false>_>_>\n           (void)\n\n{\n}" (binary_expression "Sort_toc_sections<false>_>_>\n           (void)\n\n{\n}" (binary_expression "Sort_toc_sections<false>_>_" (binary_expression "Sort_toc_sections<false>_" (binary_expression "Sort_toc_sections<false" identifier < false) > identifier) > identifier) > (compound_literal_expression "(void)\n\n{\n}" ( (type_descriptor "void" primitive_type) ) (initializer_list "{\n}" { }))) ;)))))))
(translation_unit "void __regparm3 FUN_000b50e0(undefined4 *param_1,uint *param_2,int param_3,int *param_4)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  byte bVar5;\n  \n  param_3 = param_3 - (int)param_2;\n  iVar3 = (param_3 >> 3) * -0x55555555;\njoined_r0x000b510f:\n  do {\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  } while (*param_4 + 4U < 4);\n  goto LAB_000b51a2;\nLAB_000b5150:\n  iVar4 = FUN_002c6110(puVar1);\n  bVar5 = *(byte *)(iVar4 + 0x14c);\n  if (3 < *param_4 + 4U) {\n    iVar4 = FUN_002c6110(param_4);\n    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);\n  }\n  if (bVar5 != 0) {\nLAB_000b51a2:\n    param_2 = puVar1 + 6;\n    param_3 = (iVar2 - param_3) + -1;\n    iVar3 = param_3;\n  }\n  goto joined_r0x000b510f;\n}\n\n" (function_definition "void __regparm3 FUN_000b50e0(undefined4 *param_1,uint *param_2,int param_3,int *param_4)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  byte bVar5;\n  \n  param_3 = param_3 - (int)param_2;\n  iVar3 = (param_3 >> 3) * -0x55555555;\njoined_r0x000b510f:\n  do {\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  } while (*param_4 + 4U < 4);\n  goto LAB_000b51a2;\nLAB_000b5150:\n  iVar4 = FUN_002c6110(puVar1);\n  bVar5 = *(byte *)(iVar4 + 0x14c);\n  if (3 < *param_4 + 4U) {\n    iVar4 = FUN_002c6110(param_4);\n    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);\n  }\n  if (bVar5 != 0) {\nLAB_000b51a2:\n    param_2 = puVar1 + 6;\n    param_3 = (iVar2 - param_3) + -1;\n    iVar3 = param_3;\n  }\n  goto joined_r0x000b510f;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000b50e0(undefined4 *param_1,uint *param_2,int param_3,int *param_4)" identifier (parameter_list "(undefined4 *param_1,uint *param_2,int param_3,int *param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  byte bVar5;\n  \n  param_3 = param_3 - (int)param_2;\n  iVar3 = (param_3 >> 3) * -0x55555555;\njoined_r0x000b510f:\n  do {\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  } while (*param_4 + 4U < 4);\n  goto LAB_000b51a2;\nLAB_000b5150:\n  iVar4 = FUN_002c6110(puVar1);\n  bVar5 = *(byte *)(iVar4 + 0x14c);\n  if (3 < *param_4 + 4U) {\n    iVar4 = FUN_002c6110(param_4);\n    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);\n  }\n  if (bVar5 != 0) {\nLAB_000b51a2:\n    param_2 = puVar1 + 6;\n    param_3 = (iVar2 - param_3) + -1;\n    iVar3 = param_3;\n  }\n  goto joined_r0x000b510f;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "param_3 = param_3 - (int)param_2;" (assignment_expression "param_3 = param_3 - (int)param_2" identifier = (binary_expression "param_3 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar3 = (param_3 >> 3) * -0x55555555;" (assignment_expression "iVar3 = (param_3 >> 3) * -0x55555555" identifier = (binary_expression "(param_3 >> 3) * -0x55555555" (parenthesized_expression "(param_3 >> 3)" ( (binary_expression "param_3 >> 3" identifier >> number_literal) )) * number_literal)) ;) (labeled_statement "joined_r0x000b510f:\n  do {\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  } while (*param_4 + 4U < 4);" statement_identifier : (do_statement "do {\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  } while (*param_4 + 4U < 4);" do (compound_statement "{\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  }" { (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) (if_statement "if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n      *param_1 = param_2;\n      return;\n    }" { (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "param_3 = iVar2 >> 1;" (assignment_expression "param_3 = iVar2 >> 1" identifier = (binary_expression "iVar2 >> 1" identifier >> number_literal)) ;) (expression_statement "puVar1 = param_2 + param_3 * 6;" (assignment_expression "puVar1 = param_2 + param_3 * 6" identifier = (binary_expression "param_2 + param_3 * 6" identifier + (binary_expression "param_3 * 6" identifier * number_literal))) ;) (expression_statement "iVar3 = param_3;" (assignment_expression "iVar3 = param_3" identifier = identifier) ;) (if_statement "if (*puVar1 < 0xfffffffc) goto LAB_000b5150;" if (parenthesized_expression "(*puVar1 < 0xfffffffc)" ( (binary_expression "*puVar1 < 0xfffffffc" (pointer_expression "*puVar1" * identifier) < number_literal) )) (goto_statement "goto LAB_000b5150;" goto statement_identifier ;)) }) while (parenthesized_expression "(*param_4 + 4U < 4)" ( (binary_expression "*param_4 + 4U < 4" (binary_expression "*param_4 + 4U" (pointer_expression "*param_4" * identifier) + number_literal) < number_literal) )) ;)) (goto_statement "goto LAB_000b51a2;" goto statement_identifier ;) (labeled_statement "LAB_000b5150:\n  iVar4 = FUN_002c6110(puVar1);" statement_identifier : (expression_statement "iVar4 = FUN_002c6110(puVar1);" (assignment_expression "iVar4 = FUN_002c6110(puVar1)" identifier = (call_expression "FUN_002c6110(puVar1)" identifier (argument_list "(puVar1)" ( identifier )))) ;)) (expression_statement "bVar5 = *(byte *)(iVar4 + 0x14c);" (assignment_expression "bVar5 = *(byte *)(iVar4 + 0x14c)" identifier = (pointer_expression "*(byte *)(iVar4 + 0x14c)" * (cast_expression "(byte *)(iVar4 + 0x14c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14c)" ( (binary_expression "iVar4 + 0x14c" identifier + number_literal) ))))) ;) (if_statement "if (3 < *param_4 + 4U) {\n    iVar4 = FUN_002c6110(param_4);\n    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);\n  }" if (parenthesized_expression "(3 < *param_4 + 4U)" ( (binary_expression "3 < *param_4 + 4U" number_literal < (binary_expression "*param_4 + 4U" (pointer_expression "*param_4" * identifier) + number_literal)) )) (compound_statement "{\n    iVar4 = FUN_002c6110(param_4);\n    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);\n  }" { (expression_statement "iVar4 = FUN_002c6110(param_4);" (assignment_expression "iVar4 = FUN_002c6110(param_4)" identifier = (call_expression "FUN_002c6110(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);" (assignment_expression "bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1)" identifier = (binary_expression "bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1)" identifier & (parenthesized_expression "(*(byte *)(iVar4 + 0x14c) ^ 1)" ( (binary_expression "*(byte *)(iVar4 + 0x14c) ^ 1" (pointer_expression "*(byte *)(iVar4 + 0x14c)" * (cast_expression "(byte *)(iVar4 + 0x14c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14c)" ( (binary_expression "iVar4 + 0x14c" identifier + number_literal) )))) ^ number_literal) )))) ;) })) (if_statement "if (bVar5 != 0) {\nLAB_000b51a2:\n    param_2 = puVar1 + 6;\n    param_3 = (iVar2 - param_3) + -1;\n    iVar3 = param_3;\n  }" if (parenthesized_expression "(bVar5 != 0)" ( (binary_expression "bVar5 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_000b51a2:\n    param_2 = puVar1 + 6;\n    param_3 = (iVar2 - param_3) + -1;\n    iVar3 = param_3;\n  }" { (labeled_statement "LAB_000b51a2:\n    param_2 = puVar1 + 6;" statement_identifier : (expression_statement "param_2 = puVar1 + 6;" (assignment_expression "param_2 = puVar1 + 6" identifier = (binary_expression "puVar1 + 6" identifier + number_literal)) ;)) (expression_statement "param_3 = (iVar2 - param_3) + -1;" (assignment_expression "param_3 = (iVar2 - param_3) + -1" identifier = (binary_expression "(iVar2 - param_3) + -1" (parenthesized_expression "(iVar2 - param_3)" ( (binary_expression "iVar2 - param_3" identifier - identifier) )) + number_literal)) ;) (expression_statement "iVar3 = param_3;" (assignment_expression "iVar3 = param_3" identifier = identifier) ;) })) (goto_statement "goto joined_r0x000b510f;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) * LIT)) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < LIT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) < LIT) )) ;)) (goto_statement goto statement_identifier ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression (pointer_expression * IDENT) + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ^ LIT) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (goto_statement goto statement_identifier ;) })))
(function_definition "void __regparm3 FUN_000b50e0(undefined4 *param_1,uint *param_2,int param_3,int *param_4)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  byte bVar5;\n  \n  param_3 = param_3 - (int)param_2;\n  iVar3 = (param_3 >> 3) * -0x55555555;\njoined_r0x000b510f:\n  do {\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  } while (*param_4 + 4U < 4);\n  goto LAB_000b51a2;\nLAB_000b5150:\n  iVar4 = FUN_002c6110(puVar1);\n  bVar5 = *(byte *)(iVar4 + 0x14c);\n  if (3 < *param_4 + 4U) {\n    iVar4 = FUN_002c6110(param_4);\n    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);\n  }\n  if (bVar5 != 0) {\nLAB_000b51a2:\n    param_2 = puVar1 + 6;\n    param_3 = (iVar2 - param_3) + -1;\n    iVar3 = param_3;\n  }\n  goto joined_r0x000b510f;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000b50e0(undefined4 *param_1,uint *param_2,int param_3,int *param_4)" (identifier "FUN_000b50e0") (parameter_list "(undefined4 *param_1,uint *param_2,int param_3,int *param_4)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  byte bVar5;\n  \n  param_3 = param_3 - (int)param_2;\n  iVar3 = (param_3 >> 3) * -0x55555555;\njoined_r0x000b510f:\n  do {\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  } while (*param_4 + 4U < 4);\n  goto LAB_000b51a2;\nLAB_000b5150:\n  iVar4 = FUN_002c6110(puVar1);\n  bVar5 = *(byte *)(iVar4 + 0x14c);\n  if (3 < *param_4 + 4U) {\n    iVar4 = FUN_002c6110(param_4);\n    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);\n  }\n  if (bVar5 != 0) {\nLAB_000b51a2:\n    param_2 = puVar1 + 6;\n    param_3 = (iVar2 - param_3) + -1;\n    iVar3 = param_3;\n  }\n  goto joined_r0x000b510f;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (expression_statement "param_3 = param_3 - (int)param_2;" (assignment_expression "param_3 = param_3 - (int)param_2" (identifier "param_3") (= "=") (binary_expression "param_3 - (int)param_2" (identifier "param_3") (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) (; ";")) (expression_statement "iVar3 = (param_3 >> 3) * -0x55555555;" (assignment_expression "iVar3 = (param_3 >> 3) * -0x55555555" (identifier "iVar3") (= "=") (binary_expression "(param_3 >> 3) * -0x55555555" (parenthesized_expression "(param_3 >> 3)" (( "(") (binary_expression "param_3 >> 3" (identifier "param_3") (>> ">>") (number_literal "3")) () ")")) (* "*") (number_literal "-0x55555555"))) (; ";")) (labeled_statement "joined_r0x000b510f:\n  do {\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  } while (*param_4 + 4U < 4);" (statement_identifier "joined_r0x000b510f") (: ":") (do_statement "do {\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  } while (*param_4 + 4U < 4);" (do "do") (compound_statement "{\n    iVar2 = iVar3;\n    if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }\n    param_3 = iVar2 >> 1;\n    puVar1 = param_2 + param_3 * 6;\n    iVar3 = param_3;\n    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;\n  }" ({ "{") (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" (identifier "iVar2") (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (param_3 < 1) {\n      *param_1 = param_2;\n      return;\n    }" (if "if") (parenthesized_expression "(param_3 < 1)" (( "(") (binary_expression "param_3 < 1" (identifier "param_3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      *param_1 = param_2;\n      return;\n    }" ({ "{") (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_3 = iVar2 >> 1;" (assignment_expression "param_3 = iVar2 >> 1" (identifier "param_3") (= "=") (binary_expression "iVar2 >> 1" (identifier "iVar2") (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "puVar1 = param_2 + param_3 * 6;" (assignment_expression "puVar1 = param_2 + param_3 * 6" (identifier "puVar1") (= "=") (binary_expression "param_2 + param_3 * 6" (identifier "param_2") (+ "+") (binary_expression "param_3 * 6" (identifier "param_3") (* "*") (number_literal "6")))) (; ";")) (expression_statement "iVar3 = param_3;" (assignment_expression "iVar3 = param_3" (identifier "iVar3") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (*puVar1 < 0xfffffffc) goto LAB_000b5150;" (if "if") (parenthesized_expression "(*puVar1 < 0xfffffffc)" (( "(") (binary_expression "*puVar1 < 0xfffffffc" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (< "<") (number_literal "0xfffffffc")) () ")")) (goto_statement "goto LAB_000b5150;" (goto "goto") (statement_identifier "LAB_000b5150") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(*param_4 + 4U < 4)" (( "(") (binary_expression "*param_4 + 4U < 4" (binary_expression "*param_4 + 4U" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "4U")) (< "<") (number_literal "4")) () ")")) (; ";"))) (goto_statement "goto LAB_000b51a2;" (goto "goto") (statement_identifier "LAB_000b51a2") (; ";")) (labeled_statement "LAB_000b5150:\n  iVar4 = FUN_002c6110(puVar1);" (statement_identifier "LAB_000b5150") (: ":") (expression_statement "iVar4 = FUN_002c6110(puVar1);" (assignment_expression "iVar4 = FUN_002c6110(puVar1)" (identifier "iVar4") (= "=") (call_expression "FUN_002c6110(puVar1)" (identifier "FUN_002c6110") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")")))) (; ";"))) (expression_statement "bVar5 = *(byte *)(iVar4 + 0x14c);" (assignment_expression "bVar5 = *(byte *)(iVar4 + 0x14c)" (identifier "bVar5") (= "=") (pointer_expression "*(byte *)(iVar4 + 0x14c)" (* "*") (cast_expression "(byte *)(iVar4 + 0x14c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x14c)" (( "(") (binary_expression "iVar4 + 0x14c" (identifier "iVar4") (+ "+") (number_literal "0x14c")) () ")"))))) (; ";")) (if_statement "if (3 < *param_4 + 4U) {\n    iVar4 = FUN_002c6110(param_4);\n    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);\n  }" (if "if") (parenthesized_expression "(3 < *param_4 + 4U)" (( "(") (binary_expression "3 < *param_4 + 4U" (number_literal "3") (< "<") (binary_expression "*param_4 + 4U" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "4U"))) () ")")) (compound_statement "{\n    iVar4 = FUN_002c6110(param_4);\n    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);\n  }" ({ "{") (expression_statement "iVar4 = FUN_002c6110(param_4);" (assignment_expression "iVar4 = FUN_002c6110(param_4)" (identifier "iVar4") (= "=") (call_expression "FUN_002c6110(param_4)" (identifier "FUN_002c6110") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (expression_statement "bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);" (assignment_expression "bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1)" (identifier "bVar5") (= "=") (binary_expression "bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1)" (identifier "bVar5") (& "&") (parenthesized_expression "(*(byte *)(iVar4 + 0x14c) ^ 1)" (( "(") (binary_expression "*(byte *)(iVar4 + 0x14c) ^ 1" (pointer_expression "*(byte *)(iVar4 + 0x14c)" (* "*") (cast_expression "(byte *)(iVar4 + 0x14c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x14c)" (( "(") (binary_expression "iVar4 + 0x14c" (identifier "iVar4") (+ "+") (number_literal "0x14c")) () ")")))) (^ "^") (number_literal "1")) () ")")))) (; ";")) (} "}"))) (if_statement "if (bVar5 != 0) {\nLAB_000b51a2:\n    param_2 = puVar1 + 6;\n    param_3 = (iVar2 - param_3) + -1;\n    iVar3 = param_3;\n  }" (if "if") (parenthesized_expression "(bVar5 != 0)" (( "(") (binary_expression "bVar5 != 0" (identifier "bVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000b51a2:\n    param_2 = puVar1 + 6;\n    param_3 = (iVar2 - param_3) + -1;\n    iVar3 = param_3;\n  }" ({ "{") (labeled_statement "LAB_000b51a2:\n    param_2 = puVar1 + 6;" (statement_identifier "LAB_000b51a2") (: ":") (expression_statement "param_2 = puVar1 + 6;" (assignment_expression "param_2 = puVar1 + 6" (identifier "param_2") (= "=") (binary_expression "puVar1 + 6" (identifier "puVar1") (+ "+") (number_literal "6"))) (; ";"))) (expression_statement "param_3 = (iVar2 - param_3) + -1;" (assignment_expression "param_3 = (iVar2 - param_3) + -1" (identifier "param_3") (= "=") (binary_expression "(iVar2 - param_3) + -1" (parenthesized_expression "(iVar2 - param_3)" (( "(") (binary_expression "iVar2 - param_3" (identifier "iVar2") (- "-") (identifier "param_3")) () ")")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar3 = param_3;" (assignment_expression "iVar3 = param_3" (identifier "iVar3") (= "=") (identifier "param_3")) (; ";")) (} "}"))) (goto_statement "goto joined_r0x000b510f;" (goto "goto") (statement_identifier "joined_r0x000b510f") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* DWARF original name:
   __lower_bound<__gnu_cxx::__normal_iterator<gold::Output_section::Input_section*,
   std::vector<gold::Output_section::Input_section> >, gold::Output_section::Input_section,
   __gnu_cxx::__ops::_Iter_comp_val<(anonymous namespace)::Sort_toc_sections<false> > > */

__normal_iterator<gold::Output_section::Input_section*,_std::vector<gold::Output_section::Input_section,_std::allocator<gold::Output_section::Input_section>var_2>var_2>
 std::
 __lower_bound<__gnu_cxx::__normal_iterator<gold::Output_section::Input_section*,_std::vector<gold::Output_section::Input_section>var_2>,_gold::Output_section::Input_section,___gnu_cxx::__ops::_Iter_comp_val<(anonymous_namespace)::var_1<false>var_2>var_2>
           (void)

{
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  uint *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  byte bVar5;
  
  param_3 = param_3 - (int)param_2;
  iVar3 = (param_3 >> 3) * -0x55555555;
joined_r0x000b510f:
  do {
    iVar2 = iVar3;
    if (param_3 < 1) {
      *param_1 = param_2;
      return;
    }
    param_3 = iVar2 >> 1;
    puVar1 = param_2 + param_3 * 6;
    iVar3 = param_3;
    if (*puVar1 < 0xfffffffc) goto LAB_000b5150;
  } while (*param_4 + 4U < 4);
  goto LAB_000b51a2;
LAB_000b5150:
  iVar4 = FUN_002c6110(puVar1);
  bVar5 = *(byte *)(iVar4 + 0x14c);
  if (3 < *param_4 + 4U) {
    iVar4 = FUN_002c6110(param_4);
    bVar5 = bVar5 & (*(byte *)(iVar4 + 0x14c) ^ 1);
  }
  if (bVar5 != 0) {
LAB_000b51a2:
    param_2 = puVar1 + 6;
    param_3 = (iVar2 - param_3) + -1;
    iVar3 = param_3;
  }
  goto joined_r0x000b510f;
}

