
/* DWARF original prototype: uint do_section_type(Sized_relobj_file<64,_true> * this, uint shndx) */

uint __thiscall
gold::Sized_relobj_file<64,_true>::do_section_type(Sized_relobj_file<64,_true> *this,uint shndx)

{
  Elf_file<64,_true,_gold::Object> *this_00;
  uint uVar1;
  Object *this_01;
  off_t start;
  uchar *puVar2;
  char *format;
  
  this_00 = &this->elf_file_;
  this_01 = (this->elf_file_).file_;
  elfcpp::Elf_file<64,_true,_gold::Object>::initialize_shnum(this_00);
  if ((this->elf_file_).shnum_ <= shndx) {
    elfcpp::Elf_file<64,_true,_gold::Object>::initialize_shnum(this_00);
    uVar1 = (this->elf_file_).shnum_;
    format = (char *)gettext("section_type: bad shndx %u >= %u");
    Object::error(this_01,format,(ulong)shndx,(ulong)uVar1);
  }
  start = elfcpp::Elf_file<64,_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,0x40,true,true)
    ;
    uVar1 = *(uint *)(puVar2 + 4);
    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
  }
                    /* WARNING: Subroutine does not return */
  Object::input_file((Object *)0x0);
}



uint FUN_001e1430(long param_1,uint param_2)

{
  uint uVar1;
  undefined4 uVar2;
  long lVar3;
  undefined8 uVar4;
  long lVar5;
  
  lVar5 = param_1 + 0xf8;
  lVar3 = *(long *)(param_1 + 0xf8);
  FUN_001dab60(lVar5);
  if (*(uint *)(param_1 + 0x108) <= param_2) {
    FUN_001dab60(lVar5);
    uVar2 = *(undefined4 *)(param_1 + 0x108);
    uVar4 = gettext("section_type: bad shndx %u >= %u");
    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);
  }
  uVar4 = FUN_001e0b10(lVar5,param_2);
  if (*(long *)(lVar3 + 0x28) != 0) {
    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1
                        );
    uVar1 = *(uint *)(lVar5 + 4);
    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
  }
                    /* WARNING: Subroutine does not return */
  FUN_001d17f0();
}


PUSH R13
PUSH R12
MOV R12D,ESI
PUSH RBP
LEA RBP,[RDI + 0xf8]
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
MOV R13,qword ptr [RDI + 0xf8]
MOV RDI,RBP
CALL 0x001dab60
CMP R12D,dword ptr [RBX + 0x108]
JNC 0x001e14a8
MOV RDI,RBP
MOV ESI,R12D
CALL 0x001e0b10
MOV RDI,qword ptr [R13 + 0x28]
TEST RDI,RDI
JZ 0x001e14d6
MOV RSI,qword ptr [R13 + 0x30]
ADD RDI,0x28
MOV ECX,0x40
MOV RDX,RAX
MOV R9D,0x1
MOV R8D,0x1
CALL 0x0018a760
MOV EAX,dword ptr [RAX + 0x4]
ADD RSP,0x8
POP RBX
POP RBP
BSWAP EAX
POP R12
POP R13
RET
MOV RDI,RBP
CALL 0x001dab60
MOV EBX,dword ptr [RBX + 0x108]
LEA RDI,[0x38d9c8]
CALL 0x00149320
MOV EDX,R12D
MOV RDI,R13
MOV RSI,RAX
MOV ECX,EBX
XOR EAX,EAX
CALL 0x001d19e0
JMP 0x001e145f
CALL 0x001d17f0
(translation_unit "uint FUN_001e1430(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long lVar5;\n  \n  lVar5 = param_1 + 0xf8;\n  lVar3 = *(long *)(param_1 + 0xf8);\n  FUN_001dab60(lVar5);\n  if (*(uint *)(param_1 + 0x108) <= param_2) {\n    FUN_001dab60(lVar5);\n    uVar2 = *(undefined4 *)(param_1 + 0x108);\n    uVar4 = gettext("section_type: bad shndx %u >= %u");\n    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);\n  }\n  uVar4 = FUN_001e0b10(lVar5,param_2);\n  if (*(long *)(lVar3 + 0x28) != 0) {\n    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );\n    uVar1 = *(uint *)(lVar5 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001d17f0();\n}\n\n" (function_definition "uint FUN_001e1430(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long lVar5;\n  \n  lVar5 = param_1 + 0xf8;\n  lVar3 = *(long *)(param_1 + 0xf8);\n  FUN_001dab60(lVar5);\n  if (*(uint *)(param_1 + 0x108) <= param_2) {\n    FUN_001dab60(lVar5);\n    uVar2 = *(undefined4 *)(param_1 + 0x108);\n    uVar4 = gettext("section_type: bad shndx %u >= %u");\n    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);\n  }\n  uVar4 = FUN_001e0b10(lVar5,param_2);\n  if (*(long *)(lVar3 + 0x28) != 0) {\n    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );\n    uVar1 = *(uint *)(lVar5 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001d17f0();\n}" type_identifier (function_declarator "FUN_001e1430(long param_1,uint param_2)" identifier (parameter_list "(long param_1,uint param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long lVar5;\n  \n  lVar5 = param_1 + 0xf8;\n  lVar3 = *(long *)(param_1 + 0xf8);\n  FUN_001dab60(lVar5);\n  if (*(uint *)(param_1 + 0x108) <= param_2) {\n    FUN_001dab60(lVar5);\n    uVar2 = *(undefined4 *)(param_1 + 0x108);\n    uVar4 = gettext("section_type: bad shndx %u >= %u");\n    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);\n  }\n  uVar4 = FUN_001e0b10(lVar5,param_2);\n  if (*(long *)(lVar3 + 0x28) != 0) {\n    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );\n    uVar1 = *(uint *)(lVar5 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001d17f0();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar5 = param_1 + 0xf8;" (assignment_expression "lVar5 = param_1 + 0xf8" identifier = (binary_expression "param_1 + 0xf8" identifier + number_literal)) ;) (expression_statement "lVar3 = *(long *)(param_1 + 0xf8);" (assignment_expression "lVar3 = *(long *)(param_1 + 0xf8)" identifier = (pointer_expression "*(long *)(param_1 + 0xf8)" * (cast_expression "(long *)(param_1 + 0xf8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf8)" ( (binary_expression "param_1 + 0xf8" identifier + number_literal) ))))) ;) (expression_statement "FUN_001dab60(lVar5);" (call_expression "FUN_001dab60(lVar5)" identifier (argument_list "(lVar5)" ( identifier ))) ;) (if_statement "if (*(uint *)(param_1 + 0x108) <= param_2) {\n    FUN_001dab60(lVar5);\n    uVar2 = *(undefined4 *)(param_1 + 0x108);\n    uVar4 = gettext("section_type: bad shndx %u >= %u");\n    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);\n  }" if (parenthesized_expression "(*(uint *)(param_1 + 0x108) <= param_2)" ( (binary_expression "*(uint *)(param_1 + 0x108) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x108)" * (cast_expression "(uint *)(param_1 + 0x108)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    FUN_001dab60(lVar5);\n    uVar2 = *(undefined4 *)(param_1 + 0x108);\n    uVar4 = gettext("section_type: bad shndx %u >= %u");\n    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);\n  }" { (expression_statement "FUN_001dab60(lVar5);" (call_expression "FUN_001dab60(lVar5)" identifier (argument_list "(lVar5)" ( identifier ))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x108);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x108)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x108)" * (cast_expression "(undefined4 *)(param_1 + 0x108)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = gettext("section_type: bad shndx %u >= %u");" (assignment_expression "uVar4 = 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_001d19e0(lVar3,uVar4,param_2,uVar2);" (call_expression "FUN_001d19e0(lVar3,uVar4,param_2,uVar2)" identifier (argument_list "(lVar3,uVar4,param_2,uVar2)" ( identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "uVar4 = FUN_001e0b10(lVar5,param_2);" (assignment_expression "uVar4 = FUN_001e0b10(lVar5,param_2)" identifier = (call_expression "FUN_001e0b10(lVar5,param_2)" identifier (argument_list "(lVar5,param_2)" ( identifier , identifier )))) ;) (if_statement "if (*(long *)(lVar3 + 0x28) != 0) {\n    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );\n    uVar1 = *(uint *)(lVar5 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }" if (parenthesized_expression "(*(long *)(lVar3 + 0x28) != 0)" ( (binary_expression "*(long *)(lVar3 + 0x28) != 0" (pointer_expression "*(long *)(lVar3 + 0x28)" * (cast_expression "(long *)(lVar3 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );\n    uVar1 = *(uint *)(lVar5 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }" { (expression_statement "lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );" (assignment_expression "lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        )" identifier = (call_expression "FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        )" identifier (argument_list "(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        )" ( (binary_expression "*(long *)(lVar3 + 0x28) + 0x28" (pointer_expression "*(long *)(lVar3 + 0x28)" * (cast_expression "(long *)(lVar3 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) )))) + number_literal) , (pointer_expression "*(undefined8 *)(lVar3 + 0x30)" * (cast_expression "(undefined8 *)(lVar3 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) , identifier , number_literal , number_literal , number_literal )))) ;) (expression_statement "uVar1 = *(uint *)(lVar5 + 4);" (assignment_expression "uVar1 = *(uint *)(lVar5 + 4)" identifier = (pointer_expression "*(uint *)(lVar5 + 4)" * (cast_expression "(uint *)(lVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 4)" ( (binary_expression "lVar5 + 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 "FUN_001d17f0();" (call_expression "FUN_001d17f0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* DWARF original prototype: uint do_section_type(Sized_relobj_file<64,_true> * this, uint shndx) */\n\nuint __thiscall\ngold::Sized_relobj_file<64,_true>::do_section_type(Sized_relobj_file<64,_true> *this,uint shndx)\n\n{\n  Elf_file<64,_true,_gold::Object> *this_00;\n  uint uVar1;\n  Object *this_01;\n  off_t start;\n  uchar *puVar2;\n  char *format;\n  \n  this_00 = &this->elf_file_;\n  this_01 = (this->elf_file_).file_;\n  elfcpp::Elf_file<64,_true,_gold::Object>::initialize_shnum(this_00);\n  if ((this->elf_file_).shnum_ <= shndx) {\n    elfcpp::Elf_file<64,_true,_gold::Object>::initialize_shnum(this_00);\n    uVar1 = (this->elf_file_).shnum_;\n    format = (char *)gettext("section_type: bad shndx %u >= %u");\n    Object::error(this_01,format,(ulong)shndx,(ulong)uVar1);\n  }\n  start = elfcpp::Elf_file<64,_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,0x40,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  Object::input_file((Object *)0x0);\n}\n\n" comment (declaration "uint __thiscall\ngold::Sized_relobj_file<64,_true>::do_section_type(Sized_relobj_file<64,_true> *this,uint shndx)\n\n{\n  Elf_file<64,_true,_gold::Object> *this_00;" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_true>::do_section_type(Sized_relobj_file<64,_true> *this,uint shndx)\n\n{" identifier > : : (function_declarator "do_section_type(Sized_relobj_file<64,_true> *this,uint shndx)" identifier (parameter_list "(Sized_relobj_file<64,_true> *this,uint shndx)" ( (parameter_declaration "Sized_relobj_file" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_true> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint shndx" type_identifier identifier) ))) {) identifier (ERROR "<64" < number_literal) , identifier , (ERROR "_gold::Object>" identifier : : identifier >) (pointer_declarator "*this_00" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "Object *this_01;" type_identifier (pointer_declarator "*this_01" * identifier) ;) (declaration "off_t start;" type_identifier identifier ;) (declaration "uchar *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * 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<64,_true,_gold::Object>::initialize_shnum(this_00);" statement_identifier (ERROR "::Elf_file<64,_true,_gold::Object>:" : : (comma_expression "Elf_file<64,_true,_gold" (binary_expression "Elf_file<64" 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<64,_true,_gold::Object>::initialize_shnum(this_00);\n    uVar1 = (this->elf_file_).shnum_;\n    format = (char *)gettext("section_type: bad shndx %u >= %u");\n    Object::error(this_01,format,(ulong)shndx,(ulong)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<64,_true,_gold::Object>::initialize_shnum(this_00);\n    uVar1 = (this->elf_file_).shnum_;\n    format = (char *)gettext("section_type: bad shndx %u >= %u");\n    Object::error(this_01,format,(ulong)shndx,(ulong)uVar1);\n  }" { (labeled_statement "elfcpp::Elf_file<64,_true,_gold::Object>::initialize_shnum(this_00);" statement_identifier (ERROR "::Elf_file<64,_true,_gold::Object>:" : : (comma_expression "Elf_file<64,_true,_gold" (binary_expression "Elf_file<64" 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("section_type: bad shndx %u >= %u");" (assignment_expression "format = (char *)gettext("section_type: bad shndx %u >= %u")" identifier = (cast_expression "(char *)gettext("section_type: bad shndx %u >= %u")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (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 ") ))))) ;) (labeled_statement "Object::error(this_01,format,(ulong)shndx,(ulong)uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "error(this_01,format,(ulong)shndx,(ulong)uVar1);" (call_expression "error(this_01,format,(ulong)shndx,(ulong)uVar1)" identifier (argument_list "(this_01,format,(ulong)shndx,(ulong)uVar1)" ( identifier , identifier , (cast_expression "(ulong)shndx" ( (type_descriptor "ulong" type_identifier) ) identifier) , (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;)) })) (ERROR "start = elfcpp::Elf_file<64,_true," (binary_expression "start = elfcpp::Elf_file<64" (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,0x40,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,0x40,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,0x40,true,true)\n    ;" (call_expression "get_view(&this_01->input_file_->file_,this_01->offset_,start,0x40,true,true)" identifier (argument_list "(&this_01->input_file_->file_,this_01->offset_,start,0x40,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 (labeled_statement "Object::input_file((Object *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "input_file((Object *)0x0);" (call_expression "input_file((Object *)0x0)" identifier (argument_list "((Object *)0x0)" ( (cast_expression "(Object *)0x0" ( (type_descriptor "Object *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (ERROR "}" }))
(translation_unit "uint FUN_001e1430(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long lVar5;\n  \n  lVar5 = param_1 + 0xf8;\n  lVar3 = *(long *)(param_1 + 0xf8);\n  FUN_001dab60(lVar5);\n  if (*(uint *)(param_1 + 0x108) <= param_2) {\n    FUN_001dab60(lVar5);\n    uVar2 = *(undefined4 *)(param_1 + 0x108);\n    uVar4 = gettext("section_type: bad shndx %u >= %u");\n    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);\n  }\n  uVar4 = FUN_001e0b10(lVar5,param_2);\n  if (*(long *)(lVar3 + 0x28) != 0) {\n    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );\n    uVar1 = *(uint *)(lVar5 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }\n                    \n  FUN_001d17f0();\n}\n\n" (function_definition "uint FUN_001e1430(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long lVar5;\n  \n  lVar5 = param_1 + 0xf8;\n  lVar3 = *(long *)(param_1 + 0xf8);\n  FUN_001dab60(lVar5);\n  if (*(uint *)(param_1 + 0x108) <= param_2) {\n    FUN_001dab60(lVar5);\n    uVar2 = *(undefined4 *)(param_1 + 0x108);\n    uVar4 = gettext("section_type: bad shndx %u >= %u");\n    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);\n  }\n  uVar4 = FUN_001e0b10(lVar5,param_2);\n  if (*(long *)(lVar3 + 0x28) != 0) {\n    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );\n    uVar1 = *(uint *)(lVar5 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }\n                    \n  FUN_001d17f0();\n}" type_identifier (function_declarator "FUN_001e1430(long param_1,uint param_2)" identifier (parameter_list "(long param_1,uint param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long lVar5;\n  \n  lVar5 = param_1 + 0xf8;\n  lVar3 = *(long *)(param_1 + 0xf8);\n  FUN_001dab60(lVar5);\n  if (*(uint *)(param_1 + 0x108) <= param_2) {\n    FUN_001dab60(lVar5);\n    uVar2 = *(undefined4 *)(param_1 + 0x108);\n    uVar4 = gettext("section_type: bad shndx %u >= %u");\n    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);\n  }\n  uVar4 = FUN_001e0b10(lVar5,param_2);\n  if (*(long *)(lVar3 + 0x28) != 0) {\n    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );\n    uVar1 = *(uint *)(lVar5 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }\n                    \n  FUN_001d17f0();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar5 = param_1 + 0xf8;" (assignment_expression "lVar5 = param_1 + 0xf8" identifier = (binary_expression "param_1 + 0xf8" identifier + number_literal)) ;) (expression_statement "lVar3 = *(long *)(param_1 + 0xf8);" (assignment_expression "lVar3 = *(long *)(param_1 + 0xf8)" identifier = (pointer_expression "*(long *)(param_1 + 0xf8)" * (cast_expression "(long *)(param_1 + 0xf8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf8)" ( (binary_expression "param_1 + 0xf8" identifier + number_literal) ))))) ;) (expression_statement "FUN_001dab60(lVar5);" (call_expression "FUN_001dab60(lVar5)" identifier (argument_list "(lVar5)" ( identifier ))) ;) (if_statement "if (*(uint *)(param_1 + 0x108) <= param_2) {\n    FUN_001dab60(lVar5);\n    uVar2 = *(undefined4 *)(param_1 + 0x108);\n    uVar4 = gettext("section_type: bad shndx %u >= %u");\n    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);\n  }" if (parenthesized_expression "(*(uint *)(param_1 + 0x108) <= param_2)" ( (binary_expression "*(uint *)(param_1 + 0x108) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x108)" * (cast_expression "(uint *)(param_1 + 0x108)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    FUN_001dab60(lVar5);\n    uVar2 = *(undefined4 *)(param_1 + 0x108);\n    uVar4 = gettext("section_type: bad shndx %u >= %u");\n    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);\n  }" { (expression_statement "FUN_001dab60(lVar5);" (call_expression "FUN_001dab60(lVar5)" identifier (argument_list "(lVar5)" ( identifier ))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x108);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x108)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x108)" * (cast_expression "(undefined4 *)(param_1 + 0x108)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = gettext("section_type: bad shndx %u >= %u");" (assignment_expression "uVar4 = 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_001d19e0(lVar3,uVar4,param_2,uVar2);" (call_expression "FUN_001d19e0(lVar3,uVar4,param_2,uVar2)" identifier (argument_list "(lVar3,uVar4,param_2,uVar2)" ( identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "uVar4 = FUN_001e0b10(lVar5,param_2);" (assignment_expression "uVar4 = FUN_001e0b10(lVar5,param_2)" identifier = (call_expression "FUN_001e0b10(lVar5,param_2)" identifier (argument_list "(lVar5,param_2)" ( identifier , identifier )))) ;) (if_statement "if (*(long *)(lVar3 + 0x28) != 0) {\n    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );\n    uVar1 = *(uint *)(lVar5 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }" if (parenthesized_expression "(*(long *)(lVar3 + 0x28) != 0)" ( (binary_expression "*(long *)(lVar3 + 0x28) != 0" (pointer_expression "*(long *)(lVar3 + 0x28)" * (cast_expression "(long *)(lVar3 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );\n    uVar1 = *(uint *)(lVar5 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }" { (expression_statement "lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );" (assignment_expression "lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        )" identifier = (call_expression "FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        )" identifier (argument_list "(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        )" ( (binary_expression "*(long *)(lVar3 + 0x28) + 0x28" (pointer_expression "*(long *)(lVar3 + 0x28)" * (cast_expression "(long *)(lVar3 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) )))) + number_literal) , (pointer_expression "*(undefined8 *)(lVar3 + 0x30)" * (cast_expression "(undefined8 *)(lVar3 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) , identifier , number_literal , number_literal , number_literal )))) ;) (expression_statement "uVar1 = *(uint *)(lVar5 + 4);" (assignment_expression "uVar1 = *(uint *)(lVar5 + 4)" identifier = (pointer_expression "*(uint *)(lVar5 + 4)" * (cast_expression "(uint *)(lVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 4)" ( (binary_expression "lVar5 + 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)) ;) })) (expression_statement "FUN_001d17f0();" (call_expression "FUN_001d17f0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (sized_type_specifier long) (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 (sized_type_specifier long) (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) )))) , 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 ( ))) ;) })))
(function_definition "uint FUN_001e1430(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long lVar5;\n  \n  lVar5 = param_1 + 0xf8;\n  lVar3 = *(long *)(param_1 + 0xf8);\n  FUN_001dab60(lVar5);\n  if (*(uint *)(param_1 + 0x108) <= param_2) {\n    FUN_001dab60(lVar5);\n    uVar2 = *(undefined4 *)(param_1 + 0x108);\n    uVar4 = gettext("section_type: bad shndx %u >= %u");\n    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);\n  }\n  uVar4 = FUN_001e0b10(lVar5,param_2);\n  if (*(long *)(lVar3 + 0x28) != 0) {\n    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );\n    uVar1 = *(uint *)(lVar5 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }\n                    \n  FUN_001d17f0();\n}" (type_identifier "uint") (function_declarator "FUN_001e1430(long param_1,uint param_2)" (identifier "FUN_001e1430") (parameter_list "(long param_1,uint param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  long lVar5;\n  \n  lVar5 = param_1 + 0xf8;\n  lVar3 = *(long *)(param_1 + 0xf8);\n  FUN_001dab60(lVar5);\n  if (*(uint *)(param_1 + 0x108) <= param_2) {\n    FUN_001dab60(lVar5);\n    uVar2 = *(undefined4 *)(param_1 + 0x108);\n    uVar4 = gettext("section_type: bad shndx %u >= %u");\n    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);\n  }\n  uVar4 = FUN_001e0b10(lVar5,param_2);\n  if (*(long *)(lVar3 + 0x28) != 0) {\n    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );\n    uVar1 = *(uint *)(lVar5 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }\n                    \n  FUN_001d17f0();\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (expression_statement "lVar5 = param_1 + 0xf8;" (assignment_expression "lVar5 = param_1 + 0xf8" (identifier "lVar5") (= "=") (binary_expression "param_1 + 0xf8" (identifier "param_1") (+ "+") (number_literal "0xf8"))) (; ";")) (expression_statement "lVar3 = *(long *)(param_1 + 0xf8);" (assignment_expression "lVar3 = *(long *)(param_1 + 0xf8)" (identifier "lVar3") (= "=") (pointer_expression "*(long *)(param_1 + 0xf8)" (* "*") (cast_expression "(long *)(param_1 + 0xf8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf8)" (( "(") (binary_expression "param_1 + 0xf8" (identifier "param_1") (+ "+") (number_literal "0xf8")) () ")"))))) (; ";")) (expression_statement "FUN_001dab60(lVar5);" (call_expression "FUN_001dab60(lVar5)" (identifier "FUN_001dab60") (argument_list "(lVar5)" (( "(") (identifier "lVar5") () ")"))) (; ";")) (if_statement "if (*(uint *)(param_1 + 0x108) <= param_2) {\n    FUN_001dab60(lVar5);\n    uVar2 = *(undefined4 *)(param_1 + 0x108);\n    uVar4 = gettext("section_type: bad shndx %u >= %u");\n    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);\n  }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0x108) <= param_2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x108) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x108)" (* "*") (cast_expression "(uint *)(param_1 + 0x108)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")")))) (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n    FUN_001dab60(lVar5);\n    uVar2 = *(undefined4 *)(param_1 + 0x108);\n    uVar4 = gettext("section_type: bad shndx %u >= %u");\n    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);\n  }" ({ "{") (expression_statement "FUN_001dab60(lVar5);" (call_expression "FUN_001dab60(lVar5)" (identifier "FUN_001dab60") (argument_list "(lVar5)" (( "(") (identifier "lVar5") () ")"))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x108);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x108)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x108)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x108)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")"))))) (; ";")) (expression_statement "uVar4 = gettext("section_type: bad shndx %u >= %u");" (assignment_expression "uVar4 = gettext("section_type: bad shndx %u >= %u")" (identifier "uVar4") (= "=") (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_001d19e0(lVar3,uVar4,param_2,uVar2);" (call_expression "FUN_001d19e0(lVar3,uVar4,param_2,uVar2)" (identifier "FUN_001d19e0") (argument_list "(lVar3,uVar4,param_2,uVar2)" (( "(") (identifier "lVar3") (, ",") (identifier "uVar4") (, ",") (identifier "param_2") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar4 = FUN_001e0b10(lVar5,param_2);" (assignment_expression "uVar4 = FUN_001e0b10(lVar5,param_2)" (identifier "uVar4") (= "=") (call_expression "FUN_001e0b10(lVar5,param_2)" (identifier "FUN_001e0b10") (argument_list "(lVar5,param_2)" (( "(") (identifier "lVar5") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (*(long *)(lVar3 + 0x28) != 0) {\n    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );\n    uVar1 = *(uint *)(lVar5 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }" (if "if") (parenthesized_expression "(*(long *)(lVar3 + 0x28) != 0)" (( "(") (binary_expression "*(long *)(lVar3 + 0x28) != 0" (pointer_expression "*(long *)(lVar3 + 0x28)" (* "*") (cast_expression "(long *)(lVar3 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x28)" (( "(") (binary_expression "lVar3 + 0x28" (identifier "lVar3") (+ "+") (number_literal "0x28")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );\n    uVar1 = *(uint *)(lVar5 + 4);\n    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n  }" ({ "{") (expression_statement "lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        );" (assignment_expression "lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        )" (identifier "lVar5") (= "=") (call_expression "FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        )" (identifier "FUN_0018a760") (argument_list "(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1\n                        )" (( "(") (binary_expression "*(long *)(lVar3 + 0x28) + 0x28" (pointer_expression "*(long *)(lVar3 + 0x28)" (* "*") (cast_expression "(long *)(lVar3 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x28)" (( "(") (binary_expression "lVar3 + 0x28" (identifier "lVar3") (+ "+") (number_literal "0x28")) () ")")))) (+ "+") (number_literal "0x28")) (, ",") (pointer_expression "*(undefined8 *)(lVar3 + 0x30)" (* "*") (cast_expression "(undefined8 *)(lVar3 + 0x30)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x30)" (( "(") (binary_expression "lVar3 + 0x30" (identifier "lVar3") (+ "+") (number_literal "0x30")) () ")")))) (, ",") (identifier "uVar4") (, ",") (number_literal "0x40") (, ",") (number_literal "1") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "uVar1 = *(uint *)(lVar5 + 4);" (assignment_expression "uVar1 = *(uint *)(lVar5 + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(lVar5 + 4)" (* "*") (cast_expression "(uint *)(lVar5 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 4)" (( "(") (binary_expression "lVar5 + 4" (identifier "lVar5") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (return_statement "return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" (return "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 "uVar1") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" (( "(") (binary_expression "uVar1 & 0xff0000" (identifier "uVar1") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" (( "(") (binary_expression "uVar1 & 0xff00" (identifier "uVar1") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar1 << 0x18" (identifier "uVar1") (<< "<<") (number_literal "0x18"))) (; ";")) (} "}"))) (expression_statement "FUN_001d17f0();" (call_expression "FUN_001d17f0()" (identifier "FUN_001d17f0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* DWARF original prototype: uint do_section_type(Sized_relobj_file<64,_true> * this, uint shndx) */

type_1 __thiscall
gold::Sized_relobj_file<64,_true>::do_section_type(Sized_relobj_file<64,_true> *this,type_1 var_2)

{
  Elf_file<64,_true,_gold::type_2> *this_00;
  type_1 var_8;
  type_2 *this_01;
  type_3 start;
  type_4 *var_7;
  char *format;
  
  this_00 = &this->elf_file_;
  this_01 = (this->elf_file_).file_;
  elfcpp::Elf_file<64,_true,_gold::type_2>::var_1(this_00);
  if ((this->elf_file_).shnum_ <= var_2) {
    elfcpp::Elf_file<64,_true,_gold::type_2>::var_1(this_00);
    var_8 = (this->elf_file_).shnum_;
    format = (char *)var_3("section_type: bad shndx %u >= %u");
    Object::var_4(this_01,format,(type_5)var_2,(type_5)var_8);
  }
  start = elfcpp::Elf_file<64,_true,_gold::type_2>::var_5(this_00,var_2);
  if (this_01->input_file_ != (type_6 *)0x0) {
    var_7 = File_read::var_6(&this_01->input_file_->file_,this_01->offset_,start,0x40,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 */
  Object::var_9((type_2 *)0x0);
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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))))) (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))))))

uint MASKED(long param_1,uint param_2)

{
  uint uVar1;
  undefined4 uVar2;
  long lVar3;
  undefined8 uVar4;
  long lVar5;
  
  lVar5 = param_1 + 0xf8;
  lVar3 = *(long *)(param_1 + 0xf8);
  FUN_001dab60(lVar5);
  if (*(uint *)(param_1 + 0x108) <= param_2) {
    FUN_001dab60(lVar5);
    uVar2 = *(undefined4 *)(param_1 + 0x108);
    uVar4 = gettext("section_type: bad shndx %u >= %u");
    FUN_001d19e0(lVar3,uVar4,param_2,uVar2);
  }
  uVar4 = FUN_001e0b10(lVar5,param_2);
  if (*(long *)(lVar3 + 0x28) != 0) {
    lVar5 = FUN_0018a760(*(long *)(lVar3 + 0x28) + 0x28,*(undefined8 *)(lVar3 + 0x30),uVar4,0x40,1,1
                        );
    uVar1 = *(uint *)(lVar5 + 4);
    return uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
  }
                    /* WARNING: Subroutine does not return */
  FUN_001d17f0();
}

