
/* DWARF original prototype: uint sym_xindex_to_shndx(Xindex * this, Object * object, uint symndx)
    */

uint __thiscall gold::Xindex::sym_xindex_to_shndx(Xindex *this,Object *object,uint symndx)

{
  uint uVar1;
  pointer puVar2;
  char *pcVar3;
  ulong uVar4;
  
  uVar4 = (ulong)symndx;
  puVar2 = (this->symtab_xindex_).super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>.
           _M_impl._M_start;
  if ((ulong)((long)(this->symtab_xindex_).
                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.
                    _M_finish - (long)puVar2 >> 2) <= uVar4) {
    pcVar3 = (char *)gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");
    Object::error(object,pcVar3,uVar4);
    return 0;
  }
  uVar1 = puVar2[uVar4];
  if ((0xfeff < uVar1) && (uVar1 < object->shnum_)) {
    return uVar1;
  }
  pcVar3 = (char *)gettext("extended index for symbol %u out of range: %u");
  Object::error(object,pcVar3,uVar4,(ulong)uVar1);
  return 0;
}



uint FUN_001c7c40(long param_1,long param_2,ulong param_3)

{
  uint uVar1;
  undefined8 uVar2;
  
  param_3 = param_3 & 0xffffffff;
  if ((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3) {
    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");
    FUN_001c7b60(param_2,uVar2,param_3);
    return 0;
  }
  uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4);
  if ((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))) {
    return uVar1;
  }
  uVar2 = gettext("extended index for symbol %u out of range: %u");
  FUN_001c7b60(param_2,uVar2,param_3,uVar1);
  return 0;
}


PUSH R12
MOV R12,RSI
MOV ESI,EDX
PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV RCX,qword ptr [RDI + 0x8]
MOV RAX,qword ptr [RDI + 0x10]
SUB RAX,RCX
SAR RAX,0x2
CMP RSI,RAX
JNC 0x001c7cb0
MOV EBX,dword ptr [RCX + RSI*0x4]
CMP EBX,0xfeff
JBE 0x001c7c80
CMP EBX,dword ptr [R12 + 0x38]
JNC 0x001c7c80
MOV EAX,EBX
POP RBX
POP RBP
POP R12
RET
LEA RDI,[0x344230]
CALL 0x00144320
MOV ECX,EBX
MOV EDX,EBP
MOV RDI,R12
MOV RSI,RAX
XOR EBX,EBX
XOR EAX,EAX
CALL 0x001c7b60
MOV EAX,EBX
POP RBX
POP RBP
POP R12
RET
LEA RDI,[0x3441f8]
XOR EBX,EBX
CALL 0x00144320
MOV EDX,EBP
MOV RDI,R12
MOV RSI,RAX
XOR EAX,EAX
CALL 0x001c7b60
MOV EAX,EBX
POP RBX
POP RBP
POP R12
RET
(translation_unit "uint FUN_001c7c40(long param_1,long param_2,ulong param_3)\n\n{\n  uint uVar1;\n  undefined8 uVar2;\n  \n  param_3 = param_3 & 0xffffffff;\n  if ((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3) {\n    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    FUN_001c7b60(param_2,uVar2,param_3);\n    return 0;\n  }\n  uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4);\n  if ((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))) {\n    return uVar1;\n  }\n  uVar2 = gettext("extended index for symbol %u out of range: %u");\n  FUN_001c7b60(param_2,uVar2,param_3,uVar1);\n  return 0;\n}\n\n" (function_definition "uint FUN_001c7c40(long param_1,long param_2,ulong param_3)\n\n{\n  uint uVar1;\n  undefined8 uVar2;\n  \n  param_3 = param_3 & 0xffffffff;\n  if ((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3) {\n    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    FUN_001c7b60(param_2,uVar2,param_3);\n    return 0;\n  }\n  uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4);\n  if ((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))) {\n    return uVar1;\n  }\n  uVar2 = gettext("extended index for symbol %u out of range: %u");\n  FUN_001c7b60(param_2,uVar2,param_3,uVar1);\n  return 0;\n}" type_identifier (function_declarator "FUN_001c7c40(long param_1,long param_2,ulong param_3)" identifier (parameter_list "(long param_1,long param_2,ulong param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined8 uVar2;\n  \n  param_3 = param_3 & 0xffffffff;\n  if ((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3) {\n    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    FUN_001c7b60(param_2,uVar2,param_3);\n    return 0;\n  }\n  uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4);\n  if ((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))) {\n    return uVar1;\n  }\n  uVar2 = gettext("extended index for symbol %u out of range: %u");\n  FUN_001c7b60(param_2,uVar2,param_3,uVar1);\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "param_3 = param_3 & 0xffffffff;" (assignment_expression "param_3 = param_3 & 0xffffffff" identifier = (binary_expression "param_3 & 0xffffffff" identifier & number_literal)) ;) (if_statement "if ((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3) {\n    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    FUN_001c7b60(param_2,uVar2,param_3);\n    return 0;\n  }" if (parenthesized_expression "((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3)" ( (binary_expression "(ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3" (call_expression "(ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2)" ( (binary_expression "*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2" (binary_expression "*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8)" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) - (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) >> number_literal) ))) <= identifier) )) (compound_statement "{\n    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    FUN_001c7b60(param_2,uVar2,param_3);\n    return 0;\n  }" { (expression_statement "uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");" (assignment_expression "uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section")" identifier = (call_expression "gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section")" identifier (argument_list "("symbol %u out of range for SHT_SYMTAB_SHNDX section")" ( (string_literal ""symbol %u out of range for SHT_SYMTAB_SHNDX section"" " string_content ") )))) ;) (expression_statement "FUN_001c7b60(param_2,uVar2,param_3);" (call_expression "FUN_001c7b60(param_2,uVar2,param_3)" identifier (argument_list "(param_2,uVar2,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4);" (assignment_expression "uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4)" identifier = (pointer_expression "*(uint *)(*(long *)(param_1 + 8) + param_3 * 4)" * (cast_expression "(uint *)(*(long *)(param_1 + 8) + param_3 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 8) + param_3 * 4)" ( (binary_expression "*(long *)(param_1 + 8) + param_3 * 4" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (binary_expression "param_3 * 4" identifier * number_literal)) ))))) ;) (if_statement "if ((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))) {\n    return uVar1;\n  }" if (parenthesized_expression "((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38)))" ( (binary_expression "(0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))" (parenthesized_expression "(0xfeff < uVar1)" ( (binary_expression "0xfeff < uVar1" number_literal < identifier) )) && (parenthesized_expression "(uVar1 < *(uint *)(param_2 + 0x38))" ( (binary_expression "uVar1 < *(uint *)(param_2 + 0x38)" identifier < (pointer_expression "*(uint *)(param_2 + 0x38)" * (cast_expression "(uint *)(param_2 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "uVar2 = gettext("extended index for symbol %u out of range: %u");" (assignment_expression "uVar2 = gettext("extended index for symbol %u out of range: %u")" identifier = (call_expression "gettext("extended index for symbol %u out of range: %u")" identifier (argument_list "("extended index for symbol %u out of range: %u")" ( (string_literal ""extended index for symbol %u out of range: %u"" " string_content ") )))) ;) (expression_statement "FUN_001c7b60(param_2,uVar2,param_3,uVar1);" (call_expression "FUN_001c7b60(param_2,uVar2,param_3,uVar1)" identifier (argument_list "(param_2,uVar2,param_3,uVar1)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* DWARF original prototype: uint sym_xindex_to_shndx(Xindex * this, Object * object, uint symndx)\n    */\n\nuint __thiscall gold::Xindex::sym_xindex_to_shndx(Xindex *this,Object *object,uint symndx)\n\n{\n  uint uVar1;\n  pointer puVar2;\n  char *pcVar3;\n  ulong uVar4;\n  \n  uVar4 = (ulong)symndx;\n  puVar2 = (this->symtab_xindex_).super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>.\n           _M_impl._M_start;\n  if ((ulong)((long)(this->symtab_xindex_).\n                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2) <= uVar4) {\n    pcVar3 = (char *)gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    Object::error(object,pcVar3,uVar4);\n    return 0;\n  }\n  uVar1 = puVar2[uVar4];\n  if ((0xfeff < uVar1) && (uVar1 < object->shnum_)) {\n    return uVar1;\n  }\n  pcVar3 = (char *)gettext("extended index for symbol %u out of range: %u");\n  Object::error(object,pcVar3,uVar4,(ulong)uVar1);\n  return 0;\n}\n\n" comment (function_definition "uint __thiscall gold::Xindex::sym_xindex_to_shndx(Xindex *this,Object *object,uint symndx)\n\n{\n  uint uVar1;\n  pointer puVar2;\n  char *pcVar3;\n  ulong uVar4;\n  \n  uVar4 = (ulong)symndx;\n  puVar2 = (this->symtab_xindex_).super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>.\n           _M_impl._M_start;\n  if ((ulong)((long)(this->symtab_xindex_).\n                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2) <= uVar4) {\n    pcVar3 = (char *)gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    Object::error(object,pcVar3,uVar4);\n    return 0;\n  }\n  uVar1 = puVar2[uVar4];\n  if ((0xfeff < uVar1) && (uVar1 < object->shnum_)) {\n    return uVar1;\n  }\n  pcVar3 = (char *)gettext("extended index for symbol %u out of range: %u");\n  Object::error(object,pcVar3,uVar4,(ulong)uVar1);\n  return 0;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Xindex::" identifier : : identifier : :) (function_declarator "sym_xindex_to_shndx(Xindex *this,Object *object,uint symndx)" identifier (parameter_list "(Xindex *this,Object *object,uint symndx)" ( (parameter_declaration "Xindex *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Object *object" type_identifier (pointer_declarator "*object" * identifier)) , (parameter_declaration "uint symndx" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  pointer puVar2;\n  char *pcVar3;\n  ulong uVar4;\n  \n  uVar4 = (ulong)symndx;\n  puVar2 = (this->symtab_xindex_).super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>.\n           _M_impl._M_start;\n  if ((ulong)((long)(this->symtab_xindex_).\n                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2) <= uVar4) {\n    pcVar3 = (char *)gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    Object::error(object,pcVar3,uVar4);\n    return 0;\n  }\n  uVar1 = puVar2[uVar4];\n  if ((0xfeff < uVar1) && (uVar1 < object->shnum_)) {\n    return uVar1;\n  }\n  pcVar3 = (char *)gettext("extended index for symbol %u out of range: %u");\n  Object::error(object,pcVar3,uVar4,(ulong)uVar1);\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "pointer puVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "ulong uVar4;" type_identifier identifier ;) (expression_statement "uVar4 = (ulong)symndx;" (assignment_expression "uVar4 = (ulong)symndx" identifier = (cast_expression "(ulong)symndx" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (ERROR "puVar2 = (this->symtab_xindex_).super__Vector_base<unsigned_int,_std::" (comma_expression "puVar2 = (this->symtab_xindex_).super__Vector_base<unsigned_int,_std" (assignment_expression "puVar2 = (this->symtab_xindex_).super__Vector_base<unsigned_int" identifier = (binary_expression "(this->symtab_xindex_).super__Vector_base<unsigned_int" (field_expression "(this->symtab_xindex_).super__Vector_base" (parenthesized_expression "(this->symtab_xindex_)" ( (field_expression "this->symtab_xindex_" identifier -> field_identifier) )) . field_identifier) < identifier)) , identifier) : :) (expression_statement "allocator<unsigned_int>_>.\n           _M_impl._M_start;" (field_expression "allocator<unsigned_int>_>.\n           _M_impl._M_start" (field_expression "allocator<unsigned_int>_>.\n           _M_impl" (binary_expression "allocator<unsigned_int>_" (binary_expression "allocator<unsigned_int" identifier < identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if ((ulong)((long)(this->symtab_xindex_).\n                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2) <= uVar4) {\n    pcVar3 = (char *)gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    Object::error(object,pcVar3,uVar4);\n    return 0;\n  }" if (parenthesized_expression "((ulong)((long)(this->symtab_xindex_).\n                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2) <= uVar4)" ( (binary_expression "(ulong)((long)(this->symtab_xindex_).\n                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2) <= uVar4" (call_expression "(ulong)((long)(this->symtab_xindex_).\n                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((long)(this->symtab_xindex_).\n                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2)" ( (binary_expression "(long)(this->symtab_xindex_).\n                    super__Vector_base<unsigned_int" (cast_expression "(long)(this->symtab_xindex_).\n                    super__Vector_base" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "(this->symtab_xindex_).\n                    super__Vector_base" (parenthesized_expression "(this->symtab_xindex_)" ( (field_expression "this->symtab_xindex_" identifier -> field_identifier) )) . field_identifier)) < identifier) , (ERROR "_std::" identifier : :) (binary_expression "allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2" (binary_expression "allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2" (field_expression "allocator<unsigned_int>_>._M_impl.\n                    _M_finish" (field_expression "allocator<unsigned_int>_>._M_impl" (binary_expression "allocator<unsigned_int>_" (binary_expression "allocator<unsigned_int" identifier < identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) - (cast_expression "(long)puVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal) ))) <= identifier) )) (compound_statement "{\n    pcVar3 = (char *)gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    Object::error(object,pcVar3,uVar4);\n    return 0;\n  }" { (expression_statement "pcVar3 = (char *)gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");" (assignment_expression "pcVar3 = (char *)gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section")" identifier = (cast_expression "(char *)gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section")" identifier (argument_list "("symbol %u out of range for SHT_SYMTAB_SHNDX section")" ( (string_literal ""symbol %u out of range for SHT_SYMTAB_SHNDX section"" " string_content ") ))))) ;) (labeled_statement "Object::error(object,pcVar3,uVar4);" statement_identifier : (ERROR ":" :) (expression_statement "error(object,pcVar3,uVar4);" (call_expression "error(object,pcVar3,uVar4)" identifier (argument_list "(object,pcVar3,uVar4)" ( identifier , identifier , identifier ))) ;)) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = puVar2[uVar4];" (assignment_expression "uVar1 = puVar2[uVar4]" identifier = (subscript_expression "puVar2[uVar4]" identifier [ identifier ])) ;) (if_statement "if ((0xfeff < uVar1) && (uVar1 < object->shnum_)) {\n    return uVar1;\n  }" if (parenthesized_expression "((0xfeff < uVar1) && (uVar1 < object->shnum_))" ( (binary_expression "(0xfeff < uVar1) && (uVar1 < object->shnum_)" (parenthesized_expression "(0xfeff < uVar1)" ( (binary_expression "0xfeff < uVar1" number_literal < identifier) )) && (parenthesized_expression "(uVar1 < object->shnum_)" ( (binary_expression "uVar1 < object->shnum_" identifier < (field_expression "object->shnum_" identifier -> field_identifier)) ))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pcVar3 = (char *)gettext("extended index for symbol %u out of range: %u");" (assignment_expression "pcVar3 = (char *)gettext("extended index for symbol %u out of range: %u")" identifier = (cast_expression "(char *)gettext("extended index for symbol %u out of range: %u")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("extended index for symbol %u out of range: %u")" identifier (argument_list "("extended index for symbol %u out of range: %u")" ( (string_literal ""extended index for symbol %u out of range: %u"" " string_content ") ))))) ;) (labeled_statement "Object::error(object,pcVar3,uVar4,(ulong)uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "error(object,pcVar3,uVar4,(ulong)uVar1);" (call_expression "error(object,pcVar3,uVar4,(ulong)uVar1)" identifier (argument_list "(object,pcVar3,uVar4,(ulong)uVar1)" ( identifier , identifier , identifier , (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;)) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "uint FUN_001c7c40(long param_1,long param_2,ulong param_3)\n\n{\n  uint uVar1;\n  undefined8 uVar2;\n  \n  param_3 = param_3 & 0xffffffff;\n  if ((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3) {\n    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    FUN_001c7b60(param_2,uVar2,param_3);\n    return 0;\n  }\n  uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4);\n  if ((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))) {\n    return uVar1;\n  }\n  uVar2 = gettext("extended index for symbol %u out of range: %u");\n  FUN_001c7b60(param_2,uVar2,param_3,uVar1);\n  return 0;\n}\n\n" (function_definition "uint FUN_001c7c40(long param_1,long param_2,ulong param_3)\n\n{\n  uint uVar1;\n  undefined8 uVar2;\n  \n  param_3 = param_3 & 0xffffffff;\n  if ((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3) {\n    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    FUN_001c7b60(param_2,uVar2,param_3);\n    return 0;\n  }\n  uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4);\n  if ((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))) {\n    return uVar1;\n  }\n  uVar2 = gettext("extended index for symbol %u out of range: %u");\n  FUN_001c7b60(param_2,uVar2,param_3,uVar1);\n  return 0;\n}" type_identifier (function_declarator "FUN_001c7c40(long param_1,long param_2,ulong param_3)" identifier (parameter_list "(long param_1,long param_2,ulong param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined8 uVar2;\n  \n  param_3 = param_3 & 0xffffffff;\n  if ((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3) {\n    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    FUN_001c7b60(param_2,uVar2,param_3);\n    return 0;\n  }\n  uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4);\n  if ((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))) {\n    return uVar1;\n  }\n  uVar2 = gettext("extended index for symbol %u out of range: %u");\n  FUN_001c7b60(param_2,uVar2,param_3,uVar1);\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "param_3 = param_3 & 0xffffffff;" (assignment_expression "param_3 = param_3 & 0xffffffff" identifier = (binary_expression "param_3 & 0xffffffff" identifier & number_literal)) ;) (if_statement "if ((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3) {\n    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    FUN_001c7b60(param_2,uVar2,param_3);\n    return 0;\n  }" if (parenthesized_expression "((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3)" ( (binary_expression "(ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3" (call_expression "(ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2)" ( (binary_expression "*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2" (binary_expression "*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8)" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) - (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) >> number_literal) ))) <= identifier) )) (compound_statement "{\n    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    FUN_001c7b60(param_2,uVar2,param_3);\n    return 0;\n  }" { (expression_statement "uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");" (assignment_expression "uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section")" identifier = (call_expression "gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section")" identifier (argument_list "("symbol %u out of range for SHT_SYMTAB_SHNDX section")" ( (string_literal ""symbol %u out of range for SHT_SYMTAB_SHNDX section"" " string_content ") )))) ;) (expression_statement "FUN_001c7b60(param_2,uVar2,param_3);" (call_expression "FUN_001c7b60(param_2,uVar2,param_3)" identifier (argument_list "(param_2,uVar2,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4);" (assignment_expression "uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4)" identifier = (pointer_expression "*(uint *)(*(long *)(param_1 + 8) + param_3 * 4)" * (cast_expression "(uint *)(*(long *)(param_1 + 8) + param_3 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 8) + param_3 * 4)" ( (binary_expression "*(long *)(param_1 + 8) + param_3 * 4" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (binary_expression "param_3 * 4" identifier * number_literal)) ))))) ;) (if_statement "if ((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))) {\n    return uVar1;\n  }" if (parenthesized_expression "((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38)))" ( (binary_expression "(0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))" (parenthesized_expression "(0xfeff < uVar1)" ( (binary_expression "0xfeff < uVar1" number_literal < identifier) )) && (parenthesized_expression "(uVar1 < *(uint *)(param_2 + 0x38))" ( (binary_expression "uVar1 < *(uint *)(param_2 + 0x38)" identifier < (pointer_expression "*(uint *)(param_2 + 0x38)" * (cast_expression "(uint *)(param_2 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "uVar2 = gettext("extended index for symbol %u out of range: %u");" (assignment_expression "uVar2 = gettext("extended index for symbol %u out of range: %u")" identifier = (call_expression "gettext("extended index for symbol %u out of range: %u")" identifier (argument_list "("extended index for symbol %u out of range: %u")" ( (string_literal ""extended index for symbol %u out of range: %u"" " string_content ") )))) ;) (expression_statement "FUN_001c7b60(param_2,uVar2,param_3,uVar1);" (call_expression "FUN_001c7b60(param_2,uVar2,param_3,uVar1)" identifier (argument_list "(param_2,uVar2,param_3,uVar1)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) >> LIT) ))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (return_statement return IDENT ;) })) (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 ))) ;) (return_statement return LIT ;) })))
(function_definition "uint FUN_001c7c40(long param_1,long param_2,ulong param_3)\n\n{\n  uint uVar1;\n  undefined8 uVar2;\n  \n  param_3 = param_3 & 0xffffffff;\n  if ((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3) {\n    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    FUN_001c7b60(param_2,uVar2,param_3);\n    return 0;\n  }\n  uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4);\n  if ((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))) {\n    return uVar1;\n  }\n  uVar2 = gettext("extended index for symbol %u out of range: %u");\n  FUN_001c7b60(param_2,uVar2,param_3,uVar1);\n  return 0;\n}" (type_identifier "uint") (function_declarator "FUN_001c7c40(long param_1,long param_2,ulong param_3)" (identifier "FUN_001c7c40") (parameter_list "(long param_1,long param_2,ulong param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "ulong param_3" (type_identifier "ulong") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined8 uVar2;\n  \n  param_3 = param_3 & 0xffffffff;\n  if ((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3) {\n    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    FUN_001c7b60(param_2,uVar2,param_3);\n    return 0;\n  }\n  uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4);\n  if ((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))) {\n    return uVar1;\n  }\n  uVar2 = gettext("extended index for symbol %u out of range: %u");\n  FUN_001c7b60(param_2,uVar2,param_3,uVar1);\n  return 0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (expression_statement "param_3 = param_3 & 0xffffffff;" (assignment_expression "param_3 = param_3 & 0xffffffff" (identifier "param_3") (= "=") (binary_expression "param_3 & 0xffffffff" (identifier "param_3") (& "&") (number_literal "0xffffffff"))) (; ";")) (if_statement "if ((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3) {\n    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    FUN_001c7b60(param_2,uVar2,param_3);\n    return 0;\n  }" (if "if") (parenthesized_expression "((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3)" (( "(") (binary_expression "(ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3" (call_expression "(ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2)" (( "(") (binary_expression "*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2" (binary_expression "*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8)" (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (- "-") (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (>> ">>") (number_literal "2")) () ")"))) (<= "<=") (identifier "param_3")) () ")")) (compound_statement "{\n    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");\n    FUN_001c7b60(param_2,uVar2,param_3);\n    return 0;\n  }" ({ "{") (expression_statement "uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");" (assignment_expression "uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section")" (identifier "uVar2") (= "=") (call_expression "gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section")" (identifier "gettext") (argument_list "("symbol %u out of range for SHT_SYMTAB_SHNDX section")" (( "(") (string_literal ""symbol %u out of range for SHT_SYMTAB_SHNDX section"" (" """) (string_content "symbol %u out of range for SHT_SYMTAB_SHNDX section") (" """)) () ")")))) (; ";")) (expression_statement "FUN_001c7b60(param_2,uVar2,param_3);" (call_expression "FUN_001c7b60(param_2,uVar2,param_3)" (identifier "FUN_001c7b60") (argument_list "(param_2,uVar2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "uVar2") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4);" (assignment_expression "uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(*(long *)(param_1 + 8) + param_3 * 4)" (* "*") (cast_expression "(uint *)(*(long *)(param_1 + 8) + param_3 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 8) + param_3 * 4)" (( "(") (binary_expression "*(long *)(param_1 + 8) + param_3 * 4" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (binary_expression "param_3 * 4" (identifier "param_3") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if ((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38)))" (( "(") (binary_expression "(0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))" (parenthesized_expression "(0xfeff < uVar1)" (( "(") (binary_expression "0xfeff < uVar1" (number_literal "0xfeff") (< "<") (identifier "uVar1")) () ")")) (&& "&&") (parenthesized_expression "(uVar1 < *(uint *)(param_2 + 0x38))" (( "(") (binary_expression "uVar1 < *(uint *)(param_2 + 0x38)" (identifier "uVar1") (< "<") (pointer_expression "*(uint *)(param_2 + 0x38)" (* "*") (cast_expression "(uint *)(param_2 + 0x38)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x38)" (( "(") (binary_expression "param_2 + 0x38" (identifier "param_2") (+ "+") (number_literal "0x38")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "uVar2 = gettext("extended index for symbol %u out of range: %u");" (assignment_expression "uVar2 = gettext("extended index for symbol %u out of range: %u")" (identifier "uVar2") (= "=") (call_expression "gettext("extended index for symbol %u out of range: %u")" (identifier "gettext") (argument_list "("extended index for symbol %u out of range: %u")" (( "(") (string_literal ""extended index for symbol %u out of range: %u"" (" """) (string_content "extended index for symbol %u out of range: %u") (" """)) () ")")))) (; ";")) (expression_statement "FUN_001c7b60(param_2,uVar2,param_3,uVar1);" (call_expression "FUN_001c7b60(param_2,uVar2,param_3,uVar1)" (identifier "FUN_001c7b60") (argument_list "(param_2,uVar2,param_3,uVar1)" (( "(") (identifier "param_2") (, ",") (identifier "uVar2") (, ",") (identifier "param_3") (, ",") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* DWARF original prototype: uint sym_xindex_to_shndx(Xindex * this, Object * object, uint symndx)
    */

type_1 __thiscall gold::type_2::function_1(type_2 *this,type_3 *object,type_1 symndx)

{
  type_1 var_7;
  type_4 puVar2;
  char *pcVar3;
  type_5 var_4;
  
  var_4 = (type_5)symndx;
  puVar2 = (this->symtab_xindex_).super__Vector_base<var_2,_std::var_1<var_2>var_3>.
           _M_impl._M_start;
  if ((type_5)((long)(this->symtab_xindex_).
                    super__Vector_base<var_2,_std::var_1<var_2>var_3>._M_impl.
                    _M_finish - (long)puVar2 >> 2) <= var_4) {
    pcVar3 = (char *)var_5("symbol %u out of range for SHT_SYMTAB_SHNDX section");
    Object::var_6(object,pcVar3,var_4);
    return 0;
  }
  var_7 = puVar2[var_4];
  if ((0xfeff < var_7) && (var_7 < object->shnum_)) {
    return var_7;
  }
  pcVar3 = (char *)var_5("extended index for symbol %u out of range: %u");
  Object::var_6(object,pcVar3,var_4,(type_5)var_7);
  return 0;
}


(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: (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)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (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: (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))) consequence: (compound_statement (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)))) (return_statement (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: (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: (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: (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))))))))) consequence: (compound_statement (return_statement (identifier)))) (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)))) (return_statement (number_literal)))))

uint MASKED(long param_1,long param_2,ulong param_3)

{
  uint uVar1;
  undefined8 uVar2;
  
  param_3 = param_3 & 0xffffffff;
  if ((ulong)(*(long *)(param_1 + 0x10) - *(long *)(param_1 + 8) >> 2) <= param_3) {
    uVar2 = gettext("symbol %u out of range for SHT_SYMTAB_SHNDX section");
    FUN_001c7b60(param_2,uVar2,param_3);
    return 0;
  }
  uVar1 = *(uint *)(*(long *)(param_1 + 8) + param_3 * 4);
  if ((0xfeff < uVar1) && (uVar1 < *(uint *)(param_2 + 0x38))) {
    return uVar1;
  }
  uVar2 = gettext("extended index for symbol %u out of range: %u");
  FUN_001c7b60(param_2,uVar2,param_3,uVar1);
  return 0;
}

