
/* std::wstring::replace(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*,
   std::wstring >, wchar_t const*, unsigned int) */

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

{
  uint uVar1;
  undefined4 uVar2;
  uint uVar3;
  int *piVar4;
  uint uVar5;
  undefined *puVar6;
  uint uVar7;
  uint uVar8;
  undefined *puVar9;
  code *pcVar10;
  
  uVar1 = param_1[1];
  uVar5 = param_2 - *param_1 >> 2;
  uVar7 = param_3 - param_2 >> 2;
  if (uVar5 <= uVar1) {
                    /* WARNING: Could not recover jumptable at 0x0036b5a4. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    if (uVar1 - uVar5 <= uVar7) {
      uVar7 = uVar1 - uVar5;
    }
    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);
    return;
  }
  piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);
  puVar6 = PTR_s__0043226c + 0x72f0;
  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();
  uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);
  uVar8 = piVar4[1];
  uVar7 = (int)puVar6 - *piVar4 >> 2;
  if (uVar7 <= uVar8) {
    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;
    uVar5 = uVar8 - uVar7;
    if (uVar3 < uVar8 - uVar7) {
      uVar5 = uVar3;
    }
    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);
    return;
  }
  pcVar10 = *(code **)(puVar9 + 0xc7a1c);
  (*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);
                    /* WARNING: Could not recover jumptable at 0x0036b6b0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(pcVar10 + 0xc865c))();
  return;
}



void FUN_0036b558(int *param_1,int param_2,int param_3)

{
  uint uVar1;
  undefined4 uVar2;
  uint uVar3;
  int *piVar4;
  uint uVar5;
  undefined *puVar6;
  uint uVar7;
  uint uVar8;
  undefined *puVar9;
  code *pcVar10;
  
  uVar1 = param_1[1];
  uVar5 = param_2 - *param_1 >> 2;
  uVar7 = param_3 - param_2 >> 2;
  if (uVar5 <= uVar1) {
                    /* WARNING: Could not recover jumptable at 0x0036b5a4. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    if (uVar1 - uVar5 <= uVar7) {
      uVar7 = uVar1 - uVar5;
    }
    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);
    return;
  }
  piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);
  puVar6 = PTR_DAT_0043226c + 0x72f0;
  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();
  uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);
  uVar8 = piVar4[1];
  uVar7 = (int)puVar6 - *piVar4 >> 2;
  if (uVar7 <= uVar8) {
    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;
    uVar5 = uVar8 - uVar7;
    if (uVar3 < uVar8 - uVar7) {
      uVar5 = uVar3;
    }
    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);
    return;
  }
  pcVar10 = *(code **)(puVar9 + 0xc7a1c);
  (*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);
                    /* WARNING: Could not recover jumptable at 0x0036b6b0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(pcVar10 + 0xc865c))();
  return;
}


lui gp,0xd
addiu gp,gp,-0x1388
addu gp,gp,t9
lw v1,0x0(a0)
subu a2,a2,a1
addiu sp,sp,-0x20
lw v0,0x4(a0)
subu a1,a1,v1
sw gp,0x10(sp)
sra a1,a1,0x2
sw ra,0x1c(sp)
sltu v1,v0,a1
bne v1,zero,0x0036b5ac
_sra a2,a2,0x2
lw ra,0x1c(sp)
subu v0,v0,a1
lw t9,-0x64e0(gp)
addiu sp,sp,0x20
sltu v1,a2,v0
jr t9
_movz a2,v0,v1
or a2,a1,zero
lw a0,-0x7e1c(gp)
lw a1,-0x7f64(gp)
or a3,v0,zero
lw t9,-0x71e8(gp)
addiu a0,a0,-0x25a4
jalr t9
_addiu a1,a1,0x72f0
(translation_unit "void FUN_0036b558(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  \n  uVar1 = param_1[1];\n  uVar5 = param_2 - *param_1 >> 2;\n  uVar7 = param_3 - param_2 >> 2;\n  if (uVar5 <= uVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0036b5a4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }\n  piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar6 = PTR_DAT_0043226c + 0x72f0;\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);\n  uVar8 = piVar4[1];\n  uVar7 = (int)puVar6 - *piVar4 >> 2;\n  if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }\n  pcVar10 = *(code **)(puVar9 + 0xc7a1c);\n  (*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);\n                    /* WARNING: Could not recover jumptable at 0x0036b6b0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(pcVar10 + 0xc865c))();\n  return;\n}\n\n" (function_definition "void FUN_0036b558(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  \n  uVar1 = param_1[1];\n  uVar5 = param_2 - *param_1 >> 2;\n  uVar7 = param_3 - param_2 >> 2;\n  if (uVar5 <= uVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0036b5a4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }\n  piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar6 = PTR_DAT_0043226c + 0x72f0;\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);\n  uVar8 = piVar4[1];\n  uVar7 = (int)puVar6 - *piVar4 >> 2;\n  if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }\n  pcVar10 = *(code **)(puVar9 + 0xc7a1c);\n  (*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);\n                    /* WARNING: Could not recover jumptable at 0x0036b6b0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(pcVar10 + 0xc865c))();\n  return;\n}" primitive_type (function_declarator "FUN_0036b558(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (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) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  \n  uVar1 = param_1[1];\n  uVar5 = param_2 - *param_1 >> 2;\n  uVar7 = param_3 - param_2 >> 2;\n  if (uVar5 <= uVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0036b5a4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }\n  piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar6 = PTR_DAT_0043226c + 0x72f0;\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);\n  uVar8 = piVar4[1];\n  uVar7 = (int)puVar6 - *piVar4 >> 2;\n  if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }\n  pcVar10 = *(code **)(puVar9 + 0xc7a1c);\n  (*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);\n                    /* WARNING: Could not recover jumptable at 0x0036b6b0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(pcVar10 + 0xc865c))();\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = param_2 - *param_1 >> 2;" (assignment_expression "uVar5 = 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)) ;) (expression_statement "uVar7 = param_3 - param_2 >> 2;" (assignment_expression "uVar7 = param_3 - param_2 >> 2" identifier = (binary_expression "param_3 - param_2 >> 2" (binary_expression "param_3 - param_2" identifier - identifier) >> number_literal)) ;) (if_statement "if (uVar5 <= uVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0036b5a4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }" if (parenthesized_expression "(uVar5 <= uVar1)" ( (binary_expression "uVar5 <= uVar1" identifier <= identifier) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0036b5a4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }" { comment comment (if_statement "if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }" if (parenthesized_expression "(uVar1 - uVar5 <= uVar7)" ( (binary_expression "uVar1 - uVar5 <= uVar7" (binary_expression "uVar1 - uVar5" identifier - identifier) <= identifier) )) (compound_statement "{\n      uVar7 = uVar1 - uVar5;\n    }" { (expression_statement "uVar7 = uVar1 - uVar5;" (assignment_expression "uVar7 = uVar1 - uVar5" identifier = (binary_expression "uVar1 - uVar5" identifier - identifier)) ;) })) (expression_statement "(*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);" (call_expression "(*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7)" (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,uVar5,uVar7)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);" (assignment_expression "piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" identifier = (cast_expression "(int *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) )))) ;) (expression_statement "puVar6 = PTR_DAT_0043226c + 0x72f0;" (assignment_expression "puVar6 = PTR_DAT_0043226c + 0x72f0" identifier = (binary_expression "PTR_DAT_0043226c + 0x72f0" identifier + number_literal)) ;) (expression_statement "puVar9 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar9 = PTR___throw_out_of_range_fmt_00432fe8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)();" (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)()" (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 "()" ( ))) ;) (expression_statement "uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);" (assignment_expression "uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1)" identifier = (call_expression "(**(code **)(puVar9 + 0xcb2a4))(uVar1)" (parenthesized_expression "(**(code **)(puVar9 + 0xcb2a4))" ( (pointer_expression "**(code **)(puVar9 + 0xcb2a4)" * (pointer_expression "*(code **)(puVar9 + 0xcb2a4)" * (cast_expression "(code **)(puVar9 + 0xcb2a4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0xcb2a4)" ( (binary_expression "puVar9 + 0xcb2a4" identifier + number_literal) ))))) )) (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar8 = piVar4[1];" (assignment_expression "uVar8 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = (int)puVar6 - *piVar4 >> 2;" (assignment_expression "uVar7 = (int)puVar6 - *piVar4 >> 2" identifier = (binary_expression "(int)puVar6 - *piVar4 >> 2" (binary_expression "(int)puVar6 - *piVar4" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (pointer_expression "*piVar4" * identifier)) >> number_literal)) ;) (if_statement "if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }" if (parenthesized_expression "(uVar7 <= uVar8)" ( (binary_expression "uVar7 <= uVar8" identifier <= identifier) )) (compound_statement "{\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }" { (expression_statement "uVar3 = (int)(uVar5 - (int)puVar6) >> 2;" (assignment_expression "uVar3 = (int)(uVar5 - (int)puVar6) >> 2" identifier = (binary_expression "(int)(uVar5 - (int)puVar6) >> 2" (cast_expression "(int)(uVar5 - (int)puVar6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar5 - (int)puVar6)" ( (binary_expression "uVar5 - (int)puVar6" identifier - (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ))) >> number_literal)) ;) (expression_statement "uVar5 = uVar8 - uVar7;" (assignment_expression "uVar5 = uVar8 - uVar7" identifier = (binary_expression "uVar8 - uVar7" identifier - identifier)) ;) (if_statement "if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }" if (parenthesized_expression "(uVar3 < uVar8 - uVar7)" ( (binary_expression "uVar3 < uVar8 - uVar7" identifier < (binary_expression "uVar8 - uVar7" identifier - identifier)) )) (compound_statement "{\n      uVar5 = uVar3;\n    }" { (expression_statement "uVar5 = uVar3;" (assignment_expression "uVar5 = uVar3" identifier = identifier) ;) })) (expression_statement "(**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);" (call_expression "(**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2)" (parenthesized_expression "(**(code **)(puVar9 + 0xc8724))" ( (pointer_expression "**(code **)(puVar9 + 0xc8724)" * (pointer_expression "*(code **)(puVar9 + 0xc8724)" * (cast_expression "(code **)(puVar9 + 0xc8724)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0xc8724)" ( (binary_expression "puVar9 + 0xc8724" identifier + number_literal) ))))) )) (argument_list "(piVar4,uVar7,uVar5,uVar1,uVar2)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar10 = *(code **)(puVar9 + 0xc7a1c);" (assignment_expression "pcVar10 = *(code **)(puVar9 + 0xc7a1c)" identifier = (pointer_expression "*(code **)(puVar9 + 0xc7a1c)" * (cast_expression "(code **)(puVar9 + 0xc7a1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0xc7a1c)" ( (binary_expression "puVar9 + 0xc7a1c" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);" (call_expression "(*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8)" ( (binary_expression "*(int *)(puVar9 + 0xc6de8) + -0x25a4" (pointer_expression "*(int *)(puVar9 + 0xc6de8)" * (cast_expression "(int *)(puVar9 + 0xc6de8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0xc6de8)" ( (binary_expression "puVar9 + 0xc6de8" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar9 + 0xc6ca0) + 0x72f0" (pointer_expression "*(int *)(puVar9 + 0xc6ca0)" * (cast_expression "(int *)(puVar9 + 0xc6ca0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0xc6ca0)" ( (binary_expression "puVar9 + 0xc6ca0" identifier + number_literal) )))) + number_literal) , identifier , identifier ))) ;) comment comment (expression_statement "(**(code **)(pcVar10 + 0xc865c))();" (call_expression "(**(code **)(pcVar10 + 0xc865c))()" (parenthesized_expression "(**(code **)(pcVar10 + 0xc865c))" ( (pointer_expression "**(code **)(pcVar10 + 0xc865c)" * (pointer_expression "*(code **)(pcVar10 + 0xc865c)" * (cast_expression "(code **)(pcVar10 + 0xc865c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + 0xc865c)" ( (binary_expression "pcVar10 + 0xc865c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wstring::replace(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*,\n   std::wstring >, wchar_t const*, unsigned int) */\n\nvoid std::wstring::replace(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  \n  uVar1 = param_1[1];\n  uVar5 = param_2 - *param_1 >> 2;\n  uVar7 = param_3 - param_2 >> 2;\n  if (uVar5 <= uVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0036b5a4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }\n  piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar6 = PTR_s__0043226c + 0x72f0;\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);\n  uVar8 = piVar4[1];\n  uVar7 = (int)puVar6 - *piVar4 >> 2;\n  if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }\n  pcVar10 = *(code **)(puVar9 + 0xc7a1c);\n  (*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);\n                    /* WARNING: Could not recover jumptable at 0x0036b6b0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(pcVar10 + 0xc865c))();\n  return;\n}\n\n" comment (function_definition "void std::wstring::replace(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  \n  uVar1 = param_1[1];\n  uVar5 = param_2 - *param_1 >> 2;\n  uVar7 = param_3 - param_2 >> 2;\n  if (uVar5 <= uVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0036b5a4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }\n  piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar6 = PTR_s__0043226c + 0x72f0;\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);\n  uVar8 = piVar4[1];\n  uVar7 = (int)puVar6 - *piVar4 >> 2;\n  if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }\n  pcVar10 = *(code **)(puVar9 + 0xc7a1c);\n  (*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);\n                    /* WARNING: Could not recover jumptable at 0x0036b6b0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(pcVar10 + 0xc865c))();\n  return;\n}" primitive_type (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "replace(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (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) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  \n  uVar1 = param_1[1];\n  uVar5 = param_2 - *param_1 >> 2;\n  uVar7 = param_3 - param_2 >> 2;\n  if (uVar5 <= uVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0036b5a4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }\n  piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar6 = PTR_s__0043226c + 0x72f0;\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);\n  uVar8 = piVar4[1];\n  uVar7 = (int)puVar6 - *piVar4 >> 2;\n  if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }\n  pcVar10 = *(code **)(puVar9 + 0xc7a1c);\n  (*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);\n                    /* WARNING: Could not recover jumptable at 0x0036b6b0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(pcVar10 + 0xc865c))();\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = param_2 - *param_1 >> 2;" (assignment_expression "uVar5 = 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)) ;) (expression_statement "uVar7 = param_3 - param_2 >> 2;" (assignment_expression "uVar7 = param_3 - param_2 >> 2" identifier = (binary_expression "param_3 - param_2 >> 2" (binary_expression "param_3 - param_2" identifier - identifier) >> number_literal)) ;) (if_statement "if (uVar5 <= uVar1) {\n                    /* WARNING: Could not recover jumptable at 0x0036b5a4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }" if (parenthesized_expression "(uVar5 <= uVar1)" ( (binary_expression "uVar5 <= uVar1" identifier <= identifier) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0036b5a4. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }" { comment comment (if_statement "if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }" if (parenthesized_expression "(uVar1 - uVar5 <= uVar7)" ( (binary_expression "uVar1 - uVar5 <= uVar7" (binary_expression "uVar1 - uVar5" identifier - identifier) <= identifier) )) (compound_statement "{\n      uVar7 = uVar1 - uVar5;\n    }" { (expression_statement "uVar7 = uVar1 - uVar5;" (assignment_expression "uVar7 = uVar1 - uVar5" identifier = (binary_expression "uVar1 - uVar5" identifier - identifier)) ;) })) (expression_statement "(*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);" (call_expression "(*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7)" (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,uVar5,uVar7)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);" (assignment_expression "piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" identifier = (cast_expression "(int *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) )))) ;) (expression_statement "puVar6 = PTR_s__0043226c + 0x72f0;" (assignment_expression "puVar6 = PTR_s__0043226c + 0x72f0" identifier = (binary_expression "PTR_s__0043226c + 0x72f0" identifier + number_literal)) ;) (expression_statement "puVar9 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar9 = PTR___throw_out_of_range_fmt_00432fe8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)();" (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)()" (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 "()" ( ))) ;) (expression_statement "uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);" (assignment_expression "uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1)" identifier = (call_expression "(**(code **)(puVar9 + 0xcb2a4))(uVar1)" (parenthesized_expression "(**(code **)(puVar9 + 0xcb2a4))" ( (pointer_expression "**(code **)(puVar9 + 0xcb2a4)" * (pointer_expression "*(code **)(puVar9 + 0xcb2a4)" * (cast_expression "(code **)(puVar9 + 0xcb2a4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0xcb2a4)" ( (binary_expression "puVar9 + 0xcb2a4" identifier + number_literal) ))))) )) (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar8 = piVar4[1];" (assignment_expression "uVar8 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = (int)puVar6 - *piVar4 >> 2;" (assignment_expression "uVar7 = (int)puVar6 - *piVar4 >> 2" identifier = (binary_expression "(int)puVar6 - *piVar4 >> 2" (binary_expression "(int)puVar6 - *piVar4" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (pointer_expression "*piVar4" * identifier)) >> number_literal)) ;) (if_statement "if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }" if (parenthesized_expression "(uVar7 <= uVar8)" ( (binary_expression "uVar7 <= uVar8" identifier <= identifier) )) (compound_statement "{\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }" { (expression_statement "uVar3 = (int)(uVar5 - (int)puVar6) >> 2;" (assignment_expression "uVar3 = (int)(uVar5 - (int)puVar6) >> 2" identifier = (binary_expression "(int)(uVar5 - (int)puVar6) >> 2" (cast_expression "(int)(uVar5 - (int)puVar6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar5 - (int)puVar6)" ( (binary_expression "uVar5 - (int)puVar6" identifier - (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ))) >> number_literal)) ;) (expression_statement "uVar5 = uVar8 - uVar7;" (assignment_expression "uVar5 = uVar8 - uVar7" identifier = (binary_expression "uVar8 - uVar7" identifier - identifier)) ;) (if_statement "if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }" if (parenthesized_expression "(uVar3 < uVar8 - uVar7)" ( (binary_expression "uVar3 < uVar8 - uVar7" identifier < (binary_expression "uVar8 - uVar7" identifier - identifier)) )) (compound_statement "{\n      uVar5 = uVar3;\n    }" { (expression_statement "uVar5 = uVar3;" (assignment_expression "uVar5 = uVar3" identifier = identifier) ;) })) (expression_statement "(**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);" (call_expression "(**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2)" (parenthesized_expression "(**(code **)(puVar9 + 0xc8724))" ( (pointer_expression "**(code **)(puVar9 + 0xc8724)" * (pointer_expression "*(code **)(puVar9 + 0xc8724)" * (cast_expression "(code **)(puVar9 + 0xc8724)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0xc8724)" ( (binary_expression "puVar9 + 0xc8724" identifier + number_literal) ))))) )) (argument_list "(piVar4,uVar7,uVar5,uVar1,uVar2)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar10 = *(code **)(puVar9 + 0xc7a1c);" (assignment_expression "pcVar10 = *(code **)(puVar9 + 0xc7a1c)" identifier = (pointer_expression "*(code **)(puVar9 + 0xc7a1c)" * (cast_expression "(code **)(puVar9 + 0xc7a1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0xc7a1c)" ( (binary_expression "puVar9 + 0xc7a1c" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);" (call_expression "(*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8)" ( (binary_expression "*(int *)(puVar9 + 0xc6de8) + -0x25a4" (pointer_expression "*(int *)(puVar9 + 0xc6de8)" * (cast_expression "(int *)(puVar9 + 0xc6de8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0xc6de8)" ( (binary_expression "puVar9 + 0xc6de8" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar9 + 0xc6ca0) + 0x72f0" (pointer_expression "*(int *)(puVar9 + 0xc6ca0)" * (cast_expression "(int *)(puVar9 + 0xc6ca0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0xc6ca0)" ( (binary_expression "puVar9 + 0xc6ca0" identifier + number_literal) )))) + number_literal) , identifier , identifier ))) ;) comment comment (expression_statement "(**(code **)(pcVar10 + 0xc865c))();" (call_expression "(**(code **)(pcVar10 + 0xc865c))()" (parenthesized_expression "(**(code **)(pcVar10 + 0xc865c))" ( (pointer_expression "**(code **)(pcVar10 + 0xc865c)" * (pointer_expression "*(code **)(pcVar10 + 0xc865c)" * (cast_expression "(code **)(pcVar10 + 0xc865c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + 0xc865c)" ( (binary_expression "pcVar10 + 0xc865c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0036b558(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  \n  uVar1 = param_1[1];\n  uVar5 = param_2 - *param_1 >> 2;\n  uVar7 = param_3 - param_2 >> 2;\n  if (uVar5 <= uVar1) {\n                    \n                    \n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }\n  piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar6 = PTR_DAT_0043226c + 0x72f0;\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);\n  uVar8 = piVar4[1];\n  uVar7 = (int)puVar6 - *piVar4 >> 2;\n  if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }\n  pcVar10 = *(code **)(puVar9 + 0xc7a1c);\n  (*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);\n                    \n                    \n  (**(code **)(pcVar10 + 0xc865c))();\n  return;\n}\n\n" (function_definition "void FUN_0036b558(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  \n  uVar1 = param_1[1];\n  uVar5 = param_2 - *param_1 >> 2;\n  uVar7 = param_3 - param_2 >> 2;\n  if (uVar5 <= uVar1) {\n                    \n                    \n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }\n  piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar6 = PTR_DAT_0043226c + 0x72f0;\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);\n  uVar8 = piVar4[1];\n  uVar7 = (int)puVar6 - *piVar4 >> 2;\n  if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }\n  pcVar10 = *(code **)(puVar9 + 0xc7a1c);\n  (*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);\n                    \n                    \n  (**(code **)(pcVar10 + 0xc865c))();\n  return;\n}" primitive_type (function_declarator "FUN_0036b558(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (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) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  \n  uVar1 = param_1[1];\n  uVar5 = param_2 - *param_1 >> 2;\n  uVar7 = param_3 - param_2 >> 2;\n  if (uVar5 <= uVar1) {\n                    \n                    \n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }\n  piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar6 = PTR_DAT_0043226c + 0x72f0;\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);\n  uVar8 = piVar4[1];\n  uVar7 = (int)puVar6 - *piVar4 >> 2;\n  if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }\n  pcVar10 = *(code **)(puVar9 + 0xc7a1c);\n  (*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);\n                    \n                    \n  (**(code **)(pcVar10 + 0xc865c))();\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = param_2 - *param_1 >> 2;" (assignment_expression "uVar5 = 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)) ;) (expression_statement "uVar7 = param_3 - param_2 >> 2;" (assignment_expression "uVar7 = param_3 - param_2 >> 2" identifier = (binary_expression "param_3 - param_2 >> 2" (binary_expression "param_3 - param_2" identifier - identifier) >> number_literal)) ;) (if_statement "if (uVar5 <= uVar1) {\n                    \n                    \n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }" if (parenthesized_expression "(uVar5 <= uVar1)" ( (binary_expression "uVar5 <= uVar1" identifier <= identifier) )) (compound_statement "{\n                    \n                    \n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }" { (if_statement "if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }" if (parenthesized_expression "(uVar1 - uVar5 <= uVar7)" ( (binary_expression "uVar1 - uVar5 <= uVar7" (binary_expression "uVar1 - uVar5" identifier - identifier) <= identifier) )) (compound_statement "{\n      uVar7 = uVar1 - uVar5;\n    }" { (expression_statement "uVar7 = uVar1 - uVar5;" (assignment_expression "uVar7 = uVar1 - uVar5" identifier = (binary_expression "uVar1 - uVar5" identifier - identifier)) ;) })) (expression_statement "(*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);" (call_expression "(*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7)" (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,uVar5,uVar7)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);" (assignment_expression "piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" identifier = (cast_expression "(int *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) )))) ;) (expression_statement "puVar6 = PTR_DAT_0043226c + 0x72f0;" (assignment_expression "puVar6 = PTR_DAT_0043226c + 0x72f0" identifier = (binary_expression "PTR_DAT_0043226c + 0x72f0" identifier + number_literal)) ;) (expression_statement "puVar9 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar9 = PTR___throw_out_of_range_fmt_00432fe8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)();" (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)()" (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 "()" ( ))) ;) (expression_statement "uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);" (assignment_expression "uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1)" identifier = (call_expression "(**(code **)(puVar9 + 0xcb2a4))(uVar1)" (parenthesized_expression "(**(code **)(puVar9 + 0xcb2a4))" ( (pointer_expression "**(code **)(puVar9 + 0xcb2a4)" * (pointer_expression "*(code **)(puVar9 + 0xcb2a4)" * (cast_expression "(code **)(puVar9 + 0xcb2a4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0xcb2a4)" ( (binary_expression "puVar9 + 0xcb2a4" identifier + number_literal) ))))) )) (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar8 = piVar4[1];" (assignment_expression "uVar8 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = (int)puVar6 - *piVar4 >> 2;" (assignment_expression "uVar7 = (int)puVar6 - *piVar4 >> 2" identifier = (binary_expression "(int)puVar6 - *piVar4 >> 2" (binary_expression "(int)puVar6 - *piVar4" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (pointer_expression "*piVar4" * identifier)) >> number_literal)) ;) (if_statement "if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }" if (parenthesized_expression "(uVar7 <= uVar8)" ( (binary_expression "uVar7 <= uVar8" identifier <= identifier) )) (compound_statement "{\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }" { (expression_statement "uVar3 = (int)(uVar5 - (int)puVar6) >> 2;" (assignment_expression "uVar3 = (int)(uVar5 - (int)puVar6) >> 2" identifier = (binary_expression "(int)(uVar5 - (int)puVar6) >> 2" (cast_expression "(int)(uVar5 - (int)puVar6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar5 - (int)puVar6)" ( (binary_expression "uVar5 - (int)puVar6" identifier - (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ))) >> number_literal)) ;) (expression_statement "uVar5 = uVar8 - uVar7;" (assignment_expression "uVar5 = uVar8 - uVar7" identifier = (binary_expression "uVar8 - uVar7" identifier - identifier)) ;) (if_statement "if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }" if (parenthesized_expression "(uVar3 < uVar8 - uVar7)" ( (binary_expression "uVar3 < uVar8 - uVar7" identifier < (binary_expression "uVar8 - uVar7" identifier - identifier)) )) (compound_statement "{\n      uVar5 = uVar3;\n    }" { (expression_statement "uVar5 = uVar3;" (assignment_expression "uVar5 = uVar3" identifier = identifier) ;) })) (expression_statement "(**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);" (call_expression "(**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2)" (parenthesized_expression "(**(code **)(puVar9 + 0xc8724))" ( (pointer_expression "**(code **)(puVar9 + 0xc8724)" * (pointer_expression "*(code **)(puVar9 + 0xc8724)" * (cast_expression "(code **)(puVar9 + 0xc8724)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0xc8724)" ( (binary_expression "puVar9 + 0xc8724" identifier + number_literal) ))))) )) (argument_list "(piVar4,uVar7,uVar5,uVar1,uVar2)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar10 = *(code **)(puVar9 + 0xc7a1c);" (assignment_expression "pcVar10 = *(code **)(puVar9 + 0xc7a1c)" identifier = (pointer_expression "*(code **)(puVar9 + 0xc7a1c)" * (cast_expression "(code **)(puVar9 + 0xc7a1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0xc7a1c)" ( (binary_expression "puVar9 + 0xc7a1c" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);" (call_expression "(*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8)" ( (binary_expression "*(int *)(puVar9 + 0xc6de8) + -0x25a4" (pointer_expression "*(int *)(puVar9 + 0xc6de8)" * (cast_expression "(int *)(puVar9 + 0xc6de8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0xc6de8)" ( (binary_expression "puVar9 + 0xc6de8" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(puVar9 + 0xc6ca0) + 0x72f0" (pointer_expression "*(int *)(puVar9 + 0xc6ca0)" * (cast_expression "(int *)(puVar9 + 0xc6ca0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + 0xc6ca0)" ( (binary_expression "puVar9 + 0xc6ca0" identifier + number_literal) )))) + number_literal) , identifier , identifier ))) ;) (expression_statement "(**(code **)(pcVar10 + 0xc865c))();" (call_expression "(**(code **)(pcVar10 + 0xc865c))()" (parenthesized_expression "(**(code **)(pcVar10 + 0xc865c))" ( (pointer_expression "**(code **)(pcVar10 + 0xc865c)" * (pointer_expression "*(code **)(pcVar10 + 0xc865c)" * (cast_expression "(code **)(pcVar10 + 0xc865c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + 0xc865c)" ( (binary_expression "pcVar10 + 0xc865c" 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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT - (pointer_expression * IDENT)) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT - IDENT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - 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 ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 ( ))) ;) (expression_statement (assignment_expression IDENT = (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 ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (pointer_expression * IDENT)) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT - IDENT)) )) (compound_statement { (expression_statement (assignment_expression 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 ( IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + 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_0036b558(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  \n  uVar1 = param_1[1];\n  uVar5 = param_2 - *param_1 >> 2;\n  uVar7 = param_3 - param_2 >> 2;\n  if (uVar5 <= uVar1) {\n                    \n                    \n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }\n  piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar6 = PTR_DAT_0043226c + 0x72f0;\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);\n  uVar8 = piVar4[1];\n  uVar7 = (int)puVar6 - *piVar4 >> 2;\n  if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }\n  pcVar10 = *(code **)(puVar9 + 0xc7a1c);\n  (*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);\n                    \n                    \n  (**(code **)(pcVar10 + 0xc865c))();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0036b558(int *param_1,int param_2,int param_3)" (identifier "FUN_0036b558") (parameter_list "(int *param_1,int param_2,int param_3)" (( "(") (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")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  uint uVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  \n  uVar1 = param_1[1];\n  uVar5 = param_2 - *param_1 >> 2;\n  uVar7 = param_3 - param_2 >> 2;\n  if (uVar5 <= uVar1) {\n                    \n                    \n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }\n  piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar6 = PTR_DAT_0043226c + 0x72f0;\n  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);\n  uVar8 = piVar4[1];\n  uVar7 = (int)puVar6 - *piVar4 >> 2;\n  if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }\n  pcVar10 = *(code **)(puVar9 + 0xc7a1c);\n  (*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);\n                    \n                    \n  (**(code **)(pcVar10 + 0xc865c))();\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "code *pcVar10;" (type_identifier "code") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" (identifier "uVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar5 = param_2 - *param_1 >> 2;" (assignment_expression "uVar5 = param_2 - *param_1 >> 2" (identifier "uVar5") (= "=") (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"))) (; ";")) (expression_statement "uVar7 = param_3 - param_2 >> 2;" (assignment_expression "uVar7 = param_3 - param_2 >> 2" (identifier "uVar7") (= "=") (binary_expression "param_3 - param_2 >> 2" (binary_expression "param_3 - param_2" (identifier "param_3") (- "-") (identifier "param_2")) (>> ">>") (number_literal "2"))) (; ";")) (if_statement "if (uVar5 <= uVar1) {\n                    \n                    \n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }" (if "if") (parenthesized_expression "(uVar5 <= uVar1)" (( "(") (binary_expression "uVar5 <= uVar1" (identifier "uVar5") (<= "<=") (identifier "uVar1")) () ")")) (compound_statement "{\n                    \n                    \n    if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }\n    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);\n    return;\n  }" ({ "{") (if_statement "if (uVar1 - uVar5 <= uVar7) {\n      uVar7 = uVar1 - uVar5;\n    }" (if "if") (parenthesized_expression "(uVar1 - uVar5 <= uVar7)" (( "(") (binary_expression "uVar1 - uVar5 <= uVar7" (binary_expression "uVar1 - uVar5" (identifier "uVar1") (- "-") (identifier "uVar5")) (<= "<=") (identifier "uVar7")) () ")")) (compound_statement "{\n      uVar7 = uVar1 - uVar5;\n    }" ({ "{") (expression_statement "uVar7 = uVar1 - uVar5;" (assignment_expression "uVar7 = uVar1 - uVar5" (identifier "uVar7") (= "=") (binary_expression "uVar1 - uVar5" (identifier "uVar1") (- "-") (identifier "uVar5"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);" (call_expression "(*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7)" (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,uVar5,uVar7)" (( "(") (identifier "param_1") (, ",") (identifier "uVar5") (, ",") (identifier "uVar7") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);" (assignment_expression "piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" (identifier "piVar4") (= "=") (cast_expression "(int *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_alize_xindex_004323b4 + -0x25a4)" (( "(") (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" (identifier "PTR_s_alize_xindex_004323b4") (+ "+") (number_literal "-0x25a4")) () ")")))) (; ";")) (expression_statement "puVar6 = PTR_DAT_0043226c + 0x72f0;" (assignment_expression "puVar6 = PTR_DAT_0043226c + 0x72f0" (identifier "puVar6") (= "=") (binary_expression "PTR_DAT_0043226c + 0x72f0" (identifier "PTR_DAT_0043226c") (+ "+") (number_literal "0x72f0"))) (; ";")) (expression_statement "puVar9 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar9 = PTR___throw_out_of_range_fmt_00432fe8" (identifier "puVar9") (= "=") (identifier "PTR___throw_out_of_range_fmt_00432fe8")) (; ";")) (expression_statement "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)();" (call_expression "(*(code *)PTR___throw_out_of_range_fmt_00432fe8)()" (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 "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);" (assignment_expression "uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(puVar9 + 0xcb2a4))(uVar1)" (parenthesized_expression "(**(code **)(puVar9 + 0xcb2a4))" (( "(") (pointer_expression "**(code **)(puVar9 + 0xcb2a4)" (* "*") (pointer_expression "*(code **)(puVar9 + 0xcb2a4)" (* "*") (cast_expression "(code **)(puVar9 + 0xcb2a4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0xcb2a4)" (( "(") (binary_expression "puVar9 + 0xcb2a4" (identifier "puVar9") (+ "+") (number_literal "0xcb2a4")) () ")"))))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "uVar8 = piVar4[1];" (assignment_expression "uVar8 = piVar4[1]" (identifier "uVar8") (= "=") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar7 = (int)puVar6 - *piVar4 >> 2;" (assignment_expression "uVar7 = (int)puVar6 - *piVar4 >> 2" (identifier "uVar7") (= "=") (binary_expression "(int)puVar6 - *piVar4 >> 2" (binary_expression "(int)puVar6 - *piVar4" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (- "-") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (>> ">>") (number_literal "2"))) (; ";")) (if_statement "if (uVar7 <= uVar8) {\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }" (if "if") (parenthesized_expression "(uVar7 <= uVar8)" (( "(") (binary_expression "uVar7 <= uVar8" (identifier "uVar7") (<= "<=") (identifier "uVar8")) () ")")) (compound_statement "{\n    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;\n    uVar5 = uVar8 - uVar7;\n    if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }\n    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);\n    return;\n  }" ({ "{") (expression_statement "uVar3 = (int)(uVar5 - (int)puVar6) >> 2;" (assignment_expression "uVar3 = (int)(uVar5 - (int)puVar6) >> 2" (identifier "uVar3") (= "=") (binary_expression "(int)(uVar5 - (int)puVar6) >> 2" (cast_expression "(int)(uVar5 - (int)puVar6)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar5 - (int)puVar6)" (( "(") (binary_expression "uVar5 - (int)puVar6" (identifier "uVar5") (- "-") (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";")) (expression_statement "uVar5 = uVar8 - uVar7;" (assignment_expression "uVar5 = uVar8 - uVar7" (identifier "uVar5") (= "=") (binary_expression "uVar8 - uVar7" (identifier "uVar8") (- "-") (identifier "uVar7"))) (; ";")) (if_statement "if (uVar3 < uVar8 - uVar7) {\n      uVar5 = uVar3;\n    }" (if "if") (parenthesized_expression "(uVar3 < uVar8 - uVar7)" (( "(") (binary_expression "uVar3 < uVar8 - uVar7" (identifier "uVar3") (< "<") (binary_expression "uVar8 - uVar7" (identifier "uVar8") (- "-") (identifier "uVar7"))) () ")")) (compound_statement "{\n      uVar5 = uVar3;\n    }" ({ "{") (expression_statement "uVar5 = uVar3;" (assignment_expression "uVar5 = uVar3" (identifier "uVar5") (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (expression_statement "(**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);" (call_expression "(**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2)" (parenthesized_expression "(**(code **)(puVar9 + 0xc8724))" (( "(") (pointer_expression "**(code **)(puVar9 + 0xc8724)" (* "*") (pointer_expression "*(code **)(puVar9 + 0xc8724)" (* "*") (cast_expression "(code **)(puVar9 + 0xc8724)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0xc8724)" (( "(") (binary_expression "puVar9 + 0xc8724" (identifier "puVar9") (+ "+") (number_literal "0xc8724")) () ")"))))) () ")")) (argument_list "(piVar4,uVar7,uVar5,uVar1,uVar2)" (( "(") (identifier "piVar4") (, ",") (identifier "uVar7") (, ",") (identifier "uVar5") (, ",") (identifier "uVar1") (, ",") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar10 = *(code **)(puVar9 + 0xc7a1c);" (assignment_expression "pcVar10 = *(code **)(puVar9 + 0xc7a1c)" (identifier "pcVar10") (= "=") (pointer_expression "*(code **)(puVar9 + 0xc7a1c)" (* "*") (cast_expression "(code **)(puVar9 + 0xc7a1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0xc7a1c)" (( "(") (binary_expression "puVar9 + 0xc7a1c" (identifier "puVar9") (+ "+") (number_literal "0xc7a1c")) () ")"))))) (; ";")) (expression_statement "(*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);" (call_expression "(*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8)" (parenthesized_expression "(*pcVar10)" (( "(") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) () ")")) (argument_list "(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8)" (( "(") (binary_expression "*(int *)(puVar9 + 0xc6de8) + -0x25a4" (pointer_expression "*(int *)(puVar9 + 0xc6de8)" (* "*") (cast_expression "(int *)(puVar9 + 0xc6de8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 0xc6de8)" (( "(") (binary_expression "puVar9 + 0xc6de8" (identifier "puVar9") (+ "+") (number_literal "0xc6de8")) () ")")))) (+ "+") (number_literal "-0x25a4")) (, ",") (binary_expression "*(int *)(puVar9 + 0xc6ca0) + 0x72f0" (pointer_expression "*(int *)(puVar9 + 0xc6ca0)" (* "*") (cast_expression "(int *)(puVar9 + 0xc6ca0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + 0xc6ca0)" (( "(") (binary_expression "puVar9 + 0xc6ca0" (identifier "puVar9") (+ "+") (number_literal "0xc6ca0")) () ")")))) (+ "+") (number_literal "0x72f0")) (, ",") (identifier "uVar7") (, ",") (identifier "uVar8") () ")"))) (; ";")) (expression_statement "(**(code **)(pcVar10 + 0xc865c))();" (call_expression "(**(code **)(pcVar10 + 0xc865c))()" (parenthesized_expression "(**(code **)(pcVar10 + 0xc865c))" (( "(") (pointer_expression "**(code **)(pcVar10 + 0xc865c)" (* "*") (pointer_expression "*(code **)(pcVar10 + 0xc865c)" (* "*") (cast_expression "(code **)(pcVar10 + 0xc865c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar10 + 0xc865c)" (( "(") (binary_expression "pcVar10 + 0xc865c" (identifier "pcVar10") (+ "+") (number_literal "0xc865c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wstring::replace(__normal_iterator<wchar_t*, std::wstring >, __normal_iterator<wchar_t*,
   std::wstring >, wchar_t const*, unsigned int) */

void std::wstring::function_1(int *param_1,int var_1,int var_2)

{
  type_1 var_4;
  type_2 uVar2;
  type_1 var_10;
  int *piVar4;
  type_1 var_3;
  type_3 *puVar6;
  type_1 var_5;
  type_1 var_9;
  type_3 *var_8;
  type_4 *var_11;
  
  var_4 = param_1[1];
  var_3 = var_1 - *param_1 >> 2;
  var_5 = var_2 - var_1 >> 2;
  if (var_3 <= var_4) {
                    /* WARNING: Could not recover jumptable at 0x0036b5a4. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    if (var_4 - var_3 <= var_5) {
      var_5 = var_4 - var_3;
    }
    (*(type_4 *)PTR__M_replace_00433cf0)(param_1,var_3,var_5);
    return;
  }
  piVar4 = (int *)(var_6 + -0x25a4);
  puVar6 = var_7 + 0x72f0;
  var_8 = PTR___throw_out_of_range_fmt_00432fe8;
  (*(type_4 *)PTR___throw_out_of_range_fmt_00432fe8)();
  uVar2 = (**(type_4 **)(var_8 + 0xcb2a4))(var_4);
  var_9 = piVar4[1];
  var_5 = (int)puVar6 - *piVar4 >> 2;
  if (var_5 <= var_9) {
    var_10 = (int)(var_3 - (int)puVar6) >> 2;
    var_3 = var_9 - var_5;
    if (var_10 < var_9 - var_5) {
      var_3 = var_10;
    }
    (**(type_4 **)(var_8 + 0xc8724))(piVar4,var_5,var_3,var_4,uVar2);
    return;
  }
  var_11 = *(type_4 **)(var_8 + 0xc7a1c);
  (*var_11)(*(int *)(var_8 + 0xc6de8) + -0x25a4,*(int *)(var_8 + 0xc6ca0) + 0x72f0,var_5,var_9);
                    /* WARNING: Could not recover jumptable at 0x0036b6b0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(type_4 **)(var_11 + 0xc865c))();
  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)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (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: (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (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)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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))) (expression_statement (assignment_expression left: (identifier) right: (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 (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: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (identifier))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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 (identifier) (identifier) (identifier) (identifier) (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) 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)

{
  uint uVar1;
  undefined4 uVar2;
  uint uVar3;
  int *piVar4;
  uint uVar5;
  undefined *puVar6;
  uint uVar7;
  uint uVar8;
  undefined *puVar9;
  code *pcVar10;
  
  uVar1 = param_1[1];
  uVar5 = param_2 - *param_1 >> 2;
  uVar7 = param_3 - param_2 >> 2;
  if (uVar5 <= uVar1) {
                    /* WARNING: Could not recover jumptable at 0x0036b5a4. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    if (uVar1 - uVar5 <= uVar7) {
      uVar7 = uVar1 - uVar5;
    }
    (*(code *)PTR__M_replace_00433cf0)(param_1,uVar5,uVar7);
    return;
  }
  piVar4 = (int *)(PTR_s_alize_xindex_004323b4 + -0x25a4);
  puVar6 = PTR_DAT_0043226c + 0x72f0;
  puVar9 = PTR___throw_out_of_range_fmt_00432fe8;
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();
  uVar2 = (**(code **)(puVar9 + 0xcb2a4))(uVar1);
  uVar8 = piVar4[1];
  uVar7 = (int)puVar6 - *piVar4 >> 2;
  if (uVar7 <= uVar8) {
    uVar3 = (int)(uVar5 - (int)puVar6) >> 2;
    uVar5 = uVar8 - uVar7;
    if (uVar3 < uVar8 - uVar7) {
      uVar5 = uVar3;
    }
    (**(code **)(puVar9 + 0xc8724))(piVar4,uVar7,uVar5,uVar1,uVar2);
    return;
  }
  pcVar10 = *(code **)(puVar9 + 0xc7a1c);
  (*pcVar10)(*(int *)(puVar9 + 0xc6de8) + -0x25a4,*(int *)(puVar9 + 0xc6ca0) + 0x72f0,uVar7,uVar8);
                    /* WARNING: Could not recover jumptable at 0x0036b6b0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(pcVar10 + 0xc865c))();
  return;
}

