
/* std::wstring::replace(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*,
   std::wstring >, std::initializer_list<wchar_t>) */

void std::wstring::replace(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)

{
  replace(param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,(param_5 << 2) >> 2)
  ;
  return;
}



void FUN_003d5288(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)

{
  std::wstring::replace
            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,
             (param_5 << 2) >> 2);
  return;
}


lui gp,0xf
addiu gp,gp,0x3fb8
addu gp,gp,t9
lw v0,0x10(sp)
subu a2,a2,a1
lw v1,0x0(a0)
lw t9,-0x3a00(gp)
sra a2,a2,0x2
sll v0,v0,0x2
sw a3,0xc(sp)
subu a1,a1,v1
sra v0,v0,0x2
sra a1,a1,0x2
b 0x003d4d64
_sw v0,0x10(sp)
(translation_unit "void FUN_003d5288(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)\n\n{\n  std::wstring::replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);\n  return;\n}\n\n" (function_definition "void FUN_003d5288(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)\n\n{\n  std::wstring::replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);\n  return;\n}" primitive_type (function_declarator "FUN_003d5288(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)" identifier (parameter_list "(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)" ( (parameter_declaration "wstring *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "wchar_t *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  std::wstring::replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);\n  return;\n}" { (labeled_statement "std::wstring::replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);" statement_identifier : (ERROR ":" :) (expression_statement "replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);" (call_expression "replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2)" identifier (argument_list "(param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2)" ( identifier , (binary_expression "param_2 - *(int *)param_1 >> 2" (binary_expression "param_2 - *(int *)param_1" identifier - (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) >> number_literal) , (binary_expression "param_3 - param_2 >> 2" (binary_expression "param_3 - param_2" identifier - identifier) >> number_literal) , identifier , (binary_expression "(param_5 << 2) >> 2" (parenthesized_expression "(param_5 << 2)" ( (binary_expression "param_5 << 2" identifier << number_literal) )) >> number_literal) ))) ;))) (return_statement "return;" return ;) })))
(translation_unit "/* std::wstring::replace(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*,\n   std::wstring >, std::initializer_list<wchar_t>) */\n\nvoid std::wstring::replace(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)\n\n{\n  replace(param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,(param_5 << 2) >> 2)\n  ;\n  return;\n}\n\n" comment (function_definition "void std::wstring::replace(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)\n\n{\n  replace(param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,(param_5 << 2) >> 2)\n  ;\n  return;\n}" primitive_type (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "replace(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)" identifier (parameter_list "(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)" ( (parameter_declaration "wstring *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "wchar_t *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  replace(param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,(param_5 << 2) >> 2)\n  ;\n  return;\n}" { (expression_statement "replace(param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,(param_5 << 2) >> 2)\n  ;" (call_expression "replace(param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,(param_5 << 2) >> 2)" identifier (argument_list "(param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,(param_5 << 2) >> 2)" ( identifier , (binary_expression "param_2 - *(int *)param_1 >> 2" (binary_expression "param_2 - *(int *)param_1" identifier - (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) >> number_literal) , (binary_expression "param_3 - param_2 >> 2" (binary_expression "param_3 - param_2" identifier - identifier) >> number_literal) , identifier , (binary_expression "(param_5 << 2) >> 2" (parenthesized_expression "(param_5 << 2)" ( (binary_expression "param_5 << 2" identifier << number_literal) )) >> number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_003d5288(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)\n\n{\n  std::wstring::replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);\n  return;\n}\n\n" (function_definition "void FUN_003d5288(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)\n\n{\n  std::wstring::replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);\n  return;\n}" primitive_type (function_declarator "FUN_003d5288(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)" identifier (parameter_list "(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)" ( (parameter_declaration "wstring *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "wchar_t *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  std::wstring::replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);\n  return;\n}" { (labeled_statement "std::wstring::replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);" statement_identifier : (ERROR ":" :) (expression_statement "replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);" (call_expression "replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2)" identifier (argument_list "(param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2)" ( identifier , (binary_expression "param_2 - *(int *)param_1 >> 2" (binary_expression "param_2 - *(int *)param_1" identifier - (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) >> number_literal) , (binary_expression "param_3 - param_2 >> 2" (binary_expression "param_3 - param_2" identifier - identifier) >> number_literal) , identifier , (binary_expression "(param_5 << 2) >> 2" (parenthesized_expression "(param_5 << 2)" ( (binary_expression "param_5 << 2" identifier << number_literal) )) >> number_literal) ))) ;))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) >> LIT) , (binary_expression (binary_expression IDENT - IDENT) >> LIT) , IDENT , (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) ))) ;))) (return_statement return ;) })))
(function_definition "void FUN_003d5288(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)\n\n{\n  std::wstring::replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003d5288(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)" (identifier "FUN_003d5288") (parameter_list "(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)" (( "(") (parameter_declaration "wstring *param_1" (type_identifier "wstring") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "wchar_t *param_4" (type_identifier "wchar_t") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  std::wstring::replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);\n  return;\n}" ({ "{") (labeled_statement "std::wstring::replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "wstring::replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);" (statement_identifier "wstring") (: ":") (ERROR ":" (: ":")) (expression_statement "replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2);" (call_expression "replace\n            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2)" (identifier "replace") (argument_list "(param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,\n             (param_5 << 2) >> 2)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_2 - *(int *)param_1 >> 2" (binary_expression "param_2 - *(int *)param_1" (identifier "param_2") (- "-") (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")))) (>> ">>") (number_literal "2")) (, ",") (binary_expression "param_3 - param_2 >> 2" (binary_expression "param_3 - param_2" (identifier "param_3") (- "-") (identifier "param_2")) (>> ">>") (number_literal "2")) (, ",") (identifier "param_4") (, ",") (binary_expression "(param_5 << 2) >> 2" (parenthesized_expression "(param_5 << 2)" (( "(") (binary_expression "param_5 << 2" (identifier "param_5") (<< "<<") (number_literal "2")) () ")")) (>> ">>") (number_literal "2")) () ")"))) (; ";")))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (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: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))) right: (number_literal)) (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)) (identifier) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))))) (return_statement))))

void MASKED(wstring *param_1,int param_2,int param_3,wchar_t *param_4,int param_5)

{
  std::wstring::replace
            (param_1,param_2 - *(int *)param_1 >> 2,param_3 - param_2 >> 2,param_4,
             (param_5 << 2) >> 2);
  return;
}

