
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void init_opb(void)

{
  uint uVar1;
  uint uVar2;
  
  uVar2 = bfd_arch_mach_octets_per_byte(ldfile_output_architecture,ldfile_output_machine);
  opb_shift = 0;
  if (1 < uVar2) {
    uVar1 = 1;
    if ((uVar2 & 1) != 0) goto LAB_00021658;
    do {
      opb_shift = uVar1;
      uVar2 = uVar2 >> 1;
      uVar1 = opb_shift + 1;
    } while ((uVar2 & 1) == 0);
  }
  if (uVar2 == 1) {
    return;
  }
LAB_00021658:
  info_assert("../../ld/ldlang.c",0xca4);
  return;
}



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

void FUN_000215f0(void)

{
  int iVar1;
  uint uVar2;
  
  uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800);
  DAT_001c38cc = 0;
  if (1 < uVar2) {
    iVar1 = 1;
    if ((uVar2 & 1) != 0) goto LAB_00021658;
    do {
      DAT_001c38cc = iVar1;
      uVar2 = uVar2 >> 1;
      iVar1 = DAT_001c38cc + 1;
    } while ((uVar2 & 1) == 0);
  }
  if (uVar2 == 1) {
    return;
  }
LAB_00021658:
  FUN_00034e10("../../ld/ldlang.c",0xca4);
  return;
}


PUSH EBX
CALL 0x00017c50
ADD EBX,0x1a0a0a
SUB ESP,0x10
LEA EAX,[EBX + 0x2800]
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0x27fc]
PUSH dword ptr [EAX]
CALL 0x000161d0
ADD ESP,0x10
MOV dword ptr [EBX + 0x18cc],0x0
CMP EAX,0x1
JBE 0x00021649
MOV EDX,0x1
TEST AL,0x1
JZ 0x0002163a
JMP 0x00021658
MOV EDX,ECX
SHR EAX,0x1
LEA ECX,[EDX + 0x1]
TEST AL,0x1
JZ 0x00021638
MOV dword ptr [EBX + 0x18cc],EDX
CMP EAX,0x1
JNZ 0x00021658
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x8
LEA EAX,[EBX + 0xffebccfe]
PUSH 0xca4
PUSH EAX
CALL 0x00034e10
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000215f0(void)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800);\n  DAT_001c38cc = 0;\n  if (1 < uVar2) {\n    iVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);\n  }\n  if (uVar2 == 1) {\n    return;\n  }\nLAB_00021658:\n  FUN_00034e10("../../ld/ldlang.c",0xca4);\n  return;\n}\n\n" comment (function_definition "void FUN_000215f0(void)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800);\n  DAT_001c38cc = 0;\n  if (1 < uVar2) {\n    iVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);\n  }\n  if (uVar2 == 1) {\n    return;\n  }\nLAB_00021658:\n  FUN_00034e10("../../ld/ldlang.c",0xca4);\n  return;\n}" primitive_type (function_declarator "FUN_000215f0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800);\n  DAT_001c38cc = 0;\n  if (1 < uVar2) {\n    iVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);\n  }\n  if (uVar2 == 1) {\n    return;\n  }\nLAB_00021658:\n  FUN_00034e10("../../ld/ldlang.c",0xca4);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800);" (assignment_expression "uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800)" identifier = (call_expression "bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800)" identifier (argument_list "(DAT_001c47fc,DAT_001c4800)" ( identifier , identifier )))) ;) (expression_statement "DAT_001c38cc = 0;" (assignment_expression "DAT_001c38cc = 0" identifier = number_literal) ;) (if_statement "if (1 < uVar2) {\n    iVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);\n  }" if (parenthesized_expression "(1 < uVar2)" ( (binary_expression "1 < uVar2" number_literal < identifier) )) (compound_statement "{\n    iVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if ((uVar2 & 1) != 0) goto LAB_00021658;" if (parenthesized_expression "((uVar2 & 1) != 0)" ( (binary_expression "(uVar2 & 1) != 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00021658;" goto statement_identifier ;)) (do_statement "do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);" do (compound_statement "{\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    }" { (expression_statement "DAT_001c38cc = iVar1;" (assignment_expression "DAT_001c38cc = iVar1" identifier = identifier) ;) (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" identifier = (binary_expression "uVar2 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar1 = DAT_001c38cc + 1;" (assignment_expression "iVar1 = DAT_001c38cc + 1" identifier = (binary_expression "DAT_001c38cc + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((uVar2 & 1) == 0)" ( (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) == number_literal) )) ;) })) (if_statement "if (uVar2 == 1) {\n    return;\n  }" if (parenthesized_expression "(uVar2 == 1)" ( (binary_expression "uVar2 == 1" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00021658:\n  FUN_00034e10("../../ld/ldlang.c",0xca4);" statement_identifier : (expression_statement "FUN_00034e10("../../ld/ldlang.c",0xca4);" (call_expression "FUN_00034e10("../../ld/ldlang.c",0xca4)" identifier (argument_list "("../../ld/ldlang.c",0xca4)" ( (string_literal ""../../ld/ldlang.c"" " string_content ") , number_literal ))) ;)) (return_statement "return;" return ;) })))
(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\nvoid init_opb(void)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar2 = bfd_arch_mach_octets_per_byte(ldfile_output_architecture,ldfile_output_machine);\n  opb_shift = 0;\n  if (1 < uVar2) {\n    uVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      opb_shift = uVar1;\n      uVar2 = uVar2 >> 1;\n      uVar1 = opb_shift + 1;\n    } while ((uVar2 & 1) == 0);\n  }\n  if (uVar2 == 1) {\n    return;\n  }\nLAB_00021658:\n  info_assert("../../ld/ldlang.c",0xca4);\n  return;\n}\n\n" comment comment (function_definition "void init_opb(void)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar2 = bfd_arch_mach_octets_per_byte(ldfile_output_architecture,ldfile_output_machine);\n  opb_shift = 0;\n  if (1 < uVar2) {\n    uVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      opb_shift = uVar1;\n      uVar2 = uVar2 >> 1;\n      uVar1 = opb_shift + 1;\n    } while ((uVar2 & 1) == 0);\n  }\n  if (uVar2 == 1) {\n    return;\n  }\nLAB_00021658:\n  info_assert("../../ld/ldlang.c",0xca4);\n  return;\n}" primitive_type (function_declarator "init_opb(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar2 = bfd_arch_mach_octets_per_byte(ldfile_output_architecture,ldfile_output_machine);\n  opb_shift = 0;\n  if (1 < uVar2) {\n    uVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      opb_shift = uVar1;\n      uVar2 = uVar2 >> 1;\n      uVar1 = opb_shift + 1;\n    } while ((uVar2 & 1) == 0);\n  }\n  if (uVar2 == 1) {\n    return;\n  }\nLAB_00021658:\n  info_assert("../../ld/ldlang.c",0xca4);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = bfd_arch_mach_octets_per_byte(ldfile_output_architecture,ldfile_output_machine);" (assignment_expression "uVar2 = bfd_arch_mach_octets_per_byte(ldfile_output_architecture,ldfile_output_machine)" identifier = (call_expression "bfd_arch_mach_octets_per_byte(ldfile_output_architecture,ldfile_output_machine)" identifier (argument_list "(ldfile_output_architecture,ldfile_output_machine)" ( identifier , identifier )))) ;) (expression_statement "opb_shift = 0;" (assignment_expression "opb_shift = 0" identifier = number_literal) ;) (if_statement "if (1 < uVar2) {\n    uVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      opb_shift = uVar1;\n      uVar2 = uVar2 >> 1;\n      uVar1 = opb_shift + 1;\n    } while ((uVar2 & 1) == 0);\n  }" if (parenthesized_expression "(1 < uVar2)" ( (binary_expression "1 < uVar2" number_literal < identifier) )) (compound_statement "{\n    uVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      opb_shift = uVar1;\n      uVar2 = uVar2 >> 1;\n      uVar1 = opb_shift + 1;\n    } while ((uVar2 & 1) == 0);\n  }" { (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) (if_statement "if ((uVar2 & 1) != 0) goto LAB_00021658;" if (parenthesized_expression "((uVar2 & 1) != 0)" ( (binary_expression "(uVar2 & 1) != 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00021658;" goto statement_identifier ;)) (do_statement "do {\n      opb_shift = uVar1;\n      uVar2 = uVar2 >> 1;\n      uVar1 = opb_shift + 1;\n    } while ((uVar2 & 1) == 0);" do (compound_statement "{\n      opb_shift = uVar1;\n      uVar2 = uVar2 >> 1;\n      uVar1 = opb_shift + 1;\n    }" { (expression_statement "opb_shift = uVar1;" (assignment_expression "opb_shift = uVar1" identifier = identifier) ;) (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" identifier = (binary_expression "uVar2 >> 1" identifier >> number_literal)) ;) (expression_statement "uVar1 = opb_shift + 1;" (assignment_expression "uVar1 = opb_shift + 1" identifier = (binary_expression "opb_shift + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((uVar2 & 1) == 0)" ( (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) == number_literal) )) ;) })) (if_statement "if (uVar2 == 1) {\n    return;\n  }" if (parenthesized_expression "(uVar2 == 1)" ( (binary_expression "uVar2 == 1" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00021658:\n  info_assert("../../ld/ldlang.c",0xca4);" statement_identifier : (expression_statement "info_assert("../../ld/ldlang.c",0xca4);" (call_expression "info_assert("../../ld/ldlang.c",0xca4)" identifier (argument_list "("../../ld/ldlang.c",0xca4)" ( (string_literal ""../../ld/ldlang.c"" " string_content ") , number_literal ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000215f0(void)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800);\n  DAT_001c38cc = 0;\n  if (1 < uVar2) {\n    iVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);\n  }\n  if (uVar2 == 1) {\n    return;\n  }\nLAB_00021658:\n  FUN_00034e10("../../ld/ldlang.c",0xca4);\n  return;\n}\n\n" (function_definition "void FUN_000215f0(void)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800);\n  DAT_001c38cc = 0;\n  if (1 < uVar2) {\n    iVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);\n  }\n  if (uVar2 == 1) {\n    return;\n  }\nLAB_00021658:\n  FUN_00034e10("../../ld/ldlang.c",0xca4);\n  return;\n}" primitive_type (function_declarator "FUN_000215f0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800);\n  DAT_001c38cc = 0;\n  if (1 < uVar2) {\n    iVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);\n  }\n  if (uVar2 == 1) {\n    return;\n  }\nLAB_00021658:\n  FUN_00034e10("../../ld/ldlang.c",0xca4);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800);" (assignment_expression "uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800)" identifier = (call_expression "bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800)" identifier (argument_list "(DAT_001c47fc,DAT_001c4800)" ( identifier , identifier )))) ;) (expression_statement "DAT_001c38cc = 0;" (assignment_expression "DAT_001c38cc = 0" identifier = number_literal) ;) (if_statement "if (1 < uVar2) {\n    iVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);\n  }" if (parenthesized_expression "(1 < uVar2)" ( (binary_expression "1 < uVar2" number_literal < identifier) )) (compound_statement "{\n    iVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if ((uVar2 & 1) != 0) goto LAB_00021658;" if (parenthesized_expression "((uVar2 & 1) != 0)" ( (binary_expression "(uVar2 & 1) != 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00021658;" goto statement_identifier ;)) (do_statement "do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);" do (compound_statement "{\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    }" { (expression_statement "DAT_001c38cc = iVar1;" (assignment_expression "DAT_001c38cc = iVar1" identifier = identifier) ;) (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" identifier = (binary_expression "uVar2 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar1 = DAT_001c38cc + 1;" (assignment_expression "iVar1 = DAT_001c38cc + 1" identifier = (binary_expression "DAT_001c38cc + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((uVar2 & 1) == 0)" ( (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) == number_literal) )) ;) })) (if_statement "if (uVar2 == 1) {\n    return;\n  }" if (parenthesized_expression "(uVar2 == 1)" ( (binary_expression "uVar2 == 1" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00021658:\n  FUN_00034e10("../../ld/ldlang.c",0xca4);" statement_identifier : (expression_statement "FUN_00034e10("../../ld/ldlang.c",0xca4);" (call_expression "FUN_00034e10("../../ld/ldlang.c",0xca4)" identifier (argument_list "("../../ld/ldlang.c",0xca4)" ( (string_literal ""../../ld/ldlang.c"" " string_content ") , number_literal ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (goto_statement goto statement_identifier ;)) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_000215f0(void)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800);\n  DAT_001c38cc = 0;\n  if (1 < uVar2) {\n    iVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);\n  }\n  if (uVar2 == 1) {\n    return;\n  }\nLAB_00021658:\n  FUN_00034e10("../../ld/ldlang.c",0xca4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000215f0(void)" (identifier "FUN_000215f0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800);\n  DAT_001c38cc = 0;\n  if (1 < uVar2) {\n    iVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);\n  }\n  if (uVar2 == 1) {\n    return;\n  }\nLAB_00021658:\n  FUN_00034e10("../../ld/ldlang.c",0xca4);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800);" (assignment_expression "uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800)" (identifier "uVar2") (= "=") (call_expression "bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800)" (identifier "bfd_arch_mach_octets_per_byte") (argument_list "(DAT_001c47fc,DAT_001c4800)" (( "(") (identifier "DAT_001c47fc") (, ",") (identifier "DAT_001c4800") () ")")))) (; ";")) (expression_statement "DAT_001c38cc = 0;" (assignment_expression "DAT_001c38cc = 0" (identifier "DAT_001c38cc") (= "=") (number_literal "0")) (; ";")) (if_statement "if (1 < uVar2) {\n    iVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);\n  }" (if "if") (parenthesized_expression "(1 < uVar2)" (( "(") (binary_expression "1 < uVar2" (number_literal "1") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n    iVar1 = 1;\n    if ((uVar2 & 1) != 0) goto LAB_00021658;\n    do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);\n  }" ({ "{") (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (if_statement "if ((uVar2 & 1) != 0) goto LAB_00021658;" (if "if") (parenthesized_expression "((uVar2 & 1) != 0)" (( "(") (binary_expression "(uVar2 & 1) != 0" (parenthesized_expression "(uVar2 & 1)" (( "(") (binary_expression "uVar2 & 1" (identifier "uVar2") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00021658;" (goto "goto") (statement_identifier "LAB_00021658") (; ";"))) (do_statement "do {\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    } while ((uVar2 & 1) == 0);" (do "do") (compound_statement "{\n      DAT_001c38cc = iVar1;\n      uVar2 = uVar2 >> 1;\n      iVar1 = DAT_001c38cc + 1;\n    }" ({ "{") (expression_statement "DAT_001c38cc = iVar1;" (assignment_expression "DAT_001c38cc = iVar1" (identifier "DAT_001c38cc") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 >> 1" (identifier "uVar2") (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = DAT_001c38cc + 1;" (assignment_expression "iVar1 = DAT_001c38cc + 1" (identifier "iVar1") (= "=") (binary_expression "DAT_001c38cc + 1" (identifier "DAT_001c38cc") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((uVar2 & 1) == 0)" (( "(") (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" (( "(") (binary_expression "uVar2 & 1" (identifier "uVar2") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (; ";")) (} "}"))) (if_statement "if (uVar2 == 1) {\n    return;\n  }" (if "if") (parenthesized_expression "(uVar2 == 1)" (( "(") (binary_expression "uVar2 == 1" (identifier "uVar2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_00021658:\n  FUN_00034e10("../../ld/ldlang.c",0xca4);" (statement_identifier "LAB_00021658") (: ":") (expression_statement "FUN_00034e10("../../ld/ldlang.c",0xca4);" (call_expression "FUN_00034e10("../../ld/ldlang.c",0xca4)" (identifier "FUN_00034e10") (argument_list "("../../ld/ldlang.c",0xca4)" (( "(") (string_literal ""../../ld/ldlang.c"" (" """) (string_content "../../ld/ldlang.c") (" """)) (, ",") (number_literal "0xca4") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  type_1 uVar1;
  type_1 var_2;
  
  var_2 = var_1(ldfile_output_architecture,ldfile_output_machine);
  var_3 = 0;
  if (1 < var_2) {
    uVar1 = 1;
    if ((var_2 & 1) != 0) goto LAB_00021658;
    do {
      var_3 = uVar1;
      var_2 = var_2 >> 1;
      uVar1 = var_3 + 1;
    } while ((var_2 & 1) == 0);
  }
  if (var_2 == 1) {
    return;
  }
LAB_00021658:
  var_4("../../ld/ldlang.c",0xca4);
  return;
}


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

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

void MASKED(void)

{
  int iVar1;
  uint uVar2;
  
  uVar2 = bfd_arch_mach_octets_per_byte(DAT_001c47fc,DAT_001c4800);
  DAT_001c38cc = 0;
  if (1 < uVar2) {
    iVar1 = 1;
    if ((uVar2 & 1) != 0) goto LAB_00021658;
    do {
      DAT_001c38cc = iVar1;
      uVar2 = uVar2 >> 1;
      iVar1 = DAT_001c38cc + 1;
    } while ((uVar2 & 1) == 0);
  }
  if (uVar2 == 1) {
    return;
  }
LAB_00021658:
  FUN_00034e10("../../ld/ldlang.c",0xca4);
  return;
}

