
/* void std::wstring::insert<__normal_iterator<wchar_t*, std::wstring >
   >(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*, std::wstring >,
   __normal_iterator<wchar_t*, std::wstring >) */

void __thiscall
std::wstring::insert<__normal_iterator<wchar_t*,std::wstring>>
          (wstring *this,int param_2,int param_3,int param_4)

{
  uint uVar1;
  
  uVar1 = param_2 - *(int *)this >> 2;
  if (uVar1 <= *(uint *)(this + 4)) {
    (*(code *)PTR__M_replace_00433cf0)(this,uVar1,0,param_3,param_4 - param_3 >> 2);
    return;
  }
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)
            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_s__0043226c + 0x72f0,uVar1,
             *(uint *)(this + 4));
  return;
}



void FUN_0036b3dc(int *param_1,int param_2,int param_3,int param_4)

{
  uint uVar1;
  
  uVar1 = param_2 - *param_1 >> 2;
  if (uVar1 <= (uint)param_1[1]) {
    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);
    return;
  }
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)
            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1]);
  return;
}


lui gp,0xd
addiu gp,gp,-0x120c
addu gp,gp,t9
lw v0,0x0(a0)
addiu sp,sp,-0x28
lw v1,0x4(a0)
subu a1,a1,v0
sw gp,0x18(sp)
sw ra,0x24(sp)
sra a1,a1,0x2
sltu v0,v1,a1
bne v0,zero,0x0036b438
_subu a3,a3,a2
lw t9,-0x64e0(gp)
sra a3,a3,0x2
or t0,a2,zero
or a2,zero,zero
sw a3,0x10(sp)
jalr t9
_or a3,t0,zero
lw ra,0x24(sp)
jr ra
_addiu sp,sp,0x28
or a2,a1,zero
lw a0,-0x7e1c(gp)
lw a1,-0x7f64(gp)
or a3,v1,zero
lw t9,-0x71e8(gp)
addiu a0,a0,-0x25a4
jalr t9
_addiu a1,a1,0x72f0
(translation_unit "void FUN_0036b3dc(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = param_2 - *param_1 >> 2;\n  if (uVar1 <= (uint)param_1[1]) {\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1]);\n  return;\n}\n\n" (function_definition "void FUN_0036b3dc(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = param_2 - *param_1 >> 2;\n  if (uVar1 <= (uint)param_1[1]) {\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1]);\n  return;\n}" primitive_type (function_declarator "FUN_0036b3dc(int *param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = param_2 - *param_1 >> 2;\n  if (uVar1 <= (uint)param_1[1]) {\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1]);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = param_2 - *param_1 >> 2;" (assignment_expression "uVar1 = param_2 - *param_1 >> 2" identifier = (binary_expression "param_2 - *param_1 >> 2" (binary_expression "param_2 - *param_1" identifier - (pointer_expression "*param_1" * identifier)) >> number_literal)) ;) (if_statement "if (uVar1 <= (uint)param_1[1]) {\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }" if (parenthesized_expression "(uVar1 <= (uint)param_1[1])" ( (binary_expression "uVar1 <= (uint)param_1[1]" identifier <= (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }" { (expression_statement "(*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);" (call_expression "(*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2)" (parenthesized_expression "(*(code *)PTR__M_replace_00433cf0)" ( (pointer_expression "*(code *)PTR__M_replace_00433cf0" * (cast_expression "(code *)PTR__M_replace_00433cf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar1,0,param_3,param_4 - param_3 >> 2)" ( identifier , identifier , number_literal , identifier , (binary_expression "param_4 - param_3 >> 2" (binary_expression "param_4 - param_3" identifier - identifier) >> number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1]);" (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1])" (parenthesized_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)" ( (pointer_expression "*(code *)PTR___throw_out_of_range_fmt_00432fe8" * (cast_expression "(code *)PTR___throw_out_of_range_fmt_00432fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1])" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) , (binary_expression "PTR_DAT_0043226c + 0x72f0" identifier + number_literal) , identifier , (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* void std::wstring::insert<__normal_iterator<wchar_t*, std::wstring >\n   >(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*, std::wstring >,\n   __normal_iterator<wchar_t*, std::wstring >) */\n\nvoid __thiscall\nstd::wstring::insert<__normal_iterator<wchar_t*,std::wstring>>\n          (wstring *this,int param_2,int param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = param_2 - *(int *)this >> 2;\n  if (uVar1 <= *(uint *)(this + 4)) {\n    (*(code *)PTR__M_replace_00433cf0)(this,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_s__0043226c + 0x72f0,uVar1,\n             *(uint *)(this + 4));\n  return;\n}\n\n" comment (declaration "void __thiscall\nstd::wstring::insert<__normal_iterator<wchar_t*,std::wstring>>\n          (wstring *this,int param_2,int param_3,int param_4)\n\n{\n  uint uVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::insert<__normal_iterator<" identifier : : identifier : : identifier < identifier <) identifier (ERROR "*" *) , (ERROR "std::wstring>>\n          (wstring *this,int param_2,int param_3,int param_4)\n\n{\n  uint" identifier : : (function_declarator "wstring>>\n          (wstring *this,int param_2,int param_3,int param_4)" identifier (ERROR ">>" >>) (parameter_list "(wstring *this,int param_2,int param_3,int param_4)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) { identifier) identifier ;) (expression_statement "uVar1 = param_2 - *(int *)this >> 2;" (assignment_expression "uVar1 = param_2 - *(int *)this >> 2" identifier = (binary_expression "param_2 - *(int *)this >> 2" (binary_expression "param_2 - *(int *)this" identifier - (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) >> number_literal)) ;) (if_statement "if (uVar1 <= *(uint *)(this + 4)) {\n    (*(code *)PTR__M_replace_00433cf0)(this,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }" if (parenthesized_expression "(uVar1 <= *(uint *)(this + 4))" ( (binary_expression "uVar1 <= *(uint *)(this + 4)" identifier <= (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) )) (compound_statement "{\n    (*(code *)PTR__M_replace_00433cf0)(this,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }" { (expression_statement "(*(code *)PTR__M_replace_00433cf0)(this,uVar1,0,param_3,param_4 - param_3 >> 2);" (call_expression "(*(code *)PTR__M_replace_00433cf0)(this,uVar1,0,param_3,param_4 - param_3 >> 2)" (parenthesized_expression "(*(code *)PTR__M_replace_00433cf0)" ( (pointer_expression "*(code *)PTR__M_replace_00433cf0" * (cast_expression "(code *)PTR__M_replace_00433cf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this,uVar1,0,param_3,param_4 - param_3 >> 2)" ( identifier , identifier , number_literal , identifier , (binary_expression "param_4 - param_3 >> 2" (binary_expression "param_4 - param_3" identifier - identifier) >> number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_s__0043226c + 0x72f0,uVar1,\n             *(uint *)(this + 4));" (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_s__0043226c + 0x72f0,uVar1,\n             *(uint *)(this + 4))" (parenthesized_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)" ( (pointer_expression "*(code *)PTR___throw_out_of_range_fmt_00432fe8" * (cast_expression "(code *)PTR___throw_out_of_range_fmt_00432fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_s__0043226c + 0x72f0,uVar1,\n             *(uint *)(this + 4))" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) , (binary_expression "PTR_s__0043226c + 0x72f0" identifier + number_literal) , identifier , (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_0036b3dc(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = param_2 - *param_1 >> 2;\n  if (uVar1 <= (uint)param_1[1]) {\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1]);\n  return;\n}\n\n" (function_definition "void FUN_0036b3dc(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = param_2 - *param_1 >> 2;\n  if (uVar1 <= (uint)param_1[1]) {\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1]);\n  return;\n}" primitive_type (function_declarator "FUN_0036b3dc(int *param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = param_2 - *param_1 >> 2;\n  if (uVar1 <= (uint)param_1[1]) {\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1]);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = param_2 - *param_1 >> 2;" (assignment_expression "uVar1 = param_2 - *param_1 >> 2" identifier = (binary_expression "param_2 - *param_1 >> 2" (binary_expression "param_2 - *param_1" identifier - (pointer_expression "*param_1" * identifier)) >> number_literal)) ;) (if_statement "if (uVar1 <= (uint)param_1[1]) {\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }" if (parenthesized_expression "(uVar1 <= (uint)param_1[1])" ( (binary_expression "uVar1 <= (uint)param_1[1]" identifier <= (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }" { (expression_statement "(*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);" (call_expression "(*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2)" (parenthesized_expression "(*(code *)PTR__M_replace_00433cf0)" ( (pointer_expression "*(code *)PTR__M_replace_00433cf0" * (cast_expression "(code *)PTR__M_replace_00433cf0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar1,0,param_3,param_4 - param_3 >> 2)" ( identifier , identifier , number_literal , identifier , (binary_expression "param_4 - param_3 >> 2" (binary_expression "param_4 - param_3" identifier - identifier) >> number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1]);" (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1])" (parenthesized_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)" ( (pointer_expression "*(code *)PTR___throw_out_of_range_fmt_00432fe8" * (cast_expression "(code *)PTR___throw_out_of_range_fmt_00432fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1])" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) , (binary_expression "PTR_DAT_0043226c + 0x72f0" identifier + number_literal) , identifier , (subscript_expression "param_1[1]" identifier [ 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 IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT - (pointer_expression * IDENT)) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT , IDENT , (binary_expression (binary_expression IDENT - IDENT) >> LIT) ))) ;) (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0036b3dc(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  uint uVar1;\n  \n  uVar1 = param_2 - *param_1 >> 2;\n  if (uVar1 <= (uint)param_1[1]) {\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1]);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0036b3dc(int *param_1,int param_2,int param_3,int param_4)" (identifier "FUN_0036b3dc") (parameter_list "(int *param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (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 "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = param_2 - *param_1 >> 2;\n  if (uVar1 <= (uint)param_1[1]) {\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1]);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = param_2 - *param_1 >> 2;" (assignment_expression "uVar1 = param_2 - *param_1 >> 2" (identifier "uVar1") (= "=") (binary_expression "param_2 - *param_1 >> 2" (binary_expression "param_2 - *param_1" (identifier "param_2") (- "-") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (>> ">>") (number_literal "2"))) (; ";")) (if_statement "if (uVar1 <= (uint)param_1[1]) {\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }" (if "if") (parenthesized_expression "(uVar1 <= (uint)param_1[1])" (( "(") (binary_expression "uVar1 <= (uint)param_1[1]" (identifier "uVar1") (<= "<=") (cast_expression "(uint)param_1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);" (call_expression "(*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2)" (parenthesized_expression "(*(code *)PTR__M_replace_00433cf0)" (( "(") (pointer_expression "*(code *)PTR__M_replace_00433cf0" (* "*") (cast_expression "(code *)PTR__M_replace_00433cf0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__M_replace_00433cf0"))) () ")")) (argument_list "(param_1,uVar1,0,param_3,param_4 - param_3 >> 2)" (( "(") (identifier "param_1") (, ",") (identifier "uVar1") (, ",") (number_literal "0") (, ",") (identifier "param_3") (, ",") (binary_expression "param_4 - param_3 >> 2" (binary_expression "param_4 - param_3" (identifier "param_4") (- "-") (identifier "param_3")) (>> ">>") (number_literal "2")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1]);" (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1])" (parenthesized_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)" (( "(") (pointer_expression "*(code *)PTR___throw_out_of_range_fmt_00432fe8" (* "*") (cast_expression "(code *)PTR___throw_out_of_range_fmt_00432fe8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___throw_out_of_range_fmt_00432fe8"))) () ")")) (argument_list "(PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1])" (( "(") (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" (identifier "PTR_s_alize_xindex_004323b4") (+ "+") (number_literal "-0x25a4")) (, ",") (binary_expression "PTR_DAT_0043226c + 0x72f0" (identifier "PTR_DAT_0043226c") (+ "+") (number_literal "0x72f0")) (, ",") (identifier "uVar1") (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* void std::wstring::insert<__normal_iterator<wchar_t*, std::wstring >
   >(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*, std::wstring >,
   __normal_iterator<wchar_t*, std::wstring >) */

void __thiscall
std::wstring::insert<__normal_iterator<wchar_t*,std::wstring>>
          (wstring *var_3,int var_1,int var_5,int var_4)

{
  type_1 var_2;
  
  var_2 = var_1 - *(int *)var_3 >> 2;
  if (var_2 <= *(type_1 *)(var_3 + 4)) {
    (*(type_2 *)PTR__M_replace_00433cf0)(var_3,var_2,0,var_5,var_4 - var_5 >> 2);
    return;
  }
  (*(type_2 *)PTR___throw_out_of_range_fmt_00432fe8)
            (var_6 + -0x25a4,var_7 + 0x72f0,var_2,
             *(type_1 *)(var_3 + 4));
  return;
}


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

void MASKED(int *param_1,int param_2,int param_3,int param_4)

{
  uint uVar1;
  
  uVar1 = param_2 - *param_1 >> 2;
  if (uVar1 <= (uint)param_1[1]) {
    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar1,0,param_3,param_4 - param_3 >> 2);
    return;
  }
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)
            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar1,param_1[1]);
  return;
}

