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

void __thiscall std::string::replace(string *this,int param_2,int param_3,undefined4 param_4)

{
  undefined4 uVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  undefined *puVar5;
  
  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);
  uVar2 = *(uint *)(this + 4);
  uVar3 = param_2 - *(int *)this;
  if (uVar3 <= uVar2) {
    uVar4 = param_3 - param_2;
    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {
      uVar4 = uVar2 - uVar3;
    }
    (*(code *)PTR__M_replace_00432a3c)(this,uVar3,uVar4,param_4,uVar1);
    return;
  }
  puVar5 = PTR___throw_out_of_range_fmt_00432fe8;
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)
            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_s__0043226c + 0x72f0,uVar3,uVar2);
  (**(code **)(puVar5 + 0xc82c4))();
  return;
}



void FUN_0036afb4(int *param_1,int param_2,int param_3,undefined4 param_4)

{
  undefined4 uVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  undefined *puVar5;
  
  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);
  uVar2 = param_1[1];
  uVar3 = param_2 - *param_1;
  if (uVar3 <= uVar2) {
    uVar4 = param_3 - param_2;
    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {
      uVar4 = uVar2 - uVar3;
    }
    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);
    return;
  }
  puVar5 = PTR___throw_out_of_range_fmt_00432fe8;
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)
            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2);
  (**(code **)(puVar5 + 0xc82c4))();
  return;
}


lui gp,0xd
addiu gp,gp,-0xde4
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x3a54(gp)
sw s2,0x2c(sp)
or s2,a0,zero
sw gp,0x18(sp)
or a0,a3,zero
sw s3,0x30(sp)
or s3,a3,zero
sw s1,0x28(sp)
or s1,a2,zero
sw s0,0x24(sp)
or s0,a1,zero
sw ra,0x34(sp)
jalr t9
_subu s1,s1,s0
lw a1,0x0(s2)
lw v1,0x4(s2)
subu a1,s0,a1
sltu a0,v1,a1
bne a0,zero,0x0036b054
_lw gp,0x18(sp)
subu v1,v1,a1
lw t9,-0x7794(gp)
or a3,s3,zero
sw v0,0x10(sp)
sltu a2,s1,v1
movz s1,v1,a2
or a0,s2,zero
jalr t9
_or a2,s1,zero
lw ra,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x38
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_0036afb4(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined *puVar5;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  uVar2 = param_1[1];\n  uVar3 = param_2 - *param_1;\n  if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);\n    return;\n  }\n  puVar5 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2);\n  (**(code **)(puVar5 + 0xc82c4))();\n  return;\n}\n\n" (function_definition "void FUN_0036afb4(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined *puVar5;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  uVar2 = param_1[1];\n  uVar3 = param_2 - *param_1;\n  if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);\n    return;\n  }\n  puVar5 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2);\n  (**(code **)(puVar5 + 0xc82c4))();\n  return;\n}" primitive_type (function_declarator "FUN_0036afb4(int *param_1,int param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,undefined4 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 "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined *puVar5;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  uVar2 = param_1[1];\n  uVar3 = param_2 - *param_1;\n  if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);\n    return;\n  }\n  puVar5 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2);\n  (**(code **)(puVar5 + 0xc82c4))();\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_0043677c)(param_4)" identifier = (call_expression "(*(code *)PTR_strlen_0043677c)(param_4)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" ( (pointer_expression "*(code *)PTR_strlen_0043677c" * (cast_expression "(code *)PTR_strlen_0043677c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = param_2 - *param_1;" (assignment_expression "uVar3 = param_2 - *param_1" identifier = (binary_expression "param_2 - *param_1" identifier - (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);\n    return;\n  }" if (parenthesized_expression "(uVar3 <= uVar2)" ( (binary_expression "uVar3 <= uVar2" identifier <= identifier) )) (compound_statement "{\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);\n    return;\n  }" { (expression_statement "uVar4 = param_3 - param_2;" (assignment_expression "uVar4 = param_3 - param_2" identifier = (binary_expression "param_3 - param_2" identifier - identifier)) ;) (if_statement "if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }" if (parenthesized_expression "(uVar2 - uVar3 <= (uint)(param_3 - param_2))" ( (binary_expression "uVar2 - uVar3 <= (uint)(param_3 - param_2)" (binary_expression "uVar2 - uVar3" identifier - identifier) <= (call_expression "(uint)(param_3 - param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 - param_2)" ( (binary_expression "param_3 - param_2" identifier - identifier) )))) )) (compound_statement "{\n      uVar4 = uVar2 - uVar3;\n    }" { (expression_statement "uVar4 = uVar2 - uVar3;" (assignment_expression "uVar4 = uVar2 - uVar3" identifier = (binary_expression "uVar2 - uVar3" identifier - identifier)) ;) })) (expression_statement "(*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);" (call_expression "(*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1)" (parenthesized_expression "(*(code *)PTR__M_replace_00432a3c)" ( (pointer_expression "*(code *)PTR__M_replace_00432a3c" * (cast_expression "(code *)PTR__M_replace_00432a3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar3,uVar4,param_4,uVar1)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "puVar5 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar5 = PTR___throw_out_of_range_fmt_00432fe8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2);" (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2)" (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,uVar3,uVar2)" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) , (binary_expression "PTR_DAT_0043226c + 0x72f0" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "(**(code **)(puVar5 + 0xc82c4))();" (call_expression "(**(code **)(puVar5 + 0xc82c4))()" (parenthesized_expression "(**(code **)(puVar5 + 0xc82c4))" ( (pointer_expression "**(code **)(puVar5 + 0xc82c4)" * (pointer_expression "*(code **)(puVar5 + 0xc82c4)" * (cast_expression "(code **)(puVar5 + 0xc82c4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0xc82c4)" ( (binary_expression "puVar5 + 0xc82c4" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::string::replace(__normal_iterator<char*, std::string >, __normal_iterator<char*, std::string\n   >, char const*) */\n\nvoid __thiscall std::string::replace(string *this,int param_2,int param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined *puVar5;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  uVar2 = *(uint *)(this + 4);\n  uVar3 = param_2 - *(int *)this;\n  if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(this,uVar3,uVar4,param_4,uVar1);\n    return;\n  }\n  puVar5 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_s__0043226c + 0x72f0,uVar3,uVar2);\n  (**(code **)(puVar5 + 0xc82c4))();\n  return;\n}\n\n" comment (function_definition "void __thiscall std::string::replace(string *this,int param_2,int param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined *puVar5;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  uVar2 = *(uint *)(this + 4);\n  uVar3 = param_2 - *(int *)this;\n  if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(this,uVar3,uVar4,param_4,uVar1);\n    return;\n  }\n  puVar5 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_s__0043226c + 0x72f0,uVar3,uVar2);\n  (**(code **)(puVar5 + 0xc82c4))();\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "replace(string *this,int param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(string *this,int param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "string *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 "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined *puVar5;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  uVar2 = *(uint *)(this + 4);\n  uVar3 = param_2 - *(int *)this;\n  if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(this,uVar3,uVar4,param_4,uVar1);\n    return;\n  }\n  puVar5 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_s__0043226c + 0x72f0,uVar3,uVar2);\n  (**(code **)(puVar5 + 0xc82c4))();\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_0043677c)(param_4)" identifier = (call_expression "(*(code *)PTR_strlen_0043677c)(param_4)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" ( (pointer_expression "*(code *)PTR_strlen_0043677c" * (cast_expression "(code *)PTR_strlen_0043677c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "uVar2 = *(uint *)(this + 4);" (assignment_expression "uVar2 = *(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) ))))) ;) (expression_statement "uVar3 = param_2 - *(int *)this;" (assignment_expression "uVar3 = param_2 - *(int *)this" identifier = (binary_expression "param_2 - *(int *)this" identifier - (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (if_statement "if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(this,uVar3,uVar4,param_4,uVar1);\n    return;\n  }" if (parenthesized_expression "(uVar3 <= uVar2)" ( (binary_expression "uVar3 <= uVar2" identifier <= identifier) )) (compound_statement "{\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(this,uVar3,uVar4,param_4,uVar1);\n    return;\n  }" { (expression_statement "uVar4 = param_3 - param_2;" (assignment_expression "uVar4 = param_3 - param_2" identifier = (binary_expression "param_3 - param_2" identifier - identifier)) ;) (if_statement "if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }" if (parenthesized_expression "(uVar2 - uVar3 <= (uint)(param_3 - param_2))" ( (binary_expression "uVar2 - uVar3 <= (uint)(param_3 - param_2)" (binary_expression "uVar2 - uVar3" identifier - identifier) <= (call_expression "(uint)(param_3 - param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 - param_2)" ( (binary_expression "param_3 - param_2" identifier - identifier) )))) )) (compound_statement "{\n      uVar4 = uVar2 - uVar3;\n    }" { (expression_statement "uVar4 = uVar2 - uVar3;" (assignment_expression "uVar4 = uVar2 - uVar3" identifier = (binary_expression "uVar2 - uVar3" identifier - identifier)) ;) })) (expression_statement "(*(code *)PTR__M_replace_00432a3c)(this,uVar3,uVar4,param_4,uVar1);" (call_expression "(*(code *)PTR__M_replace_00432a3c)(this,uVar3,uVar4,param_4,uVar1)" (parenthesized_expression "(*(code *)PTR__M_replace_00432a3c)" ( (pointer_expression "*(code *)PTR__M_replace_00432a3c" * (cast_expression "(code *)PTR__M_replace_00432a3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this,uVar3,uVar4,param_4,uVar1)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "puVar5 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar5 = PTR___throw_out_of_range_fmt_00432fe8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_s__0043226c + 0x72f0,uVar3,uVar2);" (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_s__0043226c + 0x72f0,uVar3,uVar2)" (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,uVar3,uVar2)" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) , (binary_expression "PTR_s__0043226c + 0x72f0" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "(**(code **)(puVar5 + 0xc82c4))();" (call_expression "(**(code **)(puVar5 + 0xc82c4))()" (parenthesized_expression "(**(code **)(puVar5 + 0xc82c4))" ( (pointer_expression "**(code **)(puVar5 + 0xc82c4)" * (pointer_expression "*(code **)(puVar5 + 0xc82c4)" * (cast_expression "(code **)(puVar5 + 0xc82c4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0xc82c4)" ( (binary_expression "puVar5 + 0xc82c4" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0036afb4(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined *puVar5;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  uVar2 = param_1[1];\n  uVar3 = param_2 - *param_1;\n  if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);\n    return;\n  }\n  puVar5 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2);\n  (**(code **)(puVar5 + 0xc82c4))();\n  return;\n}\n\n" (function_definition "void FUN_0036afb4(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined *puVar5;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  uVar2 = param_1[1];\n  uVar3 = param_2 - *param_1;\n  if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);\n    return;\n  }\n  puVar5 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2);\n  (**(code **)(puVar5 + 0xc82c4))();\n  return;\n}" primitive_type (function_declarator "FUN_0036afb4(int *param_1,int param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,undefined4 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 "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined *puVar5;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  uVar2 = param_1[1];\n  uVar3 = param_2 - *param_1;\n  if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);\n    return;\n  }\n  puVar5 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2);\n  (**(code **)(puVar5 + 0xc82c4))();\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_0043677c)(param_4)" identifier = (call_expression "(*(code *)PTR_strlen_0043677c)(param_4)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" ( (pointer_expression "*(code *)PTR_strlen_0043677c" * (cast_expression "(code *)PTR_strlen_0043677c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = param_2 - *param_1;" (assignment_expression "uVar3 = param_2 - *param_1" identifier = (binary_expression "param_2 - *param_1" identifier - (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);\n    return;\n  }" if (parenthesized_expression "(uVar3 <= uVar2)" ( (binary_expression "uVar3 <= uVar2" identifier <= identifier) )) (compound_statement "{\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);\n    return;\n  }" { (expression_statement "uVar4 = param_3 - param_2;" (assignment_expression "uVar4 = param_3 - param_2" identifier = (binary_expression "param_3 - param_2" identifier - identifier)) ;) (if_statement "if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }" if (parenthesized_expression "(uVar2 - uVar3 <= (uint)(param_3 - param_2))" ( (binary_expression "uVar2 - uVar3 <= (uint)(param_3 - param_2)" (binary_expression "uVar2 - uVar3" identifier - identifier) <= (call_expression "(uint)(param_3 - param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 - param_2)" ( (binary_expression "param_3 - param_2" identifier - identifier) )))) )) (compound_statement "{\n      uVar4 = uVar2 - uVar3;\n    }" { (expression_statement "uVar4 = uVar2 - uVar3;" (assignment_expression "uVar4 = uVar2 - uVar3" identifier = (binary_expression "uVar2 - uVar3" identifier - identifier)) ;) })) (expression_statement "(*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);" (call_expression "(*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1)" (parenthesized_expression "(*(code *)PTR__M_replace_00432a3c)" ( (pointer_expression "*(code *)PTR__M_replace_00432a3c" * (cast_expression "(code *)PTR__M_replace_00432a3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar3,uVar4,param_4,uVar1)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "puVar5 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar5 = PTR___throw_out_of_range_fmt_00432fe8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2);" (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2)" (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,uVar3,uVar2)" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) , (binary_expression "PTR_DAT_0043226c + 0x72f0" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "(**(code **)(puVar5 + 0xc82c4))();" (call_expression "(**(code **)(puVar5 + 0xc82c4))()" (parenthesized_expression "(**(code **)(puVar5 + 0xc82c4))" ( (pointer_expression "**(code **)(puVar5 + 0xc82c4)" * (pointer_expression "*(code **)(puVar5 + 0xc82c4)" * (cast_expression "(code **)(puVar5 + 0xc82c4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0xc82c4)" ( (binary_expression "puVar5 + 0xc82c4" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (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 ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0036afb4(int *param_1,int param_2,int param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined *puVar5;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  uVar2 = param_1[1];\n  uVar3 = param_2 - *param_1;\n  if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);\n    return;\n  }\n  puVar5 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2);\n  (**(code **)(puVar5 + 0xc82c4))();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0036afb4(int *param_1,int param_2,int param_3,undefined4 param_4)" (identifier "FUN_0036afb4") (parameter_list "(int *param_1,int param_2,int param_3,undefined4 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 "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  undefined *puVar5;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  uVar2 = param_1[1];\n  uVar3 = param_2 - *param_1;\n  if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);\n    return;\n  }\n  puVar5 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2);\n  (**(code **)(puVar5 + 0xc82c4))();\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (expression_statement "uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_0043677c)(param_4)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0043677c)(param_4)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0043677c" (* "*") (cast_expression "(code *)PTR_strlen_0043677c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0043677c"))) () ")")) (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (expression_statement "uVar2 = param_1[1];" (assignment_expression "uVar2 = param_1[1]" (identifier "uVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar3 = param_2 - *param_1;" (assignment_expression "uVar3 = param_2 - *param_1" (identifier "uVar3") (= "=") (binary_expression "param_2 - *param_1" (identifier "param_2") (- "-") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (uVar3 <= uVar2) {\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(uVar3 <= uVar2)" (( "(") (binary_expression "uVar3 <= uVar2" (identifier "uVar3") (<= "<=") (identifier "uVar2")) () ")")) (compound_statement "{\n    uVar4 = param_3 - param_2;\n    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }\n    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);\n    return;\n  }" ({ "{") (expression_statement "uVar4 = param_3 - param_2;" (assignment_expression "uVar4 = param_3 - param_2" (identifier "uVar4") (= "=") (binary_expression "param_3 - param_2" (identifier "param_3") (- "-") (identifier "param_2"))) (; ";")) (if_statement "if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {\n      uVar4 = uVar2 - uVar3;\n    }" (if "if") (parenthesized_expression "(uVar2 - uVar3 <= (uint)(param_3 - param_2))" (( "(") (binary_expression "uVar2 - uVar3 <= (uint)(param_3 - param_2)" (binary_expression "uVar2 - uVar3" (identifier "uVar2") (- "-") (identifier "uVar3")) (<= "<=") (call_expression "(uint)(param_3 - param_2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 - param_2)" (( "(") (binary_expression "param_3 - param_2" (identifier "param_3") (- "-") (identifier "param_2")) () ")")))) () ")")) (compound_statement "{\n      uVar4 = uVar2 - uVar3;\n    }" ({ "{") (expression_statement "uVar4 = uVar2 - uVar3;" (assignment_expression "uVar4 = uVar2 - uVar3" (identifier "uVar4") (= "=") (binary_expression "uVar2 - uVar3" (identifier "uVar2") (- "-") (identifier "uVar3"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);" (call_expression "(*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1)" (parenthesized_expression "(*(code *)PTR__M_replace_00432a3c)" (( "(") (pointer_expression "*(code *)PTR__M_replace_00432a3c" (* "*") (cast_expression "(code *)PTR__M_replace_00432a3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__M_replace_00432a3c"))) () ")")) (argument_list "(param_1,uVar3,uVar4,param_4,uVar1)" (( "(") (identifier "param_1") (, ",") (identifier "uVar3") (, ",") (identifier "uVar4") (, ",") (identifier "param_4") (, ",") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar5 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar5 = PTR___throw_out_of_range_fmt_00432fe8" (identifier "puVar5") (= "=") (identifier "PTR___throw_out_of_range_fmt_00432fe8")) (; ";")) (expression_statement "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2);" (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)\n            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2)" (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,uVar3,uVar2)" (( "(") (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 "uVar3") (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "(**(code **)(puVar5 + 0xc82c4))();" (call_expression "(**(code **)(puVar5 + 0xc82c4))()" (parenthesized_expression "(**(code **)(puVar5 + 0xc82c4))" (( "(") (pointer_expression "**(code **)(puVar5 + 0xc82c4)" (* "*") (pointer_expression "*(code **)(puVar5 + 0xc82c4)" (* "*") (cast_expression "(code **)(puVar5 + 0xc82c4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0xc82c4)" (( "(") (binary_expression "puVar5 + 0xc82c4" (identifier "puVar5") (+ "+") (number_literal "0xc82c4")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "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: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (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) (identifier) (identifier) (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list))) (return_statement))))

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

{
  undefined4 uVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  undefined *puVar5;
  
  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);
  uVar2 = param_1[1];
  uVar3 = param_2 - *param_1;
  if (uVar3 <= uVar2) {
    uVar4 = param_3 - param_2;
    if (uVar2 - uVar3 <= (uint)(param_3 - param_2)) {
      uVar4 = uVar2 - uVar3;
    }
    (*(code *)PTR__M_replace_00432a3c)(param_1,uVar3,uVar4,param_4,uVar1);
    return;
  }
  puVar5 = PTR___throw_out_of_range_fmt_00432fe8;
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)
            (PTR_s_alize_xindex_004323b4 + -0x25a4,PTR_DAT_0043226c + 0x72f0,uVar3,uVar2);
  (**(code **)(puVar5 + 0xc82c4))();
  return;
}

