
/* std::string::resize(unsigned int, char) */

void __thiscall std::string::resize(string *this,uint param_1,char param_2)

{
  uint uVar1;
  
  uVar1 = *(uint *)(*(int *)this + -0xc);
  if (0x3ffffffc < param_1) {
                    /* WARNING: Subroutine does not return */
    __throw_length_error(PTR_s__0043226c + 0x7db0);
  }
  if (param_1 <= uVar1) {
    if (uVar1 <= param_1) {
      return;
    }
    _M_mutate(this,param_1,uVar1 - param_1,0);
    return;
  }
  append(this,param_1 - uVar1,param_2);
  return;
}



/* std::string::resize(unsigned int, char) */

void __thiscall std::string::resize(string *this,uint param_1,char param_2)

{
  uint uVar1;
  
  uVar1 = *(uint *)(*(int *)this + -0xc);
  if (0x3ffffffc < param_1) {
                    /* WARNING: Subroutine does not return */
    __throw_length_error(PTR_DAT_0043226c + 0x7db0);
  }
  if (param_1 <= uVar1) {
    if (uVar1 <= param_1) {
      return;
    }
    _M_mutate(this,param_1,uVar1 - param_1,0);
    return;
  }
  append(this,param_1 - uVar1,param_2);
  return;
}


lui gp,0x14
addiu gp,gp,-0x36a4
addu gp,gp,t9
addiu sp,sp,-0x20
lw a3,0x0(a0)
lui v0,0x3fff
ori v0,v0,0xfffd
sw gp,0x10(sp)
sltu v0,a1,v0
sw ra,0x1c(sp)
beq v0,zero,0x002fd8e8
_lw t0,-0xc(a3)
sltu v0,t0,a1
bne v0,zero,0x002fd8d4
_sltu v0,a1,t0
bne v0,zero,0x002fd8c0
_lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
or a3,zero,zero
lw t9,-0x6940(gp)
subu a2,t0,a1
b 0x002fbeb0
_addiu sp,sp,0x20
lw ra,0x1c(sp)
subu a1,a1,t0
lw t9,-0x6938(gp)
b 0x002fd768
_addiu sp,sp,0x20
lw a0,-0x7f64(gp)
lw t9,-0x7d50(gp)
bal 0x0030e6dc
_addiu a0,a0,0x7db0
(translation_unit "/* std::string::resize(unsigned int, char) */\n\nvoid __thiscall std::string::resize(string *this,uint param_1,char param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc);\n  if (0x3ffffffc < param_1) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error(PTR_DAT_0043226c + 0x7db0);\n  }\n  if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }\n  append(this,param_1 - uVar1,param_2);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::string::resize(string *this,uint param_1,char param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc);\n  if (0x3ffffffc < param_1) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error(PTR_DAT_0043226c + 0x7db0);\n  }\n  if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }\n  append(this,param_1 - uVar1,param_2);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "resize(string *this,uint param_1,char param_2)" identifier (parameter_list "(string *this,uint param_1,char param_2)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc);\n  if (0x3ffffffc < param_1) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error(PTR_DAT_0043226c + 0x7db0);\n  }\n  if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }\n  append(this,param_1 - uVar1,param_2);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(*(int *)this + -0xc);" (assignment_expression "uVar1 = *(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) ))))) ;) (if_statement "if (0x3ffffffc < param_1) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error(PTR_DAT_0043226c + 0x7db0);\n  }" if (parenthesized_expression "(0x3ffffffc < param_1)" ( (binary_expression "0x3ffffffc < param_1" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error(PTR_DAT_0043226c + 0x7db0);\n  }" { comment (expression_statement "__throw_length_error(PTR_DAT_0043226c + 0x7db0);" (call_expression "__throw_length_error(PTR_DAT_0043226c + 0x7db0)" identifier (argument_list "(PTR_DAT_0043226c + 0x7db0)" ( (binary_expression "PTR_DAT_0043226c + 0x7db0" identifier + number_literal) ))) ;) })) (if_statement "if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }" if (parenthesized_expression "(param_1 <= uVar1)" ( (binary_expression "param_1 <= uVar1" identifier <= identifier) )) (compound_statement "{\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }" { (if_statement "if (uVar1 <= param_1) {\n      return;\n    }" if (parenthesized_expression "(uVar1 <= param_1)" ( (binary_expression "uVar1 <= param_1" identifier <= identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "_M_mutate(this,param_1,uVar1 - param_1,0);" (call_expression "_M_mutate(this,param_1,uVar1 - param_1,0)" identifier (argument_list "(this,param_1,uVar1 - param_1,0)" ( identifier , identifier , (binary_expression "uVar1 - param_1" identifier - identifier) , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "append(this,param_1 - uVar1,param_2);" (call_expression "append(this,param_1 - uVar1,param_2)" identifier (argument_list "(this,param_1 - uVar1,param_2)" ( identifier , (binary_expression "param_1 - uVar1" identifier - identifier) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::string::resize(unsigned int, char) */\n\nvoid __thiscall std::string::resize(string *this,uint param_1,char param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc);\n  if (0x3ffffffc < param_1) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error(PTR_s__0043226c + 0x7db0);\n  }\n  if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }\n  append(this,param_1 - uVar1,param_2);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::string::resize(string *this,uint param_1,char param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc);\n  if (0x3ffffffc < param_1) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error(PTR_s__0043226c + 0x7db0);\n  }\n  if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }\n  append(this,param_1 - uVar1,param_2);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "resize(string *this,uint param_1,char param_2)" identifier (parameter_list "(string *this,uint param_1,char param_2)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc);\n  if (0x3ffffffc < param_1) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error(PTR_s__0043226c + 0x7db0);\n  }\n  if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }\n  append(this,param_1 - uVar1,param_2);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(*(int *)this + -0xc);" (assignment_expression "uVar1 = *(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) ))))) ;) (if_statement "if (0x3ffffffc < param_1) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error(PTR_s__0043226c + 0x7db0);\n  }" if (parenthesized_expression "(0x3ffffffc < param_1)" ( (binary_expression "0x3ffffffc < param_1" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error(PTR_s__0043226c + 0x7db0);\n  }" { comment (expression_statement "__throw_length_error(PTR_s__0043226c + 0x7db0);" (call_expression "__throw_length_error(PTR_s__0043226c + 0x7db0)" identifier (argument_list "(PTR_s__0043226c + 0x7db0)" ( (binary_expression "PTR_s__0043226c + 0x7db0" identifier + number_literal) ))) ;) })) (if_statement "if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }" if (parenthesized_expression "(param_1 <= uVar1)" ( (binary_expression "param_1 <= uVar1" identifier <= identifier) )) (compound_statement "{\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }" { (if_statement "if (uVar1 <= param_1) {\n      return;\n    }" if (parenthesized_expression "(uVar1 <= param_1)" ( (binary_expression "uVar1 <= param_1" identifier <= identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "_M_mutate(this,param_1,uVar1 - param_1,0);" (call_expression "_M_mutate(this,param_1,uVar1 - param_1,0)" identifier (argument_list "(this,param_1,uVar1 - param_1,0)" ( identifier , identifier , (binary_expression "uVar1 - param_1" identifier - identifier) , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "append(this,param_1 - uVar1,param_2);" (call_expression "append(this,param_1 - uVar1,param_2)" identifier (argument_list "(this,param_1 - uVar1,param_2)" ( identifier , (binary_expression "param_1 - uVar1" identifier - identifier) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __thiscall std::string::resize(string *this,uint param_1,char param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc);\n  if (0x3ffffffc < param_1) {\n                    \n    __throw_length_error(PTR_DAT_0043226c + 0x7db0);\n  }\n  if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }\n  append(this,param_1 - uVar1,param_2);\n  return;\n}\n\n" (function_definition "void __thiscall std::string::resize(string *this,uint param_1,char param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc);\n  if (0x3ffffffc < param_1) {\n                    \n    __throw_length_error(PTR_DAT_0043226c + 0x7db0);\n  }\n  if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }\n  append(this,param_1 - uVar1,param_2);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "resize(string *this,uint param_1,char param_2)" identifier (parameter_list "(string *this,uint param_1,char param_2)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc);\n  if (0x3ffffffc < param_1) {\n                    \n    __throw_length_error(PTR_DAT_0043226c + 0x7db0);\n  }\n  if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }\n  append(this,param_1 - uVar1,param_2);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(*(int *)this + -0xc);" (assignment_expression "uVar1 = *(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) ))))) ;) (if_statement "if (0x3ffffffc < param_1) {\n                    \n    __throw_length_error(PTR_DAT_0043226c + 0x7db0);\n  }" if (parenthesized_expression "(0x3ffffffc < param_1)" ( (binary_expression "0x3ffffffc < param_1" number_literal < identifier) )) (compound_statement "{\n                    \n    __throw_length_error(PTR_DAT_0043226c + 0x7db0);\n  }" { (expression_statement "__throw_length_error(PTR_DAT_0043226c + 0x7db0);" (call_expression "__throw_length_error(PTR_DAT_0043226c + 0x7db0)" identifier (argument_list "(PTR_DAT_0043226c + 0x7db0)" ( (binary_expression "PTR_DAT_0043226c + 0x7db0" identifier + number_literal) ))) ;) })) (if_statement "if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }" if (parenthesized_expression "(param_1 <= uVar1)" ( (binary_expression "param_1 <= uVar1" identifier <= identifier) )) (compound_statement "{\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }" { (if_statement "if (uVar1 <= param_1) {\n      return;\n    }" if (parenthesized_expression "(uVar1 <= param_1)" ( (binary_expression "uVar1 <= param_1" identifier <= identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "_M_mutate(this,param_1,uVar1 - param_1,0);" (call_expression "_M_mutate(this,param_1,uVar1 - param_1,0)" identifier (argument_list "(this,param_1,uVar1 - param_1,0)" ( identifier , identifier , (binary_expression "uVar1 - param_1" identifier - identifier) , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "append(this,param_1 - uVar1,param_2);" (call_expression "append(this,param_1 - uVar1,param_2)" identifier (argument_list "(this,param_1 - uVar1,param_2)" ( identifier , (binary_expression "param_1 - uVar1" identifier - identifier) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (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 TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT - IDENT) , LIT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT - IDENT) , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __thiscall std::string::resize(string *this,uint param_1,char param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc);\n  if (0x3ffffffc < param_1) {\n                    \n    __throw_length_error(PTR_DAT_0043226c + 0x7db0);\n  }\n  if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }\n  append(this,param_1 - uVar1,param_2);\n  return;\n}" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::string::" (identifier "std") (: ":") (: ":") (identifier "string") (: ":") (: ":")) (function_declarator "resize(string *this,uint param_1,char param_2)" (identifier "resize") (parameter_list "(string *this,uint param_1,char param_2)" (( "(") (parameter_declaration "string *this" (type_identifier "string") (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "char param_2" (primitive_type "char") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(*(int *)this + -0xc);\n  if (0x3ffffffc < param_1) {\n                    \n    __throw_length_error(PTR_DAT_0043226c + 0x7db0);\n  }\n  if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }\n  append(this,param_1 - uVar1,param_2);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = *(uint *)(*(int *)this + -0xc);" (assignment_expression "uVar1 = *(uint *)(*(int *)this + -0xc)" (identifier "uVar1") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (0x3ffffffc < param_1) {\n                    \n    __throw_length_error(PTR_DAT_0043226c + 0x7db0);\n  }" (if "if") (parenthesized_expression "(0x3ffffffc < param_1)" (( "(") (binary_expression "0x3ffffffc < param_1" (number_literal "0x3ffffffc") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n                    \n    __throw_length_error(PTR_DAT_0043226c + 0x7db0);\n  }" ({ "{") (expression_statement "__throw_length_error(PTR_DAT_0043226c + 0x7db0);" (call_expression "__throw_length_error(PTR_DAT_0043226c + 0x7db0)" (identifier "__throw_length_error") (argument_list "(PTR_DAT_0043226c + 0x7db0)" (( "(") (binary_expression "PTR_DAT_0043226c + 0x7db0" (identifier "PTR_DAT_0043226c") (+ "+") (number_literal "0x7db0")) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1 <= uVar1) {\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 <= uVar1)" (( "(") (binary_expression "param_1 <= uVar1" (identifier "param_1") (<= "<=") (identifier "uVar1")) () ")")) (compound_statement "{\n    if (uVar1 <= param_1) {\n      return;\n    }\n    _M_mutate(this,param_1,uVar1 - param_1,0);\n    return;\n  }" ({ "{") (if_statement "if (uVar1 <= param_1) {\n      return;\n    }" (if "if") (parenthesized_expression "(uVar1 <= param_1)" (( "(") (binary_expression "uVar1 <= param_1" (identifier "uVar1") (<= "<=") (identifier "param_1")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "_M_mutate(this,param_1,uVar1 - param_1,0);" (call_expression "_M_mutate(this,param_1,uVar1 - param_1,0)" (identifier "_M_mutate") (argument_list "(this,param_1,uVar1 - param_1,0)" (( "(") (identifier "this") (, ",") (identifier "param_1") (, ",") (binary_expression "uVar1 - param_1" (identifier "uVar1") (- "-") (identifier "param_1")) (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "append(this,param_1 - uVar1,param_2);" (call_expression "append(this,param_1 - uVar1,param_2)" (identifier "append") (argument_list "(this,param_1 - uVar1,param_2)" (( "(") (identifier "this") (, ",") (binary_expression "param_1 - uVar1" (identifier "param_1") (- "-") (identifier "uVar1")) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) (ms_call_modifier) (ERROR (identifier) (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (identifier)) (number_literal)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)) (identifier)))) (return_statement))))

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

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

{
  uint uVar1;
  
  uVar1 = *(uint *)(*(int *)this + -0xc);
  if (0x3ffffffc < param_1) {
                    /* WARNING: Subroutine does not return */
    __throw_length_error(PTR_DAT_0043226c + 0x7db0);
  }
  if (param_1 <= uVar1) {
    if (uVar1 <= param_1) {
      return;
    }
    _M_mutate(this,param_1,uVar1 - param_1,0);
    return;
  }
  append(this,param_1 - uVar1,param_2);
  return;
}

