
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: uint do_section_type(Sized_relobj_dwo<32,_true> * this, uint shndx) */

uint __thiscall
gold::Sized_relobj_dwo<32,_true>::do_section_type(Sized_relobj_dwo<32,_true> *this,uint shndx)

{
  Elf_file<32,_true,_gold::Object> *this_00;
  Object *this_01;
  uint uVar1;
  uchar *puVar2;
  char *format;
  off_t start;
  
  this_00 = &this->elf_file_;
  this_01 = (this->elf_file_).file_;
  elfcpp::Elf_file<32,_true,_gold::Object>::initialize_shnum(this_00);
  if ((this->elf_file_).shnum_ <= shndx) {
    elfcpp::Elf_file<32,_true,_gold::Object>::initialize_shnum(this_00);
    uVar1 = (this->elf_file_).shnum_;
    format = (char *)gettext();
    Object::error(this_01,format,shndx,uVar1);
  }
  start = elfcpp::Elf_file<32,_true,_gold::Object>::section_header_offset(this_00,shndx);
  if (this_01->input_file_ != (Input_file *)0x0) {
    puVar2 = File_read::get_view(&this_01->input_file_->file_,this_01->offset_,start,0x28,true,true)
    ;
    uVar1 = *(uint *)(puVar2 + 4);
    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/object.h",0x1e3,"input_file");
}



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

uint FUN_00054680(int param_1,uint param_2)

{
  int iVar1;
  uint uVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 uVar5;
  undefined8 uVar6;
  
  iVar4 = param_1 + 0x90;
  iVar1 = *(int *)(param_1 + 0x90);
  FUN_000519b0(iVar4);
  if (*(uint *)(param_1 + 0x9c) <= param_2) {
    FUN_000519b0(iVar4);
    uVar3 = *(undefined4 *)(param_1 + 0x9c);
    uVar5 = gettext("section_type: bad shndx %u >= %u");
    FUN_000b1840(iVar1,uVar5,param_2,uVar3);
  }
  uVar6 = FUN_00054560(iVar4,param_2);
  if (*(int *)(iVar1 + 0x1c) != 0) {
    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),
                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);
    uVar2 = *(uint *)(iVar4 + 4);
    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x33a977
SUB ESP,0x18
MOV EBP,dword ptr [ESP + 0x2c]
LEA EDI,[EBP + 0x90]
MOV ESI,dword ptr [EBP + 0x90]
PUSH EDI
CALL 0x000519b0
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0x9c]
CMP dword ptr [ESP + 0x24],EAX
JNC 0x000546f8
SUB ESP,0x8
PUSH dword ptr [ESP + 0x2c]
PUSH EDI
CALL 0x00054560
MOV ECX,dword ptr [ESI + 0x1c]
ADD ESP,0x10
TEST ECX,ECX
JZ 0x00054729
ADD ECX,0x1c
PUSH 0x1
PUSH 0x1
PUSH 0x28
PUSH EDX
PUSH EAX
PUSH dword ptr [ESI + 0x24]
PUSH dword ptr [ESI + 0x20]
PUSH ECX
CALL 0x000687f0
MOV EAX,dword ptr [EAX + 0x4]
ADD ESP,0x2c
POP EBX
POP ESI
BSWAP EAX
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EDI
CALL 0x000519b0
MOV EBP,dword ptr [EBP + 0x9c]
LEA EAX,[EBX + 0xffef19f0]
MOV dword ptr [ESP],EAX
CALL 0x000293b0
ADD ESP,0x10
PUSH EBP
PUSH dword ptr [ESP + 0x28]
PUSH EAX
PUSH ESI
CALL 0x000b1840
ADD ESP,0x10
JMP 0x000546b7
PUSH EAX
LEA EAX,[EBX + 0xffef24bc]
PUSH EAX
LEA EAX,[EBX + 0xffef101a]
PUSH 0x1e3
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_00054680(int param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  iVar4 = param_1 + 0x90;\n  iVar1 = *(int *)(param_1 + 0x90);\n  FUN_000519b0(iVar4);\n  if (*(uint *)(param_1 + 0x9c) <= param_2) {\n    FUN_000519b0(iVar4);\n    uVar3 = *(undefined4 *)(param_1 + 0x9c);\n    uVar5 = gettext("section_type: bad shndx %u >= %u");\n    FUN_000b1840(iVar1,uVar5,param_2,uVar3);\n  }\n  uVar6 = FUN_00054560(iVar4,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);\n    uVar2 = *(uint *)(iVar4 + 4);\n    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6);\n}\n\n" comment (function_definition "uint FUN_00054680(int param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  iVar4 = param_1 + 0x90;\n  iVar1 = *(int *)(param_1 + 0x90);\n  FUN_000519b0(iVar4);\n  if (*(uint *)(param_1 + 0x9c) <= param_2) {\n    FUN_000519b0(iVar4);\n    uVar3 = *(undefined4 *)(param_1 + 0x9c);\n    uVar5 = gettext("section_type: bad shndx %u >= %u");\n    FUN_000b1840(iVar1,uVar5,param_2,uVar3);\n  }\n  uVar6 = FUN_00054560(iVar4,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);\n    uVar2 = *(uint *)(iVar4 + 4);\n    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6);\n}" type_identifier (function_declarator "FUN_00054680(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  iVar4 = param_1 + 0x90;\n  iVar1 = *(int *)(param_1 + 0x90);\n  FUN_000519b0(iVar4);\n  if (*(uint *)(param_1 + 0x9c) <= param_2) {\n    FUN_000519b0(iVar4);\n    uVar3 = *(undefined4 *)(param_1 + 0x9c);\n    uVar5 = gettext("section_type: bad shndx %u >= %u");\n    FUN_000b1840(iVar1,uVar5,param_2,uVar3);\n  }\n  uVar6 = FUN_00054560(iVar4,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);\n    uVar2 = *(uint *)(iVar4 + 4);\n    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "iVar4 = param_1 + 0x90;" (assignment_expression "iVar4 = param_1 + 0x90" identifier = (binary_expression "param_1 + 0x90" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x90);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x90)" identifier = (pointer_expression "*(int *)(param_1 + 0x90)" * (cast_expression "(int *)(param_1 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90)" ( (binary_expression "param_1 + 0x90" identifier + number_literal) ))))) ;) (expression_statement "FUN_000519b0(iVar4);" (call_expression "FUN_000519b0(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (if_statement "if (*(uint *)(param_1 + 0x9c) <= param_2) {\n    FUN_000519b0(iVar4);\n    uVar3 = *(undefined4 *)(param_1 + 0x9c);\n    uVar5 = gettext("section_type: bad shndx %u >= %u");\n    FUN_000b1840(iVar1,uVar5,param_2,uVar3);\n  }" if (parenthesized_expression "(*(uint *)(param_1 + 0x9c) <= param_2)" ( (binary_expression "*(uint *)(param_1 + 0x9c) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x9c)" * (cast_expression "(uint *)(param_1 + 0x9c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x9c)" ( (binary_expression "param_1 + 0x9c" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    FUN_000519b0(iVar4);\n    uVar3 = *(undefined4 *)(param_1 + 0x9c);\n    uVar5 = gettext("section_type: bad shndx %u >= %u");\n    FUN_000b1840(iVar1,uVar5,param_2,uVar3);\n  }" { (expression_statement "FUN_000519b0(iVar4);" (call_expression "FUN_000519b0(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "uVar3 = *(undefined4 *)(param_1 + 0x9c);" (assignment_expression "uVar3 = *(undefined4 *)(param_1 + 0x9c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x9c)" * (cast_expression "(undefined4 *)(param_1 + 0x9c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x9c)" ( (binary_expression "param_1 + 0x9c" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = gettext("section_type: bad shndx %u >= %u");" (assignment_expression "uVar5 = gettext("section_type: bad shndx %u >= %u")" identifier = (call_expression "gettext("section_type: bad shndx %u >= %u")" identifier (argument_list "("section_type: bad shndx %u >= %u")" ( (string_literal ""section_type: bad shndx %u >= %u"" " string_content ") )))) ;) (expression_statement "FUN_000b1840(iVar1,uVar5,param_2,uVar3);" (call_expression "FUN_000b1840(iVar1,uVar5,param_2,uVar3)" identifier (argument_list "(iVar1,uVar5,param_2,uVar3)" ( identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "uVar6 = FUN_00054560(iVar4,param_2);" (assignment_expression "uVar6 = FUN_00054560(iVar4,param_2)" identifier = (call_expression "FUN_00054560(iVar4,param_2)" identifier (argument_list "(iVar4,param_2)" ( identifier , identifier )))) ;) (if_statement "if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);\n    uVar2 = *(uint *)(iVar4 + 4);\n    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x1c) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x1c) != 0" (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);\n    uVar2 = *(uint *)(iVar4 + 4);\n    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  }" { (expression_statement "iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);" (assignment_expression "iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1)" identifier = (call_expression "FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1)" identifier (argument_list "(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1)" ( (binary_expression "*(int *)(iVar1 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) + number_literal) , (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) , identifier , number_literal , number_literal , number_literal )))) ;) (expression_statement "uVar2 = *(uint *)(iVar4 + 4);" (assignment_expression "uVar2 = *(uint *)(iVar4 + 4)" identifier = (pointer_expression "*(uint *)(iVar4 + 4)" * (cast_expression "(uint *)(iVar4 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) ))))) ;) (return_statement "return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" return (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal)) ;) })) comment (expression_statement "FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6);" (call_expression "FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6)" identifier (argument_list "("../../gold/object.h",0x1e3,"input_file",(int)uVar6)" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""input_file"" " string_content ") , (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: uint do_section_type(Sized_relobj_dwo<32,_true> * this, uint shndx) */\n\nuint __thiscall\ngold::Sized_relobj_dwo<32,_true>::do_section_type(Sized_relobj_dwo<32,_true> *this,uint shndx)\n\n{\n  Elf_file<32,_true,_gold::Object> *this_00;\n  Object *this_01;\n  uint uVar1;\n  uchar *puVar2;\n  char *format;\n  off_t start;\n  \n  this_00 = &this->elf_file_;\n  this_01 = (this->elf_file_).file_;\n  elfcpp::Elf_file<32,_true,_gold::Object>::initialize_shnum(this_00);\n  if ((this->elf_file_).shnum_ <= shndx) {\n    elfcpp::Elf_file<32,_true,_gold::Object>::initialize_shnum(this_00);\n    uVar1 = (this->elf_file_).shnum_;\n    format = (char *)gettext();\n    Object::error(this_01,format,shndx,uVar1);\n  }\n  start = elfcpp::Elf_file<32,_true,_gold::Object>::section_header_offset(this_00,shndx);\n  if (this_01->input_file_ != (Input_file *)0x0) {\n    puVar2 = File_read::get_view(&this_01->input_file_->file_,this_01->offset_,start,0x28,true,true)\n    ;\n    uVar1 = *(uint *)(puVar2 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/object.h",0x1e3,"input_file");\n}\n\n" comment comment (declaration "uint __thiscall\ngold::Sized_relobj_dwo<32,_true>::do_section_type(Sized_relobj_dwo<32,_true> *this,uint shndx)\n\n{\n  Elf_file<32,_true,_gold::Object> *this_00;" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_true>::do_section_type(Sized_relobj_dwo<32,_true> *this,uint shndx)\n\n{" identifier > : : (function_declarator "do_section_type(Sized_relobj_dwo<32,_true> *this,uint shndx)" identifier (parameter_list "(Sized_relobj_dwo<32,_true> *this,uint shndx)" ( (parameter_declaration "Sized_relobj_dwo" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_true> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint shndx" type_identifier identifier) ))) {) identifier (ERROR "<32" < number_literal) , identifier , (ERROR "_gold::Object>" identifier : : identifier >) (pointer_declarator "*this_00" * identifier) ;) (declaration "Object *this_01;" type_identifier (pointer_declarator "*this_01" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uchar *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "off_t start;" type_identifier identifier ;) (expression_statement "this_00 = &this->elf_file_;" (assignment_expression "this_00 = &this->elf_file_" identifier = (pointer_expression "&this->elf_file_" & (field_expression "this->elf_file_" identifier -> field_identifier))) ;) (expression_statement "this_01 = (this->elf_file_).file_;" (assignment_expression "this_01 = (this->elf_file_).file_" identifier = (field_expression "(this->elf_file_).file_" (parenthesized_expression "(this->elf_file_)" ( (field_expression "this->elf_file_" identifier -> field_identifier) )) . field_identifier)) ;) (labeled_statement "elfcpp::Elf_file<32,_true,_gold::Object>::initialize_shnum(this_00);" statement_identifier (ERROR "::Elf_file<32,_true,_gold::Object>:" : : (comma_expression "Elf_file<32,_true,_gold" (binary_expression "Elf_file<32" identifier < number_literal) , (comma_expression "_true,_gold" identifier , identifier)) : : identifier > :) : (expression_statement "initialize_shnum(this_00);" (call_expression "initialize_shnum(this_00)" identifier (argument_list "(this_00)" ( identifier ))) ;)) (if_statement "if ((this->elf_file_).shnum_ <= shndx) {\n    elfcpp::Elf_file<32,_true,_gold::Object>::initialize_shnum(this_00);\n    uVar1 = (this->elf_file_).shnum_;\n    format = (char *)gettext();\n    Object::error(this_01,format,shndx,uVar1);\n  }" if (parenthesized_expression "((this->elf_file_).shnum_ <= shndx)" ( (binary_expression "(this->elf_file_).shnum_ <= shndx" (field_expression "(this->elf_file_).shnum_" (parenthesized_expression "(this->elf_file_)" ( (field_expression "this->elf_file_" identifier -> field_identifier) )) . field_identifier) <= identifier) )) (compound_statement "{\n    elfcpp::Elf_file<32,_true,_gold::Object>::initialize_shnum(this_00);\n    uVar1 = (this->elf_file_).shnum_;\n    format = (char *)gettext();\n    Object::error(this_01,format,shndx,uVar1);\n  }" { (labeled_statement "elfcpp::Elf_file<32,_true,_gold::Object>::initialize_shnum(this_00);" statement_identifier (ERROR "::Elf_file<32,_true,_gold::Object>:" : : (comma_expression "Elf_file<32,_true,_gold" (binary_expression "Elf_file<32" identifier < number_literal) , (comma_expression "_true,_gold" identifier , identifier)) : : identifier > :) : (expression_statement "initialize_shnum(this_00);" (call_expression "initialize_shnum(this_00)" identifier (argument_list "(this_00)" ( identifier ))) ;)) (expression_statement "uVar1 = (this->elf_file_).shnum_;" (assignment_expression "uVar1 = (this->elf_file_).shnum_" identifier = (field_expression "(this->elf_file_).shnum_" (parenthesized_expression "(this->elf_file_)" ( (field_expression "this->elf_file_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "format = (char *)gettext();" (assignment_expression "format = (char *)gettext()" identifier = (cast_expression "(char *)gettext()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext()" identifier (argument_list "()" ( ))))) ;) (labeled_statement "Object::error(this_01,format,shndx,uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "error(this_01,format,shndx,uVar1);" (call_expression "error(this_01,format,shndx,uVar1)" identifier (argument_list "(this_01,format,shndx,uVar1)" ( identifier , identifier , identifier , identifier ))) ;)) })) (ERROR "start = elfcpp::Elf_file<32,_true," (binary_expression "start = elfcpp::Elf_file<32" (assignment_expression "start = elfcpp" identifier = identifier) (ERROR "::Elf_file" : : identifier) < number_literal) , identifier ,) (labeled_statement "_gold::Object>::section_header_offset(this_00,shndx);" statement_identifier (ERROR "::Object>:" : : identifier > :) : (expression_statement "section_header_offset(this_00,shndx);" (call_expression "section_header_offset(this_00,shndx)" identifier (argument_list "(this_00,shndx)" ( identifier , identifier ))) ;)) (if_statement "if (this_01->input_file_ != (Input_file *)0x0) {\n    puVar2 = File_read::get_view(&this_01->input_file_->file_,this_01->offset_,start,0x28,true,true)\n    ;\n    uVar1 = *(uint *)(puVar2 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }" if (parenthesized_expression "(this_01->input_file_ != (Input_file *)0x0)" ( (binary_expression "this_01->input_file_ != (Input_file *)0x0" (field_expression "this_01->input_file_" identifier -> field_identifier) != (cast_expression "(Input_file *)0x0" ( (type_descriptor "Input_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar2 = File_read::get_view(&this_01->input_file_->file_,this_01->offset_,start,0x28,true,true)\n    ;\n    uVar1 = *(uint *)(puVar2 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }" { (ERROR "puVar2 = File_read::" (assignment_expression "puVar2 = File_read" identifier = identifier) : :) (expression_statement "get_view(&this_01->input_file_->file_,this_01->offset_,start,0x28,true,true)\n    ;" (call_expression "get_view(&this_01->input_file_->file_,this_01->offset_,start,0x28,true,true)" identifier (argument_list "(&this_01->input_file_->file_,this_01->offset_,start,0x28,true,true)" ( (pointer_expression "&this_01->input_file_->file_" & (field_expression "this_01->input_file_->file_" (field_expression "this_01->input_file_" identifier -> field_identifier) -> field_identifier)) , (field_expression "this_01->offset_" identifier -> field_identifier) , identifier , number_literal , true , true ))) ;) (expression_statement "uVar1 = *(uint *)(puVar2 + 4);" (assignment_expression "uVar1 = *(uint *)(puVar2 + 4)" identifier = (pointer_expression "*(uint *)(puVar2 + 4)" * (cast_expression "(uint *)(puVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) ))))) ;) (return_statement "return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" return (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) ;) })) comment (expression_statement "do_gold_unreachable("../../gold/object.h",0x1e3,"input_file");" (call_expression "do_gold_unreachable("../../gold/object.h",0x1e3,"input_file")" identifier (argument_list "("../../gold/object.h",0x1e3,"input_file")" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""input_file"" " string_content ") ))) ;) (ERROR "}" }))
(translation_unit "uint FUN_00054680(int param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  iVar4 = param_1 + 0x90;\n  iVar1 = *(int *)(param_1 + 0x90);\n  FUN_000519b0(iVar4);\n  if (*(uint *)(param_1 + 0x9c) <= param_2) {\n    FUN_000519b0(iVar4);\n    uVar3 = *(undefined4 *)(param_1 + 0x9c);\n    uVar5 = gettext("section_type: bad shndx %u >= %u");\n    FUN_000b1840(iVar1,uVar5,param_2,uVar3);\n  }\n  uVar6 = FUN_00054560(iVar4,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);\n    uVar2 = *(uint *)(iVar4 + 4);\n    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  }\n                    \n  FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6);\n}\n\n" (function_definition "uint FUN_00054680(int param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  iVar4 = param_1 + 0x90;\n  iVar1 = *(int *)(param_1 + 0x90);\n  FUN_000519b0(iVar4);\n  if (*(uint *)(param_1 + 0x9c) <= param_2) {\n    FUN_000519b0(iVar4);\n    uVar3 = *(undefined4 *)(param_1 + 0x9c);\n    uVar5 = gettext("section_type: bad shndx %u >= %u");\n    FUN_000b1840(iVar1,uVar5,param_2,uVar3);\n  }\n  uVar6 = FUN_00054560(iVar4,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);\n    uVar2 = *(uint *)(iVar4 + 4);\n    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  }\n                    \n  FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6);\n}" type_identifier (function_declarator "FUN_00054680(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  iVar4 = param_1 + 0x90;\n  iVar1 = *(int *)(param_1 + 0x90);\n  FUN_000519b0(iVar4);\n  if (*(uint *)(param_1 + 0x9c) <= param_2) {\n    FUN_000519b0(iVar4);\n    uVar3 = *(undefined4 *)(param_1 + 0x9c);\n    uVar5 = gettext("section_type: bad shndx %u >= %u");\n    FUN_000b1840(iVar1,uVar5,param_2,uVar3);\n  }\n  uVar6 = FUN_00054560(iVar4,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);\n    uVar2 = *(uint *)(iVar4 + 4);\n    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  }\n                    \n  FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "iVar4 = param_1 + 0x90;" (assignment_expression "iVar4 = param_1 + 0x90" identifier = (binary_expression "param_1 + 0x90" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x90);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x90)" identifier = (pointer_expression "*(int *)(param_1 + 0x90)" * (cast_expression "(int *)(param_1 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90)" ( (binary_expression "param_1 + 0x90" identifier + number_literal) ))))) ;) (expression_statement "FUN_000519b0(iVar4);" (call_expression "FUN_000519b0(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (if_statement "if (*(uint *)(param_1 + 0x9c) <= param_2) {\n    FUN_000519b0(iVar4);\n    uVar3 = *(undefined4 *)(param_1 + 0x9c);\n    uVar5 = gettext("section_type: bad shndx %u >= %u");\n    FUN_000b1840(iVar1,uVar5,param_2,uVar3);\n  }" if (parenthesized_expression "(*(uint *)(param_1 + 0x9c) <= param_2)" ( (binary_expression "*(uint *)(param_1 + 0x9c) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x9c)" * (cast_expression "(uint *)(param_1 + 0x9c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x9c)" ( (binary_expression "param_1 + 0x9c" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    FUN_000519b0(iVar4);\n    uVar3 = *(undefined4 *)(param_1 + 0x9c);\n    uVar5 = gettext("section_type: bad shndx %u >= %u");\n    FUN_000b1840(iVar1,uVar5,param_2,uVar3);\n  }" { (expression_statement "FUN_000519b0(iVar4);" (call_expression "FUN_000519b0(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "uVar3 = *(undefined4 *)(param_1 + 0x9c);" (assignment_expression "uVar3 = *(undefined4 *)(param_1 + 0x9c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x9c)" * (cast_expression "(undefined4 *)(param_1 + 0x9c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x9c)" ( (binary_expression "param_1 + 0x9c" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = gettext("section_type: bad shndx %u >= %u");" (assignment_expression "uVar5 = gettext("section_type: bad shndx %u >= %u")" identifier = (call_expression "gettext("section_type: bad shndx %u >= %u")" identifier (argument_list "("section_type: bad shndx %u >= %u")" ( (string_literal ""section_type: bad shndx %u >= %u"" " string_content ") )))) ;) (expression_statement "FUN_000b1840(iVar1,uVar5,param_2,uVar3);" (call_expression "FUN_000b1840(iVar1,uVar5,param_2,uVar3)" identifier (argument_list "(iVar1,uVar5,param_2,uVar3)" ( identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "uVar6 = FUN_00054560(iVar4,param_2);" (assignment_expression "uVar6 = FUN_00054560(iVar4,param_2)" identifier = (call_expression "FUN_00054560(iVar4,param_2)" identifier (argument_list "(iVar4,param_2)" ( identifier , identifier )))) ;) (if_statement "if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);\n    uVar2 = *(uint *)(iVar4 + 4);\n    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x1c) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x1c) != 0" (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);\n    uVar2 = *(uint *)(iVar4 + 4);\n    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  }" { (expression_statement "iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);" (assignment_expression "iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1)" identifier = (call_expression "FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1)" identifier (argument_list "(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1)" ( (binary_expression "*(int *)(iVar1 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) + number_literal) , (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) , identifier , number_literal , number_literal , number_literal )))) ;) (expression_statement "uVar2 = *(uint *)(iVar4 + 4);" (assignment_expression "uVar2 = *(uint *)(iVar4 + 4)" identifier = (pointer_expression "*(uint *)(iVar4 + 4)" * (cast_expression "(uint *)(iVar4 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) ))))) ;) (return_statement "return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" return (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal)) ;) })) (expression_statement "FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6);" (call_expression "FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6)" identifier (argument_list "("../../gold/object.h",0x1e3,"input_file",(int)uVar6)" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""input_file"" " string_content ") , (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) })))
(function_definition "uint FUN_00054680(int param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  iVar4 = param_1 + 0x90;\n  iVar1 = *(int *)(param_1 + 0x90);\n  FUN_000519b0(iVar4);\n  if (*(uint *)(param_1 + 0x9c) <= param_2) {\n    FUN_000519b0(iVar4);\n    uVar3 = *(undefined4 *)(param_1 + 0x9c);\n    uVar5 = gettext("section_type: bad shndx %u >= %u");\n    FUN_000b1840(iVar1,uVar5,param_2,uVar3);\n  }\n  uVar6 = FUN_00054560(iVar4,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);\n    uVar2 = *(uint *)(iVar4 + 4);\n    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  }\n                    \n  FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6);\n}" (type_identifier "uint") (function_declarator "FUN_00054680(int param_1,uint param_2)" (identifier "FUN_00054680") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined8 uVar6;\n  \n  iVar4 = param_1 + 0x90;\n  iVar1 = *(int *)(param_1 + 0x90);\n  FUN_000519b0(iVar4);\n  if (*(uint *)(param_1 + 0x9c) <= param_2) {\n    FUN_000519b0(iVar4);\n    uVar3 = *(undefined4 *)(param_1 + 0x9c);\n    uVar5 = gettext("section_type: bad shndx %u >= %u");\n    FUN_000b1840(iVar1,uVar5,param_2,uVar3);\n  }\n  uVar6 = FUN_00054560(iVar4,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);\n    uVar2 = *(uint *)(iVar4 + 4);\n    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  }\n                    \n  FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (expression_statement "iVar4 = param_1 + 0x90;" (assignment_expression "iVar4 = param_1 + 0x90" (identifier "iVar4") (= "=") (binary_expression "param_1 + 0x90" (identifier "param_1") (+ "+") (number_literal "0x90"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x90);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x90)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x90)" (* "*") (cast_expression "(int *)(param_1 + 0x90)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x90)" (( "(") (binary_expression "param_1 + 0x90" (identifier "param_1") (+ "+") (number_literal "0x90")) () ")"))))) (; ";")) (expression_statement "FUN_000519b0(iVar4);" (call_expression "FUN_000519b0(iVar4)" (identifier "FUN_000519b0") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (if_statement "if (*(uint *)(param_1 + 0x9c) <= param_2) {\n    FUN_000519b0(iVar4);\n    uVar3 = *(undefined4 *)(param_1 + 0x9c);\n    uVar5 = gettext("section_type: bad shndx %u >= %u");\n    FUN_000b1840(iVar1,uVar5,param_2,uVar3);\n  }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0x9c) <= param_2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x9c) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x9c)" (* "*") (cast_expression "(uint *)(param_1 + 0x9c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x9c)" (( "(") (binary_expression "param_1 + 0x9c" (identifier "param_1") (+ "+") (number_literal "0x9c")) () ")")))) (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n    FUN_000519b0(iVar4);\n    uVar3 = *(undefined4 *)(param_1 + 0x9c);\n    uVar5 = gettext("section_type: bad shndx %u >= %u");\n    FUN_000b1840(iVar1,uVar5,param_2,uVar3);\n  }" ({ "{") (expression_statement "FUN_000519b0(iVar4);" (call_expression "FUN_000519b0(iVar4)" (identifier "FUN_000519b0") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(param_1 + 0x9c);" (assignment_expression "uVar3 = *(undefined4 *)(param_1 + 0x9c)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x9c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x9c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x9c)" (( "(") (binary_expression "param_1 + 0x9c" (identifier "param_1") (+ "+") (number_literal "0x9c")) () ")"))))) (; ";")) (expression_statement "uVar5 = gettext("section_type: bad shndx %u >= %u");" (assignment_expression "uVar5 = gettext("section_type: bad shndx %u >= %u")" (identifier "uVar5") (= "=") (call_expression "gettext("section_type: bad shndx %u >= %u")" (identifier "gettext") (argument_list "("section_type: bad shndx %u >= %u")" (( "(") (string_literal ""section_type: bad shndx %u >= %u"" (" """) (string_content "section_type: bad shndx %u >= %u") (" """)) () ")")))) (; ";")) (expression_statement "FUN_000b1840(iVar1,uVar5,param_2,uVar3);" (call_expression "FUN_000b1840(iVar1,uVar5,param_2,uVar3)" (identifier "FUN_000b1840") (argument_list "(iVar1,uVar5,param_2,uVar3)" (( "(") (identifier "iVar1") (, ",") (identifier "uVar5") (, ",") (identifier "param_2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar6 = FUN_00054560(iVar4,param_2);" (assignment_expression "uVar6 = FUN_00054560(iVar4,param_2)" (identifier "uVar6") (= "=") (call_expression "FUN_00054560(iVar4,param_2)" (identifier "FUN_00054560") (argument_list "(iVar4,param_2)" (( "(") (identifier "iVar4") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);\n    uVar2 = *(uint *)(iVar4 + 4);\n    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x1c) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x1c) != 0" (pointer_expression "*(int *)(iVar1 + 0x1c)" (* "*") (cast_expression "(int *)(iVar1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);\n    uVar2 = *(uint *)(iVar4 + 4);\n    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n  }" ({ "{") (expression_statement "iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);" (assignment_expression "iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1)" (identifier "iVar4") (= "=") (call_expression "FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1)" (identifier "FUN_000687f0") (argument_list "(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1)" (( "(") (binary_expression "*(int *)(iVar1 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar1 + 0x1c)" (* "*") (cast_expression "(int *)(iVar1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (number_literal "0x1c")) (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")")))) (, ",") (identifier "uVar6") (, ",") (number_literal "0x28") (, ",") (number_literal "1") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "uVar2 = *(uint *)(iVar4 + 4);" (assignment_expression "uVar2 = *(uint *)(iVar4 + 4)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(iVar4 + 4)" (* "*") (cast_expression "(uint *)(iVar4 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (return_statement "return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (return "return") (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" (identifier "uVar2") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" (( "(") (binary_expression "uVar2 & 0xff0000" (identifier "uVar2") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" (( "(") (binary_expression "uVar2 & 0xff00" (identifier "uVar2") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar2 << 0x18" (identifier "uVar2") (<< "<<") (number_literal "0x18"))) (; ";")) (} "}"))) (expression_statement "FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6);" (call_expression "FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6)" (identifier "FUN_00069d00") (argument_list "("../../gold/object.h",0x1e3,"input_file",(int)uVar6)" (( "(") (string_literal ""../../gold/object.h"" (" """) (string_content "../../gold/object.h") (" """)) (, ",") (number_literal "0x1e3") (, ",") (string_literal ""input_file"" (" """) (string_content "input_file") (" """)) (, ",") (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6")) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: uint do_section_type(Sized_relobj_dwo<32,_true> * this, uint shndx) */

type_1 __thiscall
gold::Sized_relobj_dwo<32,_true>::do_section_type(Sized_relobj_dwo<32,_true> *this,type_1 var_2)

{
  Elf_file<32,_true,_gold::type_2> *this_00;
  type_2 *this_01;
  type_1 var_8;
  type_3 *var_7;
  char *format;
  type_4 start;
  
  this_00 = &this->elf_file_;
  this_01 = (this->elf_file_).file_;
  elfcpp::Elf_file<32,_true,_gold::type_2>::var_1(this_00);
  if ((this->elf_file_).shnum_ <= var_2) {
    elfcpp::Elf_file<32,_true,_gold::type_2>::var_1(this_00);
    var_8 = (this->elf_file_).shnum_;
    format = (char *)var_3();
    Object::var_4(this_01,format,var_2,var_8);
  }
  start = elfcpp::Elf_file<32,_true,_gold::type_2>::var_5(this_00,var_2);
  if (this_01->input_file_ != (type_5 *)0x0) {
    var_7 = File_read::var_6(&this_01->input_file_->file_,this_01->offset_,start,0x28,true,true)
    ;
    var_8 = *(type_1 *)(var_7 + 4);
    return var_8 >> 0x18 | (var_8 & 0xff0000) >> 8 | (var_8 & 0xff00) << 8 | var_8 << 0x18;
  }
                    /* WARNING: Subroutine does not return */
  var_9("../../gold/object.h",0x1e3,"input_file");
}


(translation_unit (function_definition type: (type_identifier) 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)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (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: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (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))))) (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))))) (identifier) (number_literal) (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (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))) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))))

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

uint MASKED(int param_1,uint param_2)

{
  int iVar1;
  uint uVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 uVar5;
  undefined8 uVar6;
  
  iVar4 = param_1 + 0x90;
  iVar1 = *(int *)(param_1 + 0x90);
  FUN_000519b0(iVar4);
  if (*(uint *)(param_1 + 0x9c) <= param_2) {
    FUN_000519b0(iVar4);
    uVar3 = *(undefined4 *)(param_1 + 0x9c);
    uVar5 = gettext("section_type: bad shndx %u >= %u");
    FUN_000b1840(iVar1,uVar5,param_2,uVar3);
  }
  uVar6 = FUN_00054560(iVar4,param_2);
  if (*(int *)(iVar1 + 0x1c) != 0) {
    iVar4 = FUN_000687f0(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),
                         *(undefined4 *)(iVar1 + 0x24),uVar6,0x28,1,1);
    uVar2 = *(uint *)(iVar4 + 4);
    return uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/object.h",0x1e3,"input_file",(int)uVar6);
}

