
/* std::string::replace(unsigned int, unsigned int, char const*) */

void __thiscall std::string::replace(string *this,uint param_1,uint param_2,char *param_3)

{
  uint uVar1;
  char *pcVar2;
  undefined4 *puVar3;
  uint uVar4;
  string *psVar5;
  char *pcVar6;
  int iVar7;
  char *pcVar8;
  undefined4 *puVar9;
  uint uVar10;
  char *pcVar11;
  undefined *puVar12;
  code *pcVar13;
  code *pcVar14;
  code *pcVar15;
  uint in_stack_ffffffa8;
  
  uVar1 = (*(code *)PTR_strlen_0043677c)(param_3);
  if (param_1 <= *(uint *)(this + 4)) {
    uVar4 = *(uint *)(this + 4) - param_1;
    if (uVar4 <= param_2) {
      param_2 = uVar4;
    }
    _M_replace(this,param_1,param_2,param_3,uVar1);
    return;
  }
  pcVar6 = PTR_s__0043226c + 0x72f0;
  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);
  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();
  uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_1);
  pcVar11 = *(char **)(psVar5 + 4);
  if (pcVar6 <= pcVar11) {
    _M_replace(psVar5,(uint)pcVar6,0,(char *)param_1,uVar1);
    return;
  }
  pcVar13 = *(code **)(puVar12 + 0x171a3c);
  iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;
  psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);
  (*pcVar13)();
  pcVar15 = pcVar13 + 0x178b88;
  pcVar2 = *(char **)(psVar5 + 4);
  pcVar8 = (char *)(iVar7 - *(int *)psVar5);
  if (pcVar8 <= pcVar2) {
    uVar1 = (int)pcVar6 - iVar7;
    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {
      uVar1 = (int)pcVar2 - (int)pcVar8;
    }
    _M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);
    return;
  }
  pcVar14 = *(code **)(pcVar13 + 0x1719a0);
  psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);
  iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;
  (*pcVar14)();
  pcVar13 = pcVar14 + 0x178b1c;
  pcVar6 = *(char **)(psVar5 + 4);
  pcVar11 = (char *)(iVar7 - *(int *)psVar5);
  if (pcVar11 <= pcVar6) {
    uVar1 = (int)pcVar8 - iVar7;
    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {
      uVar1 = (int)pcVar6 - (int)pcVar11;
    }
    _M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);
    return;
  }
  pcVar15 = *(code **)(pcVar14 + 0x171934);
  psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);
  iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;
  (*pcVar15)();
  pcVar14 = pcVar15 + 0x178aa4;
  pcVar2 = *(char **)(psVar5 + 4);
  pcVar8 = (char *)(iVar7 - *(int *)psVar5);
  if (pcVar8 <= pcVar2) {
    uVar1 = (int)pcVar11 - iVar7;
    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {
      uVar1 = (int)pcVar2 - (int)pcVar8;
    }
    _M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);
    return;
  }
  pcVar13 = *(code **)(pcVar15 + 0x1718bc);
  psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);
  iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;
  (*pcVar13)();
  puVar3 = *(undefined4 **)(psVar5 + 4);
  puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5);
  if (puVar9 <= puVar3) {
    uVar1 = (int)pcVar8 - iVar7;
    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {
      uVar1 = (int)puVar3 - (int)puVar9;
    }
    _M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);
    return;
  }
  pcVar15 = *(code **)(pcVar13 + 0x171844);
  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);
  iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;
  (*pcVar15)();
  uVar1 = *(uint *)(psVar5 + 4);
  uVar4 = iVar7 - *(int *)psVar5;
  if (uVar4 <= uVar1) {
    uVar10 = (int)puVar9 - iVar7;
    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {
      uVar10 = uVar1 - uVar4;
    }
    _M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);
    return;
  }
  (**(code **)(pcVar15 + 0x1717d4))
            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,
             uVar1);
  return;
}



void FUN_002c14f4(string *param_1,char *param_2,uint param_3,char *param_4)

{
  uint uVar1;
  char *pcVar2;
  undefined4 *puVar3;
  uint uVar4;
  string *psVar5;
  char *pcVar6;
  int iVar7;
  char *pcVar8;
  undefined4 *puVar9;
  uint uVar10;
  char *pcVar11;
  undefined *puVar12;
  code *pcVar13;
  code *pcVar14;
  code *pcVar15;
  uint in_stack_ffffffa8;
  
  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);
  if (param_2 <= *(char **)(param_1 + 4)) {
    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;
    if (uVar4 <= param_3) {
      param_3 = uVar4;
    }
    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);
    return;
  }
  pcVar6 = PTR_DAT_0043226c + 0x72f0;
  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);
  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();
  uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2);
  pcVar11 = *(char **)(psVar5 + 4);
  if (pcVar6 <= pcVar11) {
    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);
    return;
  }
  pcVar13 = *(code **)(puVar12 + 0x171a3c);
  iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;
  psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);
  (*pcVar13)();
  pcVar15 = pcVar13 + 0x178b88;
  pcVar2 = *(char **)(psVar5 + 4);
  pcVar8 = (char *)(iVar7 - *(int *)psVar5);
  if (pcVar8 <= pcVar2) {
    uVar1 = (int)pcVar6 - iVar7;
    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {
      uVar1 = (int)pcVar2 - (int)pcVar8;
    }
    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);
    return;
  }
  pcVar14 = *(code **)(pcVar13 + 0x1719a0);
  psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);
  iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;
  (*pcVar14)();
  pcVar13 = pcVar14 + 0x178b1c;
  pcVar6 = *(char **)(psVar5 + 4);
  pcVar11 = (char *)(iVar7 - *(int *)psVar5);
  if (pcVar11 <= pcVar6) {
    uVar1 = (int)pcVar8 - iVar7;
    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {
      uVar1 = (int)pcVar6 - (int)pcVar11;
    }
    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);
    return;
  }
  pcVar15 = *(code **)(pcVar14 + 0x171934);
  psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);
  iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;
  (*pcVar15)();
  pcVar14 = pcVar15 + 0x178aa4;
  pcVar2 = *(char **)(psVar5 + 4);
  pcVar8 = (char *)(iVar7 - *(int *)psVar5);
  if (pcVar8 <= pcVar2) {
    uVar1 = (int)pcVar11 - iVar7;
    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {
      uVar1 = (int)pcVar2 - (int)pcVar8;
    }
    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);
    return;
  }
  pcVar13 = *(code **)(pcVar15 + 0x1718bc);
  psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);
  iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;
  (*pcVar13)();
  puVar3 = *(undefined4 **)(psVar5 + 4);
  puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5);
  if (puVar9 <= puVar3) {
    uVar1 = (int)pcVar8 - iVar7;
    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {
      uVar1 = (int)puVar3 - (int)puVar9;
    }
    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);
    return;
  }
  pcVar15 = *(code **)(pcVar13 + 0x171844);
  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);
  iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;
  (*pcVar15)();
  uVar1 = *(uint *)(psVar5 + 4);
  uVar4 = iVar7 - *(int *)psVar5;
  if (uVar4 <= uVar1) {
    uVar10 = (int)puVar9 - iVar7;
    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {
      uVar10 = uVar1 - uVar4;
    }
    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);
    return;
  }
  (**(code **)(pcVar15 + 0x1717d4))
            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,
             uVar1);
  return;
}


lui gp,0x18
addiu gp,gp,-0x7324
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x3a54(gp)
sw s0,0x24(sp)
or s0,a0,zero
sw gp,0x18(sp)
or a0,a3,zero
sw s3,0x30(sp)
or s3,a3,zero
sw s2,0x2c(sp)
or s2,a1,zero
sw s1,0x28(sp)
sw ra,0x34(sp)
jalr t9
_or s1,a2,zero
lw v1,0x4(s0)
sltu a0,v1,s2
bne a0,zero,0x002c158c
_lw gp,0x18(sp)
subu v1,v1,s2
lw t9,-0x7794(gp)
or a3,s3,zero
sw v0,0x10(sp)
sltu a2,s1,v1
movz s1,v1,a2
or a1,s2,zero
or a0,s0,zero
bal 0x002c0e34
_or a2,s1,zero
lw ra,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x38
lw a1,-0x7f64(gp)
or a3,v1,zero
lw a0,-0x7e1c(gp)
or a2,s2,zero
lw t9,-0x71e8(gp)
addiu a1,a1,0x72f0
jalr t9
_addiu a0,a0,-0x25a4
(translation_unit "void FUN_002c14f4(string *param_1,char *param_2,uint param_3,char *param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  int iVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  code *pcVar15;\n  uint in_stack_ffffffa8;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  if (param_2 <= *(char **)(param_1 + 4)) {\n    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;\n    if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }\n    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);\n    return;\n  }\n  pcVar6 = PTR_DAT_0043226c + 0x72f0;\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2);\n  pcVar11 = *(char **)(psVar5 + 4);\n  if (pcVar6 <= pcVar11) {\n    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x171a3c);\n  iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);\n  (*pcVar13)();\n  pcVar15 = pcVar13 + 0x178b88;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x1719a0);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;\n  (*pcVar14)();\n  pcVar13 = pcVar14 + 0x178b1c;\n  pcVar6 = *(char **)(psVar5 + 4);\n  pcVar11 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar14 + 0x171934);\n  psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);\n  iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;\n  (*pcVar15)();\n  pcVar14 = pcVar15 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }\n  pcVar13 = *(code **)(pcVar15 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);\n  iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar15)();\n  uVar1 = *(uint *)(psVar5 + 4);\n  uVar4 = iVar7 - *(int *)psVar5;\n  if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);\n  return;\n}\n\n" (function_definition "void FUN_002c14f4(string *param_1,char *param_2,uint param_3,char *param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  int iVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  code *pcVar15;\n  uint in_stack_ffffffa8;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  if (param_2 <= *(char **)(param_1 + 4)) {\n    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;\n    if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }\n    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);\n    return;\n  }\n  pcVar6 = PTR_DAT_0043226c + 0x72f0;\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2);\n  pcVar11 = *(char **)(psVar5 + 4);\n  if (pcVar6 <= pcVar11) {\n    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x171a3c);\n  iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);\n  (*pcVar13)();\n  pcVar15 = pcVar13 + 0x178b88;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x1719a0);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;\n  (*pcVar14)();\n  pcVar13 = pcVar14 + 0x178b1c;\n  pcVar6 = *(char **)(psVar5 + 4);\n  pcVar11 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar14 + 0x171934);\n  psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);\n  iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;\n  (*pcVar15)();\n  pcVar14 = pcVar15 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }\n  pcVar13 = *(code **)(pcVar15 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);\n  iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar15)();\n  uVar1 = *(uint *)(psVar5 + 4);\n  uVar4 = iVar7 - *(int *)psVar5;\n  if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_002c14f4(string *param_1,char *param_2,uint param_3,char *param_4)" identifier (parameter_list "(string *param_1,char *param_2,uint param_3,char *param_4)" ( (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  int iVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  code *pcVar15;\n  uint in_stack_ffffffa8;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  if (param_2 <= *(char **)(param_1 + 4)) {\n    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;\n    if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }\n    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);\n    return;\n  }\n  pcVar6 = PTR_DAT_0043226c + 0x72f0;\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2);\n  pcVar11 = *(char **)(psVar5 + 4);\n  if (pcVar6 <= pcVar11) {\n    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x171a3c);\n  iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);\n  (*pcVar13)();\n  pcVar15 = pcVar13 + 0x178b88;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x1719a0);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;\n  (*pcVar14)();\n  pcVar13 = pcVar14 + 0x178b1c;\n  pcVar6 = *(char **)(psVar5 + 4);\n  pcVar11 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar14 + 0x171934);\n  psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);\n  iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;\n  (*pcVar15)();\n  pcVar14 = pcVar15 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }\n  pcVar13 = *(code **)(pcVar15 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);\n  iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar15)();\n  uVar1 = *(uint *)(psVar5 + 4);\n  uVar4 = iVar7 - *(int *)psVar5;\n  if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);\n  return;\n}" { (declaration "uint uVar1;" type_identifier 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 "int iVar7;" primitive_type 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 "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * 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 "code *pcVar15;" type_identifier (pointer_declarator "*pcVar15" * identifier) ;) (declaration "uint in_stack_ffffffa8;" type_identifier identifier ;) (expression_statement "uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_0043677c)(param_4)" identifier = (call_expression "(*(code *)PTR_strlen_0043677c)(param_4)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" ( (pointer_expression "*(code *)PTR_strlen_0043677c" * (cast_expression "(code *)PTR_strlen_0043677c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4)" ( identifier )))) ;) (if_statement "if (param_2 <= *(char **)(param_1 + 4)) {\n    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;\n    if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }\n    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);\n    return;\n  }" if (parenthesized_expression "(param_2 <= *(char **)(param_1 + 4))" ( (binary_expression "param_2 <= *(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) ))))) )) (compound_statement "{\n    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;\n    if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }\n    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);\n    return;\n  }" { (expression_statement "uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;" (assignment_expression "uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2" identifier = (binary_expression "(int)*(char **)(param_1 + 4) - (int)param_2" (cast_expression "(int)*(char **)(param_1 + 4)" ( (type_descriptor "int" primitive_type) ) (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) ))))) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }" if (parenthesized_expression "(uVar4 <= param_3)" ( (binary_expression "uVar4 <= param_3" identifier <= identifier) )) (compound_statement "{\n      param_3 = uVar4;\n    }" { (expression_statement "param_3 = uVar4;" (assignment_expression "param_3 = uVar4" identifier = identifier) ;) })) (labeled_statement "std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);" (call_expression "_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1)" identifier (argument_list "(param_1,(uint)param_2,param_3,param_4,uVar1)" ( identifier , (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , identifier ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar6 = PTR_DAT_0043226c + 0x72f0;" (assignment_expression "pcVar6 = PTR_DAT_0043226c + 0x72f0" identifier = (binary_expression "PTR_DAT_0043226c + 0x72f0" identifier + number_literal)) ;) (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 "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 "uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2);" (assignment_expression "uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2)" identifier = (call_expression "(**(code **)(puVar12 + 0x1751d0))(param_2)" (parenthesized_expression "(**(code **)(puVar12 + 0x1751d0))" ( (pointer_expression "**(code **)(puVar12 + 0x1751d0)" * (pointer_expression "*(code **)(puVar12 + 0x1751d0)" * (cast_expression "(code **)(puVar12 + 0x1751d0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x1751d0)" ( (binary_expression "puVar12 + 0x1751d0" identifier + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pcVar11 = *(char **)(psVar5 + 4);" (assignment_expression "pcVar11 = *(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) ))))) ;) (if_statement "if (pcVar6 <= pcVar11) {\n    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);\n    return;\n  }" if (parenthesized_expression "(pcVar6 <= pcVar11)" ( (binary_expression "pcVar6 <= pcVar11" identifier <= identifier) )) (compound_statement "{\n    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);\n    return;\n  }" { (labeled_statement "std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);" (call_expression "_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1)" identifier (argument_list "(psVar5,(uint)pcVar6,0,param_2,uVar1)" ( identifier , (cast_expression "(uint)pcVar6" ( (type_descriptor "uint" type_identifier) ) identifier) , number_literal , identifier , identifier ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar13 = *(code **)(puVar12 + 0x171a3c);" (assignment_expression "pcVar13 = *(code **)(puVar12 + 0x171a3c)" identifier = (pointer_expression "*(code **)(puVar12 + 0x171a3c)" * (cast_expression "(code **)(puVar12 + 0x171a3c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x171a3c)" ( (binary_expression "puVar12 + 0x171a3c" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0" identifier = (binary_expression "*(int *)(puVar12 + 0x170cc0) + 0x72f0" (pointer_expression "*(int *)(puVar12 + 0x170cc0)" * (cast_expression "(int *)(puVar12 + 0x170cc0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x170cc0)" ( (binary_expression "puVar12 + 0x170cc0" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0x170e08) + -0x25a4)" ( (binary_expression "*(int *)(puVar12 + 0x170e08) + -0x25a4" (pointer_expression "*(int *)(puVar12 + 0x170e08)" * (cast_expression "(int *)(puVar12 + 0x170e08)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x170e08)" ( (binary_expression "puVar12 + 0x170e08" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar13)();" (call_expression "(*pcVar13)()" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar15 = pcVar13 + 0x178b88;" (assignment_expression "pcVar15 = pcVar13 + 0x178b88" identifier = (binary_expression "pcVar13 + 0x178b88" 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 = (char *)(iVar7 - *(int *)psVar5);" (assignment_expression "pcVar8 = (char *)(iVar7 - *(int *)psVar5)" identifier = (cast_expression "(char *)(iVar7 - *(int *)psVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 - *(int *)psVar5)" ( (binary_expression "iVar7 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (if_statement "if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }" if (parenthesized_expression "(pcVar8 <= pcVar2)" ( (binary_expression "pcVar8 <= pcVar2" identifier <= identifier) )) (compound_statement "{\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }" { (expression_statement "uVar1 = (int)pcVar6 - iVar7;" (assignment_expression "uVar1 = (int)pcVar6 - iVar7" identifier = (binary_expression "(int)pcVar6 - iVar7" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" if (parenthesized_expression "((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7))" ( (binary_expression "(uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)" (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 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar6 - iVar7)" ( (binary_expression "(int)pcVar6 - iVar7" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" { (expression_statement "uVar1 = (int)pcVar2 - (int)pcVar8;" (assignment_expression "uVar1 = (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,uVar1,pcVar11,in_stack_ffffffa8);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);" (call_expression "_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8)" identifier (argument_list "(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8)" ( identifier , (cast_expression "(uint)pcVar8" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , identifier ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar14 = *(code **)(pcVar13 + 0x1719a0);" (assignment_expression "pcVar14 = *(code **)(pcVar13 + 0x1719a0)" identifier = (pointer_expression "*(code **)(pcVar13 + 0x1719a0)" * (cast_expression "(code **)(pcVar13 + 0x1719a0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar13 + 0x1719a0)" ( (binary_expression "pcVar13 + 0x1719a0" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar13 + 0x170d6c) + -0x25a4)" ( (binary_expression "*(int *)(pcVar13 + 0x170d6c) + -0x25a4" (pointer_expression "*(int *)(pcVar13 + 0x170d6c)" * (cast_expression "(int *)(pcVar13 + 0x170d6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar13 + 0x170d6c)" ( (binary_expression "pcVar13 + 0x170d6c" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0" identifier = (binary_expression "*(int *)(pcVar13 + 0x170c24) + 0x72f0" (pointer_expression "*(int *)(pcVar13 + 0x170c24)" * (cast_expression "(int *)(pcVar13 + 0x170c24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar13 + 0x170c24)" ( (binary_expression "pcVar13 + 0x170c24" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*pcVar14)();" (call_expression "(*pcVar14)()" (parenthesized_expression "(*pcVar14)" ( (pointer_expression "*pcVar14" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar13 = pcVar14 + 0x178b1c;" (assignment_expression "pcVar13 = pcVar14 + 0x178b1c" identifier = (binary_expression "pcVar14 + 0x178b1c" identifier + number_literal)) ;) (expression_statement "pcVar6 = *(char **)(psVar5 + 4);" (assignment_expression "pcVar6 = *(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 "pcVar11 = (char *)(iVar7 - *(int *)psVar5);" (assignment_expression "pcVar11 = (char *)(iVar7 - *(int *)psVar5)" identifier = (cast_expression "(char *)(iVar7 - *(int *)psVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 - *(int *)psVar5)" ( (binary_expression "iVar7 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (if_statement "if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }" if (parenthesized_expression "(pcVar11 <= pcVar6)" ( (binary_expression "pcVar11 <= pcVar6" identifier <= identifier) )) (compound_statement "{\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }" { (expression_statement "uVar1 = (int)pcVar8 - iVar7;" (assignment_expression "uVar1 = (int)pcVar8 - iVar7" identifier = (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }" if (parenthesized_expression "((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7))" ( (binary_expression "(uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)" (call_expression "(uint)((int)pcVar6 - (int)pcVar11)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar6 - (int)pcVar11)" ( (binary_expression "(int)pcVar6 - (int)pcVar11" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier)) ))) <= (call_expression "(uint)((int)pcVar8 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar8 - iVar7)" ( (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }" { (expression_statement "uVar1 = (int)pcVar6 - (int)pcVar11;" (assignment_expression "uVar1 = (int)pcVar6 - (int)pcVar11" identifier = (binary_expression "(int)pcVar6 - (int)pcVar11" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (labeled_statement "std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);" (call_expression "_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2)" identifier (argument_list "(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2)" ( identifier , (cast_expression "(uint)pcVar11" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (binary_expression "(int)pcVar15 - (int)pcVar2" (cast_expression "(int)pcVar15" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar15 = *(code **)(pcVar14 + 0x171934);" (assignment_expression "pcVar15 = *(code **)(pcVar14 + 0x171934)" identifier = (pointer_expression "*(code **)(pcVar14 + 0x171934)" * (cast_expression "(code **)(pcVar14 + 0x171934)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar14 + 0x171934)" ( (binary_expression "pcVar14 + 0x171934" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar14 + 0x170d00) + -0x25a4)" ( (binary_expression "*(int *)(pcVar14 + 0x170d00) + -0x25a4" (pointer_expression "*(int *)(pcVar14 + 0x170d00)" * (cast_expression "(int *)(pcVar14 + 0x170d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0x170d00)" ( (binary_expression "pcVar14 + 0x170d00" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0" identifier = (binary_expression "*(int *)(pcVar14 + 0x170bb8) + 0x72f0" (pointer_expression "*(int *)(pcVar14 + 0x170bb8)" * (cast_expression "(int *)(pcVar14 + 0x170bb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0x170bb8)" ( (binary_expression "pcVar14 + 0x170bb8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*pcVar15)();" (call_expression "(*pcVar15)()" (parenthesized_expression "(*pcVar15)" ( (pointer_expression "*pcVar15" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar14 = pcVar15 + 0x178aa4;" (assignment_expression "pcVar14 = pcVar15 + 0x178aa4" identifier = (binary_expression "pcVar15 + 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 = (char *)(iVar7 - *(int *)psVar5);" (assignment_expression "pcVar8 = (char *)(iVar7 - *(int *)psVar5)" identifier = (cast_expression "(char *)(iVar7 - *(int *)psVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 - *(int *)psVar5)" ( (binary_expression "iVar7 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (if_statement "if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }" if (parenthesized_expression "(pcVar8 <= pcVar2)" ( (binary_expression "pcVar8 <= pcVar2" identifier <= identifier) )) (compound_statement "{\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }" { (expression_statement "uVar1 = (int)pcVar11 - iVar7;" (assignment_expression "uVar1 = (int)pcVar11 - iVar7" identifier = (binary_expression "(int)pcVar11 - iVar7" (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" if (parenthesized_expression "((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7))" ( (binary_expression "(uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)" (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)pcVar11 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar11 - iVar7)" ( (binary_expression "(int)pcVar11 - iVar7" (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" { (expression_statement "uVar1 = (int)pcVar2 - (int)pcVar8;" (assignment_expression "uVar1 = (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,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);" (call_expression "_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6)" identifier (argument_list "(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6)" ( identifier , (cast_expression "(uint)pcVar8" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (binary_expression "(int)pcVar13 - (int)pcVar6" (cast_expression "(int)pcVar13" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar13 = *(code **)(pcVar15 + 0x1718bc);" (assignment_expression "pcVar13 = *(code **)(pcVar15 + 0x1718bc)" identifier = (pointer_expression "*(code **)(pcVar15 + 0x1718bc)" * (cast_expression "(code **)(pcVar15 + 0x1718bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar15 + 0x1718bc)" ( (binary_expression "pcVar15 + 0x1718bc" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar15 + 0x170c88) + -0x25a4)" ( (binary_expression "*(int *)(pcVar15 + 0x170c88) + -0x25a4" (pointer_expression "*(int *)(pcVar15 + 0x170c88)" * (cast_expression "(int *)(pcVar15 + 0x170c88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar15 + 0x170c88)" ( (binary_expression "pcVar15 + 0x170c88" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0" identifier = (binary_expression "*(int *)(pcVar15 + 0x170b40) + 0x72f0" (pointer_expression "*(int *)(pcVar15 + 0x170b40)" * (cast_expression "(int *)(pcVar15 + 0x170b40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar15 + 0x170b40)" ( (binary_expression "pcVar15 + 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 *)(iVar7 - *(int *)psVar5);" (assignment_expression "puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5)" identifier = (cast_expression "(undefined4 *)(iVar7 - *(int *)psVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 - *(int *)psVar5)" ( (binary_expression "iVar7 - *(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    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }" if (parenthesized_expression "(puVar9 <= puVar3)" ( (binary_expression "puVar9 <= puVar3" identifier <= identifier) )) (compound_statement "{\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }" { (expression_statement "uVar1 = (int)pcVar8 - iVar7;" (assignment_expression "uVar1 = (int)pcVar8 - iVar7" identifier = (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }" if (parenthesized_expression "((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7))" ( (binary_expression "(uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)" (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 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar8 - iVar7)" ( (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }" { (expression_statement "uVar1 = (int)puVar3 - (int)puVar9;" (assignment_expression "uVar1 = (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,uVar1,pcVar2,(uint)pcVar14);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);" (call_expression "_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14)" identifier (argument_list "(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14)" ( identifier , (cast_expression "(uint)puVar9" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (cast_expression "(uint)pcVar14" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar15 = *(code **)(pcVar13 + 0x171844);" (assignment_expression "pcVar15 = *(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 "iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;" (assignment_expression "iVar7 = *(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 "(*pcVar15)();" (call_expression "(*pcVar15)()" (parenthesized_expression "(*pcVar15)" ( (pointer_expression "*pcVar15" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *(uint *)(psVar5 + 4);" (assignment_expression "uVar1 = *(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 "uVar4 = iVar7 - *(int *)psVar5;" (assignment_expression "uVar4 = iVar7 - *(int *)psVar5" identifier = (binary_expression "iVar7 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (if_statement "if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }" if (parenthesized_expression "(uVar4 <= uVar1)" ( (binary_expression "uVar4 <= uVar1" identifier <= identifier) )) (compound_statement "{\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }" { (expression_statement "uVar10 = (int)puVar9 - iVar7;" (assignment_expression "uVar10 = (int)puVar9 - iVar7" identifier = (binary_expression "(int)puVar9 - iVar7" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }" if (parenthesized_expression "(uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7))" ( (binary_expression "uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)" (binary_expression "uVar1 - uVar4" identifier - identifier) <= (call_expression "(uint)((int)puVar9 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar9 - iVar7)" ( (binary_expression "(int)puVar9 - iVar7" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar10 = uVar1 - uVar4;\n    }" { (expression_statement "uVar10 = uVar1 - uVar4;" (assignment_expression "uVar10 = uVar1 - uVar4" identifier = (binary_expression "uVar1 - uVar4" identifier - identifier)) ;) })) (labeled_statement "std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);" (call_expression "_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1])" identifier (argument_list "(psVar5,uVar4,uVar10,(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 **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);" (call_expression "(**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1)" (parenthesized_expression "(**(code **)(pcVar15 + 0x1717d4))" ( (pointer_expression "**(code **)(pcVar15 + 0x1717d4)" * (pointer_expression "*(code **)(pcVar15 + 0x1717d4)" * (cast_expression "(code **)(pcVar15 + 0x1717d4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar15 + 0x1717d4)" ( (binary_expression "pcVar15 + 0x1717d4" identifier + number_literal) ))))) )) (argument_list "(*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1)" ( (binary_expression "*(int *)(pcVar15 + 0x170ba0) + -0x25a4" (pointer_expression "*(int *)(pcVar15 + 0x170ba0)" * (cast_expression "(int *)(pcVar15 + 0x170ba0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar15 + 0x170ba0)" ( (binary_expression "pcVar15 + 0x170ba0" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar15 + 0x170a58) + 0x72f0" (pointer_expression "*(int *)(pcVar15 + 0x170a58)" * (cast_expression "(int *)(pcVar15 + 0x170a58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar15 + 0x170a58)" ( (binary_expression "pcVar15 + 0x170a58" identifier + number_literal) )))) + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::string::replace(unsigned int, unsigned int, char const*) */\n\nvoid __thiscall std::string::replace(string *this,uint param_1,uint param_2,char *param_3)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  int iVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  code *pcVar15;\n  uint in_stack_ffffffa8;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_3);\n  if (param_1 <= *(uint *)(this + 4)) {\n    uVar4 = *(uint *)(this + 4) - param_1;\n    if (uVar4 <= param_2) {\n      param_2 = uVar4;\n    }\n    _M_replace(this,param_1,param_2,param_3,uVar1);\n    return;\n  }\n  pcVar6 = PTR_s__0043226c + 0x72f0;\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_1);\n  pcVar11 = *(char **)(psVar5 + 4);\n  if (pcVar6 <= pcVar11) {\n    _M_replace(psVar5,(uint)pcVar6,0,(char *)param_1,uVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x171a3c);\n  iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);\n  (*pcVar13)();\n  pcVar15 = pcVar13 + 0x178b88;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x1719a0);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;\n  (*pcVar14)();\n  pcVar13 = pcVar14 + 0x178b1c;\n  pcVar6 = *(char **)(psVar5 + 4);\n  pcVar11 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    _M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar14 + 0x171934);\n  psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);\n  iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;\n  (*pcVar15)();\n  pcVar14 = pcVar15 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }\n  pcVar13 = *(code **)(pcVar15 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);\n  iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    _M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar15)();\n  uVar1 = *(uint *)(psVar5 + 4);\n  uVar4 = iVar7 - *(int *)psVar5;\n  if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    _M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::string::replace(string *this,uint param_1,uint param_2,char *param_3)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  int iVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  code *pcVar15;\n  uint in_stack_ffffffa8;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_3);\n  if (param_1 <= *(uint *)(this + 4)) {\n    uVar4 = *(uint *)(this + 4) - param_1;\n    if (uVar4 <= param_2) {\n      param_2 = uVar4;\n    }\n    _M_replace(this,param_1,param_2,param_3,uVar1);\n    return;\n  }\n  pcVar6 = PTR_s__0043226c + 0x72f0;\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_1);\n  pcVar11 = *(char **)(psVar5 + 4);\n  if (pcVar6 <= pcVar11) {\n    _M_replace(psVar5,(uint)pcVar6,0,(char *)param_1,uVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x171a3c);\n  iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);\n  (*pcVar13)();\n  pcVar15 = pcVar13 + 0x178b88;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x1719a0);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;\n  (*pcVar14)();\n  pcVar13 = pcVar14 + 0x178b1c;\n  pcVar6 = *(char **)(psVar5 + 4);\n  pcVar11 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    _M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar14 + 0x171934);\n  psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);\n  iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;\n  (*pcVar15)();\n  pcVar14 = pcVar15 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }\n  pcVar13 = *(code **)(pcVar15 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);\n  iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    _M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar15)();\n  uVar1 = *(uint *)(psVar5 + 4);\n  uVar4 = iVar7 - *(int *)psVar5;\n  if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    _M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "replace(string *this,uint param_1,uint param_2,char *param_3)" identifier (parameter_list "(string *this,uint param_1,uint param_2,char *param_3)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  int iVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  code *pcVar15;\n  uint in_stack_ffffffa8;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_3);\n  if (param_1 <= *(uint *)(this + 4)) {\n    uVar4 = *(uint *)(this + 4) - param_1;\n    if (uVar4 <= param_2) {\n      param_2 = uVar4;\n    }\n    _M_replace(this,param_1,param_2,param_3,uVar1);\n    return;\n  }\n  pcVar6 = PTR_s__0043226c + 0x72f0;\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_1);\n  pcVar11 = *(char **)(psVar5 + 4);\n  if (pcVar6 <= pcVar11) {\n    _M_replace(psVar5,(uint)pcVar6,0,(char *)param_1,uVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x171a3c);\n  iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);\n  (*pcVar13)();\n  pcVar15 = pcVar13 + 0x178b88;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x1719a0);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;\n  (*pcVar14)();\n  pcVar13 = pcVar14 + 0x178b1c;\n  pcVar6 = *(char **)(psVar5 + 4);\n  pcVar11 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    _M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar14 + 0x171934);\n  psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);\n  iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;\n  (*pcVar15)();\n  pcVar14 = pcVar15 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }\n  pcVar13 = *(code **)(pcVar15 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);\n  iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    _M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar15)();\n  uVar1 = *(uint *)(psVar5 + 4);\n  uVar4 = iVar7 - *(int *)psVar5;\n  if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    _M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);\n  return;\n}" { (declaration "uint uVar1;" type_identifier 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 "int iVar7;" primitive_type 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 "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * 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 "code *pcVar15;" type_identifier (pointer_declarator "*pcVar15" * identifier) ;) (declaration "uint in_stack_ffffffa8;" type_identifier identifier ;) (expression_statement "uVar1 = (*(code *)PTR_strlen_0043677c)(param_3);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_0043677c)(param_3)" identifier = (call_expression "(*(code *)PTR_strlen_0043677c)(param_3)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" ( (pointer_expression "*(code *)PTR_strlen_0043677c" * (cast_expression "(code *)PTR_strlen_0043677c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier )))) ;) (if_statement "if (param_1 <= *(uint *)(this + 4)) {\n    uVar4 = *(uint *)(this + 4) - param_1;\n    if (uVar4 <= param_2) {\n      param_2 = uVar4;\n    }\n    _M_replace(this,param_1,param_2,param_3,uVar1);\n    return;\n  }" if (parenthesized_expression "(param_1 <= *(uint *)(this + 4))" ( (binary_expression "param_1 <= *(uint *)(this + 4)" identifier <= (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) )) (compound_statement "{\n    uVar4 = *(uint *)(this + 4) - param_1;\n    if (uVar4 <= param_2) {\n      param_2 = uVar4;\n    }\n    _M_replace(this,param_1,param_2,param_3,uVar1);\n    return;\n  }" { (expression_statement "uVar4 = *(uint *)(this + 4) - param_1;" (assignment_expression "uVar4 = *(uint *)(this + 4) - param_1" identifier = (binary_expression "*(uint *)(this + 4) - param_1" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (uVar4 <= param_2) {\n      param_2 = uVar4;\n    }" if (parenthesized_expression "(uVar4 <= param_2)" ( (binary_expression "uVar4 <= param_2" identifier <= identifier) )) (compound_statement "{\n      param_2 = uVar4;\n    }" { (expression_statement "param_2 = uVar4;" (assignment_expression "param_2 = uVar4" identifier = identifier) ;) })) (expression_statement "_M_replace(this,param_1,param_2,param_3,uVar1);" (call_expression "_M_replace(this,param_1,param_2,param_3,uVar1)" identifier (argument_list "(this,param_1,param_2,param_3,uVar1)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar6 = PTR_s__0043226c + 0x72f0;" (assignment_expression "pcVar6 = PTR_s__0043226c + 0x72f0" identifier = (binary_expression "PTR_s__0043226c + 0x72f0" identifier + number_literal)) ;) (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 "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 "uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_1);" (assignment_expression "uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_1)" identifier = (call_expression "(**(code **)(puVar12 + 0x1751d0))(param_1)" (parenthesized_expression "(**(code **)(puVar12 + 0x1751d0))" ( (pointer_expression "**(code **)(puVar12 + 0x1751d0)" * (pointer_expression "*(code **)(puVar12 + 0x1751d0)" * (cast_expression "(code **)(puVar12 + 0x1751d0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x1751d0)" ( (binary_expression "puVar12 + 0x1751d0" identifier + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "pcVar11 = *(char **)(psVar5 + 4);" (assignment_expression "pcVar11 = *(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) ))))) ;) (if_statement "if (pcVar6 <= pcVar11) {\n    _M_replace(psVar5,(uint)pcVar6,0,(char *)param_1,uVar1);\n    return;\n  }" if (parenthesized_expression "(pcVar6 <= pcVar11)" ( (binary_expression "pcVar6 <= pcVar11" identifier <= identifier) )) (compound_statement "{\n    _M_replace(psVar5,(uint)pcVar6,0,(char *)param_1,uVar1);\n    return;\n  }" { (expression_statement "_M_replace(psVar5,(uint)pcVar6,0,(char *)param_1,uVar1);" (call_expression "_M_replace(psVar5,(uint)pcVar6,0,(char *)param_1,uVar1)" identifier (argument_list "(psVar5,(uint)pcVar6,0,(char *)param_1,uVar1)" ( identifier , (cast_expression "(uint)pcVar6" ( (type_descriptor "uint" type_identifier) ) identifier) , number_literal , (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar13 = *(code **)(puVar12 + 0x171a3c);" (assignment_expression "pcVar13 = *(code **)(puVar12 + 0x171a3c)" identifier = (pointer_expression "*(code **)(puVar12 + 0x171a3c)" * (cast_expression "(code **)(puVar12 + 0x171a3c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x171a3c)" ( (binary_expression "puVar12 + 0x171a3c" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0" identifier = (binary_expression "*(int *)(puVar12 + 0x170cc0) + 0x72f0" (pointer_expression "*(int *)(puVar12 + 0x170cc0)" * (cast_expression "(int *)(puVar12 + 0x170cc0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x170cc0)" ( (binary_expression "puVar12 + 0x170cc0" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0x170e08) + -0x25a4)" ( (binary_expression "*(int *)(puVar12 + 0x170e08) + -0x25a4" (pointer_expression "*(int *)(puVar12 + 0x170e08)" * (cast_expression "(int *)(puVar12 + 0x170e08)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x170e08)" ( (binary_expression "puVar12 + 0x170e08" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar13)();" (call_expression "(*pcVar13)()" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar15 = pcVar13 + 0x178b88;" (assignment_expression "pcVar15 = pcVar13 + 0x178b88" identifier = (binary_expression "pcVar13 + 0x178b88" 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 = (char *)(iVar7 - *(int *)psVar5);" (assignment_expression "pcVar8 = (char *)(iVar7 - *(int *)psVar5)" identifier = (cast_expression "(char *)(iVar7 - *(int *)psVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 - *(int *)psVar5)" ( (binary_expression "iVar7 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (if_statement "if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }" if (parenthesized_expression "(pcVar8 <= pcVar2)" ( (binary_expression "pcVar8 <= pcVar2" identifier <= identifier) )) (compound_statement "{\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }" { (expression_statement "uVar1 = (int)pcVar6 - iVar7;" (assignment_expression "uVar1 = (int)pcVar6 - iVar7" identifier = (binary_expression "(int)pcVar6 - iVar7" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" if (parenthesized_expression "((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7))" ( (binary_expression "(uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)" (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 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar6 - iVar7)" ( (binary_expression "(int)pcVar6 - iVar7" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" { (expression_statement "uVar1 = (int)pcVar2 - (int)pcVar8;" (assignment_expression "uVar1 = (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,uVar1,pcVar11,in_stack_ffffffa8);" (call_expression "_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8)" identifier (argument_list "(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8)" ( identifier , (cast_expression "(uint)pcVar8" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar14 = *(code **)(pcVar13 + 0x1719a0);" (assignment_expression "pcVar14 = *(code **)(pcVar13 + 0x1719a0)" identifier = (pointer_expression "*(code **)(pcVar13 + 0x1719a0)" * (cast_expression "(code **)(pcVar13 + 0x1719a0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar13 + 0x1719a0)" ( (binary_expression "pcVar13 + 0x1719a0" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar13 + 0x170d6c) + -0x25a4)" ( (binary_expression "*(int *)(pcVar13 + 0x170d6c) + -0x25a4" (pointer_expression "*(int *)(pcVar13 + 0x170d6c)" * (cast_expression "(int *)(pcVar13 + 0x170d6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar13 + 0x170d6c)" ( (binary_expression "pcVar13 + 0x170d6c" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0" identifier = (binary_expression "*(int *)(pcVar13 + 0x170c24) + 0x72f0" (pointer_expression "*(int *)(pcVar13 + 0x170c24)" * (cast_expression "(int *)(pcVar13 + 0x170c24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar13 + 0x170c24)" ( (binary_expression "pcVar13 + 0x170c24" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*pcVar14)();" (call_expression "(*pcVar14)()" (parenthesized_expression "(*pcVar14)" ( (pointer_expression "*pcVar14" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar13 = pcVar14 + 0x178b1c;" (assignment_expression "pcVar13 = pcVar14 + 0x178b1c" identifier = (binary_expression "pcVar14 + 0x178b1c" identifier + number_literal)) ;) (expression_statement "pcVar6 = *(char **)(psVar5 + 4);" (assignment_expression "pcVar6 = *(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 "pcVar11 = (char *)(iVar7 - *(int *)psVar5);" (assignment_expression "pcVar11 = (char *)(iVar7 - *(int *)psVar5)" identifier = (cast_expression "(char *)(iVar7 - *(int *)psVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 - *(int *)psVar5)" ( (binary_expression "iVar7 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (if_statement "if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    _M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }" if (parenthesized_expression "(pcVar11 <= pcVar6)" ( (binary_expression "pcVar11 <= pcVar6" identifier <= identifier) )) (compound_statement "{\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    _M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }" { (expression_statement "uVar1 = (int)pcVar8 - iVar7;" (assignment_expression "uVar1 = (int)pcVar8 - iVar7" identifier = (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }" if (parenthesized_expression "((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7))" ( (binary_expression "(uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)" (call_expression "(uint)((int)pcVar6 - (int)pcVar11)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar6 - (int)pcVar11)" ( (binary_expression "(int)pcVar6 - (int)pcVar11" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier)) ))) <= (call_expression "(uint)((int)pcVar8 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar8 - iVar7)" ( (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }" { (expression_statement "uVar1 = (int)pcVar6 - (int)pcVar11;" (assignment_expression "uVar1 = (int)pcVar6 - (int)pcVar11" identifier = (binary_expression "(int)pcVar6 - (int)pcVar11" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (expression_statement "_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);" (call_expression "_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2)" identifier (argument_list "(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2)" ( identifier , (cast_expression "(uint)pcVar11" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (binary_expression "(int)pcVar15 - (int)pcVar2" (cast_expression "(int)pcVar15" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar15 = *(code **)(pcVar14 + 0x171934);" (assignment_expression "pcVar15 = *(code **)(pcVar14 + 0x171934)" identifier = (pointer_expression "*(code **)(pcVar14 + 0x171934)" * (cast_expression "(code **)(pcVar14 + 0x171934)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar14 + 0x171934)" ( (binary_expression "pcVar14 + 0x171934" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar14 + 0x170d00) + -0x25a4)" ( (binary_expression "*(int *)(pcVar14 + 0x170d00) + -0x25a4" (pointer_expression "*(int *)(pcVar14 + 0x170d00)" * (cast_expression "(int *)(pcVar14 + 0x170d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0x170d00)" ( (binary_expression "pcVar14 + 0x170d00" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0" identifier = (binary_expression "*(int *)(pcVar14 + 0x170bb8) + 0x72f0" (pointer_expression "*(int *)(pcVar14 + 0x170bb8)" * (cast_expression "(int *)(pcVar14 + 0x170bb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0x170bb8)" ( (binary_expression "pcVar14 + 0x170bb8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*pcVar15)();" (call_expression "(*pcVar15)()" (parenthesized_expression "(*pcVar15)" ( (pointer_expression "*pcVar15" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar14 = pcVar15 + 0x178aa4;" (assignment_expression "pcVar14 = pcVar15 + 0x178aa4" identifier = (binary_expression "pcVar15 + 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 = (char *)(iVar7 - *(int *)psVar5);" (assignment_expression "pcVar8 = (char *)(iVar7 - *(int *)psVar5)" identifier = (cast_expression "(char *)(iVar7 - *(int *)psVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 - *(int *)psVar5)" ( (binary_expression "iVar7 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (if_statement "if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }" if (parenthesized_expression "(pcVar8 <= pcVar2)" ( (binary_expression "pcVar8 <= pcVar2" identifier <= identifier) )) (compound_statement "{\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    _M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }" { (expression_statement "uVar1 = (int)pcVar11 - iVar7;" (assignment_expression "uVar1 = (int)pcVar11 - iVar7" identifier = (binary_expression "(int)pcVar11 - iVar7" (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" if (parenthesized_expression "((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7))" ( (binary_expression "(uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)" (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)pcVar11 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar11 - iVar7)" ( (binary_expression "(int)pcVar11 - iVar7" (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" { (expression_statement "uVar1 = (int)pcVar2 - (int)pcVar8;" (assignment_expression "uVar1 = (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,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);" (call_expression "_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6)" identifier (argument_list "(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6)" ( identifier , (cast_expression "(uint)pcVar8" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (binary_expression "(int)pcVar13 - (int)pcVar6" (cast_expression "(int)pcVar13" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar13 = *(code **)(pcVar15 + 0x1718bc);" (assignment_expression "pcVar13 = *(code **)(pcVar15 + 0x1718bc)" identifier = (pointer_expression "*(code **)(pcVar15 + 0x1718bc)" * (cast_expression "(code **)(pcVar15 + 0x1718bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar15 + 0x1718bc)" ( (binary_expression "pcVar15 + 0x1718bc" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar15 + 0x170c88) + -0x25a4)" ( (binary_expression "*(int *)(pcVar15 + 0x170c88) + -0x25a4" (pointer_expression "*(int *)(pcVar15 + 0x170c88)" * (cast_expression "(int *)(pcVar15 + 0x170c88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar15 + 0x170c88)" ( (binary_expression "pcVar15 + 0x170c88" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0" identifier = (binary_expression "*(int *)(pcVar15 + 0x170b40) + 0x72f0" (pointer_expression "*(int *)(pcVar15 + 0x170b40)" * (cast_expression "(int *)(pcVar15 + 0x170b40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar15 + 0x170b40)" ( (binary_expression "pcVar15 + 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 *)(iVar7 - *(int *)psVar5);" (assignment_expression "puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5)" identifier = (cast_expression "(undefined4 *)(iVar7 - *(int *)psVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 - *(int *)psVar5)" ( (binary_expression "iVar7 - *(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    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    _M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }" if (parenthesized_expression "(puVar9 <= puVar3)" ( (binary_expression "puVar9 <= puVar3" identifier <= identifier) )) (compound_statement "{\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    _M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }" { (expression_statement "uVar1 = (int)pcVar8 - iVar7;" (assignment_expression "uVar1 = (int)pcVar8 - iVar7" identifier = (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }" if (parenthesized_expression "((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7))" ( (binary_expression "(uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)" (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 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar8 - iVar7)" ( (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }" { (expression_statement "uVar1 = (int)puVar3 - (int)puVar9;" (assignment_expression "uVar1 = (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,uVar1,pcVar2,(uint)pcVar14);" (call_expression "_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14)" identifier (argument_list "(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14)" ( identifier , (cast_expression "(uint)puVar9" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (cast_expression "(uint)pcVar14" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar15 = *(code **)(pcVar13 + 0x171844);" (assignment_expression "pcVar15 = *(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 "iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;" (assignment_expression "iVar7 = *(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 "(*pcVar15)();" (call_expression "(*pcVar15)()" (parenthesized_expression "(*pcVar15)" ( (pointer_expression "*pcVar15" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *(uint *)(psVar5 + 4);" (assignment_expression "uVar1 = *(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 "uVar4 = iVar7 - *(int *)psVar5;" (assignment_expression "uVar4 = iVar7 - *(int *)psVar5" identifier = (binary_expression "iVar7 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (if_statement "if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    _M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }" if (parenthesized_expression "(uVar4 <= uVar1)" ( (binary_expression "uVar4 <= uVar1" identifier <= identifier) )) (compound_statement "{\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    _M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }" { (expression_statement "uVar10 = (int)puVar9 - iVar7;" (assignment_expression "uVar10 = (int)puVar9 - iVar7" identifier = (binary_expression "(int)puVar9 - iVar7" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }" if (parenthesized_expression "(uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7))" ( (binary_expression "uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)" (binary_expression "uVar1 - uVar4" identifier - identifier) <= (call_expression "(uint)((int)puVar9 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar9 - iVar7)" ( (binary_expression "(int)puVar9 - iVar7" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar10 = uVar1 - uVar4;\n    }" { (expression_statement "uVar10 = uVar1 - uVar4;" (assignment_expression "uVar10 = uVar1 - uVar4" identifier = (binary_expression "uVar1 - uVar4" identifier - identifier)) ;) })) (expression_statement "_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);" (call_expression "_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1])" identifier (argument_list "(psVar5,uVar4,uVar10,(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 **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);" (call_expression "(**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1)" (parenthesized_expression "(**(code **)(pcVar15 + 0x1717d4))" ( (pointer_expression "**(code **)(pcVar15 + 0x1717d4)" * (pointer_expression "*(code **)(pcVar15 + 0x1717d4)" * (cast_expression "(code **)(pcVar15 + 0x1717d4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar15 + 0x1717d4)" ( (binary_expression "pcVar15 + 0x1717d4" identifier + number_literal) ))))) )) (argument_list "(*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1)" ( (binary_expression "*(int *)(pcVar15 + 0x170ba0) + -0x25a4" (pointer_expression "*(int *)(pcVar15 + 0x170ba0)" * (cast_expression "(int *)(pcVar15 + 0x170ba0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar15 + 0x170ba0)" ( (binary_expression "pcVar15 + 0x170ba0" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar15 + 0x170a58) + 0x72f0" (pointer_expression "*(int *)(pcVar15 + 0x170a58)" * (cast_expression "(int *)(pcVar15 + 0x170a58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar15 + 0x170a58)" ( (binary_expression "pcVar15 + 0x170a58" identifier + number_literal) )))) + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002c14f4(string *param_1,char *param_2,uint param_3,char *param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  int iVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  code *pcVar15;\n  uint in_stack_ffffffa8;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  if (param_2 <= *(char **)(param_1 + 4)) {\n    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;\n    if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }\n    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);\n    return;\n  }\n  pcVar6 = PTR_DAT_0043226c + 0x72f0;\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2);\n  pcVar11 = *(char **)(psVar5 + 4);\n  if (pcVar6 <= pcVar11) {\n    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x171a3c);\n  iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);\n  (*pcVar13)();\n  pcVar15 = pcVar13 + 0x178b88;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x1719a0);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;\n  (*pcVar14)();\n  pcVar13 = pcVar14 + 0x178b1c;\n  pcVar6 = *(char **)(psVar5 + 4);\n  pcVar11 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar14 + 0x171934);\n  psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);\n  iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;\n  (*pcVar15)();\n  pcVar14 = pcVar15 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }\n  pcVar13 = *(code **)(pcVar15 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);\n  iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar15)();\n  uVar1 = *(uint *)(psVar5 + 4);\n  uVar4 = iVar7 - *(int *)psVar5;\n  if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);\n  return;\n}\n\n" (function_definition "void FUN_002c14f4(string *param_1,char *param_2,uint param_3,char *param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  int iVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  code *pcVar15;\n  uint in_stack_ffffffa8;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  if (param_2 <= *(char **)(param_1 + 4)) {\n    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;\n    if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }\n    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);\n    return;\n  }\n  pcVar6 = PTR_DAT_0043226c + 0x72f0;\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2);\n  pcVar11 = *(char **)(psVar5 + 4);\n  if (pcVar6 <= pcVar11) {\n    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x171a3c);\n  iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);\n  (*pcVar13)();\n  pcVar15 = pcVar13 + 0x178b88;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x1719a0);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;\n  (*pcVar14)();\n  pcVar13 = pcVar14 + 0x178b1c;\n  pcVar6 = *(char **)(psVar5 + 4);\n  pcVar11 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar14 + 0x171934);\n  psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);\n  iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;\n  (*pcVar15)();\n  pcVar14 = pcVar15 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }\n  pcVar13 = *(code **)(pcVar15 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);\n  iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar15)();\n  uVar1 = *(uint *)(psVar5 + 4);\n  uVar4 = iVar7 - *(int *)psVar5;\n  if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_002c14f4(string *param_1,char *param_2,uint param_3,char *param_4)" identifier (parameter_list "(string *param_1,char *param_2,uint param_3,char *param_4)" ( (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  int iVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  code *pcVar15;\n  uint in_stack_ffffffa8;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  if (param_2 <= *(char **)(param_1 + 4)) {\n    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;\n    if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }\n    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);\n    return;\n  }\n  pcVar6 = PTR_DAT_0043226c + 0x72f0;\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2);\n  pcVar11 = *(char **)(psVar5 + 4);\n  if (pcVar6 <= pcVar11) {\n    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x171a3c);\n  iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);\n  (*pcVar13)();\n  pcVar15 = pcVar13 + 0x178b88;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x1719a0);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;\n  (*pcVar14)();\n  pcVar13 = pcVar14 + 0x178b1c;\n  pcVar6 = *(char **)(psVar5 + 4);\n  pcVar11 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar14 + 0x171934);\n  psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);\n  iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;\n  (*pcVar15)();\n  pcVar14 = pcVar15 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }\n  pcVar13 = *(code **)(pcVar15 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);\n  iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar15)();\n  uVar1 = *(uint *)(psVar5 + 4);\n  uVar4 = iVar7 - *(int *)psVar5;\n  if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);\n  return;\n}" { (declaration "uint uVar1;" type_identifier 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 "int iVar7;" primitive_type 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 "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * 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 "code *pcVar15;" type_identifier (pointer_declarator "*pcVar15" * identifier) ;) (declaration "uint in_stack_ffffffa8;" type_identifier identifier ;) (expression_statement "uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_0043677c)(param_4)" identifier = (call_expression "(*(code *)PTR_strlen_0043677c)(param_4)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" ( (pointer_expression "*(code *)PTR_strlen_0043677c" * (cast_expression "(code *)PTR_strlen_0043677c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4)" ( identifier )))) ;) (if_statement "if (param_2 <= *(char **)(param_1 + 4)) {\n    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;\n    if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }\n    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);\n    return;\n  }" if (parenthesized_expression "(param_2 <= *(char **)(param_1 + 4))" ( (binary_expression "param_2 <= *(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) ))))) )) (compound_statement "{\n    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;\n    if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }\n    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);\n    return;\n  }" { (expression_statement "uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;" (assignment_expression "uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2" identifier = (binary_expression "(int)*(char **)(param_1 + 4) - (int)param_2" (cast_expression "(int)*(char **)(param_1 + 4)" ( (type_descriptor "int" primitive_type) ) (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) ))))) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }" if (parenthesized_expression "(uVar4 <= param_3)" ( (binary_expression "uVar4 <= param_3" identifier <= identifier) )) (compound_statement "{\n      param_3 = uVar4;\n    }" { (expression_statement "param_3 = uVar4;" (assignment_expression "param_3 = uVar4" identifier = identifier) ;) })) (labeled_statement "std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);" (call_expression "_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1)" identifier (argument_list "(param_1,(uint)param_2,param_3,param_4,uVar1)" ( identifier , (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , identifier ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar6 = PTR_DAT_0043226c + 0x72f0;" (assignment_expression "pcVar6 = PTR_DAT_0043226c + 0x72f0" identifier = (binary_expression "PTR_DAT_0043226c + 0x72f0" identifier + number_literal)) ;) (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 "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 "uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2);" (assignment_expression "uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2)" identifier = (call_expression "(**(code **)(puVar12 + 0x1751d0))(param_2)" (parenthesized_expression "(**(code **)(puVar12 + 0x1751d0))" ( (pointer_expression "**(code **)(puVar12 + 0x1751d0)" * (pointer_expression "*(code **)(puVar12 + 0x1751d0)" * (cast_expression "(code **)(puVar12 + 0x1751d0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x1751d0)" ( (binary_expression "puVar12 + 0x1751d0" identifier + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pcVar11 = *(char **)(psVar5 + 4);" (assignment_expression "pcVar11 = *(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) ))))) ;) (if_statement "if (pcVar6 <= pcVar11) {\n    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);\n    return;\n  }" if (parenthesized_expression "(pcVar6 <= pcVar11)" ( (binary_expression "pcVar6 <= pcVar11" identifier <= identifier) )) (compound_statement "{\n    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);\n    return;\n  }" { (labeled_statement "std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);" (call_expression "_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1)" identifier (argument_list "(psVar5,(uint)pcVar6,0,param_2,uVar1)" ( identifier , (cast_expression "(uint)pcVar6" ( (type_descriptor "uint" type_identifier) ) identifier) , number_literal , identifier , identifier ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar13 = *(code **)(puVar12 + 0x171a3c);" (assignment_expression "pcVar13 = *(code **)(puVar12 + 0x171a3c)" identifier = (pointer_expression "*(code **)(puVar12 + 0x171a3c)" * (cast_expression "(code **)(puVar12 + 0x171a3c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x171a3c)" ( (binary_expression "puVar12 + 0x171a3c" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0" identifier = (binary_expression "*(int *)(puVar12 + 0x170cc0) + 0x72f0" (pointer_expression "*(int *)(puVar12 + 0x170cc0)" * (cast_expression "(int *)(puVar12 + 0x170cc0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x170cc0)" ( (binary_expression "puVar12 + 0x170cc0" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0x170e08) + -0x25a4)" ( (binary_expression "*(int *)(puVar12 + 0x170e08) + -0x25a4" (pointer_expression "*(int *)(puVar12 + 0x170e08)" * (cast_expression "(int *)(puVar12 + 0x170e08)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x170e08)" ( (binary_expression "puVar12 + 0x170e08" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "(*pcVar13)();" (call_expression "(*pcVar13)()" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar15 = pcVar13 + 0x178b88;" (assignment_expression "pcVar15 = pcVar13 + 0x178b88" identifier = (binary_expression "pcVar13 + 0x178b88" 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 = (char *)(iVar7 - *(int *)psVar5);" (assignment_expression "pcVar8 = (char *)(iVar7 - *(int *)psVar5)" identifier = (cast_expression "(char *)(iVar7 - *(int *)psVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 - *(int *)psVar5)" ( (binary_expression "iVar7 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (if_statement "if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }" if (parenthesized_expression "(pcVar8 <= pcVar2)" ( (binary_expression "pcVar8 <= pcVar2" identifier <= identifier) )) (compound_statement "{\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }" { (expression_statement "uVar1 = (int)pcVar6 - iVar7;" (assignment_expression "uVar1 = (int)pcVar6 - iVar7" identifier = (binary_expression "(int)pcVar6 - iVar7" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" if (parenthesized_expression "((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7))" ( (binary_expression "(uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)" (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 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar6 - iVar7)" ( (binary_expression "(int)pcVar6 - iVar7" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" { (expression_statement "uVar1 = (int)pcVar2 - (int)pcVar8;" (assignment_expression "uVar1 = (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,uVar1,pcVar11,in_stack_ffffffa8);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);" (call_expression "_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8)" identifier (argument_list "(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8)" ( identifier , (cast_expression "(uint)pcVar8" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , identifier ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar14 = *(code **)(pcVar13 + 0x1719a0);" (assignment_expression "pcVar14 = *(code **)(pcVar13 + 0x1719a0)" identifier = (pointer_expression "*(code **)(pcVar13 + 0x1719a0)" * (cast_expression "(code **)(pcVar13 + 0x1719a0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar13 + 0x1719a0)" ( (binary_expression "pcVar13 + 0x1719a0" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar13 + 0x170d6c) + -0x25a4)" ( (binary_expression "*(int *)(pcVar13 + 0x170d6c) + -0x25a4" (pointer_expression "*(int *)(pcVar13 + 0x170d6c)" * (cast_expression "(int *)(pcVar13 + 0x170d6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar13 + 0x170d6c)" ( (binary_expression "pcVar13 + 0x170d6c" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0" identifier = (binary_expression "*(int *)(pcVar13 + 0x170c24) + 0x72f0" (pointer_expression "*(int *)(pcVar13 + 0x170c24)" * (cast_expression "(int *)(pcVar13 + 0x170c24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar13 + 0x170c24)" ( (binary_expression "pcVar13 + 0x170c24" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*pcVar14)();" (call_expression "(*pcVar14)()" (parenthesized_expression "(*pcVar14)" ( (pointer_expression "*pcVar14" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar13 = pcVar14 + 0x178b1c;" (assignment_expression "pcVar13 = pcVar14 + 0x178b1c" identifier = (binary_expression "pcVar14 + 0x178b1c" identifier + number_literal)) ;) (expression_statement "pcVar6 = *(char **)(psVar5 + 4);" (assignment_expression "pcVar6 = *(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 "pcVar11 = (char *)(iVar7 - *(int *)psVar5);" (assignment_expression "pcVar11 = (char *)(iVar7 - *(int *)psVar5)" identifier = (cast_expression "(char *)(iVar7 - *(int *)psVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 - *(int *)psVar5)" ( (binary_expression "iVar7 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (if_statement "if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }" if (parenthesized_expression "(pcVar11 <= pcVar6)" ( (binary_expression "pcVar11 <= pcVar6" identifier <= identifier) )) (compound_statement "{\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }" { (expression_statement "uVar1 = (int)pcVar8 - iVar7;" (assignment_expression "uVar1 = (int)pcVar8 - iVar7" identifier = (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }" if (parenthesized_expression "((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7))" ( (binary_expression "(uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)" (call_expression "(uint)((int)pcVar6 - (int)pcVar11)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar6 - (int)pcVar11)" ( (binary_expression "(int)pcVar6 - (int)pcVar11" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier)) ))) <= (call_expression "(uint)((int)pcVar8 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar8 - iVar7)" ( (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }" { (expression_statement "uVar1 = (int)pcVar6 - (int)pcVar11;" (assignment_expression "uVar1 = (int)pcVar6 - (int)pcVar11" identifier = (binary_expression "(int)pcVar6 - (int)pcVar11" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (labeled_statement "std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);" (call_expression "_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2)" identifier (argument_list "(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2)" ( identifier , (cast_expression "(uint)pcVar11" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (binary_expression "(int)pcVar15 - (int)pcVar2" (cast_expression "(int)pcVar15" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar15 = *(code **)(pcVar14 + 0x171934);" (assignment_expression "pcVar15 = *(code **)(pcVar14 + 0x171934)" identifier = (pointer_expression "*(code **)(pcVar14 + 0x171934)" * (cast_expression "(code **)(pcVar14 + 0x171934)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar14 + 0x171934)" ( (binary_expression "pcVar14 + 0x171934" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar14 + 0x170d00) + -0x25a4)" ( (binary_expression "*(int *)(pcVar14 + 0x170d00) + -0x25a4" (pointer_expression "*(int *)(pcVar14 + 0x170d00)" * (cast_expression "(int *)(pcVar14 + 0x170d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0x170d00)" ( (binary_expression "pcVar14 + 0x170d00" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0" identifier = (binary_expression "*(int *)(pcVar14 + 0x170bb8) + 0x72f0" (pointer_expression "*(int *)(pcVar14 + 0x170bb8)" * (cast_expression "(int *)(pcVar14 + 0x170bb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar14 + 0x170bb8)" ( (binary_expression "pcVar14 + 0x170bb8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*pcVar15)();" (call_expression "(*pcVar15)()" (parenthesized_expression "(*pcVar15)" ( (pointer_expression "*pcVar15" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar14 = pcVar15 + 0x178aa4;" (assignment_expression "pcVar14 = pcVar15 + 0x178aa4" identifier = (binary_expression "pcVar15 + 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 = (char *)(iVar7 - *(int *)psVar5);" (assignment_expression "pcVar8 = (char *)(iVar7 - *(int *)psVar5)" identifier = (cast_expression "(char *)(iVar7 - *(int *)psVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 - *(int *)psVar5)" ( (binary_expression "iVar7 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (if_statement "if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }" if (parenthesized_expression "(pcVar8 <= pcVar2)" ( (binary_expression "pcVar8 <= pcVar2" identifier <= identifier) )) (compound_statement "{\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }" { (expression_statement "uVar1 = (int)pcVar11 - iVar7;" (assignment_expression "uVar1 = (int)pcVar11 - iVar7" identifier = (binary_expression "(int)pcVar11 - iVar7" (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" if (parenthesized_expression "((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7))" ( (binary_expression "(uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)" (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)pcVar11 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar11 - iVar7)" ( (binary_expression "(int)pcVar11 - iVar7" (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" { (expression_statement "uVar1 = (int)pcVar2 - (int)pcVar8;" (assignment_expression "uVar1 = (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,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);" (call_expression "_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6)" identifier (argument_list "(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6)" ( identifier , (cast_expression "(uint)pcVar8" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (binary_expression "(int)pcVar13 - (int)pcVar6" (cast_expression "(int)pcVar13" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar13 = *(code **)(pcVar15 + 0x1718bc);" (assignment_expression "pcVar13 = *(code **)(pcVar15 + 0x1718bc)" identifier = (pointer_expression "*(code **)(pcVar15 + 0x1718bc)" * (cast_expression "(code **)(pcVar15 + 0x1718bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar15 + 0x1718bc)" ( (binary_expression "pcVar15 + 0x1718bc" identifier + number_literal) ))))) ;) (expression_statement "psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4)" identifier = (cast_expression "(string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pcVar15 + 0x170c88) + -0x25a4)" ( (binary_expression "*(int *)(pcVar15 + 0x170c88) + -0x25a4" (pointer_expression "*(int *)(pcVar15 + 0x170c88)" * (cast_expression "(int *)(pcVar15 + 0x170c88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar15 + 0x170c88)" ( (binary_expression "pcVar15 + 0x170c88" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0" identifier = (binary_expression "*(int *)(pcVar15 + 0x170b40) + 0x72f0" (pointer_expression "*(int *)(pcVar15 + 0x170b40)" * (cast_expression "(int *)(pcVar15 + 0x170b40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar15 + 0x170b40)" ( (binary_expression "pcVar15 + 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 *)(iVar7 - *(int *)psVar5);" (assignment_expression "puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5)" identifier = (cast_expression "(undefined4 *)(iVar7 - *(int *)psVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 - *(int *)psVar5)" ( (binary_expression "iVar7 - *(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    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }" if (parenthesized_expression "(puVar9 <= puVar3)" ( (binary_expression "puVar9 <= puVar3" identifier <= identifier) )) (compound_statement "{\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }" { (expression_statement "uVar1 = (int)pcVar8 - iVar7;" (assignment_expression "uVar1 = (int)pcVar8 - iVar7" identifier = (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }" if (parenthesized_expression "((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7))" ( (binary_expression "(uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)" (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 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar8 - iVar7)" ( (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }" { (expression_statement "uVar1 = (int)puVar3 - (int)puVar9;" (assignment_expression "uVar1 = (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,uVar1,pcVar2,(uint)pcVar14);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);" (call_expression "_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14)" identifier (argument_list "(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14)" ( identifier , (cast_expression "(uint)puVar9" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier , (cast_expression "(uint)pcVar14" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;))) (return_statement "return;" return ;) })) (expression_statement "pcVar15 = *(code **)(pcVar13 + 0x171844);" (assignment_expression "pcVar15 = *(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 "iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;" (assignment_expression "iVar7 = *(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 "(*pcVar15)();" (call_expression "(*pcVar15)()" (parenthesized_expression "(*pcVar15)" ( (pointer_expression "*pcVar15" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *(uint *)(psVar5 + 4);" (assignment_expression "uVar1 = *(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 "uVar4 = iVar7 - *(int *)psVar5;" (assignment_expression "uVar4 = iVar7 - *(int *)psVar5" identifier = (binary_expression "iVar7 - *(int *)psVar5" identifier - (pointer_expression "*(int *)psVar5" * (cast_expression "(int *)psVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (if_statement "if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }" if (parenthesized_expression "(uVar4 <= uVar1)" ( (binary_expression "uVar4 <= uVar1" identifier <= identifier) )) (compound_statement "{\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }" { (expression_statement "uVar10 = (int)puVar9 - iVar7;" (assignment_expression "uVar10 = (int)puVar9 - iVar7" identifier = (binary_expression "(int)puVar9 - iVar7" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (if_statement "if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }" if (parenthesized_expression "(uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7))" ( (binary_expression "uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)" (binary_expression "uVar1 - uVar4" identifier - identifier) <= (call_expression "(uint)((int)puVar9 - iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar9 - iVar7)" ( (binary_expression "(int)puVar9 - iVar7" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) - identifier) )))) )) (compound_statement "{\n      uVar10 = uVar1 - uVar4;\n    }" { (expression_statement "uVar10 = uVar1 - uVar4;" (assignment_expression "uVar10 = uVar1 - uVar4" identifier = (binary_expression "uVar1 - uVar4" identifier - identifier)) ;) })) (labeled_statement "std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);" (call_expression "_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1])" identifier (argument_list "(psVar5,uVar4,uVar10,(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 **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);" (call_expression "(**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1)" (parenthesized_expression "(**(code **)(pcVar15 + 0x1717d4))" ( (pointer_expression "**(code **)(pcVar15 + 0x1717d4)" * (pointer_expression "*(code **)(pcVar15 + 0x1717d4)" * (cast_expression "(code **)(pcVar15 + 0x1717d4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar15 + 0x1717d4)" ( (binary_expression "pcVar15 + 0x1717d4" identifier + number_literal) ))))) )) (argument_list "(*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1)" ( (binary_expression "*(int *)(pcVar15 + 0x170ba0) + -0x25a4" (pointer_expression "*(int *)(pcVar15 + 0x170ba0)" * (cast_expression "(int *)(pcVar15 + 0x170ba0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar15 + 0x170ba0)" ( (binary_expression "pcVar15 + 0x170ba0" identifier + number_literal) )))) + number_literal) , (binary_expression "*(int *)(pcVar15 + 0x170a58) + 0x72f0" (pointer_expression "*(int *)(pcVar15 + 0x170a58)" * (cast_expression "(int *)(pcVar15 + 0x170a58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar15 + 0x170a58)" ( (binary_expression "pcVar15 + 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 (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE 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 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 ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = 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 , IDENT ))) ;))) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) , LIT , IDENT , IDENT ))) ;))) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + 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 (call_expression (parenthesized_expression ( (pointer_expression * 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 = (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 , 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 = (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 = (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 , (binary_expression (cast_expression ( (type_descriptor TYPE) ) 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 = (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 = (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 , (binary_expression (cast_expression ( (type_descriptor TYPE) ) 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_002c14f4(string *param_1,char *param_2,uint param_3,char *param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  int iVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  code *pcVar15;\n  uint in_stack_ffffffa8;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  if (param_2 <= *(char **)(param_1 + 4)) {\n    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;\n    if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }\n    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);\n    return;\n  }\n  pcVar6 = PTR_DAT_0043226c + 0x72f0;\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2);\n  pcVar11 = *(char **)(psVar5 + 4);\n  if (pcVar6 <= pcVar11) {\n    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x171a3c);\n  iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);\n  (*pcVar13)();\n  pcVar15 = pcVar13 + 0x178b88;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x1719a0);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;\n  (*pcVar14)();\n  pcVar13 = pcVar14 + 0x178b1c;\n  pcVar6 = *(char **)(psVar5 + 4);\n  pcVar11 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar14 + 0x171934);\n  psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);\n  iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;\n  (*pcVar15)();\n  pcVar14 = pcVar15 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }\n  pcVar13 = *(code **)(pcVar15 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);\n  iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar15)();\n  uVar1 = *(uint *)(psVar5 + 4);\n  uVar4 = iVar7 - *(int *)psVar5;\n  if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002c14f4(string *param_1,char *param_2,uint param_3,char *param_4)" (identifier "FUN_002c14f4") (parameter_list "(string *param_1,char *param_2,uint param_3,char *param_4)" (( "(") (parameter_declaration "string *param_1" (type_identifier "string") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "char *param_4" (primitive_type "char") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  string *psVar5;\n  char *pcVar6;\n  int iVar7;\n  char *pcVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  code *pcVar14;\n  code *pcVar15;\n  uint in_stack_ffffffa8;\n  \n  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);\n  if (param_2 <= *(char **)(param_1 + 4)) {\n    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;\n    if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }\n    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);\n    return;\n  }\n  pcVar6 = PTR_DAT_0043226c + 0x72f0;\n  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);\n  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;\n  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();\n  uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2);\n  pcVar11 = *(char **)(psVar5 + 4);\n  if (pcVar6 <= pcVar11) {\n    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);\n    return;\n  }\n  pcVar13 = *(code **)(puVar12 + 0x171a3c);\n  iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;\n  psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);\n  (*pcVar13)();\n  pcVar15 = pcVar13 + 0x178b88;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }\n  pcVar14 = *(code **)(pcVar13 + 0x1719a0);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;\n  (*pcVar14)();\n  pcVar13 = pcVar14 + 0x178b1c;\n  pcVar6 = *(char **)(psVar5 + 4);\n  pcVar11 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar14 + 0x171934);\n  psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);\n  iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;\n  (*pcVar15)();\n  pcVar14 = pcVar15 + 0x178aa4;\n  pcVar2 = *(char **)(psVar5 + 4);\n  pcVar8 = (char *)(iVar7 - *(int *)psVar5);\n  if (pcVar8 <= pcVar2) {\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }\n  pcVar13 = *(code **)(pcVar15 + 0x1718bc);\n  psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);\n  iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;\n  (*pcVar13)();\n  puVar3 = *(undefined4 **)(psVar5 + 4);\n  puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5);\n  if (puVar9 <= puVar3) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }\n  pcVar15 = *(code **)(pcVar13 + 0x171844);\n  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);\n  iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;\n  (*pcVar15)();\n  uVar1 = *(uint *)(psVar5 + 4);\n  uVar4 = iVar7 - *(int *)psVar5;\n  if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }\n  (**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (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 "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (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 "char *pcVar11;" (primitive_type "char") (pointer_declarator "*pcVar11" (* "*") (identifier "pcVar11")) (; ";")) (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 "code *pcVar15;" (type_identifier "code") (pointer_declarator "*pcVar15" (* "*") (identifier "pcVar15")) (; ";")) (declaration "uint in_stack_ffffffa8;" (type_identifier "uint") (identifier "in_stack_ffffffa8") (; ";")) (expression_statement "uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_0043677c)(param_4)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0043677c)(param_4)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0043677c" (* "*") (cast_expression "(code *)PTR_strlen_0043677c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0043677c"))) () ")")) (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (param_2 <= *(char **)(param_1 + 4)) {\n    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;\n    if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }\n    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 <= *(char **)(param_1 + 4))" (( "(") (binary_expression "param_2 <= *(char **)(param_1 + 4)" (identifier "param_2") (<= "<=") (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")) () ")"))))) () ")")) (compound_statement "{\n    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;\n    if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }\n    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);\n    return;\n  }" ({ "{") (expression_statement "uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;" (assignment_expression "uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2" (identifier "uVar4") (= "=") (binary_expression "(int)*(char **)(param_1 + 4) - (int)param_2" (cast_expression "(int)*(char **)(param_1 + 4)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (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")) () ")"))))) (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) (; ";")) (if_statement "if (uVar4 <= param_3) {\n      param_3 = uVar4;\n    }" (if "if") (parenthesized_expression "(uVar4 <= param_3)" (( "(") (binary_expression "uVar4 <= param_3" (identifier "uVar4") (<= "<=") (identifier "param_3")) () ")")) (compound_statement "{\n      param_3 = uVar4;\n    }" ({ "{") (expression_statement "param_3 = uVar4;" (assignment_expression "param_3 = uVar4" (identifier "param_3") (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (labeled_statement "std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);" (call_expression "_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1)" (identifier "_M_replace") (argument_list "(param_1,(uint)param_2,param_3,param_4,uVar1)" (( "(") (identifier "param_1") (, ",") (cast_expression "(uint)param_2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_2")) (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "uVar1") () ")"))) (; ";")))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar6 = PTR_DAT_0043226c + 0x72f0;" (assignment_expression "pcVar6 = PTR_DAT_0043226c + 0x72f0" (identifier "pcVar6") (= "=") (binary_expression "PTR_DAT_0043226c + 0x72f0" (identifier "PTR_DAT_0043226c") (+ "+") (number_literal "0x72f0"))) (; ";")) (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 "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 "uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2);" (assignment_expression "uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(puVar12 + 0x1751d0))(param_2)" (parenthesized_expression "(**(code **)(puVar12 + 0x1751d0))" (( "(") (pointer_expression "**(code **)(puVar12 + 0x1751d0)" (* "*") (pointer_expression "*(code **)(puVar12 + 0x1751d0)" (* "*") (cast_expression "(code **)(puVar12 + 0x1751d0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar12 + 0x1751d0)" (( "(") (binary_expression "puVar12 + 0x1751d0" (identifier "puVar12") (+ "+") (number_literal "0x1751d0")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "pcVar11 = *(char **)(psVar5 + 4);" (assignment_expression "pcVar11 = *(char **)(psVar5 + 4)" (identifier "pcVar11") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (pcVar6 <= pcVar11) {\n    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(pcVar6 <= pcVar11)" (( "(") (binary_expression "pcVar6 <= pcVar11" (identifier "pcVar6") (<= "<=") (identifier "pcVar11")) () ")")) (compound_statement "{\n    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);\n    return;\n  }" ({ "{") (labeled_statement "std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);" (call_expression "_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1)" (identifier "_M_replace") (argument_list "(psVar5,(uint)pcVar6,0,param_2,uVar1)" (( "(") (identifier "psVar5") (, ",") (cast_expression "(uint)pcVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "pcVar6")) (, ",") (number_literal "0") (, ",") (identifier "param_2") (, ",") (identifier "uVar1") () ")"))) (; ";")))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar13 = *(code **)(puVar12 + 0x171a3c);" (assignment_expression "pcVar13 = *(code **)(puVar12 + 0x171a3c)" (identifier "pcVar13") (= "=") (pointer_expression "*(code **)(puVar12 + 0x171a3c)" (* "*") (cast_expression "(code **)(puVar12 + 0x171a3c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar12 + 0x171a3c)" (( "(") (binary_expression "puVar12 + 0x171a3c" (identifier "puVar12") (+ "+") (number_literal "0x171a3c")) () ")"))))) (; ";")) (expression_statement "iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0" (identifier "iVar7") (= "=") (binary_expression "*(int *)(puVar12 + 0x170cc0) + 0x72f0" (pointer_expression "*(int *)(puVar12 + 0x170cc0)" (* "*") (cast_expression "(int *)(puVar12 + 0x170cc0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + 0x170cc0)" (( "(") (binary_expression "puVar12 + 0x170cc0" (identifier "puVar12") (+ "+") (number_literal "0x170cc0")) () ")")))) (+ "+") (number_literal "0x72f0"))) (; ";")) (expression_statement "psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4)" (identifier "psVar5") (= "=") (cast_expression "(string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4)" (( "(") (type_descriptor "string *" (type_identifier "string") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar12 + 0x170e08) + -0x25a4)" (( "(") (binary_expression "*(int *)(puVar12 + 0x170e08) + -0x25a4" (pointer_expression "*(int *)(puVar12 + 0x170e08)" (* "*") (cast_expression "(int *)(puVar12 + 0x170e08)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + 0x170e08)" (( "(") (binary_expression "puVar12 + 0x170e08" (identifier "puVar12") (+ "+") (number_literal "0x170e08")) () ")")))) (+ "+") (number_literal "-0x25a4")) () ")")))) (; ";")) (expression_statement "(*pcVar13)();" (call_expression "(*pcVar13)()" (parenthesized_expression "(*pcVar13)" (( "(") (pointer_expression "*pcVar13" (* "*") (identifier "pcVar13")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "pcVar15 = pcVar13 + 0x178b88;" (assignment_expression "pcVar15 = pcVar13 + 0x178b88" (identifier "pcVar15") (= "=") (binary_expression "pcVar13 + 0x178b88" (identifier "pcVar13") (+ "+") (number_literal "0x178b88"))) (; ";")) (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 = (char *)(iVar7 - *(int *)psVar5);" (assignment_expression "pcVar8 = (char *)(iVar7 - *(int *)psVar5)" (identifier "pcVar8") (= "=") (cast_expression "(char *)(iVar7 - *(int *)psVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 - *(int *)psVar5)" (( "(") (binary_expression "iVar7 - *(int *)psVar5" (identifier "iVar7") (- "-") (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    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }" (if "if") (parenthesized_expression "(pcVar8 <= pcVar2)" (( "(") (binary_expression "pcVar8 <= pcVar2" (identifier "pcVar8") (<= "<=") (identifier "pcVar2")) () ")")) (compound_statement "{\n    uVar1 = (int)pcVar6 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);\n    return;\n  }" ({ "{") (expression_statement "uVar1 = (int)pcVar6 - iVar7;" (assignment_expression "uVar1 = (int)pcVar6 - iVar7" (identifier "uVar1") (= "=") (binary_expression "(int)pcVar6 - iVar7" (cast_expression "(int)pcVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar6")) (- "-") (identifier "iVar7"))) (; ";")) (if_statement "if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" (if "if") (parenthesized_expression "((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7))" (( "(") (binary_expression "(uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)" (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 - iVar7)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)pcVar6 - iVar7)" (( "(") (binary_expression "(int)pcVar6 - iVar7" (cast_expression "(int)pcVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar6")) (- "-") (identifier "iVar7")) () ")")))) () ")")) (compound_statement "{\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" ({ "{") (expression_statement "uVar1 = (int)pcVar2 - (int)pcVar8;" (assignment_expression "uVar1 = (int)pcVar2 - (int)pcVar8" (identifier "uVar1") (= "=") (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,uVar1,pcVar11,in_stack_ffffffa8);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);" (call_expression "_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8)" (identifier "_M_replace") (argument_list "(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8)" (( "(") (identifier "psVar5") (, ",") (cast_expression "(uint)pcVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "pcVar8")) (, ",") (identifier "uVar1") (, ",") (identifier "pcVar11") (, ",") (identifier "in_stack_ffffffa8") () ")"))) (; ";")))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar14 = *(code **)(pcVar13 + 0x1719a0);" (assignment_expression "pcVar14 = *(code **)(pcVar13 + 0x1719a0)" (identifier "pcVar14") (= "=") (pointer_expression "*(code **)(pcVar13 + 0x1719a0)" (* "*") (cast_expression "(code **)(pcVar13 + 0x1719a0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar13 + 0x1719a0)" (( "(") (binary_expression "pcVar13 + 0x1719a0" (identifier "pcVar13") (+ "+") (number_literal "0x1719a0")) () ")"))))) (; ";")) (expression_statement "psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4)" (identifier "psVar5") (= "=") (cast_expression "(string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4)" (( "(") (type_descriptor "string *" (type_identifier "string") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(pcVar13 + 0x170d6c) + -0x25a4)" (( "(") (binary_expression "*(int *)(pcVar13 + 0x170d6c) + -0x25a4" (pointer_expression "*(int *)(pcVar13 + 0x170d6c)" (* "*") (cast_expression "(int *)(pcVar13 + 0x170d6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar13 + 0x170d6c)" (( "(") (binary_expression "pcVar13 + 0x170d6c" (identifier "pcVar13") (+ "+") (number_literal "0x170d6c")) () ")")))) (+ "+") (number_literal "-0x25a4")) () ")")))) (; ";")) (expression_statement "iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0" (identifier "iVar7") (= "=") (binary_expression "*(int *)(pcVar13 + 0x170c24) + 0x72f0" (pointer_expression "*(int *)(pcVar13 + 0x170c24)" (* "*") (cast_expression "(int *)(pcVar13 + 0x170c24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar13 + 0x170c24)" (( "(") (binary_expression "pcVar13 + 0x170c24" (identifier "pcVar13") (+ "+") (number_literal "0x170c24")) () ")")))) (+ "+") (number_literal "0x72f0"))) (; ";")) (expression_statement "(*pcVar14)();" (call_expression "(*pcVar14)()" (parenthesized_expression "(*pcVar14)" (( "(") (pointer_expression "*pcVar14" (* "*") (identifier "pcVar14")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "pcVar13 = pcVar14 + 0x178b1c;" (assignment_expression "pcVar13 = pcVar14 + 0x178b1c" (identifier "pcVar13") (= "=") (binary_expression "pcVar14 + 0x178b1c" (identifier "pcVar14") (+ "+") (number_literal "0x178b1c"))) (; ";")) (expression_statement "pcVar6 = *(char **)(psVar5 + 4);" (assignment_expression "pcVar6 = *(char **)(psVar5 + 4)" (identifier "pcVar6") (= "=") (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 "pcVar11 = (char *)(iVar7 - *(int *)psVar5);" (assignment_expression "pcVar11 = (char *)(iVar7 - *(int *)psVar5)" (identifier "pcVar11") (= "=") (cast_expression "(char *)(iVar7 - *(int *)psVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 - *(int *)psVar5)" (( "(") (binary_expression "iVar7 - *(int *)psVar5" (identifier "iVar7") (- "-") (pointer_expression "*(int *)psVar5" (* "*") (cast_expression "(int *)psVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "psVar5")))) () ")")))) (; ";")) (if_statement "if (pcVar11 <= pcVar6) {\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }" (if "if") (parenthesized_expression "(pcVar11 <= pcVar6)" (( "(") (binary_expression "pcVar11 <= pcVar6" (identifier "pcVar11") (<= "<=") (identifier "pcVar6")) () ")")) (compound_statement "{\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);\n    return;\n  }" ({ "{") (expression_statement "uVar1 = (int)pcVar8 - iVar7;" (assignment_expression "uVar1 = (int)pcVar8 - iVar7" (identifier "uVar1") (= "=") (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8")) (- "-") (identifier "iVar7"))) (; ";")) (if_statement "if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }" (if "if") (parenthesized_expression "((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7))" (( "(") (binary_expression "(uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)" (call_expression "(uint)((int)pcVar6 - (int)pcVar11)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)pcVar6 - (int)pcVar11)" (( "(") (binary_expression "(int)pcVar6 - (int)pcVar11" (cast_expression "(int)pcVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar6")) (- "-") (cast_expression "(int)pcVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar11"))) () ")"))) (<= "<=") (call_expression "(uint)((int)pcVar8 - iVar7)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)pcVar8 - iVar7)" (( "(") (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8")) (- "-") (identifier "iVar7")) () ")")))) () ")")) (compound_statement "{\n      uVar1 = (int)pcVar6 - (int)pcVar11;\n    }" ({ "{") (expression_statement "uVar1 = (int)pcVar6 - (int)pcVar11;" (assignment_expression "uVar1 = (int)pcVar6 - (int)pcVar11" (identifier "uVar1") (= "=") (binary_expression "(int)pcVar6 - (int)pcVar11" (cast_expression "(int)pcVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar6")) (- "-") (cast_expression "(int)pcVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar11")))) (; ";")) (} "}"))) (labeled_statement "std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);" (call_expression "_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2)" (identifier "_M_replace") (argument_list "(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2)" (( "(") (identifier "psVar5") (, ",") (cast_expression "(uint)pcVar11" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "pcVar11")) (, ",") (identifier "uVar1") (, ",") (identifier "pcVar2") (, ",") (binary_expression "(int)pcVar15 - (int)pcVar2" (cast_expression "(int)pcVar15" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar15")) (- "-") (cast_expression "(int)pcVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar2"))) () ")"))) (; ";")))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar15 = *(code **)(pcVar14 + 0x171934);" (assignment_expression "pcVar15 = *(code **)(pcVar14 + 0x171934)" (identifier "pcVar15") (= "=") (pointer_expression "*(code **)(pcVar14 + 0x171934)" (* "*") (cast_expression "(code **)(pcVar14 + 0x171934)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar14 + 0x171934)" (( "(") (binary_expression "pcVar14 + 0x171934" (identifier "pcVar14") (+ "+") (number_literal "0x171934")) () ")"))))) (; ";")) (expression_statement "psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4)" (identifier "psVar5") (= "=") (cast_expression "(string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4)" (( "(") (type_descriptor "string *" (type_identifier "string") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(pcVar14 + 0x170d00) + -0x25a4)" (( "(") (binary_expression "*(int *)(pcVar14 + 0x170d00) + -0x25a4" (pointer_expression "*(int *)(pcVar14 + 0x170d00)" (* "*") (cast_expression "(int *)(pcVar14 + 0x170d00)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar14 + 0x170d00)" (( "(") (binary_expression "pcVar14 + 0x170d00" (identifier "pcVar14") (+ "+") (number_literal "0x170d00")) () ")")))) (+ "+") (number_literal "-0x25a4")) () ")")))) (; ";")) (expression_statement "iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0" (identifier "iVar7") (= "=") (binary_expression "*(int *)(pcVar14 + 0x170bb8) + 0x72f0" (pointer_expression "*(int *)(pcVar14 + 0x170bb8)" (* "*") (cast_expression "(int *)(pcVar14 + 0x170bb8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar14 + 0x170bb8)" (( "(") (binary_expression "pcVar14 + 0x170bb8" (identifier "pcVar14") (+ "+") (number_literal "0x170bb8")) () ")")))) (+ "+") (number_literal "0x72f0"))) (; ";")) (expression_statement "(*pcVar15)();" (call_expression "(*pcVar15)()" (parenthesized_expression "(*pcVar15)" (( "(") (pointer_expression "*pcVar15" (* "*") (identifier "pcVar15")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "pcVar14 = pcVar15 + 0x178aa4;" (assignment_expression "pcVar14 = pcVar15 + 0x178aa4" (identifier "pcVar14") (= "=") (binary_expression "pcVar15 + 0x178aa4" (identifier "pcVar15") (+ "+") (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 = (char *)(iVar7 - *(int *)psVar5);" (assignment_expression "pcVar8 = (char *)(iVar7 - *(int *)psVar5)" (identifier "pcVar8") (= "=") (cast_expression "(char *)(iVar7 - *(int *)psVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 - *(int *)psVar5)" (( "(") (binary_expression "iVar7 - *(int *)psVar5" (identifier "iVar7") (- "-") (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    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }" (if "if") (parenthesized_expression "(pcVar8 <= pcVar2)" (( "(") (binary_expression "pcVar8 <= pcVar2" (identifier "pcVar8") (<= "<=") (identifier "pcVar2")) () ")")) (compound_statement "{\n    uVar1 = (int)pcVar11 - iVar7;\n    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }\n    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);\n    return;\n  }" ({ "{") (expression_statement "uVar1 = (int)pcVar11 - iVar7;" (assignment_expression "uVar1 = (int)pcVar11 - iVar7" (identifier "uVar1") (= "=") (binary_expression "(int)pcVar11 - iVar7" (cast_expression "(int)pcVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar11")) (- "-") (identifier "iVar7"))) (; ";")) (if_statement "if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" (if "if") (parenthesized_expression "((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7))" (( "(") (binary_expression "(uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)" (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)pcVar11 - iVar7)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)pcVar11 - iVar7)" (( "(") (binary_expression "(int)pcVar11 - iVar7" (cast_expression "(int)pcVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar11")) (- "-") (identifier "iVar7")) () ")")))) () ")")) (compound_statement "{\n      uVar1 = (int)pcVar2 - (int)pcVar8;\n    }" ({ "{") (expression_statement "uVar1 = (int)pcVar2 - (int)pcVar8;" (assignment_expression "uVar1 = (int)pcVar2 - (int)pcVar8" (identifier "uVar1") (= "=") (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,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);" (call_expression "_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6)" (identifier "_M_replace") (argument_list "(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6)" (( "(") (identifier "psVar5") (, ",") (cast_expression "(uint)pcVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "pcVar8")) (, ",") (identifier "uVar1") (, ",") (identifier "pcVar6") (, ",") (binary_expression "(int)pcVar13 - (int)pcVar6" (cast_expression "(int)pcVar13" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar13")) (- "-") (cast_expression "(int)pcVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar6"))) () ")"))) (; ";")))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar13 = *(code **)(pcVar15 + 0x1718bc);" (assignment_expression "pcVar13 = *(code **)(pcVar15 + 0x1718bc)" (identifier "pcVar13") (= "=") (pointer_expression "*(code **)(pcVar15 + 0x1718bc)" (* "*") (cast_expression "(code **)(pcVar15 + 0x1718bc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar15 + 0x1718bc)" (( "(") (binary_expression "pcVar15 + 0x1718bc" (identifier "pcVar15") (+ "+") (number_literal "0x1718bc")) () ")"))))) (; ";")) (expression_statement "psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);" (assignment_expression "psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4)" (identifier "psVar5") (= "=") (cast_expression "(string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4)" (( "(") (type_descriptor "string *" (type_identifier "string") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(pcVar15 + 0x170c88) + -0x25a4)" (( "(") (binary_expression "*(int *)(pcVar15 + 0x170c88) + -0x25a4" (pointer_expression "*(int *)(pcVar15 + 0x170c88)" (* "*") (cast_expression "(int *)(pcVar15 + 0x170c88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar15 + 0x170c88)" (( "(") (binary_expression "pcVar15 + 0x170c88" (identifier "pcVar15") (+ "+") (number_literal "0x170c88")) () ")")))) (+ "+") (number_literal "-0x25a4")) () ")")))) (; ";")) (expression_statement "iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0" (identifier "iVar7") (= "=") (binary_expression "*(int *)(pcVar15 + 0x170b40) + 0x72f0" (pointer_expression "*(int *)(pcVar15 + 0x170b40)" (* "*") (cast_expression "(int *)(pcVar15 + 0x170b40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar15 + 0x170b40)" (( "(") (binary_expression "pcVar15 + 0x170b40" (identifier "pcVar15") (+ "+") (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 *)(iVar7 - *(int *)psVar5);" (assignment_expression "puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5)" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)(iVar7 - *(int *)psVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 - *(int *)psVar5)" (( "(") (binary_expression "iVar7 - *(int *)psVar5" (identifier "iVar7") (- "-") (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    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }" (if "if") (parenthesized_expression "(puVar9 <= puVar3)" (( "(") (binary_expression "puVar9 <= puVar3" (identifier "puVar9") (<= "<=") (identifier "puVar3")) () ")")) (compound_statement "{\n    uVar1 = (int)pcVar8 - iVar7;\n    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }\n    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);\n    return;\n  }" ({ "{") (expression_statement "uVar1 = (int)pcVar8 - iVar7;" (assignment_expression "uVar1 = (int)pcVar8 - iVar7" (identifier "uVar1") (= "=") (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8")) (- "-") (identifier "iVar7"))) (; ";")) (if_statement "if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }" (if "if") (parenthesized_expression "((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7))" (( "(") (binary_expression "(uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)" (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 - iVar7)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)pcVar8 - iVar7)" (( "(") (binary_expression "(int)pcVar8 - iVar7" (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8")) (- "-") (identifier "iVar7")) () ")")))) () ")")) (compound_statement "{\n      uVar1 = (int)puVar3 - (int)puVar9;\n    }" ({ "{") (expression_statement "uVar1 = (int)puVar3 - (int)puVar9;" (assignment_expression "uVar1 = (int)puVar3 - (int)puVar9" (identifier "uVar1") (= "=") (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,uVar1,pcVar2,(uint)pcVar14);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);" (call_expression "_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14)" (identifier "_M_replace") (argument_list "(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14)" (( "(") (identifier "psVar5") (, ",") (cast_expression "(uint)puVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar9")) (, ",") (identifier "uVar1") (, ",") (identifier "pcVar2") (, ",") (cast_expression "(uint)pcVar14" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "pcVar14")) () ")"))) (; ";")))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar15 = *(code **)(pcVar13 + 0x171844);" (assignment_expression "pcVar15 = *(code **)(pcVar13 + 0x171844)" (identifier "pcVar15") (= "=") (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 "iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;" (assignment_expression "iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0" (identifier "iVar7") (= "=") (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 "(*pcVar15)();" (call_expression "(*pcVar15)()" (parenthesized_expression "(*pcVar15)" (( "(") (pointer_expression "*pcVar15" (* "*") (identifier "pcVar15")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = *(uint *)(psVar5 + 4);" (assignment_expression "uVar1 = *(uint *)(psVar5 + 4)" (identifier "uVar1") (= "=") (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 "uVar4 = iVar7 - *(int *)psVar5;" (assignment_expression "uVar4 = iVar7 - *(int *)psVar5" (identifier "uVar4") (= "=") (binary_expression "iVar7 - *(int *)psVar5" (identifier "iVar7") (- "-") (pointer_expression "*(int *)psVar5" (* "*") (cast_expression "(int *)psVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "psVar5"))))) (; ";")) (if_statement "if (uVar4 <= uVar1) {\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }" (if "if") (parenthesized_expression "(uVar4 <= uVar1)" (( "(") (binary_expression "uVar4 <= uVar1" (identifier "uVar4") (<= "<=") (identifier "uVar1")) () ")")) (compound_statement "{\n    uVar10 = (int)puVar9 - iVar7;\n    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }\n    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);\n    return;\n  }" ({ "{") (expression_statement "uVar10 = (int)puVar9 - iVar7;" (assignment_expression "uVar10 = (int)puVar9 - iVar7" (identifier "uVar10") (= "=") (binary_expression "(int)puVar9 - iVar7" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (- "-") (identifier "iVar7"))) (; ";")) (if_statement "if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {\n      uVar10 = uVar1 - uVar4;\n    }" (if "if") (parenthesized_expression "(uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7))" (( "(") (binary_expression "uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)" (binary_expression "uVar1 - uVar4" (identifier "uVar1") (- "-") (identifier "uVar4")) (<= "<=") (call_expression "(uint)((int)puVar9 - iVar7)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)puVar9 - iVar7)" (( "(") (binary_expression "(int)puVar9 - iVar7" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (- "-") (identifier "iVar7")) () ")")))) () ")")) (compound_statement "{\n      uVar10 = uVar1 - uVar4;\n    }" ({ "{") (expression_statement "uVar10 = uVar1 - uVar4;" (assignment_expression "uVar10 = uVar1 - uVar4" (identifier "uVar10") (= "=") (binary_expression "uVar1 - uVar4" (identifier "uVar1") (- "-") (identifier "uVar4"))) (; ";")) (} "}"))) (labeled_statement "std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);" (call_expression "_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1])" (identifier "_M_replace") (argument_list "(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1])" (( "(") (identifier "psVar5") (, ",") (identifier "uVar4") (, ",") (identifier "uVar10") (, ",") (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 **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1);" (call_expression "(**(code **)(pcVar15 + 0x1717d4))\n            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1)" (parenthesized_expression "(**(code **)(pcVar15 + 0x1717d4))" (( "(") (pointer_expression "**(code **)(pcVar15 + 0x1717d4)" (* "*") (pointer_expression "*(code **)(pcVar15 + 0x1717d4)" (* "*") (cast_expression "(code **)(pcVar15 + 0x1717d4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar15 + 0x1717d4)" (( "(") (binary_expression "pcVar15 + 0x1717d4" (identifier "pcVar15") (+ "+") (number_literal "0x1717d4")) () ")"))))) () ")")) (argument_list "(*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,\n             uVar1)" (( "(") (binary_expression "*(int *)(pcVar15 + 0x170ba0) + -0x25a4" (pointer_expression "*(int *)(pcVar15 + 0x170ba0)" (* "*") (cast_expression "(int *)(pcVar15 + 0x170ba0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar15 + 0x170ba0)" (( "(") (binary_expression "pcVar15 + 0x170ba0" (identifier "pcVar15") (+ "+") (number_literal "0x170ba0")) () ")")))) (+ "+") (number_literal "-0x25a4")) (, ",") (binary_expression "*(int *)(pcVar15 + 0x170a58) + 0x72f0" (pointer_expression "*(int *)(pcVar15 + 0x170a58)" (* "*") (cast_expression "(int *)(pcVar15 + 0x170a58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar15 + 0x170a58)" (( "(") (binary_expression "pcVar15 + 0x170a58" (identifier "pcVar15") (+ "+") (number_literal "0x170a58")) () ")")))) (+ "+") (number_literal "0x72f0")) (, ",") (identifier "uVar4") (, ",") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) 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: (primitive_type) 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: (primitive_type) 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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_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))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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)))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_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) (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) (identifier) (identifier) (identifier)))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (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: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (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)) (number_literal) (identifier) (identifier)))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (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 (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 (call_expression function: (parenthesized_expression (pointer_expression argument: (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: (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: (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) (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: (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: (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: (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) (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (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: (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: (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) (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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,char *param_2,uint param_3,char *param_4)

{
  uint uVar1;
  char *pcVar2;
  undefined4 *puVar3;
  uint uVar4;
  string *psVar5;
  char *pcVar6;
  int iVar7;
  char *pcVar8;
  undefined4 *puVar9;
  uint uVar10;
  char *pcVar11;
  undefined *puVar12;
  code *pcVar13;
  code *pcVar14;
  code *pcVar15;
  uint in_stack_ffffffa8;
  
  uVar1 = (*(code *)PTR_strlen_0043677c)(param_4);
  if (param_2 <= *(char **)(param_1 + 4)) {
    uVar4 = (int)*(char **)(param_1 + 4) - (int)param_2;
    if (uVar4 <= param_3) {
      param_3 = uVar4;
    }
    std::string::_M_replace(param_1,(uint)param_2,param_3,param_4,uVar1);
    return;
  }
  pcVar6 = PTR_DAT_0043226c + 0x72f0;
  psVar5 = (string *)(PTR_s_alize_xindex_004323b4 + -0x25a4);
  puVar12 = PTR___throw_out_of_range_fmt_00432fe8;
  (*(code *)PTR___throw_out_of_range_fmt_00432fe8)();
  uVar1 = (**(code **)(puVar12 + 0x1751d0))(param_2);
  pcVar11 = *(char **)(psVar5 + 4);
  if (pcVar6 <= pcVar11) {
    std::string::_M_replace(psVar5,(uint)pcVar6,0,param_2,uVar1);
    return;
  }
  pcVar13 = *(code **)(puVar12 + 0x171a3c);
  iVar7 = *(int *)(puVar12 + 0x170cc0) + 0x72f0;
  psVar5 = (string *)(*(int *)(puVar12 + 0x170e08) + -0x25a4);
  (*pcVar13)();
  pcVar15 = pcVar13 + 0x178b88;
  pcVar2 = *(char **)(psVar5 + 4);
  pcVar8 = (char *)(iVar7 - *(int *)psVar5);
  if (pcVar8 <= pcVar2) {
    uVar1 = (int)pcVar6 - iVar7;
    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar6 - iVar7)) {
      uVar1 = (int)pcVar2 - (int)pcVar8;
    }
    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar11,in_stack_ffffffa8);
    return;
  }
  pcVar14 = *(code **)(pcVar13 + 0x1719a0);
  psVar5 = (string *)(*(int *)(pcVar13 + 0x170d6c) + -0x25a4);
  iVar7 = *(int *)(pcVar13 + 0x170c24) + 0x72f0;
  (*pcVar14)();
  pcVar13 = pcVar14 + 0x178b1c;
  pcVar6 = *(char **)(psVar5 + 4);
  pcVar11 = (char *)(iVar7 - *(int *)psVar5);
  if (pcVar11 <= pcVar6) {
    uVar1 = (int)pcVar8 - iVar7;
    if ((uint)((int)pcVar6 - (int)pcVar11) <= (uint)((int)pcVar8 - iVar7)) {
      uVar1 = (int)pcVar6 - (int)pcVar11;
    }
    std::string::_M_replace(psVar5,(uint)pcVar11,uVar1,pcVar2,(int)pcVar15 - (int)pcVar2);
    return;
  }
  pcVar15 = *(code **)(pcVar14 + 0x171934);
  psVar5 = (string *)(*(int *)(pcVar14 + 0x170d00) + -0x25a4);
  iVar7 = *(int *)(pcVar14 + 0x170bb8) + 0x72f0;
  (*pcVar15)();
  pcVar14 = pcVar15 + 0x178aa4;
  pcVar2 = *(char **)(psVar5 + 4);
  pcVar8 = (char *)(iVar7 - *(int *)psVar5);
  if (pcVar8 <= pcVar2) {
    uVar1 = (int)pcVar11 - iVar7;
    if ((uint)((int)pcVar2 - (int)pcVar8) <= (uint)((int)pcVar11 - iVar7)) {
      uVar1 = (int)pcVar2 - (int)pcVar8;
    }
    std::string::_M_replace(psVar5,(uint)pcVar8,uVar1,pcVar6,(int)pcVar13 - (int)pcVar6);
    return;
  }
  pcVar13 = *(code **)(pcVar15 + 0x1718bc);
  psVar5 = (string *)(*(int *)(pcVar15 + 0x170c88) + -0x25a4);
  iVar7 = *(int *)(pcVar15 + 0x170b40) + 0x72f0;
  (*pcVar13)();
  puVar3 = *(undefined4 **)(psVar5 + 4);
  puVar9 = (undefined4 *)(iVar7 - *(int *)psVar5);
  if (puVar9 <= puVar3) {
    uVar1 = (int)pcVar8 - iVar7;
    if ((uint)((int)puVar3 - (int)puVar9) <= (uint)((int)pcVar8 - iVar7)) {
      uVar1 = (int)puVar3 - (int)puVar9;
    }
    std::string::_M_replace(psVar5,(uint)puVar9,uVar1,pcVar2,(uint)pcVar14);
    return;
  }
  pcVar15 = *(code **)(pcVar13 + 0x171844);
  psVar5 = (string *)(*(int *)(pcVar13 + 0x170c10) + -0x25a4);
  iVar7 = *(int *)(pcVar13 + 0x170ac8) + 0x72f0;
  (*pcVar15)();
  uVar1 = *(uint *)(psVar5 + 4);
  uVar4 = iVar7 - *(int *)psVar5;
  if (uVar4 <= uVar1) {
    uVar10 = (int)puVar9 - iVar7;
    if (uVar1 - uVar4 <= (uint)((int)puVar9 - iVar7)) {
      uVar10 = uVar1 - uVar4;
    }
    std::string::_M_replace(psVar5,uVar4,uVar10,(char *)*puVar3,puVar3[1]);
    return;
  }
  (**(code **)(pcVar15 + 0x1717d4))
            (*(int *)(pcVar15 + 0x170ba0) + -0x25a4,*(int *)(pcVar15 + 0x170a58) + 0x72f0,uVar4,
             uVar1);
  return;
}

