
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void allocate_base_common(Symbol * this, Output_data * od) */

void __thiscall gold::Symbol::allocate_base_common(Symbol *this,Output_data *od)

{
  bool bVar1;
  
  if (((this->field_0x2a & 7) == 0) && ((this->field_0x2b & 0x20) == 0)) {
    bVar1 = is_common_shndx((this->u2_).shndx);
    if (bVar1) {
      (this->u2_).offset_is_from_end = false;
      this->field_0x2a = this->field_0x2a & 0xf8 | 1;
      (this->u1_).output_data = od;
      return;
    }
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/symtab.cc",0xcf,"allocate_base_common");
}



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

void FUN_001774e0(int param_1,undefined4 param_2)

{
  char cVar1;
  
  if (((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)) {
    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));
    if (cVar1 != '\0') {
      *(undefined1 *)(param_1 + 0xc) = 0;
      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;
      *(undefined4 *)(param_1 + 8) = param_2;
      return;
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common");
}


PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x217b19
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
TEST byte ptr [ESI + 0x2a],0x7
JNZ 0x00177500
TEST byte ptr [ESI + 0x2b],0x20
JZ 0x00177520
SUB ESP,0x4
LEA EAX,[EBX + 0xfff0b470]
PUSH EAX
LEA EAX,[EBX + 0xfff0a871]
PUSH 0xcf
PUSH EAX
CALL 0x00069d00
SUB ESP,0xc
PUSH dword ptr [ESI + 0xc]
CALL 0x00177470
ADD ESP,0x10
TEST AL,AL
JZ 0x00177500
MOVZX EAX,byte ptr [ESI + 0x2a]
MOV byte ptr [ESI + 0xc],0x0
AND EAX,0xfffffff8
OR EAX,0x1
MOV byte ptr [ESI + 0x2a],AL
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [ESI + 0x8],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001774e0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  \n  if (((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)) {\n    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));\n    if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common");\n}\n\n" comment (function_definition "void FUN_001774e0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  \n  if (((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)) {\n    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));\n    if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common");\n}" primitive_type (function_declarator "FUN_001774e0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  \n  if (((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)) {\n    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));\n    if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common");\n}" { (declaration "char cVar1;" primitive_type identifier ;) (if_statement "if (((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)) {\n    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));\n    if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }\n  }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0))" ( (binary_expression "((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)" (parenthesized_expression "((*(byte *)(param_1 + 0x2a) & 7) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x2a) & 7) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x2a) & 7)" ( (binary_expression "*(byte *)(param_1 + 0x2a) & 7" (pointer_expression "*(byte *)(param_1 + 0x2a)" * (cast_expression "(byte *)(param_1 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a)" ( (binary_expression "param_1 + 0x2a" identifier + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "((*(byte *)(param_1 + 0x2b) & 0x20) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x2b) & 0x20) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x2b) & 0x20)" ( (binary_expression "*(byte *)(param_1 + 0x2b) & 0x20" (pointer_expression "*(byte *)(param_1 + 0x2b)" * (cast_expression "(byte *)(param_1 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2b)" ( (binary_expression "param_1 + 0x2b" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));\n    if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }\n  }" { (expression_statement "cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc))" identifier = (call_expression "FUN_00177470(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) ;) (if_statement "if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }" { (expression_statement "*(undefined1 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc)" * (cast_expression "(undefined1 *)(param_1 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;" (assignment_expression "*(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1" (pointer_expression "*(byte *)(param_1 + 0x2a)" * (cast_expression "(byte *)(param_1 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a)" ( (binary_expression "param_1 + 0x2a" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0x2a) & 0xf8 | 1" (binary_expression "*(byte *)(param_1 + 0x2a) & 0xf8" (pointer_expression "*(byte *)(param_1 + 0x2a)" * (cast_expression "(byte *)(param_1 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a)" ( (binary_expression "param_1 + 0x2a" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 8) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) })) comment (expression_statement "FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common");" (call_expression "FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common")" identifier (argument_list "("../../gold/symtab.cc",0xcf,"allocate_base_common")" ( (string_literal ""../../gold/symtab.cc"" " string_content ") , number_literal , (string_literal ""allocate_base_common"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void allocate_base_common(Symbol * this, Output_data * od) */\n\nvoid __thiscall gold::Symbol::allocate_base_common(Symbol *this,Output_data *od)\n\n{\n  bool bVar1;\n  \n  if (((this->field_0x2a & 7) == 0) && ((this->field_0x2b & 0x20) == 0)) {\n    bVar1 = is_common_shndx((this->u2_).shndx);\n    if (bVar1) {\n      (this->u2_).offset_is_from_end = false;\n      this->field_0x2a = this->field_0x2a & 0xf8 | 1;\n      (this->u1_).output_data = od;\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/symtab.cc",0xcf,"allocate_base_common");\n}\n\n" comment comment (function_definition "void __thiscall gold::Symbol::allocate_base_common(Symbol *this,Output_data *od)\n\n{\n  bool bVar1;\n  \n  if (((this->field_0x2a & 7) == 0) && ((this->field_0x2b & 0x20) == 0)) {\n    bVar1 = is_common_shndx((this->u2_).shndx);\n    if (bVar1) {\n      (this->u2_).offset_is_from_end = false;\n      this->field_0x2a = this->field_0x2a & 0xf8 | 1;\n      (this->u1_).output_data = od;\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/symtab.cc",0xcf,"allocate_base_common");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Symbol::" identifier : : identifier : :) (function_declarator "allocate_base_common(Symbol *this,Output_data *od)" identifier (parameter_list "(Symbol *this,Output_data *od)" ( (parameter_declaration "Symbol *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Output_data *od" type_identifier (pointer_declarator "*od" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  \n  if (((this->field_0x2a & 7) == 0) && ((this->field_0x2b & 0x20) == 0)) {\n    bVar1 = is_common_shndx((this->u2_).shndx);\n    if (bVar1) {\n      (this->u2_).offset_is_from_end = false;\n      this->field_0x2a = this->field_0x2a & 0xf8 | 1;\n      (this->u1_).output_data = od;\n      return;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/symtab.cc",0xcf,"allocate_base_common");\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (if_statement "if (((this->field_0x2a & 7) == 0) && ((this->field_0x2b & 0x20) == 0)) {\n    bVar1 = is_common_shndx((this->u2_).shndx);\n    if (bVar1) {\n      (this->u2_).offset_is_from_end = false;\n      this->field_0x2a = this->field_0x2a & 0xf8 | 1;\n      (this->u1_).output_data = od;\n      return;\n    }\n  }" if (parenthesized_expression "(((this->field_0x2a & 7) == 0) && ((this->field_0x2b & 0x20) == 0))" ( (binary_expression "((this->field_0x2a & 7) == 0) && ((this->field_0x2b & 0x20) == 0)" (parenthesized_expression "((this->field_0x2a & 7) == 0)" ( (binary_expression "(this->field_0x2a & 7) == 0" (parenthesized_expression "(this->field_0x2a & 7)" ( (binary_expression "this->field_0x2a & 7" (field_expression "this->field_0x2a" identifier -> field_identifier) & number_literal) )) == number_literal) )) && (parenthesized_expression "((this->field_0x2b & 0x20) == 0)" ( (binary_expression "(this->field_0x2b & 0x20) == 0" (parenthesized_expression "(this->field_0x2b & 0x20)" ( (binary_expression "this->field_0x2b & 0x20" (field_expression "this->field_0x2b" identifier -> field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    bVar1 = is_common_shndx((this->u2_).shndx);\n    if (bVar1) {\n      (this->u2_).offset_is_from_end = false;\n      this->field_0x2a = this->field_0x2a & 0xf8 | 1;\n      (this->u1_).output_data = od;\n      return;\n    }\n  }" { (expression_statement "bVar1 = is_common_shndx((this->u2_).shndx);" (assignment_expression "bVar1 = is_common_shndx((this->u2_).shndx)" identifier = (call_expression "is_common_shndx((this->u2_).shndx)" identifier (argument_list "((this->u2_).shndx)" ( (field_expression "(this->u2_).shndx" (parenthesized_expression "(this->u2_)" ( (field_expression "this->u2_" identifier -> field_identifier) )) . field_identifier) )))) ;) (if_statement "if (bVar1) {\n      (this->u2_).offset_is_from_end = false;\n      this->field_0x2a = this->field_0x2a & 0xf8 | 1;\n      (this->u1_).output_data = od;\n      return;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      (this->u2_).offset_is_from_end = false;\n      this->field_0x2a = this->field_0x2a & 0xf8 | 1;\n      (this->u1_).output_data = od;\n      return;\n    }" { (expression_statement "(this->u2_).offset_is_from_end = false;" (assignment_expression "(this->u2_).offset_is_from_end = false" (field_expression "(this->u2_).offset_is_from_end" (parenthesized_expression "(this->u2_)" ( (field_expression "this->u2_" identifier -> field_identifier) )) . field_identifier) = false) ;) (expression_statement "this->field_0x2a = this->field_0x2a & 0xf8 | 1;" (assignment_expression "this->field_0x2a = this->field_0x2a & 0xf8 | 1" (field_expression "this->field_0x2a" identifier -> field_identifier) = (binary_expression "this->field_0x2a & 0xf8 | 1" (binary_expression "this->field_0x2a & 0xf8" (field_expression "this->field_0x2a" identifier -> field_identifier) & number_literal) | number_literal)) ;) (expression_statement "(this->u1_).output_data = od;" (assignment_expression "(this->u1_).output_data = od" (field_expression "(this->u1_).output_data" (parenthesized_expression "(this->u1_)" ( (field_expression "this->u1_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return;" return ;) })) })) comment (expression_statement "do_gold_unreachable("../../gold/symtab.cc",0xcf,"allocate_base_common");" (call_expression "do_gold_unreachable("../../gold/symtab.cc",0xcf,"allocate_base_common")" identifier (argument_list "("../../gold/symtab.cc",0xcf,"allocate_base_common")" ( (string_literal ""../../gold/symtab.cc"" " string_content ") , number_literal , (string_literal ""allocate_base_common"" " string_content ") ))) ;) })))
(translation_unit "void FUN_001774e0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  \n  if (((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)) {\n    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));\n    if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }\n  }\n                    \n  FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common");\n}\n\n" (function_definition "void FUN_001774e0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  \n  if (((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)) {\n    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));\n    if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }\n  }\n                    \n  FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common");\n}" primitive_type (function_declarator "FUN_001774e0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  \n  if (((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)) {\n    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));\n    if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }\n  }\n                    \n  FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common");\n}" { (declaration "char cVar1;" primitive_type identifier ;) (if_statement "if (((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)) {\n    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));\n    if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }\n  }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0))" ( (binary_expression "((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)" (parenthesized_expression "((*(byte *)(param_1 + 0x2a) & 7) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x2a) & 7) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x2a) & 7)" ( (binary_expression "*(byte *)(param_1 + 0x2a) & 7" (pointer_expression "*(byte *)(param_1 + 0x2a)" * (cast_expression "(byte *)(param_1 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a)" ( (binary_expression "param_1 + 0x2a" identifier + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "((*(byte *)(param_1 + 0x2b) & 0x20) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x2b) & 0x20) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x2b) & 0x20)" ( (binary_expression "*(byte *)(param_1 + 0x2b) & 0x20" (pointer_expression "*(byte *)(param_1 + 0x2b)" * (cast_expression "(byte *)(param_1 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2b)" ( (binary_expression "param_1 + 0x2b" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));\n    if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }\n  }" { (expression_statement "cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc))" identifier = (call_expression "FUN_00177470(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) ;) (if_statement "if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }" { (expression_statement "*(undefined1 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc)" * (cast_expression "(undefined1 *)(param_1 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;" (assignment_expression "*(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1" (pointer_expression "*(byte *)(param_1 + 0x2a)" * (cast_expression "(byte *)(param_1 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a)" ( (binary_expression "param_1 + 0x2a" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0x2a) & 0xf8 | 1" (binary_expression "*(byte *)(param_1 + 0x2a) & 0xf8" (pointer_expression "*(byte *)(param_1 + 0x2a)" * (cast_expression "(byte *)(param_1 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a)" ( (binary_expression "param_1 + 0x2a" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 8) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) })) (expression_statement "FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common");" (call_expression "FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common")" identifier (argument_list "("../../gold/symtab.cc",0xcf,"allocate_base_common")" ( (string_literal ""../../gold/symtab.cc"" " string_content ") , number_literal , (string_literal ""allocate_base_common"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_001774e0(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  \n  if (((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)) {\n    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));\n    if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }\n  }\n                    \n  FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common");\n}" (primitive_type "void") (function_declarator "FUN_001774e0(int param_1,undefined4 param_2)" (identifier "FUN_001774e0") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  \n  if (((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)) {\n    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));\n    if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }\n  }\n                    \n  FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common");\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (if_statement "if (((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)) {\n    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));\n    if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0))" (( "(") (binary_expression "((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)" (parenthesized_expression "((*(byte *)(param_1 + 0x2a) & 7) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x2a) & 7) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x2a) & 7)" (( "(") (binary_expression "*(byte *)(param_1 + 0x2a) & 7" (pointer_expression "*(byte *)(param_1 + 0x2a)" (* "*") (cast_expression "(byte *)(param_1 + 0x2a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2a)" (( "(") (binary_expression "param_1 + 0x2a" (identifier "param_1") (+ "+") (number_literal "0x2a")) () ")")))) (& "&") (number_literal "7")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(param_1 + 0x2b) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x2b) & 0x20) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x2b) & 0x20)" (( "(") (binary_expression "*(byte *)(param_1 + 0x2b) & 0x20" (pointer_expression "*(byte *)(param_1 + 0x2b)" (* "*") (cast_expression "(byte *)(param_1 + 0x2b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2b)" (( "(") (binary_expression "param_1 + 0x2b" (identifier "param_1") (+ "+") (number_literal "0x2b")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));\n    if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }\n  }" ({ "{") (expression_statement "cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc))" (identifier "cVar1") (= "=") (call_expression "FUN_00177470(*(undefined4 *)(param_1 + 0xc))" (identifier "FUN_00177470") (argument_list "(*(undefined4 *)(param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      *(undefined1 *)(param_1 + 0xc) = 0;\n      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;\n      *(undefined4 *)(param_1 + 8) = param_2;\n      return;\n    }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;" (assignment_expression "*(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1" (pointer_expression "*(byte *)(param_1 + 0x2a)" (* "*") (cast_expression "(byte *)(param_1 + 0x2a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2a)" (( "(") (binary_expression "param_1 + 0x2a" (identifier "param_1") (+ "+") (number_literal "0x2a")) () ")")))) (= "=") (binary_expression "*(byte *)(param_1 + 0x2a) & 0xf8 | 1" (binary_expression "*(byte *)(param_1 + 0x2a) & 0xf8" (pointer_expression "*(byte *)(param_1 + 0x2a)" (* "*") (cast_expression "(byte *)(param_1 + 0x2a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2a)" (( "(") (binary_expression "param_1 + 0x2a" (identifier "param_1") (+ "+") (number_literal "0x2a")) () ")")))) (& "&") (number_literal "0xf8")) (| "|") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 8) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common");" (call_expression "FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common")" (identifier "FUN_00069d00") (argument_list "("../../gold/symtab.cc",0xcf,"allocate_base_common")" (( "(") (string_literal ""../../gold/symtab.cc"" (" """) (string_content "../../gold/symtab.cc") (" """)) (, ",") (number_literal "0xcf") (, ",") (string_literal ""allocate_base_common"" (" """) (string_content "allocate_base_common") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void allocate_base_common(Symbol * this, Output_data * od) */

void __thiscall gold::type_1::function_1(type_1 *this,type_2 *od)

{
  bool bVar1;
  
  if (((this->field_0x2a & 7) == 0) && ((this->field_0x2b & 0x20) == 0)) {
    bVar1 = var_1((this->u2_).shndx);
    if (bVar1) {
      (this->u2_).offset_is_from_end = false;
      this->field_0x2a = this->field_0x2a & 0xf8 | 1;
      (this->u1_).output_data = od;
      return;
    }
  }
                    /* WARNING: Subroutine does not return */
  var_2("../../gold/symtab.cc",0xcf,"allocate_base_common");
}


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

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

void MASKED(int param_1,undefined4 param_2)

{
  char cVar1;
  
  if (((*(byte *)(param_1 + 0x2a) & 7) == 0) && ((*(byte *)(param_1 + 0x2b) & 0x20) == 0)) {
    cVar1 = FUN_00177470(*(undefined4 *)(param_1 + 0xc));
    if (cVar1 != '\0') {
      *(undefined1 *)(param_1 + 0xc) = 0;
      *(byte *)(param_1 + 0x2a) = *(byte *)(param_1 + 0x2a) & 0xf8 | 1;
      *(undefined4 *)(param_1 + 8) = param_2;
      return;
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/symtab.cc",0xcf,"allocate_base_common");
}

