
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: section_offset_type get_offset_from_key(Stringpool_template<char> *
   this, Key k) */

section_offset_type __thiscall
gold::Stringpool_template<char>::get_offset_from_key(Stringpool_template<char> *this,Key k)

{
  if (k <= (this->key_to_offset_).size_) {
    return *(section_offset_type *)
            ((long)(this->key_to_offset_).chunks_.
                   super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>
                   ._M_impl._M_start[k - 1 >> 0xd].
                   super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start +
            (ulong)((uint)(k - 1) & 0x1fff) * 8);
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/stringpool.h",0x108,"get_offset_from_key");
}



undefined8 FUN_0027ceb0(long param_1,ulong param_2)

{
  if (param_2 <= *(ulong *)(param_1 + 0x50)) {
    return *(undefined8 *)
            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +
            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);
  }
                    /* WARNING: Subroutine does not return */
  FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key");
}


CMP RSI,qword ptr [RDI + 0x50]
JA 0x0027cedb
SUB RSI,0x1
MOV RDX,qword ptr [RDI + 0x38]
MOV RAX,RSI
AND ESI,0x1fff
SHR RAX,0xd
LEA RAX,[RAX + RAX*0x2]
LEA RAX,[RDX + RAX*0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + RSI*0x8]
RET
PUSH RCX
LEA RDX,[0x39d5f0]
MOV ESI,0x108
LEA RDI,[0x3895b6]
CALL 0x0018dcf0
(translation_unit "undefined8 FUN_0027ceb0(long param_1,ulong param_2)\n\n{\n  if (param_2 <= *(ulong *)(param_1 + 0x50)) {\n    return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key");\n}\n\n" (function_definition "undefined8 FUN_0027ceb0(long param_1,ulong param_2)\n\n{\n  if (param_2 <= *(ulong *)(param_1 + 0x50)) {\n    return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key");\n}" type_identifier (function_declarator "FUN_0027ceb0(long param_1,ulong param_2)" identifier (parameter_list "(long param_1,ulong param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_2 <= *(ulong *)(param_1 + 0x50)) {\n    return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key");\n}" { (if_statement "if (param_2 <= *(ulong *)(param_1 + 0x50)) {\n    return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);\n  }" if (parenthesized_expression "(param_2 <= *(ulong *)(param_1 + 0x50))" ( (binary_expression "param_2 <= *(ulong *)(param_1 + 0x50)" identifier <= (pointer_expression "*(ulong *)(param_1 + 0x50)" * (cast_expression "(ulong *)(param_1 + 0x50)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) )) (compound_statement "{\n    return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);\n  }" { (return_statement "return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);" return (pointer_expression "*(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8)" * (cast_expression "(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8)" ( (binary_expression "*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8" (pointer_expression "*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18)" * (cast_expression "(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18)" ( (binary_expression "*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18" (pointer_expression "*(long *)(param_1 + 0x38)" * (cast_expression "(long *)(param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + (binary_expression "(param_2 - 1 >> 0xd) * 0x18" (parenthesized_expression "(param_2 - 1 >> 0xd)" ( (binary_expression "param_2 - 1 >> 0xd" (binary_expression "param_2 - 1" identifier - number_literal) >> number_literal) )) * number_literal)) )))) + (binary_expression "(ulong)((uint)(param_2 - 1) & 0x1fff) * 8" (call_expression "(ulong)((uint)(param_2 - 1) & 0x1fff)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((uint)(param_2 - 1) & 0x1fff)" ( (binary_expression "(uint)(param_2 - 1) & 0x1fff" (call_expression "(uint)(param_2 - 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 - 1)" ( (binary_expression "param_2 - 1" identifier - number_literal) ))) & number_literal) ))) * number_literal)) )))) ;) })) comment (expression_statement "FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key");" (call_expression "FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key")" identifier (argument_list "("../../gold/stringpool.h",0x108,"get_offset_from_key")" ( (string_literal ""../../gold/stringpool.h"" " string_content ") , number_literal , (string_literal ""get_offset_from_key"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Type propagation algorithm not settling */\n/* DWARF original prototype: section_offset_type get_offset_from_key(Stringpool_template<char> *\n   this, Key k) */\n\nsection_offset_type __thiscall\ngold::Stringpool_template<char>::get_offset_from_key(Stringpool_template<char> *this,Key k)\n\n{\n  if (k <= (this->key_to_offset_).size_) {\n    return *(section_offset_type *)\n            ((long)(this->key_to_offset_).chunks_.\n                   super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                   ._M_impl._M_start[k - 1 >> 0xd].\n                   super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start +\n            (ulong)((uint)(k - 1) & 0x1fff) * 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/stringpool.h",0x108,"get_offset_from_key");\n}\n\n" comment comment (function_definition "section_offset_type __thiscall\ngold::Stringpool_template<char>::get_offset_from_key(Stringpool_template<char> *this,Key k)\n\n{\n  if (k <= (this->key_to_offset_).size_) {\n    return *(section_offset_type *)\n            ((long)(this->key_to_offset_).chunks_.\n                   super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                   ._M_impl._M_start[k - 1 >> 0xd].\n                   super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start +\n            (ulong)((uint)(k - 1) & 0x1fff) * 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/stringpool.h",0x108,"get_offset_from_key");\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Stringpool_template<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "get_offset_from_key(Stringpool_template<char> *this,Key k)" identifier (parameter_list "(Stringpool_template<char> *this,Key k)" ( (parameter_declaration "Stringpool_template<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Key k" type_identifier identifier) ))) (compound_statement "{\n  if (k <= (this->key_to_offset_).size_) {\n    return *(section_offset_type *)\n            ((long)(this->key_to_offset_).chunks_.\n                   super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                   ._M_impl._M_start[k - 1 >> 0xd].\n                   super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start +\n            (ulong)((uint)(k - 1) & 0x1fff) * 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/stringpool.h",0x108,"get_offset_from_key");\n}" { (if_statement "if (k <= (this->key_to_offset_).size_) {\n    return *(section_offset_type *)\n            ((long)(this->key_to_offset_).chunks_.\n                   super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                   ._M_impl._M_start[k - 1 >> 0xd].\n                   super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start +\n            (ulong)((uint)(k - 1) & 0x1fff) * 8);\n  }" if (parenthesized_expression "(k <= (this->key_to_offset_).size_)" ( (binary_expression "k <= (this->key_to_offset_).size_" identifier <= (field_expression "(this->key_to_offset_).size_" (parenthesized_expression "(this->key_to_offset_)" ( (field_expression "this->key_to_offset_" identifier -> field_identifier) )) . field_identifier)) )) (compound_statement "{\n    return *(section_offset_type *)\n            ((long)(this->key_to_offset_).chunks_.\n                   super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                   ._M_impl._M_start[k - 1 >> 0xd].\n                   super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start +\n            (ulong)((uint)(k - 1) & 0x1fff) * 8);\n  }" { (return_statement "return *(section_offset_type *)\n            ((long)(this->key_to_offset_).chunks_.\n                   super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                   ._M_impl._M_start[k - 1 >> 0xd].\n                   super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start +\n            (ulong)((uint)(k - 1) & 0x1fff) * 8);" return (pointer_expression "*(section_offset_type *)\n            ((long)(this->key_to_offset_).chunks_.\n                   super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                   ._M_impl._M_start[k - 1 >> 0xd].\n                   super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start +\n            (ulong)((uint)(k - 1) & 0x1fff) * 8)" * (cast_expression "(section_offset_type *)\n            ((long)(this->key_to_offset_).chunks_.\n                   super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                   ._M_impl._M_start[k - 1 >> 0xd].\n                   super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start +\n            (ulong)((uint)(k - 1) & 0x1fff) * 8)" ( (type_descriptor "section_offset_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)(this->key_to_offset_).chunks_.\n                   super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                   ._M_impl._M_start[k - 1 >> 0xd].\n                   super__Vector_base<long_int,_std::allocator<long_int>_>._M_impl._M_start +\n            (ulong)((uint)(k - 1) & 0x1fff) * 8)" ( (ERROR "(long)(this->key_to_offset_).chunks_.\n                   super__Vector_base<std::vector<long_int,_std::allocator<long_int>_>,_std::allocator<std::vector<long_int,_std::allocator<long_int>_>_>_>\n                   ._M_impl._M_start[k - 1 >> 0xd].\n                   super__Vector_base<long_int,_std::" (comma_expression "(long)(this->key_to_offset_).chunks_.\n                   super__Vector_base<std::vector<long_int,_std" (binary_expression "(long)(this->key_to_offset_).chunks_.\n                   super__Vector_base<std::vector<long_int" (binary_expression "(long)(this->key_to_offset_).chunks_.\n                   super__Vector_base<std" (cast_expression "(long)(this->key_to_offset_).chunks_.\n                   super__Vector_base" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "(this->key_to_offset_).chunks_.\n                   super__Vector_base" (field_expression "(this->key_to_offset_).chunks_" (parenthesized_expression "(this->key_to_offset_)" ( (field_expression "this->key_to_offset_" identifier -> field_identifier) )) . field_identifier) . field_identifier)) < identifier) (ERROR "::vector" : : identifier) < identifier) , identifier) : : (binary_expression "allocator<long_int>_>,_std" (binary_expression "allocator<long_int>_" (binary_expression "allocator<long_int" identifier < identifier) > identifier) > (ERROR "," ,) identifier) : : (binary_expression "allocator<std" identifier < identifier) : : (comma_expression "vector<long_int,_std" (binary_expression "vector<long_int" identifier < identifier) , identifier) : : (comma_expression "allocator<long_int>_>_>_>\n                   ._M_impl._M_start[k - 1 >> 0xd].\n                   super__Vector_base<long_int,_std" (binary_expression "allocator<long_int>_>_>_>\n                   ._M_impl._M_start[k - 1 >> 0xd].\n                   super__Vector_base<long_int" (field_expression "allocator<long_int>_>_>_>\n                   ._M_impl._M_start[k - 1 >> 0xd].\n                   super__Vector_base" (subscript_expression "allocator<long_int>_>_>_>\n                   ._M_impl._M_start[k - 1 >> 0xd]" (field_expression "allocator<long_int>_>_>_>\n                   ._M_impl._M_start" (field_expression "allocator<long_int>_>_>_>\n                   ._M_impl" (binary_expression "allocator<long_int>_>_>_" (binary_expression "allocator<long_int>_>_" (binary_expression "allocator<long_int>_" (binary_expression "allocator<long_int" identifier < identifier) > identifier) > identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) [ (binary_expression "k - 1 >> 0xd" (binary_expression "k - 1" identifier - number_literal) >> number_literal) ]) . field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<long_int>_>._M_impl._M_start +\n            (ulong)((uint)(k - 1) & 0x1fff) * 8" (field_expression "allocator<long_int>_>._M_impl._M_start" (field_expression "allocator<long_int>_>._M_impl" (binary_expression "allocator<long_int>_" (binary_expression "allocator<long_int" identifier < identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) + (binary_expression "(ulong)((uint)(k - 1) & 0x1fff) * 8" (call_expression "(ulong)((uint)(k - 1) & 0x1fff)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((uint)(k - 1) & 0x1fff)" ( (binary_expression "(uint)(k - 1) & 0x1fff" (call_expression "(uint)(k - 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(k - 1)" ( (binary_expression "k - 1" identifier - number_literal) ))) & number_literal) ))) * number_literal)) )))) ;) })) comment (expression_statement "do_gold_unreachable("../../gold/stringpool.h",0x108,"get_offset_from_key");" (call_expression "do_gold_unreachable("../../gold/stringpool.h",0x108,"get_offset_from_key")" identifier (argument_list "("../../gold/stringpool.h",0x108,"get_offset_from_key")" ( (string_literal ""../../gold/stringpool.h"" " string_content ") , number_literal , (string_literal ""get_offset_from_key"" " string_content ") ))) ;) })))
(translation_unit "undefined8 FUN_0027ceb0(long param_1,ulong param_2)\n\n{\n  if (param_2 <= *(ulong *)(param_1 + 0x50)) {\n    return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);\n  }\n                    \n  FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key");\n}\n\n" (function_definition "undefined8 FUN_0027ceb0(long param_1,ulong param_2)\n\n{\n  if (param_2 <= *(ulong *)(param_1 + 0x50)) {\n    return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);\n  }\n                    \n  FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key");\n}" type_identifier (function_declarator "FUN_0027ceb0(long param_1,ulong param_2)" identifier (parameter_list "(long param_1,ulong param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_2 <= *(ulong *)(param_1 + 0x50)) {\n    return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);\n  }\n                    \n  FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key");\n}" { (if_statement "if (param_2 <= *(ulong *)(param_1 + 0x50)) {\n    return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);\n  }" if (parenthesized_expression "(param_2 <= *(ulong *)(param_1 + 0x50))" ( (binary_expression "param_2 <= *(ulong *)(param_1 + 0x50)" identifier <= (pointer_expression "*(ulong *)(param_1 + 0x50)" * (cast_expression "(ulong *)(param_1 + 0x50)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) )) (compound_statement "{\n    return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);\n  }" { (return_statement "return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);" return (pointer_expression "*(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8)" * (cast_expression "(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8)" ( (binary_expression "*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8" (pointer_expression "*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18)" * (cast_expression "(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18)" ( (binary_expression "*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18" (pointer_expression "*(long *)(param_1 + 0x38)" * (cast_expression "(long *)(param_1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + (binary_expression "(param_2 - 1 >> 0xd) * 0x18" (parenthesized_expression "(param_2 - 1 >> 0xd)" ( (binary_expression "param_2 - 1 >> 0xd" (binary_expression "param_2 - 1" identifier - number_literal) >> number_literal) )) * number_literal)) )))) + (binary_expression "(ulong)((uint)(param_2 - 1) & 0x1fff) * 8" (call_expression "(ulong)((uint)(param_2 - 1) & 0x1fff)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((uint)(param_2 - 1) & 0x1fff)" ( (binary_expression "(uint)(param_2 - 1) & 0x1fff" (call_expression "(uint)(param_2 - 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 - 1)" ( (binary_expression "param_2 - 1" identifier - number_literal) ))) & number_literal) ))) * number_literal)) )))) ;) })) (expression_statement "FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key");" (call_expression "FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key")" identifier (argument_list "("../../gold/stringpool.h",0x108,"get_offset_from_key")" ( (string_literal ""../../gold/stringpool.h"" " string_content ") , number_literal , (string_literal ""get_offset_from_key"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (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 (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 (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) >> LIT) )) * LIT)) )))) + (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) ))) & LIT) ))) * LIT)) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "undefined8 FUN_0027ceb0(long param_1,ulong param_2)\n\n{\n  if (param_2 <= *(ulong *)(param_1 + 0x50)) {\n    return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);\n  }\n                    \n  FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key");\n}" (type_identifier "undefined8") (function_declarator "FUN_0027ceb0(long param_1,ulong param_2)" (identifier "FUN_0027ceb0") (parameter_list "(long param_1,ulong param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "ulong param_2" (type_identifier "ulong") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (param_2 <= *(ulong *)(param_1 + 0x50)) {\n    return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);\n  }\n                    \n  FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key");\n}" ({ "{") (if_statement "if (param_2 <= *(ulong *)(param_1 + 0x50)) {\n    return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);\n  }" (if "if") (parenthesized_expression "(param_2 <= *(ulong *)(param_1 + 0x50))" (( "(") (binary_expression "param_2 <= *(ulong *)(param_1 + 0x50)" (identifier "param_2") (<= "<=") (pointer_expression "*(ulong *)(param_1 + 0x50)" (* "*") (cast_expression "(ulong *)(param_1 + 0x50)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")"))))) () ")")) (compound_statement "{\n    return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);\n  }" ({ "{") (return_statement "return *(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);" (return "return") (pointer_expression "*(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8)" (* "*") (cast_expression "(undefined8 *)\n            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8)" (( "(") (binary_expression "*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +\n            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8" (pointer_expression "*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18)" (* "*") (cast_expression "(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18)" (( "(") (binary_expression "*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18" (pointer_expression "*(long *)(param_1 + 0x38)" (* "*") (cast_expression "(long *)(param_1 + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (binary_expression "(param_2 - 1 >> 0xd) * 0x18" (parenthesized_expression "(param_2 - 1 >> 0xd)" (( "(") (binary_expression "param_2 - 1 >> 0xd" (binary_expression "param_2 - 1" (identifier "param_2") (- "-") (number_literal "1")) (>> ">>") (number_literal "0xd")) () ")")) (* "*") (number_literal "0x18"))) () ")")))) (+ "+") (binary_expression "(ulong)((uint)(param_2 - 1) & 0x1fff) * 8" (call_expression "(ulong)((uint)(param_2 - 1) & 0x1fff)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "((uint)(param_2 - 1) & 0x1fff)" (( "(") (binary_expression "(uint)(param_2 - 1) & 0x1fff" (call_expression "(uint)(param_2 - 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 - 1)" (( "(") (binary_expression "param_2 - 1" (identifier "param_2") (- "-") (number_literal "1")) () ")"))) (& "&") (number_literal "0x1fff")) () ")"))) (* "*") (number_literal "8"))) () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key");" (call_expression "FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key")" (identifier "FUN_0018dcf0") (argument_list "("../../gold/stringpool.h",0x108,"get_offset_from_key")" (( "(") (string_literal ""../../gold/stringpool.h"" (" """) (string_content "../../gold/stringpool.h") (" """)) (, ",") (number_literal "0x108") (, ",") (string_literal ""get_offset_from_key"" (" """) (string_content "get_offset_from_key") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: section_offset_type get_offset_from_key(Stringpool_template<char> *
   this, Key k) */

type_1 __thiscall
gold::type_2<char>::function_1(type_2<char> *this,type_3 var_1)

{
  if (var_1 <= (this->key_to_offset_).size_) {
    return *(type_1 *)
            ((long)(this->key_to_offset_).chunks_.
                   super__Vector_base<std::vector<var_3,_std::var_2<var_3>var_4>,_std::var_2<std::vector<var_3,_std::var_2<var_3>var_4>var_4>var_4>
                   ._M_impl._M_start[var_1 - 1 >> 0xd].
                   super__Vector_base<var_3,_std::var_2<var_3>var_4>._M_impl._M_start +
            (ulong)((uint)(var_1 - 1) & 0x1fff) * 8);
  }
                    /* WARNING: Subroutine does not return */
  var_5("../../gold/stringpool.h",0x108,"get_offset_from_key");
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (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 (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: (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: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal)))))) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)))) right: (number_literal))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content))))))))

undefined8 MASKED(long param_1,ulong param_2)

{
  if (param_2 <= *(ulong *)(param_1 + 0x50)) {
    return *(undefined8 *)
            (*(long *)(*(long *)(param_1 + 0x38) + (param_2 - 1 >> 0xd) * 0x18) +
            (ulong)((uint)(param_2 - 1) & 0x1fff) * 8);
  }
                    /* WARNING: Subroutine does not return */
  FUN_0018dcf0("../../gold/stringpool.h",0x108,"get_offset_from_key");
}

