
/* std::string::insert(__normal_iterator<char const*, std::string >, unsigned int, char) */

int * std::string::insert(int *param_1,string *param_2,int param_3,uint param_4,char param_5)

{
  int iVar1;
  
  iVar1 = *(int *)param_2;
  _M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);
  *param_1 = *(int *)param_2 + (param_3 - iVar1);
  return param_1;
}



int * FUN_002c0dbc(int *param_1,string *param_2,int param_3,uint param_4,char param_5)

{
  int iVar1;
  
  iVar1 = *(int *)param_2;
  std::string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);
  *param_1 = *(int *)param_2 + (param_3 - iVar1);
  return param_1;
}


lui gp,0x18
addiu gp,gp,-0x6bec
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x6e98(gp)
lb v0,0x43(sp)
sw s2,0x28(sp)
or s2,a0,zero
sw s1,0x24(sp)
or s1,a1,zero
sw ra,0x2c(sp)
or a0,a1,zero
sw s0,0x20(sp)
sw gp,0x18(sp)
lw s0,0x0(a1)
sw v0,0x10(sp)
subu s0,a2,s0
or a2,zero,zero
bal 0x002c0960
_or a1,s0,zero
or v0,s2,zero
lw v1,0x0(s1)
lw ra,0x2c(sp)
lw s1,0x24(sp)
addu s0,v1,s0
sw s0,0x0(s2)
lw s2,0x28(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "int * FUN_002c0dbc(int *param_1,string *param_2,int param_3,uint param_4,char param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  std::string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);\n  *param_1 = *(int *)param_2 + (param_3 - iVar1);\n  return param_1;\n}\n\n" (function_definition "int * FUN_002c0dbc(int *param_1,string *param_2,int param_3,uint param_4,char param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  std::string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);\n  *param_1 = *(int *)param_2 + (param_3 - iVar1);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_002c0dbc(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" * (function_declarator "FUN_002c0dbc(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" identifier (parameter_list "(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "string *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "char param_5" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  std::string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);\n  *param_1 = *(int *)param_2 + (param_3 - iVar1);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)param_2;" (assignment_expression "iVar1 = *(int *)param_2" identifier = (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (labeled_statement "std::string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);" (call_expression "_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5)" identifier (argument_list "(param_2,param_3 - iVar1,0,param_4,param_5)" ( identifier , (binary_expression "param_3 - iVar1" identifier - identifier) , number_literal , identifier , identifier ))) ;))) (expression_statement "*param_1 = *(int *)param_2 + (param_3 - iVar1);" (assignment_expression "*param_1 = *(int *)param_2 + (param_3 - iVar1)" (pointer_expression "*param_1" * identifier) = (binary_expression "*(int *)param_2 + (param_3 - iVar1)" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (parenthesized_expression "(param_3 - iVar1)" ( (binary_expression "param_3 - iVar1" identifier - identifier) )))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::string::insert(__normal_iterator<char const*, std::string >, unsigned int, char) */\n\nint * std::string::insert(int *param_1,string *param_2,int param_3,uint param_4,char param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  _M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);\n  *param_1 = *(int *)param_2 + (param_3 - iVar1);\n  return param_1;\n}\n\n" comment (function_definition "int * std::string::insert(int *param_1,string *param_2,int param_3,uint param_4,char param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  _M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);\n  *param_1 = *(int *)param_2 + (param_3 - iVar1);\n  return param_1;\n}" primitive_type (pointer_declarator "* std::string::insert(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" * (ERROR "std::string::" identifier : : identifier : :) (function_declarator "insert(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" identifier (parameter_list "(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "string *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "char param_5" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  _M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);\n  *param_1 = *(int *)param_2 + (param_3 - iVar1);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)param_2;" (assignment_expression "iVar1 = *(int *)param_2" identifier = (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);" (call_expression "_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5)" identifier (argument_list "(param_2,param_3 - iVar1,0,param_4,param_5)" ( identifier , (binary_expression "param_3 - iVar1" identifier - identifier) , number_literal , identifier , identifier ))) ;) (expression_statement "*param_1 = *(int *)param_2 + (param_3 - iVar1);" (assignment_expression "*param_1 = *(int *)param_2 + (param_3 - iVar1)" (pointer_expression "*param_1" * identifier) = (binary_expression "*(int *)param_2 + (param_3 - iVar1)" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (parenthesized_expression "(param_3 - iVar1)" ( (binary_expression "param_3 - iVar1" identifier - identifier) )))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "int * FUN_002c0dbc(int *param_1,string *param_2,int param_3,uint param_4,char param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  std::string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);\n  *param_1 = *(int *)param_2 + (param_3 - iVar1);\n  return param_1;\n}\n\n" (function_definition "int * FUN_002c0dbc(int *param_1,string *param_2,int param_3,uint param_4,char param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  std::string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);\n  *param_1 = *(int *)param_2 + (param_3 - iVar1);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_002c0dbc(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" * (function_declarator "FUN_002c0dbc(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" identifier (parameter_list "(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "string *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "char param_5" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  std::string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);\n  *param_1 = *(int *)param_2 + (param_3 - iVar1);\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)param_2;" (assignment_expression "iVar1 = *(int *)param_2" identifier = (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (labeled_statement "std::string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);" (call_expression "_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5)" identifier (argument_list "(param_2,param_3 - iVar1,0,param_4,param_5)" ( identifier , (binary_expression "param_3 - iVar1" identifier - identifier) , number_literal , identifier , identifier ))) ;))) (expression_statement "*param_1 = *(int *)param_2 + (param_3 - iVar1);" (assignment_expression "*param_1 = *(int *)param_2 + (param_3 - iVar1)" (pointer_expression "*param_1" * identifier) = (binary_expression "*(int *)param_2 + (param_3 - iVar1)" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (parenthesized_expression "(param_3 - iVar1)" ( (binary_expression "param_3 - iVar1" identifier - identifier) )))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE 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 *)) ) IDENT))) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT - IDENT) , LIT , IDENT , IDENT ))) ;))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_002c0dbc(int *param_1,string *param_2,int param_3,uint param_4,char param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  std::string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);\n  *param_1 = *(int *)param_2 + (param_3 - iVar1);\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_002c0dbc(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" (* "*") (function_declarator "FUN_002c0dbc(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" (identifier "FUN_002c0dbc") (parameter_list "(int *param_1,string *param_2,int param_3,uint param_4,char param_5)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "string *param_2" (type_identifier "string") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "char param_5" (primitive_type "char") (identifier "param_5")) () ")")))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)param_2;\n  std::string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);\n  *param_1 = *(int *)param_2 + (param_3 - iVar1);\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)param_2;" (assignment_expression "iVar1 = *(int *)param_2" (identifier "iVar1") (= "=") (pointer_expression "*(int *)param_2" (* "*") (cast_expression "(int *)param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2")))) (; ";")) (labeled_statement "std::string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);" (call_expression "_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5)" (identifier "_M_replace_aux") (argument_list "(param_2,param_3 - iVar1,0,param_4,param_5)" (( "(") (identifier "param_2") (, ",") (binary_expression "param_3 - iVar1" (identifier "param_3") (- "-") (identifier "iVar1")) (, ",") (number_literal "0") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")"))) (; ";")))) (expression_statement "*param_1 = *(int *)param_2 + (param_3 - iVar1);" (assignment_expression "*param_1 = *(int *)param_2 + (param_3 - iVar1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*(int *)param_2 + (param_3 - iVar1)" (pointer_expression "*(int *)param_2" (* "*") (cast_expression "(int *)param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2"))) (+ "+") (parenthesized_expression "(param_3 - iVar1)" (( "(") (binary_expression "param_3 - iVar1" (identifier "param_3") (- "-") (identifier "iVar1")) () ")")))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::string::insert(__normal_iterator<char const*, std::string >, unsigned int, char) */

int * std::type_1::function_1(int *param_1,type_1 *param_2,int var_2,type_2 param_4,char param_5)

{
  int var_3;
  
  var_3 = *(int *)param_2;
  var_1(param_2,var_2 - var_3,0,param_4,param_5);
  *param_1 = *(int *)param_2 + (var_2 - var_3);
  return param_1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)) (number_literal) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (return_statement (identifier)))))

int * MASKED(int *param_1,string *param_2,int param_3,uint param_4,char param_5)

{
  int iVar1;
  
  iVar1 = *(int *)param_2;
  std::string::_M_replace_aux(param_2,param_3 - iVar1,0,param_4,param_5);
  *param_1 = *(int *)param_2 + (param_3 - iVar1);
  return param_1;
}

