
/* WARNING: Struct "Output_section_data": ignoring overlapping field "output_section_" */
/* WARNING: Struct "Output_section": ignoring overlapping field "name_" */
/* WARNING: Struct "Output_section_headers": ignoring overlapping field "layout_" */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Struct "Output_reduced_debug_abbrev_section": ignoring overlapping field "data_" */
/* WARNING: Struct "Output_reduced_debug_info_section": ignoring overlapping field "data_" */
/* std::string::replace(__normal_iterator<char const*, std::string >, __normal_iterator<char const*,
   std::string >, char*, char*) */

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

{
  char *pcVar1;
  char *pcVar2;
  undefined4 *puVar3;
  uint uVar4;
  string *psVar5;
  char *pcVar6;
  undefined *puVar7;
  char *pcVar8;
  undefined4 *puVar9;
  uint uVar10;
  uint uVar11;
  undefined *puVar12;
  code *pcVar13;
  code *pcVar14;
  undefined *puVar15;
  int iVar16;
  
  iVar16 = 0x43a1d0;
  pcVar1 = *(char **)(this + 4);
  pcVar6 = (char *)(param_2 - *(int *)this);
  if (pcVar6 <= pcVar1) {
    uVar4 = param_3 - param_2;
    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {
      uVar4 = (int)pcVar1 - (int)pcVar6;
    }
    _M_replace(this,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);
    return;
  }
  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);
  puVar7 = PTR_s__0043226c + 0x72f0;
  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();
  puVar15 = puVar12 + 0x178aa4;
  pcVar2 = *(char **)(psVar5 + 4);
  pcVar8 = puVar7 + -*(int *)psVar5;
  if (pcVar8 <= pcVar2) {
    uVar4 = (int)pcVar6 - (int)puVar7;
    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {
      uVar4 = (int)pcVar2 - (int)pcVar8;
    }
    _M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);
    return;
  }
  pcVar13 = *(code **)(puVar12 + 0x1718bc);
  psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);
  iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;
  (*pcVar13)();
  puVar3 = *(undefined4 **)(psVar5 + 4);
  puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);
  if (puVar9 <= puVar3) {
    uVar4 = (int)pcVar8 - iVar16;
    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {
      uVar4 = (int)puVar3 - (int)puVar9;
    }
    _M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);
    return;
  }
  pcVar14 = *(code **)(pcVar13 + 0x171844);
  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);
  iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;
  (*pcVar14)();
  uVar4 = *(uint *)(psVar5 + 4);
  uVar10 = iVar16 - *(int *)psVar5;
  if (uVar10 <= uVar4) {
    uVar11 = (int)puVar9 - iVar16;
    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {
      uVar11 = uVar4 - uVar10;
    }
    _M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);
    return;
  }
  (**(code **)(pcVar14 + 0x1717d4))
            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,
             uVar4);
  return;
}



void FUN_002c16b4(string *param_1,int param_2,int param_3,char *param_4,int param_5)

{
  char *pcVar1;
  char *pcVar2;
  undefined4 *puVar3;
  uint uVar4;
  string *psVar5;
  char *pcVar6;
  undefined *puVar7;
  char *pcVar8;
  undefined4 *puVar9;
  uint uVar10;
  uint uVar11;
  undefined *puVar12;
  code *pcVar13;
  code *pcVar14;
  undefined *puVar15;
  int iVar16;
  
  iVar16 = 0x43a1d0;
  pcVar1 = *(char **)(param_1 + 4);
  pcVar6 = (char *)(param_2 - *(int *)param_1);
  if (pcVar6 <= pcVar1) {
    uVar4 = param_3 - param_2;
    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {
      uVar4 = (int)pcVar1 - (int)pcVar6;
    }
    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);
    return;
  }
  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);
  puVar7 = PTR_DAT_0043226c + 0x72f0;
  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();
  puVar15 = puVar12 + 0x178aa4;
  pcVar2 = *(char **)(psVar5 + 4);
  pcVar8 = puVar7 + -*(int *)psVar5;
  if (pcVar8 <= pcVar2) {
    uVar4 = (int)pcVar6 - (int)puVar7;
    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {
      uVar4 = (int)pcVar2 - (int)pcVar8;
    }
    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);
    return;
  }
  pcVar13 = *(code **)(puVar12 + 0x1718bc);
  psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);
  iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;
  (*pcVar13)();
  puVar3 = *(undefined4 **)(psVar5 + 4);
  puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);
  if (puVar9 <= puVar3) {
    uVar4 = (int)pcVar8 - iVar16;
    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {
      uVar4 = (int)puVar3 - (int)puVar9;
    }
    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);
    return;
  }
  pcVar14 = *(code **)(pcVar13 + 0x171844);
  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);
  iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;
  (*pcVar14)();
  uVar4 = *(uint *)(psVar5 + 4);
  uVar10 = iVar16 - *(int *)psVar5;
  if (uVar10 <= uVar4) {
    uVar11 = (int)puVar9 - iVar16;
    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {
      uVar11 = uVar4 - uVar10;
    }
    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);
    return;
  }
  (**(code **)(pcVar14 + 0x1717d4))
            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,
             uVar4);
  return;
}


lui gp,0x18
addiu gp,gp,-0x74e4
addu gp,gp,t9
addiu sp,sp,-0x20
subu a2,a2,a1
lw v1,0x30(sp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
lw t0,0x0(a0)
lw v0,0x4(a0)
subu a1,a1,t0
sltu t0,v0,a1
bne t0,zero,0x002c170c
_subu v1,v1,a3
subu v0,v0,a1
lw ra,0x1c(sp)
lw t9,-0x7794(gp)
sw v1,0x30(sp)
sltu v1,a2,v0
movz a2,v0,v1
b 0x002c0e34
_addiu sp,sp,0x20
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_002c16b4(string *param_1,int param_2,int param_3,char *param_4,int param_5)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  undefined *puVar15;\n  int iVar16;\n  \n  iVar16 = 0x43a1d0;\n  pcVar1 = *(char **)(param_1 + 4);\n  pcVar6 = (char *)(param_2 - *(int *)param_1);\n  if (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar7 = PTR_DAT_0043226c + 0x72f0;\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  puVar15 = puVar12 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = puVar7 + -*(int *)psVar5;\n  if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);\n  iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar14)();\n  uVar4 = *(uint *)(psVar5 + 4);\n  uVar10 = iVar16 - *(int *)psVar5;\n  if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);\n  return;\n}\n\n" (function_definition "void FUN_002c16b4(string *param_1,int param_2,int param_3,char *param_4,int param_5)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  undefined *puVar15;\n  int iVar16;\n  \n  iVar16 = 0x43a1d0;\n  pcVar1 = *(char **)(param_1 + 4);\n  pcVar6 = (char *)(param_2 - *(int *)param_1);\n  if (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar7 = PTR_DAT_0043226c + 0x72f0;\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  puVar15 = puVar12 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = puVar7 + -*(int *)psVar5;\n  if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);\n  iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar14)();\n  uVar4 = *(uint *)(psVar5 + 4);\n  uVar10 = iVar16 - *(int *)psVar5;\n  if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);\n  return;\n}" primitive_type (function_declarator "FUN_002c16b4(string *param_1,int param_2,int param_3,char *param_4,int param_5)" identifier (parameter_list "(string *param_1,int param_2,int param_3,char *param_4,int param_5)" ( (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  undefined *puVar15;\n  int iVar16;\n  \n  iVar16 = 0x43a1d0;\n  pcVar1 = *(char **)(param_1 + 4);\n  pcVar6 = (char *)(param_2 - *(int *)param_1);\n  if (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar7 = PTR_DAT_0043226c + 0x72f0;\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  puVar15 = puVar12 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = puVar7 + -*(int *)psVar5;\n  if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);\n  iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar14)();\n  uVar4 = *(uint *)(psVar5 + 4);\n  uVar10 = iVar16 - *(int *)psVar5;\n  if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "string *psVar5;" type_identifier (pointer_declarator "*psVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "code *pcVar13;" type_identifier (pointer_declarator "*pcVar13" * identifier) ;) (declaration "code *pcVar14;" type_identifier (pointer_declarator "*pcVar14" * identifier) ;) (declaration "undefined *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "int iVar16;" primitive_type identifier ;) (expression_statement "iVar16 = 0x43a1d0;" (assignment_expression "iVar16 = 0x43a1d0" identifier = number_literal) ;) (expression_statement "pcVar1 = *(char **)(param_1 + 4);" (assignment_expression "pcVar1 = *(char **)(param_1 + 4)" identifier = (pointer_expression "*(char **)(param_1 + 4)" * (cast_expression "(char **)(param_1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = (char *)(param_2 - *(int *)param_1);" (assignment_expression "pcVar6 = (char *)(param_2 - *(int *)param_1)" identifier = (cast_expression "(char *)(param_2 - *(int *)param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 - *(int *)param_1)" ( (binary_expression "param_2 - *(int *)param_1" identifier - (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (if_statement "if (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }" if (parenthesized_expression "(pcVar6 <= pcVar1)" ( (binary_expression "pcVar6 <= pcVar1" identifier <= identifier) )) (compound_statement "{\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\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 ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }" if (parenthesized_expression "((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2))" ( (binary_expression "(uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)" (call_expression "(uint)((int)pcVar1 - (int)pcVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar1 - (int)pcVar6)" ( (binary_expression "(int)pcVar1 - (int)pcVar6" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) 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 = (int)pcVar1 - (int)pcVar6;\n    }" { (expression_statement "uVar4 = (int)pcVar1 - (int)pcVar6;" (assignment_expression "uVar4 = (int)pcVar1 - (int)pcVar6" identifier = (binary_expression "(int)pcVar1 - (int)pcVar6" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (labeled_statement "std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);" (call_expression "_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4)" identifier (argument_list "(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4)" ( identifier , (cast_expression "(uint)pcVar6" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (binary_expression "param_5 - (int)param_4" identifier - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);" (assignment_expression "psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" identifier = (cast_expression "(string *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) )))) ;) (expression_statement "puVar7 = PTR_DAT_0043226c + 0x72f0;" (assignment_expression "puVar7 = PTR_DAT_0043226c + 0x72f0" identifier = (binary_expression "PTR_DAT_0043226c + 0x72f0" identifier + number_literal)) ;) (expression_statement "puVar12 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar12 = 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 "puVar15 = puVar12 + 0x178aa4;" (assignment_expression "puVar15 = puVar12 + 0x178aa4" identifier = (binary_expression "puVar12 + 0x178aa4" identifier + number_literal)) ;) (expression_statement "pcVar2 = *(char **)(psVar5 + 4);" (assignment_expression "pcVar2 = *(char **)(psVar5 + 4)" identifier = (pointer_expression "*(char **)(psVar5 + 4)" * (cast_expression "(char **)(psVar5 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(psVar5 + 4)" ( (binary_expression "psVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar8 = puVar7 + -*(int *)psVar5;" (assignment_expression "pcVar8 = puVar7 + -*(int *)psVar5" identifier = (binary_expression "puVar7 + -*(int *)psVar5" identifier + (unary_expression "-*(int *)psVar5" - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))))) ;) (if_statement "if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }" if (parenthesized_expression "(pcVar8 <= pcVar2)" ( (binary_expression "pcVar8 <= pcVar2" identifier <= identifier) )) (compound_statement "{\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }" { (expression_statement "uVar4 = (int)pcVar6 - (int)puVar7;" (assignment_expression "uVar4 = (int)pcVar6 - (int)puVar7" identifier = (binary_expression "(int)pcVar6 - (int)puVar7" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }" if (parenthesized_expression "((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7))" ( (binary_expression "(uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)" (call_expression "(uint)((int)pcVar2 - (int)pcVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar2 - (int)pcVar8)" ( (binary_expression "(int)pcVar2 - (int)pcVar8" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ))) <= (call_expression "(uint)((int)pcVar6 - (int)puVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar6 - (int)puVar7)" ( (binary_expression "(int)pcVar6 - (int)puVar7" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }" { (expression_statement "uVar4 = (int)pcVar2 - (int)pcVar8;" (assignment_expression "uVar4 = (int)pcVar2 - (int)pcVar8" identifier = (binary_expression "(int)pcVar2 - (int)pcVar8" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (labeled_statement "std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);" (call_expression "_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1)" identifier (argument_list "(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1)" ( identifier , (cast_expression "(uint)pcVar8" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (binary_expression "iVar16 - (int)pcVar1" identifier - (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar13 = *(code **)(puVar12 + 0x1718bc);" (assignment_expression "pcVar13 = *(code **)(puVar12 + 0x1718bc)" identifier = (pointer_expression "*(code **)(puVar12 + 0x1718bc)" * (cast_expression "(code **)(puVar12 + 0x1718bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x1718bc)" ( (binary_expression "puVar12 + 0x1718bc" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0x170c88) + -0x25a4)" ( (binary_expression "*(int *)(puVar12 + 0x170c88) + -0x25a4" (pointer_expression "*(int *)(puVar12 + 0x170c88)" * (cast_expression "(int *)(puVar12 + 0x170c88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x170c88)" ( (binary_expression "puVar12 + 0x170c88" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;" (assignment_expression "iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0" identifier = (binary_expression "*(int *)(puVar12 + 0x170b40) + 0x72f0" (pointer_expression "*(int *)(puVar12 + 0x170b40)" * (cast_expression "(int *)(puVar12 + 0x170b40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x170b40)" ( (binary_expression "puVar12 + 0x170b40" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*pcVar13)();" (call_expression "(*pcVar13)()" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "puVar3 = *(undefined4 **)(psVar5 + 4);" (assignment_expression "puVar3 = *(undefined4 **)(psVar5 + 4)" identifier = (pointer_expression "*(undefined4 **)(psVar5 + 4)" * (cast_expression "(undefined4 **)(psVar5 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(psVar5 + 4)" ( (binary_expression "psVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);" (assignment_expression "puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5)" identifier = (cast_expression "(undefined4 *)(iVar16 - *(int *)psVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar16 - *(int *)psVar5)" ( (binary_expression "iVar16 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (if_statement "if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }" if (parenthesized_expression "(puVar9 <= puVar3)" ( (binary_expression "puVar9 <= puVar3" identifier <= identifier) )) (compound_statement "{\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }" { (expression_statement "uVar4 = (int)pcVar8 - iVar16;" (assignment_expression "uVar4 = (int)pcVar8 - iVar16" identifier = (binary_expression "(int)pcVar8 - iVar16" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }" if (parenthesized_expression "((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16))" ( (binary_expression "(uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)" (call_expression "(uint)((int)puVar3 - (int)puVar9)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar3 - (int)puVar9)" ( (binary_expression "(int)puVar3 - (int)puVar9" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier)) ))) <= (call_expression "(uint)((int)pcVar8 - iVar16)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar8 - iVar16)" ( (binary_expression "(int)pcVar8 - iVar16" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }" { (expression_statement "uVar4 = (int)puVar3 - (int)puVar9;" (assignment_expression "uVar4 = (int)puVar3 - (int)puVar9" identifier = (binary_expression "(int)puVar3 - (int)puVar9" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (labeled_statement "std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);" (call_expression "_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15)" identifier (argument_list "(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15)" ( identifier , (cast_expression "(uint)puVar9" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (cast_expression "(uint)puVar15" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar14 = *(code **)(pcVar13 + 0x171844);" (assignment_expression "pcVar14 = *(code **)(pcVar13 + 0x171844)" identifier = (pointer_expression "*(code **)(pcVar13 + 0x171844)" * (cast_expression "(code **)(pcVar13 + 0x171844)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar13 + 0x171844)" ( (binary_expression "pcVar13 + 0x171844" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar13 + 0x170c10) + -0x25a4)" ( (binary_expression "*(int *)(pcVar13 + 0x170c10) + -0x25a4" (pointer_expression "*(int *)(pcVar13 + 0x170c10)" * (cast_expression "(int *)(pcVar13 + 0x170c10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar13 + 0x170c10)" ( (binary_expression "pcVar13 + 0x170c10" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;" (assignment_expression "iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0" identifier = (binary_expression "*(int *)(pcVar13 + 0x170ac8) + 0x72f0" (pointer_expression "*(int *)(pcVar13 + 0x170ac8)" * (cast_expression "(int *)(pcVar13 + 0x170ac8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar13 + 0x170ac8)" ( (binary_expression "pcVar13 + 0x170ac8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*pcVar14)();" (call_expression "(*pcVar14)()" (parenthesized_expression "(*pcVar14)" ( (pointer_expression "*pcVar14" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "uVar4 = *(uint *)(psVar5 + 4);" (assignment_expression "uVar4 = *(uint *)(psVar5 + 4)" identifier = (pointer_expression "*(uint *)(psVar5 + 4)" * (cast_expression "(uint *)(psVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar5 + 4)" ( (binary_expression "psVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar10 = iVar16 - *(int *)psVar5;" (assignment_expression "uVar10 = iVar16 - *(int *)psVar5" identifier = (binary_expression "iVar16 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (if_statement "if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }" if (parenthesized_expression "(uVar10 <= uVar4)" ( (binary_expression "uVar10 <= uVar4" identifier <= identifier) )) (compound_statement "{\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }" { (expression_statement "uVar11 = (int)puVar9 - iVar16;" (assignment_expression "uVar11 = (int)puVar9 - iVar16" identifier = (binary_expression "(int)puVar9 - iVar16" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }" if (parenthesized_expression "(uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16))" ( (binary_expression "uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)" (binary_expression "uVar4 - uVar10" identifier - identifier) <= (call_expression "(uint)((int)puVar9 - iVar16)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar9 - iVar16)" ( (binary_expression "(int)puVar9 - iVar16" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar11 = uVar4 - uVar10;\n    }" { (expression_statement "uVar11 = uVar4 - uVar10;" (assignment_expression "uVar11 = uVar4 - uVar10" identifier = (binary_expression "uVar4 - uVar10" identifier - identifier)) ;) })) (labeled_statement "std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);" (call_expression "_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1])" identifier (argument_list "(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1])" ( identifier , identifier , identifier , (cast_expression "(char *)*puVar3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier)) , (subscript_expression "puVar3[1]" identifier [ number_literal ]) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "(**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);" (call_expression "(**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4)" (parenthesized_expression "(**(code **)(pcVar14 + 0x1717d4))" ( (pointer_expression "**(code **)(pcVar14 + 0x1717d4)" * (pointer_expression "*(code **)(pcVar14 + 0x1717d4)" * (cast_expression "(code **)(pcVar14 + 0x1717d4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar14 + 0x1717d4)" ( (binary_expression "pcVar14 + 0x1717d4" identifier + number_literal) ))))) )) (argument_list "(*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4)" ( (binary_expression "*(int *)(pcVar14 + 0x170ba0) + -0x25a4" (pointer_expression "*(int *)(pcVar14 + 0x170ba0)" * (cast_expression "(int *)(pcVar14 + 0x170ba0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0x170ba0)" ( (binary_expression "pcVar14 + 0x170ba0" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar14 + 0x170a58) + 0x72f0" (pointer_expression "*(int *)(pcVar14 + 0x170a58)" * (cast_expression "(int *)(pcVar14 + 0x170a58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0x170a58)" ( (binary_expression "pcVar14 + 0x170a58" identifier + number_literal) )))) + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Struct "Output_section_data": ignoring overlapping field "output_section_" */\n/* WARNING: Struct "Output_section": ignoring overlapping field "name_" */\n/* WARNING: Struct "Output_section_headers": ignoring overlapping field "layout_" */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Struct "Output_reduced_debug_abbrev_section": ignoring overlapping field "data_" */\n/* WARNING: Struct "Output_reduced_debug_info_section": ignoring overlapping field "data_" */\n/* std::string::replace(__normal_iterator<char const*, std::string >, __normal_iterator<char const*,\n   std::string >, char*, char*) */\n\nvoid __thiscall std::string::replace(string *this,int param_2,int param_3,char *param_4,int param_5)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  undefined *puVar15;\n  int iVar16;\n  \n  iVar16 = 0x43a1d0;\n  pcVar1 = *(char **)(this + 4);\n  pcVar6 = (char *)(param_2 - *(int *)this);\n  if (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    _M_replace(this,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar7 = PTR_s__0043226c + 0x72f0;\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  puVar15 = puVar12 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = puVar7 + -*(int *)psVar5;\n  if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);\n  iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    _M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar14)();\n  uVar4 = *(uint *)(psVar5 + 4);\n  uVar10 = iVar16 - *(int *)psVar5;\n  if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    _M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);\n  return;\n}\n\n" comment comment comment comment comment comment comment (function_definition "void __thiscall std::string::replace(string *this,int param_2,int param_3,char *param_4,int param_5)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  undefined *puVar15;\n  int iVar16;\n  \n  iVar16 = 0x43a1d0;\n  pcVar1 = *(char **)(this + 4);\n  pcVar6 = (char *)(param_2 - *(int *)this);\n  if (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    _M_replace(this,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar7 = PTR_s__0043226c + 0x72f0;\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  puVar15 = puVar12 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = puVar7 + -*(int *)psVar5;\n  if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);\n  iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    _M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar14)();\n  uVar4 = *(uint *)(psVar5 + 4);\n  uVar10 = iVar16 - *(int *)psVar5;\n  if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    _M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);\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,char *param_4,int param_5)" identifier (parameter_list "(string *this,int param_2,int param_3,char *param_4,int param_5)" ( (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 "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  undefined *puVar15;\n  int iVar16;\n  \n  iVar16 = 0x43a1d0;\n  pcVar1 = *(char **)(this + 4);\n  pcVar6 = (char *)(param_2 - *(int *)this);\n  if (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    _M_replace(this,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar7 = PTR_s__0043226c + 0x72f0;\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  puVar15 = puVar12 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = puVar7 + -*(int *)psVar5;\n  if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);\n  iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    _M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar14)();\n  uVar4 = *(uint *)(psVar5 + 4);\n  uVar10 = iVar16 - *(int *)psVar5;\n  if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    _M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "string *psVar5;" type_identifier (pointer_declarator "*psVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "code *pcVar13;" type_identifier (pointer_declarator "*pcVar13" * identifier) ;) (declaration "code *pcVar14;" type_identifier (pointer_declarator "*pcVar14" * identifier) ;) (declaration "undefined *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "int iVar16;" primitive_type identifier ;) (expression_statement "iVar16 = 0x43a1d0;" (assignment_expression "iVar16 = 0x43a1d0" identifier = number_literal) ;) (expression_statement "pcVar1 = *(char **)(this + 4);" (assignment_expression "pcVar1 = *(char **)(this + 4)" identifier = (pointer_expression "*(char **)(this + 4)" * (cast_expression "(char **)(this + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = (char *)(param_2 - *(int *)this);" (assignment_expression "pcVar6 = (char *)(param_2 - *(int *)this)" identifier = (cast_expression "(char *)(param_2 - *(int *)this)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 - *(int *)this)" ( (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 (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    _M_replace(this,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }" if (parenthesized_expression "(pcVar6 <= pcVar1)" ( (binary_expression "pcVar6 <= pcVar1" identifier <= identifier) )) (compound_statement "{\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    _M_replace(this,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\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 ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }" if (parenthesized_expression "((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2))" ( (binary_expression "(uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)" (call_expression "(uint)((int)pcVar1 - (int)pcVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar1 - (int)pcVar6)" ( (binary_expression "(int)pcVar1 - (int)pcVar6" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) 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 = (int)pcVar1 - (int)pcVar6;\n    }" { (expression_statement "uVar4 = (int)pcVar1 - (int)pcVar6;" (assignment_expression "uVar4 = (int)pcVar1 - (int)pcVar6" identifier = (binary_expression "(int)pcVar1 - (int)pcVar6" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (expression_statement "_M_replace(this,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);" (call_expression "_M_replace(this,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4)" identifier (argument_list "(this,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4)" ( identifier , (cast_expression "(uint)pcVar6" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (binary_expression "param_5 - (int)param_4" identifier - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);" (assignment_expression "psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" identifier = (cast_expression "(string *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) )))) ;) (expression_statement "puVar7 = PTR_s__0043226c + 0x72f0;" (assignment_expression "puVar7 = PTR_s__0043226c + 0x72f0" identifier = (binary_expression "PTR_s__0043226c + 0x72f0" identifier + number_literal)) ;) (expression_statement "puVar12 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar12 = 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 "puVar15 = puVar12 + 0x178aa4;" (assignment_expression "puVar15 = puVar12 + 0x178aa4" identifier = (binary_expression "puVar12 + 0x178aa4" identifier + number_literal)) ;) (expression_statement "pcVar2 = *(char **)(psVar5 + 4);" (assignment_expression "pcVar2 = *(char **)(psVar5 + 4)" identifier = (pointer_expression "*(char **)(psVar5 + 4)" * (cast_expression "(char **)(psVar5 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(psVar5 + 4)" ( (binary_expression "psVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar8 = puVar7 + -*(int *)psVar5;" (assignment_expression "pcVar8 = puVar7 + -*(int *)psVar5" identifier = (binary_expression "puVar7 + -*(int *)psVar5" identifier + (unary_expression "-*(int *)psVar5" - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))))) ;) (if_statement "if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }" if (parenthesized_expression "(pcVar8 <= pcVar2)" ( (binary_expression "pcVar8 <= pcVar2" identifier <= identifier) )) (compound_statement "{\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }" { (expression_statement "uVar4 = (int)pcVar6 - (int)puVar7;" (assignment_expression "uVar4 = (int)pcVar6 - (int)puVar7" identifier = (binary_expression "(int)pcVar6 - (int)puVar7" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }" if (parenthesized_expression "((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7))" ( (binary_expression "(uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)" (call_expression "(uint)((int)pcVar2 - (int)pcVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar2 - (int)pcVar8)" ( (binary_expression "(int)pcVar2 - (int)pcVar8" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ))) <= (call_expression "(uint)((int)pcVar6 - (int)puVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar6 - (int)puVar7)" ( (binary_expression "(int)pcVar6 - (int)puVar7" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }" { (expression_statement "uVar4 = (int)pcVar2 - (int)pcVar8;" (assignment_expression "uVar4 = (int)pcVar2 - (int)pcVar8" identifier = (binary_expression "(int)pcVar2 - (int)pcVar8" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (expression_statement "_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);" (call_expression "_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1)" identifier (argument_list "(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1)" ( identifier , (cast_expression "(uint)pcVar8" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (binary_expression "iVar16 - (int)pcVar1" identifier - (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar13 = *(code **)(puVar12 + 0x1718bc);" (assignment_expression "pcVar13 = *(code **)(puVar12 + 0x1718bc)" identifier = (pointer_expression "*(code **)(puVar12 + 0x1718bc)" * (cast_expression "(code **)(puVar12 + 0x1718bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x1718bc)" ( (binary_expression "puVar12 + 0x1718bc" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0x170c88) + -0x25a4)" ( (binary_expression "*(int *)(puVar12 + 0x170c88) + -0x25a4" (pointer_expression "*(int *)(puVar12 + 0x170c88)" * (cast_expression "(int *)(puVar12 + 0x170c88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x170c88)" ( (binary_expression "puVar12 + 0x170c88" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;" (assignment_expression "iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0" identifier = (binary_expression "*(int *)(puVar12 + 0x170b40) + 0x72f0" (pointer_expression "*(int *)(puVar12 + 0x170b40)" * (cast_expression "(int *)(puVar12 + 0x170b40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x170b40)" ( (binary_expression "puVar12 + 0x170b40" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*pcVar13)();" (call_expression "(*pcVar13)()" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "puVar3 = *(undefined4 **)(psVar5 + 4);" (assignment_expression "puVar3 = *(undefined4 **)(psVar5 + 4)" identifier = (pointer_expression "*(undefined4 **)(psVar5 + 4)" * (cast_expression "(undefined4 **)(psVar5 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(psVar5 + 4)" ( (binary_expression "psVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);" (assignment_expression "puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5)" identifier = (cast_expression "(undefined4 *)(iVar16 - *(int *)psVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar16 - *(int *)psVar5)" ( (binary_expression "iVar16 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (if_statement "if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    _M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }" if (parenthesized_expression "(puVar9 <= puVar3)" ( (binary_expression "puVar9 <= puVar3" identifier <= identifier) )) (compound_statement "{\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    _M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }" { (expression_statement "uVar4 = (int)pcVar8 - iVar16;" (assignment_expression "uVar4 = (int)pcVar8 - iVar16" identifier = (binary_expression "(int)pcVar8 - iVar16" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }" if (parenthesized_expression "((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16))" ( (binary_expression "(uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)" (call_expression "(uint)((int)puVar3 - (int)puVar9)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar3 - (int)puVar9)" ( (binary_expression "(int)puVar3 - (int)puVar9" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier)) ))) <= (call_expression "(uint)((int)pcVar8 - iVar16)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar8 - iVar16)" ( (binary_expression "(int)pcVar8 - iVar16" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }" { (expression_statement "uVar4 = (int)puVar3 - (int)puVar9;" (assignment_expression "uVar4 = (int)puVar3 - (int)puVar9" identifier = (binary_expression "(int)puVar3 - (int)puVar9" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (expression_statement "_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);" (call_expression "_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15)" identifier (argument_list "(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15)" ( identifier , (cast_expression "(uint)puVar9" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (cast_expression "(uint)puVar15" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar14 = *(code **)(pcVar13 + 0x171844);" (assignment_expression "pcVar14 = *(code **)(pcVar13 + 0x171844)" identifier = (pointer_expression "*(code **)(pcVar13 + 0x171844)" * (cast_expression "(code **)(pcVar13 + 0x171844)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar13 + 0x171844)" ( (binary_expression "pcVar13 + 0x171844" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar13 + 0x170c10) + -0x25a4)" ( (binary_expression "*(int *)(pcVar13 + 0x170c10) + -0x25a4" (pointer_expression "*(int *)(pcVar13 + 0x170c10)" * (cast_expression "(int *)(pcVar13 + 0x170c10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar13 + 0x170c10)" ( (binary_expression "pcVar13 + 0x170c10" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;" (assignment_expression "iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0" identifier = (binary_expression "*(int *)(pcVar13 + 0x170ac8) + 0x72f0" (pointer_expression "*(int *)(pcVar13 + 0x170ac8)" * (cast_expression "(int *)(pcVar13 + 0x170ac8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar13 + 0x170ac8)" ( (binary_expression "pcVar13 + 0x170ac8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*pcVar14)();" (call_expression "(*pcVar14)()" (parenthesized_expression "(*pcVar14)" ( (pointer_expression "*pcVar14" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "uVar4 = *(uint *)(psVar5 + 4);" (assignment_expression "uVar4 = *(uint *)(psVar5 + 4)" identifier = (pointer_expression "*(uint *)(psVar5 + 4)" * (cast_expression "(uint *)(psVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar5 + 4)" ( (binary_expression "psVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar10 = iVar16 - *(int *)psVar5;" (assignment_expression "uVar10 = iVar16 - *(int *)psVar5" identifier = (binary_expression "iVar16 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (if_statement "if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    _M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }" if (parenthesized_expression "(uVar10 <= uVar4)" ( (binary_expression "uVar10 <= uVar4" identifier <= identifier) )) (compound_statement "{\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    _M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }" { (expression_statement "uVar11 = (int)puVar9 - iVar16;" (assignment_expression "uVar11 = (int)puVar9 - iVar16" identifier = (binary_expression "(int)puVar9 - iVar16" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }" if (parenthesized_expression "(uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16))" ( (binary_expression "uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)" (binary_expression "uVar4 - uVar10" identifier - identifier) <= (call_expression "(uint)((int)puVar9 - iVar16)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar9 - iVar16)" ( (binary_expression "(int)puVar9 - iVar16" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar11 = uVar4 - uVar10;\n    }" { (expression_statement "uVar11 = uVar4 - uVar10;" (assignment_expression "uVar11 = uVar4 - uVar10" identifier = (binary_expression "uVar4 - uVar10" identifier - identifier)) ;) })) (expression_statement "_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);" (call_expression "_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1])" identifier (argument_list "(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1])" ( identifier , identifier , identifier , (cast_expression "(char *)*puVar3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier)) , (subscript_expression "puVar3[1]" identifier [ number_literal ]) ))) ;) (return_statement "return;" return ;) })) (expression_statement "(**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);" (call_expression "(**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4)" (parenthesized_expression "(**(code **)(pcVar14 + 0x1717d4))" ( (pointer_expression "**(code **)(pcVar14 + 0x1717d4)" * (pointer_expression "*(code **)(pcVar14 + 0x1717d4)" * (cast_expression "(code **)(pcVar14 + 0x1717d4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar14 + 0x1717d4)" ( (binary_expression "pcVar14 + 0x1717d4" identifier + number_literal) ))))) )) (argument_list "(*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4)" ( (binary_expression "*(int *)(pcVar14 + 0x170ba0) + -0x25a4" (pointer_expression "*(int *)(pcVar14 + 0x170ba0)" * (cast_expression "(int *)(pcVar14 + 0x170ba0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0x170ba0)" ( (binary_expression "pcVar14 + 0x170ba0" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar14 + 0x170a58) + 0x72f0" (pointer_expression "*(int *)(pcVar14 + 0x170a58)" * (cast_expression "(int *)(pcVar14 + 0x170a58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0x170a58)" ( (binary_expression "pcVar14 + 0x170a58" identifier + number_literal) )))) + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002c16b4(string *param_1,int param_2,int param_3,char *param_4,int param_5)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  undefined *puVar15;\n  int iVar16;\n  \n  iVar16 = 0x43a1d0;\n  pcVar1 = *(char **)(param_1 + 4);\n  pcVar6 = (char *)(param_2 - *(int *)param_1);\n  if (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar7 = PTR_DAT_0043226c + 0x72f0;\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  puVar15 = puVar12 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = puVar7 + -*(int *)psVar5;\n  if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);\n  iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar14)();\n  uVar4 = *(uint *)(psVar5 + 4);\n  uVar10 = iVar16 - *(int *)psVar5;\n  if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);\n  return;\n}\n\n" (function_definition "void FUN_002c16b4(string *param_1,int param_2,int param_3,char *param_4,int param_5)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  undefined *puVar15;\n  int iVar16;\n  \n  iVar16 = 0x43a1d0;\n  pcVar1 = *(char **)(param_1 + 4);\n  pcVar6 = (char *)(param_2 - *(int *)param_1);\n  if (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar7 = PTR_DAT_0043226c + 0x72f0;\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  puVar15 = puVar12 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = puVar7 + -*(int *)psVar5;\n  if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);\n  iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar14)();\n  uVar4 = *(uint *)(psVar5 + 4);\n  uVar10 = iVar16 - *(int *)psVar5;\n  if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);\n  return;\n}" primitive_type (function_declarator "FUN_002c16b4(string *param_1,int param_2,int param_3,char *param_4,int param_5)" identifier (parameter_list "(string *param_1,int param_2,int param_3,char *param_4,int param_5)" ( (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  undefined *puVar15;\n  int iVar16;\n  \n  iVar16 = 0x43a1d0;\n  pcVar1 = *(char **)(param_1 + 4);\n  pcVar6 = (char *)(param_2 - *(int *)param_1);\n  if (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar7 = PTR_DAT_0043226c + 0x72f0;\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  puVar15 = puVar12 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = puVar7 + -*(int *)psVar5;\n  if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);\n  iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar14)();\n  uVar4 = *(uint *)(psVar5 + 4);\n  uVar10 = iVar16 - *(int *)psVar5;\n  if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "string *psVar5;" type_identifier (pointer_declarator "*psVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "code *pcVar13;" type_identifier (pointer_declarator "*pcVar13" * identifier) ;) (declaration "code *pcVar14;" type_identifier (pointer_declarator "*pcVar14" * identifier) ;) (declaration "undefined *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "int iVar16;" primitive_type identifier ;) (expression_statement "iVar16 = 0x43a1d0;" (assignment_expression "iVar16 = 0x43a1d0" identifier = number_literal) ;) (expression_statement "pcVar1 = *(char **)(param_1 + 4);" (assignment_expression "pcVar1 = *(char **)(param_1 + 4)" identifier = (pointer_expression "*(char **)(param_1 + 4)" * (cast_expression "(char **)(param_1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = (char *)(param_2 - *(int *)param_1);" (assignment_expression "pcVar6 = (char *)(param_2 - *(int *)param_1)" identifier = (cast_expression "(char *)(param_2 - *(int *)param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 - *(int *)param_1)" ( (binary_expression "param_2 - *(int *)param_1" identifier - (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (if_statement "if (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }" if (parenthesized_expression "(pcVar6 <= pcVar1)" ( (binary_expression "pcVar6 <= pcVar1" identifier <= identifier) )) (compound_statement "{\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\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 ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }" if (parenthesized_expression "((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2))" ( (binary_expression "(uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)" (call_expression "(uint)((int)pcVar1 - (int)pcVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar1 - (int)pcVar6)" ( (binary_expression "(int)pcVar1 - (int)pcVar6" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) 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 = (int)pcVar1 - (int)pcVar6;\n    }" { (expression_statement "uVar4 = (int)pcVar1 - (int)pcVar6;" (assignment_expression "uVar4 = (int)pcVar1 - (int)pcVar6" identifier = (binary_expression "(int)pcVar1 - (int)pcVar6" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (labeled_statement "std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);" (call_expression "_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4)" identifier (argument_list "(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4)" ( identifier , (cast_expression "(uint)pcVar6" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (binary_expression "param_5 - (int)param_4" identifier - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);" (assignment_expression "psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" identifier = (cast_expression "(string *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_alize_xindex_004323b4 + -0x25a4)" ( (binary_expression "PTR_s_alize_xindex_004323b4 + -0x25a4" identifier + number_literal) )))) ;) (expression_statement "puVar7 = PTR_DAT_0043226c + 0x72f0;" (assignment_expression "puVar7 = PTR_DAT_0043226c + 0x72f0" identifier = (binary_expression "PTR_DAT_0043226c + 0x72f0" identifier + number_literal)) ;) (expression_statement "puVar12 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar12 = 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 "puVar15 = puVar12 + 0x178aa4;" (assignment_expression "puVar15 = puVar12 + 0x178aa4" identifier = (binary_expression "puVar12 + 0x178aa4" identifier + number_literal)) ;) (expression_statement "pcVar2 = *(char **)(psVar5 + 4);" (assignment_expression "pcVar2 = *(char **)(psVar5 + 4)" identifier = (pointer_expression "*(char **)(psVar5 + 4)" * (cast_expression "(char **)(psVar5 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(psVar5 + 4)" ( (binary_expression "psVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar8 = puVar7 + -*(int *)psVar5;" (assignment_expression "pcVar8 = puVar7 + -*(int *)psVar5" identifier = (binary_expression "puVar7 + -*(int *)psVar5" identifier + (unary_expression "-*(int *)psVar5" - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))))) ;) (if_statement "if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }" if (parenthesized_expression "(pcVar8 <= pcVar2)" ( (binary_expression "pcVar8 <= pcVar2" identifier <= identifier) )) (compound_statement "{\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }" { (expression_statement "uVar4 = (int)pcVar6 - (int)puVar7;" (assignment_expression "uVar4 = (int)pcVar6 - (int)puVar7" identifier = (binary_expression "(int)pcVar6 - (int)puVar7" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }" if (parenthesized_expression "((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7))" ( (binary_expression "(uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)" (call_expression "(uint)((int)pcVar2 - (int)pcVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar2 - (int)pcVar8)" ( (binary_expression "(int)pcVar2 - (int)pcVar8" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ))) <= (call_expression "(uint)((int)pcVar6 - (int)puVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar6 - (int)puVar7)" ( (binary_expression "(int)pcVar6 - (int)puVar7" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }" { (expression_statement "uVar4 = (int)pcVar2 - (int)pcVar8;" (assignment_expression "uVar4 = (int)pcVar2 - (int)pcVar8" identifier = (binary_expression "(int)pcVar2 - (int)pcVar8" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (labeled_statement "std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);" (call_expression "_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1)" identifier (argument_list "(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1)" ( identifier , (cast_expression "(uint)pcVar8" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (binary_expression "iVar16 - (int)pcVar1" identifier - (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar13 = *(code **)(puVar12 + 0x1718bc);" (assignment_expression "pcVar13 = *(code **)(puVar12 + 0x1718bc)" identifier = (pointer_expression "*(code **)(puVar12 + 0x1718bc)" * (cast_expression "(code **)(puVar12 + 0x1718bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x1718bc)" ( (binary_expression "puVar12 + 0x1718bc" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0x170c88) + -0x25a4)" ( (binary_expression "*(int *)(puVar12 + 0x170c88) + -0x25a4" (pointer_expression "*(int *)(puVar12 + 0x170c88)" * (cast_expression "(int *)(puVar12 + 0x170c88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x170c88)" ( (binary_expression "puVar12 + 0x170c88" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;" (assignment_expression "iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0" identifier = (binary_expression "*(int *)(puVar12 + 0x170b40) + 0x72f0" (pointer_expression "*(int *)(puVar12 + 0x170b40)" * (cast_expression "(int *)(puVar12 + 0x170b40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x170b40)" ( (binary_expression "puVar12 + 0x170b40" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*pcVar13)();" (call_expression "(*pcVar13)()" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "puVar3 = *(undefined4 **)(psVar5 + 4);" (assignment_expression "puVar3 = *(undefined4 **)(psVar5 + 4)" identifier = (pointer_expression "*(undefined4 **)(psVar5 + 4)" * (cast_expression "(undefined4 **)(psVar5 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(psVar5 + 4)" ( (binary_expression "psVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);" (assignment_expression "puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5)" identifier = (cast_expression "(undefined4 *)(iVar16 - *(int *)psVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar16 - *(int *)psVar5)" ( (binary_expression "iVar16 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (if_statement "if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }" if (parenthesized_expression "(puVar9 <= puVar3)" ( (binary_expression "puVar9 <= puVar3" identifier <= identifier) )) (compound_statement "{\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }" { (expression_statement "uVar4 = (int)pcVar8 - iVar16;" (assignment_expression "uVar4 = (int)pcVar8 - iVar16" identifier = (binary_expression "(int)pcVar8 - iVar16" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }" if (parenthesized_expression "((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16))" ( (binary_expression "(uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)" (call_expression "(uint)((int)puVar3 - (int)puVar9)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar3 - (int)puVar9)" ( (binary_expression "(int)puVar3 - (int)puVar9" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier)) ))) <= (call_expression "(uint)((int)pcVar8 - iVar16)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar8 - iVar16)" ( (binary_expression "(int)pcVar8 - iVar16" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }" { (expression_statement "uVar4 = (int)puVar3 - (int)puVar9;" (assignment_expression "uVar4 = (int)puVar3 - (int)puVar9" identifier = (binary_expression "(int)puVar3 - (int)puVar9" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (labeled_statement "std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);" (call_expression "_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15)" identifier (argument_list "(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15)" ( identifier , (cast_expression "(uint)puVar9" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (cast_expression "(uint)puVar15" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar14 = *(code **)(pcVar13 + 0x171844);" (assignment_expression "pcVar14 = *(code **)(pcVar13 + 0x171844)" identifier = (pointer_expression "*(code **)(pcVar13 + 0x171844)" * (cast_expression "(code **)(pcVar13 + 0x171844)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar13 + 0x171844)" ( (binary_expression "pcVar13 + 0x171844" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar13 + 0x170c10) + -0x25a4)" ( (binary_expression "*(int *)(pcVar13 + 0x170c10) + -0x25a4" (pointer_expression "*(int *)(pcVar13 + 0x170c10)" * (cast_expression "(int *)(pcVar13 + 0x170c10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar13 + 0x170c10)" ( (binary_expression "pcVar13 + 0x170c10" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;" (assignment_expression "iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0" identifier = (binary_expression "*(int *)(pcVar13 + 0x170ac8) + 0x72f0" (pointer_expression "*(int *)(pcVar13 + 0x170ac8)" * (cast_expression "(int *)(pcVar13 + 0x170ac8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar13 + 0x170ac8)" ( (binary_expression "pcVar13 + 0x170ac8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*pcVar14)();" (call_expression "(*pcVar14)()" (parenthesized_expression "(*pcVar14)" ( (pointer_expression "*pcVar14" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "uVar4 = *(uint *)(psVar5 + 4);" (assignment_expression "uVar4 = *(uint *)(psVar5 + 4)" identifier = (pointer_expression "*(uint *)(psVar5 + 4)" * (cast_expression "(uint *)(psVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar5 + 4)" ( (binary_expression "psVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar10 = iVar16 - *(int *)psVar5;" (assignment_expression "uVar10 = iVar16 - *(int *)psVar5" identifier = (binary_expression "iVar16 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (if_statement "if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }" if (parenthesized_expression "(uVar10 <= uVar4)" ( (binary_expression "uVar10 <= uVar4" identifier <= identifier) )) (compound_statement "{\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }" { (expression_statement "uVar11 = (int)puVar9 - iVar16;" (assignment_expression "uVar11 = (int)puVar9 - iVar16" identifier = (binary_expression "(int)puVar9 - iVar16" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }" if (parenthesized_expression "(uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16))" ( (binary_expression "uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)" (binary_expression "uVar4 - uVar10" identifier - identifier) <= (call_expression "(uint)((int)puVar9 - iVar16)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar9 - iVar16)" ( (binary_expression "(int)puVar9 - iVar16" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar11 = uVar4 - uVar10;\n    }" { (expression_statement "uVar11 = uVar4 - uVar10;" (assignment_expression "uVar11 = uVar4 - uVar10" identifier = (binary_expression "uVar4 - uVar10" identifier - identifier)) ;) })) (labeled_statement "std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);" (call_expression "_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1])" identifier (argument_list "(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1])" ( identifier , identifier , identifier , (cast_expression "(char *)*puVar3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier)) , (subscript_expression "puVar3[1]" identifier [ number_literal ]) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "(**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);" (call_expression "(**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4)" (parenthesized_expression "(**(code **)(pcVar14 + 0x1717d4))" ( (pointer_expression "**(code **)(pcVar14 + 0x1717d4)" * (pointer_expression "*(code **)(pcVar14 + 0x1717d4)" * (cast_expression "(code **)(pcVar14 + 0x1717d4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar14 + 0x1717d4)" ( (binary_expression "pcVar14 + 0x1717d4" identifier + number_literal) ))))) )) (argument_list "(*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4)" ( (binary_expression "*(int *)(pcVar14 + 0x170ba0) + -0x25a4" (pointer_expression "*(int *)(pcVar14 + 0x170ba0)" * (cast_expression "(int *)(pcVar14 + 0x170ba0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0x170ba0)" ( (binary_expression "pcVar14 + 0x170ba0" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar14 + 0x170a58) + 0x72f0" (pointer_expression "*(int *)(pcVar14 + 0x170a58)" * (cast_expression "(int *)(pcVar14 + 0x170a58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0x170a58)" ( (binary_expression "pcVar14 + 0x170a58" identifier + number_literal) )))) + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) })) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) , IDENT , IDENT , (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) 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 = (binary_expression IDENT + LIT)) ;) (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 (assignment_expression IDENT = (binary_expression IDENT + (unary_expression - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) })) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) , IDENT , IDENT , (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) 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 (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (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 (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) })) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) , IDENT , IDENT , (cast_expression ( (type_descriptor TYPE) ) 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 (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (subscript_expression IDENT [ LIT ]) ))) ;))) (return_statement return ;) })) (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 ( (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 ))) ;) (return_statement return ;) })))
(function_definition "void FUN_002c16b4(string *param_1,int param_2,int param_3,char *param_4,int param_5)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  undefined *puVar15;\n  int iVar16;\n  \n  iVar16 = 0x43a1d0;\n  pcVar1 = *(char **)(param_1 + 4);\n  pcVar6 = (char *)(param_2 - *(int *)param_1);\n  if (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar7 = PTR_DAT_0043226c + 0x72f0;\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  puVar15 = puVar12 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = puVar7 + -*(int *)psVar5;\n  if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);\n  iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar14)();\n  uVar4 = *(uint *)(psVar5 + 4);\n  uVar10 = iVar16 - *(int *)psVar5;\n  if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002c16b4(string *param_1,int param_2,int param_3,char *param_4,int param_5)" (identifier "FUN_002c16b4") (parameter_list "(string *param_1,int param_2,int param_3,char *param_4,int param_5)" (( "(") (parameter_declaration "string *param_1" (type_identifier "string") (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 "char *param_4" (primitive_type "char") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  uint uVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  undefined *puVar15;\n  int iVar16;\n  \n  iVar16 = 0x43a1d0;\n  pcVar1 = *(char **)(param_1 + 4);\n  pcVar6 = (char *)(param_2 - *(int *)param_1);\n  if (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar7 = PTR_DAT_0043226c + 0x72f0;\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  puVar15 = puVar12 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = puVar7 + -*(int *)psVar5;\n  if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);\n  iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar14)();\n  uVar4 = *(uint *)(psVar5 + 4);\n  uVar10 = iVar16 - *(int *)psVar5;\n  if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "string *psVar5;" (type_identifier "string") (pointer_declarator "*psVar5" (* "*") (identifier "psVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "undefined4 *puVar9;" (type_identifier "undefined4") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "undefined *puVar12;" (type_identifier "undefined") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "code *pcVar13;" (type_identifier "code") (pointer_declarator "*pcVar13" (* "*") (identifier "pcVar13")) (; ";")) (declaration "code *pcVar14;" (type_identifier "code") (pointer_declarator "*pcVar14" (* "*") (identifier "pcVar14")) (; ";")) (declaration "undefined *puVar15;" (type_identifier "undefined") (pointer_declarator "*puVar15" (* "*") (identifier "puVar15")) (; ";")) (declaration "int iVar16;" (primitive_type "int") (identifier "iVar16") (; ";")) (expression_statement "iVar16 = 0x43a1d0;" (assignment_expression "iVar16 = 0x43a1d0" (identifier "iVar16") (= "=") (number_literal "0x43a1d0")) (; ";")) (expression_statement "pcVar1 = *(char **)(param_1 + 4);" (assignment_expression "pcVar1 = *(char **)(param_1 + 4)" (identifier "pcVar1") (= "=") (pointer_expression "*(char **)(param_1 + 4)" (* "*") (cast_expression "(char **)(param_1 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "pcVar6 = (char *)(param_2 - *(int *)param_1);" (assignment_expression "pcVar6 = (char *)(param_2 - *(int *)param_1)" (identifier "pcVar6") (= "=") (cast_expression "(char *)(param_2 - *(int *)param_1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 - *(int *)param_1)" (( "(") (binary_expression "param_2 - *(int *)param_1" (identifier "param_2") (- "-") (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")))) () ")")))) (; ";")) (if_statement "if (pcVar6 <= pcVar1) {\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\n    return;\n  }" (if "if") (parenthesized_expression "(pcVar6 <= pcVar1)" (( "(") (binary_expression "pcVar6 <= pcVar1" (identifier "pcVar6") (<= "<=") (identifier "pcVar1")) () ")")) (compound_statement "{\n    uVar4 = param_3 - param_2;\n    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }\n    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);\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 ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {\n      uVar4 = (int)pcVar1 - (int)pcVar6;\n    }" (if "if") (parenthesized_expression "((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2))" (( "(") (binary_expression "(uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)" (call_expression "(uint)((int)pcVar1 - (int)pcVar6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)pcVar1 - (int)pcVar6)" (( "(") (binary_expression "(int)pcVar1 - (int)pcVar6" (cast_expression "(int)pcVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar1")) (- "-") (cast_expression "(int)pcVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar6"))) () ")"))) (<= "<=") (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 = (int)pcVar1 - (int)pcVar6;\n    }" ({ "{") (expression_statement "uVar4 = (int)pcVar1 - (int)pcVar6;" (assignment_expression "uVar4 = (int)pcVar1 - (int)pcVar6" (identifier "uVar4") (= "=") (binary_expression "(int)pcVar1 - (int)pcVar6" (cast_expression "(int)pcVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar1")) (- "-") (cast_expression "(int)pcVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar6")))) (; ";")) (} "}"))) (labeled_statement "std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);" (call_expression "_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4)" (identifier "_M_replace") (argument_list "(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4)" (( "(") (identifier "param_1") (, ",") (cast_expression "(uint)pcVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "pcVar6")) (, ",") (identifier "uVar4") (, ",") (identifier "param_4") (, ",") (binary_expression "param_5 - (int)param_4" (identifier "param_5") (- "-") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) () ")"))) (; ";")))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);" (assignment_expression "psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" (identifier "psVar5") (= "=") (cast_expression "(string *)(PTR_s_alize_xindex_004323b4 + -0x25a4)" (( "(") (type_descriptor "string *" (type_identifier "string") (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 "puVar7 = PTR_DAT_0043226c + 0x72f0;" (assignment_expression "puVar7 = PTR_DAT_0043226c + 0x72f0" (identifier "puVar7") (= "=") (binary_expression "PTR_DAT_0043226c + 0x72f0" (identifier "PTR_DAT_0043226c") (+ "+") (number_literal "0x72f0"))) (; ";")) (expression_statement "puVar12 = PTR___throw_out_of_range_fmt_00432fe8;" (assignment_expression "puVar12 = PTR___throw_out_of_range_fmt_00432fe8" (identifier "puVar12") (= "=") (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 "puVar15 = puVar12 + 0x178aa4;" (assignment_expression "puVar15 = puVar12 + 0x178aa4" (identifier "puVar15") (= "=") (binary_expression "puVar12 + 0x178aa4" (identifier "puVar12") (+ "+") (number_literal "0x178aa4"))) (; ";")) (expression_statement "pcVar2 = *(char **)(psVar5 + 4);" (assignment_expression "pcVar2 = *(char **)(psVar5 + 4)" (identifier "pcVar2") (= "=") (pointer_expression "*(char **)(psVar5 + 4)" (* "*") (cast_expression "(char **)(psVar5 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(psVar5 + 4)" (( "(") (binary_expression "psVar5 + 4" (identifier "psVar5") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "pcVar8 = puVar7 + -*(int *)psVar5;" (assignment_expression "pcVar8 = puVar7 + -*(int *)psVar5" (identifier "pcVar8") (= "=") (binary_expression "puVar7 + -*(int *)psVar5" (identifier "puVar7") (+ "+") (unary_expression "-*(int *)psVar5" (- "-") (pointer_expression "*(int *)psVar5" (* "*") (cast_expression "(int *)psVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "psVar5")))))) (; ";")) (if_statement "if (pcVar8 <= pcVar2) {\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(pcVar8 <= pcVar2)" (( "(") (binary_expression "pcVar8 <= pcVar2" (identifier "pcVar8") (<= "<=") (identifier "pcVar2")) () ")")) (compound_statement "{\n    uVar4 = (int)pcVar6 - (int)puVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);\n    return;\n  }" ({ "{") (expression_statement "uVar4 = (int)pcVar6 - (int)puVar7;" (assignment_expression "uVar4 = (int)pcVar6 - (int)puVar7" (identifier "uVar4") (= "=") (binary_expression "(int)pcVar6 - (int)puVar7" (cast_expression "(int)pcVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar6")) (- "-") (cast_expression "(int)puVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar7")))) (; ";")) (if_statement "if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }" (if "if") (parenthesized_expression "((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7))" (( "(") (binary_expression "(uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)" (call_expression "(uint)((int)pcVar2 - (int)pcVar8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)pcVar2 - (int)pcVar8)" (( "(") (binary_expression "(int)pcVar2 - (int)pcVar8" (cast_expression "(int)pcVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar2")) (- "-") (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8"))) () ")"))) (<= "<=") (call_expression "(uint)((int)pcVar6 - (int)puVar7)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)pcVar6 - (int)puVar7)" (( "(") (binary_expression "(int)pcVar6 - (int)puVar7" (cast_expression "(int)pcVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar6")) (- "-") (cast_expression "(int)puVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar7"))) () ")")))) () ")")) (compound_statement "{\n      uVar4 = (int)pcVar2 - (int)pcVar8;\n    }" ({ "{") (expression_statement "uVar4 = (int)pcVar2 - (int)pcVar8;" (assignment_expression "uVar4 = (int)pcVar2 - (int)pcVar8" (identifier "uVar4") (= "=") (binary_expression "(int)pcVar2 - (int)pcVar8" (cast_expression "(int)pcVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar2")) (- "-") (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8")))) (; ";")) (} "}"))) (labeled_statement "std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);" (call_expression "_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1)" (identifier "_M_replace") (argument_list "(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1)" (( "(") (identifier "psVar5") (, ",") (cast_expression "(uint)pcVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "pcVar8")) (, ",") (identifier "uVar4") (, ",") (identifier "pcVar1") (, ",") (binary_expression "iVar16 - (int)pcVar1" (identifier "iVar16") (- "-") (cast_expression "(int)pcVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar1"))) () ")"))) (; ";")))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar13 = *(code **)(puVar12 + 0x1718bc);" (assignment_expression "pcVar13 = *(code **)(puVar12 + 0x1718bc)" (identifier "pcVar13") (= "=") (pointer_expression "*(code **)(puVar12 + 0x1718bc)" (* "*") (cast_expression "(code **)(puVar12 + 0x1718bc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar12 + 0x1718bc)" (( "(") (binary_expression "puVar12 + 0x1718bc" (identifier "puVar12") (+ "+") (number_literal "0x1718bc")) () ")"))))) (; ";")) (expression_statement "psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4)" (identifier "psVar5") (= "=") (cast_expression "(string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4)" (( "(") (type_descriptor "string *" (type_identifier "string") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar12 + 0x170c88) + -0x25a4)" (( "(") (binary_expression "*(int *)(puVar12 + 0x170c88) + -0x25a4" (pointer_expression "*(int *)(puVar12 + 0x170c88)" (* "*") (cast_expression "(int *)(puVar12 + 0x170c88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + 0x170c88)" (( "(") (binary_expression "puVar12 + 0x170c88" (identifier "puVar12") (+ "+") (number_literal "0x170c88")) () ")")))) (+ "+") (number_literal "-0x25a4")) () ")")))) (; ";")) (expression_statement "iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;" (assignment_expression "iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0" (identifier "iVar16") (= "=") (binary_expression "*(int *)(puVar12 + 0x170b40) + 0x72f0" (pointer_expression "*(int *)(puVar12 + 0x170b40)" (* "*") (cast_expression "(int *)(puVar12 + 0x170b40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + 0x170b40)" (( "(") (binary_expression "puVar12 + 0x170b40" (identifier "puVar12") (+ "+") (number_literal "0x170b40")) () ")")))) (+ "+") (number_literal "0x72f0"))) (; ";")) (expression_statement "(*pcVar13)();" (call_expression "(*pcVar13)()" (parenthesized_expression "(*pcVar13)" (( "(") (pointer_expression "*pcVar13" (* "*") (identifier "pcVar13")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar3 = *(undefined4 **)(psVar5 + 4);" (assignment_expression "puVar3 = *(undefined4 **)(psVar5 + 4)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)(psVar5 + 4)" (* "*") (cast_expression "(undefined4 **)(psVar5 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(psVar5 + 4)" (( "(") (binary_expression "psVar5 + 4" (identifier "psVar5") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);" (assignment_expression "puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5)" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)(iVar16 - *(int *)psVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar16 - *(int *)psVar5)" (( "(") (binary_expression "iVar16 - *(int *)psVar5" (identifier "iVar16") (- "-") (pointer_expression "*(int *)psVar5" (* "*") (cast_expression "(int *)psVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "psVar5")))) () ")")))) (; ";")) (if_statement "if (puVar9 <= puVar3) {\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }" (if "if") (parenthesized_expression "(puVar9 <= puVar3)" (( "(") (binary_expression "puVar9 <= puVar3" (identifier "puVar9") (<= "<=") (identifier "puVar3")) () ")")) (compound_statement "{\n    uVar4 = (int)pcVar8 - iVar16;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);\n    return;\n  }" ({ "{") (expression_statement "uVar4 = (int)pcVar8 - iVar16;" (assignment_expression "uVar4 = (int)pcVar8 - iVar16" (identifier "uVar4") (= "=") (binary_expression "(int)pcVar8 - iVar16" (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8")) (- "-") (identifier "iVar16"))) (; ";")) (if_statement "if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }" (if "if") (parenthesized_expression "((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16))" (( "(") (binary_expression "(uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)" (call_expression "(uint)((int)puVar3 - (int)puVar9)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)puVar3 - (int)puVar9)" (( "(") (binary_expression "(int)puVar3 - (int)puVar9" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (- "-") (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9"))) () ")"))) (<= "<=") (call_expression "(uint)((int)pcVar8 - iVar16)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)pcVar8 - iVar16)" (( "(") (binary_expression "(int)pcVar8 - iVar16" (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8")) (- "-") (identifier "iVar16")) () ")")))) () ")")) (compound_statement "{\n      uVar4 = (int)puVar3 - (int)puVar9;\n    }" ({ "{") (expression_statement "uVar4 = (int)puVar3 - (int)puVar9;" (assignment_expression "uVar4 = (int)puVar3 - (int)puVar9" (identifier "uVar4") (= "=") (binary_expression "(int)puVar3 - (int)puVar9" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (- "-") (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")))) (; ";")) (} "}"))) (labeled_statement "std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);" (call_expression "_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15)" (identifier "_M_replace") (argument_list "(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15)" (( "(") (identifier "psVar5") (, ",") (cast_expression "(uint)puVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar9")) (, ",") (identifier "uVar4") (, ",") (identifier "pcVar2") (, ",") (cast_expression "(uint)puVar15" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar15")) () ")"))) (; ";")))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar14 = *(code **)(pcVar13 + 0x171844);" (assignment_expression "pcVar14 = *(code **)(pcVar13 + 0x171844)" (identifier "pcVar14") (= "=") (pointer_expression "*(code **)(pcVar13 + 0x171844)" (* "*") (cast_expression "(code **)(pcVar13 + 0x171844)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar13 + 0x171844)" (( "(") (binary_expression "pcVar13 + 0x171844" (identifier "pcVar13") (+ "+") (number_literal "0x171844")) () ")"))))) (; ";")) (expression_statement "psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4)" (identifier "psVar5") (= "=") (cast_expression "(string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4)" (( "(") (type_descriptor "string *" (type_identifier "string") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(pcVar13 + 0x170c10) + -0x25a4)" (( "(") (binary_expression "*(int *)(pcVar13 + 0x170c10) + -0x25a4" (pointer_expression "*(int *)(pcVar13 + 0x170c10)" (* "*") (cast_expression "(int *)(pcVar13 + 0x170c10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar13 + 0x170c10)" (( "(") (binary_expression "pcVar13 + 0x170c10" (identifier "pcVar13") (+ "+") (number_literal "0x170c10")) () ")")))) (+ "+") (number_literal "-0x25a4")) () ")")))) (; ";")) (expression_statement "iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;" (assignment_expression "iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0" (identifier "iVar16") (= "=") (binary_expression "*(int *)(pcVar13 + 0x170ac8) + 0x72f0" (pointer_expression "*(int *)(pcVar13 + 0x170ac8)" (* "*") (cast_expression "(int *)(pcVar13 + 0x170ac8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar13 + 0x170ac8)" (( "(") (binary_expression "pcVar13 + 0x170ac8" (identifier "pcVar13") (+ "+") (number_literal "0x170ac8")) () ")")))) (+ "+") (number_literal "0x72f0"))) (; ";")) (expression_statement "(*pcVar14)();" (call_expression "(*pcVar14)()" (parenthesized_expression "(*pcVar14)" (( "(") (pointer_expression "*pcVar14" (* "*") (identifier "pcVar14")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar4 = *(uint *)(psVar5 + 4);" (assignment_expression "uVar4 = *(uint *)(psVar5 + 4)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(psVar5 + 4)" (* "*") (cast_expression "(uint *)(psVar5 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(psVar5 + 4)" (( "(") (binary_expression "psVar5 + 4" (identifier "psVar5") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar10 = iVar16 - *(int *)psVar5;" (assignment_expression "uVar10 = iVar16 - *(int *)psVar5" (identifier "uVar10") (= "=") (binary_expression "iVar16 - *(int *)psVar5" (identifier "iVar16") (- "-") (pointer_expression "*(int *)psVar5" (* "*") (cast_expression "(int *)psVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "psVar5"))))) (; ";")) (if_statement "if (uVar10 <= uVar4) {\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }" (if "if") (parenthesized_expression "(uVar10 <= uVar4)" (( "(") (binary_expression "uVar10 <= uVar4" (identifier "uVar10") (<= "<=") (identifier "uVar4")) () ")")) (compound_statement "{\n    uVar11 = (int)puVar9 - iVar16;\n    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }\n    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);\n    return;\n  }" ({ "{") (expression_statement "uVar11 = (int)puVar9 - iVar16;" (assignment_expression "uVar11 = (int)puVar9 - iVar16" (identifier "uVar11") (= "=") (binary_expression "(int)puVar9 - iVar16" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (- "-") (identifier "iVar16"))) (; ";")) (if_statement "if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {\n      uVar11 = uVar4 - uVar10;\n    }" (if "if") (parenthesized_expression "(uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16))" (( "(") (binary_expression "uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)" (binary_expression "uVar4 - uVar10" (identifier "uVar4") (- "-") (identifier "uVar10")) (<= "<=") (call_expression "(uint)((int)puVar9 - iVar16)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)puVar9 - iVar16)" (( "(") (binary_expression "(int)puVar9 - iVar16" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (- "-") (identifier "iVar16")) () ")")))) () ")")) (compound_statement "{\n      uVar11 = uVar4 - uVar10;\n    }" ({ "{") (expression_statement "uVar11 = uVar4 - uVar10;" (assignment_expression "uVar11 = uVar4 - uVar10" (identifier "uVar11") (= "=") (binary_expression "uVar4 - uVar10" (identifier "uVar4") (- "-") (identifier "uVar10"))) (; ";")) (} "}"))) (labeled_statement "std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);" (call_expression "_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1])" (identifier "_M_replace") (argument_list "(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1])" (( "(") (identifier "psVar5") (, ",") (identifier "uVar10") (, ",") (identifier "uVar11") (, ",") (cast_expression "(char *)*puVar3" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (, ",") (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4);" (call_expression "(**(code **)(pcVar14 + 0x1717d4))\n            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4)" (parenthesized_expression "(**(code **)(pcVar14 + 0x1717d4))" (( "(") (pointer_expression "**(code **)(pcVar14 + 0x1717d4)" (* "*") (pointer_expression "*(code **)(pcVar14 + 0x1717d4)" (* "*") (cast_expression "(code **)(pcVar14 + 0x1717d4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar14 + 0x1717d4)" (( "(") (binary_expression "pcVar14 + 0x1717d4" (identifier "pcVar14") (+ "+") (number_literal "0x1717d4")) () ")"))))) () ")")) (argument_list "(*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,\n             uVar4)" (( "(") (binary_expression "*(int *)(pcVar14 + 0x170ba0) + -0x25a4" (pointer_expression "*(int *)(pcVar14 + 0x170ba0)" (* "*") (cast_expression "(int *)(pcVar14 + 0x170ba0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar14 + 0x170ba0)" (( "(") (binary_expression "pcVar14 + 0x170ba0" (identifier "pcVar14") (+ "+") (number_literal "0x170ba0")) () ")")))) (+ "+") (number_literal "-0x25a4")) (, ",") (binary_expression "*(int *)(pcVar14 + 0x170a58) + 0x72f0" (pointer_expression "*(int *)(pcVar14 + 0x170a58)" (* "*") (cast_expression "(int *)(pcVar14 + 0x170a58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar14 + 0x170a58)" (( "(") (binary_expression "pcVar14 + 0x170a58" (identifier "pcVar14") (+ "+") (number_literal "0x170a58")) () ")")))) (+ "+") (number_literal "0x72f0")) (, ",") (identifier "uVar10") (, ",") (identifier "uVar4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Struct "Output_section_data": ignoring overlapping field "output_section_" */
/* WARNING: Struct "Output_section": ignoring overlapping field "name_" */
/* WARNING: Struct "Output_section_headers": ignoring overlapping field "layout_" */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Struct "Output_reduced_debug_abbrev_section": ignoring overlapping field "data_" */
/* WARNING: Struct "Output_reduced_debug_info_section": ignoring overlapping field "data_" */
/* std::string::replace(__normal_iterator<char const*, std::string >, __normal_iterator<char const*,
   std::string >, char*, char*) */

void __thiscall std::type_1::function_1(type_1 *var_1,int var_2,int var_5,char *param_4,int var_7)

{
  char *var_4;
  char *var_14;
  type_2 *var_17;
  type_3 var_20;
  type_1 *var_11;
  char *var_3;
  type_4 *var_12;
  char *var_13;
  type_2 *var_16;
  type_3 var_19;
  type_3 uVar11;
  type_4 *var_10;
  type_5 *var_18;
  type_5 *var_21;
  type_4 *puVar15;
  int var_15;
  
  var_15 = 0x43a1d0;
  var_4 = *(char **)(var_1 + 4);
  var_3 = (char *)(var_2 - *(int *)var_1);
  if (var_3 <= var_4) {
    var_20 = var_5 - var_2;
    if ((type_3)((int)var_4 - (int)var_3) <= (type_3)(var_5 - var_2)) {
      var_20 = (int)var_4 - (int)var_3;
    }
    var_6(var_1,(type_3)var_3,var_20,param_4,var_7 - (int)param_4);
    return;
  }
  var_11 = (type_1 *)(var_8 + -0x25a4);
  var_12 = var_9 + 0x72f0;
  var_10 = PTR___throw_out_of_range_fmt_00432fe8;
  (*(type_5 *)PTR___throw_out_of_range_fmt_00432fe8)();
  puVar15 = var_10 + 0x178aa4;
  var_14 = *(char **)(var_11 + 4);
  var_13 = var_12 + -*(int *)var_11;
  if (var_13 <= var_14) {
    var_20 = (int)var_3 - (int)var_12;
    if ((type_3)((int)var_14 - (int)var_13) <= (type_3)((int)var_3 - (int)var_12)) {
      var_20 = (int)var_14 - (int)var_13;
    }
    var_6(var_11,(type_3)var_13,var_20,var_4,var_15 - (int)var_4);
    return;
  }
  var_18 = *(type_5 **)(var_10 + 0x1718bc);
  var_11 = (type_1 *)(*(int *)(var_10 + 0x170c88) + -0x25a4);
  var_15 = *(int *)(var_10 + 0x170b40) + 0x72f0;
  (*var_18)();
  var_17 = *(type_2 **)(var_11 + 4);
  var_16 = (type_2 *)(var_15 - *(int *)var_11);
  if (var_16 <= var_17) {
    var_20 = (int)var_13 - var_15;
    if ((type_3)((int)var_17 - (int)var_16) <= (type_3)((int)var_13 - var_15)) {
      var_20 = (int)var_17 - (int)var_16;
    }
    var_6(var_11,(type_3)var_16,var_20,var_14,(type_3)puVar15);
    return;
  }
  var_21 = *(type_5 **)(var_18 + 0x171844);
  var_11 = (type_1 *)(*(int *)(var_18 + 0x170c10) + -0x25a4);
  var_15 = *(int *)(var_18 + 0x170ac8) + 0x72f0;
  (*var_21)();
  var_20 = *(type_3 *)(var_11 + 4);
  var_19 = var_15 - *(int *)var_11;
  if (var_19 <= var_20) {
    uVar11 = (int)var_16 - var_15;
    if (var_20 - var_19 <= (type_3)((int)var_16 - var_15)) {
      uVar11 = var_20 - var_19;
    }
    var_6(var_11,var_19,uVar11,(char *)*var_17,var_17[1]);
    return;
  }
  (**(type_5 **)(var_21 + 0x1717d4))
            (*(int *)(var_21 + 0x170ba0) + -0x25a4,*(int *)(var_21 + 0x170a58) + 0x72f0,var_19,
             var_20);
  return;
}


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

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

{
  char *pcVar1;
  char *pcVar2;
  undefined4 *puVar3;
  uint uVar4;
  string *psVar5;
  char *pcVar6;
  undefined *puVar7;
  char *pcVar8;
  undefined4 *puVar9;
  uint uVar10;
  uint uVar11;
  undefined *puVar12;
  code *pcVar13;
  code *pcVar14;
  undefined *puVar15;
  int iVar16;
  
  iVar16 = 0x43a1d0;
  pcVar1 = *(char **)(param_1 + 4);
  pcVar6 = (char *)(param_2 - *(int *)param_1);
  if (pcVar6 <= pcVar1) {
    uVar4 = param_3 - param_2;
    if ((uint)((int)pcVar1 - (int)pcVar6) <= (uint)(param_3 - param_2)) {
      uVar4 = (int)pcVar1 - (int)pcVar6;
    }
    std::string::_M_replace(param_1,(uint)pcVar6,uVar4,param_4,param_5 - (int)param_4);
    return;
  }
  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);
  puVar7 = PTR_DAT_0043226c + 0x72f0;
  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();
  puVar15 = puVar12 + 0x178aa4;
  pcVar2 = *(char **)(psVar5 + 4);
  pcVar8 = puVar7 + -*(int *)psVar5;
  if (pcVar8 <= pcVar2) {
    uVar4 = (int)pcVar6 - (int)puVar7;
    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - (int)puVar7)) {
      uVar4 = (int)pcVar2 - (int)pcVar8;
    }
    std::string::_M_replace(psVar5,(uint)pcVar8,uVar4,pcVar1,iVar16 - (int)pcVar1);
    return;
  }
  pcVar13 = *(code **)(puVar12 + 0x1718bc);
  psVar5 = (string *)(*(int *)(puVar12 + 0x170c88) + -0x25a4);
  iVar16 = *(int *)(puVar12 + 0x170b40) + 0x72f0;
  (*pcVar13)();
  puVar3 = *(undefined4 **)(psVar5 + 4);
  puVar9 = (undefined4 *)(iVar16 - *(int *)psVar5);
  if (puVar9 <= puVar3) {
    uVar4 = (int)pcVar8 - iVar16;
    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar16)) {
      uVar4 = (int)puVar3 - (int)puVar9;
    }
    std::string::_M_replace(psVar5,(uint)puVar9,uVar4,pcVar2,(uint)puVar15);
    return;
  }
  pcVar14 = *(code **)(pcVar13 + 0x171844);
  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);
  iVar16 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;
  (*pcVar14)();
  uVar4 = *(uint *)(psVar5 + 4);
  uVar10 = iVar16 - *(int *)psVar5;
  if (uVar10 <= uVar4) {
    uVar11 = (int)puVar9 - iVar16;
    if (uVar4 - uVar10 <= (uint)((int)puVar9 - iVar16)) {
      uVar11 = uVar4 - uVar10;
    }
    std::string::_M_replace(psVar5,uVar10,uVar11,(char *)*puVar3,puVar3[1]);
    return;
  }
  (**(code **)(pcVar14 + 0x1717d4))
            (*(int *)(pcVar14 + 0x170ba0) + -0x25a4,*(int *)(pcVar14 + 0x170a58) + 0x72f0,uVar10,
             uVar4);
  return;
}

