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

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

{
  int iVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  uint uVar4;
  undefined *puVar5;
  int iVar6;
  int iVar7;
  uint uVar8;
  undefined *puVar9;
  allocator aaStack_30 [8];
  
  puVar5 = PTR__S_empty_rep_storage_004322cc;
  iVar1 = *(int *)this;
  iVar6 = param_2 + param_1;
  uVar4 = *(uint *)(iVar1 + -8);
  uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);
  iVar7 = *(int *)(iVar1 + -0xc) - iVar6;
  if (uVar4 < uVar8) {
LAB_00357764:
    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);
    if (param_1 == 0) {
      puVar3 = *(undefined4 **)this;
    }
    else {
      puVar3 = *(undefined4 **)this;
      if (param_1 == 1) {
        *(undefined4 *)(puVar2 + 0xc) = *puVar3;
      }
      else {
        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);
        puVar3 = *(undefined4 **)this;
      }
    }
    puVar9 = puVar2 + 0xc;
    if (iVar7 != 0) {
      if (iVar7 == 1) {
        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];
      }
      else {
        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)
        ;
        puVar3 = *(undefined4 **)this;
      }
    }
    puVar5 = PTR__S_empty_rep_storage_004322cc;
    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {
      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
        iVar1 = puVar3[-1];
        puVar3[-1] = iVar1 + -1;
      }
      else {
        SYNC(0);
        iVar1 = puVar3[-1];
        puVar3[-1] = iVar1 + -1;
        SYNC(0);
      }
      if (iVar1 < 1) {
        _Rep::_M_destroy((allocator *)(puVar3 + -3));
        *(undefined **)this = puVar9;
        goto LAB_003577d8;
      }
    }
    *(undefined **)this = puVar9;
  }
  else {
    SYNC(0);
    if (0 < *(int *)(iVar1 + -4)) {
      uVar4 = *(uint *)(*(int *)this + -8);
      goto LAB_00357764;
    }
    puVar9 = *(undefined **)this;
    if ((iVar7 == 0) || (param_3 == param_2)) {
      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {
        return;
      }
      goto LAB_00357894;
    }
    if (iVar7 == 1) {
      puVar2 = puVar9 + -0xc;
      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);
    }
    else {
      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);
      puVar9 = *(undefined **)this;
      puVar2 = puVar9 + -0xc;
    }
  }
LAB_003577d8:
  if (puVar2 == puVar5) {
    return;
  }
LAB_00357894:
  *(undefined4 *)(puVar9 + -4) = 0;
  *(uint *)(puVar9 + -0xc) = uVar8;
  *(undefined4 *)(puVar9 + uVar8 * 4) = 0;
  return;
}



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

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

{
  int iVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  uint uVar4;
  undefined *puVar5;
  int iVar6;
  int iVar7;
  uint uVar8;
  undefined *puVar9;
  allocator aaStack_30 [8];
  
  puVar5 = PTR__S_empty_rep_storage_004322cc;
  iVar1 = *(int *)this;
  iVar6 = param_2 + param_1;
  uVar4 = *(uint *)(iVar1 + -8);
  uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);
  iVar7 = *(int *)(iVar1 + -0xc) - iVar6;
  if (uVar4 < uVar8) {
LAB_00357764:
    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);
    if (param_1 == 0) {
      puVar3 = *(undefined4 **)this;
    }
    else {
      puVar3 = *(undefined4 **)this;
      if (param_1 == 1) {
        *(undefined4 *)(puVar2 + 0xc) = *puVar3;
      }
      else {
        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);
        puVar3 = *(undefined4 **)this;
      }
    }
    puVar9 = puVar2 + 0xc;
    if (iVar7 != 0) {
      if (iVar7 == 1) {
        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];
      }
      else {
        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)
        ;
        puVar3 = *(undefined4 **)this;
      }
    }
    puVar5 = PTR__S_empty_rep_storage_004322cc;
    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {
      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
        iVar1 = puVar3[-1];
        puVar3[-1] = iVar1 + -1;
      }
      else {
        SYNC(0);
        iVar1 = puVar3[-1];
        puVar3[-1] = iVar1 + -1;
        SYNC(0);
      }
      if (iVar1 < 1) {
        _Rep::_M_destroy((allocator *)(puVar3 + -3));
        *(undefined **)this = puVar9;
        goto LAB_003577d8;
      }
    }
    *(undefined **)this = puVar9;
  }
  else {
    SYNC(0);
    if (0 < *(int *)(iVar1 + -4)) {
      uVar4 = *(uint *)(*(int *)this + -8);
      goto LAB_00357764;
    }
    puVar9 = *(undefined **)this;
    if ((iVar7 == 0) || (param_3 == param_2)) {
      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {
        return;
      }
      goto LAB_00357894;
    }
    if (iVar7 == 1) {
      puVar2 = puVar9 + -0xc;
      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);
    }
    else {
      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);
      puVar9 = *(undefined **)this;
      puVar2 = puVar9 + -0xc;
    }
  }
LAB_003577d8:
  if (puVar2 == puVar5) {
    return;
  }
LAB_00357894:
  *(undefined4 *)(puVar9 + -4) = 0;
  *(uint *)(puVar9 + -0xc) = uVar8;
  *(undefined4 *)(puVar9 + uVar8 * 4) = 0;
  return;
}


lui gp,0xe
addiu gp,gp,0x2af0
addu gp,gp,t9
lw v0,0x0(a0)
addiu sp,sp,-0x48
sw s5,0x34(sp)
subu s5,a3,a2
sw s1,0x24(sp)
addu s1,a2,a1
sw s0,0x20(sp)
or s0,a1,zero
lw v1,-0xc(v0)
lw a1,-0x8(v0)
sw s4,0x30(sp)
addu s5,s5,v1
sw gp,0x10(sp)
subu s4,v1,s1
sw s7,0x3c(sp)
sltu v1,a1,s5
sw s6,0x38(sp)
sw ra,0x44(sp)
or s6,a0,zero
sw s8,0x40(sp)
or s7,a3,zero
sw s3,0x2c(sp)
bne v1,zero,0x00357764
_sw s2,0x28(sp)
lw v0,-0x4(v0)
sync 0x0
blez v0,0x00357840
_nop
lw v0,0x0(a0)
lw a1,-0x8(v0)
lw t9,-0x3e58(gp)
addiu s3,sp,0x18
or a0,s5,zero
bal 0x003571b0
_or a2,s3,zero
lw gp,0x10(sp)
bne s0,zero,0x00357810
_or s2,v0,zero
addiu s8,v0,0xc
lw v0,0x0(s6)
beq s4,zero,0x003577c4
_addu a0,s7,s0
sll a1,s1,0x2
sll a0,a0,0x2
li v1,0x1
addiu a0,a0,0xc
addu a1,v0,a1
beq s4,v1,0x003578e8
_addu a0,s2,a0
lw t9,-0x39a4(gp)
jalr t9
_or a2,s4,zero
lw gp,0x10(sp)
lw v0,0x0(s6)
lw s0,-0x7f04(gp)
addiu a0,v0,-0xc
bne a0,s0,0x003578ac
_lw v1,-0x3b54(gp)
sw s8,0x0(s6)
bne s2,s0,0x00357894
_nop
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 v1,0x1
lw v0,0x0(s6)
beq s0,v1,0x003578f4
_addiu s8,s2,0xc
lw t9,-0x39a4(gp)
or a1,v0,zero
or a2,s0,zero
jalr t9
_or a0,s8,zero
lw gp,0x10(sp)
b 0x0035778c
_lw v0,0x0(s6)
beq s4,zero,0x00357884
_lw s8,0x0(a0)
beq a3,a2,0x00357884
_addu a0,a3,s0
sll a1,s1,0x2
sll a0,a0,0x2
li v0,0x1
addu a0,s8,a0
beq s4,v0,0x00357910
_addu a1,s8,a1
lw t9,-0x395c(gp)
lw s0,-0x7f04(gp)
jalr t9
_or a2,s4,zero
lw s8,0x0(s6)
b 0x003577d8
_addiu s2,s8,-0xc
lw s0,-0x7f04(gp)
addiu s2,s8,-0xc
beq s2,s0,0x003577e4
_lw ra,0x44(sp)
sll v0,s5,0x2
sw zero,-0x4(s8)
sw s5,-0xc(s8)
addu v0,s8,v0
b 0x003577e0
_sw zero,0x0(v0)
beq v1,zero,0x00357900
_nop
sync 0x0
ll v1,-0x4(v0)
addiu at,v1,-0x1
sc at,-0x4(v0)
beq at,zero,0x003578b8
_nop
sync 0x0
bgtz v1,0x003577d4
_lw t9,-0x7f88(gp)
bal 0x003574ac
_or a1,s3,zero
b 0x003577d8
_sw s8,0x0(s6)
lw v1,0x0(a1)
b 0x003577c4
_sw v1,0x0(a0)
lw v1,0x0(v0)
b 0x0035778c
_sw v1,0xc(s2)
lw v1,-0x4(v0)
addiu a1,v1,-0x1
b 0x003578d0
_sw a1,-0x4(v0)
lw v0,0x0(a1)
addiu s2,s8,-0xc
lw s0,-0x7f04(gp)
b 0x003577d8
_sw v0,0x0(a0)
(translation_unit "/* std::wstring::_M_mutate(unsigned int, unsigned int, unsigned int) */\n\nvoid __thiscall std::wstring::_M_mutate(wstring *this,uint param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  undefined *puVar9;\n  allocator aaStack_30 [8];\n  \n  puVar5 = PTR__S_empty_rep_storage_004322cc;\n  iVar1 = *(int *)this;\n  iVar6 = param_2 + param_1;\n  uVar4 = *(uint *)(iVar1 + -8);\n  uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar7 = *(int *)(iVar1 + -0xc) - iVar6;\n  if (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }\nLAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }\nLAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;\n  *(uint *)(puVar9 + -0xc) = uVar8;\n  *(undefined4 *)(puVar9 + uVar8 * 4) = 0;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wstring::_M_mutate(wstring *this,uint param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  undefined *puVar9;\n  allocator aaStack_30 [8];\n  \n  puVar5 = PTR__S_empty_rep_storage_004322cc;\n  iVar1 = *(int *)this;\n  iVar6 = param_2 + param_1;\n  uVar4 = *(uint *)(iVar1 + -8);\n  uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar7 = *(int *)(iVar1 + -0xc) - iVar6;\n  if (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }\nLAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }\nLAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;\n  *(uint *)(puVar9 + -0xc) = uVar8;\n  *(undefined4 *)(puVar9 + uVar8 * 4) = 0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "_M_mutate(wstring *this,uint param_1,uint param_2,uint param_3)" identifier (parameter_list "(wstring *this,uint param_1,uint param_2,uint param_3)" ( (parameter_declaration "wstring *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  undefined4 *puVar3;\n  uint uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  undefined *puVar9;\n  allocator aaStack_30 [8];\n  \n  puVar5 = PTR__S_empty_rep_storage_004322cc;\n  iVar1 = *(int *)this;\n  iVar6 = param_2 + param_1;\n  uVar4 = *(uint *)(iVar1 + -8);\n  uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar7 = *(int *)(iVar1 + -0xc) - iVar6;\n  if (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }\nLAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }\nLAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;\n  *(uint *)(puVar9 + -0xc) = uVar8;\n  *(undefined4 *)(puVar9 + uVar8 * 4) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "allocator aaStack_30 [8];" type_identifier (array_declarator "aaStack_30 [8]" identifier [ number_literal ]) ;) (expression_statement "puVar5 = PTR__S_empty_rep_storage_004322cc;" (assignment_expression "puVar5 = PTR__S_empty_rep_storage_004322cc" 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 "iVar6 = param_2 + param_1;" (assignment_expression "iVar6 = param_2 + param_1" identifier = (binary_expression "param_2 + param_1" identifier + identifier)) ;) (expression_statement "uVar4 = *(uint *)(iVar1 + -8);" (assignment_expression "uVar4 = *(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 "uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);" (assignment_expression "uVar8 = (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 "iVar7 = *(int *)(iVar1 + -0xc) - iVar6;" (assignment_expression "iVar7 = *(int *)(iVar1 + -0xc) - iVar6" identifier = (binary_expression "*(int *)(iVar1 + -0xc) - iVar6" (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 (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }" if (parenthesized_expression "(uVar4 < uVar8)" ( (binary_expression "uVar4 < uVar8" identifier < identifier) )) (compound_statement "{\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }" { (labeled_statement "LAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,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(uVar8,uVar4,aaStack_30);" (call_expression "_S_create(uVar8,uVar4,aaStack_30)" identifier (argument_list "(uVar8,uVar4,aaStack_30)" ( identifier , identifier , identifier ))) ;)) (if_statement "if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar3 = *(undefined4 **)this;\n    }" { (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" identifier = (pointer_expression "*(undefined4 **)this" * (cast_expression "(undefined4 **)this" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }" else (compound_statement "{\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }" { (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" identifier = (pointer_expression "*(undefined4 **)this" * (cast_expression "(undefined4 **)this" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }" { (expression_statement "*(undefined4 *)(puVar2 + 0xc) = *puVar3;" (assignment_expression "*(undefined4 *)(puVar2 + 0xc) = *puVar3" (pointer_expression "*(undefined4 *)(puVar2 + 0xc)" * (cast_expression "(undefined4 *)(puVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xc)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) )))) = (pointer_expression "*puVar3" * identifier)) ;) }) (else_clause "else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }" else (compound_statement "{\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }" { (expression_statement "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);" (call_expression "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1)" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" ( (pointer_expression "*(code *)PTR_wmemcpy_0043682c" * (cast_expression "(code *)PTR_wmemcpy_0043682c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2 + 0xc,puVar3,param_1)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" identifier = (pointer_expression "*(undefined4 **)this" * (cast_expression "(undefined4 **)this" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }))) }))) (expression_statement "puVar9 = puVar2 + 0xc;" (assignment_expression "puVar9 = puVar2 + 0xc" identifier = (binary_expression "puVar2 + 0xc" identifier + number_literal)) ;) (if_statement "if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }" { (if_statement "if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }" if (parenthesized_expression "(iVar7 == 1)" ( (binary_expression "iVar7 == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }" { (expression_statement "*(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];" (assignment_expression "*(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6]" (pointer_expression "*(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc)" * (cast_expression "(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + (param_3 + param_1) * 4 + 0xc)" ( (binary_expression "puVar2 + (param_3 + param_1) * 4 + 0xc" (binary_expression "puVar2 + (param_3 + param_1) * 4" identifier + (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" ( (binary_expression "param_3 + param_1" identifier + identifier) )) * number_literal)) + number_literal) )))) = (subscript_expression "puVar3[iVar6]" identifier [ identifier ])) ;) }) (else_clause "else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }" else (compound_statement "{\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }" { (expression_statement "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;" (call_expression "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" ( (pointer_expression "*(code *)PTR_wmemcpy_0043682c" * (cast_expression "(code *)PTR_wmemcpy_0043682c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)" ( (binary_expression "puVar2 + (param_3 + param_1) * 4 + 0xc" (binary_expression "puVar2 + (param_3 + param_1) * 4" identifier + (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" ( (binary_expression "param_3 + param_1" identifier + identifier) )) * number_literal)) + number_literal) , (binary_expression "puVar3 + iVar6" identifier + identifier) , identifier ))) ;) (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" identifier = (pointer_expression "*(undefined4 **)this" * (cast_expression "(undefined4 **)this" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }))) })) (expression_statement "puVar5 = PTR__S_empty_rep_storage_004322cc;" (assignment_expression "puVar5 = PTR__S_empty_rep_storage_004322cc" identifier = identifier) ;) (if_statement "if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }" if (parenthesized_expression "((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc)" ( (binary_expression "(allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc" (cast_expression "(allocator *)(puVar3 + -3)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -3)" ( (binary_expression "puVar3 + -3" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322cc" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -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        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }" { (expression_statement "iVar1 = puVar3[-1];" (assignment_expression "iVar1 = puVar3[-1]" identifier = (subscript_expression "puVar3[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-1] = iVar1 + -1;" (assignment_expression "puVar3[-1] = iVar1 + -1" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }" else (compound_statement "{\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar1 = puVar3[-1];" (assignment_expression "iVar1 = puVar3[-1]" identifier = (subscript_expression "puVar3[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-1] = iVar1 + -1;" (assignment_expression "puVar3[-1] = iVar1 + -1" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }" { (labeled_statement "_Rep::_M_destroy((allocator *)(puVar3 + -3));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(puVar3 + -3));" (call_expression "_M_destroy((allocator *)(puVar3 + -3))" identifier (argument_list "((allocator *)(puVar3 + -3))" ( (cast_expression "(allocator *)(puVar3 + -3)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -3)" ( (binary_expression "puVar3 + -3" identifier + number_literal) ))) ))) ;)) (expression_statement "*(undefined **)this = puVar9;" (assignment_expression "*(undefined **)this = puVar9" (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_003577d8;" goto statement_identifier ;) })) })) (expression_statement "*(undefined **)this = puVar9;" (assignment_expression "*(undefined **)this = puVar9" (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      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }" else (compound_statement "{\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -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      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\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      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }" { (expression_statement "uVar4 = *(uint *)(*(int *)this + -8);" (assignment_expression "uVar4 = *(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_00357764;" goto statement_identifier ;) })) (expression_statement "puVar9 = *(undefined **)this;" (assignment_expression "puVar9 = *(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 ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }" if (parenthesized_expression "((iVar7 == 0) || (param_3 == param_2))" ( (binary_expression "(iVar7 == 0) || (param_3 == param_2)" (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_3 == param_2)" ( (binary_expression "param_3 == param_2" identifier == identifier) ))) )) (compound_statement "{\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }" { (if_statement "if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }" if (parenthesized_expression "(puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc)" ( (binary_expression "puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc" (binary_expression "puVar9 + -0xc" identifier + number_literal) == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_00357894;" goto statement_identifier ;) })) (if_statement "if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }" if (parenthesized_expression "(iVar7 == 1)" ( (binary_expression "iVar7 == 1" identifier == number_literal) )) (compound_statement "{\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }" { (expression_statement "puVar2 = puVar9 + -0xc;" (assignment_expression "puVar2 = puVar9 + -0xc" identifier = (binary_expression "puVar9 + -0xc" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);" (assignment_expression "*(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4)" (pointer_expression "*(undefined4 *)(puVar9 + (param_3 + param_1) * 4)" * (cast_expression "(undefined4 *)(puVar9 + (param_3 + param_1) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + (param_3 + param_1) * 4)" ( (binary_expression "puVar9 + (param_3 + param_1) * 4" identifier + (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" ( (binary_expression "param_3 + param_1" identifier + identifier) )) * number_literal)) )))) = (pointer_expression "*(undefined4 *)(puVar9 + iVar6 * 4)" * (cast_expression "(undefined4 *)(puVar9 + iVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + iVar6 * 4)" ( (binary_expression "puVar9 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) ))))) ;) }) (else_clause "else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }" else (compound_statement "{\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }" { (expression_statement "(*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);" (call_expression "(*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7)" (parenthesized_expression "(*(code *)PTR_wmemmove_00436874)" ( (pointer_expression "*(code *)PTR_wmemmove_00436874" * (cast_expression "(code *)PTR_wmemmove_00436874" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7)" ( (binary_expression "puVar9 + (param_3 + param_1) * 4" identifier + (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" ( (binary_expression "param_3 + param_1" identifier + identifier) )) * number_literal)) , (binary_expression "puVar9 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) , identifier ))) ;) (expression_statement "puVar9 = *(undefined **)this;" (assignment_expression "puVar9 = *(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 = puVar9 + -0xc;" (assignment_expression "puVar2 = puVar9 + -0xc" identifier = (binary_expression "puVar9 + -0xc" identifier + number_literal)) ;) }))) }))) (labeled_statement "LAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }" statement_identifier : (if_statement "if (puVar2 == puVar5) {\n    return;\n  }" if (parenthesized_expression "(puVar2 == puVar5)" ( (binary_expression "puVar2 == puVar5" identifier == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (labeled_statement "LAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(puVar9 + -4) = 0;" (assignment_expression "*(undefined4 *)(puVar9 + -4) = 0" (pointer_expression "*(undefined4 *)(puVar9 + -4)" * (cast_expression "(undefined4 *)(puVar9 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -4)" ( (binary_expression "puVar9 + -4" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "*(uint *)(puVar9 + -0xc) = uVar8;" (assignment_expression "*(uint *)(puVar9 + -0xc) = uVar8" (pointer_expression "*(uint *)(puVar9 + -0xc)" * (cast_expression "(uint *)(puVar9 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0xc)" ( (binary_expression "puVar9 + -0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar9 + uVar8 * 4) = 0;" (assignment_expression "*(undefined4 *)(puVar9 + uVar8 * 4) = 0" (pointer_expression "*(undefined4 *)(puVar9 + uVar8 * 4)" * (cast_expression "(undefined4 *)(puVar9 + uVar8 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + uVar8 * 4)" ( (binary_expression "puVar9 + uVar8 * 4" identifier + (binary_expression "uVar8 * 4" identifier * number_literal)) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wstring::_M_mutate(unsigned int, unsigned int, unsigned int) */\n\nvoid __thiscall std::wstring::_M_mutate(wstring *this,uint param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  undefined *puVar9;\n  allocator aaStack_30 [8];\n  \n  puVar5 = PTR__S_empty_rep_storage_004322cc;\n  iVar1 = *(int *)this;\n  iVar6 = param_2 + param_1;\n  uVar4 = *(uint *)(iVar1 + -8);\n  uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar7 = *(int *)(iVar1 + -0xc) - iVar6;\n  if (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }\nLAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }\nLAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;\n  *(uint *)(puVar9 + -0xc) = uVar8;\n  *(undefined4 *)(puVar9 + uVar8 * 4) = 0;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wstring::_M_mutate(wstring *this,uint param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  undefined *puVar9;\n  allocator aaStack_30 [8];\n  \n  puVar5 = PTR__S_empty_rep_storage_004322cc;\n  iVar1 = *(int *)this;\n  iVar6 = param_2 + param_1;\n  uVar4 = *(uint *)(iVar1 + -8);\n  uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar7 = *(int *)(iVar1 + -0xc) - iVar6;\n  if (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }\nLAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }\nLAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;\n  *(uint *)(puVar9 + -0xc) = uVar8;\n  *(undefined4 *)(puVar9 + uVar8 * 4) = 0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "_M_mutate(wstring *this,uint param_1,uint param_2,uint param_3)" identifier (parameter_list "(wstring *this,uint param_1,uint param_2,uint param_3)" ( (parameter_declaration "wstring *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  undefined4 *puVar3;\n  uint uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  undefined *puVar9;\n  allocator aaStack_30 [8];\n  \n  puVar5 = PTR__S_empty_rep_storage_004322cc;\n  iVar1 = *(int *)this;\n  iVar6 = param_2 + param_1;\n  uVar4 = *(uint *)(iVar1 + -8);\n  uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar7 = *(int *)(iVar1 + -0xc) - iVar6;\n  if (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }\nLAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }\nLAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;\n  *(uint *)(puVar9 + -0xc) = uVar8;\n  *(undefined4 *)(puVar9 + uVar8 * 4) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "allocator aaStack_30 [8];" type_identifier (array_declarator "aaStack_30 [8]" identifier [ number_literal ]) ;) (expression_statement "puVar5 = PTR__S_empty_rep_storage_004322cc;" (assignment_expression "puVar5 = PTR__S_empty_rep_storage_004322cc" 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 "iVar6 = param_2 + param_1;" (assignment_expression "iVar6 = param_2 + param_1" identifier = (binary_expression "param_2 + param_1" identifier + identifier)) ;) (expression_statement "uVar4 = *(uint *)(iVar1 + -8);" (assignment_expression "uVar4 = *(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 "uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);" (assignment_expression "uVar8 = (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 "iVar7 = *(int *)(iVar1 + -0xc) - iVar6;" (assignment_expression "iVar7 = *(int *)(iVar1 + -0xc) - iVar6" identifier = (binary_expression "*(int *)(iVar1 + -0xc) - iVar6" (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 (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }" if (parenthesized_expression "(uVar4 < uVar8)" ( (binary_expression "uVar4 < uVar8" identifier < identifier) )) (compound_statement "{\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }" { (labeled_statement "LAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,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(uVar8,uVar4,aaStack_30);" (call_expression "_S_create(uVar8,uVar4,aaStack_30)" identifier (argument_list "(uVar8,uVar4,aaStack_30)" ( identifier , identifier , identifier ))) ;)) (if_statement "if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar3 = *(undefined4 **)this;\n    }" { (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" identifier = (pointer_expression "*(undefined4 **)this" * (cast_expression "(undefined4 **)this" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }" else (compound_statement "{\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }" { (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" identifier = (pointer_expression "*(undefined4 **)this" * (cast_expression "(undefined4 **)this" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }" { (expression_statement "*(undefined4 *)(puVar2 + 0xc) = *puVar3;" (assignment_expression "*(undefined4 *)(puVar2 + 0xc) = *puVar3" (pointer_expression "*(undefined4 *)(puVar2 + 0xc)" * (cast_expression "(undefined4 *)(puVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xc)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) )))) = (pointer_expression "*puVar3" * identifier)) ;) }) (else_clause "else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }" else (compound_statement "{\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }" { (expression_statement "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);" (call_expression "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1)" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" ( (pointer_expression "*(code *)PTR_wmemcpy_0043682c" * (cast_expression "(code *)PTR_wmemcpy_0043682c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2 + 0xc,puVar3,param_1)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" identifier = (pointer_expression "*(undefined4 **)this" * (cast_expression "(undefined4 **)this" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }))) }))) (expression_statement "puVar9 = puVar2 + 0xc;" (assignment_expression "puVar9 = puVar2 + 0xc" identifier = (binary_expression "puVar2 + 0xc" identifier + number_literal)) ;) (if_statement "if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }" { (if_statement "if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }" if (parenthesized_expression "(iVar7 == 1)" ( (binary_expression "iVar7 == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }" { (expression_statement "*(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];" (assignment_expression "*(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6]" (pointer_expression "*(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc)" * (cast_expression "(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + (param_3 + param_1) * 4 + 0xc)" ( (binary_expression "puVar2 + (param_3 + param_1) * 4 + 0xc" (binary_expression "puVar2 + (param_3 + param_1) * 4" identifier + (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" ( (binary_expression "param_3 + param_1" identifier + identifier) )) * number_literal)) + number_literal) )))) = (subscript_expression "puVar3[iVar6]" identifier [ identifier ])) ;) }) (else_clause "else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }" else (compound_statement "{\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }" { (expression_statement "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;" (call_expression "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" ( (pointer_expression "*(code *)PTR_wmemcpy_0043682c" * (cast_expression "(code *)PTR_wmemcpy_0043682c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)" ( (binary_expression "puVar2 + (param_3 + param_1) * 4 + 0xc" (binary_expression "puVar2 + (param_3 + param_1) * 4" identifier + (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" ( (binary_expression "param_3 + param_1" identifier + identifier) )) * number_literal)) + number_literal) , (binary_expression "puVar3 + iVar6" identifier + identifier) , identifier ))) ;) (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" identifier = (pointer_expression "*(undefined4 **)this" * (cast_expression "(undefined4 **)this" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }))) })) (expression_statement "puVar5 = PTR__S_empty_rep_storage_004322cc;" (assignment_expression "puVar5 = PTR__S_empty_rep_storage_004322cc" identifier = identifier) ;) (if_statement "if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }" if (parenthesized_expression "((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc)" ( (binary_expression "(allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc" (cast_expression "(allocator *)(puVar3 + -3)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -3)" ( (binary_expression "puVar3 + -3" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322cc" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -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        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }" { (expression_statement "iVar1 = puVar3[-1];" (assignment_expression "iVar1 = puVar3[-1]" identifier = (subscript_expression "puVar3[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-1] = iVar1 + -1;" (assignment_expression "puVar3[-1] = iVar1 + -1" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }" else (compound_statement "{\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar1 = puVar3[-1];" (assignment_expression "iVar1 = puVar3[-1]" identifier = (subscript_expression "puVar3[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-1] = iVar1 + -1;" (assignment_expression "puVar3[-1] = iVar1 + -1" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }" { (labeled_statement "_Rep::_M_destroy((allocator *)(puVar3 + -3));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(puVar3 + -3));" (call_expression "_M_destroy((allocator *)(puVar3 + -3))" identifier (argument_list "((allocator *)(puVar3 + -3))" ( (cast_expression "(allocator *)(puVar3 + -3)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -3)" ( (binary_expression "puVar3 + -3" identifier + number_literal) ))) ))) ;)) (expression_statement "*(undefined **)this = puVar9;" (assignment_expression "*(undefined **)this = puVar9" (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_003577d8;" goto statement_identifier ;) })) })) (expression_statement "*(undefined **)this = puVar9;" (assignment_expression "*(undefined **)this = puVar9" (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      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }" else (compound_statement "{\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -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      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\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      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }" { (expression_statement "uVar4 = *(uint *)(*(int *)this + -8);" (assignment_expression "uVar4 = *(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_00357764;" goto statement_identifier ;) })) (expression_statement "puVar9 = *(undefined **)this;" (assignment_expression "puVar9 = *(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 ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }" if (parenthesized_expression "((iVar7 == 0) || (param_3 == param_2))" ( (binary_expression "(iVar7 == 0) || (param_3 == param_2)" (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_3 == param_2)" ( (binary_expression "param_3 == param_2" identifier == identifier) ))) )) (compound_statement "{\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }" { (if_statement "if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }" if (parenthesized_expression "(puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc)" ( (binary_expression "puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc" (binary_expression "puVar9 + -0xc" identifier + number_literal) == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_00357894;" goto statement_identifier ;) })) (if_statement "if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }" if (parenthesized_expression "(iVar7 == 1)" ( (binary_expression "iVar7 == 1" identifier == number_literal) )) (compound_statement "{\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }" { (expression_statement "puVar2 = puVar9 + -0xc;" (assignment_expression "puVar2 = puVar9 + -0xc" identifier = (binary_expression "puVar9 + -0xc" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);" (assignment_expression "*(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4)" (pointer_expression "*(undefined4 *)(puVar9 + (param_3 + param_1) * 4)" * (cast_expression "(undefined4 *)(puVar9 + (param_3 + param_1) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + (param_3 + param_1) * 4)" ( (binary_expression "puVar9 + (param_3 + param_1) * 4" identifier + (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" ( (binary_expression "param_3 + param_1" identifier + identifier) )) * number_literal)) )))) = (pointer_expression "*(undefined4 *)(puVar9 + iVar6 * 4)" * (cast_expression "(undefined4 *)(puVar9 + iVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + iVar6 * 4)" ( (binary_expression "puVar9 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) ))))) ;) }) (else_clause "else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }" else (compound_statement "{\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }" { (expression_statement "(*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);" (call_expression "(*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7)" (parenthesized_expression "(*(code *)PTR_wmemmove_00436874)" ( (pointer_expression "*(code *)PTR_wmemmove_00436874" * (cast_expression "(code *)PTR_wmemmove_00436874" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7)" ( (binary_expression "puVar9 + (param_3 + param_1) * 4" identifier + (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" ( (binary_expression "param_3 + param_1" identifier + identifier) )) * number_literal)) , (binary_expression "puVar9 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) , identifier ))) ;) (expression_statement "puVar9 = *(undefined **)this;" (assignment_expression "puVar9 = *(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 = puVar9 + -0xc;" (assignment_expression "puVar2 = puVar9 + -0xc" identifier = (binary_expression "puVar9 + -0xc" identifier + number_literal)) ;) }))) }))) (labeled_statement "LAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }" statement_identifier : (if_statement "if (puVar2 == puVar5) {\n    return;\n  }" if (parenthesized_expression "(puVar2 == puVar5)" ( (binary_expression "puVar2 == puVar5" identifier == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (labeled_statement "LAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(puVar9 + -4) = 0;" (assignment_expression "*(undefined4 *)(puVar9 + -4) = 0" (pointer_expression "*(undefined4 *)(puVar9 + -4)" * (cast_expression "(undefined4 *)(puVar9 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -4)" ( (binary_expression "puVar9 + -4" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "*(uint *)(puVar9 + -0xc) = uVar8;" (assignment_expression "*(uint *)(puVar9 + -0xc) = uVar8" (pointer_expression "*(uint *)(puVar9 + -0xc)" * (cast_expression "(uint *)(puVar9 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0xc)" ( (binary_expression "puVar9 + -0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar9 + uVar8 * 4) = 0;" (assignment_expression "*(undefined4 *)(puVar9 + uVar8 * 4) = 0" (pointer_expression "*(undefined4 *)(puVar9 + uVar8 * 4)" * (cast_expression "(undefined4 *)(puVar9 + uVar8 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + uVar8 * 4)" ( (binary_expression "puVar9 + uVar8 * 4" identifier + (binary_expression "uVar8 * 4" identifier * number_literal)) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __thiscall std::wstring::_M_mutate(wstring *this,uint param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  undefined *puVar9;\n  allocator aaStack_30 [8];\n  \n  puVar5 = PTR__S_empty_rep_storage_004322cc;\n  iVar1 = *(int *)this;\n  iVar6 = param_2 + param_1;\n  uVar4 = *(uint *)(iVar1 + -8);\n  uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar7 = *(int *)(iVar1 + -0xc) - iVar6;\n  if (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }\nLAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }\nLAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;\n  *(uint *)(puVar9 + -0xc) = uVar8;\n  *(undefined4 *)(puVar9 + uVar8 * 4) = 0;\n  return;\n}\n\n" (function_definition "void __thiscall std::wstring::_M_mutate(wstring *this,uint param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  undefined *puVar9;\n  allocator aaStack_30 [8];\n  \n  puVar5 = PTR__S_empty_rep_storage_004322cc;\n  iVar1 = *(int *)this;\n  iVar6 = param_2 + param_1;\n  uVar4 = *(uint *)(iVar1 + -8);\n  uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar7 = *(int *)(iVar1 + -0xc) - iVar6;\n  if (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }\nLAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }\nLAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;\n  *(uint *)(puVar9 + -0xc) = uVar8;\n  *(undefined4 *)(puVar9 + uVar8 * 4) = 0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "_M_mutate(wstring *this,uint param_1,uint param_2,uint param_3)" identifier (parameter_list "(wstring *this,uint param_1,uint param_2,uint param_3)" ( (parameter_declaration "wstring *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  undefined4 *puVar3;\n  uint uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  undefined *puVar9;\n  allocator aaStack_30 [8];\n  \n  puVar5 = PTR__S_empty_rep_storage_004322cc;\n  iVar1 = *(int *)this;\n  iVar6 = param_2 + param_1;\n  uVar4 = *(uint *)(iVar1 + -8);\n  uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar7 = *(int *)(iVar1 + -0xc) - iVar6;\n  if (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }\nLAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }\nLAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;\n  *(uint *)(puVar9 + -0xc) = uVar8;\n  *(undefined4 *)(puVar9 + uVar8 * 4) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "allocator aaStack_30 [8];" type_identifier (array_declarator "aaStack_30 [8]" identifier [ number_literal ]) ;) (expression_statement "puVar5 = PTR__S_empty_rep_storage_004322cc;" (assignment_expression "puVar5 = PTR__S_empty_rep_storage_004322cc" 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 "iVar6 = param_2 + param_1;" (assignment_expression "iVar6 = param_2 + param_1" identifier = (binary_expression "param_2 + param_1" identifier + identifier)) ;) (expression_statement "uVar4 = *(uint *)(iVar1 + -8);" (assignment_expression "uVar4 = *(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 "uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);" (assignment_expression "uVar8 = (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 "iVar7 = *(int *)(iVar1 + -0xc) - iVar6;" (assignment_expression "iVar7 = *(int *)(iVar1 + -0xc) - iVar6" identifier = (binary_expression "*(int *)(iVar1 + -0xc) - iVar6" (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 (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }" if (parenthesized_expression "(uVar4 < uVar8)" ( (binary_expression "uVar4 < uVar8" identifier < identifier) )) (compound_statement "{\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }" { (labeled_statement "LAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,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(uVar8,uVar4,aaStack_30);" (call_expression "_S_create(uVar8,uVar4,aaStack_30)" identifier (argument_list "(uVar8,uVar4,aaStack_30)" ( identifier , identifier , identifier ))) ;)) (if_statement "if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar3 = *(undefined4 **)this;\n    }" { (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" identifier = (pointer_expression "*(undefined4 **)this" * (cast_expression "(undefined4 **)this" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }" else (compound_statement "{\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }" { (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" identifier = (pointer_expression "*(undefined4 **)this" * (cast_expression "(undefined4 **)this" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }" { (expression_statement "*(undefined4 *)(puVar2 + 0xc) = *puVar3;" (assignment_expression "*(undefined4 *)(puVar2 + 0xc) = *puVar3" (pointer_expression "*(undefined4 *)(puVar2 + 0xc)" * (cast_expression "(undefined4 *)(puVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0xc)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) )))) = (pointer_expression "*puVar3" * identifier)) ;) }) (else_clause "else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }" else (compound_statement "{\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }" { (expression_statement "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);" (call_expression "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1)" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" ( (pointer_expression "*(code *)PTR_wmemcpy_0043682c" * (cast_expression "(code *)PTR_wmemcpy_0043682c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2 + 0xc,puVar3,param_1)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" identifier = (pointer_expression "*(undefined4 **)this" * (cast_expression "(undefined4 **)this" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }))) }))) (expression_statement "puVar9 = puVar2 + 0xc;" (assignment_expression "puVar9 = puVar2 + 0xc" identifier = (binary_expression "puVar2 + 0xc" identifier + number_literal)) ;) (if_statement "if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }" { (if_statement "if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }" if (parenthesized_expression "(iVar7 == 1)" ( (binary_expression "iVar7 == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }" { (expression_statement "*(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];" (assignment_expression "*(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6]" (pointer_expression "*(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc)" * (cast_expression "(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + (param_3 + param_1) * 4 + 0xc)" ( (binary_expression "puVar2 + (param_3 + param_1) * 4 + 0xc" (binary_expression "puVar2 + (param_3 + param_1) * 4" identifier + (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" ( (binary_expression "param_3 + param_1" identifier + identifier) )) * number_literal)) + number_literal) )))) = (subscript_expression "puVar3[iVar6]" identifier [ identifier ])) ;) }) (else_clause "else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }" else (compound_statement "{\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }" { (expression_statement "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;" (call_expression "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" ( (pointer_expression "*(code *)PTR_wmemcpy_0043682c" * (cast_expression "(code *)PTR_wmemcpy_0043682c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)" ( (binary_expression "puVar2 + (param_3 + param_1) * 4 + 0xc" (binary_expression "puVar2 + (param_3 + param_1) * 4" identifier + (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" ( (binary_expression "param_3 + param_1" identifier + identifier) )) * number_literal)) + number_literal) , (binary_expression "puVar3 + iVar6" identifier + identifier) , identifier ))) ;) (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" identifier = (pointer_expression "*(undefined4 **)this" * (cast_expression "(undefined4 **)this" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }))) })) (expression_statement "puVar5 = PTR__S_empty_rep_storage_004322cc;" (assignment_expression "puVar5 = PTR__S_empty_rep_storage_004322cc" identifier = identifier) ;) (if_statement "if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }" if (parenthesized_expression "((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc)" ( (binary_expression "(allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc" (cast_expression "(allocator *)(puVar3 + -3)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -3)" ( (binary_expression "puVar3 + -3" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322cc" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -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        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }" { (expression_statement "iVar1 = puVar3[-1];" (assignment_expression "iVar1 = puVar3[-1]" identifier = (subscript_expression "puVar3[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-1] = iVar1 + -1;" (assignment_expression "puVar3[-1] = iVar1 + -1" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }" else (compound_statement "{\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar1 = puVar3[-1];" (assignment_expression "iVar1 = puVar3[-1]" identifier = (subscript_expression "puVar3[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-1] = iVar1 + -1;" (assignment_expression "puVar3[-1] = iVar1 + -1" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }" { (labeled_statement "_Rep::_M_destroy((allocator *)(puVar3 + -3));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(puVar3 + -3));" (call_expression "_M_destroy((allocator *)(puVar3 + -3))" identifier (argument_list "((allocator *)(puVar3 + -3))" ( (cast_expression "(allocator *)(puVar3 + -3)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -3)" ( (binary_expression "puVar3 + -3" identifier + number_literal) ))) ))) ;)) (expression_statement "*(undefined **)this = puVar9;" (assignment_expression "*(undefined **)this = puVar9" (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_003577d8;" goto statement_identifier ;) })) })) (expression_statement "*(undefined **)this = puVar9;" (assignment_expression "*(undefined **)this = puVar9" (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      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }" else (compound_statement "{\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -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      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\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      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }" { (expression_statement "uVar4 = *(uint *)(*(int *)this + -8);" (assignment_expression "uVar4 = *(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_00357764;" goto statement_identifier ;) })) (expression_statement "puVar9 = *(undefined **)this;" (assignment_expression "puVar9 = *(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 ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }" if (parenthesized_expression "((iVar7 == 0) || (param_3 == param_2))" ( (binary_expression "(iVar7 == 0) || (param_3 == param_2)" (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_3 == param_2)" ( (binary_expression "param_3 == param_2" identifier == identifier) ))) )) (compound_statement "{\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }" { (if_statement "if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }" if (parenthesized_expression "(puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc)" ( (binary_expression "puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc" (binary_expression "puVar9 + -0xc" identifier + number_literal) == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_00357894;" goto statement_identifier ;) })) (if_statement "if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }" if (parenthesized_expression "(iVar7 == 1)" ( (binary_expression "iVar7 == 1" identifier == number_literal) )) (compound_statement "{\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }" { (expression_statement "puVar2 = puVar9 + -0xc;" (assignment_expression "puVar2 = puVar9 + -0xc" identifier = (binary_expression "puVar9 + -0xc" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);" (assignment_expression "*(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4)" (pointer_expression "*(undefined4 *)(puVar9 + (param_3 + param_1) * 4)" * (cast_expression "(undefined4 *)(puVar9 + (param_3 + param_1) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + (param_3 + param_1) * 4)" ( (binary_expression "puVar9 + (param_3 + param_1) * 4" identifier + (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" ( (binary_expression "param_3 + param_1" identifier + identifier) )) * number_literal)) )))) = (pointer_expression "*(undefined4 *)(puVar9 + iVar6 * 4)" * (cast_expression "(undefined4 *)(puVar9 + iVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + iVar6 * 4)" ( (binary_expression "puVar9 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) ))))) ;) }) (else_clause "else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }" else (compound_statement "{\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }" { (expression_statement "(*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);" (call_expression "(*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7)" (parenthesized_expression "(*(code *)PTR_wmemmove_00436874)" ( (pointer_expression "*(code *)PTR_wmemmove_00436874" * (cast_expression "(code *)PTR_wmemmove_00436874" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7)" ( (binary_expression "puVar9 + (param_3 + param_1) * 4" identifier + (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" ( (binary_expression "param_3 + param_1" identifier + identifier) )) * number_literal)) , (binary_expression "puVar9 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) , identifier ))) ;) (expression_statement "puVar9 = *(undefined **)this;" (assignment_expression "puVar9 = *(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 = puVar9 + -0xc;" (assignment_expression "puVar2 = puVar9 + -0xc" identifier = (binary_expression "puVar9 + -0xc" identifier + number_literal)) ;) }))) }))) (labeled_statement "LAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }" statement_identifier : (if_statement "if (puVar2 == puVar5) {\n    return;\n  }" if (parenthesized_expression "(puVar2 == puVar5)" ( (binary_expression "puVar2 == puVar5" identifier == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (labeled_statement "LAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(puVar9 + -4) = 0;" (assignment_expression "*(undefined4 *)(puVar9 + -4) = 0" (pointer_expression "*(undefined4 *)(puVar9 + -4)" * (cast_expression "(undefined4 *)(puVar9 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -4)" ( (binary_expression "puVar9 + -4" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "*(uint *)(puVar9 + -0xc) = uVar8;" (assignment_expression "*(uint *)(puVar9 + -0xc) = uVar8" (pointer_expression "*(uint *)(puVar9 + -0xc)" * (cast_expression "(uint *)(puVar9 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0xc)" ( (binary_expression "puVar9 + -0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar9 + uVar8 * 4) = 0;" (assignment_expression "*(undefined4 *)(puVar9 + uVar8 * 4) = 0" (pointer_expression "*(undefined4 *)(puVar9 + uVar8 * 4)" * (cast_expression "(undefined4 *)(puVar9 + uVar8 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + uVar8 * 4)" ( (binary_expression "puVar9 + uVar8 * 4" identifier + (binary_expression "uVar8 * 4" identifier * number_literal)) )))) = 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) }) (else_clause else (compound_statement { (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 IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * 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) , 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)) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) + LIT) )))) = (subscript_expression IDENT [ 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 IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) + LIT) , (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 = 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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_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 IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) , (binary_expression IDENT + (binary_expression IDENT * LIT)) , 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void __thiscall std::wstring::_M_mutate(wstring *this,uint param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  undefined *puVar9;\n  allocator aaStack_30 [8];\n  \n  puVar5 = PTR__S_empty_rep_storage_004322cc;\n  iVar1 = *(int *)this;\n  iVar6 = param_2 + param_1;\n  uVar4 = *(uint *)(iVar1 + -8);\n  uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar7 = *(int *)(iVar1 + -0xc) - iVar6;\n  if (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }\nLAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }\nLAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;\n  *(uint *)(puVar9 + -0xc) = uVar8;\n  *(undefined4 *)(puVar9 + uVar8 * 4) = 0;\n  return;\n}" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::wstring::" (identifier "std") (: ":") (: ":") (identifier "wstring") (: ":") (: ":")) (function_declarator "_M_mutate(wstring *this,uint param_1,uint param_2,uint param_3)" (identifier "_M_mutate") (parameter_list "(wstring *this,uint param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "wstring *this" (type_identifier "wstring") (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  undefined4 *puVar3;\n  uint uVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  uint uVar8;\n  undefined *puVar9;\n  allocator aaStack_30 [8];\n  \n  puVar5 = PTR__S_empty_rep_storage_004322cc;\n  iVar1 = *(int *)this;\n  iVar6 = param_2 + param_1;\n  uVar4 = *(uint *)(iVar1 + -8);\n  uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);\n  iVar7 = *(int *)(iVar1 + -0xc) - iVar6;\n  if (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }\nLAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }\nLAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;\n  *(uint *)(puVar9 + -0xc) = uVar8;\n  *(undefined4 *)(puVar9 + uVar8 * 4) = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "allocator aaStack_30 [8];" (type_identifier "allocator") (array_declarator "aaStack_30 [8]" (identifier "aaStack_30") ([ "[") (number_literal "8") (] "]")) (; ";")) (expression_statement "puVar5 = PTR__S_empty_rep_storage_004322cc;" (assignment_expression "puVar5 = PTR__S_empty_rep_storage_004322cc" (identifier "puVar5") (= "=") (identifier "PTR__S_empty_rep_storage_004322cc")) (; ";")) (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 "iVar6 = param_2 + param_1;" (assignment_expression "iVar6 = param_2 + param_1" (identifier "iVar6") (= "=") (binary_expression "param_2 + param_1" (identifier "param_2") (+ "+") (identifier "param_1"))) (; ";")) (expression_statement "uVar4 = *(uint *)(iVar1 + -8);" (assignment_expression "uVar4 = *(uint *)(iVar1 + -8)" (identifier "uVar4") (= "=") (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 "uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);" (assignment_expression "uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc)" (identifier "uVar8") (= "=") (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 "iVar7 = *(int *)(iVar1 + -0xc) - iVar6;" (assignment_expression "iVar7 = *(int *)(iVar1 + -0xc) - iVar6" (identifier "iVar7") (= "=") (binary_expression "*(int *)(iVar1 + -0xc) - iVar6" (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 "iVar6"))) (; ";")) (if_statement "if (uVar4 < uVar8) {\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }\n  else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }" (if "if") (parenthesized_expression "(uVar4 < uVar8)" (( "(") (binary_expression "uVar4 < uVar8" (identifier "uVar4") (< "<") (identifier "uVar8")) () ")")) (compound_statement "{\nLAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);\n    if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar9 = puVar2 + 0xc;\n    if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }\n    puVar5 = PTR__S_empty_rep_storage_004322cc;\n    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }\n    *(undefined **)this = puVar9;\n  }" ({ "{") (labeled_statement "LAB_00357764:\n    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);" (statement_identifier "LAB_00357764") (: ":") (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(uVar8,uVar4,aaStack_30);" (call_expression "_S_create(uVar8,uVar4,aaStack_30)" (identifier "_S_create") (argument_list "(uVar8,uVar4,aaStack_30)" (( "(") (identifier "uVar8") (, ",") (identifier "uVar4") (, ",") (identifier "aaStack_30") () ")"))) (; ";"))) (if_statement "if (param_1 == 0) {\n      puVar3 = *(undefined4 **)this;\n    }\n    else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar3 = *(undefined4 **)this;\n    }" ({ "{") (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)this" (* "*") (cast_expression "(undefined4 **)this" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this")))) (; ";")) (} "}")) (else_clause "else {\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }" (else "else") (compound_statement "{\n      puVar3 = *(undefined4 **)this;\n      if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }\n    }" ({ "{") (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)this" (* "*") (cast_expression "(undefined4 **)this" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this")))) (; ";")) (if_statement "if (param_1 == 1) {\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }" (if "if") (parenthesized_expression "(param_1 == 1)" (( "(") (binary_expression "param_1 == 1" (identifier "param_1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *(undefined4 *)(puVar2 + 0xc) = *puVar3;\n      }" ({ "{") (expression_statement "*(undefined4 *)(puVar2 + 0xc) = *puVar3;" (assignment_expression "*(undefined4 *)(puVar2 + 0xc) = *puVar3" (pointer_expression "*(undefined4 *)(puVar2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0xc)" (( "(") (binary_expression "puVar2 + 0xc" (identifier "puVar2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (} "}")) (else_clause "else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }" (else "else") (compound_statement "{\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);\n        puVar3 = *(undefined4 **)this;\n      }" ({ "{") (expression_statement "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);" (call_expression "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1)" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" (( "(") (pointer_expression "*(code *)PTR_wmemcpy_0043682c" (* "*") (cast_expression "(code *)PTR_wmemcpy_0043682c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wmemcpy_0043682c"))) () ")")) (argument_list "(puVar2 + 0xc,puVar3,param_1)" (( "(") (binary_expression "puVar2 + 0xc" (identifier "puVar2") (+ "+") (number_literal "0xc")) (, ",") (identifier "puVar3") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)this" (* "*") (cast_expression "(undefined4 **)this" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this")))) (; ";")) (} "}")))) (} "}")))) (expression_statement "puVar9 = puVar2 + 0xc;" (assignment_expression "puVar9 = puVar2 + 0xc" (identifier "puVar9") (= "=") (binary_expression "puVar2 + 0xc" (identifier "puVar2") (+ "+") (number_literal "0xc"))) (; ";")) (if_statement "if (iVar7 != 0) {\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }\n    }" ({ "{") (if_statement "if (iVar7 == 1) {\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }\n      else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }" (if "if") (parenthesized_expression "(iVar7 == 1)" (( "(") (binary_expression "iVar7 == 1" (identifier "iVar7") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];\n      }" ({ "{") (expression_statement "*(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];" (assignment_expression "*(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6]" (pointer_expression "*(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc)" (* "*") (cast_expression "(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + (param_3 + param_1) * 4 + 0xc)" (( "(") (binary_expression "puVar2 + (param_3 + param_1) * 4 + 0xc" (binary_expression "puVar2 + (param_3 + param_1) * 4" (identifier "puVar2") (+ "+") (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" (( "(") (binary_expression "param_3 + param_1" (identifier "param_3") (+ "+") (identifier "param_1")) () ")")) (* "*") (number_literal "4"))) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (subscript_expression "puVar3[iVar6]" (identifier "puVar3") ([ "[") (identifier "iVar6") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }" (else "else") (compound_statement "{\n        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;\n        puVar3 = *(undefined4 **)this;\n      }" ({ "{") (expression_statement "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)\n        ;" (call_expression "(*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)" (parenthesized_expression "(*(code *)PTR_wmemcpy_0043682c)" (( "(") (pointer_expression "*(code *)PTR_wmemcpy_0043682c" (* "*") (cast_expression "(code *)PTR_wmemcpy_0043682c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wmemcpy_0043682c"))) () ")")) (argument_list "(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)" (( "(") (binary_expression "puVar2 + (param_3 + param_1) * 4 + 0xc" (binary_expression "puVar2 + (param_3 + param_1) * 4" (identifier "puVar2") (+ "+") (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" (( "(") (binary_expression "param_3 + param_1" (identifier "param_3") (+ "+") (identifier "param_1")) () ")")) (* "*") (number_literal "4"))) (+ "+") (number_literal "0xc")) (, ",") (binary_expression "puVar3 + iVar6" (identifier "puVar3") (+ "+") (identifier "iVar6")) (, ",") (identifier "iVar7") () ")"))) (; ";")) (expression_statement "puVar3 = *(undefined4 **)this;" (assignment_expression "puVar3 = *(undefined4 **)this" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)this" (* "*") (cast_expression "(undefined4 **)this" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this")))) (; ";")) (} "}")))) (} "}"))) (expression_statement "puVar5 = PTR__S_empty_rep_storage_004322cc;" (assignment_expression "puVar5 = PTR__S_empty_rep_storage_004322cc" (identifier "puVar5") (= "=") (identifier "PTR__S_empty_rep_storage_004322cc")) (; ";")) (if_statement "if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }" (if "if") (parenthesized_expression "((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc)" (( "(") (binary_expression "(allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc" (cast_expression "(allocator *)(puVar3 + -3)" (( "(") (type_descriptor "allocator *" (type_identifier "allocator") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + -3)" (( "(") (binary_expression "puVar3 + -3" (identifier "puVar3") (+ "+") (number_literal "-3")) () ")"))) (!= "!=") (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322cc" (( "(") (type_descriptor "allocator *" (type_identifier "allocator") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__S_empty_rep_storage_004322cc"))) () ")")) (compound_statement "{\n      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }\n      if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }\n    }" ({ "{") (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }\n      else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -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        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n      }" ({ "{") (expression_statement "iVar1 = puVar3[-1];" (assignment_expression "iVar1 = puVar3[-1]" (identifier "iVar1") (= "=") (subscript_expression "puVar3[-1]" (identifier "puVar3") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (expression_statement "puVar3[-1] = iVar1 + -1;" (assignment_expression "puVar3[-1] = iVar1 + -1" (subscript_expression "puVar3[-1]" (identifier "puVar3") ([ "[") (number_literal "-1") (] "]")) (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }" (else "else") (compound_statement "{\n        SYNC(0);\n        iVar1 = puVar3[-1];\n        puVar3[-1] = iVar1 + -1;\n        SYNC(0);\n      }" ({ "{") (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar1 = puVar3[-1];" (assignment_expression "iVar1 = puVar3[-1]" (identifier "iVar1") (= "=") (subscript_expression "puVar3[-1]" (identifier "puVar3") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (expression_statement "puVar3[-1] = iVar1 + -1;" (assignment_expression "puVar3[-1] = iVar1 + -1" (subscript_expression "puVar3[-1]" (identifier "puVar3") ([ "[") (number_literal "-1") (] "]")) (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar1 < 1) {\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }" (if "if") (parenthesized_expression "(iVar1 < 1)" (( "(") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        _Rep::_M_destroy((allocator *)(puVar3 + -3));\n        *(undefined **)this = puVar9;\n        goto LAB_003577d8;\n      }" ({ "{") (labeled_statement "_Rep::_M_destroy((allocator *)(puVar3 + -3));" (statement_identifier "_Rep") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_destroy((allocator *)(puVar3 + -3));" (call_expression "_M_destroy((allocator *)(puVar3 + -3))" (identifier "_M_destroy") (argument_list "((allocator *)(puVar3 + -3))" (( "(") (cast_expression "(allocator *)(puVar3 + -3)" (( "(") (type_descriptor "allocator *" (type_identifier "allocator") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + -3)" (( "(") (binary_expression "puVar3 + -3" (identifier "puVar3") (+ "+") (number_literal "-3")) () ")"))) () ")"))) (; ";"))) (expression_statement "*(undefined **)this = puVar9;" (assignment_expression "*(undefined **)this = puVar9" (pointer_expression "*(undefined **)this" (* "*") (cast_expression "(undefined **)this" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this"))) (= "=") (identifier "puVar9")) (; ";")) (goto_statement "goto LAB_003577d8;" (goto "goto") (statement_identifier "LAB_003577d8") (; ";")) (} "}"))) (} "}"))) (expression_statement "*(undefined **)this = puVar9;" (assignment_expression "*(undefined **)this = puVar9" (pointer_expression "*(undefined **)this" (* "*") (cast_expression "(undefined **)this" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this"))) (= "=") (identifier "puVar9")) (; ";")) (} "}")) (else_clause "else {\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }\n  }" (else "else") (compound_statement "{\n    SYNC(0);\n    if (0 < *(int *)(iVar1 + -4)) {\n      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }\n    puVar9 = *(undefined **)this;\n    if ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }\n    if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -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      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\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      uVar4 = *(uint *)(*(int *)this + -8);\n      goto LAB_00357764;\n    }" ({ "{") (expression_statement "uVar4 = *(uint *)(*(int *)this + -8);" (assignment_expression "uVar4 = *(uint *)(*(int *)this + -8)" (identifier "uVar4") (= "=") (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_00357764;" (goto "goto") (statement_identifier "LAB_00357764") (; ";")) (} "}"))) (expression_statement "puVar9 = *(undefined **)this;" (assignment_expression "puVar9 = *(undefined **)this" (identifier "puVar9") (= "=") (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 ((iVar7 == 0) || (param_3 == param_2)) {\n      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }" (if "if") (parenthesized_expression "((iVar7 == 0) || (param_3 == param_2))" (( "(") (binary_expression "(iVar7 == 0) || (param_3 == param_2)" (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (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 (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }\n      goto LAB_00357894;\n    }" ({ "{") (if_statement "if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {\n        return;\n      }" (if "if") (parenthesized_expression "(puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc)" (( "(") (binary_expression "puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc" (binary_expression "puVar9 + -0xc" (identifier "puVar9") (+ "+") (number_literal "-0xc")) (== "==") (identifier "PTR__S_empty_rep_storage_004322cc")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (goto_statement "goto LAB_00357894;" (goto "goto") (statement_identifier "LAB_00357894") (; ";")) (} "}"))) (if_statement "if (iVar7 == 1) {\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }\n    else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }" (if "if") (parenthesized_expression "(iVar7 == 1)" (( "(") (binary_expression "iVar7 == 1" (identifier "iVar7") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      puVar2 = puVar9 + -0xc;\n      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);\n    }" ({ "{") (expression_statement "puVar2 = puVar9 + -0xc;" (assignment_expression "puVar2 = puVar9 + -0xc" (identifier "puVar2") (= "=") (binary_expression "puVar9 + -0xc" (identifier "puVar9") (+ "+") (number_literal "-0xc"))) (; ";")) (expression_statement "*(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);" (assignment_expression "*(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4)" (pointer_expression "*(undefined4 *)(puVar9 + (param_3 + param_1) * 4)" (* "*") (cast_expression "(undefined4 *)(puVar9 + (param_3 + param_1) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + (param_3 + param_1) * 4)" (( "(") (binary_expression "puVar9 + (param_3 + param_1) * 4" (identifier "puVar9") (+ "+") (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" (( "(") (binary_expression "param_3 + param_1" (identifier "param_3") (+ "+") (identifier "param_1")) () ")")) (* "*") (number_literal "4"))) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(puVar9 + iVar6 * 4)" (* "*") (cast_expression "(undefined4 *)(puVar9 + iVar6 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + iVar6 * 4)" (( "(") (binary_expression "puVar9 + iVar6 * 4" (identifier "puVar9") (+ "+") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }" (else "else") (compound_statement "{\n      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);\n      puVar9 = *(undefined **)this;\n      puVar2 = puVar9 + -0xc;\n    }" ({ "{") (expression_statement "(*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);" (call_expression "(*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7)" (parenthesized_expression "(*(code *)PTR_wmemmove_00436874)" (( "(") (pointer_expression "*(code *)PTR_wmemmove_00436874" (* "*") (cast_expression "(code *)PTR_wmemmove_00436874" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_wmemmove_00436874"))) () ")")) (argument_list "(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7)" (( "(") (binary_expression "puVar9 + (param_3 + param_1) * 4" (identifier "puVar9") (+ "+") (binary_expression "(param_3 + param_1) * 4" (parenthesized_expression "(param_3 + param_1)" (( "(") (binary_expression "param_3 + param_1" (identifier "param_3") (+ "+") (identifier "param_1")) () ")")) (* "*") (number_literal "4"))) (, ",") (binary_expression "puVar9 + iVar6 * 4" (identifier "puVar9") (+ "+") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) (, ",") (identifier "iVar7") () ")"))) (; ";")) (expression_statement "puVar9 = *(undefined **)this;" (assignment_expression "puVar9 = *(undefined **)this" (identifier "puVar9") (= "=") (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 = puVar9 + -0xc;" (assignment_expression "puVar2 = puVar9 + -0xc" (identifier "puVar2") (= "=") (binary_expression "puVar9 + -0xc" (identifier "puVar9") (+ "+") (number_literal "-0xc"))) (; ";")) (} "}")))) (} "}")))) (labeled_statement "LAB_003577d8:\n  if (puVar2 == puVar5) {\n    return;\n  }" (statement_identifier "LAB_003577d8") (: ":") (if_statement "if (puVar2 == puVar5) {\n    return;\n  }" (if "if") (parenthesized_expression "(puVar2 == puVar5)" (( "(") (binary_expression "puVar2 == puVar5" (identifier "puVar2") (== "==") (identifier "puVar5")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}")))) (labeled_statement "LAB_00357894:\n  *(undefined4 *)(puVar9 + -4) = 0;" (statement_identifier "LAB_00357894") (: ":") (expression_statement "*(undefined4 *)(puVar9 + -4) = 0;" (assignment_expression "*(undefined4 *)(puVar9 + -4) = 0" (pointer_expression "*(undefined4 *)(puVar9 + -4)" (* "*") (cast_expression "(undefined4 *)(puVar9 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + -4)" (( "(") (binary_expression "puVar9 + -4" (identifier "puVar9") (+ "+") (number_literal "-4")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (expression_statement "*(uint *)(puVar9 + -0xc) = uVar8;" (assignment_expression "*(uint *)(puVar9 + -0xc) = uVar8" (pointer_expression "*(uint *)(puVar9 + -0xc)" (* "*") (cast_expression "(uint *)(puVar9 + -0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + -0xc)" (( "(") (binary_expression "puVar9 + -0xc" (identifier "puVar9") (+ "+") (number_literal "-0xc")) () ")")))) (= "=") (identifier "uVar8")) (; ";")) (expression_statement "*(undefined4 *)(puVar9 + uVar8 * 4) = 0;" (assignment_expression "*(undefined4 *)(puVar9 + uVar8 * 4) = 0" (pointer_expression "*(undefined4 *)(puVar9 + uVar8 * 4)" (* "*") (cast_expression "(undefined4 *)(puVar9 + uVar8 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + uVar8 * 4)" (( "(") (binary_expression "puVar9 + uVar8 * 4" (identifier "puVar9") (+ "+") (binary_expression "uVar8 * 4" (identifier "uVar8") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wstring::_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_4 *var_11;
  type_2 var_6;
  type_3 *var_17;
  int var_5;
  int var_10;
  type_2 var_7;
  type_3 *var_15;
  type_5 aaStack_30 [8];
  
  var_17 = var_16;
  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_00357764:
    var_9 = (type_3 *)_Rep::var_8(var_7,var_6,aaStack_30);
    if (var_2 == 0) {
      var_11 = *(type_4 **)this;
    }
    else {
      var_11 = *(type_4 **)this;
      if (var_2 == 1) {
        *(type_4 *)(var_9 + 0xc) = *var_11;
      }
      else {
        (*(type_6 *)PTR_wmemcpy_0043682c)(var_9 + 0xc,var_11,var_2);
        var_11 = *(type_4 **)this;
      }
    }
    var_15 = var_9 + 0xc;
    if (var_10 != 0) {
      if (var_10 == 1) {
        *(type_4 *)(var_9 + (var_4 + var_2) * 4 + 0xc) = var_11[var_5];
      }
      else {
        (*(type_6 *)PTR_wmemcpy_0043682c)(var_9 + (var_4 + var_2) * 4 + 0xc,var_11 + var_5,var_10)
        ;
        var_11 = *(type_4 **)this;
      }
    }
    var_17 = var_16;
    if ((type_5 *)(var_11 + -3) != (type_5 *)var_16) {
      if (var_12 == (type_3 *)0x0) {
        var_3 = var_11[-1];
        var_11[-1] = var_3 + -1;
      }
      else {
        var_13(0);
        var_3 = var_11[-1];
        var_11[-1] = var_3 + -1;
        var_13(0);
      }
      if (var_3 < 1) {
        _Rep::var_14((type_5 *)(var_11 + -3));
        *(type_3 **)this = var_15;
        goto LAB_003577d8;
      }
    }
    *(type_3 **)this = var_15;
  }
  else {
    var_13(0);
    if (0 < *(int *)(var_3 + -4)) {
      var_6 = *(type_2 *)(*(int *)this + -8);
      goto LAB_00357764;
    }
    var_15 = *(type_3 **)this;
    if ((var_10 == 0) || (var_4 == var_1)) {
      if (var_15 + -0xc == var_16) {
        return;
      }
      goto LAB_00357894;
    }
    if (var_10 == 1) {
      var_9 = var_15 + -0xc;
      *(type_4 *)(var_15 + (var_4 + var_2) * 4) = *(type_4 *)(var_15 + var_5 * 4);
    }
    else {
      (*(type_6 *)PTR_wmemmove_00436874)(var_15 + (var_4 + var_2) * 4,var_15 + var_5 * 4,var_10);
      var_15 = *(type_3 **)this;
      var_9 = var_15 + -0xc;
    }
  }
LAB_003577d8:
  if (var_9 == var_17) {
    return;
  }
LAB_00357894:
  *(type_4 *)(var_15 + -4) = 0;
  *(type_2 *)(var_15 + -0xc) = var_7;
  *(type_4 *)(var_15 + var_7 * 4) = 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: (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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator 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 (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)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (pointer_expression argument: (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)) (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)))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (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: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))) right: (number_literal)) (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: (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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: (identifier) right: (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)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_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: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))) (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) (return_statement))))

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

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

{
  int iVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  uint uVar4;
  undefined *puVar5;
  int iVar6;
  int iVar7;
  uint uVar8;
  undefined *puVar9;
  allocator aaStack_30 [8];
  
  puVar5 = PTR__S_empty_rep_storage_004322cc;
  iVar1 = *(int *)this;
  iVar6 = param_2 + param_1;
  uVar4 = *(uint *)(iVar1 + -8);
  uVar8 = (param_3 - param_2) + *(int *)(iVar1 + -0xc);
  iVar7 = *(int *)(iVar1 + -0xc) - iVar6;
  if (uVar4 < uVar8) {
LAB_00357764:
    puVar2 = (undefined *)_Rep::_S_create(uVar8,uVar4,aaStack_30);
    if (param_1 == 0) {
      puVar3 = *(undefined4 **)this;
    }
    else {
      puVar3 = *(undefined4 **)this;
      if (param_1 == 1) {
        *(undefined4 *)(puVar2 + 0xc) = *puVar3;
      }
      else {
        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + 0xc,puVar3,param_1);
        puVar3 = *(undefined4 **)this;
      }
    }
    puVar9 = puVar2 + 0xc;
    if (iVar7 != 0) {
      if (iVar7 == 1) {
        *(undefined4 *)(puVar2 + (param_3 + param_1) * 4 + 0xc) = puVar3[iVar6];
      }
      else {
        (*(code *)PTR_wmemcpy_0043682c)(puVar2 + (param_3 + param_1) * 4 + 0xc,puVar3 + iVar6,iVar7)
        ;
        puVar3 = *(undefined4 **)this;
      }
    }
    puVar5 = PTR__S_empty_rep_storage_004322cc;
    if ((allocator *)(puVar3 + -3) != (allocator *)PTR__S_empty_rep_storage_004322cc) {
      if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
        iVar1 = puVar3[-1];
        puVar3[-1] = iVar1 + -1;
      }
      else {
        SYNC(0);
        iVar1 = puVar3[-1];
        puVar3[-1] = iVar1 + -1;
        SYNC(0);
      }
      if (iVar1 < 1) {
        _Rep::_M_destroy((allocator *)(puVar3 + -3));
        *(undefined **)this = puVar9;
        goto LAB_003577d8;
      }
    }
    *(undefined **)this = puVar9;
  }
  else {
    SYNC(0);
    if (0 < *(int *)(iVar1 + -4)) {
      uVar4 = *(uint *)(*(int *)this + -8);
      goto LAB_00357764;
    }
    puVar9 = *(undefined **)this;
    if ((iVar7 == 0) || (param_3 == param_2)) {
      if (puVar9 + -0xc == PTR__S_empty_rep_storage_004322cc) {
        return;
      }
      goto LAB_00357894;
    }
    if (iVar7 == 1) {
      puVar2 = puVar9 + -0xc;
      *(undefined4 *)(puVar9 + (param_3 + param_1) * 4) = *(undefined4 *)(puVar9 + iVar6 * 4);
    }
    else {
      (*(code *)PTR_wmemmove_00436874)(puVar9 + (param_3 + param_1) * 4,puVar9 + iVar6 * 4,iVar7);
      puVar9 = *(undefined **)this;
      puVar2 = puVar9 + -0xc;
    }
  }
LAB_003577d8:
  if (puVar2 == puVar5) {
    return;
  }
LAB_00357894:
  *(undefined4 *)(puVar9 + -4) = 0;
  *(uint *)(puVar9 + -0xc) = uVar8;
  *(undefined4 *)(puVar9 + uVar8 * 4) = 0;
  return;
}

