
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::wistream& std::getline<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>
   >(std::wistream&, std::wstring&, wchar_t) */

wistream *
std::getline<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>>
          (wistream *param_1,wstring *param_2,wchar_t param_3)

{
  long *plVar1;
  ulong uVar2;
  wchar_t wVar3;
  wchar_t *pwVar4;
  wchar_t *pwVar5;
  wstring *pwVar6;
  size_t __n;
  ulong uVar7;
  _Ios_Iostate _Var8;
  wios *this;
  ulong uVar9;
  sentry local_39 [9];
  
  wistream::sentry::sentry(local_39,(wistream *)param_1,true);
  if (local_39[0] == (sentry)0x0) {
LAB_002a3991:
    _Var8 = _S_failbit;
    this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));
  }
  else {
    *(undefined8 *)(param_2 + 8) = 0;
    **(undefined4 **)param_2 = 0;
    this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));
    plVar1 = *(long **)((wistream *)this + 0xe8);
    pwVar5 = (wchar_t *)plVar1[2];
    pwVar4 = (wchar_t *)plVar1[3];
    if (pwVar5 < pwVar4) {
      wVar3 = *pwVar5;
      if (wVar3 != L'\xffffffff') {
LAB_002a3a00:
        uVar9 = 0;
        if (param_3 == wVar3) {
          if (pwVar4 <= pwVar5) {
                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */
            (**(code **)(*plVar1 + 0x50))(plVar1);
            return param_1;
          }
LAB_002a3c8e:
          plVar1[2] = (long)(pwVar5 + 1);
          return param_1;
        }
        do {
          uVar2 = *(ulong *)(param_2 + 8);
          __n = (long)pwVar4 - (long)pwVar5 >> 2;
          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {
            __n = 0x1fffffffffffffff - uVar9;
          }
          if ((long)__n < 2) {
            pwVar6 = *(wstring **)param_2;
            if (pwVar6 == param_2 + 0x10) {
              uVar7 = 3;
            }
            else {
              uVar7 = *(ulong *)(param_2 + 0x10);
            }
            if (uVar7 < uVar2 + 1) {
              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);
              pwVar6 = *(wstring **)param_2;
              pwVar5 = (wchar_t *)plVar1[2];
              pwVar4 = (wchar_t *)plVar1[3];
            }
            *(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;
            uVar9 = uVar9 + 1;
            *(ulong *)(param_2 + 8) = uVar2 + 1;
            *(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;
            if (pwVar5 < pwVar4) {
              wVar3 = *pwVar5;
              plVar1[2] = (long)(pwVar5 + 1);
            }
            else {
              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);
            }
            if (wVar3 != L'\xffffffff') {
              pwVar5 = (wchar_t *)plVar1[2];
              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;
              goto LAB_002a3abd;
            }
LAB_002a3c20:
            _Var8 = _S_eofbit;
            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));
            goto LAB_002a39a0;
          }
          pwVar4 = wmemchr(pwVar5,param_3,__n);
          uVar7 = (long)pwVar4 - (long)pwVar5 >> 2;
          if (pwVar4 == (wchar_t *)0x0) {
            uVar7 = __n;
          }
          if (0x1fffffffffffffff - uVar2 < uVar7) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */
            __throw_length_error("basic_string::append");
          }
                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */
          wstring::_M_append(param_2,pwVar5,uVar7);
          uVar9 = uVar9 + uVar7;
          pwVar5 = (wchar_t *)(plVar1[2] + uVar7 * 4);
          plVar1[2] = (long)pwVar5;
          if (pwVar5 < (wchar_t *)plVar1[3]) {
LAB_002a3abd:
            wVar3 = *pwVar5;
          }
          else {
LAB_002a3b83:
            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);
          }
          if (0x1ffffffffffffffe < uVar9) {
            if (wVar3 == L'\xffffffff') goto LAB_002a3c20;
            if (param_3 != wVar3) goto LAB_002a3991;
            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;
            plVar1[2] = plVar1[2] + 4;
            if (uVar9 != 0xffffffffffffffff) {
              return param_1;
            }
            goto LAB_002a3991;
          }
          if (wVar3 == L'\xffffffff') {
            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));
            _Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;
            goto LAB_002a39a0;
          }
          pwVar5 = (wchar_t *)plVar1[2];
          pwVar4 = (wchar_t *)plVar1[3];
        } while (param_3 != wVar3);
        if (pwVar5 < pwVar4) goto LAB_002a3c8e;
LAB_002a3afa:
        (**(code **)(*plVar1 + 0x50))(plVar1);
        if (uVar9 != 0xffffffffffffffff) {
          return param_1;
        }
        goto LAB_002a3991;
      }
    }
    else {
                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */
      wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);
      if (wVar3 != L'\xffffffff') {
        pwVar4 = (wchar_t *)plVar1[3];
        pwVar5 = (wchar_t *)plVar1[2];
        goto LAB_002a3a00;
      }
      this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));
    }
    _Var8 = _S_failbit|_S_eofbit;
  }
LAB_002a39a0:
  wios::clear(this,_Var8 | *(_Ios_Iostate *)(this + 0x20));
  return param_1;
}



long * FUN_002a3960(long *param_1,undefined8 *param_2,wchar_t param_3)

{
  long *plVar1;
  wchar_t wVar2;
  wchar_t *pwVar3;
  wchar_t *pwVar4;
  undefined8 *puVar5;
  size_t __n;
  ulong uVar6;
  uint uVar7;
  long lVar8;
  ulong uVar9;
  char local_39 [9];
  
  FUN_002c5a30(local_39,param_1,1);
  if (local_39[0] == '\0') {
LAB_002a3991:
    uVar7 = 4;
    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;
  }
  else {
    param_2[1] = 0;
    *(undefined4 *)*param_2 = 0;
    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;
    plVar1 = *(long **)(lVar8 + 0xe8);
    pwVar4 = (wchar_t *)plVar1[2];
    pwVar3 = (wchar_t *)plVar1[3];
    if (pwVar4 < pwVar3) {
      wVar2 = *pwVar4;
      if (wVar2 != L'\xffffffff') {
LAB_002a3a00:
        uVar9 = 0;
        if (param_3 == wVar2) {
          if (pwVar3 <= pwVar4) {
                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */
            (**(code **)(*plVar1 + 0x50))(plVar1);
            return param_1;
          }
LAB_002a3c8e:
          plVar1[2] = (long)(pwVar4 + 1);
          return param_1;
        }
        do {
          lVar8 = param_2[1];
          __n = (long)pwVar3 - (long)pwVar4 >> 2;
          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {
            __n = 0x1fffffffffffffff - uVar9;
          }
          if ((long)__n < 2) {
            puVar5 = (undefined8 *)*param_2;
            if (puVar5 == param_2 + 2) {
              uVar6 = 3;
            }
            else {
              uVar6 = param_2[2];
            }
            if (uVar6 < lVar8 + 1U) {
              FUN_002a6770(param_2,lVar8,0,0,1);
              puVar5 = (undefined8 *)*param_2;
              pwVar4 = (wchar_t *)plVar1[2];
              pwVar3 = (wchar_t *)plVar1[3];
            }
            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;
            uVar9 = uVar9 + 1;
            param_2[1] = lVar8 + 1;
            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;
            if (pwVar4 < pwVar3) {
              wVar2 = *pwVar4;
              plVar1[2] = (long)(pwVar4 + 1);
            }
            else {
              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);
            }
            if (wVar2 != L'\xffffffff') {
              pwVar4 = (wchar_t *)plVar1[2];
              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;
              goto LAB_002a3abd;
            }
LAB_002a3c20:
            uVar7 = 2;
            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;
            goto LAB_002a39a0;
          }
          pwVar3 = wmemchr(pwVar4,param_3,__n);
          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;
          if (pwVar3 == (wchar_t *)0x0) {
            uVar6 = __n;
          }
          if (0x1fffffffffffffffU - lVar8 < uVar6) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */
            FUN_002e12b0("basic_string::append");
          }
                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */
          FUN_002a7e20(param_2,pwVar4,uVar6);
          uVar9 = uVar9 + uVar6;
          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);
          plVar1[2] = (long)pwVar4;
          if (pwVar4 < (wchar_t *)plVar1[3]) {
LAB_002a3abd:
            wVar2 = *pwVar4;
          }
          else {
LAB_002a3b83:
            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);
          }
          if (0x1ffffffffffffffe < uVar9) {
            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;
            if (param_3 != wVar2) goto LAB_002a3991;
            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;
            plVar1[2] = plVar1[2] + 4;
            if (uVar9 != 0xffffffffffffffff) {
              return param_1;
            }
            goto LAB_002a3991;
          }
          if (wVar2 == L'\xffffffff') {
            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;
            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;
            goto LAB_002a39a0;
          }
          pwVar4 = (wchar_t *)plVar1[2];
          pwVar3 = (wchar_t *)plVar1[3];
        } while (param_3 != wVar2);
        if (pwVar4 < pwVar3) goto LAB_002a3c8e;
LAB_002a3afa:
        (**(code **)(*plVar1 + 0x50))(plVar1);
        if (uVar9 != 0xffffffffffffffff) {
          return param_1;
        }
        goto LAB_002a3991;
      }
    }
    else {
                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */
      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);
      if (wVar2 != L'\xffffffff') {
        pwVar3 = (wchar_t *)plVar1[3];
        pwVar4 = (wchar_t *)plVar1[2];
        goto LAB_002a3a00;
      }
      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;
    }
    uVar7 = 6;
  }
LAB_002a39a0:
  FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));
  return param_1;
}


PUSH R15
MOV R15,RDI
PUSH R14
PUSH R13
MOV R13,RSI
MOV RSI,R15
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x38
MOV dword ptr [RSP + 0x4],EDX
LEA RDI,[RSP + 0x2f]
MOV EDX,0x1
CALL 0x002c5a30
CMP byte ptr [RSP + 0x2f],0x0
JNZ 0x002a39c0
MOV RAX,qword ptr [R15]
MOV ESI,0x4
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,R15
OR ESI,dword ptr [RDI + 0x20]
CALL 0x002c8f80
ADD RSP,0x38
MOV RAX,R15
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV RAX,qword ptr [R13]
MOV qword ptr [R13 + 0x8],0x0
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [R15]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,R15
MOV RBP,qword ptr [RDI + 0xe8]
MOV R8,qword ptr [RBP + 0x10]
MOV RDX,qword ptr [RBP + 0x18]
CMP RDX,R8
JBE 0x002a3c70
MOV EBX,dword ptr [R8]
CMP EBX,-0x1
JZ 0x002a3cb9
LEA RAX,[R13 + 0x10]
XOR R12D,R12D
MOV qword ptr [RSP + 0x18],RAX
CMP dword ptr [RSP + 0x4],EBX
JZ 0x002a3c9b
NOP word ptr CS:[RAX + RAX*0x1]
MOV RCX,RDX
MOV R14,qword ptr [R13 + 0x8]
MOV RAX,0x1fffffffffffffff
SUB RCX,R8
SUB RAX,R12
SAR RCX,0x2
CMP RCX,RAX
CMOVG RCX,RAX
CMP RCX,0x1
JLE 0x002a3b18
MOV ESI,dword ptr [RSP + 0x4]
MOV RDX,RCX
MOV RDI,R8
MOV qword ptr [RSP + 0x10],RCX
MOV qword ptr [RSP + 0x8],R8
CALL 0x001444d0
MOV R8,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x10]
MOV RBX,RAX
SUB RBX,R8
SAR RBX,0x2
TEST RAX,RAX
MOV RAX,0x1fffffffffffffff
CMOVZ RBX,RCX
SUB RAX,R14
CMP RAX,RBX
JC 0x002a3cc3
MOV RDX,RBX
MOV RSI,R8
MOV RDI,R13
CALL 0x002a7e20
MOV RAX,qword ptr [RBP + 0x10]
ADD R12,RBX
LEA RAX,[RAX + RBX*0x4]
MOV qword ptr [RBP + 0x10],RAX
CMP qword ptr [RBP + 0x18],RAX
JBE 0x002a3b83
MOV EBX,dword ptr [RAX]
MOV RAX,0x1ffffffffffffffe
CMP R12,RAX
JA 0x002a3ba8
CMP EBX,-0x1
JZ 0x002a3c50
MOV R8,qword ptr [RBP + 0x10]
MOV RDX,qword ptr [RBP + 0x18]
CMP dword ptr [RSP + 0x4],EBX
JNZ 0x002a3a20
ADD R12,0x1
CMP R8,RDX
JC 0x002a3c8e
MOV RAX,qword ptr [RBP]
MOV RDI,RBP
CALL qword ptr [RAX + 0x50]
TEST R12,R12
JZ 0x002a3991
JMP 0x002a39a8
LEA RAX,[R14 + 0x1]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [R13]
CMP RAX,qword ptr [RSP + 0x18]
JZ 0x002a3c10
MOV RCX,qword ptr [R13 + 0x10]
CMP qword ptr [RSP + 0x8],RCX
JA 0x002a3be0
LEA RSI,[R14 + 0x1]
MOV dword ptr [RAX + R14*0x4],EBX
ADD R12,0x1
MOV qword ptr [R13 + 0x8],RSI
MOV dword ptr [RAX + R14*0x4 + 0x4],0x0
CMP R8,RDX
JNC 0x002a3c38
MOV EAX,dword ptr [R8]
ADD R8,0x4
MOV qword ptr [RBP + 0x10],R8
CMP EAX,-0x1
JZ 0x002a3c20
MOV RAX,qword ptr [RBP + 0x10]
CMP RAX,qword ptr [RBP + 0x18]
JC 0x002a3abd
MOV RAX,qword ptr [RBP]
MOV RDI,RBP
CALL qword ptr [RAX + 0x48]
MOV EBX,EAX
MOV RAX,0x1ffffffffffffffe
CMP R12,RAX
JBE 0x002a3ad2
NOP word ptr [RAX + RAX*0x1]
CMP EBX,-0x1
JZ 0x002a3c20
CMP dword ptr [RSP + 0x4],EBX
JNZ 0x002a3991
ADD R12,0x1
MOV RAX,qword ptr [RBP + 0x10]
CMP RAX,qword ptr [RBP + 0x18]
JNC 0x002a3afa
ADD RAX,0x4
MOV qword ptr [RBP + 0x10],RAX
TEST R12,R12
JZ 0x002a3991
JMP 0x002a39a8
MOV R8D,0x1
XOR ECX,ECX
XOR EDX,EDX
MOV RSI,R14
MOV RDI,R13
CALL 0x002a6770
MOV RAX,qword ptr [R13]
MOV R8,qword ptr [RBP + 0x10]
MOV RDX,qword ptr [RBP + 0x18]
JMP 0x002a3b3f
MOV ECX,0x3
JMP 0x002a3b34
MOV RAX,qword ptr [R15]
MOV ESI,0x2
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,R15
JMP 0x002a39a0
MOV RAX,qword ptr [RBP]
MOV RDI,RBP
CALL qword ptr [RAX + 0x50]
JMP 0x002a3b6c
MOV RAX,qword ptr [R15]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,R15
CMP R12,0x1
SBB ESI,ESI
AND ESI,0x4
ADD ESI,0x2
JMP 0x002a39a0
MOV RAX,qword ptr [RBP]
MOV RDI,RBP
CALL qword ptr [RAX + 0x48]
MOV EBX,EAX
CMP EAX,-0x1
JZ 0x002a3caf
MOV RDX,qword ptr [RBP + 0x18]
MOV R8,qword ptr [RBP + 0x10]
JMP 0x002a3a00
LEA RAX,[R8 + 0x4]
MOV qword ptr [RBP + 0x10],RAX
JMP 0x002a39a8
CMP RDX,R8
JA 0x002a3c8e
MOV RAX,qword ptr [RBP]
MOV RDI,RBP
CALL qword ptr [RAX + 0x50]
JMP 0x002a39a8
MOV RAX,qword ptr [R15]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,R15
MOV ESI,0x6
JMP 0x002a39a0
LEA RDI,[0x33f24b]
CALL 0x002e12b0
(translation_unit "long * FUN_002a3960(long *param_1,undefined8 *param_2,wchar_t param_3)\n\n{\n  long *plVar1;\n  wchar_t wVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  undefined8 *puVar5;\n  size_t __n;\n  ulong uVar6;\n  uint uVar7;\n  long lVar8;\n  ulong uVar9;\n  char local_39 [9];\n  \n  FUN_002c5a30(local_39,param_1,1);\n  if (local_39[0] == '\0') {\nLAB_002a3991:\n    uVar7 = 4;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            FUN_002e12b0("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }\nLAB_002a39a0:\n  FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));\n  return param_1;\n}\n\n" (function_definition "long * FUN_002a3960(long *param_1,undefined8 *param_2,wchar_t param_3)\n\n{\n  long *plVar1;\n  wchar_t wVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  undefined8 *puVar5;\n  size_t __n;\n  ulong uVar6;\n  uint uVar7;\n  long lVar8;\n  ulong uVar9;\n  char local_39 [9];\n  \n  FUN_002c5a30(local_39,param_1,1);\n  if (local_39[0] == '\0') {\nLAB_002a3991:\n    uVar7 = 4;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            FUN_002e12b0("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }\nLAB_002a39a0:\n  FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_002a3960(long *param_1,undefined8 *param_2,wchar_t param_3)" * (function_declarator "FUN_002a3960(long *param_1,undefined8 *param_2,wchar_t param_3)" identifier (parameter_list "(long *param_1,undefined8 *param_2,wchar_t param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "wchar_t param_3" type_identifier identifier) )))) (compound_statement "{\n  long *plVar1;\n  wchar_t wVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  undefined8 *puVar5;\n  size_t __n;\n  ulong uVar6;\n  uint uVar7;\n  long lVar8;\n  ulong uVar9;\n  char local_39 [9];\n  \n  FUN_002c5a30(local_39,param_1,1);\n  if (local_39[0] == '\0') {\nLAB_002a3991:\n    uVar7 = 4;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            FUN_002e12b0("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }\nLAB_002a39a0:\n  FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "wchar_t wVar2;" type_identifier identifier ;) (declaration "wchar_t *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "wchar_t *pwVar4;" type_identifier (pointer_declarator "*pwVar4" * identifier) ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "char local_39 [9];" primitive_type (array_declarator "local_39 [9]" identifier [ number_literal ]) ;) (expression_statement "FUN_002c5a30(local_39,param_1,1);" (call_expression "FUN_002c5a30(local_39,param_1,1)" identifier (argument_list "(local_39,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_39[0] == '\0') {\nLAB_002a3991:\n    uVar7 = 4;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            FUN_002e12b0("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }" if (parenthesized_expression "(local_39[0] == '\0')" ( (binary_expression "local_39[0] == '\0'" (subscript_expression "local_39[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_002a3991:\n    uVar7 = 4;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }" { (labeled_statement "LAB_002a3991:\n    uVar7 = 4;" statement_identifier : (expression_statement "uVar7 = 4;" (assignment_expression "uVar7 = 4" identifier = number_literal) ;)) (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) }) (else_clause "else {\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            FUN_002e12b0("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }" else (compound_statement "{\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            FUN_002e12b0("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }" { (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)*param_2 = 0;" (assignment_expression "*(undefined4 *)*param_2 = 0" (pointer_expression "*(undefined4 *)*param_2" * (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) = number_literal) ;) (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "plVar1 = *(long **)(lVar8 + 0xe8);" (assignment_expression "plVar1 = *(long **)(lVar8 + 0xe8)" identifier = (pointer_expression "*(long **)(lVar8 + 0xe8)" * (cast_expression "(long **)(lVar8 + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar8 + 0xe8)" ( (binary_expression "lVar8 + 0xe8" identifier + number_literal) ))))) ;) (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pwVar3 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar3 = (wchar_t *)plVar1[3]" identifier = (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) (if_statement "if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            FUN_002e12b0("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" if (parenthesized_expression "(pwVar4 < pwVar3)" ( (binary_expression "pwVar4 < pwVar3" identifier < identifier) )) (compound_statement "{\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            FUN_002e12b0("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }" { (expression_statement "wVar2 = *pwVar4;" (assignment_expression "wVar2 = *pwVar4" identifier = (pointer_expression "*pwVar4" * identifier)) ;) (if_statement "if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            FUN_002e12b0("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }" if (parenthesized_expression "(wVar2 != L'\xffffffff')" ( (binary_expression "wVar2 != L'\xffffffff'" identifier != (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            FUN_002e12b0("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }" { (labeled_statement "LAB_002a3a00:\n        uVar9 = 0;" statement_identifier : (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;)) (if_statement "if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }" if (parenthesized_expression "(param_3 == wVar2)" ( (binary_expression "param_3 == wVar2" identifier == identifier) )) (compound_statement "{\n          if (pwVar3 <= pwVar4) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }" { (if_statement "if (pwVar3 <= pwVar4) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }" if (parenthesized_expression "(pwVar3 <= pwVar4)" ( (binary_expression "pwVar3 <= pwVar4" identifier <= identifier) )) (compound_statement "{\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }" { comment (expression_statement "(**(code **)(*plVar1 + 0x50))(plVar1);" (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) (labeled_statement "LAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);" statement_identifier : (expression_statement "plVar1[2] = (long)(pwVar4 + 1);" (assignment_expression "plVar1[2] = (long)(pwVar4 + 1)" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)(pwVar4 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(pwVar4 + 1)" ( (binary_expression "pwVar4 + 1" identifier + number_literal) )))) ;)) (return_statement "return param_1;" return identifier ;) })) (do_statement "do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            FUN_002e12b0("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);" do (compound_statement "{\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            FUN_002e12b0("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        }" { (expression_statement "lVar8 = param_2[1];" (assignment_expression "lVar8 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "__n = (long)pwVar3 - (long)pwVar4 >> 2;" (assignment_expression "__n = (long)pwVar3 - (long)pwVar4 >> 2" identifier = (binary_expression "(long)pwVar3 - (long)pwVar4 >> 2" (binary_expression "(long)pwVar3 - (long)pwVar4" (cast_expression "(long)pwVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pwVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal)) ;) (if_statement "if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }" if (parenthesized_expression "((long)(0x1fffffffffffffff - uVar9) < (long)__n)" ( (binary_expression "(long)(0x1fffffffffffffff - uVar9) < (long)__n" (cast_expression "(long)(0x1fffffffffffffff - uVar9)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(0x1fffffffffffffff - uVar9)" ( (binary_expression "0x1fffffffffffffff - uVar9" number_literal - identifier) ))) < (cast_expression "(long)__n" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )) (compound_statement "{\n            __n = 0x1fffffffffffffff - uVar9;\n          }" { (expression_statement "__n = 0x1fffffffffffffff - uVar9;" (assignment_expression "__n = 0x1fffffffffffffff - uVar9" identifier = (binary_expression "0x1fffffffffffffff - uVar9" number_literal - identifier)) ;) })) (if_statement "if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }" if (parenthesized_expression "((long)__n < 2)" ( (binary_expression "(long)__n < 2" (cast_expression "(long)__n" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) < number_literal) )) (compound_statement "{\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }" { (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }" if (parenthesized_expression "(puVar5 == param_2 + 2)" ( (binary_expression "puVar5 == param_2 + 2" identifier == (binary_expression "param_2 + 2" identifier + number_literal)) )) (compound_statement "{\n              uVar6 = 3;\n            }" { (expression_statement "uVar6 = 3;" (assignment_expression "uVar6 = 3" identifier = number_literal) ;) }) (else_clause "else {\n              uVar6 = param_2[2];\n            }" else (compound_statement "{\n              uVar6 = param_2[2];\n            }" { (expression_statement "uVar6 = param_2[2];" (assignment_expression "uVar6 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }" if (parenthesized_expression "(uVar6 < lVar8 + 1U)" ( (binary_expression "uVar6 < lVar8 + 1U" identifier < (binary_expression "lVar8 + 1U" identifier + number_literal)) )) (compound_statement "{\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }" { (expression_statement "FUN_002a6770(param_2,lVar8,0,0,1);" (call_expression "FUN_002a6770(param_2,lVar8,0,0,1)" identifier (argument_list "(param_2,lVar8,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pwVar3 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar3 = (wchar_t *)plVar1[3]" identifier = (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) })) (expression_statement "*(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;" (assignment_expression "*(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2" (pointer_expression "*(wchar_t *)((long)puVar5 + lVar8 * 4)" * (cast_expression "(wchar_t *)((long)puVar5 + lVar8 * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar5 + lVar8 * 4)" ( (binary_expression "(long)puVar5 + lVar8 * 4" (cast_expression "(long)puVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "lVar8 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (expression_statement "param_2[1] = lVar8 + 1;" (assignment_expression "param_2[1] = lVar8 + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "lVar8 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;" (assignment_expression "*(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0" (pointer_expression "*(undefined4 *)((long)puVar5 + lVar8 * 4 + 4)" * (cast_expression "(undefined4 *)((long)puVar5 + lVar8 * 4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar5 + lVar8 * 4 + 4)" ( (binary_expression "(long)puVar5 + lVar8 * 4 + 4" (binary_expression "(long)puVar5 + lVar8 * 4" (cast_expression "(long)puVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "lVar8 * 4" identifier * number_literal)) + number_literal) )))) = number_literal) ;) (if_statement "if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }" if (parenthesized_expression "(pwVar4 < pwVar3)" ( (binary_expression "pwVar4 < pwVar3" identifier < identifier) )) (compound_statement "{\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }" { (expression_statement "wVar2 = *pwVar4;" (assignment_expression "wVar2 = *pwVar4" identifier = (pointer_expression "*pwVar4" * identifier)) ;) (expression_statement "plVar1[2] = (long)(pwVar4 + 1);" (assignment_expression "plVar1[2] = (long)(pwVar4 + 1)" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)(pwVar4 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(pwVar4 + 1)" ( (binary_expression "pwVar4 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }" else (compound_statement "{\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }" { (expression_statement "wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);" (assignment_expression "wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) ;) }))) (if_statement "if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }" if (parenthesized_expression "(wVar2 != L'\xffffffff')" ( (binary_expression "wVar2 != L'\xffffffff'" identifier != (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }" { (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;" if (parenthesized_expression "((wchar_t *)plVar1[3] <= pwVar4)" ( (binary_expression "(wchar_t *)plVar1[3] <= pwVar4" (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ])) <= identifier) )) (goto_statement "goto LAB_002a3b83;" goto statement_identifier ;)) (goto_statement "goto LAB_002a3abd;" goto statement_identifier ;) })) (labeled_statement "LAB_002a3c20:\n            uVar7 = 2;" statement_identifier : (expression_statement "uVar7 = 2;" (assignment_expression "uVar7 = 2" identifier = number_literal) ;)) (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (goto_statement "goto LAB_002a39a0;" goto statement_identifier ;) })) (expression_statement "pwVar3 = wmemchr(pwVar4,param_3,__n);" (assignment_expression "pwVar3 = wmemchr(pwVar4,param_3,__n)" identifier = (call_expression "wmemchr(pwVar4,param_3,__n)" identifier (argument_list "(pwVar4,param_3,__n)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;" (assignment_expression "uVar6 = (long)pwVar3 - (long)pwVar4 >> 2" identifier = (binary_expression "(long)pwVar3 - (long)pwVar4 >> 2" (binary_expression "(long)pwVar3 - (long)pwVar4" (cast_expression "(long)pwVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pwVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal)) ;) (if_statement "if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }" if (parenthesized_expression "(pwVar3 == (wchar_t *)0x0)" ( (binary_expression "pwVar3 == (wchar_t *)0x0" identifier == (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar6 = __n;\n          }" { (expression_statement "uVar6 = __n;" (assignment_expression "uVar6 = __n" identifier = identifier) ;) })) (if_statement "if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            FUN_002e12b0("basic_string::append");\n          }" if (parenthesized_expression "(0x1fffffffffffffffU - lVar8 < uVar6)" ( (binary_expression "0x1fffffffffffffffU - lVar8 < uVar6" (binary_expression "0x1fffffffffffffffU - lVar8" number_literal - identifier) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            FUN_002e12b0("basic_string::append");\n          }" { comment comment (expression_statement "FUN_002e12b0("basic_string::append");" (call_expression "FUN_002e12b0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) comment (expression_statement "FUN_002a7e20(param_2,pwVar4,uVar6);" (call_expression "FUN_002a7e20(param_2,pwVar4,uVar6)" identifier (argument_list "(param_2,pwVar4,uVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar9 = uVar9 + uVar6;" (assignment_expression "uVar9 = uVar9 + uVar6" identifier = (binary_expression "uVar9 + uVar6" identifier + identifier)) ;) (expression_statement "pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);" (assignment_expression "pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4)" identifier = (cast_expression "(wchar_t *)(plVar1[2] + uVar6 * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar1[2] + uVar6 * 4)" ( (binary_expression "plVar1[2] + uVar6 * 4" (subscript_expression "plVar1[2]" identifier [ number_literal ]) + (binary_expression "uVar6 * 4" identifier * number_literal)) )))) ;) (expression_statement "plVar1[2] = (long)pwVar4;" (assignment_expression "plVar1[2] = (long)pwVar4" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)pwVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }" if (parenthesized_expression "(pwVar4 < (wchar_t *)plVar1[3])" ( (binary_expression "pwVar4 < (wchar_t *)plVar1[3]" identifier < (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }" { (labeled_statement "LAB_002a3abd:\n            wVar2 = *pwVar4;" statement_identifier : (expression_statement "wVar2 = *pwVar4;" (assignment_expression "wVar2 = *pwVar4" identifier = (pointer_expression "*pwVar4" * identifier)) ;)) }) (else_clause "else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }" else (compound_statement "{\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }" { (labeled_statement "LAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);" statement_identifier : (expression_statement "wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);" (assignment_expression "wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) ;)) }))) (if_statement "if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }" if (parenthesized_expression "(0x1ffffffffffffffe < uVar9)" ( (binary_expression "0x1ffffffffffffffe < uVar9" number_literal < identifier) )) (compound_statement "{\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }" { (if_statement "if (wVar2 == L'\xffffffff') goto LAB_002a3c20;" if (parenthesized_expression "(wVar2 == L'\xffffffff')" ( (binary_expression "wVar2 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (goto_statement "goto LAB_002a3c20;" goto statement_identifier ;)) (if_statement "if (param_3 != wVar2) goto LAB_002a3991;" if (parenthesized_expression "(param_3 != wVar2)" ( (binary_expression "param_3 != wVar2" identifier != identifier) )) (goto_statement "goto LAB_002a3991;" goto statement_identifier ;)) (if_statement "if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;" if (parenthesized_expression "((ulong)plVar1[3] <= (ulong)plVar1[2])" ( (binary_expression "(ulong)plVar1[3] <= (ulong)plVar1[2]" (cast_expression "(ulong)plVar1[3]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[3]" identifier [ number_literal ])) <= (cast_expression "(ulong)plVar1[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_002a3afa;" goto statement_identifier ;)) (expression_statement "plVar1[2] = plVar1[2] + 4;" (assignment_expression "plVar1[2] = plVar1[2] + 4" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (binary_expression "plVar1[2] + 4" (subscript_expression "plVar1[2]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }" if (parenthesized_expression "(uVar9 != 0xffffffffffffffff)" ( (binary_expression "uVar9 != 0xffffffffffffffff" identifier != number_literal) )) (compound_statement "{\n              return param_1;\n            }" { (return_statement "return param_1;" return identifier ;) })) (goto_statement "goto LAB_002a3991;" goto statement_identifier ;) })) (if_statement "if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }" if (parenthesized_expression "(wVar2 == L'\xffffffff')" ( (binary_expression "wVar2 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }" { (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;" (assignment_expression "uVar7 = (-(uint)(uVar9 == 0) & 4) + 2" identifier = (binary_expression "(-(uint)(uVar9 == 0) & 4) + 2" (parenthesized_expression "(-(uint)(uVar9 == 0) & 4)" ( (binary_expression "-(uint)(uVar9 == 0) & 4" (unary_expression "-(uint)(uVar9 == 0)" - (call_expression "(uint)(uVar9 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) )))) & number_literal) )) + number_literal)) ;) (goto_statement "goto LAB_002a39a0;" goto statement_identifier ;) })) (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pwVar3 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar3 = (wchar_t *)plVar1[3]" identifier = (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(param_3 != wVar2)" ( (binary_expression "param_3 != wVar2" identifier != identifier) )) ;) (if_statement "if (pwVar4 < pwVar3) goto LAB_002a3c8e;" if (parenthesized_expression "(pwVar4 < pwVar3)" ( (binary_expression "pwVar4 < pwVar3" identifier < identifier) )) (goto_statement "goto LAB_002a3c8e;" goto statement_identifier ;)) (labeled_statement "LAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);" statement_identifier : (expression_statement "(**(code **)(*plVar1 + 0x50))(plVar1);" (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier ))) ;)) (if_statement "if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }" if (parenthesized_expression "(uVar9 != 0xffffffffffffffff)" ( (binary_expression "uVar9 != 0xffffffffffffffff" identifier != number_literal) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (goto_statement "goto LAB_002a3991;" goto statement_identifier ;) })) }) (else_clause "else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" else (compound_statement "{\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" { comment (expression_statement "wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);" (assignment_expression "wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) ;) (if_statement "if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }" if (parenthesized_expression "(wVar2 != L'\xffffffff')" ( (binary_expression "wVar2 != L'\xffffffff'" identifier != (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }" { (expression_statement "pwVar3 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar3 = (wchar_t *)plVar1[3]" identifier = (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (goto_statement "goto LAB_002a3a00;" goto statement_identifier ;) })) (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) }))) (expression_statement "uVar7 = 6;" (assignment_expression "uVar7 = 6" identifier = number_literal) ;) }))) (labeled_statement "LAB_002a39a0:\n  FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));" statement_identifier : (expression_statement "FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));" (call_expression "FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20))" identifier (argument_list "(lVar8,uVar7 | *(uint *)(lVar8 + 0x20))" ( identifier , (binary_expression "uVar7 | *(uint *)(lVar8 + 0x20)" identifier | (pointer_expression "*(uint *)(lVar8 + 0x20)" * (cast_expression "(uint *)(lVar8 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + 0x20)" ( (binary_expression "lVar8 + 0x20" identifier + number_literal) ))))) ))) ;)) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::wistream& std::getline<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>\n   >(std::wistream&, std::wstring&, wchar_t) */\n\nwistream *\nstd::getline<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>>\n          (wistream *param_1,wstring *param_2,wchar_t param_3)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  wchar_t wVar3;\n  wchar_t *pwVar4;\n  wchar_t *pwVar5;\n  wstring *pwVar6;\n  size_t __n;\n  ulong uVar7;\n  _Ios_Iostate _Var8;\n  wios *this;\n  ulong uVar9;\n  sentry local_39 [9];\n  \n  wistream::sentry::sentry(local_39,(wistream *)param_1,true);\n  if (local_39[0] == (sentry)0x0) {\nLAB_002a3991:\n    _Var8 = _S_failbit;\n    this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n  }\n  else {\n    *(undefined8 *)(param_2 + 8) = 0;\n    **(undefined4 **)param_2 = 0;\n    this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n    plVar1 = *(long **)((wistream *)this + 0xe8);\n    pwVar5 = (wchar_t *)plVar1[2];\n    pwVar4 = (wchar_t *)plVar1[3];\n    if (pwVar5 < pwVar4) {\n      wVar3 = *pwVar5;\n      if (wVar3 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar3) {\n          if (pwVar4 <= pwVar5) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar5 + 1);\n          return param_1;\n        }\n        do {\n          uVar2 = *(ulong *)(param_2 + 8);\n          __n = (long)pwVar4 - (long)pwVar5 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            pwVar6 = *(wstring **)param_2;\n            if (pwVar6 == param_2 + 0x10) {\n              uVar7 = 3;\n            }\n            else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }\n            if (uVar7 < uVar2 + 1) {\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;\n            uVar9 = uVar9 + 1;\n            *(ulong *)(param_2 + 8) = uVar2 + 1;\n            *(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;\n            if (pwVar5 < pwVar4) {\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }\n            else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar3 != L'\xffffffff') {\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            _Var8 = _S_eofbit;\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            goto LAB_002a39a0;\n          }\n          pwVar4 = wmemchr(pwVar5,param_3,__n);\n          uVar7 = (long)pwVar4 - (long)pwVar5 >> 2;\n          if (pwVar4 == (wchar_t *)0x0) {\n            uVar7 = __n;\n          }\n          if (0x1fffffffffffffff - uVar2 < uVar7) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            __throw_length_error("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          wstring::_M_append(param_2,pwVar5,uVar7);\n          uVar9 = uVar9 + uVar7;\n          pwVar5 = (wchar_t *)(plVar1[2] + uVar7 * 4);\n          plVar1[2] = (long)pwVar5;\n          if (pwVar5 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar3 = *pwVar5;\n          }\n          else {\nLAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar3 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar3) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar3 == L'\xffffffff') {\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            _Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;\n            goto LAB_002a39a0;\n          }\n          pwVar5 = (wchar_t *)plVar1[2];\n          pwVar4 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar3);\n        if (pwVar5 < pwVar4) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar3 != L'\xffffffff') {\n        pwVar4 = (wchar_t *)plVar1[3];\n        pwVar5 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n    }\n    _Var8 = _S_failbit|_S_eofbit;\n  }\nLAB_002a39a0:\n  wios::clear(this,_Var8 | *(_Ios_Iostate *)(this + 0x20));\n  return param_1;\n}\n\n" comment comment (ERROR "wistream *\nstd::getline<wchar_t," (binary_expression "wistream *\nstd::getline<wchar_t" (binary_expression "wistream *\nstd" identifier * identifier) (ERROR "::getline" : : identifier) < identifier) ,) (labeled_statement "std::char_traits<wchar_t>,std::allocator<wchar_t>>\n          (wistream *param_1,wstring *param_2,wchar_t param_3)" statement_identifier (ERROR "::char_traits<wchar_t>,std:" : : (binary_expression "char_traits<wchar_t>,std" (binary_expression "char_traits<wchar_t" identifier < identifier) > (ERROR "," ,) identifier) :) : (expression_statement "allocator<wchar_t>>\n          (wistream *param_1,wstring *param_2,wchar_t param_3)" (binary_expression "allocator<wchar_t>>\n          (wistream *param_1,wstring *param_2,wchar_t param_3)" identifier < (binary_expression "wchar_t>>\n          (wistream *param_1,wstring *param_2,wchar_t param_3)" identifier >> (parenthesized_expression "(wistream *param_1,wstring *param_2,wchar_t param_3)" ( (comma_expression "wistream *param_1,wstring *param_2,wchar_t" (binary_expression "wistream *param_1" identifier * identifier) , (comma_expression "wstring *param_2,wchar_t" (binary_expression "wstring *param_2" identifier * identifier) , identifier)) (ERROR "param_3" identifier) )))) ;)) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  wchar_t wVar3;\n  wchar_t *pwVar4;\n  wchar_t *pwVar5;\n  wstring *pwVar6;\n  size_t __n;\n  ulong uVar7;\n  _Ios_Iostate _Var8;\n  wios *this;\n  ulong uVar9;\n  sentry local_39 [9];\n  \n  wistream::sentry::sentry(local_39,(wistream *)param_1,true);\n  if (local_39[0] == (sentry)0x0) {\nLAB_002a3991:\n    _Var8 = _S_failbit;\n    this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n  }\n  else {\n    *(undefined8 *)(param_2 + 8) = 0;\n    **(undefined4 **)param_2 = 0;\n    this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n    plVar1 = *(long **)((wistream *)this + 0xe8);\n    pwVar5 = (wchar_t *)plVar1[2];\n    pwVar4 = (wchar_t *)plVar1[3];\n    if (pwVar5 < pwVar4) {\n      wVar3 = *pwVar5;\n      if (wVar3 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar3) {\n          if (pwVar4 <= pwVar5) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar5 + 1);\n          return param_1;\n        }\n        do {\n          uVar2 = *(ulong *)(param_2 + 8);\n          __n = (long)pwVar4 - (long)pwVar5 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            pwVar6 = *(wstring **)param_2;\n            if (pwVar6 == param_2 + 0x10) {\n              uVar7 = 3;\n            }\n            else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }\n            if (uVar7 < uVar2 + 1) {\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;\n            uVar9 = uVar9 + 1;\n            *(ulong *)(param_2 + 8) = uVar2 + 1;\n            *(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;\n            if (pwVar5 < pwVar4) {\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }\n            else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar3 != L'\xffffffff') {\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            _Var8 = _S_eofbit;\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            goto LAB_002a39a0;\n          }\n          pwVar4 = wmemchr(pwVar5,param_3,__n);\n          uVar7 = (long)pwVar4 - (long)pwVar5 >> 2;\n          if (pwVar4 == (wchar_t *)0x0) {\n            uVar7 = __n;\n          }\n          if (0x1fffffffffffffff - uVar2 < uVar7) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            __throw_length_error("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          wstring::_M_append(param_2,pwVar5,uVar7);\n          uVar9 = uVar9 + uVar7;\n          pwVar5 = (wchar_t *)(plVar1[2] + uVar7 * 4);\n          plVar1[2] = (long)pwVar5;\n          if (pwVar5 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar3 = *pwVar5;\n          }\n          else {\nLAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar3 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar3) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar3 == L'\xffffffff') {\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            _Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;\n            goto LAB_002a39a0;\n          }\n          pwVar5 = (wchar_t *)plVar1[2];\n          pwVar4 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar3);\n        if (pwVar5 < pwVar4) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar3 != L'\xffffffff') {\n        pwVar4 = (wchar_t *)plVar1[3];\n        pwVar5 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n    }\n    _Var8 = _S_failbit|_S_eofbit;\n  }\nLAB_002a39a0:\n  wios::clear(this,_Var8 | *(_Ios_Iostate *)(this + 0x20));\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "wchar_t wVar3;" type_identifier identifier ;) (declaration "wchar_t *pwVar4;" type_identifier (pointer_declarator "*pwVar4" * identifier) ;) (declaration "wchar_t *pwVar5;" type_identifier (pointer_declarator "*pwVar5" * identifier) ;) (declaration "wstring *pwVar6;" type_identifier (pointer_declarator "*pwVar6" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "_Ios_Iostate _Var8;" type_identifier identifier ;) (declaration "wios *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "sentry local_39 [9];" type_identifier (array_declarator "local_39 [9]" identifier [ number_literal ]) ;) (labeled_statement "wistream::sentry::sentry(local_39,(wistream *)param_1,true);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::sentry(local_39,(wistream *)param_1,true);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_39,(wistream *)param_1,true);" (call_expression "sentry(local_39,(wistream *)param_1,true)" identifier (argument_list "(local_39,(wistream *)param_1,true)" ( identifier , (cast_expression "(wistream *)param_1" ( (type_descriptor "wistream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , true ))) ;))) (if_statement "if (local_39[0] == (sentry)0x0) {\nLAB_002a3991:\n    _Var8 = _S_failbit;\n    this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n  }\n  else {\n    *(undefined8 *)(param_2 + 8) = 0;\n    **(undefined4 **)param_2 = 0;\n    this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n    plVar1 = *(long **)((wistream *)this + 0xe8);\n    pwVar5 = (wchar_t *)plVar1[2];\n    pwVar4 = (wchar_t *)plVar1[3];\n    if (pwVar5 < pwVar4) {\n      wVar3 = *pwVar5;\n      if (wVar3 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar3) {\n          if (pwVar4 <= pwVar5) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar5 + 1);\n          return param_1;\n        }\n        do {\n          uVar2 = *(ulong *)(param_2 + 8);\n          __n = (long)pwVar4 - (long)pwVar5 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            pwVar6 = *(wstring **)param_2;\n            if (pwVar6 == param_2 + 0x10) {\n              uVar7 = 3;\n            }\n            else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }\n            if (uVar7 < uVar2 + 1) {\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;\n            uVar9 = uVar9 + 1;\n            *(ulong *)(param_2 + 8) = uVar2 + 1;\n            *(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;\n            if (pwVar5 < pwVar4) {\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }\n            else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar3 != L'\xffffffff') {\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            _Var8 = _S_eofbit;\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            goto LAB_002a39a0;\n          }\n          pwVar4 = wmemchr(pwVar5,param_3,__n);\n          uVar7 = (long)pwVar4 - (long)pwVar5 >> 2;\n          if (pwVar4 == (wchar_t *)0x0) {\n            uVar7 = __n;\n          }\n          if (0x1fffffffffffffff - uVar2 < uVar7) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            __throw_length_error("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          wstring::_M_append(param_2,pwVar5,uVar7);\n          uVar9 = uVar9 + uVar7;\n          pwVar5 = (wchar_t *)(plVar1[2] + uVar7 * 4);\n          plVar1[2] = (long)pwVar5;\n          if (pwVar5 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar3 = *pwVar5;\n          }\n          else {\nLAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar3 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar3) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar3 == L'\xffffffff') {\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            _Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;\n            goto LAB_002a39a0;\n          }\n          pwVar5 = (wchar_t *)plVar1[2];\n          pwVar4 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar3);\n        if (pwVar5 < pwVar4) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar3 != L'\xffffffff') {\n        pwVar4 = (wchar_t *)plVar1[3];\n        pwVar5 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n    }\n    _Var8 = _S_failbit|_S_eofbit;\n  }" if (parenthesized_expression "(local_39[0] == (sentry)0x0)" ( (binary_expression "local_39[0] == (sentry)0x0" (subscript_expression "local_39[0]" identifier [ number_literal ]) == (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\nLAB_002a3991:\n    _Var8 = _S_failbit;\n    this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n  }" { (labeled_statement "LAB_002a3991:\n    _Var8 = _S_failbit;" statement_identifier : (expression_statement "_Var8 = _S_failbit;" (assignment_expression "_Var8 = _S_failbit" identifier = identifier) ;)) (expression_statement "this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));" (assignment_expression "this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" identifier = (cast_expression "(wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) }) (else_clause "else {\n    *(undefined8 *)(param_2 + 8) = 0;\n    **(undefined4 **)param_2 = 0;\n    this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n    plVar1 = *(long **)((wistream *)this + 0xe8);\n    pwVar5 = (wchar_t *)plVar1[2];\n    pwVar4 = (wchar_t *)plVar1[3];\n    if (pwVar5 < pwVar4) {\n      wVar3 = *pwVar5;\n      if (wVar3 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar3) {\n          if (pwVar4 <= pwVar5) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar5 + 1);\n          return param_1;\n        }\n        do {\n          uVar2 = *(ulong *)(param_2 + 8);\n          __n = (long)pwVar4 - (long)pwVar5 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            pwVar6 = *(wstring **)param_2;\n            if (pwVar6 == param_2 + 0x10) {\n              uVar7 = 3;\n            }\n            else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }\n            if (uVar7 < uVar2 + 1) {\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;\n            uVar9 = uVar9 + 1;\n            *(ulong *)(param_2 + 8) = uVar2 + 1;\n            *(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;\n            if (pwVar5 < pwVar4) {\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }\n            else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar3 != L'\xffffffff') {\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            _Var8 = _S_eofbit;\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            goto LAB_002a39a0;\n          }\n          pwVar4 = wmemchr(pwVar5,param_3,__n);\n          uVar7 = (long)pwVar4 - (long)pwVar5 >> 2;\n          if (pwVar4 == (wchar_t *)0x0) {\n            uVar7 = __n;\n          }\n          if (0x1fffffffffffffff - uVar2 < uVar7) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            __throw_length_error("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          wstring::_M_append(param_2,pwVar5,uVar7);\n          uVar9 = uVar9 + uVar7;\n          pwVar5 = (wchar_t *)(plVar1[2] + uVar7 * 4);\n          plVar1[2] = (long)pwVar5;\n          if (pwVar5 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar3 = *pwVar5;\n          }\n          else {\nLAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar3 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar3) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar3 == L'\xffffffff') {\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            _Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;\n            goto LAB_002a39a0;\n          }\n          pwVar5 = (wchar_t *)plVar1[2];\n          pwVar4 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar3);\n        if (pwVar5 < pwVar4) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar3 != L'\xffffffff') {\n        pwVar4 = (wchar_t *)plVar1[3];\n        pwVar5 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n    }\n    _Var8 = _S_failbit|_S_eofbit;\n  }" else (compound_statement "{\n    *(undefined8 *)(param_2 + 8) = 0;\n    **(undefined4 **)param_2 = 0;\n    this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n    plVar1 = *(long **)((wistream *)this + 0xe8);\n    pwVar5 = (wchar_t *)plVar1[2];\n    pwVar4 = (wchar_t *)plVar1[3];\n    if (pwVar5 < pwVar4) {\n      wVar3 = *pwVar5;\n      if (wVar3 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar3) {\n          if (pwVar4 <= pwVar5) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar5 + 1);\n          return param_1;\n        }\n        do {\n          uVar2 = *(ulong *)(param_2 + 8);\n          __n = (long)pwVar4 - (long)pwVar5 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            pwVar6 = *(wstring **)param_2;\n            if (pwVar6 == param_2 + 0x10) {\n              uVar7 = 3;\n            }\n            else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }\n            if (uVar7 < uVar2 + 1) {\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;\n            uVar9 = uVar9 + 1;\n            *(ulong *)(param_2 + 8) = uVar2 + 1;\n            *(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;\n            if (pwVar5 < pwVar4) {\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }\n            else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar3 != L'\xffffffff') {\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            _Var8 = _S_eofbit;\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            goto LAB_002a39a0;\n          }\n          pwVar4 = wmemchr(pwVar5,param_3,__n);\n          uVar7 = (long)pwVar4 - (long)pwVar5 >> 2;\n          if (pwVar4 == (wchar_t *)0x0) {\n            uVar7 = __n;\n          }\n          if (0x1fffffffffffffff - uVar2 < uVar7) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            __throw_length_error("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          wstring::_M_append(param_2,pwVar5,uVar7);\n          uVar9 = uVar9 + uVar7;\n          pwVar5 = (wchar_t *)(plVar1[2] + uVar7 * 4);\n          plVar1[2] = (long)pwVar5;\n          if (pwVar5 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar3 = *pwVar5;\n          }\n          else {\nLAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar3 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar3) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar3 == L'\xffffffff') {\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            _Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;\n            goto LAB_002a39a0;\n          }\n          pwVar5 = (wchar_t *)plVar1[2];\n          pwVar4 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar3);\n        if (pwVar5 < pwVar4) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar3 != L'\xffffffff') {\n        pwVar4 = (wchar_t *)plVar1[3];\n        pwVar5 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n    }\n    _Var8 = _S_failbit|_S_eofbit;\n  }" { (expression_statement "*(undefined8 *)(param_2 + 8) = 0;" (assignment_expression "*(undefined8 *)(param_2 + 8) = 0" (pointer_expression "*(undefined8 *)(param_2 + 8)" * (cast_expression "(undefined8 *)(param_2 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "**(undefined4 **)param_2 = 0;" (assignment_expression "**(undefined4 **)param_2 = 0" (pointer_expression "**(undefined4 **)param_2" * (pointer_expression "*(undefined4 **)param_2" * (cast_expression "(undefined4 **)param_2" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) = number_literal) ;) (expression_statement "this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));" (assignment_expression "this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" identifier = (cast_expression "(wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) (expression_statement "plVar1 = *(long **)((wistream *)this + 0xe8);" (assignment_expression "plVar1 = *(long **)((wistream *)this + 0xe8)" identifier = (pointer_expression "*(long **)((wistream *)this + 0xe8)" * (cast_expression "(long **)((wistream *)this + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((wistream *)this + 0xe8)" ( (binary_expression "(wistream *)this + 0xe8" (cast_expression "(wistream *)this" ( (type_descriptor "wistream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) ))))) ;) (expression_statement "pwVar5 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar5 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pwVar4 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[3]" identifier = (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) (if_statement "if (pwVar5 < pwVar4) {\n      wVar3 = *pwVar5;\n      if (wVar3 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar3) {\n          if (pwVar4 <= pwVar5) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar5 + 1);\n          return param_1;\n        }\n        do {\n          uVar2 = *(ulong *)(param_2 + 8);\n          __n = (long)pwVar4 - (long)pwVar5 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            pwVar6 = *(wstring **)param_2;\n            if (pwVar6 == param_2 + 0x10) {\n              uVar7 = 3;\n            }\n            else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }\n            if (uVar7 < uVar2 + 1) {\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;\n            uVar9 = uVar9 + 1;\n            *(ulong *)(param_2 + 8) = uVar2 + 1;\n            *(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;\n            if (pwVar5 < pwVar4) {\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }\n            else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar3 != L'\xffffffff') {\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            _Var8 = _S_eofbit;\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            goto LAB_002a39a0;\n          }\n          pwVar4 = wmemchr(pwVar5,param_3,__n);\n          uVar7 = (long)pwVar4 - (long)pwVar5 >> 2;\n          if (pwVar4 == (wchar_t *)0x0) {\n            uVar7 = __n;\n          }\n          if (0x1fffffffffffffff - uVar2 < uVar7) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            __throw_length_error("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          wstring::_M_append(param_2,pwVar5,uVar7);\n          uVar9 = uVar9 + uVar7;\n          pwVar5 = (wchar_t *)(plVar1[2] + uVar7 * 4);\n          plVar1[2] = (long)pwVar5;\n          if (pwVar5 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar3 = *pwVar5;\n          }\n          else {\nLAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar3 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar3) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar3 == L'\xffffffff') {\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            _Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;\n            goto LAB_002a39a0;\n          }\n          pwVar5 = (wchar_t *)plVar1[2];\n          pwVar4 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar3);\n        if (pwVar5 < pwVar4) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar3 != L'\xffffffff') {\n        pwVar4 = (wchar_t *)plVar1[3];\n        pwVar5 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n    }" if (parenthesized_expression "(pwVar5 < pwVar4)" ( (binary_expression "pwVar5 < pwVar4" identifier < identifier) )) (compound_statement "{\n      wVar3 = *pwVar5;\n      if (wVar3 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar3) {\n          if (pwVar4 <= pwVar5) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar5 + 1);\n          return param_1;\n        }\n        do {\n          uVar2 = *(ulong *)(param_2 + 8);\n          __n = (long)pwVar4 - (long)pwVar5 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            pwVar6 = *(wstring **)param_2;\n            if (pwVar6 == param_2 + 0x10) {\n              uVar7 = 3;\n            }\n            else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }\n            if (uVar7 < uVar2 + 1) {\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;\n            uVar9 = uVar9 + 1;\n            *(ulong *)(param_2 + 8) = uVar2 + 1;\n            *(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;\n            if (pwVar5 < pwVar4) {\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }\n            else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar3 != L'\xffffffff') {\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            _Var8 = _S_eofbit;\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            goto LAB_002a39a0;\n          }\n          pwVar4 = wmemchr(pwVar5,param_3,__n);\n          uVar7 = (long)pwVar4 - (long)pwVar5 >> 2;\n          if (pwVar4 == (wchar_t *)0x0) {\n            uVar7 = __n;\n          }\n          if (0x1fffffffffffffff - uVar2 < uVar7) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            __throw_length_error("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          wstring::_M_append(param_2,pwVar5,uVar7);\n          uVar9 = uVar9 + uVar7;\n          pwVar5 = (wchar_t *)(plVar1[2] + uVar7 * 4);\n          plVar1[2] = (long)pwVar5;\n          if (pwVar5 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar3 = *pwVar5;\n          }\n          else {\nLAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar3 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar3) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar3 == L'\xffffffff') {\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            _Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;\n            goto LAB_002a39a0;\n          }\n          pwVar5 = (wchar_t *)plVar1[2];\n          pwVar4 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar3);\n        if (pwVar5 < pwVar4) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }" { (expression_statement "wVar3 = *pwVar5;" (assignment_expression "wVar3 = *pwVar5" identifier = (pointer_expression "*pwVar5" * identifier)) ;) (if_statement "if (wVar3 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar3) {\n          if (pwVar4 <= pwVar5) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar5 + 1);\n          return param_1;\n        }\n        do {\n          uVar2 = *(ulong *)(param_2 + 8);\n          __n = (long)pwVar4 - (long)pwVar5 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            pwVar6 = *(wstring **)param_2;\n            if (pwVar6 == param_2 + 0x10) {\n              uVar7 = 3;\n            }\n            else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }\n            if (uVar7 < uVar2 + 1) {\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;\n            uVar9 = uVar9 + 1;\n            *(ulong *)(param_2 + 8) = uVar2 + 1;\n            *(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;\n            if (pwVar5 < pwVar4) {\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }\n            else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar3 != L'\xffffffff') {\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            _Var8 = _S_eofbit;\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            goto LAB_002a39a0;\n          }\n          pwVar4 = wmemchr(pwVar5,param_3,__n);\n          uVar7 = (long)pwVar4 - (long)pwVar5 >> 2;\n          if (pwVar4 == (wchar_t *)0x0) {\n            uVar7 = __n;\n          }\n          if (0x1fffffffffffffff - uVar2 < uVar7) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            __throw_length_error("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          wstring::_M_append(param_2,pwVar5,uVar7);\n          uVar9 = uVar9 + uVar7;\n          pwVar5 = (wchar_t *)(plVar1[2] + uVar7 * 4);\n          plVar1[2] = (long)pwVar5;\n          if (pwVar5 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar3 = *pwVar5;\n          }\n          else {\nLAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar3 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar3) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar3 == L'\xffffffff') {\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            _Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;\n            goto LAB_002a39a0;\n          }\n          pwVar5 = (wchar_t *)plVar1[2];\n          pwVar4 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar3);\n        if (pwVar5 < pwVar4) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }" if (parenthesized_expression "(wVar3 != L'\xffffffff')" ( (binary_expression "wVar3 != L'\xffffffff'" identifier != (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar3) {\n          if (pwVar4 <= pwVar5) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar5 + 1);\n          return param_1;\n        }\n        do {\n          uVar2 = *(ulong *)(param_2 + 8);\n          __n = (long)pwVar4 - (long)pwVar5 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            pwVar6 = *(wstring **)param_2;\n            if (pwVar6 == param_2 + 0x10) {\n              uVar7 = 3;\n            }\n            else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }\n            if (uVar7 < uVar2 + 1) {\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;\n            uVar9 = uVar9 + 1;\n            *(ulong *)(param_2 + 8) = uVar2 + 1;\n            *(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;\n            if (pwVar5 < pwVar4) {\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }\n            else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar3 != L'\xffffffff') {\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            _Var8 = _S_eofbit;\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            goto LAB_002a39a0;\n          }\n          pwVar4 = wmemchr(pwVar5,param_3,__n);\n          uVar7 = (long)pwVar4 - (long)pwVar5 >> 2;\n          if (pwVar4 == (wchar_t *)0x0) {\n            uVar7 = __n;\n          }\n          if (0x1fffffffffffffff - uVar2 < uVar7) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            __throw_length_error("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          wstring::_M_append(param_2,pwVar5,uVar7);\n          uVar9 = uVar9 + uVar7;\n          pwVar5 = (wchar_t *)(plVar1[2] + uVar7 * 4);\n          plVar1[2] = (long)pwVar5;\n          if (pwVar5 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar3 = *pwVar5;\n          }\n          else {\nLAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar3 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar3) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar3 == L'\xffffffff') {\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            _Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;\n            goto LAB_002a39a0;\n          }\n          pwVar5 = (wchar_t *)plVar1[2];\n          pwVar4 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar3);\n        if (pwVar5 < pwVar4) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }" { (labeled_statement "LAB_002a3a00:\n        uVar9 = 0;" statement_identifier : (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;)) (if_statement "if (param_3 == wVar3) {\n          if (pwVar4 <= pwVar5) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar5 + 1);\n          return param_1;\n        }" if (parenthesized_expression "(param_3 == wVar3)" ( (binary_expression "param_3 == wVar3" identifier == identifier) )) (compound_statement "{\n          if (pwVar4 <= pwVar5) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar5 + 1);\n          return param_1;\n        }" { (if_statement "if (pwVar4 <= pwVar5) {\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }" if (parenthesized_expression "(pwVar4 <= pwVar5)" ( (binary_expression "pwVar4 <= pwVar5" identifier <= identifier) )) (compound_statement "{\n                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */\n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }" { comment (expression_statement "(**(code **)(*plVar1 + 0x50))(plVar1);" (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) (labeled_statement "LAB_002a3c8e:\n          plVar1[2] = (long)(pwVar5 + 1);" statement_identifier : (expression_statement "plVar1[2] = (long)(pwVar5 + 1);" (assignment_expression "plVar1[2] = (long)(pwVar5 + 1)" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)(pwVar5 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(pwVar5 + 1)" ( (binary_expression "pwVar5 + 1" identifier + number_literal) )))) ;)) (return_statement "return param_1;" return identifier ;) })) (do_statement "do {\n          uVar2 = *(ulong *)(param_2 + 8);\n          __n = (long)pwVar4 - (long)pwVar5 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            pwVar6 = *(wstring **)param_2;\n            if (pwVar6 == param_2 + 0x10) {\n              uVar7 = 3;\n            }\n            else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }\n            if (uVar7 < uVar2 + 1) {\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;\n            uVar9 = uVar9 + 1;\n            *(ulong *)(param_2 + 8) = uVar2 + 1;\n            *(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;\n            if (pwVar5 < pwVar4) {\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }\n            else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar3 != L'\xffffffff') {\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            _Var8 = _S_eofbit;\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            goto LAB_002a39a0;\n          }\n          pwVar4 = wmemchr(pwVar5,param_3,__n);\n          uVar7 = (long)pwVar4 - (long)pwVar5 >> 2;\n          if (pwVar4 == (wchar_t *)0x0) {\n            uVar7 = __n;\n          }\n          if (0x1fffffffffffffff - uVar2 < uVar7) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            __throw_length_error("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          wstring::_M_append(param_2,pwVar5,uVar7);\n          uVar9 = uVar9 + uVar7;\n          pwVar5 = (wchar_t *)(plVar1[2] + uVar7 * 4);\n          plVar1[2] = (long)pwVar5;\n          if (pwVar5 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar3 = *pwVar5;\n          }\n          else {\nLAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar3 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar3) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar3 == L'\xffffffff') {\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            _Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;\n            goto LAB_002a39a0;\n          }\n          pwVar5 = (wchar_t *)plVar1[2];\n          pwVar4 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar3);" do (compound_statement "{\n          uVar2 = *(ulong *)(param_2 + 8);\n          __n = (long)pwVar4 - (long)pwVar5 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            pwVar6 = *(wstring **)param_2;\n            if (pwVar6 == param_2 + 0x10) {\n              uVar7 = 3;\n            }\n            else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }\n            if (uVar7 < uVar2 + 1) {\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;\n            uVar9 = uVar9 + 1;\n            *(ulong *)(param_2 + 8) = uVar2 + 1;\n            *(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;\n            if (pwVar5 < pwVar4) {\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }\n            else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar3 != L'\xffffffff') {\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            _Var8 = _S_eofbit;\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            goto LAB_002a39a0;\n          }\n          pwVar4 = wmemchr(pwVar5,param_3,__n);\n          uVar7 = (long)pwVar4 - (long)pwVar5 >> 2;\n          if (pwVar4 == (wchar_t *)0x0) {\n            uVar7 = __n;\n          }\n          if (0x1fffffffffffffff - uVar2 < uVar7) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            __throw_length_error("basic_string::append");\n          }\n                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */\n          wstring::_M_append(param_2,pwVar5,uVar7);\n          uVar9 = uVar9 + uVar7;\n          pwVar5 = (wchar_t *)(plVar1[2] + uVar7 * 4);\n          plVar1[2] = (long)pwVar5;\n          if (pwVar5 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar3 = *pwVar5;\n          }\n          else {\nLAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar3 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar3) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar3 == L'\xffffffff') {\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            _Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;\n            goto LAB_002a39a0;\n          }\n          pwVar5 = (wchar_t *)plVar1[2];\n          pwVar4 = (wchar_t *)plVar1[3];\n        }" { (expression_statement "uVar2 = *(ulong *)(param_2 + 8);" (assignment_expression "uVar2 = *(ulong *)(param_2 + 8)" identifier = (pointer_expression "*(ulong *)(param_2 + 8)" * (cast_expression "(ulong *)(param_2 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "__n = (long)pwVar4 - (long)pwVar5 >> 2;" (assignment_expression "__n = (long)pwVar4 - (long)pwVar5 >> 2" identifier = (binary_expression "(long)pwVar4 - (long)pwVar5 >> 2" (binary_expression "(long)pwVar4 - (long)pwVar5" (cast_expression "(long)pwVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pwVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal)) ;) (if_statement "if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }" if (parenthesized_expression "((long)(0x1fffffffffffffff - uVar9) < (long)__n)" ( (binary_expression "(long)(0x1fffffffffffffff - uVar9) < (long)__n" (cast_expression "(long)(0x1fffffffffffffff - uVar9)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(0x1fffffffffffffff - uVar9)" ( (binary_expression "0x1fffffffffffffff - uVar9" number_literal - identifier) ))) < (cast_expression "(long)__n" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )) (compound_statement "{\n            __n = 0x1fffffffffffffff - uVar9;\n          }" { (expression_statement "__n = 0x1fffffffffffffff - uVar9;" (assignment_expression "__n = 0x1fffffffffffffff - uVar9" identifier = (binary_expression "0x1fffffffffffffff - uVar9" number_literal - identifier)) ;) })) (if_statement "if ((long)__n < 2) {\n            pwVar6 = *(wstring **)param_2;\n            if (pwVar6 == param_2 + 0x10) {\n              uVar7 = 3;\n            }\n            else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }\n            if (uVar7 < uVar2 + 1) {\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;\n            uVar9 = uVar9 + 1;\n            *(ulong *)(param_2 + 8) = uVar2 + 1;\n            *(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;\n            if (pwVar5 < pwVar4) {\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }\n            else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar3 != L'\xffffffff') {\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            _Var8 = _S_eofbit;\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            goto LAB_002a39a0;\n          }" if (parenthesized_expression "((long)__n < 2)" ( (binary_expression "(long)__n < 2" (cast_expression "(long)__n" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) < number_literal) )) (compound_statement "{\n            pwVar6 = *(wstring **)param_2;\n            if (pwVar6 == param_2 + 0x10) {\n              uVar7 = 3;\n            }\n            else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }\n            if (uVar7 < uVar2 + 1) {\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;\n            uVar9 = uVar9 + 1;\n            *(ulong *)(param_2 + 8) = uVar2 + 1;\n            *(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;\n            if (pwVar5 < pwVar4) {\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }\n            else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar3 != L'\xffffffff') {\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            _Var8 = _S_eofbit;\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            goto LAB_002a39a0;\n          }" { (expression_statement "pwVar6 = *(wstring **)param_2;" (assignment_expression "pwVar6 = *(wstring **)param_2" identifier = (pointer_expression "*(wstring **)param_2" * (cast_expression "(wstring **)param_2" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (pwVar6 == param_2 + 0x10) {\n              uVar7 = 3;\n            }\n            else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }" if (parenthesized_expression "(pwVar6 == param_2 + 0x10)" ( (binary_expression "pwVar6 == param_2 + 0x10" identifier == (binary_expression "param_2 + 0x10" identifier + number_literal)) )) (compound_statement "{\n              uVar7 = 3;\n            }" { (expression_statement "uVar7 = 3;" (assignment_expression "uVar7 = 3" identifier = number_literal) ;) }) (else_clause "else {\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }" else (compound_statement "{\n              uVar7 = *(ulong *)(param_2 + 0x10);\n            }" { (expression_statement "uVar7 = *(ulong *)(param_2 + 0x10);" (assignment_expression "uVar7 = *(ulong *)(param_2 + 0x10)" identifier = (pointer_expression "*(ulong *)(param_2 + 0x10)" * (cast_expression "(ulong *)(param_2 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) }))) (if_statement "if (uVar7 < uVar2 + 1) {\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }" if (parenthesized_expression "(uVar7 < uVar2 + 1)" ( (binary_expression "uVar7 < uVar2 + 1" identifier < (binary_expression "uVar2 + 1" identifier + number_literal)) )) (compound_statement "{\n              wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);\n              pwVar6 = *(wstring **)param_2;\n              pwVar5 = (wchar_t *)plVar1[2];\n              pwVar4 = (wchar_t *)plVar1[3];\n            }" { (labeled_statement "wstring::_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1);" (call_expression "_M_mutate(param_2,uVar2,0,(wchar_t *)0x0,1)" identifier (argument_list "(param_2,uVar2,0,(wchar_t *)0x0,1)" ( identifier , identifier , number_literal , (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))) ;)) (expression_statement "pwVar6 = *(wstring **)param_2;" (assignment_expression "pwVar6 = *(wstring **)param_2" identifier = (pointer_expression "*(wstring **)param_2" * (cast_expression "(wstring **)param_2" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pwVar5 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar5 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pwVar4 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[3]" identifier = (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) })) (expression_statement "*(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3;" (assignment_expression "*(wchar_t *)(pwVar6 + uVar2 * 4) = wVar3" (pointer_expression "*(wchar_t *)(pwVar6 + uVar2 * 4)" * (cast_expression "(wchar_t *)(pwVar6 + uVar2 * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar6 + uVar2 * 4)" ( (binary_expression "pwVar6 + uVar2 * 4" identifier + (binary_expression "uVar2 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (expression_statement "*(ulong *)(param_2 + 8) = uVar2 + 1;" (assignment_expression "*(ulong *)(param_2 + 8) = uVar2 + 1" (pointer_expression "*(ulong *)(param_2 + 8)" * (cast_expression "(ulong *)(param_2 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0;" (assignment_expression "*(undefined4 *)(pwVar6 + uVar2 * 4 + 4) = 0" (pointer_expression "*(undefined4 *)(pwVar6 + uVar2 * 4 + 4)" * (cast_expression "(undefined4 *)(pwVar6 + uVar2 * 4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar6 + uVar2 * 4 + 4)" ( (binary_expression "pwVar6 + uVar2 * 4 + 4" (binary_expression "pwVar6 + uVar2 * 4" identifier + (binary_expression "uVar2 * 4" identifier * number_literal)) + number_literal) )))) = number_literal) ;) (if_statement "if (pwVar5 < pwVar4) {\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }\n            else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }" if (parenthesized_expression "(pwVar5 < pwVar4)" ( (binary_expression "pwVar5 < pwVar4" identifier < identifier) )) (compound_statement "{\n              wVar3 = *pwVar5;\n              plVar1[2] = (long)(pwVar5 + 1);\n            }" { (expression_statement "wVar3 = *pwVar5;" (assignment_expression "wVar3 = *pwVar5" identifier = (pointer_expression "*pwVar5" * identifier)) ;) (expression_statement "plVar1[2] = (long)(pwVar5 + 1);" (assignment_expression "plVar1[2] = (long)(pwVar5 + 1)" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)(pwVar5 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(pwVar5 + 1)" ( (binary_expression "pwVar5 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }" else (compound_statement "{\n              wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }" { (expression_statement "wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1);" (assignment_expression "wVar3 = (**(code **)(*plVar1 + 0x50))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) ;) }))) (if_statement "if (wVar3 != L'\xffffffff') {\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }" if (parenthesized_expression "(wVar3 != L'\xffffffff')" ( (binary_expression "wVar3 != L'\xffffffff'" identifier != (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n              pwVar5 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }" { (expression_statement "pwVar5 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar5 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((wchar_t *)plVar1[3] <= pwVar5) goto LAB_002a3b83;" if (parenthesized_expression "((wchar_t *)plVar1[3] <= pwVar5)" ( (binary_expression "(wchar_t *)plVar1[3] <= pwVar5" (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ])) <= identifier) )) (goto_statement "goto LAB_002a3b83;" goto statement_identifier ;)) (goto_statement "goto LAB_002a3abd;" goto statement_identifier ;) })) (labeled_statement "LAB_002a3c20:\n            _Var8 = _S_eofbit;" statement_identifier : (expression_statement "_Var8 = _S_eofbit;" (assignment_expression "_Var8 = _S_eofbit" identifier = identifier) ;)) (expression_statement "this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));" (assignment_expression "this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" identifier = (cast_expression "(wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) (goto_statement "goto LAB_002a39a0;" goto statement_identifier ;) })) (expression_statement "pwVar4 = wmemchr(pwVar5,param_3,__n);" (assignment_expression "pwVar4 = wmemchr(pwVar5,param_3,__n)" identifier = (call_expression "wmemchr(pwVar5,param_3,__n)" identifier (argument_list "(pwVar5,param_3,__n)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar7 = (long)pwVar4 - (long)pwVar5 >> 2;" (assignment_expression "uVar7 = (long)pwVar4 - (long)pwVar5 >> 2" identifier = (binary_expression "(long)pwVar4 - (long)pwVar5 >> 2" (binary_expression "(long)pwVar4 - (long)pwVar5" (cast_expression "(long)pwVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pwVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal)) ;) (if_statement "if (pwVar4 == (wchar_t *)0x0) {\n            uVar7 = __n;\n          }" if (parenthesized_expression "(pwVar4 == (wchar_t *)0x0)" ( (binary_expression "pwVar4 == (wchar_t *)0x0" identifier == (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar7 = __n;\n          }" { (expression_statement "uVar7 = __n;" (assignment_expression "uVar7 = __n" identifier = identifier) ;) })) (if_statement "if (0x1fffffffffffffff - uVar2 < uVar7) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            __throw_length_error("basic_string::append");\n          }" if (parenthesized_expression "(0x1fffffffffffffff - uVar2 < uVar7)" ( (binary_expression "0x1fffffffffffffff - uVar2 < uVar7" (binary_expression "0x1fffffffffffffff - uVar2" number_literal - identifier) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */\n            __throw_length_error("basic_string::append");\n          }" { comment comment (expression_statement "__throw_length_error("basic_string::append");" (call_expression "__throw_length_error("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) comment (labeled_statement "wstring::_M_append(param_2,pwVar5,uVar7);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append(param_2,pwVar5,uVar7);" (call_expression "_M_append(param_2,pwVar5,uVar7)" identifier (argument_list "(param_2,pwVar5,uVar7)" ( identifier , identifier , identifier ))) ;)) (expression_statement "uVar9 = uVar9 + uVar7;" (assignment_expression "uVar9 = uVar9 + uVar7" identifier = (binary_expression "uVar9 + uVar7" identifier + identifier)) ;) (expression_statement "pwVar5 = (wchar_t *)(plVar1[2] + uVar7 * 4);" (assignment_expression "pwVar5 = (wchar_t *)(plVar1[2] + uVar7 * 4)" identifier = (cast_expression "(wchar_t *)(plVar1[2] + uVar7 * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar1[2] + uVar7 * 4)" ( (binary_expression "plVar1[2] + uVar7 * 4" (subscript_expression "plVar1[2]" identifier [ number_literal ]) + (binary_expression "uVar7 * 4" identifier * number_literal)) )))) ;) (expression_statement "plVar1[2] = (long)pwVar5;" (assignment_expression "plVar1[2] = (long)pwVar5" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)pwVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (pwVar5 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar3 = *pwVar5;\n          }\n          else {\nLAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }" if (parenthesized_expression "(pwVar5 < (wchar_t *)plVar1[3])" ( (binary_expression "pwVar5 < (wchar_t *)plVar1[3]" identifier < (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\nLAB_002a3abd:\n            wVar3 = *pwVar5;\n          }" { (labeled_statement "LAB_002a3abd:\n            wVar3 = *pwVar5;" statement_identifier : (expression_statement "wVar3 = *pwVar5;" (assignment_expression "wVar3 = *pwVar5" identifier = (pointer_expression "*pwVar5" * identifier)) ;)) }) (else_clause "else {\nLAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }" else (compound_statement "{\nLAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }" { (labeled_statement "LAB_002a3b83:\n            wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);" statement_identifier : (expression_statement "wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);" (assignment_expression "wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) ;)) }))) (if_statement "if (0x1ffffffffffffffe < uVar9) {\n            if (wVar3 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar3) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }" if (parenthesized_expression "(0x1ffffffffffffffe < uVar9)" ( (binary_expression "0x1ffffffffffffffe < uVar9" number_literal < identifier) )) (compound_statement "{\n            if (wVar3 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar3) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }" { (if_statement "if (wVar3 == L'\xffffffff') goto LAB_002a3c20;" if (parenthesized_expression "(wVar3 == L'\xffffffff')" ( (binary_expression "wVar3 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (goto_statement "goto LAB_002a3c20;" goto statement_identifier ;)) (if_statement "if (param_3 != wVar3) goto LAB_002a3991;" if (parenthesized_expression "(param_3 != wVar3)" ( (binary_expression "param_3 != wVar3" identifier != identifier) )) (goto_statement "goto LAB_002a3991;" goto statement_identifier ;)) (if_statement "if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;" if (parenthesized_expression "((ulong)plVar1[3] <= (ulong)plVar1[2])" ( (binary_expression "(ulong)plVar1[3] <= (ulong)plVar1[2]" (cast_expression "(ulong)plVar1[3]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[3]" identifier [ number_literal ])) <= (cast_expression "(ulong)plVar1[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_002a3afa;" goto statement_identifier ;)) (expression_statement "plVar1[2] = plVar1[2] + 4;" (assignment_expression "plVar1[2] = plVar1[2] + 4" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (binary_expression "plVar1[2] + 4" (subscript_expression "plVar1[2]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }" if (parenthesized_expression "(uVar9 != 0xffffffffffffffff)" ( (binary_expression "uVar9 != 0xffffffffffffffff" identifier != number_literal) )) (compound_statement "{\n              return param_1;\n            }" { (return_statement "return param_1;" return identifier ;) })) (goto_statement "goto LAB_002a3991;" goto statement_identifier ;) })) (if_statement "if (wVar3 == L'\xffffffff') {\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            _Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;\n            goto LAB_002a39a0;\n          }" if (parenthesized_expression "(wVar3 == L'\xffffffff')" ( (binary_expression "wVar3 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n            this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n            _Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;\n            goto LAB_002a39a0;\n          }" { (expression_statement "this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));" (assignment_expression "this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" identifier = (cast_expression "(wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) (expression_statement "_Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit;" (assignment_expression "_Var8 = (-(uint)(uVar9 == 0) & 4) + _S_eofbit" identifier = (binary_expression "(-(uint)(uVar9 == 0) & 4) + _S_eofbit" (parenthesized_expression "(-(uint)(uVar9 == 0) & 4)" ( (binary_expression "-(uint)(uVar9 == 0) & 4" (unary_expression "-(uint)(uVar9 == 0)" - (call_expression "(uint)(uVar9 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) )))) & number_literal) )) + identifier)) ;) (goto_statement "goto LAB_002a39a0;" goto statement_identifier ;) })) (expression_statement "pwVar5 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar5 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pwVar4 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[3]" identifier = (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(param_3 != wVar3)" ( (binary_expression "param_3 != wVar3" identifier != identifier) )) ;) (if_statement "if (pwVar5 < pwVar4) goto LAB_002a3c8e;" if (parenthesized_expression "(pwVar5 < pwVar4)" ( (binary_expression "pwVar5 < pwVar4" identifier < identifier) )) (goto_statement "goto LAB_002a3c8e;" goto statement_identifier ;)) (labeled_statement "LAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);" statement_identifier : (expression_statement "(**(code **)(*plVar1 + 0x50))(plVar1);" (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier ))) ;)) (if_statement "if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }" if (parenthesized_expression "(uVar9 != 0xffffffffffffffff)" ( (binary_expression "uVar9 != 0xffffffffffffffff" identifier != number_literal) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (goto_statement "goto LAB_002a3991;" goto statement_identifier ;) })) }) (else_clause "else {\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar3 != L'\xffffffff') {\n        pwVar4 = (wchar_t *)plVar1[3];\n        pwVar5 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n    }" else (compound_statement "{\n                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */\n      wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar3 != L'\xffffffff') {\n        pwVar4 = (wchar_t *)plVar1[3];\n        pwVar5 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n    }" { comment (expression_statement "wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1);" (assignment_expression "wVar3 = (**(code **)(*plVar1 + 0x48))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) ;) (if_statement "if (wVar3 != L'\xffffffff') {\n        pwVar4 = (wchar_t *)plVar1[3];\n        pwVar5 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }" if (parenthesized_expression "(wVar3 != L'\xffffffff')" ( (binary_expression "wVar3 != L'\xffffffff'" identifier != (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n        pwVar4 = (wchar_t *)plVar1[3];\n        pwVar5 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }" { (expression_statement "pwVar4 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[3]" identifier = (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "pwVar5 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar5 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (goto_statement "goto LAB_002a3a00;" goto statement_identifier ;) })) (expression_statement "this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));" (assignment_expression "this = (wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" identifier = (cast_expression "(wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) }))) (expression_statement "_Var8 = _S_failbit|_S_eofbit;" (assignment_expression "_Var8 = _S_failbit|_S_eofbit" identifier = (binary_expression "_S_failbit|_S_eofbit" identifier | identifier)) ;) }))) (labeled_statement "LAB_002a39a0:\n  wios::clear(this,_Var8 | *(_Ios_Iostate *)(this + 0x20));" statement_identifier : (labeled_statement "wios::clear(this,_Var8 | *(_Ios_Iostate *)(this + 0x20));" statement_identifier : (ERROR ":" :) (expression_statement "clear(this,_Var8 | *(_Ios_Iostate *)(this + 0x20));" (call_expression "clear(this,_Var8 | *(_Ios_Iostate *)(this + 0x20))" identifier (argument_list "(this,_Var8 | *(_Ios_Iostate *)(this + 0x20))" ( identifier , (binary_expression "_Var8 | *(_Ios_Iostate *)(this + 0x20)" identifier | (pointer_expression "*(_Ios_Iostate *)(this + 0x20)" * (cast_expression "(_Ios_Iostate *)(this + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) ))))) ))) ;))) (return_statement "return param_1;" return identifier ;) }))
(translation_unit "long * FUN_002a3960(long *param_1,undefined8 *param_2,wchar_t param_3)\n\n{\n  long *plVar1;\n  wchar_t wVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  undefined8 *puVar5;\n  size_t __n;\n  ulong uVar6;\n  uint uVar7;\n  long lVar8;\n  ulong uVar9;\n  char local_39 [9];\n  \n  FUN_002c5a30(local_39,param_1,1);\n  if (local_39[0] == '\0') {\nLAB_002a3991:\n    uVar7 = 4;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }\nLAB_002a39a0:\n  FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));\n  return param_1;\n}\n\n" (function_definition "long * FUN_002a3960(long *param_1,undefined8 *param_2,wchar_t param_3)\n\n{\n  long *plVar1;\n  wchar_t wVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  undefined8 *puVar5;\n  size_t __n;\n  ulong uVar6;\n  uint uVar7;\n  long lVar8;\n  ulong uVar9;\n  char local_39 [9];\n  \n  FUN_002c5a30(local_39,param_1,1);\n  if (local_39[0] == '\0') {\nLAB_002a3991:\n    uVar7 = 4;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }\nLAB_002a39a0:\n  FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_002a3960(long *param_1,undefined8 *param_2,wchar_t param_3)" * (function_declarator "FUN_002a3960(long *param_1,undefined8 *param_2,wchar_t param_3)" identifier (parameter_list "(long *param_1,undefined8 *param_2,wchar_t param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "wchar_t param_3" type_identifier identifier) )))) (compound_statement "{\n  long *plVar1;\n  wchar_t wVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  undefined8 *puVar5;\n  size_t __n;\n  ulong uVar6;\n  uint uVar7;\n  long lVar8;\n  ulong uVar9;\n  char local_39 [9];\n  \n  FUN_002c5a30(local_39,param_1,1);\n  if (local_39[0] == '\0') {\nLAB_002a3991:\n    uVar7 = 4;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }\nLAB_002a39a0:\n  FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "wchar_t wVar2;" type_identifier identifier ;) (declaration "wchar_t *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "wchar_t *pwVar4;" type_identifier (pointer_declarator "*pwVar4" * identifier) ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "char local_39 [9];" primitive_type (array_declarator "local_39 [9]" identifier [ number_literal ]) ;) (expression_statement "FUN_002c5a30(local_39,param_1,1);" (call_expression "FUN_002c5a30(local_39,param_1,1)" identifier (argument_list "(local_39,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_39[0] == '\0') {\nLAB_002a3991:\n    uVar7 = 4;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }" if (parenthesized_expression "(local_39[0] == '\0')" ( (binary_expression "local_39[0] == '\0'" (subscript_expression "local_39[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_002a3991:\n    uVar7 = 4;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }" { (labeled_statement "LAB_002a3991:\n    uVar7 = 4;" statement_identifier : (expression_statement "uVar7 = 4;" (assignment_expression "uVar7 = 4" identifier = number_literal) ;)) (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) }) (else_clause "else {\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }" else (compound_statement "{\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }" { (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)*param_2 = 0;" (assignment_expression "*(undefined4 *)*param_2 = 0" (pointer_expression "*(undefined4 *)*param_2" * (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) = number_literal) ;) (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "plVar1 = *(long **)(lVar8 + 0xe8);" (assignment_expression "plVar1 = *(long **)(lVar8 + 0xe8)" identifier = (pointer_expression "*(long **)(lVar8 + 0xe8)" * (cast_expression "(long **)(lVar8 + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar8 + 0xe8)" ( (binary_expression "lVar8 + 0xe8" identifier + number_literal) ))))) ;) (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pwVar3 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar3 = (wchar_t *)plVar1[3]" identifier = (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) (if_statement "if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" if (parenthesized_expression "(pwVar4 < pwVar3)" ( (binary_expression "pwVar4 < pwVar3" identifier < identifier) )) (compound_statement "{\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }" { (expression_statement "wVar2 = *pwVar4;" (assignment_expression "wVar2 = *pwVar4" identifier = (pointer_expression "*pwVar4" * identifier)) ;) (if_statement "if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }" if (parenthesized_expression "(wVar2 != L'\xffffffff')" ( (binary_expression "wVar2 != L'\xffffffff'" identifier != (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }" { (labeled_statement "LAB_002a3a00:\n        uVar9 = 0;" statement_identifier : (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;)) (if_statement "if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }" if (parenthesized_expression "(param_3 == wVar2)" ( (binary_expression "param_3 == wVar2" identifier == identifier) )) (compound_statement "{\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }" { (if_statement "if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }" if (parenthesized_expression "(pwVar3 <= pwVar4)" ( (binary_expression "pwVar3 <= pwVar4" identifier <= identifier) )) (compound_statement "{\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }" { (expression_statement "(**(code **)(*plVar1 + 0x50))(plVar1);" (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) (labeled_statement "LAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);" statement_identifier : (expression_statement "plVar1[2] = (long)(pwVar4 + 1);" (assignment_expression "plVar1[2] = (long)(pwVar4 + 1)" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)(pwVar4 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(pwVar4 + 1)" ( (binary_expression "pwVar4 + 1" identifier + number_literal) )))) ;)) (return_statement "return param_1;" return identifier ;) })) (do_statement "do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);" do (compound_statement "{\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        }" { (expression_statement "lVar8 = param_2[1];" (assignment_expression "lVar8 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "__n = (long)pwVar3 - (long)pwVar4 >> 2;" (assignment_expression "__n = (long)pwVar3 - (long)pwVar4 >> 2" identifier = (binary_expression "(long)pwVar3 - (long)pwVar4 >> 2" (binary_expression "(long)pwVar3 - (long)pwVar4" (cast_expression "(long)pwVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pwVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal)) ;) (if_statement "if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }" if (parenthesized_expression "((long)(0x1fffffffffffffff - uVar9) < (long)__n)" ( (binary_expression "(long)(0x1fffffffffffffff - uVar9) < (long)__n" (cast_expression "(long)(0x1fffffffffffffff - uVar9)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(0x1fffffffffffffff - uVar9)" ( (binary_expression "0x1fffffffffffffff - uVar9" number_literal - identifier) ))) < (cast_expression "(long)__n" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )) (compound_statement "{\n            __n = 0x1fffffffffffffff - uVar9;\n          }" { (expression_statement "__n = 0x1fffffffffffffff - uVar9;" (assignment_expression "__n = 0x1fffffffffffffff - uVar9" identifier = (binary_expression "0x1fffffffffffffff - uVar9" number_literal - identifier)) ;) })) (if_statement "if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }" if (parenthesized_expression "((long)__n < 2)" ( (binary_expression "(long)__n < 2" (cast_expression "(long)__n" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) < number_literal) )) (compound_statement "{\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }" { (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }" if (parenthesized_expression "(puVar5 == param_2 + 2)" ( (binary_expression "puVar5 == param_2 + 2" identifier == (binary_expression "param_2 + 2" identifier + number_literal)) )) (compound_statement "{\n              uVar6 = 3;\n            }" { (expression_statement "uVar6 = 3;" (assignment_expression "uVar6 = 3" identifier = number_literal) ;) }) (else_clause "else {\n              uVar6 = param_2[2];\n            }" else (compound_statement "{\n              uVar6 = param_2[2];\n            }" { (expression_statement "uVar6 = param_2[2];" (assignment_expression "uVar6 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }" if (parenthesized_expression "(uVar6 < lVar8 + 1U)" ( (binary_expression "uVar6 < lVar8 + 1U" identifier < (binary_expression "lVar8 + 1U" identifier + number_literal)) )) (compound_statement "{\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }" { (expression_statement "FUN_002a6770(param_2,lVar8,0,0,1);" (call_expression "FUN_002a6770(param_2,lVar8,0,0,1)" identifier (argument_list "(param_2,lVar8,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pwVar3 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar3 = (wchar_t *)plVar1[3]" identifier = (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) })) (expression_statement "*(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;" (assignment_expression "*(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2" (pointer_expression "*(wchar_t *)((long)puVar5 + lVar8 * 4)" * (cast_expression "(wchar_t *)((long)puVar5 + lVar8 * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar5 + lVar8 * 4)" ( (binary_expression "(long)puVar5 + lVar8 * 4" (cast_expression "(long)puVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "lVar8 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (expression_statement "param_2[1] = lVar8 + 1;" (assignment_expression "param_2[1] = lVar8 + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "lVar8 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;" (assignment_expression "*(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0" (pointer_expression "*(undefined4 *)((long)puVar5 + lVar8 * 4 + 4)" * (cast_expression "(undefined4 *)((long)puVar5 + lVar8 * 4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar5 + lVar8 * 4 + 4)" ( (binary_expression "(long)puVar5 + lVar8 * 4 + 4" (binary_expression "(long)puVar5 + lVar8 * 4" (cast_expression "(long)puVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "lVar8 * 4" identifier * number_literal)) + number_literal) )))) = number_literal) ;) (if_statement "if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }" if (parenthesized_expression "(pwVar4 < pwVar3)" ( (binary_expression "pwVar4 < pwVar3" identifier < identifier) )) (compound_statement "{\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }" { (expression_statement "wVar2 = *pwVar4;" (assignment_expression "wVar2 = *pwVar4" identifier = (pointer_expression "*pwVar4" * identifier)) ;) (expression_statement "plVar1[2] = (long)(pwVar4 + 1);" (assignment_expression "plVar1[2] = (long)(pwVar4 + 1)" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)(pwVar4 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(pwVar4 + 1)" ( (binary_expression "pwVar4 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }" else (compound_statement "{\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }" { (expression_statement "wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);" (assignment_expression "wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) ;) }))) (if_statement "if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }" if (parenthesized_expression "(wVar2 != L'\xffffffff')" ( (binary_expression "wVar2 != L'\xffffffff'" identifier != (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }" { (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;" if (parenthesized_expression "((wchar_t *)plVar1[3] <= pwVar4)" ( (binary_expression "(wchar_t *)plVar1[3] <= pwVar4" (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ])) <= identifier) )) (goto_statement "goto LAB_002a3b83;" goto statement_identifier ;)) (goto_statement "goto LAB_002a3abd;" goto statement_identifier ;) })) (labeled_statement "LAB_002a3c20:\n            uVar7 = 2;" statement_identifier : (expression_statement "uVar7 = 2;" (assignment_expression "uVar7 = 2" identifier = number_literal) ;)) (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (goto_statement "goto LAB_002a39a0;" goto statement_identifier ;) })) (expression_statement "pwVar3 = wmemchr(pwVar4,param_3,__n);" (assignment_expression "pwVar3 = wmemchr(pwVar4,param_3,__n)" identifier = (call_expression "wmemchr(pwVar4,param_3,__n)" identifier (argument_list "(pwVar4,param_3,__n)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;" (assignment_expression "uVar6 = (long)pwVar3 - (long)pwVar4 >> 2" identifier = (binary_expression "(long)pwVar3 - (long)pwVar4 >> 2" (binary_expression "(long)pwVar3 - (long)pwVar4" (cast_expression "(long)pwVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pwVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal)) ;) (if_statement "if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }" if (parenthesized_expression "(pwVar3 == (wchar_t *)0x0)" ( (binary_expression "pwVar3 == (wchar_t *)0x0" identifier == (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar6 = __n;\n          }" { (expression_statement "uVar6 = __n;" (assignment_expression "uVar6 = __n" identifier = identifier) ;) })) (if_statement "if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }" if (parenthesized_expression "(0x1fffffffffffffffU - lVar8 < uVar6)" ( (binary_expression "0x1fffffffffffffffU - lVar8 < uVar6" (binary_expression "0x1fffffffffffffffU - lVar8" number_literal - identifier) < identifier) )) (compound_statement "{\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }" { (expression_statement "FUN_002e12b0("basic_string::append");" (call_expression "FUN_002e12b0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })) (expression_statement "FUN_002a7e20(param_2,pwVar4,uVar6);" (call_expression "FUN_002a7e20(param_2,pwVar4,uVar6)" identifier (argument_list "(param_2,pwVar4,uVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar9 = uVar9 + uVar6;" (assignment_expression "uVar9 = uVar9 + uVar6" identifier = (binary_expression "uVar9 + uVar6" identifier + identifier)) ;) (expression_statement "pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);" (assignment_expression "pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4)" identifier = (cast_expression "(wchar_t *)(plVar1[2] + uVar6 * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar1[2] + uVar6 * 4)" ( (binary_expression "plVar1[2] + uVar6 * 4" (subscript_expression "plVar1[2]" identifier [ number_literal ]) + (binary_expression "uVar6 * 4" identifier * number_literal)) )))) ;) (expression_statement "plVar1[2] = (long)pwVar4;" (assignment_expression "plVar1[2] = (long)pwVar4" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)pwVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }" if (parenthesized_expression "(pwVar4 < (wchar_t *)plVar1[3])" ( (binary_expression "pwVar4 < (wchar_t *)plVar1[3]" identifier < (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }" { (labeled_statement "LAB_002a3abd:\n            wVar2 = *pwVar4;" statement_identifier : (expression_statement "wVar2 = *pwVar4;" (assignment_expression "wVar2 = *pwVar4" identifier = (pointer_expression "*pwVar4" * identifier)) ;)) }) (else_clause "else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }" else (compound_statement "{\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }" { (labeled_statement "LAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);" statement_identifier : (expression_statement "wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);" (assignment_expression "wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) ;)) }))) (if_statement "if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }" if (parenthesized_expression "(0x1ffffffffffffffe < uVar9)" ( (binary_expression "0x1ffffffffffffffe < uVar9" number_literal < identifier) )) (compound_statement "{\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }" { (if_statement "if (wVar2 == L'\xffffffff') goto LAB_002a3c20;" if (parenthesized_expression "(wVar2 == L'\xffffffff')" ( (binary_expression "wVar2 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (goto_statement "goto LAB_002a3c20;" goto statement_identifier ;)) (if_statement "if (param_3 != wVar2) goto LAB_002a3991;" if (parenthesized_expression "(param_3 != wVar2)" ( (binary_expression "param_3 != wVar2" identifier != identifier) )) (goto_statement "goto LAB_002a3991;" goto statement_identifier ;)) (if_statement "if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;" if (parenthesized_expression "((ulong)plVar1[3] <= (ulong)plVar1[2])" ( (binary_expression "(ulong)plVar1[3] <= (ulong)plVar1[2]" (cast_expression "(ulong)plVar1[3]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[3]" identifier [ number_literal ])) <= (cast_expression "(ulong)plVar1[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_002a3afa;" goto statement_identifier ;)) (expression_statement "plVar1[2] = plVar1[2] + 4;" (assignment_expression "plVar1[2] = plVar1[2] + 4" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (binary_expression "plVar1[2] + 4" (subscript_expression "plVar1[2]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }" if (parenthesized_expression "(uVar9 != 0xffffffffffffffff)" ( (binary_expression "uVar9 != 0xffffffffffffffff" identifier != number_literal) )) (compound_statement "{\n              return param_1;\n            }" { (return_statement "return param_1;" return identifier ;) })) (goto_statement "goto LAB_002a3991;" goto statement_identifier ;) })) (if_statement "if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }" if (parenthesized_expression "(wVar2 == L'\xffffffff')" ( (binary_expression "wVar2 == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }" { (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;" (assignment_expression "uVar7 = (-(uint)(uVar9 == 0) & 4) + 2" identifier = (binary_expression "(-(uint)(uVar9 == 0) & 4) + 2" (parenthesized_expression "(-(uint)(uVar9 == 0) & 4)" ( (binary_expression "-(uint)(uVar9 == 0) & 4" (unary_expression "-(uint)(uVar9 == 0)" - (call_expression "(uint)(uVar9 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) )))) & number_literal) )) + number_literal)) ;) (goto_statement "goto LAB_002a39a0;" goto statement_identifier ;) })) (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pwVar3 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar3 = (wchar_t *)plVar1[3]" identifier = (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(param_3 != wVar2)" ( (binary_expression "param_3 != wVar2" identifier != identifier) )) ;) (if_statement "if (pwVar4 < pwVar3) goto LAB_002a3c8e;" if (parenthesized_expression "(pwVar4 < pwVar3)" ( (binary_expression "pwVar4 < pwVar3" identifier < identifier) )) (goto_statement "goto LAB_002a3c8e;" goto statement_identifier ;)) (labeled_statement "LAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);" statement_identifier : (expression_statement "(**(code **)(*plVar1 + 0x50))(plVar1);" (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier ))) ;)) (if_statement "if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }" if (parenthesized_expression "(uVar9 != 0xffffffffffffffff)" ( (binary_expression "uVar9 != 0xffffffffffffffff" identifier != number_literal) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (goto_statement "goto LAB_002a3991;" goto statement_identifier ;) })) }) (else_clause "else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" else (compound_statement "{\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" { (expression_statement "wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);" (assignment_expression "wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) ;) (if_statement "if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }" if (parenthesized_expression "(wVar2 != L'\xffffffff')" ( (binary_expression "wVar2 != L'\xffffffff'" identifier != (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }" { (expression_statement "pwVar3 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar3 = (wchar_t *)plVar1[3]" identifier = (cast_expression "(wchar_t *)plVar1[3]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" identifier = (cast_expression "(wchar_t *)plVar1[2]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (goto_statement "goto LAB_002a3a00;" goto statement_identifier ;) })) (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) }))) (expression_statement "uVar7 = 6;" (assignment_expression "uVar7 = 6" identifier = number_literal) ;) }))) (labeled_statement "LAB_002a39a0:\n  FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));" statement_identifier : (expression_statement "FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));" (call_expression "FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20))" identifier (argument_list "(lVar8,uVar7 | *(uint *)(lVar8 + 0x20))" ( identifier , (binary_expression "uVar7 | *(uint *)(lVar8 + 0x20)" identifier | (pointer_expression "*(uint *)(lVar8 + 0x20)" * (cast_expression "(uint *)(lVar8 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + 0x20)" ( (binary_expression "lVar8 + 0x20" identifier + number_literal) ))))) ))) ;)) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal L' escape_sequence character character character character ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;)) (return_statement return IDENT ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression LIT - IDENT) ))) < (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (binary_expression IDENT * LIT)) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal L' escape_sequence character character character character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) <= IDENT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;)) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal L' escape_sequence character character character character ')) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal L' escape_sequence character character character character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) & LIT) )) + LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal L' escape_sequence character character character character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT | (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;)) (return_statement return IDENT ;) })))
(function_definition "long * FUN_002a3960(long *param_1,undefined8 *param_2,wchar_t param_3)\n\n{\n  long *plVar1;\n  wchar_t wVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  undefined8 *puVar5;\n  size_t __n;\n  ulong uVar6;\n  uint uVar7;\n  long lVar8;\n  ulong uVar9;\n  char local_39 [9];\n  \n  FUN_002c5a30(local_39,param_1,1);\n  if (local_39[0] == '\0') {\nLAB_002a3991:\n    uVar7 = 4;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }\nLAB_002a39a0:\n  FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));\n  return param_1;\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_002a3960(long *param_1,undefined8 *param_2,wchar_t param_3)" (* "*") (function_declarator "FUN_002a3960(long *param_1,undefined8 *param_2,wchar_t param_3)" (identifier "FUN_002a3960") (parameter_list "(long *param_1,undefined8 *param_2,wchar_t param_3)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "wchar_t param_3" (type_identifier "wchar_t") (identifier "param_3")) () ")")))) (compound_statement "{\n  long *plVar1;\n  wchar_t wVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  undefined8 *puVar5;\n  size_t __n;\n  ulong uVar6;\n  uint uVar7;\n  long lVar8;\n  ulong uVar9;\n  char local_39 [9];\n  \n  FUN_002c5a30(local_39,param_1,1);\n  if (local_39[0] == '\0') {\nLAB_002a3991:\n    uVar7 = 4;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }\nLAB_002a39a0:\n  FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));\n  return param_1;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "wchar_t wVar2;" (type_identifier "wchar_t") (identifier "wVar2") (; ";")) (declaration "wchar_t *pwVar3;" (type_identifier "wchar_t") (pointer_declarator "*pwVar3" (* "*") (identifier "pwVar3")) (; ";")) (declaration "wchar_t *pwVar4;" (type_identifier "wchar_t") (pointer_declarator "*pwVar4" (* "*") (identifier "pwVar4")) (; ";")) (declaration "undefined8 *puVar5;" (type_identifier "undefined8") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "ulong uVar6;" (type_identifier "ulong") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "long lVar8;" (sized_type_specifier "long" (long "long")) (identifier "lVar8") (; ";")) (declaration "ulong uVar9;" (type_identifier "ulong") (identifier "uVar9") (; ";")) (declaration "char local_39 [9];" (primitive_type "char") (array_declarator "local_39 [9]" (identifier "local_39") ([ "[") (number_literal "9") (] "]")) (; ";")) (expression_statement "FUN_002c5a30(local_39,param_1,1);" (call_expression "FUN_002c5a30(local_39,param_1,1)" (identifier "FUN_002c5a30") (argument_list "(local_39,param_1,1)" (( "(") (identifier "local_39") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (local_39[0] == '\0') {\nLAB_002a3991:\n    uVar7 = 4;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }\n  else {\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }" (if "if") (parenthesized_expression "(local_39[0] == '\0')" (( "(") (binary_expression "local_39[0] == '\0'" (subscript_expression "local_39[0]" (identifier "local_39") ([ "[") (number_literal "0") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_002a3991:\n    uVar7 = 4;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  }" ({ "{") (labeled_statement "LAB_002a3991:\n    uVar7 = 4;" (statement_identifier "LAB_002a3991") (: ":") (expression_statement "uVar7 = 4;" (assignment_expression "uVar7 = 4" (identifier "uVar7") (= "=") (number_literal "4")) (; ";"))) (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar8") (= "=") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";")) (} "}")) (else_clause "else {\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }" (else "else") (compound_statement "{\n    param_2[1] = 0;\n    *(undefined4 *)*param_2 = 0;\n    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar8 + 0xe8);\n    pwVar4 = (wchar_t *)plVar1[2];\n    pwVar3 = (wchar_t *)plVar1[3];\n    if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }\n    uVar7 = 6;\n  }" ({ "{") (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)*param_2 = 0;" (assignment_expression "*(undefined4 *)*param_2 = 0" (pointer_expression "*(undefined4 *)*param_2" (* "*") (cast_expression "(undefined4 *)*param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar8") (= "=") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";")) (expression_statement "plVar1 = *(long **)(lVar8 + 0xe8);" (assignment_expression "plVar1 = *(long **)(lVar8 + 0xe8)" (identifier "plVar1") (= "=") (pointer_expression "*(long **)(lVar8 + 0xe8)" (* "*") (cast_expression "(long **)(lVar8 + 0xe8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar8 + 0xe8)" (( "(") (binary_expression "lVar8 + 0xe8" (identifier "lVar8") (+ "+") (number_literal "0xe8")) () ")"))))) (; ";")) (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" (identifier "pwVar4") (= "=") (cast_expression "(wchar_t *)plVar1[2]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pwVar3 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar3 = (wchar_t *)plVar1[3]" (identifier "pwVar3") (= "=") (cast_expression "(wchar_t *)plVar1[3]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (if_statement "if (pwVar4 < pwVar3) {\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }\n    else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" (if "if") (parenthesized_expression "(pwVar4 < pwVar3)" (( "(") (binary_expression "pwVar4 < pwVar3" (identifier "pwVar4") (< "<") (identifier "pwVar3")) () ")")) (compound_statement "{\n      wVar2 = *pwVar4;\n      if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }\n    }" ({ "{") (expression_statement "wVar2 = *pwVar4;" (assignment_expression "wVar2 = *pwVar4" (identifier "wVar2") (= "=") (pointer_expression "*pwVar4" (* "*") (identifier "pwVar4"))) (; ";")) (if_statement "if (wVar2 != L'\xffffffff') {\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }" (if "if") (parenthesized_expression "(wVar2 != L'\xffffffff')" (( "(") (binary_expression "wVar2 != L'\xffffffff'" (identifier "wVar2") (!= "!=") (char_literal "L'\xffffffff'" (L' "L'") (escape_sequence "\xffff") (character "f") (character "f") (character "f") (character "f") (' "'"))) () ")")) (compound_statement "{\nLAB_002a3a00:\n        uVar9 = 0;\n        if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }\n        do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);\n        if (pwVar4 < pwVar3) goto LAB_002a3c8e;\nLAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }\n        goto LAB_002a3991;\n      }" ({ "{") (labeled_statement "LAB_002a3a00:\n        uVar9 = 0;" (statement_identifier "LAB_002a3a00") (: ":") (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";"))) (if_statement "if (param_3 == wVar2) {\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }" (if "if") (parenthesized_expression "(param_3 == wVar2)" (( "(") (binary_expression "param_3 == wVar2" (identifier "param_3") (== "==") (identifier "wVar2")) () ")")) (compound_statement "{\n          if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }\nLAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);\n          return param_1;\n        }" ({ "{") (if_statement "if (pwVar3 <= pwVar4) {\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }" (if "if") (parenthesized_expression "(pwVar3 <= pwVar4)" (( "(") (binary_expression "pwVar3 <= pwVar4" (identifier "pwVar3") (<= "<=") (identifier "pwVar4")) () ")")) (compound_statement "{\n                    \n            (**(code **)(*plVar1 + 0x50))(plVar1);\n            return param_1;\n          }" ({ "{") (expression_statement "(**(code **)(*plVar1 + 0x50))(plVar1);" (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x50)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x50)" (* "*") (cast_expression "(code **)(*plVar1 + 0x50)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x50)" (( "(") (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x50")) () ")"))))) () ")")) (argument_list "(plVar1)" (( "(") (identifier "plVar1") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (labeled_statement "LAB_002a3c8e:\n          plVar1[2] = (long)(pwVar4 + 1);" (statement_identifier "LAB_002a3c8e") (: ":") (expression_statement "plVar1[2] = (long)(pwVar4 + 1);" (assignment_expression "plVar1[2] = (long)(pwVar4 + 1)" (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(long)(pwVar4 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(pwVar4 + 1)" (( "(") (binary_expression "pwVar4 + 1" (identifier "pwVar4") (+ "+") (number_literal "1")) () ")")))) (; ";"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (do_statement "do {\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        } while (param_3 != wVar2);" (do "do") (compound_statement "{\n          lVar8 = param_2[1];\n          __n = (long)pwVar3 - (long)pwVar4 >> 2;\n          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }\n          if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }\n          pwVar3 = wmemchr(pwVar4,param_3,__n);\n          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;\n          if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }\n          if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }\n                    \n          FUN_002a7e20(param_2,pwVar4,uVar6);\n          uVar9 = uVar9 + uVar6;\n          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);\n          plVar1[2] = (long)pwVar4;\n          if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }\n          if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }\n          if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }\n          pwVar4 = (wchar_t *)plVar1[2];\n          pwVar3 = (wchar_t *)plVar1[3];\n        }" ({ "{") (expression_statement "lVar8 = param_2[1];" (assignment_expression "lVar8 = param_2[1]" (identifier "lVar8") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "__n = (long)pwVar3 - (long)pwVar4 >> 2;" (assignment_expression "__n = (long)pwVar3 - (long)pwVar4 >> 2" (identifier "__n") (= "=") (binary_expression "(long)pwVar3 - (long)pwVar4 >> 2" (binary_expression "(long)pwVar3 - (long)pwVar4" (cast_expression "(long)pwVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pwVar3")) (- "-") (cast_expression "(long)pwVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pwVar4"))) (>> ">>") (number_literal "2"))) (; ";")) (if_statement "if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {\n            __n = 0x1fffffffffffffff - uVar9;\n          }" (if "if") (parenthesized_expression "((long)(0x1fffffffffffffff - uVar9) < (long)__n)" (( "(") (binary_expression "(long)(0x1fffffffffffffff - uVar9) < (long)__n" (cast_expression "(long)(0x1fffffffffffffff - uVar9)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(0x1fffffffffffffff - uVar9)" (( "(") (binary_expression "0x1fffffffffffffff - uVar9" (number_literal "0x1fffffffffffffff") (- "-") (identifier "uVar9")) () ")"))) (< "<") (cast_expression "(long)__n" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__n"))) () ")")) (compound_statement "{\n            __n = 0x1fffffffffffffff - uVar9;\n          }" ({ "{") (expression_statement "__n = 0x1fffffffffffffff - uVar9;" (assignment_expression "__n = 0x1fffffffffffffff - uVar9" (identifier "__n") (= "=") (binary_expression "0x1fffffffffffffff - uVar9" (number_literal "0x1fffffffffffffff") (- "-") (identifier "uVar9"))) (; ";")) (} "}"))) (if_statement "if ((long)__n < 2) {\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }" (if "if") (parenthesized_expression "((long)__n < 2)" (( "(") (binary_expression "(long)__n < 2" (cast_expression "(long)__n" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__n")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n            puVar5 = (undefined8 *)*param_2;\n            if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }\n            if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }\n            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;\n            uVar9 = uVar9 + 1;\n            param_2[1] = lVar8 + 1;\n            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;\n            if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }\n            if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }\nLAB_002a3c20:\n            uVar7 = 2;\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            goto LAB_002a39a0;\n          }" ({ "{") (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" (identifier "puVar5") (= "=") (cast_expression "(undefined8 *)*param_2" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (puVar5 == param_2 + 2) {\n              uVar6 = 3;\n            }\n            else {\n              uVar6 = param_2[2];\n            }" (if "if") (parenthesized_expression "(puVar5 == param_2 + 2)" (( "(") (binary_expression "puVar5 == param_2 + 2" (identifier "puVar5") (== "==") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n              uVar6 = 3;\n            }" ({ "{") (expression_statement "uVar6 = 3;" (assignment_expression "uVar6 = 3" (identifier "uVar6") (= "=") (number_literal "3")) (; ";")) (} "}")) (else_clause "else {\n              uVar6 = param_2[2];\n            }" (else "else") (compound_statement "{\n              uVar6 = param_2[2];\n            }" ({ "{") (expression_statement "uVar6 = param_2[2];" (assignment_expression "uVar6 = param_2[2]" (identifier "uVar6") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")))) (if_statement "if (uVar6 < lVar8 + 1U) {\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }" (if "if") (parenthesized_expression "(uVar6 < lVar8 + 1U)" (( "(") (binary_expression "uVar6 < lVar8 + 1U" (identifier "uVar6") (< "<") (binary_expression "lVar8 + 1U" (identifier "lVar8") (+ "+") (number_literal "1U"))) () ")")) (compound_statement "{\n              FUN_002a6770(param_2,lVar8,0,0,1);\n              puVar5 = (undefined8 *)*param_2;\n              pwVar4 = (wchar_t *)plVar1[2];\n              pwVar3 = (wchar_t *)plVar1[3];\n            }" ({ "{") (expression_statement "FUN_002a6770(param_2,lVar8,0,0,1);" (call_expression "FUN_002a6770(param_2,lVar8,0,0,1)" (identifier "FUN_002a6770") (argument_list "(param_2,lVar8,0,0,1)" (( "(") (identifier "param_2") (, ",") (identifier "lVar8") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" (identifier "puVar5") (= "=") (cast_expression "(undefined8 *)*param_2" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" (identifier "pwVar4") (= "=") (cast_expression "(wchar_t *)plVar1[2]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pwVar3 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar3 = (wchar_t *)plVar1[3]" (identifier "pwVar3") (= "=") (cast_expression "(wchar_t *)plVar1[3]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (} "}"))) (expression_statement "*(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;" (assignment_expression "*(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2" (pointer_expression "*(wchar_t *)((long)puVar5 + lVar8 * 4)" (* "*") (cast_expression "(wchar_t *)((long)puVar5 + lVar8 * 4)" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar5 + lVar8 * 4)" (( "(") (binary_expression "(long)puVar5 + lVar8 * 4" (cast_expression "(long)puVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar5")) (+ "+") (binary_expression "lVar8 * 4" (identifier "lVar8") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "wVar2")) (; ";")) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" (identifier "uVar9") (= "=") (binary_expression "uVar9 + 1" (identifier "uVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_2[1] = lVar8 + 1;" (assignment_expression "param_2[1] = lVar8 + 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "lVar8 + 1" (identifier "lVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;" (assignment_expression "*(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0" (pointer_expression "*(undefined4 *)((long)puVar5 + lVar8 * 4 + 4)" (* "*") (cast_expression "(undefined4 *)((long)puVar5 + lVar8 * 4 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar5 + lVar8 * 4 + 4)" (( "(") (binary_expression "(long)puVar5 + lVar8 * 4 + 4" (binary_expression "(long)puVar5 + lVar8 * 4" (cast_expression "(long)puVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar5")) (+ "+") (binary_expression "lVar8 * 4" (identifier "lVar8") (* "*") (number_literal "4"))) (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (pwVar4 < pwVar3) {\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }\n            else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }" (if "if") (parenthesized_expression "(pwVar4 < pwVar3)" (( "(") (binary_expression "pwVar4 < pwVar3" (identifier "pwVar4") (< "<") (identifier "pwVar3")) () ")")) (compound_statement "{\n              wVar2 = *pwVar4;\n              plVar1[2] = (long)(pwVar4 + 1);\n            }" ({ "{") (expression_statement "wVar2 = *pwVar4;" (assignment_expression "wVar2 = *pwVar4" (identifier "wVar2") (= "=") (pointer_expression "*pwVar4" (* "*") (identifier "pwVar4"))) (; ";")) (expression_statement "plVar1[2] = (long)(pwVar4 + 1);" (assignment_expression "plVar1[2] = (long)(pwVar4 + 1)" (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(long)(pwVar4 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(pwVar4 + 1)" (( "(") (binary_expression "pwVar4 + 1" (identifier "pwVar4") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }" (else "else") (compound_statement "{\n              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n            }" ({ "{") (expression_statement "wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);" (assignment_expression "wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1)" (identifier "wVar2") (= "=") (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x50)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x50)" (* "*") (cast_expression "(code **)(*plVar1 + 0x50)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x50)" (( "(") (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x50")) () ")"))))) () ")")) (argument_list "(plVar1)" (( "(") (identifier "plVar1") () ")")))) (; ";")) (} "}")))) (if_statement "if (wVar2 != L'\xffffffff') {\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }" (if "if") (parenthesized_expression "(wVar2 != L'\xffffffff')" (( "(") (binary_expression "wVar2 != L'\xffffffff'" (identifier "wVar2") (!= "!=") (char_literal "L'\xffffffff'" (L' "L'") (escape_sequence "\xffff") (character "f") (character "f") (character "f") (character "f") (' "'"))) () ")")) (compound_statement "{\n              pwVar4 = (wchar_t *)plVar1[2];\n              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;\n              goto LAB_002a3abd;\n            }" ({ "{") (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" (identifier "pwVar4") (= "=") (cast_expression "(wchar_t *)plVar1[2]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;" (if "if") (parenthesized_expression "((wchar_t *)plVar1[3] <= pwVar4)" (( "(") (binary_expression "(wchar_t *)plVar1[3] <= pwVar4" (cast_expression "(wchar_t *)plVar1[3]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (identifier "pwVar4")) () ")")) (goto_statement "goto LAB_002a3b83;" (goto "goto") (statement_identifier "LAB_002a3b83") (; ";"))) (goto_statement "goto LAB_002a3abd;" (goto "goto") (statement_identifier "LAB_002a3abd") (; ";")) (} "}"))) (labeled_statement "LAB_002a3c20:\n            uVar7 = 2;" (statement_identifier "LAB_002a3c20") (: ":") (expression_statement "uVar7 = 2;" (assignment_expression "uVar7 = 2" (identifier "uVar7") (= "=") (number_literal "2")) (; ";"))) (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar8") (= "=") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";")) (goto_statement "goto LAB_002a39a0;" (goto "goto") (statement_identifier "LAB_002a39a0") (; ";")) (} "}"))) (expression_statement "pwVar3 = wmemchr(pwVar4,param_3,__n);" (assignment_expression "pwVar3 = wmemchr(pwVar4,param_3,__n)" (identifier "pwVar3") (= "=") (call_expression "wmemchr(pwVar4,param_3,__n)" (identifier "wmemchr") (argument_list "(pwVar4,param_3,__n)" (( "(") (identifier "pwVar4") (, ",") (identifier "param_3") (, ",") (identifier "__n") () ")")))) (; ";")) (expression_statement "uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;" (assignment_expression "uVar6 = (long)pwVar3 - (long)pwVar4 >> 2" (identifier "uVar6") (= "=") (binary_expression "(long)pwVar3 - (long)pwVar4 >> 2" (binary_expression "(long)pwVar3 - (long)pwVar4" (cast_expression "(long)pwVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pwVar3")) (- "-") (cast_expression "(long)pwVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pwVar4"))) (>> ">>") (number_literal "2"))) (; ";")) (if_statement "if (pwVar3 == (wchar_t *)0x0) {\n            uVar6 = __n;\n          }" (if "if") (parenthesized_expression "(pwVar3 == (wchar_t *)0x0)" (( "(") (binary_expression "pwVar3 == (wchar_t *)0x0" (identifier "pwVar3") (== "==") (cast_expression "(wchar_t *)0x0" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            uVar6 = __n;\n          }" ({ "{") (expression_statement "uVar6 = __n;" (assignment_expression "uVar6 = __n" (identifier "uVar6") (= "=") (identifier "__n")) (; ";")) (} "}"))) (if_statement "if (0x1fffffffffffffffU - lVar8 < uVar6) {\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }" (if "if") (parenthesized_expression "(0x1fffffffffffffffU - lVar8 < uVar6)" (( "(") (binary_expression "0x1fffffffffffffffU - lVar8 < uVar6" (binary_expression "0x1fffffffffffffffU - lVar8" (number_literal "0x1fffffffffffffffU") (- "-") (identifier "lVar8")) (< "<") (identifier "uVar6")) () ")")) (compound_statement "{\n                    \n                    \n            FUN_002e12b0("basic_string::append");\n          }" ({ "{") (expression_statement "FUN_002e12b0("basic_string::append");" (call_expression "FUN_002e12b0("basic_string::append")" (identifier "FUN_002e12b0") (argument_list "("basic_string::append")" (( "(") (string_literal ""basic_string::append"" (" """) (string_content "basic_string::append") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_002a7e20(param_2,pwVar4,uVar6);" (call_expression "FUN_002a7e20(param_2,pwVar4,uVar6)" (identifier "FUN_002a7e20") (argument_list "(param_2,pwVar4,uVar6)" (( "(") (identifier "param_2") (, ",") (identifier "pwVar4") (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "uVar9 = uVar9 + uVar6;" (assignment_expression "uVar9 = uVar9 + uVar6" (identifier "uVar9") (= "=") (binary_expression "uVar9 + uVar6" (identifier "uVar9") (+ "+") (identifier "uVar6"))) (; ";")) (expression_statement "pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);" (assignment_expression "pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4)" (identifier "pwVar4") (= "=") (cast_expression "(wchar_t *)(plVar1[2] + uVar6 * 4)" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar1[2] + uVar6 * 4)" (( "(") (binary_expression "plVar1[2] + uVar6 * 4" (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "uVar6 * 4" (identifier "uVar6") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "plVar1[2] = (long)pwVar4;" (assignment_expression "plVar1[2] = (long)pwVar4" (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(long)pwVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pwVar4"))) (; ";")) (if_statement "if (pwVar4 < (wchar_t *)plVar1[3]) {\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }\n          else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }" (if "if") (parenthesized_expression "(pwVar4 < (wchar_t *)plVar1[3])" (( "(") (binary_expression "pwVar4 < (wchar_t *)plVar1[3]" (identifier "pwVar4") (< "<") (cast_expression "(wchar_t *)plVar1[3]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\nLAB_002a3abd:\n            wVar2 = *pwVar4;\n          }" ({ "{") (labeled_statement "LAB_002a3abd:\n            wVar2 = *pwVar4;" (statement_identifier "LAB_002a3abd") (: ":") (expression_statement "wVar2 = *pwVar4;" (assignment_expression "wVar2 = *pwVar4" (identifier "wVar2") (= "=") (pointer_expression "*pwVar4" (* "*") (identifier "pwVar4"))) (; ";"))) (} "}")) (else_clause "else {\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }" (else "else") (compound_statement "{\nLAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          }" ({ "{") (labeled_statement "LAB_002a3b83:\n            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);" (statement_identifier "LAB_002a3b83") (: ":") (expression_statement "wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);" (assignment_expression "wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1)" (identifier "wVar2") (= "=") (call_expression "(**(code **)(*plVar1 + 0x48))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x48)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x48)" (* "*") (cast_expression "(code **)(*plVar1 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x48)" (( "(") (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (argument_list "(plVar1)" (( "(") (identifier "plVar1") () ")")))) (; ";"))) (} "}")))) (if_statement "if (0x1ffffffffffffffe < uVar9) {\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }" (if "if") (parenthesized_expression "(0x1ffffffffffffffe < uVar9)" (( "(") (binary_expression "0x1ffffffffffffffe < uVar9" (number_literal "0x1ffffffffffffffe") (< "<") (identifier "uVar9")) () ")")) (compound_statement "{\n            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;\n            if (param_3 != wVar2) goto LAB_002a3991;\n            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;\n            plVar1[2] = plVar1[2] + 4;\n            if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }\n            goto LAB_002a3991;\n          }" ({ "{") (if_statement "if (wVar2 == L'\xffffffff') goto LAB_002a3c20;" (if "if") (parenthesized_expression "(wVar2 == L'\xffffffff')" (( "(") (binary_expression "wVar2 == L'\xffffffff'" (identifier "wVar2") (== "==") (char_literal "L'\xffffffff'" (L' "L'") (escape_sequence "\xffff") (character "f") (character "f") (character "f") (character "f") (' "'"))) () ")")) (goto_statement "goto LAB_002a3c20;" (goto "goto") (statement_identifier "LAB_002a3c20") (; ";"))) (if_statement "if (param_3 != wVar2) goto LAB_002a3991;" (if "if") (parenthesized_expression "(param_3 != wVar2)" (( "(") (binary_expression "param_3 != wVar2" (identifier "param_3") (!= "!=") (identifier "wVar2")) () ")")) (goto_statement "goto LAB_002a3991;" (goto "goto") (statement_identifier "LAB_002a3991") (; ";"))) (if_statement "if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;" (if "if") (parenthesized_expression "((ulong)plVar1[3] <= (ulong)plVar1[2])" (( "(") (binary_expression "(ulong)plVar1[3] <= (ulong)plVar1[2]" (cast_expression "(ulong)plVar1[3]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (cast_expression "(ulong)plVar1[2]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")))) () ")")) (goto_statement "goto LAB_002a3afa;" (goto "goto") (statement_identifier "LAB_002a3afa") (; ";"))) (expression_statement "plVar1[2] = plVar1[2] + 4;" (assignment_expression "plVar1[2] = plVar1[2] + 4" (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "plVar1[2] + 4" (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "4"))) (; ";")) (if_statement "if (uVar9 != 0xffffffffffffffff) {\n              return param_1;\n            }" (if "if") (parenthesized_expression "(uVar9 != 0xffffffffffffffff)" (( "(") (binary_expression "uVar9 != 0xffffffffffffffff" (identifier "uVar9") (!= "!=") (number_literal "0xffffffffffffffff")) () ")")) (compound_statement "{\n              return param_1;\n            }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (goto_statement "goto LAB_002a3991;" (goto "goto") (statement_identifier "LAB_002a3991") (; ";")) (} "}"))) (if_statement "if (wVar2 == L'\xffffffff') {\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }" (if "if") (parenthesized_expression "(wVar2 == L'\xffffffff')" (( "(") (binary_expression "wVar2 == L'\xffffffff'" (identifier "wVar2") (== "==") (char_literal "L'\xffffffff'" (L' "L'") (escape_sequence "\xffff") (character "f") (character "f") (character "f") (character "f") (' "'"))) () ")")) (compound_statement "{\n            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;\n            goto LAB_002a39a0;\n          }" ({ "{") (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar8") (= "=") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";")) (expression_statement "uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;" (assignment_expression "uVar7 = (-(uint)(uVar9 == 0) & 4) + 2" (identifier "uVar7") (= "=") (binary_expression "(-(uint)(uVar9 == 0) & 4) + 2" (parenthesized_expression "(-(uint)(uVar9 == 0) & 4)" (( "(") (binary_expression "-(uint)(uVar9 == 0) & 4" (unary_expression "-(uint)(uVar9 == 0)" (- "-") (call_expression "(uint)(uVar9 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar9 == 0)" (( "(") (binary_expression "uVar9 == 0" (identifier "uVar9") (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "4")) () ")")) (+ "+") (number_literal "2"))) (; ";")) (goto_statement "goto LAB_002a39a0;" (goto "goto") (statement_identifier "LAB_002a39a0") (; ";")) (} "}"))) (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" (identifier "pwVar4") (= "=") (cast_expression "(wchar_t *)plVar1[2]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pwVar3 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar3 = (wchar_t *)plVar1[3]" (identifier "pwVar3") (= "=") (cast_expression "(wchar_t *)plVar1[3]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_3 != wVar2)" (( "(") (binary_expression "param_3 != wVar2" (identifier "param_3") (!= "!=") (identifier "wVar2")) () ")")) (; ";")) (if_statement "if (pwVar4 < pwVar3) goto LAB_002a3c8e;" (if "if") (parenthesized_expression "(pwVar4 < pwVar3)" (( "(") (binary_expression "pwVar4 < pwVar3" (identifier "pwVar4") (< "<") (identifier "pwVar3")) () ")")) (goto_statement "goto LAB_002a3c8e;" (goto "goto") (statement_identifier "LAB_002a3c8e") (; ";"))) (labeled_statement "LAB_002a3afa:\n        (**(code **)(*plVar1 + 0x50))(plVar1);" (statement_identifier "LAB_002a3afa") (: ":") (expression_statement "(**(code **)(*plVar1 + 0x50))(plVar1);" (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x50)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x50)" (* "*") (cast_expression "(code **)(*plVar1 + 0x50)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x50)" (( "(") (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x50")) () ")"))))) () ")")) (argument_list "(plVar1)" (( "(") (identifier "plVar1") () ")"))) (; ";"))) (if_statement "if (uVar9 != 0xffffffffffffffff) {\n          return param_1;\n        }" (if "if") (parenthesized_expression "(uVar9 != 0xffffffffffffffff)" (( "(") (binary_expression "uVar9 != 0xffffffffffffffff" (identifier "uVar9") (!= "!=") (number_literal "0xffffffffffffffff")) () ")")) (compound_statement "{\n          return param_1;\n        }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (goto_statement "goto LAB_002a3991;" (goto "goto") (statement_identifier "LAB_002a3991") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" (else "else") (compound_statement "{\n                    \n      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }\n      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    }" ({ "{") (expression_statement "wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);" (assignment_expression "wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1)" (identifier "wVar2") (= "=") (call_expression "(**(code **)(*plVar1 + 0x48))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x48)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x48)" (* "*") (cast_expression "(code **)(*plVar1 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x48)" (( "(") (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (argument_list "(plVar1)" (( "(") (identifier "plVar1") () ")")))) (; ";")) (if_statement "if (wVar2 != L'\xffffffff') {\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }" (if "if") (parenthesized_expression "(wVar2 != L'\xffffffff')" (( "(") (binary_expression "wVar2 != L'\xffffffff'" (identifier "wVar2") (!= "!=") (char_literal "L'\xffffffff'" (L' "L'") (escape_sequence "\xffff") (character "f") (character "f") (character "f") (character "f") (' "'"))) () ")")) (compound_statement "{\n        pwVar3 = (wchar_t *)plVar1[3];\n        pwVar4 = (wchar_t *)plVar1[2];\n        goto LAB_002a3a00;\n      }" ({ "{") (expression_statement "pwVar3 = (wchar_t *)plVar1[3];" (assignment_expression "pwVar3 = (wchar_t *)plVar1[3]" (identifier "pwVar3") (= "=") (cast_expression "(wchar_t *)plVar1[3]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "pwVar4 = (wchar_t *)plVar1[2];" (assignment_expression "pwVar4 = (wchar_t *)plVar1[2]" (identifier "pwVar4") (= "=") (cast_expression "(wchar_t *)plVar1[2]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (goto_statement "goto LAB_002a3a00;" (goto "goto") (statement_identifier "LAB_002a3a00") (; ";")) (} "}"))) (expression_statement "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar8") (= "=") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";")) (} "}")))) (expression_statement "uVar7 = 6;" (assignment_expression "uVar7 = 6" (identifier "uVar7") (= "=") (number_literal "6")) (; ";")) (} "}")))) (labeled_statement "LAB_002a39a0:\n  FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));" (statement_identifier "LAB_002a39a0") (: ":") (expression_statement "FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));" (call_expression "FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20))" (identifier "FUN_002c8f80") (argument_list "(lVar8,uVar7 | *(uint *)(lVar8 + 0x20))" (( "(") (identifier "lVar8") (, ",") (binary_expression "uVar7 | *(uint *)(lVar8 + 0x20)" (identifier "uVar7") (| "|") (pointer_expression "*(uint *)(lVar8 + 0x20)" (* "*") (cast_expression "(uint *)(lVar8 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar8 + 0x20)" (( "(") (binary_expression "lVar8 + 0x20" (identifier "lVar8") (+ "+") (number_literal "0x20")) () ")"))))) () ")"))) (; ";"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::wistream& std::getline<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>
   >(std::wistream&, std::wstring&, wchar_t) */

var_3 *
std::getline<var_2,std::char_traits<var_2>,std::var_1<var_2>>
          (var_3 *var_4,var_5 *var_6,var_2 var_10)

{
  long *plVar1;
  type_1 var_14;
  var_2 var_9;
  var_2 *var_8;
  var_2 *var_7;
  var_5 *var_12;
  size_t __n;
  type_1 var_13;
  type_2 var_22;
  type_3 *var_23;
  type_1 var_11;
  type_4 local_39 [9];
  
  wistream::sentry::type_4(local_39,(var_3 *)var_4,true);
  if (local_39[0] == (type_4)0x0) {
LAB_002a3991:
    var_22 = var_20;
    var_23 = (type_3 *)(var_4 + *(long *)(*(long *)var_4 + -0x18));
  }
  else {
    *(type_5 *)(var_6 + 8) = 0;
    **(type_6 **)var_6 = 0;
    var_23 = (type_3 *)(var_4 + *(long *)(*(long *)var_4 + -0x18));
    plVar1 = *(long **)((var_3 *)var_23 + 0xe8);
    var_7 = (var_2 *)plVar1[2];
    var_8 = (var_2 *)plVar1[3];
    if (var_7 < var_8) {
      var_9 = *var_7;
      if (var_9 != L'\xffffffff') {
LAB_002a3a00:
        var_11 = 0;
        if (var_10 == var_9) {
          if (var_8 <= var_7) {
                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */
            (**(type_7 **)(*plVar1 + 0x50))(plVar1);
            return var_4;
          }
LAB_002a3c8e:
          plVar1[2] = (long)(var_7 + 1);
          return var_4;
        }
        do {
          var_14 = *(type_1 *)(var_6 + 8);
          __n = (long)var_8 - (long)var_7 >> 2;
          if ((long)(0x1fffffffffffffff - var_11) < (long)__n) {
            __n = 0x1fffffffffffffff - var_11;
          }
          if ((long)__n < 2) {
            var_12 = *(var_5 **)var_6;
            if (var_12 == var_6 + 0x10) {
              var_13 = 3;
            }
            else {
              var_13 = *(type_1 *)(var_6 + 0x10);
            }
            if (var_13 < var_14 + 1) {
              wstring::var_15(var_6,var_14,0,(var_2 *)0x0,1);
              var_12 = *(var_5 **)var_6;
              var_7 = (var_2 *)plVar1[2];
              var_8 = (var_2 *)plVar1[3];
            }
            *(var_2 *)(var_12 + var_14 * 4) = var_9;
            var_11 = var_11 + 1;
            *(type_1 *)(var_6 + 8) = var_14 + 1;
            *(type_6 *)(var_12 + var_14 * 4 + 4) = 0;
            if (var_7 < var_8) {
              var_9 = *var_7;
              plVar1[2] = (long)(var_7 + 1);
            }
            else {
              var_9 = (**(type_7 **)(*plVar1 + 0x50))(plVar1);
            }
            if (var_9 != L'\xffffffff') {
              var_7 = (var_2 *)plVar1[2];
              if ((var_2 *)plVar1[3] <= var_7) goto LAB_002a3b83;
              goto LAB_002a3abd;
            }
LAB_002a3c20:
            var_22 = var_19;
            var_23 = (type_3 *)(var_4 + *(long *)(*(long *)var_4 + -0x18));
            goto LAB_002a39a0;
          }
          var_8 = var_16(var_7,var_10,__n);
          var_13 = (long)var_8 - (long)var_7 >> 2;
          if (var_8 == (var_2 *)0x0) {
            var_13 = __n;
          }
          if (0x1fffffffffffffff - var_14 < var_13) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */
            var_17("basic_string::append");
          }
                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */
          wstring::var_18(var_6,var_7,var_13);
          var_11 = var_11 + var_13;
          var_7 = (var_2 *)(plVar1[2] + var_13 * 4);
          plVar1[2] = (long)var_7;
          if (var_7 < (var_2 *)plVar1[3]) {
LAB_002a3abd:
            var_9 = *var_7;
          }
          else {
LAB_002a3b83:
            var_9 = (**(type_7 **)(*plVar1 + 0x48))(plVar1);
          }
          if (0x1ffffffffffffffe < var_11) {
            if (var_9 == L'\xffffffff') goto LAB_002a3c20;
            if (var_10 != var_9) goto LAB_002a3991;
            if ((type_1)plVar1[3] <= (type_1)plVar1[2]) goto LAB_002a3afa;
            plVar1[2] = plVar1[2] + 4;
            if (var_11 != 0xffffffffffffffff) {
              return var_4;
            }
            goto LAB_002a3991;
          }
          if (var_9 == L'\xffffffff') {
            var_23 = (type_3 *)(var_4 + *(long *)(*(long *)var_4 + -0x18));
            var_22 = (-(uint)(var_11 == 0) & 4) + var_19;
            goto LAB_002a39a0;
          }
          var_7 = (var_2 *)plVar1[2];
          var_8 = (var_2 *)plVar1[3];
        } while (var_10 != var_9);
        if (var_7 < var_8) goto LAB_002a3c8e;
LAB_002a3afa:
        (**(type_7 **)(*plVar1 + 0x50))(plVar1);
        if (var_11 != 0xffffffffffffffff) {
          return var_4;
        }
        goto LAB_002a3991;
      }
    }
    else {
                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */
      var_9 = (**(type_7 **)(*plVar1 + 0x48))(plVar1);
      if (var_9 != L'\xffffffff') {
        var_8 = (var_2 *)plVar1[3];
        var_7 = (var_2 *)plVar1[2];
        goto LAB_002a3a00;
      }
      var_23 = (type_3 *)(var_4 + *(long *)(*(long *)var_4 + -0x18));
    }
    var_22 = var_20|var_19;
  }
LAB_002a39a0:
  wios::var_21(var_23,var_22 | *(type_2 *)(var_23 + 0x20));
  return var_4;
}


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

long * MASKED(long *param_1,undefined8 *param_2,wchar_t param_3)

{
  long *plVar1;
  wchar_t wVar2;
  wchar_t *pwVar3;
  wchar_t *pwVar4;
  undefined8 *puVar5;
  size_t __n;
  ulong uVar6;
  uint uVar7;
  long lVar8;
  ulong uVar9;
  char local_39 [9];
  
  FUN_002c5a30(local_39,param_1,1);
  if (local_39[0] == '\0') {
LAB_002a3991:
    uVar7 = 4;
    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;
  }
  else {
    param_2[1] = 0;
    *(undefined4 *)*param_2 = 0;
    lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;
    plVar1 = *(long **)(lVar8 + 0xe8);
    pwVar4 = (wchar_t *)plVar1[2];
    pwVar3 = (wchar_t *)plVar1[3];
    if (pwVar4 < pwVar3) {
      wVar2 = *pwVar4;
      if (wVar2 != L'\xffffffff') {
LAB_002a3a00:
        uVar9 = 0;
        if (param_3 == wVar2) {
          if (pwVar3 <= pwVar4) {
                    /* try { // try from 002a3ca7 to 002a3ca9 has its CatchHandler @ 002a3ccf */
            (**(code **)(*plVar1 + 0x50))(plVar1);
            return param_1;
          }
LAB_002a3c8e:
          plVar1[2] = (long)(pwVar4 + 1);
          return param_1;
        }
        do {
          lVar8 = param_2[1];
          __n = (long)pwVar3 - (long)pwVar4 >> 2;
          if ((long)(0x1fffffffffffffff - uVar9) < (long)__n) {
            __n = 0x1fffffffffffffff - uVar9;
          }
          if ((long)__n < 2) {
            puVar5 = (undefined8 *)*param_2;
            if (puVar5 == param_2 + 2) {
              uVar6 = 3;
            }
            else {
              uVar6 = param_2[2];
            }
            if (uVar6 < lVar8 + 1U) {
              FUN_002a6770(param_2,lVar8,0,0,1);
              puVar5 = (undefined8 *)*param_2;
              pwVar4 = (wchar_t *)plVar1[2];
              pwVar3 = (wchar_t *)plVar1[3];
            }
            *(wchar_t *)((long)puVar5 + lVar8 * 4) = wVar2;
            uVar9 = uVar9 + 1;
            param_2[1] = lVar8 + 1;
            *(undefined4 *)((long)puVar5 + lVar8 * 4 + 4) = 0;
            if (pwVar4 < pwVar3) {
              wVar2 = *pwVar4;
              plVar1[2] = (long)(pwVar4 + 1);
            }
            else {
              wVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);
            }
            if (wVar2 != L'\xffffffff') {
              pwVar4 = (wchar_t *)plVar1[2];
              if ((wchar_t *)plVar1[3] <= pwVar4) goto LAB_002a3b83;
              goto LAB_002a3abd;
            }
LAB_002a3c20:
            uVar7 = 2;
            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;
            goto LAB_002a39a0;
          }
          pwVar3 = wmemchr(pwVar4,param_3,__n);
          uVar6 = (long)pwVar3 - (long)pwVar4 >> 2;
          if (pwVar3 == (wchar_t *)0x0) {
            uVar6 = __n;
          }
          if (0x1fffffffffffffffU - lVar8 < uVar6) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002a3cca to 002a3cce has its CatchHandler @ 002a3cd4 */
            FUN_002e12b0("basic_string::append");
          }
                    /* try { // try from 002a3a9f to 002a3c41 has its CatchHandler @ 002a3cd4 */
          FUN_002a7e20(param_2,pwVar4,uVar6);
          uVar9 = uVar9 + uVar6;
          pwVar4 = (wchar_t *)(plVar1[2] + uVar6 * 4);
          plVar1[2] = (long)pwVar4;
          if (pwVar4 < (wchar_t *)plVar1[3]) {
LAB_002a3abd:
            wVar2 = *pwVar4;
          }
          else {
LAB_002a3b83:
            wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);
          }
          if (0x1ffffffffffffffe < uVar9) {
            if (wVar2 == L'\xffffffff') goto LAB_002a3c20;
            if (param_3 != wVar2) goto LAB_002a3991;
            if ((ulong)plVar1[3] <= (ulong)plVar1[2]) goto LAB_002a3afa;
            plVar1[2] = plVar1[2] + 4;
            if (uVar9 != 0xffffffffffffffff) {
              return param_1;
            }
            goto LAB_002a3991;
          }
          if (wVar2 == L'\xffffffff') {
            lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;
            uVar7 = (-(uint)(uVar9 == 0) & 4) + 2;
            goto LAB_002a39a0;
          }
          pwVar4 = (wchar_t *)plVar1[2];
          pwVar3 = (wchar_t *)plVar1[3];
        } while (param_3 != wVar2);
        if (pwVar4 < pwVar3) goto LAB_002a3c8e;
LAB_002a3afa:
        (**(code **)(*plVar1 + 0x50))(plVar1);
        if (uVar9 != 0xffffffffffffffff) {
          return param_1;
        }
        goto LAB_002a3991;
      }
    }
    else {
                    /* try { // try from 002a3c77 to 002a3c79 has its CatchHandler @ 002a3cd9 */
      wVar2 = (**(code **)(*plVar1 + 0x48))(plVar1);
      if (wVar2 != L'\xffffffff') {
        pwVar3 = (wchar_t *)plVar1[3];
        pwVar4 = (wchar_t *)plVar1[2];
        goto LAB_002a3a00;
      }
      lVar8 = *(long *)(*param_1 + -0x18) + (long)param_1;
    }
    uVar7 = 6;
  }
LAB_002a39a0:
  FUN_002c8f80(lVar8,uVar7 | *(uint *)(lVar8 + 0x20));
  return param_1;
}

