
/* std::string::insert(unsigned long, std::string const&) */

void std::string::insert(ulong param_1,string *param_2)

{
  undefined8 *in_RDX;
  
  if (param_2 <= *(string **)(param_1 + 8)) {
    _M_replace((string *)param_1,(ulong)param_2,0,(char *)*in_RDX,in_RDX[1]);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __throw_out_of_range_fmt
            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",
             param_2,*(string **)(param_1 + 8));
}



void FUN_0027eac0(long param_1,ulong param_2,undefined8 *param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6)

{
  if (param_2 <= *(ulong *)(param_1 + 8)) {
    FUN_0027e650(param_1,param_2,0,*param_3);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",
               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3);
}


MOV RAX,qword ptr [RDI + 0x8]
MOV R8,qword ptr [RDX + 0x8]
MOV RCX,qword ptr [RDX]
CMP RSI,RAX
JA 0x0027ead7
XOR EDX,EDX
JMP 0x0027e650
PUSH RDX
MOV RCX,RAX
MOV RDX,RSI
LEA RDI,[0x311130]
LEA RSI,[0x329286]
XOR EAX,EAX
CALL 0x002b56d0
(translation_unit "void FUN_0027eac0(long param_1,ulong param_2,undefined8 *param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  if (param_2 <= *(ulong *)(param_1 + 8)) {\n    FUN_0027e650(param_1,param_2,0,*param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3);\n}\n\n" (function_definition "void FUN_0027eac0(long param_1,ulong param_2,undefined8 *param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  if (param_2 <= *(ulong *)(param_1 + 8)) {\n    FUN_0027e650(param_1,param_2,0,*param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3);\n}" primitive_type (function_declarator "FUN_0027eac0(long param_1,ulong param_2,undefined8 *param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" identifier (parameter_list "(long param_1,ulong param_2,undefined8 *param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) ))) (compound_statement "{\n  if (param_2 <= *(ulong *)(param_1 + 8)) {\n    FUN_0027e650(param_1,param_2,0,*param_3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3);\n}" { (if_statement "if (param_2 <= *(ulong *)(param_1 + 8)) {\n    FUN_0027e650(param_1,param_2,0,*param_3);\n    return;\n  }" if (parenthesized_expression "(param_2 <= *(ulong *)(param_1 + 8))" ( (binary_expression "param_2 <= *(ulong *)(param_1 + 8)" identifier <= (pointer_expression "*(ulong *)(param_1 + 8)" * (cast_expression "(ulong *)(param_1 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    FUN_0027e650(param_1,param_2,0,*param_3);\n    return;\n  }" { (expression_statement "FUN_0027e650(param_1,param_2,0,*param_3);" (call_expression "FUN_0027e650(param_1,param_2,0,*param_3)" identifier (argument_list "(param_1,param_2,0,*param_3)" ( identifier , identifier , number_literal , (pointer_expression "*param_3" * identifier) ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3);" (call_expression "FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3)" identifier (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3)" ( (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" " string_content ") , (string_literal ""basic_string::replace"" " string_content ") , identifier , (pointer_expression "*(ulong *)(param_1 + 8)" * (cast_expression "(ulong *)(param_1 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (subscript_expression "param_3[1]" identifier [ number_literal ]) , identifier , identifier ))) ;) })))
(translation_unit "/* std::string::insert(unsigned long, std::string const&) */\n\nvoid std::string::insert(ulong param_1,string *param_2)\n\n{\n  undefined8 *in_RDX;\n  \n  if (param_2 <= *(string **)(param_1 + 8)) {\n    _M_replace((string *)param_1,(ulong)param_2,0,(char *)*in_RDX,in_RDX[1]);\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::replace",\n             param_2,*(string **)(param_1 + 8));\n}\n\n" comment (function_definition "void std::string::insert(ulong param_1,string *param_2)\n\n{\n  undefined8 *in_RDX;\n  \n  if (param_2 <= *(string **)(param_1 + 8)) {\n    _M_replace((string *)param_1,(ulong)param_2,0,(char *)*in_RDX,in_RDX[1]);\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::replace",\n             param_2,*(string **)(param_1 + 8));\n}" primitive_type (ERROR "std::string::" identifier : : identifier : :) (function_declarator "insert(ulong param_1,string *param_2)" identifier (parameter_list "(ulong param_1,string *param_2)" ( (parameter_declaration "ulong param_1" type_identifier identifier) , (parameter_declaration "string *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined8 *in_RDX;\n  \n  if (param_2 <= *(string **)(param_1 + 8)) {\n    _M_replace((string *)param_1,(ulong)param_2,0,(char *)*in_RDX,in_RDX[1]);\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::replace",\n             param_2,*(string **)(param_1 + 8));\n}" { (declaration "undefined8 *in_RDX;" type_identifier (pointer_declarator "*in_RDX" * identifier) ;) (if_statement "if (param_2 <= *(string **)(param_1 + 8)) {\n    _M_replace((string *)param_1,(ulong)param_2,0,(char *)*in_RDX,in_RDX[1]);\n    return;\n  }" if (parenthesized_expression "(param_2 <= *(string **)(param_1 + 8))" ( (binary_expression "param_2 <= *(string **)(param_1 + 8)" identifier <= (pointer_expression "*(string **)(param_1 + 8)" * (cast_expression "(string **)(param_1 + 8)" ( (type_descriptor "string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    _M_replace((string *)param_1,(ulong)param_2,0,(char *)*in_RDX,in_RDX[1]);\n    return;\n  }" { (expression_statement "_M_replace((string *)param_1,(ulong)param_2,0,(char *)*in_RDX,in_RDX[1]);" (call_expression "_M_replace((string *)param_1,(ulong)param_2,0,(char *)*in_RDX,in_RDX[1])" identifier (argument_list "((string *)param_1,(ulong)param_2,0,(char *)*in_RDX,in_RDX[1])" ( (cast_expression "(string *)param_1" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(ulong)param_2" ( (type_descriptor "ulong" type_identifier) ) identifier) , number_literal , (cast_expression "(char *)*in_RDX" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*in_RDX" * identifier)) , (subscript_expression "in_RDX[1]" identifier [ 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::replace",\n             param_2,*(string **)(param_1 + 8));" (call_expression "__throw_out_of_range_fmt\n            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n             param_2,*(string **)(param_1 + 8))" identifier (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n             param_2,*(string **)(param_1 + 8))" ( (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" " string_content ") , (string_literal ""basic_string::replace"" " string_content ") , identifier , (pointer_expression "*(string **)(param_1 + 8)" * (cast_expression "(string **)(param_1 + 8)" ( (type_descriptor "string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) })))
(translation_unit "void FUN_0027eac0(long param_1,ulong param_2,undefined8 *param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  if (param_2 <= *(ulong *)(param_1 + 8)) {\n    FUN_0027e650(param_1,param_2,0,*param_3);\n    return;\n  }\n                    \n  FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3);\n}\n\n" (function_definition "void FUN_0027eac0(long param_1,ulong param_2,undefined8 *param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  if (param_2 <= *(ulong *)(param_1 + 8)) {\n    FUN_0027e650(param_1,param_2,0,*param_3);\n    return;\n  }\n                    \n  FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3);\n}" primitive_type (function_declarator "FUN_0027eac0(long param_1,ulong param_2,undefined8 *param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" identifier (parameter_list "(long param_1,ulong param_2,undefined8 *param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) ))) (compound_statement "{\n  if (param_2 <= *(ulong *)(param_1 + 8)) {\n    FUN_0027e650(param_1,param_2,0,*param_3);\n    return;\n  }\n                    \n  FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3);\n}" { (if_statement "if (param_2 <= *(ulong *)(param_1 + 8)) {\n    FUN_0027e650(param_1,param_2,0,*param_3);\n    return;\n  }" if (parenthesized_expression "(param_2 <= *(ulong *)(param_1 + 8))" ( (binary_expression "param_2 <= *(ulong *)(param_1 + 8)" identifier <= (pointer_expression "*(ulong *)(param_1 + 8)" * (cast_expression "(ulong *)(param_1 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    FUN_0027e650(param_1,param_2,0,*param_3);\n    return;\n  }" { (expression_statement "FUN_0027e650(param_1,param_2,0,*param_3);" (call_expression "FUN_0027e650(param_1,param_2,0,*param_3)" identifier (argument_list "(param_1,param_2,0,*param_3)" ( identifier , identifier , number_literal , (pointer_expression "*param_3" * identifier) ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3);" (call_expression "FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3)" identifier (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3)" ( (string_literal ""%s: __pos (which is %zu) > this->size() (which is %zu)"" " string_content ") , (string_literal ""basic_string::replace"" " string_content ") , identifier , (pointer_expression "*(ulong *)(param_1 + 8)" * (cast_expression "(ulong *)(param_1 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (subscript_expression "param_3[1]" identifier [ number_literal ]) , identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , (pointer_expression * IDENT) ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (subscript_expression IDENT [ LIT ]) , IDENT , IDENT ))) ;) })))
(function_definition "void FUN_0027eac0(long param_1,ulong param_2,undefined8 *param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  if (param_2 <= *(ulong *)(param_1 + 8)) {\n    FUN_0027e650(param_1,param_2,0,*param_3);\n    return;\n  }\n                    \n  FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3);\n}" (primitive_type "void") (function_declarator "FUN_0027eac0(long param_1,ulong param_2,undefined8 *param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" (identifier "FUN_0027eac0") (parameter_list "(long param_1,ulong param_2,undefined8 *param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "ulong param_2" (type_identifier "ulong") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 *param_3" (type_identifier "undefined8") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) (, ",") (parameter_declaration "undefined8 param_6" (type_identifier "undefined8") (identifier "param_6")) () ")"))) (compound_statement "{\n  if (param_2 <= *(ulong *)(param_1 + 8)) {\n    FUN_0027e650(param_1,param_2,0,*param_3);\n    return;\n  }\n                    \n  FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3);\n}" ({ "{") (if_statement "if (param_2 <= *(ulong *)(param_1 + 8)) {\n    FUN_0027e650(param_1,param_2,0,*param_3);\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 <= *(ulong *)(param_1 + 8))" (( "(") (binary_expression "param_2 <= *(ulong *)(param_1 + 8)" (identifier "param_2") (<= "<=") (pointer_expression "*(ulong *)(param_1 + 8)" (* "*") (cast_expression "(ulong *)(param_1 + 8)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n    FUN_0027e650(param_1,param_2,0,*param_3);\n    return;\n  }" ({ "{") (expression_statement "FUN_0027e650(param_1,param_2,0,*param_3);" (call_expression "FUN_0027e650(param_1,param_2,0,*param_3)" (identifier "FUN_0027e650") (argument_list "(param_1,param_2,0,*param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3);" (call_expression "FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3)" (identifier "FUN_002b56d0") (argument_list "("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",\n               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3)" (( "(") (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::replace"" (" """) (string_content "basic_string::replace") (" """)) (, ",") (identifier "param_2") (, ",") (pointer_expression "*(ulong *)(param_1 + 8)" (* "*") (cast_expression "(ulong *)(param_1 + 8)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_6") (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}")))

/* std::string::insert(unsigned long, std::string const&) */

void std::type_2::function_1(type_1 var_2,type_2 *var_1)

{
  type_3 *in_RDX;
  
  if (var_1 <= *(type_2 **)(var_2 + 8)) {
    var_3((type_2 *)var_2,(type_1)var_1,0,(char *)*in_RDX,in_RDX[1]);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_4
            ("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",
             var_1,*(type_2 **)(var_2 + 8));
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (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: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (pointer_expression argument: (identifier))))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (subscript_expression argument: (identifier) index: (number_literal)) (identifier) (identifier)))))))

void MASKED(long param_1,ulong param_2,undefined8 *param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6)

{
  if (param_2 <= *(ulong *)(param_1 + 8)) {
    FUN_0027e650(param_1,param_2,0,*param_3);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002b56d0("%s: __pos (which is %zu) > this->size() (which is %zu)","basic_string::replace",
               param_2,*(ulong *)(param_1 + 8),param_3[1],param_6,param_3);
}

