
/* std::string::_M_mutate(unsigned int, unsigned int, unsigned int) */

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

{
  int iVar1;
  undefined *puVar2;
  uint uVar3;
  undefined *puVar4;
  int iVar5;
  uint uVar6;
  undefined *puVar7;
  int iVar8;
  allocator aaStack_30 [8];
  
  puVar4 = PTR__S_empty_rep_storage_004322d0;
  iVar1 = *(int *)this;
  iVar8 = param_2 + param_1;
  uVar3 = *(uint *)(iVar1 + -8);
  uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);
  iVar5 = *(int *)(iVar1 + -0xc) - iVar8;
  if (uVar3 < uVar6) {
LAB_002fbf34:
    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);
    if (param_1 != 0) {
      if (param_1 == 1) {
        puVar2[0xc] = **(undefined1 **)this;
      }
      else {
        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);
      }
    }
    puVar7 = puVar2 + 0xc;
    iVar1 = *(int *)this;
    if (iVar5 != 0) {
      if (iVar5 == 1) {
        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);
        iVar1 = *(int *)this;
      }
      else {
        (*(code *)PTR_memcpy_00436788)
                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);
        iVar1 = *(int *)this;
      }
    }
    puVar4 = PTR__S_empty_rep_storage_004322d0;
    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {
      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
        iVar5 = *(int *)(iVar1 + -4);
        *(int *)(iVar1 + -4) = iVar5 + -1;
      }
      else {
        SYNC(0);
        iVar5 = *(int *)(iVar1 + -4);
        *(int *)(iVar1 + -4) = iVar5 + -1;
        SYNC(0);
      }
      if (iVar5 < 1) {
        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));
        *(undefined **)this = puVar7;
        goto LAB_002fbfa0;
      }
    }
    *(undefined **)this = puVar7;
  }
  else {
    SYNC(0);
    if (0 < *(int *)(iVar1 + -4)) {
      uVar3 = *(uint *)(*(int *)this + -8);
      goto LAB_002fbf34;
    }
    puVar7 = *(undefined **)this;
    if ((iVar5 == 0) || (param_3 == param_2)) {
      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {
        return;
      }
      goto LAB_002fc050;
    }
    if (iVar5 == 1) {
      puVar7[param_3 + param_1] = puVar7[iVar8];
      puVar7 = *(undefined **)this;
      puVar2 = puVar7 + -0xc;
    }
    else {
      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);
      puVar7 = *(undefined **)this;
      puVar2 = puVar7 + -0xc;
    }
  }
LAB_002fbfa0:
  if (puVar2 == puVar4) {
    return;
  }
LAB_002fc050:
  *(undefined4 *)(puVar7 + -4) = 0;
  *(uint *)(puVar7 + -0xc) = uVar6;
  puVar7[uVar6] = 0;
  return;
}



/* std::string::_M_mutate(unsigned int, unsigned int, unsigned int) */

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

{
  int iVar1;
  undefined *puVar2;
  uint uVar3;
  undefined *puVar4;
  int iVar5;
  uint uVar6;
  undefined *puVar7;
  int iVar8;
  allocator aaStack_30 [8];
  
  puVar4 = PTR__S_empty_rep_storage_004322d0;
  iVar1 = *(int *)this;
  iVar8 = param_2 + param_1;
  uVar3 = *(uint *)(iVar1 + -8);
  uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);
  iVar5 = *(int *)(iVar1 + -0xc) - iVar8;
  if (uVar3 < uVar6) {
LAB_002fbf34:
    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);
    if (param_1 != 0) {
      if (param_1 == 1) {
        puVar2[0xc] = **(undefined1 **)this;
      }
      else {
        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);
      }
    }
    puVar7 = puVar2 + 0xc;
    iVar1 = *(int *)this;
    if (iVar5 != 0) {
      if (iVar5 == 1) {
        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);
        iVar1 = *(int *)this;
      }
      else {
        (*(code *)PTR_memcpy_00436788)
                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);
        iVar1 = *(int *)this;
      }
    }
    puVar4 = PTR__S_empty_rep_storage_004322d0;
    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {
      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
        iVar5 = *(int *)(iVar1 + -4);
        *(int *)(iVar1 + -4) = iVar5 + -1;
      }
      else {
        SYNC(0);
        iVar5 = *(int *)(iVar1 + -4);
        *(int *)(iVar1 + -4) = iVar5 + -1;
        SYNC(0);
      }
      if (iVar5 < 1) {
        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));
        *(undefined **)this = puVar7;
        goto LAB_002fbfa0;
      }
    }
    *(undefined **)this = puVar7;
  }
  else {
    SYNC(0);
    if (0 < *(int *)(iVar1 + -4)) {
      uVar3 = *(uint *)(*(int *)this + -8);
      goto LAB_002fbf34;
    }
    puVar7 = *(undefined **)this;
    if ((iVar5 == 0) || (param_3 == param_2)) {
      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {
        return;
      }
      goto LAB_002fc050;
    }
    if (iVar5 == 1) {
      puVar7[param_3 + param_1] = puVar7[iVar8];
      puVar7 = *(undefined **)this;
      puVar2 = puVar7 + -0xc;
    }
    else {
      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);
      puVar7 = *(undefined **)this;
      puVar2 = puVar7 + -0xc;
    }
  }
LAB_002fbfa0:
  if (puVar2 == puVar4) {
    return;
  }
LAB_002fc050:
  *(undefined4 *)(puVar7 + -4) = 0;
  *(uint *)(puVar7 + -0xc) = uVar6;
  puVar7[uVar6] = 0;
  return;
}


lui gp,0x14
addiu gp,gp,-0x1ce0
addu gp,gp,t9
lw v0,0x0(a0)
addiu sp,sp,-0x48
sw s4,0x30(sp)
subu s4,a3,a2
sw s8,0x40(sp)
addu s8,a2,a1
sw s0,0x20(sp)
or s0,a1,zero
lw v1,-0xc(v0)
lw a1,-0x8(v0)
sw s3,0x2c(sp)
addu s4,s4,v1
sw gp,0x10(sp)
subu s3,v1,s8
sw s6,0x38(sp)
sltu v1,a1,s4
sw s5,0x34(sp)
sw ra,0x44(sp)
or s5,a0,zero
sw s7,0x3c(sp)
or s6,a3,zero
sw s2,0x28(sp)
bne v1,zero,0x002fbf34
_sw s1,0x24(sp)
lw v0,-0x4(v0)
sync 0x0
blez v0,0x002fc000
_nop
lw v0,0x0(a0)
lw a1,-0x8(v0)
lw t9,-0x407c(gp)
addiu s2,sp,0x18
or a0,s4,zero
bal 0x002fb9b0
_or a2,s2,zero
lw gp,0x10(sp)
bne s0,zero,0x002fbfd8
_or s1,v0,zero
addiu s7,v0,0xc
beq s3,zero,0x002fbf8c
_lw a1,0x0(s5)
addiu s0,s0,0xc
li v0,0x1
addu s0,s0,s6
addu a1,a1,s8
beq s3,v0,0x002fc09c
_addu a0,s1,s0
lw t9,-0x3a48(gp)
jalr t9
_or a2,s3,zero
lw gp,0x10(sp)
lw a1,0x0(s5)
lw s0,-0x7f00(gp)
addiu a0,a1,-0xc
bne a0,s0,0x002fc060
_lw v0,-0x3b54(gp)
sw s7,0x0(s5)
bne s1,s0,0x002fc050
_addu v0,s7,s4
lw ra,0x44(sp)
lw s8,0x40(sp)
lw s7,0x3c(sp)
lw s6,0x38(sp)
lw s5,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x48
li v0,0x1
lw a1,0x0(s5)
beq s0,v0,0x002fc0ac
_addiu s7,s1,0xc
lw t9,-0x3a48(gp)
or a2,s0,zero
jalr t9
_or a0,s7,zero
b 0x002fbf58
_lw gp,0x10(sp)
beq s3,zero,0x002fc03c
_lw s7,0x0(a0)
beq a3,a2,0x002fc03c
_addu a0,a3,s0
li v0,0x1
addu a0,s7,a0
beq s3,v0,0x002fc0c8
_addu a1,s7,s8
lw t9,-0x3af8(gp)
lw s0,-0x7f00(gp)
jalr t9
_or a2,s3,zero
lw s7,0x0(s5)
b 0x002fbfa0
_addiu s1,s7,-0xc
lw s0,-0x7f00(gp)
addiu s1,s7,-0xc
beq s1,s0,0x002fbfac
_lw ra,0x44(sp)
addu v0,s7,s4
sw zero,-0x4(s7)
sw s4,-0xc(s7)
b 0x002fbfa8
_sb zero,0x0(v0)
beq v0,zero,0x002fc0b8
_nop
sync 0x0
ll v0,-0x4(a1)
addiu at,v0,-0x1
sc at,-0x4(a1)
beq at,zero,0x002fc06c
_nop
sync 0x0
bgtz v0,0x002fbf9c
_lw t9,-0x7f84(gp)
bal 0x002fbc7c
_or a1,s2,zero
b 0x002fbfa0
_sw s7,0x0(s5)
lb v0,0x0(a1)
sb v0,0x0(a0)
b 0x002fbf8c
_lw a1,0x0(s5)
lb v0,0x0(a1)
b 0x002fbf58
_sb v0,0xc(s1)
lw v0,-0x4(a1)
addiu v1,v0,-0x1
b 0x002fc084
_sw v1,-0x4(a1)
lb v0,0x0(a1)
lw s0,-0x7f00(gp)
sb v0,0x0(a0)
lw s7,0x0(s5)
b 0x002fbfa0
_addiu s1,s7,-0xc
(translation_unit "/* std::string::_M_mutate(unsigned int, unsigned int, unsigned int) */\n\nvoid __thiscall std::string::_M_mutate(string *this,uint param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined *puVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  allocator aaStack_30 [8];\n  \n  puVar4 = PTR__S_empty_rep_storage_004322d0;\n  iVar1 = *(int *)this;\n  iVar8 = param_2 + param_1;\n  uVar3 = *(uint *)(iVar1 + -8);\n  uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar5 = *(int *)(iVar1 + -0xc) - iVar8;\n  if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }\nLAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }\nLAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;\n  *(uint *)(puVar7 + -0xc) = uVar6;\n  puVar7[uVar6] = 0;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::string::_M_mutate(string *this,uint param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined *puVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  allocator aaStack_30 [8];\n  \n  puVar4 = PTR__S_empty_rep_storage_004322d0;\n  iVar1 = *(int *)this;\n  iVar8 = param_2 + param_1;\n  uVar3 = *(uint *)(iVar1 + -8);\n  uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar5 = *(int *)(iVar1 + -0xc) - iVar8;\n  if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }\nLAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }\nLAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;\n  *(uint *)(puVar7 + -0xc) = uVar6;\n  puVar7[uVar6] = 0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "_M_mutate(string *this,uint param_1,uint param_2,uint param_3)" identifier (parameter_list "(string *this,uint param_1,uint param_2,uint 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 "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined *puVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  allocator aaStack_30 [8];\n  \n  puVar4 = PTR__S_empty_rep_storage_004322d0;\n  iVar1 = *(int *)this;\n  iVar8 = param_2 + param_1;\n  uVar3 = *(uint *)(iVar1 + -8);\n  uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar5 = *(int *)(iVar1 + -0xc) - iVar8;\n  if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }\nLAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }\nLAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;\n  *(uint *)(puVar7 + -0xc) = uVar6;\n  puVar7[uVar6] = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "allocator aaStack_30 [8];" type_identifier (array_declarator "aaStack_30 [8]" identifier [ number_literal ]) ;) (expression_statement "puVar4 = PTR__S_empty_rep_storage_004322d0;" (assignment_expression "puVar4 = PTR__S_empty_rep_storage_004322d0" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar8 = param_2 + param_1;" (assignment_expression "iVar8 = param_2 + param_1" identifier = (binary_expression "param_2 + param_1" identifier + identifier)) ;) (expression_statement "uVar3 = *(uint *)(iVar1 + -8);" (assignment_expression "uVar3 = *(uint *)(iVar1 + -8)" identifier = (pointer_expression "*(uint *)(iVar1 + -8)" * (cast_expression "(uint *)(iVar1 + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -8)" ( (binary_expression "iVar1 + -8" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);" (assignment_expression "uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc)" identifier = (binary_expression "(param_3 - param_2) + *(int *)(iVar1 + -0xc)" (parenthesized_expression "(param_3 - param_2)" ( (binary_expression "param_3 - param_2" identifier - identifier) )) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) )))))) ;) (expression_statement "iVar5 = *(int *)(iVar1 + -0xc) - iVar8;" (assignment_expression "iVar5 = *(int *)(iVar1 + -0xc) - iVar8" identifier = (binary_expression "*(int *)(iVar1 + -0xc) - iVar8" (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }" if (parenthesized_expression "(uVar3 < uVar6)" ( (binary_expression "uVar3 < uVar6" identifier < identifier) )) (compound_statement "{\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }" { (labeled_statement "LAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);" statement_identifier : (ERROR "puVar2 = (undefined *)_Rep::" (assignment_expression "puVar2 = (undefined *)_Rep" identifier = (cast_expression "(undefined *)_Rep" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "_S_create(uVar6,uVar3,aaStack_30);" (call_expression "_S_create(uVar6,uVar3,aaStack_30)" identifier (argument_list "(uVar6,uVar3,aaStack_30)" ( identifier , identifier , identifier ))) ;)) (if_statement "if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }" { (if_statement "if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n        puVar2[0xc] = **(undefined1 **)this;\n      }" { (expression_statement "puVar2[0xc] = **(undefined1 **)this;" (assignment_expression "puVar2[0xc] = **(undefined1 **)this" (subscript_expression "puVar2[0xc]" identifier [ number_literal ]) = (pointer_expression "**(undefined1 **)this" * (pointer_expression "*(undefined1 **)this" * (cast_expression "(undefined1 **)this" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)))) ;) }) (else_clause "else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }" else (compound_statement "{\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }" { (expression_statement "(*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);" (call_expression "(*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2 + 0xc,*(undefined1 **)this,param_1)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) , (pointer_expression "*(undefined1 **)this" * (cast_expression "(undefined1 **)this" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier ))) ;) }))) })) (expression_statement "puVar7 = puVar2 + 0xc;" (assignment_expression "puVar7 = puVar2 + 0xc" identifier = (binary_expression "puVar2 + 0xc" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }" { (if_statement "if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }" { (expression_statement "puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);" (assignment_expression "puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8)" (subscript_expression "puVar2[param_1 + 0xc + param_3]" identifier [ (binary_expression "param_1 + 0xc + param_3" (binary_expression "param_1 + 0xc" identifier + number_literal) + identifier) ]) = (pointer_expression "*(undefined1 *)(iVar1 + iVar8)" * (cast_expression "(undefined1 *)(iVar1 + iVar8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar8)" ( (binary_expression "iVar1 + iVar8" identifier + identifier) ))))) ;) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }) (else_clause "else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }" else (compound_statement "{\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }" { (expression_statement "(*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);" (call_expression "(*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5)" ( (binary_expression "puVar2 + param_1 + 0xc + param_3" (binary_expression "puVar2 + param_1 + 0xc" (binary_expression "puVar2 + param_1" identifier + identifier) + number_literal) + identifier) , (cast_expression "(undefined1 *)(iVar1 + iVar8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar8)" ( (binary_expression "iVar1 + iVar8" identifier + identifier) ))) , identifier ))) ;) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) })) (expression_statement "puVar4 = PTR__S_empty_rep_storage_004322d0;" (assignment_expression "puVar4 = PTR__S_empty_rep_storage_004322d0" identifier = identifier) ;) (if_statement "if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }" if (parenthesized_expression "((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "(allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" (cast_expression "(allocator *)(iVar1 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }" if (parenthesized_expression "(PTR___pthread_key_create_0043667c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0043667c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }" { (expression_statement "iVar5 = *(int *)(iVar1 + -4);" (assignment_expression "iVar5 = *(int *)(iVar1 + -4)" identifier = (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + -4) = iVar5 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar5 + -1" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }" else (compound_statement "{\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar5 = *(int *)(iVar1 + -4);" (assignment_expression "iVar5 = *(int *)(iVar1 + -4)" identifier = (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + -4) = iVar5 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar5 + -1" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }" { (labeled_statement "_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(iVar1 + -0xc));" (call_expression "_M_destroy((allocator *)(iVar1 + -0xc))" identifier (argument_list "((allocator *)(iVar1 + -0xc))" ( (cast_expression "(allocator *)(iVar1 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))) ))) ;)) (expression_statement "*(undefined **)this = puVar7;" (assignment_expression "*(undefined **)this = puVar7" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (goto_statement "goto LAB_002fbfa0;" goto statement_identifier ;) })) })) (expression_statement "*(undefined **)this = puVar7;" (assignment_expression "*(undefined **)this = puVar7" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) }) (else_clause "else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }" else (compound_statement "{\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (if_statement "if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }" if (parenthesized_expression "(0 < *(int *)(iVar1 + -4))" ( (binary_expression "0 < *(int *)(iVar1 + -4)" number_literal < (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) )) (compound_statement "{\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }" { (expression_statement "uVar3 = *(uint *)(*(int *)this + -8);" (assignment_expression "uVar3 = *(uint *)(*(int *)this + -8)" identifier = (pointer_expression "*(uint *)(*(int *)this + -8)" * (cast_expression "(uint *)(*(int *)this + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -8)" ( (binary_expression "*(int *)this + -8" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (goto_statement "goto LAB_002fbf34;" goto statement_identifier ;) })) (expression_statement "puVar7 = *(undefined **)this;" (assignment_expression "puVar7 = *(undefined **)this" identifier = (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }" if (parenthesized_expression "((iVar5 == 0) || (param_3 == param_2))" ( (binary_expression "(iVar5 == 0) || (param_3 == param_2)" (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_3 == param_2)" ( (binary_expression "param_3 == param_2" identifier == identifier) ))) )) (compound_statement "{\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }" { (if_statement "if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }" if (parenthesized_expression "(puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0" (binary_expression "puVar7 + -0xc" identifier + number_literal) == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_002fc050;" goto statement_identifier ;) })) (if_statement "if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" { (expression_statement "puVar7[param_3 + param_1] = puVar7[iVar8];" (assignment_expression "puVar7[param_3 + param_1] = puVar7[iVar8]" (subscript_expression "puVar7[param_3 + param_1]" identifier [ (binary_expression "param_3 + param_1" identifier + identifier) ]) = (subscript_expression "puVar7[iVar8]" identifier [ identifier ])) ;) (expression_statement "puVar7 = *(undefined **)this;" (assignment_expression "puVar7 = *(undefined **)this" identifier = (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar2 = puVar7 + -0xc;" (assignment_expression "puVar2 = puVar7 + -0xc" identifier = (binary_expression "puVar7 + -0xc" identifier + number_literal)) ;) }) (else_clause "else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" else (compound_statement "{\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" { (expression_statement "(*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);" (call_expression "(*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5)" (parenthesized_expression "(*(code *)PTR_memmove_004366d8)" ( (pointer_expression "*(code *)PTR_memmove_004366d8" * (cast_expression "(code *)PTR_memmove_004366d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5)" ( (binary_expression "puVar7 + param_3 + param_1" (binary_expression "puVar7 + param_3" identifier + identifier) + identifier) , (binary_expression "puVar7 + iVar8" identifier + identifier) , identifier ))) ;) (expression_statement "puVar7 = *(undefined **)this;" (assignment_expression "puVar7 = *(undefined **)this" identifier = (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar2 = puVar7 + -0xc;" (assignment_expression "puVar2 = puVar7 + -0xc" identifier = (binary_expression "puVar7 + -0xc" identifier + number_literal)) ;) }))) }))) (labeled_statement "LAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }" statement_identifier : (if_statement "if (puVar2 == puVar4) {\n    return;\n  }" if (parenthesized_expression "(puVar2 == puVar4)" ( (binary_expression "puVar2 == puVar4" identifier == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (labeled_statement "LAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(puVar7 + -4) = 0;" (assignment_expression "*(undefined4 *)(puVar7 + -4) = 0" (pointer_expression "*(undefined4 *)(puVar7 + -4)" * (cast_expression "(undefined4 *)(puVar7 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -4)" ( (binary_expression "puVar7 + -4" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "*(uint *)(puVar7 + -0xc) = uVar6;" (assignment_expression "*(uint *)(puVar7 + -0xc) = uVar6" (pointer_expression "*(uint *)(puVar7 + -0xc)" * (cast_expression "(uint *)(puVar7 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0xc)" ( (binary_expression "puVar7 + -0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar7[uVar6] = 0;" (assignment_expression "puVar7[uVar6] = 0" (subscript_expression "puVar7[uVar6]" identifier [ identifier ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::string::_M_mutate(unsigned int, unsigned int, unsigned int) */\n\nvoid __thiscall std::string::_M_mutate(string *this,uint param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined *puVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  allocator aaStack_30 [8];\n  \n  puVar4 = PTR__S_empty_rep_storage_004322d0;\n  iVar1 = *(int *)this;\n  iVar8 = param_2 + param_1;\n  uVar3 = *(uint *)(iVar1 + -8);\n  uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar5 = *(int *)(iVar1 + -0xc) - iVar8;\n  if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }\nLAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }\nLAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;\n  *(uint *)(puVar7 + -0xc) = uVar6;\n  puVar7[uVar6] = 0;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::string::_M_mutate(string *this,uint param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined *puVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  allocator aaStack_30 [8];\n  \n  puVar4 = PTR__S_empty_rep_storage_004322d0;\n  iVar1 = *(int *)this;\n  iVar8 = param_2 + param_1;\n  uVar3 = *(uint *)(iVar1 + -8);\n  uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar5 = *(int *)(iVar1 + -0xc) - iVar8;\n  if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }\nLAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }\nLAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;\n  *(uint *)(puVar7 + -0xc) = uVar6;\n  puVar7[uVar6] = 0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "_M_mutate(string *this,uint param_1,uint param_2,uint param_3)" identifier (parameter_list "(string *this,uint param_1,uint param_2,uint 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 "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined *puVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  allocator aaStack_30 [8];\n  \n  puVar4 = PTR__S_empty_rep_storage_004322d0;\n  iVar1 = *(int *)this;\n  iVar8 = param_2 + param_1;\n  uVar3 = *(uint *)(iVar1 + -8);\n  uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar5 = *(int *)(iVar1 + -0xc) - iVar8;\n  if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }\nLAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }\nLAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;\n  *(uint *)(puVar7 + -0xc) = uVar6;\n  puVar7[uVar6] = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "allocator aaStack_30 [8];" type_identifier (array_declarator "aaStack_30 [8]" identifier [ number_literal ]) ;) (expression_statement "puVar4 = PTR__S_empty_rep_storage_004322d0;" (assignment_expression "puVar4 = PTR__S_empty_rep_storage_004322d0" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar8 = param_2 + param_1;" (assignment_expression "iVar8 = param_2 + param_1" identifier = (binary_expression "param_2 + param_1" identifier + identifier)) ;) (expression_statement "uVar3 = *(uint *)(iVar1 + -8);" (assignment_expression "uVar3 = *(uint *)(iVar1 + -8)" identifier = (pointer_expression "*(uint *)(iVar1 + -8)" * (cast_expression "(uint *)(iVar1 + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -8)" ( (binary_expression "iVar1 + -8" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);" (assignment_expression "uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc)" identifier = (binary_expression "(param_3 - param_2) + *(int *)(iVar1 + -0xc)" (parenthesized_expression "(param_3 - param_2)" ( (binary_expression "param_3 - param_2" identifier - identifier) )) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) )))))) ;) (expression_statement "iVar5 = *(int *)(iVar1 + -0xc) - iVar8;" (assignment_expression "iVar5 = *(int *)(iVar1 + -0xc) - iVar8" identifier = (binary_expression "*(int *)(iVar1 + -0xc) - iVar8" (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }" if (parenthesized_expression "(uVar3 < uVar6)" ( (binary_expression "uVar3 < uVar6" identifier < identifier) )) (compound_statement "{\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }" { (labeled_statement "LAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);" statement_identifier : (ERROR "puVar2 = (undefined *)_Rep::" (assignment_expression "puVar2 = (undefined *)_Rep" identifier = (cast_expression "(undefined *)_Rep" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "_S_create(uVar6,uVar3,aaStack_30);" (call_expression "_S_create(uVar6,uVar3,aaStack_30)" identifier (argument_list "(uVar6,uVar3,aaStack_30)" ( identifier , identifier , identifier ))) ;)) (if_statement "if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }" { (if_statement "if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n        puVar2[0xc] = **(undefined1 **)this;\n      }" { (expression_statement "puVar2[0xc] = **(undefined1 **)this;" (assignment_expression "puVar2[0xc] = **(undefined1 **)this" (subscript_expression "puVar2[0xc]" identifier [ number_literal ]) = (pointer_expression "**(undefined1 **)this" * (pointer_expression "*(undefined1 **)this" * (cast_expression "(undefined1 **)this" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)))) ;) }) (else_clause "else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }" else (compound_statement "{\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }" { (expression_statement "(*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);" (call_expression "(*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2 + 0xc,*(undefined1 **)this,param_1)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) , (pointer_expression "*(undefined1 **)this" * (cast_expression "(undefined1 **)this" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier ))) ;) }))) })) (expression_statement "puVar7 = puVar2 + 0xc;" (assignment_expression "puVar7 = puVar2 + 0xc" identifier = (binary_expression "puVar2 + 0xc" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }" { (if_statement "if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }" { (expression_statement "puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);" (assignment_expression "puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8)" (subscript_expression "puVar2[param_1 + 0xc + param_3]" identifier [ (binary_expression "param_1 + 0xc + param_3" (binary_expression "param_1 + 0xc" identifier + number_literal) + identifier) ]) = (pointer_expression "*(undefined1 *)(iVar1 + iVar8)" * (cast_expression "(undefined1 *)(iVar1 + iVar8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar8)" ( (binary_expression "iVar1 + iVar8" identifier + identifier) ))))) ;) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }) (else_clause "else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }" else (compound_statement "{\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }" { (expression_statement "(*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);" (call_expression "(*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5)" ( (binary_expression "puVar2 + param_1 + 0xc + param_3" (binary_expression "puVar2 + param_1 + 0xc" (binary_expression "puVar2 + param_1" identifier + identifier) + number_literal) + identifier) , (cast_expression "(undefined1 *)(iVar1 + iVar8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar8)" ( (binary_expression "iVar1 + iVar8" identifier + identifier) ))) , identifier ))) ;) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) })) (expression_statement "puVar4 = PTR__S_empty_rep_storage_004322d0;" (assignment_expression "puVar4 = PTR__S_empty_rep_storage_004322d0" identifier = identifier) ;) (if_statement "if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }" if (parenthesized_expression "((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "(allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" (cast_expression "(allocator *)(iVar1 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }" if (parenthesized_expression "(PTR___pthread_key_create_0043667c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0043667c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }" { (expression_statement "iVar5 = *(int *)(iVar1 + -4);" (assignment_expression "iVar5 = *(int *)(iVar1 + -4)" identifier = (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + -4) = iVar5 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar5 + -1" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }" else (compound_statement "{\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar5 = *(int *)(iVar1 + -4);" (assignment_expression "iVar5 = *(int *)(iVar1 + -4)" identifier = (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + -4) = iVar5 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar5 + -1" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }" { (labeled_statement "_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(iVar1 + -0xc));" (call_expression "_M_destroy((allocator *)(iVar1 + -0xc))" identifier (argument_list "((allocator *)(iVar1 + -0xc))" ( (cast_expression "(allocator *)(iVar1 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))) ))) ;)) (expression_statement "*(undefined **)this = puVar7;" (assignment_expression "*(undefined **)this = puVar7" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (goto_statement "goto LAB_002fbfa0;" goto statement_identifier ;) })) })) (expression_statement "*(undefined **)this = puVar7;" (assignment_expression "*(undefined **)this = puVar7" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) }) (else_clause "else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }" else (compound_statement "{\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (if_statement "if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }" if (parenthesized_expression "(0 < *(int *)(iVar1 + -4))" ( (binary_expression "0 < *(int *)(iVar1 + -4)" number_literal < (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) )) (compound_statement "{\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }" { (expression_statement "uVar3 = *(uint *)(*(int *)this + -8);" (assignment_expression "uVar3 = *(uint *)(*(int *)this + -8)" identifier = (pointer_expression "*(uint *)(*(int *)this + -8)" * (cast_expression "(uint *)(*(int *)this + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -8)" ( (binary_expression "*(int *)this + -8" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (goto_statement "goto LAB_002fbf34;" goto statement_identifier ;) })) (expression_statement "puVar7 = *(undefined **)this;" (assignment_expression "puVar7 = *(undefined **)this" identifier = (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }" if (parenthesized_expression "((iVar5 == 0) || (param_3 == param_2))" ( (binary_expression "(iVar5 == 0) || (param_3 == param_2)" (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_3 == param_2)" ( (binary_expression "param_3 == param_2" identifier == identifier) ))) )) (compound_statement "{\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }" { (if_statement "if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }" if (parenthesized_expression "(puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0" (binary_expression "puVar7 + -0xc" identifier + number_literal) == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_002fc050;" goto statement_identifier ;) })) (if_statement "if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" { (expression_statement "puVar7[param_3 + param_1] = puVar7[iVar8];" (assignment_expression "puVar7[param_3 + param_1] = puVar7[iVar8]" (subscript_expression "puVar7[param_3 + param_1]" identifier [ (binary_expression "param_3 + param_1" identifier + identifier) ]) = (subscript_expression "puVar7[iVar8]" identifier [ identifier ])) ;) (expression_statement "puVar7 = *(undefined **)this;" (assignment_expression "puVar7 = *(undefined **)this" identifier = (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar2 = puVar7 + -0xc;" (assignment_expression "puVar2 = puVar7 + -0xc" identifier = (binary_expression "puVar7 + -0xc" identifier + number_literal)) ;) }) (else_clause "else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" else (compound_statement "{\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" { (expression_statement "(*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);" (call_expression "(*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5)" (parenthesized_expression "(*(code *)PTR_memmove_004366d8)" ( (pointer_expression "*(code *)PTR_memmove_004366d8" * (cast_expression "(code *)PTR_memmove_004366d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5)" ( (binary_expression "puVar7 + param_3 + param_1" (binary_expression "puVar7 + param_3" identifier + identifier) + identifier) , (binary_expression "puVar7 + iVar8" identifier + identifier) , identifier ))) ;) (expression_statement "puVar7 = *(undefined **)this;" (assignment_expression "puVar7 = *(undefined **)this" identifier = (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar2 = puVar7 + -0xc;" (assignment_expression "puVar2 = puVar7 + -0xc" identifier = (binary_expression "puVar7 + -0xc" identifier + number_literal)) ;) }))) }))) (labeled_statement "LAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }" statement_identifier : (if_statement "if (puVar2 == puVar4) {\n    return;\n  }" if (parenthesized_expression "(puVar2 == puVar4)" ( (binary_expression "puVar2 == puVar4" identifier == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (labeled_statement "LAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(puVar7 + -4) = 0;" (assignment_expression "*(undefined4 *)(puVar7 + -4) = 0" (pointer_expression "*(undefined4 *)(puVar7 + -4)" * (cast_expression "(undefined4 *)(puVar7 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -4)" ( (binary_expression "puVar7 + -4" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "*(uint *)(puVar7 + -0xc) = uVar6;" (assignment_expression "*(uint *)(puVar7 + -0xc) = uVar6" (pointer_expression "*(uint *)(puVar7 + -0xc)" * (cast_expression "(uint *)(puVar7 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0xc)" ( (binary_expression "puVar7 + -0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar7[uVar6] = 0;" (assignment_expression "puVar7[uVar6] = 0" (subscript_expression "puVar7[uVar6]" identifier [ identifier ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __thiscall std::string::_M_mutate(string *this,uint param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined *puVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  allocator aaStack_30 [8];\n  \n  puVar4 = PTR__S_empty_rep_storage_004322d0;\n  iVar1 = *(int *)this;\n  iVar8 = param_2 + param_1;\n  uVar3 = *(uint *)(iVar1 + -8);\n  uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar5 = *(int *)(iVar1 + -0xc) - iVar8;\n  if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }\nLAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }\nLAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;\n  *(uint *)(puVar7 + -0xc) = uVar6;\n  puVar7[uVar6] = 0;\n  return;\n}\n\n" (function_definition "void __thiscall std::string::_M_mutate(string *this,uint param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined *puVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  allocator aaStack_30 [8];\n  \n  puVar4 = PTR__S_empty_rep_storage_004322d0;\n  iVar1 = *(int *)this;\n  iVar8 = param_2 + param_1;\n  uVar3 = *(uint *)(iVar1 + -8);\n  uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar5 = *(int *)(iVar1 + -0xc) - iVar8;\n  if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }\nLAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }\nLAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;\n  *(uint *)(puVar7 + -0xc) = uVar6;\n  puVar7[uVar6] = 0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "_M_mutate(string *this,uint param_1,uint param_2,uint param_3)" identifier (parameter_list "(string *this,uint param_1,uint param_2,uint 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 "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined *puVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  allocator aaStack_30 [8];\n  \n  puVar4 = PTR__S_empty_rep_storage_004322d0;\n  iVar1 = *(int *)this;\n  iVar8 = param_2 + param_1;\n  uVar3 = *(uint *)(iVar1 + -8);\n  uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar5 = *(int *)(iVar1 + -0xc) - iVar8;\n  if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }\nLAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }\nLAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;\n  *(uint *)(puVar7 + -0xc) = uVar6;\n  puVar7[uVar6] = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "allocator aaStack_30 [8];" type_identifier (array_declarator "aaStack_30 [8]" identifier [ number_literal ]) ;) (expression_statement "puVar4 = PTR__S_empty_rep_storage_004322d0;" (assignment_expression "puVar4 = PTR__S_empty_rep_storage_004322d0" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar8 = param_2 + param_1;" (assignment_expression "iVar8 = param_2 + param_1" identifier = (binary_expression "param_2 + param_1" identifier + identifier)) ;) (expression_statement "uVar3 = *(uint *)(iVar1 + -8);" (assignment_expression "uVar3 = *(uint *)(iVar1 + -8)" identifier = (pointer_expression "*(uint *)(iVar1 + -8)" * (cast_expression "(uint *)(iVar1 + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -8)" ( (binary_expression "iVar1 + -8" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);" (assignment_expression "uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc)" identifier = (binary_expression "(param_3 - param_2) + *(int *)(iVar1 + -0xc)" (parenthesized_expression "(param_3 - param_2)" ( (binary_expression "param_3 - param_2" identifier - identifier) )) + (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) )))))) ;) (expression_statement "iVar5 = *(int *)(iVar1 + -0xc) - iVar8;" (assignment_expression "iVar5 = *(int *)(iVar1 + -0xc) - iVar8" identifier = (binary_expression "*(int *)(iVar1 + -0xc) - iVar8" (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }" if (parenthesized_expression "(uVar3 < uVar6)" ( (binary_expression "uVar3 < uVar6" identifier < identifier) )) (compound_statement "{\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }" { (labeled_statement "LAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);" statement_identifier : (ERROR "puVar2 = (undefined *)_Rep::" (assignment_expression "puVar2 = (undefined *)_Rep" identifier = (cast_expression "(undefined *)_Rep" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "_S_create(uVar6,uVar3,aaStack_30);" (call_expression "_S_create(uVar6,uVar3,aaStack_30)" identifier (argument_list "(uVar6,uVar3,aaStack_30)" ( identifier , identifier , identifier ))) ;)) (if_statement "if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }" { (if_statement "if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n        puVar2[0xc] = **(undefined1 **)this;\n      }" { (expression_statement "puVar2[0xc] = **(undefined1 **)this;" (assignment_expression "puVar2[0xc] = **(undefined1 **)this" (subscript_expression "puVar2[0xc]" identifier [ number_literal ]) = (pointer_expression "**(undefined1 **)this" * (pointer_expression "*(undefined1 **)this" * (cast_expression "(undefined1 **)this" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)))) ;) }) (else_clause "else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }" else (compound_statement "{\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }" { (expression_statement "(*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);" (call_expression "(*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2 + 0xc,*(undefined1 **)this,param_1)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) , (pointer_expression "*(undefined1 **)this" * (cast_expression "(undefined1 **)this" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier ))) ;) }))) })) (expression_statement "puVar7 = puVar2 + 0xc;" (assignment_expression "puVar7 = puVar2 + 0xc" identifier = (binary_expression "puVar2 + 0xc" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }" { (if_statement "if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }" { (expression_statement "puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);" (assignment_expression "puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8)" (subscript_expression "puVar2[param_1 + 0xc + param_3]" identifier [ (binary_expression "param_1 + 0xc + param_3" (binary_expression "param_1 + 0xc" identifier + number_literal) + identifier) ]) = (pointer_expression "*(undefined1 *)(iVar1 + iVar8)" * (cast_expression "(undefined1 *)(iVar1 + iVar8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar8)" ( (binary_expression "iVar1 + iVar8" identifier + identifier) ))))) ;) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }) (else_clause "else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }" else (compound_statement "{\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }" { (expression_statement "(*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);" (call_expression "(*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5)" ( (binary_expression "puVar2 + param_1 + 0xc + param_3" (binary_expression "puVar2 + param_1 + 0xc" (binary_expression "puVar2 + param_1" identifier + identifier) + number_literal) + identifier) , (cast_expression "(undefined1 *)(iVar1 + iVar8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar8)" ( (binary_expression "iVar1 + iVar8" identifier + identifier) ))) , identifier ))) ;) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" identifier = (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) })) (expression_statement "puVar4 = PTR__S_empty_rep_storage_004322d0;" (assignment_expression "puVar4 = PTR__S_empty_rep_storage_004322d0" identifier = identifier) ;) (if_statement "if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }" if (parenthesized_expression "((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "(allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" (cast_expression "(allocator *)(iVar1 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }" if (parenthesized_expression "(PTR___pthread_key_create_0043667c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0043667c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }" { (expression_statement "iVar5 = *(int *)(iVar1 + -4);" (assignment_expression "iVar5 = *(int *)(iVar1 + -4)" identifier = (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + -4) = iVar5 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar5 + -1" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }" else (compound_statement "{\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar5 = *(int *)(iVar1 + -4);" (assignment_expression "iVar5 = *(int *)(iVar1 + -4)" identifier = (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + -4) = iVar5 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar5 + -1" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }" { (labeled_statement "_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(iVar1 + -0xc));" (call_expression "_M_destroy((allocator *)(iVar1 + -0xc))" identifier (argument_list "((allocator *)(iVar1 + -0xc))" ( (cast_expression "(allocator *)(iVar1 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))) ))) ;)) (expression_statement "*(undefined **)this = puVar7;" (assignment_expression "*(undefined **)this = puVar7" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (goto_statement "goto LAB_002fbfa0;" goto statement_identifier ;) })) })) (expression_statement "*(undefined **)this = puVar7;" (assignment_expression "*(undefined **)this = puVar7" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) }) (else_clause "else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }" else (compound_statement "{\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (if_statement "if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }" if (parenthesized_expression "(0 < *(int *)(iVar1 + -4))" ( (binary_expression "0 < *(int *)(iVar1 + -4)" number_literal < (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) )) (compound_statement "{\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }" { (expression_statement "uVar3 = *(uint *)(*(int *)this + -8);" (assignment_expression "uVar3 = *(uint *)(*(int *)this + -8)" identifier = (pointer_expression "*(uint *)(*(int *)this + -8)" * (cast_expression "(uint *)(*(int *)this + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -8)" ( (binary_expression "*(int *)this + -8" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (goto_statement "goto LAB_002fbf34;" goto statement_identifier ;) })) (expression_statement "puVar7 = *(undefined **)this;" (assignment_expression "puVar7 = *(undefined **)this" identifier = (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }" if (parenthesized_expression "((iVar5 == 0) || (param_3 == param_2))" ( (binary_expression "(iVar5 == 0) || (param_3 == param_2)" (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_3 == param_2)" ( (binary_expression "param_3 == param_2" identifier == identifier) ))) )) (compound_statement "{\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }" { (if_statement "if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }" if (parenthesized_expression "(puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0)" ( (binary_expression "puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0" (binary_expression "puVar7 + -0xc" identifier + number_literal) == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_002fc050;" goto statement_identifier ;) })) (if_statement "if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" { (expression_statement "puVar7[param_3 + param_1] = puVar7[iVar8];" (assignment_expression "puVar7[param_3 + param_1] = puVar7[iVar8]" (subscript_expression "puVar7[param_3 + param_1]" identifier [ (binary_expression "param_3 + param_1" identifier + identifier) ]) = (subscript_expression "puVar7[iVar8]" identifier [ identifier ])) ;) (expression_statement "puVar7 = *(undefined **)this;" (assignment_expression "puVar7 = *(undefined **)this" identifier = (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar2 = puVar7 + -0xc;" (assignment_expression "puVar2 = puVar7 + -0xc" identifier = (binary_expression "puVar7 + -0xc" identifier + number_literal)) ;) }) (else_clause "else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" else (compound_statement "{\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" { (expression_statement "(*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);" (call_expression "(*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5)" (parenthesized_expression "(*(code *)PTR_memmove_004366d8)" ( (pointer_expression "*(code *)PTR_memmove_004366d8" * (cast_expression "(code *)PTR_memmove_004366d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5)" ( (binary_expression "puVar7 + param_3 + param_1" (binary_expression "puVar7 + param_3" identifier + identifier) + identifier) , (binary_expression "puVar7 + iVar8" identifier + identifier) , identifier ))) ;) (expression_statement "puVar7 = *(undefined **)this;" (assignment_expression "puVar7 = *(undefined **)this" identifier = (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar2 = puVar7 + -0xc;" (assignment_expression "puVar2 = puVar7 + -0xc" identifier = (binary_expression "puVar7 + -0xc" identifier + number_literal)) ;) }))) }))) (labeled_statement "LAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }" statement_identifier : (if_statement "if (puVar2 == puVar4) {\n    return;\n  }" if (parenthesized_expression "(puVar2 == puVar4)" ( (binary_expression "puVar2 == puVar4" identifier == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (labeled_statement "LAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(puVar7 + -4) = 0;" (assignment_expression "*(undefined4 *)(puVar7 + -4) = 0" (pointer_expression "*(undefined4 *)(puVar7 + -4)" * (cast_expression "(undefined4 *)(puVar7 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -4)" ( (binary_expression "puVar7 + -4" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "*(uint *)(puVar7 + -0xc) = uVar6;" (assignment_expression "*(uint *)(puVar7 + -0xc) = uVar6" (pointer_expression "*(uint *)(puVar7 + -0xc)" * (cast_expression "(uint *)(puVar7 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + -0xc)" ( (binary_expression "puVar7 + -0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar7[uVar6] = 0;" (assignment_expression "puVar7[uVar6] = 0" (subscript_expression "puVar7[uVar6]" identifier [ identifier ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (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 (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (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) )))) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (ERROR (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) : :) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , IDENT ))) ;) }))) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT + LIT) + IDENT) ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression (binary_expression IDENT + IDENT) + LIT) + IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) }))) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) = IDENT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == IDENT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == IDENT) )) (compound_statement { (return_statement return ;) })) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + IDENT) ]) = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + IDENT) , (binary_expression IDENT + IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void __thiscall std::string::_M_mutate(string *this,uint param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined *puVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  allocator aaStack_30 [8];\n  \n  puVar4 = PTR__S_empty_rep_storage_004322d0;\n  iVar1 = *(int *)this;\n  iVar8 = param_2 + param_1;\n  uVar3 = *(uint *)(iVar1 + -8);\n  uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar5 = *(int *)(iVar1 + -0xc) - iVar8;\n  if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }\nLAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }\nLAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;\n  *(uint *)(puVar7 + -0xc) = uVar6;\n  puVar7[uVar6] = 0;\n  return;\n}" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::string::" (identifier "std") (: ":") (: ":") (identifier "string") (: ":") (: ":")) (function_declarator "_M_mutate(string *this,uint param_1,uint param_2,uint param_3)" (identifier "_M_mutate") (parameter_list "(string *this,uint param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "string *this" (type_identifier "string") (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined *puVar4;\n  int iVar5;\n  uint uVar6;\n  undefined *puVar7;\n  int iVar8;\n  allocator aaStack_30 [8];\n  \n  puVar4 = PTR__S_empty_rep_storage_004322d0;\n  iVar1 = *(int *)this;\n  iVar8 = param_2 + param_1;\n  uVar3 = *(uint *)(iVar1 + -8);\n  uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar5 = *(int *)(iVar1 + -0xc) - iVar8;\n  if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }\nLAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }\nLAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;\n  *(uint *)(puVar7 + -0xc) = uVar6;\n  puVar7[uVar6] = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "allocator aaStack_30 [8];" (type_identifier "allocator") (array_declarator "aaStack_30 [8]" (identifier "aaStack_30") ([ "[") (number_literal "8") (] "]")) (; ";")) (expression_statement "puVar4 = PTR__S_empty_rep_storage_004322d0;" (assignment_expression "puVar4 = PTR__S_empty_rep_storage_004322d0" (identifier "puVar4") (= "=") (identifier "PTR__S_empty_rep_storage_004322d0")) (; ";")) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" (identifier "iVar1") (= "=") (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this")))) (; ";")) (expression_statement "iVar8 = param_2 + param_1;" (assignment_expression "iVar8 = param_2 + param_1" (identifier "iVar8") (= "=") (binary_expression "param_2 + param_1" (identifier "param_2") (+ "+") (identifier "param_1"))) (; ";")) (expression_statement "uVar3 = *(uint *)(iVar1 + -8);" (assignment_expression "uVar3 = *(uint *)(iVar1 + -8)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(iVar1 + -8)" (* "*") (cast_expression "(uint *)(iVar1 + -8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -8)" (( "(") (binary_expression "iVar1 + -8" (identifier "iVar1") (+ "+") (number_literal "-8")) () ")"))))) (; ";")) (expression_statement "uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);" (assignment_expression "uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc)" (identifier "uVar6") (= "=") (binary_expression "(param_3 - param_2) + *(int *)(iVar1 + -0xc)" (parenthesized_expression "(param_3 - param_2)" (( "(") (binary_expression "param_3 - param_2" (identifier "param_3") (- "-") (identifier "param_2")) () ")")) (+ "+") (pointer_expression "*(int *)(iVar1 + -0xc)" (* "*") (cast_expression "(int *)(iVar1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")")))))) (; ";")) (expression_statement "iVar5 = *(int *)(iVar1 + -0xc) - iVar8;" (assignment_expression "iVar5 = *(int *)(iVar1 + -0xc) - iVar8" (identifier "iVar5") (= "=") (binary_expression "*(int *)(iVar1 + -0xc) - iVar8" (pointer_expression "*(int *)(iVar1 + -0xc)" (* "*") (cast_expression "(int *)(iVar1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")")))) (- "-") (identifier "iVar8"))) (; ";")) (if_statement "if (uVar3 < uVar6) {\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }" (if "if") (parenthesized_expression "(uVar3 < uVar6)" (( "(") (binary_expression "uVar3 < uVar6" (identifier "uVar3") (< "<") (identifier "uVar6")) () ")")) (compound_statement "{\nLAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);\n    if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }\n    puVar7 = puVar2 + 0xc;\n    iVar1 = *(int *)this;\n    if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }\n    puVar4 = PTR__S_empty_rep_storage_004322d0;\n    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }\n    *(undefined **)this = puVar7;\n  }" ({ "{") (labeled_statement "LAB_002fbf34:\n    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);" (statement_identifier "LAB_002fbf34") (: ":") (ERROR "puVar2 = (undefined *)_Rep::" (assignment_expression "puVar2 = (undefined *)_Rep" (identifier "puVar2") (= "=") (cast_expression "(undefined *)_Rep" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "_Rep"))) (: ":") (: ":")) (expression_statement "_S_create(uVar6,uVar3,aaStack_30);" (call_expression "_S_create(uVar6,uVar3,aaStack_30)" (identifier "_S_create") (argument_list "(uVar6,uVar3,aaStack_30)" (( "(") (identifier "uVar6") (, ",") (identifier "uVar3") (, ",") (identifier "aaStack_30") () ")"))) (; ";"))) (if_statement "if (param_1 != 0) {\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }\n    }" ({ "{") (if_statement "if (param_1 == 1) {\n        puVar2[0xc] = **(undefined1 **)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }" (if "if") (parenthesized_expression "(param_1 == 1)" (( "(") (binary_expression "param_1 == 1" (identifier "param_1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        puVar2[0xc] = **(undefined1 **)this;\n      }" ({ "{") (expression_statement "puVar2[0xc] = **(undefined1 **)this;" (assignment_expression "puVar2[0xc] = **(undefined1 **)this" (subscript_expression "puVar2[0xc]" (identifier "puVar2") ([ "[") (number_literal "0xc") (] "]")) (= "=") (pointer_expression "**(undefined1 **)this" (* "*") (pointer_expression "*(undefined1 **)this" (* "*") (cast_expression "(undefined1 **)this" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this"))))) (; ";")) (} "}")) (else_clause "else {\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }" (else "else") (compound_statement "{\n        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);\n      }" ({ "{") (expression_statement "(*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);" (call_expression "(*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" (( "(") (pointer_expression "*(code *)PTR_memcpy_00436788" (* "*") (cast_expression "(code *)PTR_memcpy_00436788" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_00436788"))) () ")")) (argument_list "(puVar2 + 0xc,*(undefined1 **)this,param_1)" (( "(") (binary_expression "puVar2 + 0xc" (identifier "puVar2") (+ "+") (number_literal "0xc")) (, ",") (pointer_expression "*(undefined1 **)this" (* "*") (cast_expression "(undefined1 **)this" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this"))) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "puVar7 = puVar2 + 0xc;" (assignment_expression "puVar7 = puVar2 + 0xc" (identifier "puVar7") (= "=") (binary_expression "puVar2 + 0xc" (identifier "puVar2") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" (identifier "iVar1") (= "=") (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this")))) (; ";")) (if_statement "if (iVar5 != 0) {\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }\n    }" ({ "{") (if_statement "if (iVar5 == 1) {\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }\n      else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }" (if "if") (parenthesized_expression "(iVar5 == 1)" (( "(") (binary_expression "iVar5 == 1" (identifier "iVar5") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);\n        iVar1 = *(int *)this;\n      }" ({ "{") (expression_statement "puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);" (assignment_expression "puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8)" (subscript_expression "puVar2[param_1 + 0xc + param_3]" (identifier "puVar2") ([ "[") (binary_expression "param_1 + 0xc + param_3" (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) (+ "+") (identifier "param_3")) (] "]")) (= "=") (pointer_expression "*(undefined1 *)(iVar1 + iVar8)" (* "*") (cast_expression "(undefined1 *)(iVar1 + iVar8)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar8)" (( "(") (binary_expression "iVar1 + iVar8" (identifier "iVar1") (+ "+") (identifier "iVar8")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" (identifier "iVar1") (= "=") (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this")))) (; ";")) (} "}")) (else_clause "else {\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }" (else "else") (compound_statement "{\n        (*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);\n        iVar1 = *(int *)this;\n      }" ({ "{") (expression_statement "(*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);" (call_expression "(*(code *)PTR_memcpy_00436788)\n                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" (( "(") (pointer_expression "*(code *)PTR_memcpy_00436788" (* "*") (cast_expression "(code *)PTR_memcpy_00436788" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_00436788"))) () ")")) (argument_list "(puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5)" (( "(") (binary_expression "puVar2 + param_1 + 0xc + param_3" (binary_expression "puVar2 + param_1 + 0xc" (binary_expression "puVar2 + param_1" (identifier "puVar2") (+ "+") (identifier "param_1")) (+ "+") (number_literal "0xc")) (+ "+") (identifier "param_3")) (, ",") (cast_expression "(undefined1 *)(iVar1 + iVar8)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar8)" (( "(") (binary_expression "iVar1 + iVar8" (identifier "iVar1") (+ "+") (identifier "iVar8")) () ")"))) (, ",") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)this;" (assignment_expression "iVar1 = *(int *)this" (identifier "iVar1") (= "=") (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this")))) (; ";")) (} "}")))) (} "}"))) (expression_statement "puVar4 = PTR__S_empty_rep_storage_004322d0;" (assignment_expression "puVar4 = PTR__S_empty_rep_storage_004322d0" (identifier "puVar4") (= "=") (identifier "PTR__S_empty_rep_storage_004322d0")) (; ";")) (if_statement "if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }" (if "if") (parenthesized_expression "((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0)" (( "(") (binary_expression "(allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" (cast_expression "(allocator *)(iVar1 + -0xc)" (( "(") (type_descriptor "allocator *" (type_identifier "allocator") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")"))) (!= "!=") (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322d0" (( "(") (type_descriptor "allocator *" (type_identifier "allocator") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__S_empty_rep_storage_004322d0"))) () ")")) (compound_statement "{\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }\n      if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }\n    }" ({ "{") (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_0043667c == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_0043667c == (undefined *)0x0" (identifier "PTR___pthread_key_create_0043667c") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n      }" ({ "{") (expression_statement "iVar5 = *(int *)(iVar1 + -4);" (assignment_expression "iVar5 = *(int *)(iVar1 + -4)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar1 + -4)" (* "*") (cast_expression "(int *)(iVar1 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4)" (( "(") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar1 + -4) = iVar5 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar5 + -1" (pointer_expression "*(int *)(iVar1 + -4)" (* "*") (cast_expression "(int *)(iVar1 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4)" (( "(") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) () ")")))) (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }" (else "else") (compound_statement "{\n        SYNC(0);\n        iVar5 = *(int *)(iVar1 + -4);\n        *(int *)(iVar1 + -4) = iVar5 + -1;\n        SYNC(0);\n      }" ({ "{") (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar5 = *(int *)(iVar1 + -4);" (assignment_expression "iVar5 = *(int *)(iVar1 + -4)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar1 + -4)" (* "*") (cast_expression "(int *)(iVar1 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4)" (( "(") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar1 + -4) = iVar5 + -1;" (assignment_expression "*(int *)(iVar1 + -4) = iVar5 + -1" (pointer_expression "*(int *)(iVar1 + -4)" (* "*") (cast_expression "(int *)(iVar1 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4)" (( "(") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) () ")")))) (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar5 < 1) {\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }" (if "if") (parenthesized_expression "(iVar5 < 1)" (( "(") (binary_expression "iVar5 < 1" (identifier "iVar5") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));\n        *(undefined **)this = puVar7;\n        goto LAB_002fbfa0;\n      }" ({ "{") (labeled_statement "_Rep::_M_destroy((allocator *)(iVar1 + -0xc));" (statement_identifier "_Rep") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_destroy((allocator *)(iVar1 + -0xc));" (call_expression "_M_destroy((allocator *)(iVar1 + -0xc))" (identifier "_M_destroy") (argument_list "((allocator *)(iVar1 + -0xc))" (( "(") (cast_expression "(allocator *)(iVar1 + -0xc)" (( "(") (type_descriptor "allocator *" (type_identifier "allocator") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")"))) () ")"))) (; ";"))) (expression_statement "*(undefined **)this = puVar7;" (assignment_expression "*(undefined **)this = puVar7" (pointer_expression "*(undefined **)this" (* "*") (cast_expression "(undefined **)this" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this"))) (= "=") (identifier "puVar7")) (; ";")) (goto_statement "goto LAB_002fbfa0;" (goto "goto") (statement_identifier "LAB_002fbfa0") (; ";")) (} "}"))) (} "}"))) (expression_statement "*(undefined **)this = puVar7;" (assignment_expression "*(undefined **)this = puVar7" (pointer_expression "*(undefined **)this" (* "*") (cast_expression "(undefined **)this" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this"))) (= "=") (identifier "puVar7")) (; ";")) (} "}")) (else_clause "else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }" (else "else") (compound_statement "{\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }\n    puVar7 = *(undefined **)this;\n    if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }\n    if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n  }" ({ "{") (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (if_statement "if (0 < *(int *)(iVar1 + -4)) {\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }" (if "if") (parenthesized_expression "(0 < *(int *)(iVar1 + -4))" (( "(") (binary_expression "0 < *(int *)(iVar1 + -4)" (number_literal "0") (< "<") (pointer_expression "*(int *)(iVar1 + -4)" (* "*") (cast_expression "(int *)(iVar1 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4)" (( "(") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) () ")"))))) () ")")) (compound_statement "{\n      uVar3 = *(uint *)(*(int *)this + -8);\n      goto LAB_002fbf34;\n    }" ({ "{") (expression_statement "uVar3 = *(uint *)(*(int *)this + -8);" (assignment_expression "uVar3 = *(uint *)(*(int *)this + -8)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(*(int *)this + -8)" (* "*") (cast_expression "(uint *)(*(int *)this + -8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)this + -8)" (( "(") (binary_expression "*(int *)this + -8" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (+ "+") (number_literal "-8")) () ")"))))) (; ";")) (goto_statement "goto LAB_002fbf34;" (goto "goto") (statement_identifier "LAB_002fbf34") (; ";")) (} "}"))) (expression_statement "puVar7 = *(undefined **)this;" (assignment_expression "puVar7 = *(undefined **)this" (identifier "puVar7") (= "=") (pointer_expression "*(undefined **)this" (* "*") (cast_expression "(undefined **)this" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this")))) (; ";")) (if_statement "if ((iVar5 == 0) || (param_3 == param_2)) {\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }" (if "if") (parenthesized_expression "((iVar5 == 0) || (param_3 == param_2))" (( "(") (binary_expression "(iVar5 == 0) || (param_3 == param_2)" (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_3 == param_2)" (( "(") (binary_expression "param_3 == param_2" (identifier "param_3") (== "==") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }\n      goto LAB_002fc050;\n    }" ({ "{") (if_statement "if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {\n        return;\n      }" (if "if") (parenthesized_expression "(puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0)" (( "(") (binary_expression "puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0" (binary_expression "puVar7 + -0xc" (identifier "puVar7") (+ "+") (number_literal "-0xc")) (== "==") (identifier "PTR__S_empty_rep_storage_004322d0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (goto_statement "goto LAB_002fc050;" (goto "goto") (statement_identifier "LAB_002fc050") (; ";")) (} "}"))) (if_statement "if (iVar5 == 1) {\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }\n    else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" (if "if") (parenthesized_expression "(iVar5 == 1)" (( "(") (binary_expression "iVar5 == 1" (identifier "iVar5") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      puVar7[param_3 + param_1] = puVar7[iVar8];\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" ({ "{") (expression_statement "puVar7[param_3 + param_1] = puVar7[iVar8];" (assignment_expression "puVar7[param_3 + param_1] = puVar7[iVar8]" (subscript_expression "puVar7[param_3 + param_1]" (identifier "puVar7") ([ "[") (binary_expression "param_3 + param_1" (identifier "param_3") (+ "+") (identifier "param_1")) (] "]")) (= "=") (subscript_expression "puVar7[iVar8]" (identifier "puVar7") ([ "[") (identifier "iVar8") (] "]"))) (; ";")) (expression_statement "puVar7 = *(undefined **)this;" (assignment_expression "puVar7 = *(undefined **)this" (identifier "puVar7") (= "=") (pointer_expression "*(undefined **)this" (* "*") (cast_expression "(undefined **)this" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this")))) (; ";")) (expression_statement "puVar2 = puVar7 + -0xc;" (assignment_expression "puVar2 = puVar7 + -0xc" (identifier "puVar2") (= "=") (binary_expression "puVar7 + -0xc" (identifier "puVar7") (+ "+") (number_literal "-0xc"))) (; ";")) (} "}")) (else_clause "else {\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" (else "else") (compound_statement "{\n      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);\n      puVar7 = *(undefined **)this;\n      puVar2 = puVar7 + -0xc;\n    }" ({ "{") (expression_statement "(*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);" (call_expression "(*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5)" (parenthesized_expression "(*(code *)PTR_memmove_004366d8)" (( "(") (pointer_expression "*(code *)PTR_memmove_004366d8" (* "*") (cast_expression "(code *)PTR_memmove_004366d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memmove_004366d8"))) () ")")) (argument_list "(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5)" (( "(") (binary_expression "puVar7 + param_3 + param_1" (binary_expression "puVar7 + param_3" (identifier "puVar7") (+ "+") (identifier "param_3")) (+ "+") (identifier "param_1")) (, ",") (binary_expression "puVar7 + iVar8" (identifier "puVar7") (+ "+") (identifier "iVar8")) (, ",") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "puVar7 = *(undefined **)this;" (assignment_expression "puVar7 = *(undefined **)this" (identifier "puVar7") (= "=") (pointer_expression "*(undefined **)this" (* "*") (cast_expression "(undefined **)this" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this")))) (; ";")) (expression_statement "puVar2 = puVar7 + -0xc;" (assignment_expression "puVar2 = puVar7 + -0xc" (identifier "puVar2") (= "=") (binary_expression "puVar7 + -0xc" (identifier "puVar7") (+ "+") (number_literal "-0xc"))) (; ";")) (} "}")))) (} "}")))) (labeled_statement "LAB_002fbfa0:\n  if (puVar2 == puVar4) {\n    return;\n  }" (statement_identifier "LAB_002fbfa0") (: ":") (if_statement "if (puVar2 == puVar4) {\n    return;\n  }" (if "if") (parenthesized_expression "(puVar2 == puVar4)" (( "(") (binary_expression "puVar2 == puVar4" (identifier "puVar2") (== "==") (identifier "puVar4")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}")))) (labeled_statement "LAB_002fc050:\n  *(undefined4 *)(puVar7 + -4) = 0;" (statement_identifier "LAB_002fc050") (: ":") (expression_statement "*(undefined4 *)(puVar7 + -4) = 0;" (assignment_expression "*(undefined4 *)(puVar7 + -4) = 0" (pointer_expression "*(undefined4 *)(puVar7 + -4)" (* "*") (cast_expression "(undefined4 *)(puVar7 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + -4)" (( "(") (binary_expression "puVar7 + -4" (identifier "puVar7") (+ "+") (number_literal "-4")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (expression_statement "*(uint *)(puVar7 + -0xc) = uVar6;" (assignment_expression "*(uint *)(puVar7 + -0xc) = uVar6" (pointer_expression "*(uint *)(puVar7 + -0xc)" (* "*") (cast_expression "(uint *)(puVar7 + -0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + -0xc)" (( "(") (binary_expression "puVar7 + -0xc" (identifier "puVar7") (+ "+") (number_literal "-0xc")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "puVar7[uVar6] = 0;" (assignment_expression "puVar7[uVar6] = 0" (subscript_expression "puVar7[uVar6]" (identifier "puVar7") ([ "[") (identifier "uVar6") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::string::_M_mutate(unsigned int, unsigned int, unsigned int) */

void __thiscall std::type_1::function_1(type_1 *this,type_2 var_2,type_2 var_1,type_2 var_4)

{
  int var_3;
  type_3 *var_9;
  type_2 var_6;
  type_3 *var_16;
  int var_10;
  type_2 var_7;
  type_3 *var_14;
  int var_5;
  type_4 aaStack_30 [8];
  
  var_16 = var_15;
  var_3 = *(int *)this;
  var_5 = var_1 + var_2;
  var_6 = *(type_2 *)(var_3 + -8);
  var_7 = (var_4 - var_1) + *(int *)(var_3 + -0xc);
  var_10 = *(int *)(var_3 + -0xc) - var_5;
  if (var_6 < var_7) {
LAB_002fbf34:
    var_9 = (type_3 *)_Rep::var_8(var_7,var_6,aaStack_30);
    if (var_2 != 0) {
      if (var_2 == 1) {
        var_9[0xc] = **(type_5 **)this;
      }
      else {
        (*(type_6 *)PTR_memcpy_00436788)(var_9 + 0xc,*(type_5 **)this,var_2);
      }
    }
    var_14 = var_9 + 0xc;
    var_3 = *(int *)this;
    if (var_10 != 0) {
      if (var_10 == 1) {
        var_9[var_2 + 0xc + var_4] = *(type_5 *)(var_3 + var_5);
        var_3 = *(int *)this;
      }
      else {
        (*(type_6 *)PTR_memcpy_00436788)
                  (var_9 + var_2 + 0xc + var_4,(type_5 *)(var_3 + var_5),var_10);
        var_3 = *(int *)this;
      }
    }
    var_16 = var_15;
    if ((type_4 *)(var_3 + -0xc) != (type_4 *)var_15) {
      if (var_11 == (type_3 *)0x0) {
        var_10 = *(int *)(var_3 + -4);
        *(int *)(var_3 + -4) = var_10 + -1;
      }
      else {
        var_12(0);
        var_10 = *(int *)(var_3 + -4);
        *(int *)(var_3 + -4) = var_10 + -1;
        var_12(0);
      }
      if (var_10 < 1) {
        _Rep::var_13((type_4 *)(var_3 + -0xc));
        *(type_3 **)this = var_14;
        goto LAB_002fbfa0;
      }
    }
    *(type_3 **)this = var_14;
  }
  else {
    var_12(0);
    if (0 < *(int *)(var_3 + -4)) {
      var_6 = *(type_2 *)(*(int *)this + -8);
      goto LAB_002fbf34;
    }
    var_14 = *(type_3 **)this;
    if ((var_10 == 0) || (var_4 == var_1)) {
      if (var_14 + -0xc == var_15) {
        return;
      }
      goto LAB_002fc050;
    }
    if (var_10 == 1) {
      var_14[var_4 + var_2] = var_14[var_5];
      var_14 = *(type_3 **)this;
      var_9 = var_14 + -0xc;
    }
    else {
      (*(type_6 *)PTR_memmove_004366d8)(var_14 + var_4 + var_2,var_14 + var_5,var_10);
      var_14 = *(type_3 **)this;
      var_9 = var_14 + -0xc;
    }
  }
LAB_002fbfa0:
  if (var_9 == var_16) {
    return;
  }
LAB_002fc050:
  *(type_7 *)(var_14 + -4) = 0;
  *(type_2 *)(var_14 + -0xc) = var_7;
  var_14[var_7] = 0;
  return;
}


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

/* std::string::MASKED(unsigned int, unsigned int, unsigned int) */

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

{
  int iVar1;
  undefined *puVar2;
  uint uVar3;
  undefined *puVar4;
  int iVar5;
  uint uVar6;
  undefined *puVar7;
  int iVar8;
  allocator aaStack_30 [8];
  
  puVar4 = PTR__S_empty_rep_storage_004322d0;
  iVar1 = *(int *)this;
  iVar8 = param_2 + param_1;
  uVar3 = *(uint *)(iVar1 + -8);
  uVar6 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);
  iVar5 = *(int *)(iVar1 + -0xc) - iVar8;
  if (uVar3 < uVar6) {
LAB_002fbf34:
    puVar2 = (undefined *)_Rep::_S_create(uVar6,uVar3,aaStack_30);
    if (param_1 != 0) {
      if (param_1 == 1) {
        puVar2[0xc] = **(undefined1 **)this;
      }
      else {
        (*(code *)PTR_memcpy_00436788)(puVar2 + 0xc,*(undefined1 **)this,param_1);
      }
    }
    puVar7 = puVar2 + 0xc;
    iVar1 = *(int *)this;
    if (iVar5 != 0) {
      if (iVar5 == 1) {
        puVar2[param_1 + 0xc + param_3] = *(undefined1 *)(iVar1 + iVar8);
        iVar1 = *(int *)this;
      }
      else {
        (*(code *)PTR_memcpy_00436788)
                  (puVar2 + param_1 + 0xc + param_3,(undefined1 *)(iVar1 + iVar8),iVar5);
        iVar1 = *(int *)this;
      }
    }
    puVar4 = PTR__S_empty_rep_storage_004322d0;
    if ((allocator *)(iVar1 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0) {
      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
        iVar5 = *(int *)(iVar1 + -4);
        *(int *)(iVar1 + -4) = iVar5 + -1;
      }
      else {
        SYNC(0);
        iVar5 = *(int *)(iVar1 + -4);
        *(int *)(iVar1 + -4) = iVar5 + -1;
        SYNC(0);
      }
      if (iVar5 < 1) {
        _Rep::_M_destroy((allocator *)(iVar1 + -0xc));
        *(undefined **)this = puVar7;
        goto LAB_002fbfa0;
      }
    }
    *(undefined **)this = puVar7;
  }
  else {
    SYNC(0);
    if (0 < *(int *)(iVar1 + -4)) {
      uVar3 = *(uint *)(*(int *)this + -8);
      goto LAB_002fbf34;
    }
    puVar7 = *(undefined **)this;
    if ((iVar5 == 0) || (param_3 == param_2)) {
      if (puVar7 + -0xc == PTR__S_empty_rep_storage_004322d0) {
        return;
      }
      goto LAB_002fc050;
    }
    if (iVar5 == 1) {
      puVar7[param_3 + param_1] = puVar7[iVar8];
      puVar7 = *(undefined **)this;
      puVar2 = puVar7 + -0xc;
    }
    else {
      (*(code *)PTR_memmove_004366d8)(puVar7 + param_3 + param_1,puVar7 + iVar8,iVar5);
      puVar7 = *(undefined **)this;
      puVar2 = puVar7 + -0xc;
    }
  }
LAB_002fbfa0:
  if (puVar2 == puVar4) {
    return;
  }
LAB_002fc050:
  *(undefined4 *)(puVar7 + -4) = 0;
  *(uint *)(puVar7 + -0xc) = uVar6;
  puVar7[uVar6] = 0;
  return;
}

