
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void Output_reloc(Output_reloc<9,_true,_32,_false> * this, uint type,
   Output_data * od, Address address, bool is_relative) */

void __thiscall
gold::Output_reloc<9,_true,_32,_false>::Output_reloc
          (Output_reloc<9,_true,_32,_false> *this,uint type,Output_data *od,Address address,
          bool is_relative)

{
  this->local_sym_index_ = 0;
  this->address_ = address;
  this->shndx_ = 0xfffffffc;
  *(uint *)&this->field_0x10 = *(uint *)&this->field_0x10 & 0xf0000000 | type & 0xfffffff;
  this->field_0x13 = (byte)(type >> 0x18) & 0xf | (byte)((is_relative & 1) << 4);
  if (type == (type & 0xfffffff)) {
    (this->u1_).relobj = (Sized_relobj<32,_false> *)0x0;
    (this->u2_).od = od;
    return;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/output.cc",0x36e,"Output_reloc");
}



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

void FUN_000f5100(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,
                 byte param_5)

{
  uint uVar1;
  
  param_1[3] = 0;
  param_1[2] = param_4;
  param_1[5] = 0xfffffffc;
  param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff;
  uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4;
  *(char *)((int)param_1 + 0x13) = (char)uVar1;
  if (param_2 == (param_2 & 0xfffffff)) {
    *param_1 = 0;
    param_1[1] = param_3;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1);
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDX,dword ptr [ESP + 0x10]
CALL 0x00035680
ADD EBX,0x249ef4
MOV EAX,dword ptr [ESP + 0x1c]
MOV ESI,dword ptr [ESP + 0x14]
MOVZX EDI,byte ptr [ESP + 0x20]
MOV dword ptr [EDX + 0xc],0x0
MOV dword ptr [EDX + 0x8],EAX
MOV EAX,dword ptr [EDX + 0x10]
MOV ECX,ESI
AND ECX,0xfffffff
AND EDI,0x1
MOV dword ptr [EDX + 0x14],0xfffffffc
AND EAX,0xf0000000
SHL EDI,0x4
OR EAX,ECX
MOV dword ptr [EDX + 0x10],EAX
SHR EAX,0x18
AND EAX,0xffffffef
OR EAX,EDI
AND EAX,0x1f
MOV byte ptr [EDX + 0x13],AL
CMP ESI,ECX
JNZ 0x000f516e
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [EDX],0x0
MOV dword ptr [EDX + 0x4],EAX
POP EBX
POP ESI
POP EDI
RET
PUSH EAX
LEA EAX,[EBX + 0xfff1e3f8]
PUSH EAX
LEA EAX,[EBX + 0xfff1d94b]
PUSH 0x36e
PUSH EAX
CALL 0x0008b620
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000f5100(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 byte param_5)\n\n{\n  uint uVar1;\n  \n  param_1[3] = 0;\n  param_1[2] = param_4;\n  param_1[5] = 0xfffffffc;\n  param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff;\n  uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4;\n  *(char *)((int)param_1 + 0x13) = (char)uVar1;\n  if (param_2 == (param_2 & 0xfffffff)) {\n    *param_1 = 0;\n    param_1[1] = param_3;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1);\n}\n\n" comment (function_definition "void FUN_000f5100(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 byte param_5)\n\n{\n  uint uVar1;\n  \n  param_1[3] = 0;\n  param_1[2] = param_4;\n  param_1[5] = 0xfffffffc;\n  param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff;\n  uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4;\n  *(char *)((int)param_1 + 0x13) = (char)uVar1;\n  if (param_2 == (param_2 & 0xfffffff)) {\n    *param_1 = 0;\n    param_1[1] = param_3;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1);\n}" primitive_type (function_declarator "FUN_000f5100(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 byte param_5)" identifier (parameter_list "(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 byte param_5)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "byte param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  param_1[3] = 0;\n  param_1[2] = param_4;\n  param_1[5] = 0xfffffffc;\n  param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff;\n  uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4;\n  *(char *)((int)param_1 + 0x13) = (char)uVar1;\n  if (param_2 == (param_2 & 0xfffffff)) {\n    *param_1 = 0;\n    param_1[1] = param_3;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = param_4;" (assignment_expression "param_1[2] = param_4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[5] = 0xfffffffc;" (assignment_expression "param_1[5] = 0xfffffffc" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff;" (assignment_expression "param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (binary_expression "param_1[4] & 0xf0000000 | param_2 & 0xfffffff" (binary_expression "param_1[4] & 0xf0000000" (subscript_expression "param_1[4]" identifier [ number_literal ]) & number_literal) | (binary_expression "param_2 & 0xfffffff" identifier & number_literal))) ;) (expression_statement "uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4;" (assignment_expression "uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4" identifier = (binary_expression "(param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4" (binary_expression "(param_2 & 0xf000000) >> 0x18" (parenthesized_expression "(param_2 & 0xf000000)" ( (binary_expression "param_2 & 0xf000000" identifier & number_literal) )) >> number_literal) | (binary_expression "(param_5 & 1) << 4" (parenthesized_expression "(param_5 & 1)" ( (binary_expression "param_5 & 1" identifier & number_literal) )) << number_literal))) ;) (expression_statement "*(char *)((int)param_1 + 0x13) = (char)uVar1;" (assignment_expression "*(char *)((int)param_1 + 0x13) = (char)uVar1" (pointer_expression "*(char *)((int)param_1 + 0x13)" * (cast_expression "(char *)((int)param_1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x13)" ( (binary_expression "(int)param_1 + 0x13" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (param_2 == (param_2 & 0xfffffff)) {\n    *param_1 = 0;\n    param_1[1] = param_3;\n    return;\n  }" if (parenthesized_expression "(param_2 == (param_2 & 0xfffffff))" ( (binary_expression "param_2 == (param_2 & 0xfffffff)" identifier == (parenthesized_expression "(param_2 & 0xfffffff)" ( (binary_expression "param_2 & 0xfffffff" identifier & number_literal) ))) )) (compound_statement "{\n    *param_1 = 0;\n    param_1[1] = param_3;\n    return;\n  }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = param_3;" (assignment_expression "param_1[1] = param_3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1);" (call_expression "FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1)" identifier (argument_list "("../../gold/output.cc",0x36e,"Output_reloc",uVar1)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""Output_reloc"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void Output_reloc(Output_reloc<9,_true,_32,_false> * this, uint type,\n   Output_data * od, Address address, bool is_relative) */\n\nvoid __thiscall\ngold::Output_reloc<9,_true,_32,_false>::Output_reloc\n          (Output_reloc<9,_true,_32,_false> *this,uint type,Output_data *od,Address address,\n          bool is_relative)\n\n{\n  this->local_sym_index_ = 0;\n  this->address_ = address;\n  this->shndx_ = 0xfffffffc;\n  *(uint *)&this->field_0x10 = *(uint *)&this->field_0x10 & 0xf0000000 | type & 0xfffffff;\n  this->field_0x13 = (byte)(type >> 0x18) & 0xf | (byte)((is_relative & 1) << 4);\n  if (type == (type & 0xfffffff)) {\n    (this->u1_).relobj = (Sized_relobj<32,_false> *)0x0;\n    (this->u2_).od = od;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/output.cc",0x36e,"Output_reloc");\n}\n\n" comment comment (declaration "void __thiscall\ngold::Output_reloc<9,_true,_32,_false>::Output_reloc\n          (Output_reloc<9,_true,_32,_false> *this,uint type,Output_data *od,Address address,\n          bool is_relative)\n\n{\n  this->local_sym_index_ = 0;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<9" < number_literal) , identifier , identifier , (ERROR "_false>::Output_reloc\n          (Output_reloc<9,_true,_32,_false> *this,uint type,Output_data *od,Address address,\n          bool is_relative)\n\n{\n  this->" identifier > : : (function_declarator "Output_reloc\n          (Output_reloc<9,_true,_32,_false> *this,uint type,Output_data *od,Address address,\n          bool is_relative)" identifier (parameter_list "(Output_reloc<9,_true,_32,_false> *this,uint type,Output_data *od,Address address,\n          bool is_relative)" ( (parameter_declaration "Output_reloc" type_identifier) (ERROR "<9" < number_literal) , (parameter_declaration "_true" type_identifier) , (parameter_declaration "_32" type_identifier) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint type" type_identifier identifier) , (parameter_declaration "Output_data *od" type_identifier (pointer_declarator "*od" * identifier)) , (parameter_declaration "Address address" type_identifier identifier) , (parameter_declaration "bool is_relative" primitive_type identifier) ))) { identifier ->) (init_declarator "local_sym_index_ = 0" identifier = number_literal) ;) (expression_statement "this->address_ = address;" (assignment_expression "this->address_ = address" (field_expression "this->address_" identifier -> field_identifier) = identifier) ;) (expression_statement "this->shndx_ = 0xfffffffc;" (assignment_expression "this->shndx_ = 0xfffffffc" (field_expression "this->shndx_" identifier -> field_identifier) = number_literal) ;) (expression_statement "*(uint *)&this->field_0x10 = *(uint *)&this->field_0x10 & 0xf0000000 | type & 0xfffffff;" (assignment_expression "*(uint *)&this->field_0x10 = *(uint *)&this->field_0x10 & 0xf0000000 | type & 0xfffffff" (pointer_expression "*(uint *)&this->field_0x10" * (cast_expression "(uint *)&this->field_0x10" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->field_0x10" & (field_expression "this->field_0x10" identifier -> field_identifier)))) = (binary_expression "*(uint *)&this->field_0x10 & 0xf0000000 | type & 0xfffffff" (binary_expression "*(uint *)&this->field_0x10 & 0xf0000000" (pointer_expression "*(uint *)&this->field_0x10" * (cast_expression "(uint *)&this->field_0x10" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->field_0x10" & (field_expression "this->field_0x10" identifier -> field_identifier)))) & number_literal) | (binary_expression "type & 0xfffffff" identifier & number_literal))) ;) (expression_statement "this->field_0x13 = (byte)(type >> 0x18) & 0xf | (byte)((is_relative & 1) << 4);" (assignment_expression "this->field_0x13 = (byte)(type >> 0x18) & 0xf | (byte)((is_relative & 1) << 4)" (field_expression "this->field_0x13" identifier -> field_identifier) = (binary_expression "(byte)(type >> 0x18) & 0xf | (byte)((is_relative & 1) << 4)" (binary_expression "(byte)(type >> 0x18) & 0xf" (call_expression "(byte)(type >> 0x18)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(type >> 0x18)" ( (binary_expression "type >> 0x18" identifier >> number_literal) ))) & number_literal) | (call_expression "(byte)((is_relative & 1) << 4)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((is_relative & 1) << 4)" ( (binary_expression "(is_relative & 1) << 4" (parenthesized_expression "(is_relative & 1)" ( (binary_expression "is_relative & 1" identifier & number_literal) )) << number_literal) ))))) ;) (if_statement "if (type == (type & 0xfffffff)) {\n    (this->u1_).relobj = (Sized_relobj<32,_false> *)0x0;\n    (this->u2_).od = od;\n    return;\n  }" if (parenthesized_expression "(type == (type & 0xfffffff))" ( (binary_expression "type == (type & 0xfffffff)" identifier == (parenthesized_expression "(type & 0xfffffff)" ( (binary_expression "type & 0xfffffff" identifier & number_literal) ))) )) (compound_statement "{\n    (this->u1_).relobj = (Sized_relobj<32,_false> *)0x0;\n    (this->u2_).od = od;\n    return;\n  }" { (expression_statement "(this->u1_).relobj = (Sized_relobj<32,_false> *)0x0;" (assignment_expression "(this->u1_).relobj = (Sized_relobj<32,_false> *)0x0" (field_expression "(this->u1_).relobj" (parenthesized_expression "(this->u1_)" ( (field_expression "this->u1_" identifier -> field_identifier) )) . field_identifier) = (parenthesized_expression "(Sized_relobj<32,_false> *)0x0" ( (comma_expression "Sized_relobj<32,_false> *)0x0" (binary_expression "Sized_relobj<32" identifier < number_literal) , (binary_expression "_false> *)0x0" identifier > (pointer_expression "*)0x0" * (ERROR ")" )) number_literal))) ))) ;) (expression_statement "(this->u2_).od = od;" (assignment_expression "(this->u2_).od = od" (field_expression "(this->u2_).od" (parenthesized_expression "(this->u2_)" ( (field_expression "this->u2_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return;" return ;) })) comment (expression_statement "do_gold_unreachable("../../gold/output.cc",0x36e,"Output_reloc");" (call_expression "do_gold_unreachable("../../gold/output.cc",0x36e,"Output_reloc")" identifier (argument_list "("../../gold/output.cc",0x36e,"Output_reloc")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""Output_reloc"" " string_content ") ))) ;) (ERROR "}" }))
(translation_unit "void FUN_000f5100(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 byte param_5)\n\n{\n  uint uVar1;\n  \n  param_1[3] = 0;\n  param_1[2] = param_4;\n  param_1[5] = 0xfffffffc;\n  param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff;\n  uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4;\n  *(char *)((int)param_1 + 0x13) = (char)uVar1;\n  if (param_2 == (param_2 & 0xfffffff)) {\n    *param_1 = 0;\n    param_1[1] = param_3;\n    return;\n  }\n                    \n  FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1);\n}\n\n" (function_definition "void FUN_000f5100(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 byte param_5)\n\n{\n  uint uVar1;\n  \n  param_1[3] = 0;\n  param_1[2] = param_4;\n  param_1[5] = 0xfffffffc;\n  param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff;\n  uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4;\n  *(char *)((int)param_1 + 0x13) = (char)uVar1;\n  if (param_2 == (param_2 & 0xfffffff)) {\n    *param_1 = 0;\n    param_1[1] = param_3;\n    return;\n  }\n                    \n  FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1);\n}" primitive_type (function_declarator "FUN_000f5100(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 byte param_5)" identifier (parameter_list "(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 byte param_5)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "byte param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  param_1[3] = 0;\n  param_1[2] = param_4;\n  param_1[5] = 0xfffffffc;\n  param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff;\n  uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4;\n  *(char *)((int)param_1 + 0x13) = (char)uVar1;\n  if (param_2 == (param_2 & 0xfffffff)) {\n    *param_1 = 0;\n    param_1[1] = param_3;\n    return;\n  }\n                    \n  FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = param_4;" (assignment_expression "param_1[2] = param_4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[5] = 0xfffffffc;" (assignment_expression "param_1[5] = 0xfffffffc" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff;" (assignment_expression "param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (binary_expression "param_1[4] & 0xf0000000 | param_2 & 0xfffffff" (binary_expression "param_1[4] & 0xf0000000" (subscript_expression "param_1[4]" identifier [ number_literal ]) & number_literal) | (binary_expression "param_2 & 0xfffffff" identifier & number_literal))) ;) (expression_statement "uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4;" (assignment_expression "uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4" identifier = (binary_expression "(param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4" (binary_expression "(param_2 & 0xf000000) >> 0x18" (parenthesized_expression "(param_2 & 0xf000000)" ( (binary_expression "param_2 & 0xf000000" identifier & number_literal) )) >> number_literal) | (binary_expression "(param_5 & 1) << 4" (parenthesized_expression "(param_5 & 1)" ( (binary_expression "param_5 & 1" identifier & number_literal) )) << number_literal))) ;) (expression_statement "*(char *)((int)param_1 + 0x13) = (char)uVar1;" (assignment_expression "*(char *)((int)param_1 + 0x13) = (char)uVar1" (pointer_expression "*(char *)((int)param_1 + 0x13)" * (cast_expression "(char *)((int)param_1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x13)" ( (binary_expression "(int)param_1 + 0x13" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (param_2 == (param_2 & 0xfffffff)) {\n    *param_1 = 0;\n    param_1[1] = param_3;\n    return;\n  }" if (parenthesized_expression "(param_2 == (param_2 & 0xfffffff))" ( (binary_expression "param_2 == (param_2 & 0xfffffff)" identifier == (parenthesized_expression "(param_2 & 0xfffffff)" ( (binary_expression "param_2 & 0xfffffff" identifier & number_literal) ))) )) (compound_statement "{\n    *param_1 = 0;\n    param_1[1] = param_3;\n    return;\n  }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = param_3;" (assignment_expression "param_1[1] = param_3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1);" (call_expression "FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1)" identifier (argument_list "("../../gold/output.cc",0x36e,"Output_reloc",uVar1)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""Output_reloc"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) | (binary_expression IDENT & LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT) | (binary_expression (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (parenthesized_expression ( (binary_expression IDENT & LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "void FUN_000f5100(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 byte param_5)\n\n{\n  uint uVar1;\n  \n  param_1[3] = 0;\n  param_1[2] = param_4;\n  param_1[5] = 0xfffffffc;\n  param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff;\n  uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4;\n  *(char *)((int)param_1 + 0x13) = (char)uVar1;\n  if (param_2 == (param_2 & 0xfffffff)) {\n    *param_1 = 0;\n    param_1[1] = param_3;\n    return;\n  }\n                    \n  FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1);\n}" (primitive_type "void") (function_declarator "FUN_000f5100(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 byte param_5)" (identifier "FUN_000f5100") (parameter_list "(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 byte param_5)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "byte param_5" (type_identifier "byte") (identifier "param_5")) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  param_1[3] = 0;\n  param_1[2] = param_4;\n  param_1[5] = 0xfffffffc;\n  param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff;\n  uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4;\n  *(char *)((int)param_1 + 0x13) = (char)uVar1;\n  if (param_2 == (param_2 & 0xfffffff)) {\n    *param_1 = 0;\n    param_1[1] = param_3;\n    return;\n  }\n                    \n  FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1);\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[2] = param_4;" (assignment_expression "param_1[2] = param_4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "param_1[5] = 0xfffffffc;" (assignment_expression "param_1[5] = 0xfffffffc" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0xfffffffc")) (; ";")) (expression_statement "param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff;" (assignment_expression "param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (binary_expression "param_1[4] & 0xf0000000 | param_2 & 0xfffffff" (binary_expression "param_1[4] & 0xf0000000" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (& "&") (number_literal "0xf0000000")) (| "|") (binary_expression "param_2 & 0xfffffff" (identifier "param_2") (& "&") (number_literal "0xfffffff")))) (; ";")) (expression_statement "uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4;" (assignment_expression "uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4" (identifier "uVar1") (= "=") (binary_expression "(param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4" (binary_expression "(param_2 & 0xf000000) >> 0x18" (parenthesized_expression "(param_2 & 0xf000000)" (( "(") (binary_expression "param_2 & 0xf000000" (identifier "param_2") (& "&") (number_literal "0xf000000")) () ")")) (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(param_5 & 1) << 4" (parenthesized_expression "(param_5 & 1)" (( "(") (binary_expression "param_5 & 1" (identifier "param_5") (& "&") (number_literal "1")) () ")")) (<< "<<") (number_literal "4")))) (; ";")) (expression_statement "*(char *)((int)param_1 + 0x13) = (char)uVar1;" (assignment_expression "*(char *)((int)param_1 + 0x13) = (char)uVar1" (pointer_expression "*(char *)((int)param_1 + 0x13)" (* "*") (cast_expression "(char *)((int)param_1 + 0x13)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x13)" (( "(") (binary_expression "(int)param_1 + 0x13" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x13")) () ")")))) (= "=") (cast_expression "(char)uVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar1"))) (; ";")) (if_statement "if (param_2 == (param_2 & 0xfffffff)) {\n    *param_1 = 0;\n    param_1[1] = param_3;\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 == (param_2 & 0xfffffff))" (( "(") (binary_expression "param_2 == (param_2 & 0xfffffff)" (identifier "param_2") (== "==") (parenthesized_expression "(param_2 & 0xfffffff)" (( "(") (binary_expression "param_2 & 0xfffffff" (identifier "param_2") (& "&") (number_literal "0xfffffff")) () ")"))) () ")")) (compound_statement "{\n    *param_1 = 0;\n    param_1[1] = param_3;\n    return;\n  }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = param_3;" (assignment_expression "param_1[1] = param_3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1);" (call_expression "FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1)" (identifier "FUN_0008b620") (argument_list "("../../gold/output.cc",0x36e,"Output_reloc",uVar1)" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0x36e") (, ",") (string_literal ""Output_reloc"" (" """) (string_content "Output_reloc") (" """)) (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void Output_reloc(Output_reloc<9,_true,_32,_false> * this, uint type,
   Output_data * od, Address address, bool is_relative) */

void __thiscall
gold::Output_reloc<9,_true,_32,var_4>::Output_reloc
          (Output_reloc<9,_true,_32,var_4> *this,type_1 var_1,Output_data *od,Address address,
          bool var_2)

{
  this->local_sym_index_ = 0;
  this->address_ = address;
  this->shndx_ = 0xfffffffc;
  *(type_1 *)&this->field_0x10 = *(type_1 *)&this->field_0x10 & 0xf0000000 | var_1 & 0xfffffff;
  this->field_0x13 = (byte)(var_1 >> 0x18) & 0xf | (byte)((var_2 & 1) << 4);
  if (var_1 == (var_1 & 0xfffffff)) {
    (this->u1_).relobj = (var_3<32,var_4> *)0x0;
    (this->u2_).od = od;
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_5("../../gold/output.cc",0x36e,"Output_reloc");
}


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

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

void MASKED(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,
                 byte param_5)

{
  uint uVar1;
  
  param_1[3] = 0;
  param_1[2] = param_4;
  param_1[5] = 0xfffffffc;
  param_1[4] = param_1[4] & 0xf0000000 | param_2 & 0xfffffff;
  uVar1 = (param_2 & 0xf000000) >> 0x18 | (param_5 & 1) << 4;
  *(char *)((int)param_1 + 0x13) = (char)uVar1;
  if (param_2 == (param_2 & 0xfffffff)) {
    *param_1 = 0;
    param_1[1] = param_3;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0008b620("../../gold/output.cc",0x36e,"Output_reloc",uVar1);
}

