
/* std::string::erase(unsigned int, unsigned int) */

string * __thiscall std::string::erase(string *this,uint param_1,uint param_2)

{
  uint uVar1;
  
  uVar1 = *(uint *)(*(int *)this + -0xc) - param_1;
  if (param_1 <= *(uint *)(*(int *)this + -0xc)) {
    if (uVar1 <= param_2) {
      param_2 = uVar1;
    }
    _M_mutate(this,param_1,param_2,0);
    return this;
  }
                    /* WARNING: Subroutine does not return */
  __throw_out_of_range_fmt
            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1);
}



/* std::string::erase(unsigned int, unsigned int) */

string * __thiscall std::string::erase(string *this,uint param_1,uint param_2)

{
  uint uVar1;
  
  uVar1 = *(uint *)(*(int *)this + -0xc) - param_1;
  if (param_1 <= *(uint *)(*(int *)this + -0xc)) {
    if (uVar1 <= param_2) {
      param_2 = uVar1;
    }
    _M_mutate(this,param_1,param_2,0);
    return this;
  }
                    /* WARNING: Subroutine does not return */
  __throw_out_of_range_fmt
            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1);
}


lui gp,0x15
addiu gp,gp,0x1d08
addu gp,gp,t9
lw v0,0x0(a0)
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
sw s0,0x18(sp)
lw a3,-0xc(v0)
sltu v0,a3,a1
bne v0,zero,0x00377594
_subu v1,a3,a1
lw t9,-0x653c(gp)
or a3,zero,zero
sltu v0,a2,v1
movz a2,v1,v0
bal 0x00376f50
_or s0,a0,zero
or v0,s0,zero
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
or a2,a1,zero
lw a0,-0x77f0(gp)
lw a1,-0x7924(gp)
lw t9,-0x6fe4(gp)
addiu a0,a0,-0xe00
bal 0x003898a4
_addiu a1,a1,0x3894
(translation_unit "/* std::string::erase(unsigned int, unsigned int) */\n\nstring * __thiscall std::string::erase(string *this,uint param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc) - param_1;\n  if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1);\n}\n\n" comment (ERROR "string * __thiscall std::string::erase(string *this,uint param_1,uint param_2)" (binary_expression "string * __thiscall std::string::erase(string *this" (binary_expression "string * __thiscall" identifier * identifier) (ERROR "std::string::erase(string" identifier : : identifier : : identifier ( identifier) * identifier) , type_identifier identifier , identifier identifier )) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc) - param_1;\n  if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(*(int *)this + -0xc) - param_1;" (assignment_expression "uVar1 = *(uint *)(*(int *)this + -0xc) - param_1" identifier = (binary_expression "*(uint *)(*(int *)this + -0xc) - param_1" (pointer_expression "*(uint *)(*(int *)this + -0xc)" * (cast_expression "(uint *)(*(int *)this + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) - identifier)) ;) (if_statement "if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }" if (parenthesized_expression "(param_1 <= *(uint *)(*(int *)this + -0xc))" ( (binary_expression "param_1 <= *(uint *)(*(int *)this + -0xc)" identifier <= (pointer_expression "*(uint *)(*(int *)this + -0xc)" * (cast_expression "(uint *)(*(int *)this + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (compound_statement "{\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }" { (if_statement "if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }" if (parenthesized_expression "(uVar1 <= param_2)" ( (binary_expression "uVar1 <= param_2" identifier <= identifier) )) (compound_statement "{\n      param_2 = uVar1;\n    }" { (expression_statement "param_2 = uVar1;" (assignment_expression "param_2 = uVar1" identifier = identifier) ;) })) (expression_statement "_M_mutate(this,param_1,param_2,0);" (call_expression "_M_mutate(this,param_1,param_2,0)" identifier (argument_list "(this,param_1,param_2,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return this;" return identifier ;) })) comment (expression_statement "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1);" (call_expression "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1)" identifier (argument_list "(PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1)" ( (binary_expression "PTR_s__s_004c1a50 + -0xe00" identifier + number_literal) , (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x3894" identifier + number_literal) , identifier ))) ;) }))
(translation_unit "/* std::string::erase(unsigned int, unsigned int) */\n\nstring * __thiscall std::string::erase(string *this,uint param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc) - param_1;\n  if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1);\n}\n\n" comment (ERROR "string * __thiscall std::string::erase(string *this,uint param_1,uint param_2)" (binary_expression "string * __thiscall std::string::erase(string *this" (binary_expression "string * __thiscall" identifier * identifier) (ERROR "std::string::erase(string" identifier : : identifier : : identifier ( identifier) * identifier) , type_identifier identifier , identifier identifier )) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc) - param_1;\n  if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(*(int *)this + -0xc) - param_1;" (assignment_expression "uVar1 = *(uint *)(*(int *)this + -0xc) - param_1" identifier = (binary_expression "*(uint *)(*(int *)this + -0xc) - param_1" (pointer_expression "*(uint *)(*(int *)this + -0xc)" * (cast_expression "(uint *)(*(int *)this + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) - identifier)) ;) (if_statement "if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }" if (parenthesized_expression "(param_1 <= *(uint *)(*(int *)this + -0xc))" ( (binary_expression "param_1 <= *(uint *)(*(int *)this + -0xc)" identifier <= (pointer_expression "*(uint *)(*(int *)this + -0xc)" * (cast_expression "(uint *)(*(int *)this + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (compound_statement "{\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }" { (if_statement "if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }" if (parenthesized_expression "(uVar1 <= param_2)" ( (binary_expression "uVar1 <= param_2" identifier <= identifier) )) (compound_statement "{\n      param_2 = uVar1;\n    }" { (expression_statement "param_2 = uVar1;" (assignment_expression "param_2 = uVar1" identifier = identifier) ;) })) (expression_statement "_M_mutate(this,param_1,param_2,0);" (call_expression "_M_mutate(this,param_1,param_2,0)" identifier (argument_list "(this,param_1,param_2,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return this;" return identifier ;) })) comment (expression_statement "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1);" (call_expression "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1)" identifier (argument_list "(PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1)" ( (binary_expression "PTR_s__s_004c1a50 + -0xe00" identifier + number_literal) , (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x3894" identifier + number_literal) , identifier ))) ;) }))
(translation_unit "string * __thiscall std::string::erase(string *this,uint param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc) - param_1;\n  if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }\n                    \n  __throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1);\n}\n\n" (ERROR "string * __thiscall std::string::erase(string *this,uint param_1,uint param_2)" (binary_expression "string * __thiscall std::string::erase(string *this" (binary_expression "string * __thiscall" identifier * identifier) (ERROR "std::string::erase(string" identifier : : identifier : : identifier ( identifier) * identifier) , type_identifier identifier , identifier identifier )) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc) - param_1;\n  if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }\n                    \n  __throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(*(int *)this + -0xc) - param_1;" (assignment_expression "uVar1 = *(uint *)(*(int *)this + -0xc) - param_1" identifier = (binary_expression "*(uint *)(*(int *)this + -0xc) - param_1" (pointer_expression "*(uint *)(*(int *)this + -0xc)" * (cast_expression "(uint *)(*(int *)this + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) - identifier)) ;) (if_statement "if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }" if (parenthesized_expression "(param_1 <= *(uint *)(*(int *)this + -0xc))" ( (binary_expression "param_1 <= *(uint *)(*(int *)this + -0xc)" identifier <= (pointer_expression "*(uint *)(*(int *)this + -0xc)" * (cast_expression "(uint *)(*(int *)this + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (compound_statement "{\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }" { (if_statement "if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }" if (parenthesized_expression "(uVar1 <= param_2)" ( (binary_expression "uVar1 <= param_2" identifier <= identifier) )) (compound_statement "{\n      param_2 = uVar1;\n    }" { (expression_statement "param_2 = uVar1;" (assignment_expression "param_2 = uVar1" identifier = identifier) ;) })) (expression_statement "_M_mutate(this,param_1,param_2,0);" (call_expression "_M_mutate(this,param_1,param_2,0)" identifier (argument_list "(this,param_1,param_2,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return this;" return identifier ;) })) (expression_statement "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1);" (call_expression "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1)" identifier (argument_list "(PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1)" ( (binary_expression "PTR_s__s_004c1a50 + -0xe00" identifier + number_literal) , (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x3894" identifier + number_literal) , identifier ))) ;) }))
(translation_unit (ERROR (binary_expression (binary_expression IDENT * IDENT) (ERROR IDENT : : IDENT : : IDENT ( IDENT) * IDENT) , TYPE IDENT , IDENT IDENT )) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT ))) ;) }))
(ERROR "string * __thiscall std::string::erase(string *this,uint param_1,uint param_2)" (binary_expression "string * __thiscall std::string::erase(string *this" (binary_expression "string * __thiscall" (identifier "string") (* "*") (identifier "__thiscall")) (ERROR "std::string::erase(string" (identifier "std") (: ":") (: ":") (identifier "string") (: ":") (: ":") (identifier "erase") (( "(") (identifier "string")) (* "*") (identifier "this")) (, ",") (type_identifier "uint") (identifier "param_1") (, ",") (identifier "uint") (identifier "param_2") () ")")) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc) - param_1;\n  if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }\n                    \n  __throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1);\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = *(uint *)(*(int *)this + -0xc) - param_1;" (assignment_expression "uVar1 = *(uint *)(*(int *)this + -0xc) - param_1" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(*(int *)this + -0xc) - param_1" (pointer_expression "*(uint *)(*(int *)this + -0xc)" (* "*") (cast_expression "(uint *)(*(int *)this + -0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)this + -0xc)" (( "(") (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (+ "+") (number_literal "-0xc")) () ")")))) (- "-") (identifier "param_1"))) (; ";")) (if_statement "if (param_1 <= *(uint *)(*(int *)this + -0xc)) {\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }" (if "if") (parenthesized_expression "(param_1 <= *(uint *)(*(int *)this + -0xc))" (( "(") (binary_expression "param_1 <= *(uint *)(*(int *)this + -0xc)" (identifier "param_1") (<= "<=") (pointer_expression "*(uint *)(*(int *)this + -0xc)" (* "*") (cast_expression "(uint *)(*(int *)this + -0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)this + -0xc)" (( "(") (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (+ "+") (number_literal "-0xc")) () ")"))))) () ")")) (compound_statement "{\n    if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }\n    _M_mutate(this,param_1,param_2,0);\n    return this;\n  }" ({ "{") (if_statement "if (uVar1 <= param_2) {\n      param_2 = uVar1;\n    }" (if "if") (parenthesized_expression "(uVar1 <= param_2)" (( "(") (binary_expression "uVar1 <= param_2" (identifier "uVar1") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n      param_2 = uVar1;\n    }" ({ "{") (expression_statement "param_2 = uVar1;" (assignment_expression "param_2 = uVar1" (identifier "param_2") (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (expression_statement "_M_mutate(this,param_1,param_2,0);" (call_expression "_M_mutate(this,param_1,param_2,0)" (identifier "_M_mutate") (argument_list "(this,param_1,param_2,0)" (( "(") (identifier "this") (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return this;" (return "return") (identifier "this") (; ";")) (} "}"))) (expression_statement "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1);" (call_expression "__throw_out_of_range_fmt\n            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1)" (identifier "__throw_out_of_range_fmt") (argument_list "(PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1)" (( "(") (binary_expression "PTR_s__s_004c1a50 + -0xe00" (identifier "PTR_s__s_004c1a50") (+ "+") (number_literal "-0xe00")) (, ",") (binary_expression "PTR_s_in_a_linker_script_004c191c + 0x3894" (identifier "PTR_s_in_a_linker_script_004c191c") (+ "+") (number_literal "0x3894")) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))

/* std::string::erase(unsigned int, unsigned int) */

string * __thiscall std::string::erase(string *this,type_1 var_1,type_1 var_3)

{
  type_1 var_2;
  
  var_2 = *(type_1 *)(*(int *)this + -0xc) - var_1;
  if (var_1 <= *(type_1 *)(*(int *)this + -0xc)) {
    if (var_2 <= var_3) {
      var_3 = var_2;
    }
    var_4(this,var_1,var_3,0);
    return this;
  }
                    /* WARNING: Subroutine does not return */
  var_5
            (var_6 + -0xe00,var_7 + 0x3894,var_1);
}


(translation_unit (ERROR (binary_expression left: (binary_expression left: (identifier) right: (identifier)) (ERROR (identifier) (identifier) (identifier) (identifier)) right: (identifier)) type: (type_identifier) (identifier) (identifier) (identifier)) (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))) right: (identifier)))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier))))))

/* std::string::MASKED(unsigned int, unsigned int) */

string * __thiscall std::string::MASKED(string *this,uint param_1,uint param_2)

{
  uint uVar1;
  
  uVar1 = *(uint *)(*(int *)this + -0xc) - param_1;
  if (param_1 <= *(uint *)(*(int *)this + -0xc)) {
    if (uVar1 <= param_2) {
      param_2 = uVar1;
    }
    _M_mutate(this,param_1,param_2,0);
    return this;
  }
                    /* WARNING: Subroutine does not return */
  __throw_out_of_range_fmt
            (PTR_s__s_004c1a50 + -0xe00,PTR_s_in_a_linker_script_004c191c + 0x3894,param_1);
}

