
/* std::string::pop_back() */

void __thiscall std::string::pop_back(string *this)

{
  ulong uVar1;
  undefined8 in_R8;
  undefined8 in_R9;
  
  uVar1 = *(ulong *)(*(long *)this + -0x18);
  if (uVar1 - 1 <= uVar1) {
    _M_mutate(this,uVar1 - 1,1,0);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __throw_out_of_range_fmt
            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",
             0xffffffffffffffff,0,in_R8,in_R9,uVar1);
}



void FUN_002d63b0(long *param_1)

{
  ulong uVar1;
  undefined8 in_R8;
  undefined8 in_R9;
  
  uVar1 = *(ulong *)(*param_1 + -0x18);
  if (uVar1 - 1 <= uVar1) {
    FUN_002d58e0(param_1,uVar1 - 1,1,0);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",
               0xffffffffffffffff,0,in_R8,in_R9,uVar1);
}


MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + -0x18]
LEA RSI,[RAX + -0x1]
CMP RSI,RAX
JA 0x002d63cc
XOR ECX,ECX
MOV EDX,0x1
JMP 0x002d58e0
PUSH RAX
XOR ECX,ECX
OR RDX,-0x1
LEA RSI,[0x351d34]
LEA RDI,[0x342ff0]
XOR EAX,EAX
CALL 0x002e1330
(translation_unit "void FUN_002d63b0(long *param_1)\n\n{\n  ulong uVar1;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  \n  uVar1 = *(ulong *)(*param_1 + -0x18);\n  if (uVar1 - 1 <= uVar1) {\n    FUN_002d58e0(param_1,uVar1 - 1,1,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1);\n}\n\n" (function_definition "void FUN_002d63b0(long *param_1)\n\n{\n  ulong uVar1;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  \n  uVar1 = *(ulong *)(*param_1 + -0x18);\n  if (uVar1 - 1 <= uVar1) {\n    FUN_002d58e0(param_1,uVar1 - 1,1,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1);\n}" primitive_type (function_declarator "FUN_002d63b0(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  ulong uVar1;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  \n  uVar1 = *(ulong *)(*param_1 + -0x18);\n  if (uVar1 - 1 <= uVar1) {\n    FUN_002d58e0(param_1,uVar1 - 1,1,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1);\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "undefined8 in_R8;" type_identifier identifier ;) (declaration "undefined8 in_R9;" type_identifier identifier ;) (expression_statement "uVar1 = *(ulong *)(*param_1 + -0x18);" (assignment_expression "uVar1 = *(ulong *)(*param_1 + -0x18)" identifier = (pointer_expression "*(ulong *)(*param_1 + -0x18)" * (cast_expression "(ulong *)(*param_1 + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (uVar1 - 1 <= uVar1) {\n    FUN_002d58e0(param_1,uVar1 - 1,1,0);\n    return;\n  }" if (parenthesized_expression "(uVar1 - 1 <= uVar1)" ( (binary_expression "uVar1 - 1 <= uVar1" (binary_expression "uVar1 - 1" identifier - number_literal) <= identifier) )) (compound_statement "{\n    FUN_002d58e0(param_1,uVar1 - 1,1,0);\n    return;\n  }" { (expression_statement "FUN_002d58e0(param_1,uVar1 - 1,1,0);" (call_expression "FUN_002d58e0(param_1,uVar1 - 1,1,0)" identifier (argument_list "(param_1,uVar1 - 1,1,0)" ( identifier , (binary_expression "uVar1 - 1" identifier - number_literal) , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1);" (call_expression "FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1)" identifier (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1)" ( (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" " string_content ") , (string_literal ""basic_string::erase"" " string_content ") , number_literal , number_literal , identifier , identifier , identifier ))) ;) })))
(translation_unit "/* std::string::pop_back() */\n\nvoid __thiscall std::string::pop_back(string *this)\n\n{\n  ulong uVar1;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  \n  uVar1 = *(ulong *)(*(long *)this + -0x18);\n  if (uVar1 - 1 <= uVar1) {\n    _M_mutate(this,uVar1 - 1,1,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n             0xffffffffffffffff,0,in_R8,in_R9,uVar1);\n}\n\n" comment (function_definition "void __thiscall std::string::pop_back(string *this)\n\n{\n  ulong uVar1;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  \n  uVar1 = *(ulong *)(*(long *)this + -0x18);\n  if (uVar1 - 1 <= uVar1) {\n    _M_mutate(this,uVar1 - 1,1,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n             0xffffffffffffffff,0,in_R8,in_R9,uVar1);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "pop_back(string *this)" identifier (parameter_list "(string *this)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  ulong uVar1;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  \n  uVar1 = *(ulong *)(*(long *)this + -0x18);\n  if (uVar1 - 1 <= uVar1) {\n    _M_mutate(this,uVar1 - 1,1,0);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n             0xffffffffffffffff,0,in_R8,in_R9,uVar1);\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "undefined8 in_R8;" type_identifier identifier ;) (declaration "undefined8 in_R9;" type_identifier identifier ;) (expression_statement "uVar1 = *(ulong *)(*(long *)this + -0x18);" (assignment_expression "uVar1 = *(ulong *)(*(long *)this + -0x18)" identifier = (pointer_expression "*(ulong *)(*(long *)this + -0x18)" * (cast_expression "(ulong *)(*(long *)this + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (if_statement "if (uVar1 - 1 <= uVar1) {\n    _M_mutate(this,uVar1 - 1,1,0);\n    return;\n  }" if (parenthesized_expression "(uVar1 - 1 <= uVar1)" ( (binary_expression "uVar1 - 1 <= uVar1" (binary_expression "uVar1 - 1" identifier - number_literal) <= identifier) )) (compound_statement "{\n    _M_mutate(this,uVar1 - 1,1,0);\n    return;\n  }" { (expression_statement "_M_mutate(this,uVar1 - 1,1,0);" (call_expression "_M_mutate(this,uVar1 - 1,1,0)" identifier (argument_list "(this,uVar1 - 1,1,0)" ( identifier , (binary_expression "uVar1 - 1" identifier - number_literal) , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n             0xffffffffffffffff,0,in_R8,in_R9,uVar1);" (call_expression "__throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n             0xffffffffffffffff,0,in_R8,in_R9,uVar1)" identifier (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n             0xffffffffffffffff,0,in_R8,in_R9,uVar1)" ( (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" " string_content ") , (string_literal ""basic_string::erase"" " string_content ") , number_literal , number_literal , identifier , identifier , identifier ))) ;) })))
(translation_unit "void FUN_002d63b0(long *param_1)\n\n{\n  ulong uVar1;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  \n  uVar1 = *(ulong *)(*param_1 + -0x18);\n  if (uVar1 - 1 <= uVar1) {\n    FUN_002d58e0(param_1,uVar1 - 1,1,0);\n    return;\n  }\n                    \n  FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1);\n}\n\n" (function_definition "void FUN_002d63b0(long *param_1)\n\n{\n  ulong uVar1;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  \n  uVar1 = *(ulong *)(*param_1 + -0x18);\n  if (uVar1 - 1 <= uVar1) {\n    FUN_002d58e0(param_1,uVar1 - 1,1,0);\n    return;\n  }\n                    \n  FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1);\n}" primitive_type (function_declarator "FUN_002d63b0(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  ulong uVar1;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  \n  uVar1 = *(ulong *)(*param_1 + -0x18);\n  if (uVar1 - 1 <= uVar1) {\n    FUN_002d58e0(param_1,uVar1 - 1,1,0);\n    return;\n  }\n                    \n  FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1);\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "undefined8 in_R8;" type_identifier identifier ;) (declaration "undefined8 in_R9;" type_identifier identifier ;) (expression_statement "uVar1 = *(ulong *)(*param_1 + -0x18);" (assignment_expression "uVar1 = *(ulong *)(*param_1 + -0x18)" identifier = (pointer_expression "*(ulong *)(*param_1 + -0x18)" * (cast_expression "(ulong *)(*param_1 + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (uVar1 - 1 <= uVar1) {\n    FUN_002d58e0(param_1,uVar1 - 1,1,0);\n    return;\n  }" if (parenthesized_expression "(uVar1 - 1 <= uVar1)" ( (binary_expression "uVar1 - 1 <= uVar1" (binary_expression "uVar1 - 1" identifier - number_literal) <= identifier) )) (compound_statement "{\n    FUN_002d58e0(param_1,uVar1 - 1,1,0);\n    return;\n  }" { (expression_statement "FUN_002d58e0(param_1,uVar1 - 1,1,0);" (call_expression "FUN_002d58e0(param_1,uVar1 - 1,1,0)" identifier (argument_list "(param_1,uVar1 - 1,1,0)" ( identifier , (binary_expression "uVar1 - 1" identifier - number_literal) , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1);" (call_expression "FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1)" identifier (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1)" ( (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" " string_content ") , (string_literal ""basic_string::erase"" " string_content ") , number_literal , number_literal , identifier , identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) <= IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT - LIT) , LIT , LIT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , LIT , IDENT , IDENT , IDENT ))) ;) })))
(function_definition "void FUN_002d63b0(long *param_1)\n\n{\n  ulong uVar1;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  \n  uVar1 = *(ulong *)(*param_1 + -0x18);\n  if (uVar1 - 1 <= uVar1) {\n    FUN_002d58e0(param_1,uVar1 - 1,1,0);\n    return;\n  }\n                    \n  FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1);\n}" (primitive_type "void") (function_declarator "FUN_002d63b0(long *param_1)" (identifier "FUN_002d63b0") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  ulong uVar1;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  \n  uVar1 = *(ulong *)(*param_1 + -0x18);\n  if (uVar1 - 1 <= uVar1) {\n    FUN_002d58e0(param_1,uVar1 - 1,1,0);\n    return;\n  }\n                    \n  FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1);\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (declaration "undefined8 in_R8;" (type_identifier "undefined8") (identifier "in_R8") (; ";")) (declaration "undefined8 in_R9;" (type_identifier "undefined8") (identifier "in_R9") (; ";")) (expression_statement "uVar1 = *(ulong *)(*param_1 + -0x18);" (assignment_expression "uVar1 = *(ulong *)(*param_1 + -0x18)" (identifier "uVar1") (= "=") (pointer_expression "*(ulong *)(*param_1 + -0x18)" (* "*") (cast_expression "(ulong *)(*param_1 + -0x18)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")"))))) (; ";")) (if_statement "if (uVar1 - 1 <= uVar1) {\n    FUN_002d58e0(param_1,uVar1 - 1,1,0);\n    return;\n  }" (if "if") (parenthesized_expression "(uVar1 - 1 <= uVar1)" (( "(") (binary_expression "uVar1 - 1 <= uVar1" (binary_expression "uVar1 - 1" (identifier "uVar1") (- "-") (number_literal "1")) (<= "<=") (identifier "uVar1")) () ")")) (compound_statement "{\n    FUN_002d58e0(param_1,uVar1 - 1,1,0);\n    return;\n  }" ({ "{") (expression_statement "FUN_002d58e0(param_1,uVar1 - 1,1,0);" (call_expression "FUN_002d58e0(param_1,uVar1 - 1,1,0)" (identifier "FUN_002d58e0") (argument_list "(param_1,uVar1 - 1,1,0)" (( "(") (identifier "param_1") (, ",") (binary_expression "uVar1 - 1" (identifier "uVar1") (- "-") (number_literal "1")) (, ",") (number_literal "1") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1);" (call_expression "FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1)" (identifier "FUN_002e1330") (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",\n               0xffffffffffffffff,0,in_R8,in_R9,uVar1)" (( "(") (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" (" """) (string_content "%s: __pos (which is %zu) > this->size() (which is %zu)") (" """)) (, ",") (string_literal ""basic_string::erase"" (" """) (string_content "basic_string::erase") (" """)) (, ",") (number_literal "0xffffffffffffffff") (, ",") (number_literal "0") (, ",") (identifier "in_R8") (, ",") (identifier "in_R9") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}")))

/* std::string::pop_back() */

void __thiscall std::type_1::function_1(type_1 *this)

{
  type_2 var_1;
  type_3 in_R8;
  type_3 in_R9;
  
  var_1 = *(type_2 *)(*(long *)this + -0x18);
  if (var_1 - 1 <= var_1) {
    var_2(this,var_1 - 1,1,0);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_3
            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",
             0xffffffffffffffff,0,in_R8,in_R9,var_1);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (number_literal)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (number_literal) (identifier) (identifier) (identifier)))))))

void MASKED(long *param_1)

{
  ulong uVar1;
  undefined8 in_R8;
  undefined8 in_R9;
  
  uVar1 = *(ulong *)(*param_1 + -0x18);
  if (uVar1 - 1 <= uVar1) {
    FUN_002d58e0(param_1,uVar1 - 1,1,0);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002e1330("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::erase",
               0xffffffffffffffff,0,in_R8,in_R9,uVar1);
}

