
/* std::wstring::at(unsigned long) const */

long __thiscall std::wstring::at(wstring *this,ulong param_1)

{
  if (param_1 < *(ulong *)(this + 8)) {
    return *(long *)this + param_1 * 4;
  }
                    /* WARNING: Subroutine does not return */
  __throw_out_of_range_fmt("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");
}



long FUN_002df110(long *param_1,ulong param_2)

{
  if (param_2 < (ulong)param_1[1]) {
    return *param_1 + param_2 * 4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");
}


MOV RDX,qword ptr [RDI + 0x8]
CMP RSI,RDX
JNC 0x002df121
MOV RAX,qword ptr [RDI]
LEA RAX,[RAX + RSI*0x4]
RET
PUSH RAX
LEA RDI,[0x3910f0]
XOR EAX,EAX
CALL 0x00319620
(translation_unit "long FUN_002df110(long *param_1,ulong param_2)\n\n{\n  if (param_2 < (ulong)param_1[1]) {\n    return *param_1 + param_2 * 4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}\n\n" (function_definition "long FUN_002df110(long *param_1,ulong param_2)\n\n{\n  if (param_2 < (ulong)param_1[1]) {\n    return *param_1 + param_2 * 4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" (sized_type_specifier "long" long) (function_declarator "FUN_002df110(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) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_2 < (ulong)param_1[1]) {\n    return *param_1 + param_2 * 4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" { (if_statement "if (param_2 < (ulong)param_1[1]) {\n    return *param_1 + param_2 * 4;\n  }" if (parenthesized_expression "(param_2 < (ulong)param_1[1])" ( (binary_expression "param_2 < (ulong)param_1[1]" identifier < (cast_expression "(ulong)param_1[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    return *param_1 + param_2 * 4;\n  }" { (return_statement "return *param_1 + param_2 * 4;" return (binary_expression "*param_1 + param_2 * 4" (pointer_expression "*param_1" * identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) ;) })) comment (expression_statement "FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");" (call_expression "FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" identifier (argument_list "("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" ( (string_literal ""basic_string::at: __n (which is %zu) >= this->size() (which is %zu)"" " string_content ") ))) ;) })))
(translation_unit "/* std::wstring::at(unsigned long) const */\n\nlong __thiscall std::wstring::at(wstring *this,ulong param_1)\n\n{\n  if (param_1 < *(ulong *)(this + 8)) {\n    return *(long *)this + param_1 * 4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}\n\n" comment (function_definition "long __thiscall std::wstring::at(wstring *this,ulong param_1)\n\n{\n  if (param_1 < *(ulong *)(this + 8)) {\n    return *(long *)this + param_1 * 4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" (sized_type_specifier "long" long) (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "at(wstring *this,ulong param_1)" identifier (parameter_list "(wstring *this,ulong param_1)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "ulong param_1" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 < *(ulong *)(this + 8)) {\n    return *(long *)this + param_1 * 4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" { (if_statement "if (param_1 < *(ulong *)(this + 8)) {\n    return *(long *)this + param_1 * 4;\n  }" if (parenthesized_expression "(param_1 < *(ulong *)(this + 8))" ( (binary_expression "param_1 < *(ulong *)(this + 8)" identifier < (pointer_expression "*(ulong *)(this + 8)" * (cast_expression "(ulong *)(this + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    return *(long *)this + param_1 * 4;\n  }" { (return_statement "return *(long *)this + param_1 * 4;" return (binary_expression "*(long *)this + param_1 * 4" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + (binary_expression "param_1 * 4" identifier * number_literal)) ;) })) comment (expression_statement "__throw_out_of_range_fmt("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");" (call_expression "__throw_out_of_range_fmt("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" identifier (argument_list "("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" ( (string_literal ""basic_string::at: __n (which is %zu) >= this->size() (which is %zu)"" " string_content ") ))) ;) })))
(translation_unit "long FUN_002df110(long *param_1,ulong param_2)\n\n{\n  if (param_2 < (ulong)param_1[1]) {\n    return *param_1 + param_2 * 4;\n  }\n                    \n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}\n\n" (function_definition "long FUN_002df110(long *param_1,ulong param_2)\n\n{\n  if (param_2 < (ulong)param_1[1]) {\n    return *param_1 + param_2 * 4;\n  }\n                    \n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" (sized_type_specifier "long" long) (function_declarator "FUN_002df110(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) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_2 < (ulong)param_1[1]) {\n    return *param_1 + param_2 * 4;\n  }\n                    \n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" { (if_statement "if (param_2 < (ulong)param_1[1]) {\n    return *param_1 + param_2 * 4;\n  }" if (parenthesized_expression "(param_2 < (ulong)param_1[1])" ( (binary_expression "param_2 < (ulong)param_1[1]" identifier < (cast_expression "(ulong)param_1[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    return *param_1 + param_2 * 4;\n  }" { (return_statement "return *param_1 + param_2 * 4;" return (binary_expression "*param_1 + param_2 * 4" (pointer_expression "*param_1" * identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) ;) })) (expression_statement "FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");" (call_expression "FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" identifier (argument_list "("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" ( (string_literal ""basic_string::at: __n (which is %zu) >= this->size() (which is %zu)"" " string_content ") ))) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (return_statement return (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "long FUN_002df110(long *param_1,ulong param_2)\n\n{\n  if (param_2 < (ulong)param_1[1]) {\n    return *param_1 + param_2 * 4;\n  }\n                    \n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_002df110(long *param_1,ulong param_2)" (identifier "FUN_002df110") (parameter_list "(long *param_1,ulong param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "ulong param_2" (type_identifier "ulong") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (param_2 < (ulong)param_1[1]) {\n    return *param_1 + param_2 * 4;\n  }\n                    \n  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");\n}" ({ "{") (if_statement "if (param_2 < (ulong)param_1[1]) {\n    return *param_1 + param_2 * 4;\n  }" (if "if") (parenthesized_expression "(param_2 < (ulong)param_1[1])" (( "(") (binary_expression "param_2 < (ulong)param_1[1]" (identifier "param_2") (< "<") (cast_expression "(ulong)param_1[1]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    return *param_1 + param_2 * 4;\n  }" ({ "{") (return_statement "return *param_1 + param_2 * 4;" (return "return") (binary_expression "*param_1 + param_2 * 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) (; ";")) (} "}"))) (expression_statement "FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");" (call_expression "FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" (identifier "FUN_00319620") (argument_list "("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)")" (( "(") (string_literal ""basic_string::at: __n (which is %zu) >= this->size() (which is %zu)"" (" """) (string_content "basic_string::at: __n (which is %zu) >= this->size() (which is %zu)") (" """)) () ")"))) (; ";")) (} "}")))

/* std::wstring::at(unsigned long) const */

long __thiscall std::type_1::function_1(type_1 *var_2,type_2 var_1)

{
  if (var_1 < *(type_2 *)(var_2 + 8)) {
    return *(long *)var_2 + var_1 * 4;
  }
                    /* WARNING: Subroutine does not return */
  var_3("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");
}


(translation_unit (function_definition type: (sized_type_specifier) 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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (return_statement (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))))))

long MASKED(long *param_1,ulong param_2)

{
  if (param_2 < (ulong)param_1[1]) {
    return *param_1 + param_2 * 4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00319620("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)");
}

