
/* DWARF original prototype: Elf_Word section_link(Elf_file<32,_false,_gold::Incremental_binary> *
   this, uint shndx) */

Elf_Word __thiscall
elfcpp::Elf_file<32,_false,_gold::Incremental_binary>::section_link
          (Elf_file<32,_false,_gold::Incremental_binary> *this,uint shndx)

{
  uint uVar1;
  Incremental_binary *this_00;
  Output_file *size;
  off_t oVar2;
  char *format;
  Output_file *in_RCX;
  ulong start;
  
  start = (ulong)shndx;
  this_00 = this->file_;
  initialize_shnum(this);
  if (this->shnum_ <= shndx) {
    initialize_shnum(this);
    uVar1 = this->shnum_;
    format = (char *)gettext("section_link: bad shndx %u >= %u");
    in_RCX = (Output_file *)(ulong)uVar1;
    gold::Incremental_binary::error(this_00,format,start);
  }
  oVar2 = section_header_offset(this,shndx);
  size = this_00->output_;
  if ((-1 < oVar2) && (in_RCX = (Output_file *)(oVar2 + 0x28), (long)in_RCX <= size->file_size_)) {
    return *(Elf_Word *)(size->base_ + oVar2 + 0x18);
  }
                    /* WARNING: Subroutine does not return */
  gold::Output_file::get_output_view((Output_file *)this,start,(size_t)size,in_RCX);
}



undefined4 FUN_003687a0(long *param_1,uint param_2)

{
  long lVar1;
  long lVar2;
  undefined8 uVar3;
  
  lVar1 = *param_1;
  FUN_00368500();
  if (*(uint *)(param_1 + 2) <= param_2) {
    FUN_00368500(param_1);
    lVar2 = param_1[2];
    uVar3 = gettext("section_link: bad shndx %u >= %u");
    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);
  }
  lVar2 = FUN_00368640(param_1,param_2);
  lVar1 = *(long *)(lVar1 + 0x50);
  if ((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))) {
    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);
  }
                    /* WARNING: Subroutine does not return */
  FUN_00358e50();
}


PUSH R13
PUSH R12
PUSH RBP
MOV EBP,ESI
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
MOV R12,qword ptr [RDI]
CALL 0x00368500
CMP EBP,dword ptr [RBX + 0x10]
JNC 0x003687f0
MOV ESI,EBP
MOV RDI,RBX
CALL 0x00368640
MOV RDX,qword ptr [R12 + 0x50]
TEST RAX,RAX
JS 0x0036881c
LEA RCX,[RAX + 0x28]
CMP RCX,qword ptr [RDX + 0x10]
JG 0x0036881c
MOV RDX,qword ptr [RDX + 0x18]
MOV EAX,dword ptr [RDX + RAX*0x1 + 0x18]
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
MOV RDI,RBX
CALL 0x00368500
MOV R13D,dword ptr [RBX + 0x10]
LEA RDI,[0x54d958]
CALL 0x00177320
MOV EDX,EBP
MOV RDI,R12
MOV RSI,RAX
MOV ECX,R13D
XOR EAX,EAX
CALL 0x00358f90
JMP 0x003687bc
CALL 0x00358e50
(translation_unit "undefined4 FUN_003687a0(long *param_1,uint param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  lVar1 = *param_1;\n  FUN_00368500();\n  if (*(uint *)(param_1 + 2) <= param_2) {\n    FUN_00368500(param_1);\n    lVar2 = param_1[2];\n    uVar3 = gettext("section_link: bad shndx %u >= %u");\n    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);\n  }\n  lVar2 = FUN_00368640(param_1,param_2);\n  lVar1 = *(long *)(lVar1 + 0x50);\n  if ((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))) {\n    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00358e50();\n}\n\n" (function_definition "undefined4 FUN_003687a0(long *param_1,uint param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  lVar1 = *param_1;\n  FUN_00368500();\n  if (*(uint *)(param_1 + 2) <= param_2) {\n    FUN_00368500(param_1);\n    lVar2 = param_1[2];\n    uVar3 = gettext("section_link: bad shndx %u >= %u");\n    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);\n  }\n  lVar2 = FUN_00368640(param_1,param_2);\n  lVar1 = *(long *)(lVar1 + 0x50);\n  if ((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))) {\n    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00358e50();\n}" type_identifier (function_declarator "FUN_003687a0(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) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  lVar1 = *param_1;\n  FUN_00368500();\n  if (*(uint *)(param_1 + 2) <= param_2) {\n    FUN_00368500(param_1);\n    lVar2 = param_1[2];\n    uVar3 = gettext("section_link: bad shndx %u >= %u");\n    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);\n  }\n  lVar2 = FUN_00368640(param_1,param_2);\n  lVar1 = *(long *)(lVar1 + 0x50);\n  if ((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))) {\n    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00358e50();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "FUN_00368500();" (call_expression "FUN_00368500()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(uint *)(param_1 + 2) <= param_2) {\n    FUN_00368500(param_1);\n    lVar2 = param_1[2];\n    uVar3 = gettext("section_link: bad shndx %u >= %u");\n    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);\n  }" if (parenthesized_expression "(*(uint *)(param_1 + 2) <= param_2)" ( (binary_expression "*(uint *)(param_1 + 2) <= param_2" (pointer_expression "*(uint *)(param_1 + 2)" * (cast_expression "(uint *)(param_1 + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    FUN_00368500(param_1);\n    lVar2 = param_1[2];\n    uVar3 = gettext("section_link: bad shndx %u >= %u");\n    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);\n  }" { (expression_statement "FUN_00368500(param_1);" (call_expression "FUN_00368500(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "lVar2 = param_1[2];" (assignment_expression "lVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = gettext("section_link: bad shndx %u >= %u");" (assignment_expression "uVar3 = gettext("section_link: bad shndx %u >= %u")" identifier = (call_expression "gettext("section_link: bad shndx %u >= %u")" identifier (argument_list "("section_link: bad shndx %u >= %u")" ( (string_literal ""section_link: bad shndx %u >= %u"" " string_content ") )))) ;) (expression_statement "FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);" (call_expression "FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2)" identifier (argument_list "(lVar1,uVar3,param_2,(int)lVar2)" ( identifier , identifier , identifier , (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) })) (expression_statement "lVar2 = FUN_00368640(param_1,param_2);" (assignment_expression "lVar2 = FUN_00368640(param_1,param_2)" identifier = (call_expression "FUN_00368640(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "lVar1 = *(long *)(lVar1 + 0x50);" (assignment_expression "lVar1 = *(long *)(lVar1 + 0x50)" identifier = (pointer_expression "*(long *)(lVar1 + 0x50)" * (cast_expression "(long *)(lVar1 + 0x50)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x50)" ( (binary_expression "lVar1 + 0x50" identifier + number_literal) ))))) ;) (if_statement "if ((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))) {\n    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);\n  }" if (parenthesized_expression "((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10)))" ( (binary_expression "(-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))" (parenthesized_expression "(-1 < lVar2)" ( (binary_expression "-1 < lVar2" number_literal < identifier) )) && (parenthesized_expression "(lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))" ( (binary_expression "lVar2 + 0x28 <= *(long *)(lVar1 + 0x10)" (binary_expression "lVar2 + 0x28" identifier + number_literal) <= (pointer_expression "*(long *)(lVar1 + 0x10)" * (cast_expression "(long *)(lVar1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);\n  }" { (return_statement "return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);" return (pointer_expression "*(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2)" * (cast_expression "(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar1 + 0x18) + 0x18 + lVar2)" ( (binary_expression "*(long *)(lVar1 + 0x18) + 0x18 + lVar2" (binary_expression "*(long *)(lVar1 + 0x18) + 0x18" (pointer_expression "*(long *)(lVar1 + 0x18)" * (cast_expression "(long *)(lVar1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) + number_literal) + identifier) )))) ;) })) comment (expression_statement "FUN_00358e50();" (call_expression "FUN_00358e50()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* DWARF original prototype: Elf_Word section_link(Elf_file<32,_false,_gold::Incremental_binary> *\n   this, uint shndx) */\n\nElf_Word __thiscall\nelfcpp::Elf_file<32,_false,_gold::Incremental_binary>::section_link\n          (Elf_file<32,_false,_gold::Incremental_binary> *this,uint shndx)\n\n{\n  uint uVar1;\n  Incremental_binary *this_00;\n  Output_file *size;\n  off_t oVar2;\n  char *format;\n  Output_file *in_RCX;\n  ulong start;\n  \n  start = (ulong)shndx;\n  this_00 = this->file_;\n  initialize_shnum(this);\n  if (this->shnum_ <= shndx) {\n    initialize_shnum(this);\n    uVar1 = this->shnum_;\n    format = (char *)gettext("section_link: bad shndx %u >= %u");\n    in_RCX = (Output_file *)(ulong)uVar1;\n    gold::Incremental_binary::error(this_00,format,start);\n  }\n  oVar2 = section_header_offset(this,shndx);\n  size = this_00->output_;\n  if ((-1 < oVar2) && (in_RCX = (Output_file *)(oVar2 + 0x28), (long)in_RCX <= size->file_size_)) {\n    return *(Elf_Word *)(size->base_ + oVar2 + 0x18);\n  }\n                    /* WARNING: Subroutine does not return */\n  gold::Output_file::get_output_view((Output_file *)this,start,(size_t)size,in_RCX);\n}\n\n" comment (declaration "Elf_Word __thiscall\nelfcpp::Elf_file<32,_false,_gold::Incremental_binary>::section_link\n          (Elf_file<32,_false,_gold::Incremental_binary> *this,uint shndx)\n\n{\n  uint uVar1;" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "elfcpp::" identifier : :) identifier (ERROR "<32" < number_literal) , identifier , (ERROR "_gold::Incremental_binary>::section_link\n          (Elf_file<32,_false,_gold::Incremental_binary> *this,uint shndx)\n\n{\n  uint" identifier : : identifier > : : (function_declarator "section_link\n          (Elf_file<32,_false,_gold::Incremental_binary> *this,uint shndx)" identifier (parameter_list "(Elf_file<32,_false,_gold::Incremental_binary> *this,uint shndx)" ( (parameter_declaration "Elf_file" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_false" type_identifier) , (parameter_declaration "_gold::Incremental_binary> *this" type_identifier (ERROR "::Incremental_binary>" : : identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint shndx" type_identifier identifier) ))) { identifier) identifier ;) (declaration "Incremental_binary *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "Output_file *size;" type_identifier (pointer_declarator "*size" * identifier) ;) (declaration "off_t oVar2;" type_identifier identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "Output_file *in_RCX;" type_identifier (pointer_declarator "*in_RCX" * identifier) ;) (declaration "ulong start;" type_identifier identifier ;) (expression_statement "start = (ulong)shndx;" (assignment_expression "start = (ulong)shndx" identifier = (cast_expression "(ulong)shndx" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "this_00 = this->file_;" (assignment_expression "this_00 = this->file_" identifier = (field_expression "this->file_" identifier -> field_identifier)) ;) (expression_statement "initialize_shnum(this);" (call_expression "initialize_shnum(this)" identifier (argument_list "(this)" ( identifier ))) ;) (if_statement "if (this->shnum_ <= shndx) {\n    initialize_shnum(this);\n    uVar1 = this->shnum_;\n    format = (char *)gettext("section_link: bad shndx %u >= %u");\n    in_RCX = (Output_file *)(ulong)uVar1;\n    gold::Incremental_binary::error(this_00,format,start);\n  }" if (parenthesized_expression "(this->shnum_ <= shndx)" ( (binary_expression "this->shnum_ <= shndx" (field_expression "this->shnum_" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n    initialize_shnum(this);\n    uVar1 = this->shnum_;\n    format = (char *)gettext("section_link: bad shndx %u >= %u");\n    in_RCX = (Output_file *)(ulong)uVar1;\n    gold::Incremental_binary::error(this_00,format,start);\n  }" { (expression_statement "initialize_shnum(this);" (call_expression "initialize_shnum(this)" identifier (argument_list "(this)" ( identifier ))) ;) (expression_statement "uVar1 = this->shnum_;" (assignment_expression "uVar1 = this->shnum_" identifier = (field_expression "this->shnum_" identifier -> field_identifier)) ;) (expression_statement "format = (char *)gettext("section_link: bad shndx %u >= %u");" (assignment_expression "format = (char *)gettext("section_link: bad shndx %u >= %u")" identifier = (cast_expression "(char *)gettext("section_link: bad shndx %u >= %u")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("section_link: bad shndx %u >= %u")" identifier (argument_list "("section_link: bad shndx %u >= %u")" ( (string_literal ""section_link: bad shndx %u >= %u"" " string_content ") ))))) ;) (expression_statement "in_RCX = (Output_file *)(ulong)uVar1;" (assignment_expression "in_RCX = (Output_file *)(ulong)uVar1" identifier = (cast_expression "(Output_file *)(ulong)uVar1" ( (type_descriptor "Output_file *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier))) ;) (labeled_statement "gold::Incremental_binary::error(this_00,format,start);" statement_identifier : (ERROR ":" :) (labeled_statement "Incremental_binary::error(this_00,format,start);" statement_identifier : (ERROR ":" :) (expression_statement "error(this_00,format,start);" (call_expression "error(this_00,format,start)" identifier (argument_list "(this_00,format,start)" ( identifier , identifier , identifier ))) ;))) })) (expression_statement "oVar2 = section_header_offset(this,shndx);" (assignment_expression "oVar2 = section_header_offset(this,shndx)" identifier = (call_expression "section_header_offset(this,shndx)" identifier (argument_list "(this,shndx)" ( identifier , identifier )))) ;) (expression_statement "size = this_00->output_;" (assignment_expression "size = this_00->output_" identifier = (field_expression "this_00->output_" identifier -> field_identifier)) ;) (if_statement "if ((-1 < oVar2) && (in_RCX = (Output_file *)(oVar2 + 0x28), (long)in_RCX <= size->file_size_)) {\n    return *(Elf_Word *)(size->base_ + oVar2 + 0x18);\n  }" if (parenthesized_expression "((-1 < oVar2) && (in_RCX = (Output_file *)(oVar2 + 0x28), (long)in_RCX <= size->file_size_))" ( (binary_expression "(-1 < oVar2) && (in_RCX = (Output_file *)(oVar2 + 0x28), (long)in_RCX <= size->file_size_)" (parenthesized_expression "(-1 < oVar2)" ( (binary_expression "-1 < oVar2" number_literal < identifier) )) && (parenthesized_expression "(in_RCX = (Output_file *)(oVar2 + 0x28), (long)in_RCX <= size->file_size_)" ( (comma_expression "in_RCX = (Output_file *)(oVar2 + 0x28), (long)in_RCX <= size->file_size_" (assignment_expression "in_RCX = (Output_file *)(oVar2 + 0x28)" identifier = (cast_expression "(Output_file *)(oVar2 + 0x28)" ( (type_descriptor "Output_file *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(oVar2 + 0x28)" ( (binary_expression "oVar2 + 0x28" identifier + number_literal) )))) , (binary_expression "(long)in_RCX <= size->file_size_" (cast_expression "(long)in_RCX" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) <= (field_expression "size->file_size_" identifier -> field_identifier))) ))) )) (compound_statement "{\n    return *(Elf_Word *)(size->base_ + oVar2 + 0x18);\n  }" { (return_statement "return *(Elf_Word *)(size->base_ + oVar2 + 0x18);" return (pointer_expression "*(Elf_Word *)(size->base_ + oVar2 + 0x18)" * (cast_expression "(Elf_Word *)(size->base_ + oVar2 + 0x18)" ( (type_descriptor "Elf_Word *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(size->base_ + oVar2 + 0x18)" ( (binary_expression "size->base_ + oVar2 + 0x18" (binary_expression "size->base_ + oVar2" (field_expression "size->base_" identifier -> field_identifier) + identifier) + number_literal) )))) ;) })) comment (labeled_statement "gold::Output_file::get_output_view((Output_file *)this,start,(size_t)size,in_RCX);" statement_identifier : (ERROR ":" :) (labeled_statement "Output_file::get_output_view((Output_file *)this,start,(size_t)size,in_RCX);" statement_identifier : (ERROR ":" :) (expression_statement "get_output_view((Output_file *)this,start,(size_t)size,in_RCX);" (call_expression "get_output_view((Output_file *)this,start,(size_t)size,in_RCX)" identifier (argument_list "((Output_file *)this,start,(size_t)size,in_RCX)" ( (cast_expression "(Output_file *)this" ( (type_descriptor "Output_file *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (cast_expression "(size_t)size" ( (type_descriptor "size_t" primitive_type) ) identifier) , identifier ))) ;))) (ERROR "}" }))
(translation_unit "undefined4 FUN_003687a0(long *param_1,uint param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  lVar1 = *param_1;\n  FUN_00368500();\n  if (*(uint *)(param_1 + 2) <= param_2) {\n    FUN_00368500(param_1);\n    lVar2 = param_1[2];\n    uVar3 = gettext("section_link: bad shndx %u >= %u");\n    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);\n  }\n  lVar2 = FUN_00368640(param_1,param_2);\n  lVar1 = *(long *)(lVar1 + 0x50);\n  if ((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))) {\n    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);\n  }\n                    \n  FUN_00358e50();\n}\n\n" (function_definition "undefined4 FUN_003687a0(long *param_1,uint param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  lVar1 = *param_1;\n  FUN_00368500();\n  if (*(uint *)(param_1 + 2) <= param_2) {\n    FUN_00368500(param_1);\n    lVar2 = param_1[2];\n    uVar3 = gettext("section_link: bad shndx %u >= %u");\n    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);\n  }\n  lVar2 = FUN_00368640(param_1,param_2);\n  lVar1 = *(long *)(lVar1 + 0x50);\n  if ((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))) {\n    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);\n  }\n                    \n  FUN_00358e50();\n}" type_identifier (function_declarator "FUN_003687a0(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) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  lVar1 = *param_1;\n  FUN_00368500();\n  if (*(uint *)(param_1 + 2) <= param_2) {\n    FUN_00368500(param_1);\n    lVar2 = param_1[2];\n    uVar3 = gettext("section_link: bad shndx %u >= %u");\n    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);\n  }\n  lVar2 = FUN_00368640(param_1,param_2);\n  lVar1 = *(long *)(lVar1 + 0x50);\n  if ((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))) {\n    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);\n  }\n                    \n  FUN_00358e50();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "FUN_00368500();" (call_expression "FUN_00368500()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(uint *)(param_1 + 2) <= param_2) {\n    FUN_00368500(param_1);\n    lVar2 = param_1[2];\n    uVar3 = gettext("section_link: bad shndx %u >= %u");\n    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);\n  }" if (parenthesized_expression "(*(uint *)(param_1 + 2) <= param_2)" ( (binary_expression "*(uint *)(param_1 + 2) <= param_2" (pointer_expression "*(uint *)(param_1 + 2)" * (cast_expression "(uint *)(param_1 + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    FUN_00368500(param_1);\n    lVar2 = param_1[2];\n    uVar3 = gettext("section_link: bad shndx %u >= %u");\n    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);\n  }" { (expression_statement "FUN_00368500(param_1);" (call_expression "FUN_00368500(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "lVar2 = param_1[2];" (assignment_expression "lVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = gettext("section_link: bad shndx %u >= %u");" (assignment_expression "uVar3 = gettext("section_link: bad shndx %u >= %u")" identifier = (call_expression "gettext("section_link: bad shndx %u >= %u")" identifier (argument_list "("section_link: bad shndx %u >= %u")" ( (string_literal ""section_link: bad shndx %u >= %u"" " string_content ") )))) ;) (expression_statement "FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);" (call_expression "FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2)" identifier (argument_list "(lVar1,uVar3,param_2,(int)lVar2)" ( identifier , identifier , identifier , (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) })) (expression_statement "lVar2 = FUN_00368640(param_1,param_2);" (assignment_expression "lVar2 = FUN_00368640(param_1,param_2)" identifier = (call_expression "FUN_00368640(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "lVar1 = *(long *)(lVar1 + 0x50);" (assignment_expression "lVar1 = *(long *)(lVar1 + 0x50)" identifier = (pointer_expression "*(long *)(lVar1 + 0x50)" * (cast_expression "(long *)(lVar1 + 0x50)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x50)" ( (binary_expression "lVar1 + 0x50" identifier + number_literal) ))))) ;) (if_statement "if ((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))) {\n    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);\n  }" if (parenthesized_expression "((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10)))" ( (binary_expression "(-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))" (parenthesized_expression "(-1 < lVar2)" ( (binary_expression "-1 < lVar2" number_literal < identifier) )) && (parenthesized_expression "(lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))" ( (binary_expression "lVar2 + 0x28 <= *(long *)(lVar1 + 0x10)" (binary_expression "lVar2 + 0x28" identifier + number_literal) <= (pointer_expression "*(long *)(lVar1 + 0x10)" * (cast_expression "(long *)(lVar1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);\n  }" { (return_statement "return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);" return (pointer_expression "*(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2)" * (cast_expression "(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar1 + 0x18) + 0x18 + lVar2)" ( (binary_expression "*(long *)(lVar1 + 0x18) + 0x18 + lVar2" (binary_expression "*(long *)(lVar1 + 0x18) + 0x18" (pointer_expression "*(long *)(lVar1 + 0x18)" * (cast_expression "(long *)(lVar1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) + number_literal) + identifier) )))) ;) })) (expression_statement "FUN_00358e50();" (call_expression "FUN_00358e50()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 = (subscript_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 , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) <= (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_003687a0(long *param_1,uint param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  lVar1 = *param_1;\n  FUN_00368500();\n  if (*(uint *)(param_1 + 2) <= param_2) {\n    FUN_00368500(param_1);\n    lVar2 = param_1[2];\n    uVar3 = gettext("section_link: bad shndx %u >= %u");\n    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);\n  }\n  lVar2 = FUN_00368640(param_1,param_2);\n  lVar1 = *(long *)(lVar1 + 0x50);\n  if ((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))) {\n    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);\n  }\n                    \n  FUN_00358e50();\n}" (type_identifier "undefined4") (function_declarator "FUN_003687a0(long *param_1,uint param_2)" (identifier "FUN_003687a0") (parameter_list "(long *param_1,uint param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  \n  lVar1 = *param_1;\n  FUN_00368500();\n  if (*(uint *)(param_1 + 2) <= param_2) {\n    FUN_00368500(param_1);\n    lVar2 = param_1[2];\n    uVar3 = gettext("section_link: bad shndx %u >= %u");\n    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);\n  }\n  lVar2 = FUN_00368640(param_1,param_2);\n  lVar1 = *(long *)(lVar1 + 0x50);\n  if ((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))) {\n    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);\n  }\n                    \n  FUN_00358e50();\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" (identifier "lVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "FUN_00368500();" (call_expression "FUN_00368500()" (identifier "FUN_00368500") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(uint *)(param_1 + 2) <= param_2) {\n    FUN_00368500(param_1);\n    lVar2 = param_1[2];\n    uVar3 = gettext("section_link: bad shndx %u >= %u");\n    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);\n  }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 2) <= param_2)" (( "(") (binary_expression "*(uint *)(param_1 + 2) <= param_2" (pointer_expression "*(uint *)(param_1 + 2)" (* "*") (cast_expression "(uint *)(param_1 + 2)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n    FUN_00368500(param_1);\n    lVar2 = param_1[2];\n    uVar3 = gettext("section_link: bad shndx %u >= %u");\n    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);\n  }" ({ "{") (expression_statement "FUN_00368500(param_1);" (call_expression "FUN_00368500(param_1)" (identifier "FUN_00368500") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "lVar2 = param_1[2];" (assignment_expression "lVar2 = param_1[2]" (identifier "lVar2") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar3 = gettext("section_link: bad shndx %u >= %u");" (assignment_expression "uVar3 = gettext("section_link: bad shndx %u >= %u")" (identifier "uVar3") (= "=") (call_expression "gettext("section_link: bad shndx %u >= %u")" (identifier "gettext") (argument_list "("section_link: bad shndx %u >= %u")" (( "(") (string_literal ""section_link: bad shndx %u >= %u"" (" """) (string_content "section_link: bad shndx %u >= %u") (" """)) () ")")))) (; ";")) (expression_statement "FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);" (call_expression "FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2)" (identifier "FUN_00358f90") (argument_list "(lVar1,uVar3,param_2,(int)lVar2)" (( "(") (identifier "lVar1") (, ",") (identifier "uVar3") (, ",") (identifier "param_2") (, ",") (cast_expression "(int)lVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar2")) () ")"))) (; ";")) (} "}"))) (expression_statement "lVar2 = FUN_00368640(param_1,param_2);" (assignment_expression "lVar2 = FUN_00368640(param_1,param_2)" (identifier "lVar2") (= "=") (call_expression "FUN_00368640(param_1,param_2)" (identifier "FUN_00368640") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "lVar1 = *(long *)(lVar1 + 0x50);" (assignment_expression "lVar1 = *(long *)(lVar1 + 0x50)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(lVar1 + 0x50)" (* "*") (cast_expression "(long *)(lVar1 + 0x50)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x50)" (( "(") (binary_expression "lVar1 + 0x50" (identifier "lVar1") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (if_statement "if ((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))) {\n    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);\n  }" (if "if") (parenthesized_expression "((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10)))" (( "(") (binary_expression "(-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))" (parenthesized_expression "(-1 < lVar2)" (( "(") (binary_expression "-1 < lVar2" (number_literal "-1") (< "<") (identifier "lVar2")) () ")")) (&& "&&") (parenthesized_expression "(lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))" (( "(") (binary_expression "lVar2 + 0x28 <= *(long *)(lVar1 + 0x10)" (binary_expression "lVar2 + 0x28" (identifier "lVar2") (+ "+") (number_literal "0x28")) (<= "<=") (pointer_expression "*(long *)(lVar1 + 0x10)" (* "*") (cast_expression "(long *)(lVar1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);\n  }" ({ "{") (return_statement "return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);" (return "return") (pointer_expression "*(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2)" (* "*") (cast_expression "(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar1 + 0x18) + 0x18 + lVar2)" (( "(") (binary_expression "*(long *)(lVar1 + 0x18) + 0x18 + lVar2" (binary_expression "*(long *)(lVar1 + 0x18) + 0x18" (pointer_expression "*(long *)(lVar1 + 0x18)" (* "*") (cast_expression "(long *)(lVar1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x18)" (( "(") (binary_expression "lVar1 + 0x18" (identifier "lVar1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "0x18")) (+ "+") (identifier "lVar2")) () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_00358e50();" (call_expression "FUN_00358e50()" (identifier "FUN_00358e50") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* DWARF original prototype: Elf_Word section_link(Elf_file<32,_false,_gold::Incremental_binary> *
   this, uint shndx) */

type_1 __thiscall
elfcpp::Elf_file<32,_false,_gold::type_2>::section_link
          (Elf_file<32,_false,_gold::type_2> *this,uint var_2)

{
  uint uVar1;
  type_2 *this_00;
  type_3 *size;
  type_4 var_6;
  char *format;
  type_3 *in_RCX;
  type_5 start;
  
  start = (type_5)var_2;
  this_00 = this->file_;
  var_1(this);
  if (this->shnum_ <= var_2) {
    var_1(this);
    uVar1 = this->shnum_;
    format = (char *)var_3("section_link: bad shndx %u >= %u");
    in_RCX = (type_3 *)(type_5)uVar1;
    gold::Incremental_binary::var_4(this_00,format,start);
  }
  var_6 = var_5(this,var_2);
  size = this_00->output_;
  if ((-1 < var_6) && (in_RCX = (type_3 *)(var_6 + 0x28), (long)in_RCX <= size->file_size_)) {
    return *(type_1 *)(size->base_ + var_6 + 0x18);
  }
                    /* WARNING: Subroutine does not return */
  gold::Output_file::var_7((type_3 *)this,start,(size_t)size,in_RCX);
}


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

undefined4 MASKED(long *param_1,uint param_2)

{
  long lVar1;
  long lVar2;
  undefined8 uVar3;
  
  lVar1 = *param_1;
  FUN_00368500();
  if (*(uint *)(param_1 + 2) <= param_2) {
    FUN_00368500(param_1);
    lVar2 = param_1[2];
    uVar3 = gettext("section_link: bad shndx %u >= %u");
    FUN_00358f90(lVar1,uVar3,param_2,(int)lVar2);
  }
  lVar2 = FUN_00368640(param_1,param_2);
  lVar1 = *(long *)(lVar1 + 0x50);
  if ((-1 < lVar2) && (lVar2 + 0x28 <= *(long *)(lVar1 + 0x10))) {
    return *(undefined4 *)(*(long *)(lVar1 + 0x18) + 0x18 + lVar2);
  }
                    /* WARNING: Subroutine does not return */
  FUN_00358e50();
}

