
/* std::string::erase(__normal_iterator<char const*, std::string >) */

long __thiscall std::string::erase(string *this,long param_2)

{
  long lVar1;
  
  lVar1 = *(long *)this;
  _M_erase(this,param_2 - lVar1,1);
  return *(long *)this + (param_2 - lVar1);
}



long FUN_002a9f70(long *param_1,long param_2)

{
  long lVar1;
  
  lVar1 = *param_1;
  FUN_002a97b0(param_1,param_2 - lVar1,1);
  return *param_1 + (param_2 - lVar1);
}


PUSH RBP
MOV EDX,0x1
MOV RBP,RDI
PUSH RBX
MOV RBX,RSI
SUB RSP,0x8
SUB RBX,qword ptr [RDI]
MOV RSI,RBX
CALL 0x002a97b0
MOV RAX,qword ptr [RBP]
ADD RSP,0x8
ADD RAX,RBX
POP RBX
POP RBP
RET
(translation_unit "long FUN_002a9f70(long *param_1,long param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *param_1;\n  FUN_002a97b0(param_1,param_2 - lVar1,1);\n  return *param_1 + (param_2 - lVar1);\n}\n\n" (function_definition "long FUN_002a9f70(long *param_1,long param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *param_1;\n  FUN_002a97b0(param_1,param_2 - lVar1,1);\n  return *param_1 + (param_2 - lVar1);\n}" (sized_type_specifier "long" long) (function_declarator "FUN_002a9f70(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = *param_1;\n  FUN_002a97b0(param_1,param_2 - lVar1,1);\n  return *param_1 + (param_2 - lVar1);\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "FUN_002a97b0(param_1,param_2 - lVar1,1);" (call_expression "FUN_002a97b0(param_1,param_2 - lVar1,1)" identifier (argument_list "(param_1,param_2 - lVar1,1)" ( identifier , (binary_expression "param_2 - lVar1" identifier - identifier) , number_literal ))) ;) (return_statement "return *param_1 + (param_2 - lVar1);" return (binary_expression "*param_1 + (param_2 - lVar1)" (pointer_expression "*param_1" * identifier) + (parenthesized_expression "(param_2 - lVar1)" ( (binary_expression "param_2 - lVar1" identifier - identifier) ))) ;) })))
(translation_unit "/* std::string::erase(__normal_iterator<char const*, std::string >) */\n\nlong __thiscall std::string::erase(string *this,long param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *(long *)this;\n  _M_erase(this,param_2 - lVar1,1);\n  return *(long *)this + (param_2 - lVar1);\n}\n\n" comment (function_definition "long __thiscall std::string::erase(string *this,long param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *(long *)this;\n  _M_erase(this,param_2 - lVar1,1);\n  return *(long *)this + (param_2 - lVar1);\n}" (sized_type_specifier "long" long) (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "erase(string *this,long param_2)" identifier (parameter_list "(string *this,long param_2)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = *(long *)this;\n  _M_erase(this,param_2 - lVar1,1);\n  return *(long *)this + (param_2 - lVar1);\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *(long *)this;" (assignment_expression "lVar1 = *(long *)this" identifier = (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "_M_erase(this,param_2 - lVar1,1);" (call_expression "_M_erase(this,param_2 - lVar1,1)" identifier (argument_list "(this,param_2 - lVar1,1)" ( identifier , (binary_expression "param_2 - lVar1" identifier - identifier) , number_literal ))) ;) (return_statement "return *(long *)this + (param_2 - lVar1);" return (binary_expression "*(long *)this + (param_2 - lVar1)" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + (parenthesized_expression "(param_2 - lVar1)" ( (binary_expression "param_2 - lVar1" identifier - identifier) ))) ;) })))
(translation_unit "long FUN_002a9f70(long *param_1,long param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *param_1;\n  FUN_002a97b0(param_1,param_2 - lVar1,1);\n  return *param_1 + (param_2 - lVar1);\n}\n\n" (function_definition "long FUN_002a9f70(long *param_1,long param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *param_1;\n  FUN_002a97b0(param_1,param_2 - lVar1,1);\n  return *param_1 + (param_2 - lVar1);\n}" (sized_type_specifier "long" long) (function_declarator "FUN_002a9f70(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = *param_1;\n  FUN_002a97b0(param_1,param_2 - lVar1,1);\n  return *param_1 + (param_2 - lVar1);\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "FUN_002a97b0(param_1,param_2 - lVar1,1);" (call_expression "FUN_002a97b0(param_1,param_2 - lVar1,1)" identifier (argument_list "(param_1,param_2 - lVar1,1)" ( identifier , (binary_expression "param_2 - lVar1" identifier - identifier) , number_literal ))) ;) (return_statement "return *param_1 + (param_2 - lVar1);" return (binary_expression "*param_1 + (param_2 - lVar1)" (pointer_expression "*param_1" * identifier) + (parenthesized_expression "(param_2 - lVar1)" ( (binary_expression "param_2 - lVar1" identifier - identifier) ))) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT - IDENT) , LIT ))) ;) (return_statement return (binary_expression (pointer_expression * IDENT) + (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) ;) })))
(function_definition "long FUN_002a9f70(long *param_1,long param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *param_1;\n  FUN_002a97b0(param_1,param_2 - lVar1,1);\n  return *param_1 + (param_2 - lVar1);\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_002a9f70(long *param_1,long param_2)" (identifier "FUN_002a9f70") (parameter_list "(long *param_1,long param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = *param_1;\n  FUN_002a97b0(param_1,param_2 - lVar1,1);\n  return *param_1 + (param_2 - lVar1);\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" (identifier "lVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "FUN_002a97b0(param_1,param_2 - lVar1,1);" (call_expression "FUN_002a97b0(param_1,param_2 - lVar1,1)" (identifier "FUN_002a97b0") (argument_list "(param_1,param_2 - lVar1,1)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_2 - lVar1" (identifier "param_2") (- "-") (identifier "lVar1")) (, ",") (number_literal "1") () ")"))) (; ";")) (return_statement "return *param_1 + (param_2 - lVar1);" (return "return") (binary_expression "*param_1 + (param_2 - lVar1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (parenthesized_expression "(param_2 - lVar1)" (( "(") (binary_expression "param_2 - lVar1" (identifier "param_2") (- "-") (identifier "lVar1")) () ")"))) (; ";")) (} "}")))

/* std::string::erase(__normal_iterator<char const*, std::string >) */

long __thiscall std::type_1::function_1(type_1 *this,long var_2)

{
  long var_3;
  
  var_3 = *(long *)this;
  var_1(this,var_2 - var_3,1);
  return *(long *)this + (var_2 - var_3);
}


(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: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)) (number_literal)))) (return_statement (binary_expression left: (pointer_expression argument: (identifier)) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))))

long MASKED(long *param_1,long param_2)

{
  long lVar1;
  
  lVar1 = *param_1;
  FUN_002a97b0(param_1,param_2 - lVar1,1);
  return *param_1 + (param_2 - lVar1);
}

