
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: uint64_t do_section_address(Sized_dynobj<32,_false> * this, uint shndx)
    */

uint64_t __thiscall
gold::Sized_dynobj<32,_false>::do_section_address(Sized_dynobj<32,_false> *this,uint shndx)

{
  Elf_file<32,_false,_gold::Object> *this_00;
  Object *this_01;
  uint uVar1;
  uchar *puVar2;
  char *format;
  off_t start;
  Object *in_stack_ffffffe4;
  
  this_00 = &this->elf_file_;
  this_01 = (this->elf_file_).file_;
  elfcpp::Elf_file<32,_false,_gold::Object>::initialize_shnum(this_00);
  if ((this->elf_file_).shnum_ <= shndx) {
    elfcpp::Elf_file<32,_false,_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,_false,_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)
    ;
    return (uint64_t)*(uint *)(puVar2 + 0xc);
  }
                    /* WARNING: Subroutine does not return */
  Object::input_file(in_stack_ffffffe4);
}



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

undefined4 FUN_0016f9a0(int param_1,uint param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 uVar4;
  undefined8 uVar5;
  
  iVar3 = param_1 + 0x60;
  iVar1 = *(int *)(param_1 + 0x60);
  FUN_000c47d0(iVar3);
  if (*(uint *)(param_1 + 0x6c) <= param_2) {
    FUN_000c47d0(iVar3);
    uVar2 = *(undefined4 *)(param_1 + 0x6c);
    uVar4 = gettext("section_flags: bad shndx %u >= %u");
    FUN_000beb20(iVar1,uVar4,param_2,uVar2);
  }
  uVar5 = FUN_000c52b0(iVar3,param_2);
  if (*(int *)(iVar1 + 0x1c) != 0) {
    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),
                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);
    return *(undefined4 *)(iVar3 + 0xc);
  }
                    /* WARNING: Subroutine does not return */
  FUN_0016ad50();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x1cf657
SUB ESP,0x18
MOV EBP,dword ptr [ESP + 0x2c]
LEA EDI,[EBP + 0x60]
MOV ESI,dword ptr [EBP + 0x60]
PUSH EDI
CALL 0x000c47d0
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0x6c]
CMP dword ptr [ESP + 0x24],EAX
JNC 0x0016fa10
SUB ESP,0x8
PUSH dword ptr [ESP + 0x2c]
PUSH EDI
CALL 0x000c52b0
MOV ECX,dword ptr [ESI + 0x1c]
ADD ESP,0x10
TEST ECX,ECX
JZ 0x0016fa3e
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 0x00085770
XOR EDX,EDX
MOV EAX,dword ptr [EAX + 0xc]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EDI
CALL 0x000c47d0
MOV EBP,dword ptr [EBP + 0x6c]
LEA EAX,[EBX + 0xfff17dd8]
MOV dword ptr [ESP],EAX
CALL 0x000283c0
ADD ESP,0x10
PUSH EBP
PUSH dword ptr [ESP + 0x28]
PUSH EAX
PUSH ESI
CALL 0x000beb20
ADD ESP,0x10
JMP 0x0016f9ce
CALL 0x0016ad50
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0016f9a0(int param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000c47d0(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000c47d0(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_000beb20(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000c52b0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);\n    return *(undefined4 *)(iVar3 + 0xc);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0016ad50();\n}\n\n" comment (function_definition "undefined4 FUN_0016f9a0(int param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000c47d0(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000c47d0(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_000beb20(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000c52b0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);\n    return *(undefined4 *)(iVar3 + 0xc);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0016ad50();\n}" type_identifier (function_declarator "FUN_0016f9a0(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  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000c47d0(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000c47d0(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_000beb20(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000c52b0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);\n    return *(undefined4 *)(iVar3 + 0xc);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0016ad50();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (expression_statement "iVar3 = param_1 + 0x60;" (assignment_expression "iVar3 = param_1 + 0x60" identifier = (binary_expression "param_1 + 0x60" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x60);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x60)" identifier = (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "FUN_000c47d0(iVar3);" (call_expression "FUN_000c47d0(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (if_statement "if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000c47d0(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_000beb20(iVar1,uVar4,param_2,uVar2);\n  }" if (parenthesized_expression "(*(uint *)(param_1 + 0x6c) <= param_2)" ( (binary_expression "*(uint *)(param_1 + 0x6c) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x6c)" * (cast_expression "(uint *)(param_1 + 0x6c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    FUN_000c47d0(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_000beb20(iVar1,uVar4,param_2,uVar2);\n  }" { (expression_statement "FUN_000c47d0(iVar3);" (call_expression "FUN_000c47d0(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x6c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x6c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = gettext("section_flags: bad shndx %u >= %u");" (assignment_expression "uVar4 = gettext("section_flags: bad shndx %u >= %u")" identifier = (call_expression "gettext("section_flags: bad shndx %u >= %u")" identifier (argument_list "("section_flags: bad shndx %u >= %u")" ( (string_literal ""section_flags: bad shndx %u >= %u"" " string_content ") )))) ;) (expression_statement "FUN_000beb20(iVar1,uVar4,param_2,uVar2);" (call_expression "FUN_000beb20(iVar1,uVar4,param_2,uVar2)" identifier (argument_list "(iVar1,uVar4,param_2,uVar2)" ( identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "uVar5 = FUN_000c52b0(iVar3,param_2);" (assignment_expression "uVar5 = FUN_000c52b0(iVar3,param_2)" identifier = (call_expression "FUN_000c52b0(iVar3,param_2)" identifier (argument_list "(iVar3,param_2)" ( identifier , identifier )))) ;) (if_statement "if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);\n    return *(undefined4 *)(iVar3 + 0xc);\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    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);\n    return *(undefined4 *)(iVar3 + 0xc);\n  }" { (expression_statement "iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);" (assignment_expression "iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1)" identifier = (call_expression "FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1)" identifier (argument_list "(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,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 )))) ;) (return_statement "return *(undefined4 *)(iVar3 + 0xc);" return (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) ;) })) comment (expression_statement "FUN_0016ad50();" (call_expression "FUN_0016ad50()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: uint64_t do_section_address(Sized_dynobj<32,_false> * this, uint shndx)\n    */\n\nuint64_t __thiscall\ngold::Sized_dynobj<32,_false>::do_section_address(Sized_dynobj<32,_false> *this,uint shndx)\n\n{\n  Elf_file<32,_false,_gold::Object> *this_00;\n  Object *this_01;\n  uint uVar1;\n  uchar *puVar2;\n  char *format;\n  off_t start;\n  Object *in_stack_ffffffe4;\n  \n  this_00 = &this->elf_file_;\n  this_01 = (this->elf_file_).file_;\n  elfcpp::Elf_file<32,_false,_gold::Object>::initialize_shnum(this_00);\n  if ((this->elf_file_).shnum_ <= shndx) {\n    elfcpp::Elf_file<32,_false,_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,_false,_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    return (uint64_t)*(uint *)(puVar2 + 0xc);\n  }\n                    /* WARNING: Subroutine does not return */\n  Object::input_file(in_stack_ffffffe4);\n}\n\n" comment comment (declaration "uint64_t __thiscall\ngold::Sized_dynobj<32,_false>::do_section_address(Sized_dynobj<32,_false> *this,uint shndx)\n\n{\n  Elf_file<32,_false,_gold::Object> *this_00;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_false>::do_section_address(Sized_dynobj<32,_false> *this,uint shndx)\n\n{" identifier > : : (function_declarator "do_section_address(Sized_dynobj<32,_false> *this,uint shndx)" identifier (parameter_list "(Sized_dynobj<32,_false> *this,uint shndx)" ( (parameter_declaration "Sized_dynobj" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_false> *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 ;) (declaration "Object *in_stack_ffffffe4;" type_identifier (pointer_declarator "*in_stack_ffffffe4" * 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,_false,_gold::Object>::initialize_shnum(this_00);" statement_identifier (ERROR "::Elf_file<32,_false,_gold::Object>:" : : (comma_expression "Elf_file<32,_false,_gold" (binary_expression "Elf_file<32" identifier < number_literal) , (comma_expression "_false,_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,_false,_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,_false,_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,_false,_gold::Object>::initialize_shnum(this_00);" statement_identifier (ERROR "::Elf_file<32,_false,_gold::Object>:" : : (comma_expression "Elf_file<32,_false,_gold" (binary_expression "Elf_file<32" identifier < number_literal) , (comma_expression "_false,_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,_false," (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    return (uint64_t)*(uint *)(puVar2 + 0xc);\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    return (uint64_t)*(uint *)(puVar2 + 0xc);\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 ))) ;) (return_statement "return (uint64_t)*(uint *)(puVar2 + 0xc);" return (cast_expression "(uint64_t)*(uint *)(puVar2 + 0xc)" ( (type_descriptor "uint64_t" primitive_type) ) (pointer_expression "*(uint *)(puVar2 + 0xc)" * (cast_expression "(uint *)(puVar2 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xc)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) ))))) ;) })) comment (labeled_statement "Object::input_file(in_stack_ffffffe4);" statement_identifier : (ERROR ":" :) (expression_statement "input_file(in_stack_ffffffe4);" (call_expression "input_file(in_stack_ffffffe4)" identifier (argument_list "(in_stack_ffffffe4)" ( identifier ))) ;)) (ERROR "}" }))
(translation_unit "undefined4 FUN_0016f9a0(int param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000c47d0(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000c47d0(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_000beb20(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000c52b0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);\n    return *(undefined4 *)(iVar3 + 0xc);\n  }\n                    \n  FUN_0016ad50();\n}\n\n" (function_definition "undefined4 FUN_0016f9a0(int param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000c47d0(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000c47d0(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_000beb20(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000c52b0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);\n    return *(undefined4 *)(iVar3 + 0xc);\n  }\n                    \n  FUN_0016ad50();\n}" type_identifier (function_declarator "FUN_0016f9a0(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  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000c47d0(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000c47d0(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_000beb20(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000c52b0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);\n    return *(undefined4 *)(iVar3 + 0xc);\n  }\n                    \n  FUN_0016ad50();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (expression_statement "iVar3 = param_1 + 0x60;" (assignment_expression "iVar3 = param_1 + 0x60" identifier = (binary_expression "param_1 + 0x60" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x60);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x60)" identifier = (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "FUN_000c47d0(iVar3);" (call_expression "FUN_000c47d0(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (if_statement "if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000c47d0(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_000beb20(iVar1,uVar4,param_2,uVar2);\n  }" if (parenthesized_expression "(*(uint *)(param_1 + 0x6c) <= param_2)" ( (binary_expression "*(uint *)(param_1 + 0x6c) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x6c)" * (cast_expression "(uint *)(param_1 + 0x6c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    FUN_000c47d0(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_000beb20(iVar1,uVar4,param_2,uVar2);\n  }" { (expression_statement "FUN_000c47d0(iVar3);" (call_expression "FUN_000c47d0(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x6c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x6c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = gettext("section_flags: bad shndx %u >= %u");" (assignment_expression "uVar4 = gettext("section_flags: bad shndx %u >= %u")" identifier = (call_expression "gettext("section_flags: bad shndx %u >= %u")" identifier (argument_list "("section_flags: bad shndx %u >= %u")" ( (string_literal ""section_flags: bad shndx %u >= %u"" " string_content ") )))) ;) (expression_statement "FUN_000beb20(iVar1,uVar4,param_2,uVar2);" (call_expression "FUN_000beb20(iVar1,uVar4,param_2,uVar2)" identifier (argument_list "(iVar1,uVar4,param_2,uVar2)" ( identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "uVar5 = FUN_000c52b0(iVar3,param_2);" (assignment_expression "uVar5 = FUN_000c52b0(iVar3,param_2)" identifier = (call_expression "FUN_000c52b0(iVar3,param_2)" identifier (argument_list "(iVar3,param_2)" ( identifier , identifier )))) ;) (if_statement "if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);\n    return *(undefined4 *)(iVar3 + 0xc);\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    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);\n    return *(undefined4 *)(iVar3 + 0xc);\n  }" { (expression_statement "iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);" (assignment_expression "iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1)" identifier = (call_expression "FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1)" identifier (argument_list "(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,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 )))) ;) (return_statement "return *(undefined4 *)(iVar3 + 0xc);" return (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) ;) })) (expression_statement "FUN_0016ad50();" (call_expression "FUN_0016ad50()" identifier (argument_list "()" ( ))) ;) })))
(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 ;) (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 )))) ;) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_0016f9a0(int param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000c47d0(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000c47d0(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_000beb20(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000c52b0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);\n    return *(undefined4 *)(iVar3 + 0xc);\n  }\n                    \n  FUN_0016ad50();\n}" (type_identifier "undefined4") (function_declarator "FUN_0016f9a0(int param_1,uint param_2)" (identifier "FUN_0016f9a0") (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  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000c47d0(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000c47d0(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_000beb20(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000c52b0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);\n    return *(undefined4 *)(iVar3 + 0xc);\n  }\n                    \n  FUN_0016ad50();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined8 uVar5;" (type_identifier "undefined8") (identifier "uVar5") (; ";")) (expression_statement "iVar3 = param_1 + 0x60;" (assignment_expression "iVar3 = param_1 + 0x60" (identifier "iVar3") (= "=") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x60);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x60)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (expression_statement "FUN_000c47d0(iVar3);" (call_expression "FUN_000c47d0(iVar3)" (identifier "FUN_000c47d0") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (if_statement "if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000c47d0(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_000beb20(iVar1,uVar4,param_2,uVar2);\n  }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0x6c) <= param_2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x6c) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x6c)" (* "*") (cast_expression "(uint *)(param_1 + 0x6c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n    FUN_000c47d0(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_000beb20(iVar1,uVar4,param_2,uVar2);\n  }" ({ "{") (expression_statement "FUN_000c47d0(iVar3);" (call_expression "FUN_000c47d0(iVar3)" (identifier "FUN_000c47d0") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x6c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x6c)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x6c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (expression_statement "uVar4 = gettext("section_flags: bad shndx %u >= %u");" (assignment_expression "uVar4 = gettext("section_flags: bad shndx %u >= %u")" (identifier "uVar4") (= "=") (call_expression "gettext("section_flags: bad shndx %u >= %u")" (identifier "gettext") (argument_list "("section_flags: bad shndx %u >= %u")" (( "(") (string_literal ""section_flags: bad shndx %u >= %u"" (" """) (string_content "section_flags: bad shndx %u >= %u") (" """)) () ")")))) (; ";")) (expression_statement "FUN_000beb20(iVar1,uVar4,param_2,uVar2);" (call_expression "FUN_000beb20(iVar1,uVar4,param_2,uVar2)" (identifier "FUN_000beb20") (argument_list "(iVar1,uVar4,param_2,uVar2)" (( "(") (identifier "iVar1") (, ",") (identifier "uVar4") (, ",") (identifier "param_2") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar5 = FUN_000c52b0(iVar3,param_2);" (assignment_expression "uVar5 = FUN_000c52b0(iVar3,param_2)" (identifier "uVar5") (= "=") (call_expression "FUN_000c52b0(iVar3,param_2)" (identifier "FUN_000c52b0") (argument_list "(iVar3,param_2)" (( "(") (identifier "iVar3") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);\n    return *(undefined4 *)(iVar3 + 0xc);\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    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);\n    return *(undefined4 *)(iVar3 + 0xc);\n  }" ({ "{") (expression_statement "iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);" (assignment_expression "iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1)" (identifier "iVar3") (= "=") (call_expression "FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1)" (identifier "FUN_00085770") (argument_list "(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,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 "uVar5") (, ",") (number_literal "0x28") (, ",") (number_literal "1") (, ",") (number_literal "1") () ")")))) (; ";")) (return_statement "return *(undefined4 *)(iVar3 + 0xc);" (return "return") (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_0016ad50();" (call_expression "FUN_0016ad50()" (identifier "FUN_0016ad50") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: uint64_t do_section_address(Sized_dynobj<32,_false> * this, uint shndx)
    */

uint64_t __thiscall
gold::Sized_dynobj<32,_false>::do_section_address(Sized_dynobj<32,_false> *this,type_2 var_2)

{
  Elf_file<32,_false,_gold::type_1> *this_00;
  type_1 *this_01;
  type_2 uVar1;
  type_3 *var_7;
  char *format;
  type_4 start;
  type_1 *in_stack_ffffffe4;
  
  this_00 = &this->elf_file_;
  this_01 = (this->elf_file_).file_;
  elfcpp::Elf_file<32,_false,_gold::type_1>::var_1(this_00);
  if ((this->elf_file_).shnum_ <= var_2) {
    elfcpp::Elf_file<32,_false,_gold::type_1>::var_1(this_00);
    uVar1 = (this->elf_file_).shnum_;
    format = (char *)var_3();
    Object::var_4(this_01,format,var_2,uVar1);
  }
  start = elfcpp::Elf_file<32,_false,_gold::type_1>::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)
    ;
    return (uint64_t)*(type_2 *)(var_7 + 0xc);
  }
                    /* WARNING: Subroutine does not return */
  Object::var_8(in_stack_ffffffe4);
}


(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: (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))))) (return_statement (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 (call_expression function: (identifier) arguments: (argument_list))))))

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

undefined4 MASKED(int param_1,uint param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 uVar4;
  undefined8 uVar5;
  
  iVar3 = param_1 + 0x60;
  iVar1 = *(int *)(param_1 + 0x60);
  FUN_000c47d0(iVar3);
  if (*(uint *)(param_1 + 0x6c) <= param_2) {
    FUN_000c47d0(iVar3);
    uVar2 = *(undefined4 *)(param_1 + 0x6c);
    uVar4 = gettext("section_flags: bad shndx %u >= %u");
    FUN_000beb20(iVar1,uVar4,param_2,uVar2);
  }
  uVar5 = FUN_000c52b0(iVar3,param_2);
  if (*(int *)(iVar1 + 0x1c) != 0) {
    iVar3 = FUN_00085770(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),
                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x28,1,1);
    return *(undefined4 *)(iVar3 + 0xc);
  }
                    /* WARNING: Subroutine does not return */
  FUN_0016ad50();
}

