
int sqlite3VdbeMemTranslate(Mem *pMem,u8 desiredEnc)

{
  char cVar1;
  ushort uVar2;
  byte *pbVar3;
  byte bVar4;
  int iVar5;
  uint uVar6;
  byte *p;
  char *pcVar7;
  byte *pbVar8;
  byte *pbVar9;
  char *pcVar10;
  byte *pbVar11;
  
  if ((pMem->enc == '\x01') || (desiredEnc == '\x01')) {
    if (desiredEnc == '\x01') {
      uVar6 = pMem->n & 0xfffffffe;
      pMem->n = uVar6;
      iVar5 = uVar6 * 2 + 1;
    }
    else {
      iVar5 = pMem->n * 2 + 2;
    }
    pbVar3 = (byte *)pMem->z;
    pbVar8 = pbVar3 + pMem->n;
    p = (byte *)sqlite3DbMallocRaw(pMem->db,(long)iVar5);
    if (p == (byte *)0x0) {
      iVar5 = 7;
    }
    else {
      if (pMem->enc == '\x01') {
        pbVar9 = p;
        if (desiredEnc == '\x02') {
          while (pbVar3 < pbVar8) {
            pbVar11 = pbVar3 + 1;
            uVar6 = (uint)*pbVar3;
            if (uVar6 < 0xc0) {
LAB_0015231b:
              *pbVar9 = (byte)uVar6;
              pbVar9[1] = (byte)(uVar6 >> 8);
              pbVar9 = pbVar9 + 2;
              pbVar3 = pbVar11;
            }
            else {
              uVar6 = (uint)""[uVar6 - 0xc0];
              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {
                if (uVar6 < 0x80) {
                  uVar6 = 0xfffd;
                }
                goto LAB_0015231b;
              }
              do {
                pbVar11 = pbVar11 + 1;
                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);
                if (pbVar8 == pbVar11) break;
                bVar4 = *pbVar11;
              } while ((bVar4 & 0xc0) == 0x80);
              if (uVar6 < 0x80) {
                uVar6 = 0xfffd;
                goto LAB_0015231b;
              }
              if ((uVar6 & 0xfffff800) == 0xd800) {
                uVar6 = 0xfffd;
                goto LAB_0015231b;
              }
              if ((uVar6 & 0xfffffffe) == 0xfffe) {
                uVar6 = 0xfffd;
                goto LAB_0015231b;
              }
              if (uVar6 < 0x10000) goto LAB_0015231b;
              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;
              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;
              pbVar9[2] = (byte)uVar6;
              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;
              pbVar9 = pbVar9 + 4;
              pbVar3 = pbVar11;
            }
          }
        }
        else {
          while (pbVar3 < pbVar8) {
            pbVar11 = pbVar3 + 1;
            uVar6 = (uint)*pbVar3;
            if (uVar6 < 0xc0) {
LAB_00152412:
              *pbVar9 = (byte)(uVar6 >> 8);
              pbVar9[1] = (byte)uVar6;
              pbVar9 = pbVar9 + 2;
              pbVar3 = pbVar11;
            }
            else {
              uVar6 = (uint)""[uVar6 - 0xc0];
              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {
                if (uVar6 < 0x80) {
                  uVar6 = 0xfffd;
                }
                goto LAB_00152412;
              }
              do {
                pbVar11 = pbVar11 + 1;
                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);
                if (pbVar8 == pbVar11) break;
                bVar4 = *pbVar11;
              } while ((bVar4 & 0xc0) == 0x80);
              if (uVar6 < 0x80) {
                uVar6 = 0xfffd;
                goto LAB_00152412;
              }
              if ((uVar6 & 0xfffff800) == 0xd800) {
                uVar6 = 0xfffd;
                goto LAB_00152412;
              }
              if ((uVar6 & 0xfffffffe) == 0xfffe) {
                uVar6 = 0xfffd;
                goto LAB_00152412;
              }
              if (uVar6 < 0x10000) goto LAB_00152412;
              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;
              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;
              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;
              pbVar9[3] = (byte)uVar6;
              pbVar9 = pbVar9 + 4;
              pbVar3 = pbVar11;
            }
          }
        }
        pMem->n = (int)pbVar9 - (int)p;
        pbVar11 = pbVar9 + 1;
        *pbVar9 = 0;
      }
      else {
        pbVar11 = p;
        if (pMem->enc == '\x02') {
          while (pbVar3 < pbVar8) {
            pbVar9 = pbVar3 + 2;
            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;
            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {
              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +
                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;
              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;
              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;
              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;
              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;
              pbVar11 = pbVar11 + 4;
              pbVar3 = pbVar3 + 4;
            }
            else {
              bVar4 = (byte)uVar6;
              pbVar3 = pbVar9;
              if (uVar6 < 0x80) {
                *pbVar11 = bVar4;
                pbVar11 = pbVar11 + 1;
              }
              else if (uVar6 < 0x800) {
                *pbVar11 = (char)(uVar6 >> 6) - 0x40;
                pbVar11[1] = (bVar4 & 0x3f) + 0x80;
                pbVar11 = pbVar11 + 2;
              }
              else {
                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;
                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;
                pbVar11[2] = (bVar4 & 0x3f) + 0x80;
                pbVar11 = pbVar11 + 3;
              }
            }
          }
        }
        else {
          while (pbVar3 < pbVar8) {
            pbVar9 = pbVar3 + 2;
            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];
            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {
              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +
                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;
              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;
              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;
              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;
              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;
              pbVar11 = pbVar11 + 4;
              pbVar3 = pbVar3 + 4;
            }
            else {
              bVar4 = (byte)uVar6;
              pbVar3 = pbVar9;
              if (uVar6 < 0x80) {
                *pbVar11 = bVar4;
                pbVar11 = pbVar11 + 1;
              }
              else if (uVar6 < 0x800) {
                *pbVar11 = (char)(uVar6 >> 6) - 0x40;
                pbVar11[1] = (bVar4 & 0x3f) + 0x80;
                pbVar11 = pbVar11 + 2;
              }
              else {
                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;
                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;
                pbVar11[2] = (bVar4 & 0x3f) + 0x80;
                pbVar11 = pbVar11 + 3;
              }
            }
          }
        }
        pMem->n = (int)pbVar11 - (int)p;
      }
      *pbVar11 = 0;
      uVar2 = pMem->flags;
      sqlite3VdbeMemRelease(pMem);
      pMem->flags = uVar2 & 0x801d | 0x202;
      pMem->enc = desiredEnc;
      pMem->z = (char *)p;
      pMem->zMalloc = (char *)p;
      iVar5 = sqlite3DbMallocSize(pMem->db,p);
      pMem->szMalloc = iVar5;
      iVar5 = 0;
    }
  }
  else {
    iVar5 = sqlite3VdbeMemMakeWriteable(pMem);
    if (iVar5 == 0) {
      pcVar7 = pMem->z;
      pcVar10 = pcVar7 + (int)(pMem->n & 0xfffffffe);
      for (; pcVar7 < pcVar10; pcVar7 = pcVar7 + 2) {
        cVar1 = *pcVar7;
        *pcVar7 = pcVar7[1];
        pcVar7[1] = cVar1;
      }
      pMem->enc = desiredEnc;
      iVar5 = 0;
    }
    else {
      iVar5 = 7;
    }
  }
  return iVar5;
}



undefined8 FUN_001520c3(long param_1,char param_2)

{
  undefined1 uVar1;
  ushort uVar2;
  byte *pbVar3;
  byte bVar4;
  undefined4 uVar5;
  uint uVar6;
  byte *pbVar7;
  undefined8 uVar8;
  undefined1 *puVar9;
  byte *pbVar10;
  int iVar11;
  byte *pbVar12;
  undefined1 *puVar13;
  byte *pbVar14;
  
  if ((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')) {
    if (param_2 == '\x01') {
      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;
      *(uint *)(param_1 + 0xc) = uVar6;
      iVar11 = uVar6 * 2 + 1;
    }
    else {
      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;
    }
    pbVar3 = *(byte **)(param_1 + 0x10);
    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);
    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);
    if (pbVar7 == (byte *)0x0) {
      uVar8 = 7;
    }
    else {
      if (*(char *)(param_1 + 10) == '\x01') {
        pbVar12 = pbVar7;
        if (param_2 == '\x02') {
          while (pbVar3 < pbVar10) {
            pbVar14 = pbVar3 + 1;
            uVar6 = (uint)*pbVar3;
            if (uVar6 < 0xc0) {
LAB_0015231b:
              *pbVar12 = (byte)uVar6;
              pbVar12[1] = (byte)(uVar6 >> 8);
              pbVar12 = pbVar12 + 2;
              pbVar3 = pbVar14;
            }
            else {
              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];
              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {
                if (uVar6 < 0x80) {
                  uVar6 = 0xfffd;
                }
                goto LAB_0015231b;
              }
              do {
                pbVar14 = pbVar14 + 1;
                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);
                if (pbVar10 == pbVar14) break;
                bVar4 = *pbVar14;
              } while ((bVar4 & 0xc0) == 0x80);
              if (uVar6 < 0x80) {
                uVar6 = 0xfffd;
                goto LAB_0015231b;
              }
              if ((uVar6 & 0xfffff800) == 0xd800) {
                uVar6 = 0xfffd;
                goto LAB_0015231b;
              }
              if ((uVar6 & 0xfffffffe) == 0xfffe) {
                uVar6 = 0xfffd;
                goto LAB_0015231b;
              }
              if (uVar6 < 0x10000) goto LAB_0015231b;
              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;
              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;
              pbVar12[2] = (byte)uVar6;
              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;
              pbVar12 = pbVar12 + 4;
              pbVar3 = pbVar14;
            }
          }
        }
        else {
          while (pbVar3 < pbVar10) {
            pbVar14 = pbVar3 + 1;
            uVar6 = (uint)*pbVar3;
            if (uVar6 < 0xc0) {
LAB_00152412:
              *pbVar12 = (byte)(uVar6 >> 8);
              pbVar12[1] = (byte)uVar6;
              pbVar12 = pbVar12 + 2;
              pbVar3 = pbVar14;
            }
            else {
              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];
              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {
                if (uVar6 < 0x80) {
                  uVar6 = 0xfffd;
                }
                goto LAB_00152412;
              }
              do {
                pbVar14 = pbVar14 + 1;
                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);
                if (pbVar10 == pbVar14) break;
                bVar4 = *pbVar14;
              } while ((bVar4 & 0xc0) == 0x80);
              if (uVar6 < 0x80) {
                uVar6 = 0xfffd;
                goto LAB_00152412;
              }
              if ((uVar6 & 0xfffff800) == 0xd800) {
                uVar6 = 0xfffd;
                goto LAB_00152412;
              }
              if ((uVar6 & 0xfffffffe) == 0xfffe) {
                uVar6 = 0xfffd;
                goto LAB_00152412;
              }
              if (uVar6 < 0x10000) goto LAB_00152412;
              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;
              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;
              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;
              pbVar12[3] = (byte)uVar6;
              pbVar12 = pbVar12 + 4;
              pbVar3 = pbVar14;
            }
          }
        }
        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;
        pbVar14 = pbVar12 + 1;
        *pbVar12 = 0;
      }
      else {
        pbVar14 = pbVar7;
        if (*(char *)(param_1 + 10) == '\x02') {
          while (pbVar3 < pbVar10) {
            pbVar12 = pbVar3 + 2;
            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;
            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {
              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +
                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;
              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;
              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;
              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;
              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;
              pbVar14 = pbVar14 + 4;
              pbVar3 = pbVar3 + 4;
            }
            else {
              bVar4 = (byte)uVar6;
              pbVar3 = pbVar12;
              if (uVar6 < 0x80) {
                *pbVar14 = bVar4;
                pbVar14 = pbVar14 + 1;
              }
              else if (uVar6 < 0x800) {
                *pbVar14 = (char)(uVar6 >> 6) - 0x40;
                pbVar14[1] = (bVar4 & 0x3f) + 0x80;
                pbVar14 = pbVar14 + 2;
              }
              else {
                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;
                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;
                pbVar14[2] = (bVar4 & 0x3f) + 0x80;
                pbVar14 = pbVar14 + 3;
              }
            }
          }
        }
        else {
          while (pbVar3 < pbVar10) {
            pbVar12 = pbVar3 + 2;
            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];
            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {
              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +
                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;
              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;
              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;
              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;
              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;
              pbVar14 = pbVar14 + 4;
              pbVar3 = pbVar3 + 4;
            }
            else {
              bVar4 = (byte)uVar6;
              pbVar3 = pbVar12;
              if (uVar6 < 0x80) {
                *pbVar14 = bVar4;
                pbVar14 = pbVar14 + 1;
              }
              else if (uVar6 < 0x800) {
                *pbVar14 = (char)(uVar6 >> 6) - 0x40;
                pbVar14[1] = (bVar4 & 0x3f) + 0x80;
                pbVar14 = pbVar14 + 2;
              }
              else {
                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;
                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;
                pbVar14[2] = (bVar4 & 0x3f) + 0x80;
                pbVar14 = pbVar14 + 3;
              }
            }
          }
        }
        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;
      }
      *pbVar14 = 0;
      uVar2 = *(ushort *)(param_1 + 8);
      FUN_001428f4(param_1);
      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;
      *(char *)(param_1 + 10) = param_2;
      *(byte **)(param_1 + 0x10) = pbVar7;
      *(byte **)(param_1 + 0x18) = pbVar7;
      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);
      *(undefined4 *)(param_1 + 0x20) = uVar5;
      uVar8 = 0;
    }
  }
  else {
    uVar8 = FUN_001508b7();
    if ((int)uVar8 == 0) {
      puVar9 = *(undefined1 **)(param_1 + 0x10);
      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);
      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {
        uVar1 = *puVar9;
        *puVar9 = puVar9[1];
        puVar9[1] = uVar1;
      }
      *(char *)(param_1 + 10) = param_2;
    }
    else {
      uVar8 = 7;
    }
  }
  return uVar8;
}


PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
MOV R12,RDI
MOV R14D,ESI
CMP byte ptr [RDI + 0xa],0x1
JZ 0x001520e1
CMP SIL,0x1
JNZ 0x00152197
CMP R14B,0x1
JZ 0x001521d9
MOV EAX,dword ptr [R12 + 0xc]
LEA ESI,[RAX + RAX*0x1 + 0x2]
MOV RBX,qword ptr [R12 + 0x10]
MOVSXD RBP,dword ptr [R12 + 0xc]
ADD RBP,RBX
MOVSXD RSI,ESI
MOV RDI,qword ptr [R12 + 0x28]
CALL 0x0012aaff
MOV R13,RAX
TEST RAX,RAX
JZ 0x00152650
MOVZX EAX,byte ptr [R12 + 0xa]
CMP AL,0x1
JZ 0x001521ef
CMP AL,0x2
JZ 0x00152440
MOV RDX,R13
CMP RBX,RBP
JC 0x00152560
MOV RAX,RDX
SUB RAX,R13
MOV dword ptr [R12 + 0xc],EAX
MOV byte ptr [RDX],0x0
MOVZX EBX,word ptr [R12 + 0x8]
MOV RDI,R12
CALL 0x001428f4
AND BX,0x801d
OR BX,0x202
MOV word ptr [R12 + 0x8],BX
MOV byte ptr [R12 + 0xa],R14B
MOV qword ptr [R12 + 0x10],R13
MOV qword ptr [R12 + 0x18],R13
MOV RDI,qword ptr [R12 + 0x28]
MOV RSI,R13
CALL 0x0012aa4e
MOV dword ptr [R12 + 0x20],EAX
MOV EAX,0x0
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
CALL 0x001508b7
TEST EAX,EAX
JNZ 0x00152646
MOV RDX,qword ptr [R12 + 0x10]
MOV EDI,dword ptr [R12 + 0xc]
AND EDI,0xfffffffe
MOVSXD RDI,EDI
ADD RDI,RDX
CMP RDX,RDI
JNC 0x001521d2
MOVZX ECX,byte ptr [RDX]
MOVZX ESI,byte ptr [RDX + 0x1]
MOV byte ptr [RDX],SIL
ADD RDX,0x2
MOV byte ptr [RDX + -0x1],CL
CMP RDI,RDX
JA 0x001521bc
MOV byte ptr [R12 + 0xa],R14B
JMP 0x0015218e
MOV EAX,dword ptr [R12 + 0xc]
AND EAX,0xfffffffe
MOV dword ptr [R12 + 0xc],EAX
LEA ESI,[RAX + RAX*0x1 + 0x1]
JMP 0x001520f4
CMP R14B,0x2
JZ 0x00152225
MOV RSI,R13
LEA R8,[0x200520]
MOV R9D,0xfffd
CMP RBX,RBP
JC 0x001523ff
MOV RAX,RSI
SUB RAX,R13
MOV dword ptr [R12 + 0xc],EAX
LEA RDX,[RSI + 0x1]
MOV byte ptr [RSI],0x0
JMP 0x00152147
CMP RBX,RBP
JNC 0x00152438
MOV RSI,R13
LEA R8,[0x200520]
MOV R9D,0xfffd
JMP 0x00152308
LEA EAX,[RDX + -0xc0]
MOVZX EDX,byte ptr [R8 + RAX*0x1]
CMP RBP,RCX
JZ 0x0015265a
MOVZX EAX,byte ptr [RBX + 0x1]
MOV EDI,EAX
AND EDI,0xffffffc0
CMP DIL,0x80
JNZ 0x0015265a
SHL EDX,0x6
ADD RCX,0x1
AND EAX,0x3f
ADD EDX,EAX
CMP RBP,RCX
JZ 0x00152289
MOVZX EAX,byte ptr [RCX]
MOV EDI,EAX
AND EDI,0xffffffc0
CMP DIL,0x80
JZ 0x0015226a
CMP EDX,0x7f
JBE 0x0015232c
MOV EAX,EDX
AND EAX,0xfffff800
CMP EAX,0xd800
JZ 0x00152333
MOV EAX,EDX
AND EAX,0xfffffffe
CMP EAX,0xfffe
JZ 0x0015233a
CMP EDX,0xffff
JBE 0x0015231b
LEA EAX,[RDX + -0x10000]
MOV EDI,EDX
SHR EDI,0xa
AND EDI,0x3f
MOV R10D,EAX
SHR R10D,0xa
AND R10D,0xffffffc0
OR EDI,R10D
MOV byte ptr [RSI],DIL
SHR EAX,0x12
AND EAX,0x3
SUB EAX,0x28
MOV byte ptr [RSI + 0x1],AL
MOV byte ptr [RSI + 0x2],DL
MOV EAX,EDX
SHR EAX,0x8
AND EAX,0x3
SUB EAX,0x24
MOV byte ptr [RSI + 0x3],AL
LEA RSI,[RSI + 0x4]
MOV RBX,RCX
CMP RBP,RBX
JBE 0x0015220e
LEA RCX,[RBX + 0x1]
MOVZX EDX,byte ptr [RBX]
CMP EDX,0xbf
JA 0x00152243
MOV byte ptr [RSI],DL
MOVZX EAX,DH
MOV byte ptr [RSI + 0x1],AL
LEA RSI,[RSI + 0x2]
MOV RBX,RCX
JMP 0x001522ff
MOV EDX,0xfffd
JMP 0x0015231b
MOV EDX,0xfffd
JMP 0x0015231b
MOV EDX,0xfffd
JMP 0x0015231b
LEA EAX,[RDX + -0xc0]
MOVZX EDX,byte ptr [R8 + RAX*0x1]
CMP RBP,RDI
JZ 0x00152666
MOVZX EAX,byte ptr [RBX + 0x1]
MOV ECX,EAX
AND ECX,0xffffffc0
CMP CL,0x80
JNZ 0x00152666
SHL EDX,0x6
ADD RDI,0x1
AND EAX,0x3f
ADD EDX,EAX
CMP RBP,RDI
JZ 0x00152385
MOVZX EAX,byte ptr [RDI]
MOV ECX,EAX
AND ECX,0xffffffc0
CMP CL,0x80
JZ 0x00152367
CMP EDX,0x7f
JBE 0x00152423
MOV EAX,EDX
AND EAX,0xfffff800
CMP EAX,0xd800
JZ 0x0015242a
MOV EAX,EDX
AND EAX,0xfffffffe
CMP EAX,0xfffe
JZ 0x00152431
CMP EDX,0xffff
JBE 0x00152412
LEA EAX,[RDX + -0x10000]
MOV ECX,EAX
SHR ECX,0x12
AND ECX,0x3
SUB ECX,0x28
MOV byte ptr [RSI],CL
MOV ECX,EDX
SHR ECX,0xa
AND ECX,0x3f
SHR EAX,0xa
AND EAX,0xffffffc0
OR EAX,ECX
MOV byte ptr [RSI + 0x1],AL
MOV EAX,EDX
SHR EAX,0x8
AND EAX,0x3
SUB EAX,0x24
MOV byte ptr [RSI + 0x2],AL
MOV byte ptr [RSI + 0x3],DL
LEA RSI,[RSI + 0x4]
MOV RBX,RDI
CMP RBP,RBX
JBE 0x0015220e
LEA RDI,[RBX + 0x1]
MOVZX EDX,byte ptr [RBX]
CMP EDX,0xbf
JA 0x00152341
MOVZX EAX,DH
MOV byte ptr [RSI],AL
MOV byte ptr [RSI + 0x1],DL
LEA RSI,[RSI + 0x2]
MOV RBX,RDI
JMP 0x001523f6
MOV EDX,0xfffd
JMP 0x00152412
MOV EDX,0xfffd
JMP 0x00152412
MOV EDX,0xfffd
JMP 0x00152412
MOV RSI,R13
JMP 0x0015220e
CMP RBX,RBP
JNC 0x0015263e
MOV RDX,R13
JMP 0x00152469
CMP EAX,0x7f
JA 0x001524f2
MOV byte ptr [RDX],AL
MOV RBX,RSI
LEA RDX,[RDX + 0x1]
CMP RBX,RBP
JNC 0x0015213c
MOVZX ECX,byte ptr [RBX]
LEA RSI,[RBX + 0x2]
MOVZX EAX,byte ptr [RBX + 0x1]
SHL EAX,0x8
ADD EAX,ECX
LEA ECX,[RAX + -0xd800]
CMP ECX,0x7ff
JA 0x0015244e
CMP RBP,RSI
JBE 0x0015244e
MOVZX ESI,byte ptr [RBX + 0x2]
MOVZX ECX,byte ptr [RBX + 0x3]
SHL ECX,0x8
ADD ECX,ESI
AND ECX,0x3ff
MOV ESI,EAX
SHL ESI,0xa
MOVZX ESI,SI
ADD ECX,ESI
AND EAX,0x3c0
ADD EAX,0x40
SHL EAX,0xa
ADD EAX,ECX
MOV ECX,EAX
SHR ECX,0x12
SUB ECX,0x10
MOV byte ptr [RDX],CL
MOV ECX,EAX
SHR ECX,0xc
AND ECX,0x3f
ADD ECX,-0x80
MOV byte ptr [RDX + 0x1],CL
MOV ECX,EAX
SHR ECX,0x6
AND ECX,0x3f
ADD ECX,-0x80
MOV byte ptr [RDX + 0x2],CL
AND EAX,0x3f
ADD EAX,-0x80
MOV byte ptr [RDX + 0x3],AL
LEA RBX,[RBX + 0x4]
LEA RDX,[RDX + 0x4]
JMP 0x00152460
CMP EAX,0x7ff
JA 0x00152518
MOV ECX,EAX
SHR ECX,0x6
SUB ECX,0x40
MOV byte ptr [RDX],CL
AND EAX,0x3f
ADD EAX,-0x80
MOV byte ptr [RDX + 0x1],AL
MOV RBX,RSI
LEA RDX,[RDX + 0x2]
JMP 0x00152460
MOV ECX,EAX
SHR ECX,0xc
SUB ECX,0x20
MOV byte ptr [RDX],CL
MOV ECX,EAX
SHR ECX,0x6
AND ECX,0x3f
ADD ECX,-0x80
MOV byte ptr [RDX + 0x1],CL
AND EAX,0x3f
ADD EAX,-0x80
MOV byte ptr [RDX + 0x2],AL
MOV RBX,RSI
LEA RDX,[RDX + 0x3]
JMP 0x00152460
CMP EAX,0x7f
JA 0x001525eb
MOV byte ptr [RDX],AL
MOV RBX,RSI
LEA RDX,[RDX + 0x1]
CMP RBX,RBP
JNC 0x0015213c
MOVZX EAX,byte ptr [RBX]
SHL EAX,0x8
LEA RSI,[RBX + 0x2]
MOVZX ECX,byte ptr [RBX + 0x1]
ADD EAX,ECX
LEA ECX,[RAX + -0xd800]
CMP ECX,0x7ff
JA 0x00152545
CMP RBP,RSI
JBE 0x00152545
MOVZX ECX,byte ptr [RBX + 0x2]
MOV ESI,ECX
SHL ESI,0x8
MOVZX ECX,byte ptr [RBX + 0x3]
ADD ECX,ESI
AND ECX,0x3ff
MOV ESI,EAX
SHL ESI,0xa
MOVZX ESI,SI
ADD ECX,ESI
AND EAX,0x3c0
ADD EAX,0x40
SHL EAX,0xa
ADD EAX,ECX
MOV ECX,EAX
SHR ECX,0x12
SUB ECX,0x10
MOV byte ptr [RDX],CL
MOV ECX,EAX
SHR ECX,0xc
AND ECX,0x3f
ADD ECX,-0x80
MOV byte ptr [RDX + 0x1],CL
MOV ECX,EAX
SHR ECX,0x6
AND ECX,0x3f
ADD ECX,-0x80
MOV byte ptr [RDX + 0x2],CL
AND EAX,0x3f
ADD EAX,-0x80
MOV byte ptr [RDX + 0x3],AL
LEA RBX,[RBX + 0x4]
LEA RDX,[RDX + 0x4]
JMP 0x00152557
CMP EAX,0x7ff
JA 0x00152611
MOV ECX,EAX
SHR ECX,0x6
SUB ECX,0x40
MOV byte ptr [RDX],CL
AND EAX,0x3f
ADD EAX,-0x80
MOV byte ptr [RDX + 0x1],AL
MOV RBX,RSI
LEA RDX,[RDX + 0x2]
JMP 0x00152557
MOV ECX,EAX
SHR ECX,0xc
SUB ECX,0x20
MOV byte ptr [RDX],CL
MOV ECX,EAX
SHR ECX,0x6
AND ECX,0x3f
ADD ECX,-0x80
MOV byte ptr [RDX + 0x1],CL
AND EAX,0x3f
ADD EAX,-0x80
MOV byte ptr [RDX + 0x2],AL
MOV RBX,RSI
LEA RDX,[RDX + 0x3]
JMP 0x00152557
MOV RDX,R13
JMP 0x0015213c
MOV EAX,0x7
JMP 0x0015218e
MOV EAX,0x7
JMP 0x0015218e
CMP EDX,0x7f
CMOVBE EDX,R9D
JMP 0x0015231b
CMP EDX,0x7f
CMOVBE EDX,R9D
JMP 0x00152412
(translation_unit "undefined8 FUN_001520c3(long param_1,char param_2)\n\n{\n  undefined1 uVar1;\n  ushort uVar2;\n  byte *pbVar3;\n  byte bVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  byte *pbVar7;\n  undefined8 uVar8;\n  undefined1 *puVar9;\n  byte *pbVar10;\n  int iVar11;\n  byte *pbVar12;\n  undefined1 *puVar13;\n  byte *pbVar14;\n  \n  if ((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')) {\n    if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }\n    pbVar3 = *(byte **)(param_1 + 0x10);\n    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);\n    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);\n    if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }\n  }\n  else {\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }\n  return uVar8;\n}\n\n" (function_definition "undefined8 FUN_001520c3(long param_1,char param_2)\n\n{\n  undefined1 uVar1;\n  ushort uVar2;\n  byte *pbVar3;\n  byte bVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  byte *pbVar7;\n  undefined8 uVar8;\n  undefined1 *puVar9;\n  byte *pbVar10;\n  int iVar11;\n  byte *pbVar12;\n  undefined1 *puVar13;\n  byte *pbVar14;\n  \n  if ((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')) {\n    if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }\n    pbVar3 = *(byte **)(param_1 + 0x10);\n    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);\n    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);\n    if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }\n  }\n  else {\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }\n  return uVar8;\n}" type_identifier (function_declarator "FUN_001520c3(long param_1,char param_2)" identifier (parameter_list "(long param_1,char param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined1 uVar1;\n  ushort uVar2;\n  byte *pbVar3;\n  byte bVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  byte *pbVar7;\n  undefined8 uVar8;\n  undefined1 *puVar9;\n  byte *pbVar10;\n  int iVar11;\n  byte *pbVar12;\n  undefined1 *puVar13;\n  byte *pbVar14;\n  \n  if ((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')) {\n    if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }\n    pbVar3 = *(byte **)(param_1 + 0x10);\n    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);\n    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);\n    if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }\n  }\n  else {\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }\n  return uVar8;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "byte *pbVar10;" type_identifier (pointer_declarator "*pbVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "byte *pbVar12;" type_identifier (pointer_declarator "*pbVar12" * identifier) ;) (declaration "undefined1 *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "byte *pbVar14;" type_identifier (pointer_declarator "*pbVar14" * identifier) ;) (if_statement "if ((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')) {\n    if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }\n    pbVar3 = *(byte **)(param_1 + 0x10);\n    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);\n    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);\n    if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }\n  }\n  else {\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }" if (parenthesized_expression "((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01'))" ( (binary_expression "(*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')" (parenthesized_expression "(*(char *)(param_1 + 10) == '\x01')" ( (binary_expression "*(char *)(param_1 + 10) == '\x01'" (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) || (parenthesized_expression "(param_2 == '\x01')" ( (binary_expression "param_2 == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) ))) )) (compound_statement "{\n    if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }\n    pbVar3 = *(byte **)(param_1 + 0x10);\n    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);\n    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);\n    if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }\n  }" { (if_statement "if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }" if (parenthesized_expression "(param_2 == '\x01')" ( (binary_expression "param_2 == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }" { (expression_statement "uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;" (assignment_expression "uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe" identifier = (binary_expression "*(uint *)(param_1 + 0xc) & 0xfffffffe" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0xc) = uVar6;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar6" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar11 = uVar6 * 2 + 1;" (assignment_expression "iVar11 = uVar6 * 2 + 1" identifier = (binary_expression "uVar6 * 2 + 1" (binary_expression "uVar6 * 2" identifier * number_literal) + number_literal)) ;) }) (else_clause "else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }" else (compound_statement "{\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }" { (expression_statement "iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;" (assignment_expression "iVar11 = *(int *)(param_1 + 0xc) * 2 + 2" identifier = (binary_expression "*(int *)(param_1 + 0xc) * 2 + 2" (binary_expression "*(int *)(param_1 + 0xc) * 2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) * number_literal) + number_literal)) ;) }))) (expression_statement "pbVar3 = *(byte **)(param_1 + 0x10);" (assignment_expression "pbVar3 = *(byte **)(param_1 + 0x10)" identifier = (pointer_expression "*(byte **)(param_1 + 0x10)" * (cast_expression "(byte **)(param_1 + 0x10)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);" (assignment_expression "pbVar10 = pbVar3 + *(int *)(param_1 + 0xc)" identifier = (binary_expression "pbVar3 + *(int *)(param_1 + 0xc)" identifier + (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))))) ;) (expression_statement "pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);" (assignment_expression "pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11)" identifier = (cast_expression "(byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x28),(long)iVar11)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , (cast_expression "(long)iVar11" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))))) ;) (if_statement "if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }" if (parenthesized_expression "(pbVar7 == (byte *)0x0)" ( (binary_expression "pbVar7 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar8 = 7;\n    }" { (expression_statement "uVar8 = 7;" (assignment_expression "uVar8 = 7" identifier = number_literal) ;) }) (else_clause "else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }" else (compound_statement "{\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }" { (if_statement "if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }" if (parenthesized_expression "(*(char *)(param_1 + 10) == '\x01')" ( (binary_expression "*(char *)(param_1 + 10) == '\x01'" (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }" { (expression_statement "pbVar12 = pbVar7;" (assignment_expression "pbVar12 = pbVar7" identifier = identifier) ;) (if_statement "if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }" if (parenthesized_expression "(param_2 == '\x02')" ( (binary_expression "param_2 == '\x02'" identifier == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }" { (while_statement "while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }" while (parenthesized_expression "(pbVar3 < pbVar10)" ( (binary_expression "pbVar3 < pbVar10" identifier < identifier) )) (compound_statement "{\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }" { (expression_statement "pbVar14 = pbVar3 + 1;" (assignment_expression "pbVar14 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" if (parenthesized_expression "(uVar6 < 0xc0)" ( (binary_expression "uVar6 < 0xc0" identifier < number_literal) )) (compound_statement "{\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }" { (labeled_statement "LAB_0015231b:\n              *pbVar12 = (byte)uVar6;" statement_identifier : (expression_statement "*pbVar12 = (byte)uVar6;" (assignment_expression "*pbVar12 = (byte)uVar6" (pointer_expression "*pbVar12" * identifier) = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;)) (expression_statement "pbVar12[1] = (byte)(uVar6 >> 8);" (assignment_expression "pbVar12[1] = (byte)(uVar6 >> 8)" (subscript_expression "pbVar12[1]" identifier [ number_literal ]) = (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 8)" ( (binary_expression "uVar6 >> 8" identifier >> number_literal) )))) ;) (expression_statement "pbVar12 = pbVar12 + 2;" (assignment_expression "pbVar12 = pbVar12 + 2" identifier = (binary_expression "pbVar12 + 2" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar14;" (assignment_expression "pbVar3 = pbVar14" identifier = identifier) ;) }) (else_clause "else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" else (compound_statement "{\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" { (expression_statement "uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];" (assignment_expression "uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0]" identifier = (subscript_expression "(uint)(byte)(&DAT_00200520)[uVar6 - 0xc0]" (call_expression "(uint)(byte)(&DAT_00200520)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(&DAT_00200520)" ( (pointer_expression "&DAT_00200520" & identifier) ))) [ (binary_expression "uVar6 - 0xc0" identifier - number_literal) ])) ;) (if_statement "if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }" if (parenthesized_expression "((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80))" ( (binary_expression "(pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" (parenthesized_expression "(pbVar10 == pbVar14)" ( (binary_expression "pbVar10 == pbVar14" identifier == identifier) )) || (parenthesized_expression "(bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" ( (comma_expression "bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80" (assignment_expression "bVar4 = pbVar3[1]" identifier = (subscript_expression "pbVar3[1]" identifier [ number_literal ])) , (binary_expression "(bVar4 & 0xc0) != 0x80" (parenthesized_expression "(bVar4 & 0xc0)" ( (binary_expression "bVar4 & 0xc0" identifier & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }" { (if_statement "if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                  uVar6 = 0xfffd;\n                }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) })) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;) })) (do_statement "do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);" do (compound_statement "{\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              }" { (expression_statement "pbVar14 = pbVar14 + 1;" (assignment_expression "pbVar14 = pbVar14 + 1" identifier = (binary_expression "pbVar14 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);" (assignment_expression "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f)" identifier = (binary_expression "uVar6 * 0x40 + (bVar4 & 0x3f)" (binary_expression "uVar6 * 0x40" identifier * number_literal) + (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )))) ;) (if_statement "if (pbVar10 == pbVar14) break;" if (parenthesized_expression "(pbVar10 == pbVar14)" ( (binary_expression "pbVar10 == pbVar14" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "bVar4 = *pbVar14;" (assignment_expression "bVar4 = *pbVar14" identifier = (pointer_expression "*pbVar14" * identifier)) ;) }) while (parenthesized_expression "((bVar4 & 0xc0) == 0x80)" ( (binary_expression "(bVar4 & 0xc0) == 0x80" (parenthesized_expression "(bVar4 & 0xc0)" ( (binary_expression "bVar4 & 0xc0" identifier & number_literal) )) == number_literal) )) ;) (if_statement "if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;) })) (if_statement "if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" if (parenthesized_expression "((uVar6 & 0xfffff800) == 0xd800)" ( (binary_expression "(uVar6 & 0xfffff800) == 0xd800" (parenthesized_expression "(uVar6 & 0xfffff800)" ( (binary_expression "uVar6 & 0xfffff800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;) })) (if_statement "if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" if (parenthesized_expression "((uVar6 & 0xfffffffe) == 0xfffe)" ( (binary_expression "(uVar6 & 0xfffffffe) == 0xfffe" (parenthesized_expression "(uVar6 & 0xfffffffe)" ( (binary_expression "uVar6 & 0xfffffffe" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;) })) (if_statement "if (uVar6 < 0x10000) goto LAB_0015231b;" if (parenthesized_expression "(uVar6 < 0x10000)" ( (binary_expression "uVar6 < 0x10000" identifier < number_literal) )) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;)) (expression_statement "*pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;" (assignment_expression "*pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0" (pointer_expression "*pbVar12" * identifier) = (binary_expression "(byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0" (binary_expression "(byte)(uVar6 >> 10) & 0x3f" (call_expression "(byte)(uVar6 >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 10)" ( (binary_expression "uVar6 >> 10" identifier >> number_literal) ))) & number_literal) | (binary_expression "(byte)(uVar6 - 0x10000 >> 10) & 0xc0" (call_expression "(byte)(uVar6 - 0x10000 >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 - 0x10000 >> 10)" ( (binary_expression "uVar6 - 0x10000 >> 10" (binary_expression "uVar6 - 0x10000" identifier - number_literal) >> number_literal) ))) & number_literal))) ;) (expression_statement "pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;" (assignment_expression "pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (subscript_expression "pbVar12[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (parenthesized_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3)" ( (binary_expression "(byte)(uVar6 - 0x10000 >> 0x12) & 3" (call_expression "(byte)(uVar6 - 0x10000 >> 0x12)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 - 0x10000 >> 0x12)" ( (binary_expression "uVar6 - 0x10000 >> 0x12" (binary_expression "uVar6 - 0x10000" identifier - number_literal) >> number_literal) ))) & number_literal) )) - number_literal)) ;) (expression_statement "pbVar12[2] = (byte)uVar6;" (assignment_expression "pbVar12[2] = (byte)uVar6" (subscript_expression "pbVar12[2]" identifier [ number_literal ]) = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;" (assignment_expression "pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24" (subscript_expression "pbVar12[3]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 8) & 3) - 0x24" (parenthesized_expression "((byte)(uVar6 >> 8) & 3)" ( (binary_expression "(byte)(uVar6 >> 8) & 3" (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 8)" ( (binary_expression "uVar6 >> 8" identifier >> number_literal) ))) & number_literal) )) - number_literal)) ;) (expression_statement "pbVar12 = pbVar12 + 4;" (assignment_expression "pbVar12 = pbVar12 + 4" identifier = (binary_expression "pbVar12 + 4" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar14;" (assignment_expression "pbVar3 = pbVar14" identifier = identifier) ;) }))) })) }) (else_clause "else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }" else (compound_statement "{\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }" { (while_statement "while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }" while (parenthesized_expression "(pbVar3 < pbVar10)" ( (binary_expression "pbVar3 < pbVar10" identifier < identifier) )) (compound_statement "{\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }" { (expression_statement "pbVar14 = pbVar3 + 1;" (assignment_expression "pbVar14 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" if (parenthesized_expression "(uVar6 < 0xc0)" ( (binary_expression "uVar6 < 0xc0" identifier < number_literal) )) (compound_statement "{\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }" { (labeled_statement "LAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);" statement_identifier : (expression_statement "*pbVar12 = (byte)(uVar6 >> 8);" (assignment_expression "*pbVar12 = (byte)(uVar6 >> 8)" (pointer_expression "*pbVar12" * identifier) = (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 8)" ( (binary_expression "uVar6 >> 8" identifier >> number_literal) )))) ;)) (expression_statement "pbVar12[1] = (byte)uVar6;" (assignment_expression "pbVar12[1] = (byte)uVar6" (subscript_expression "pbVar12[1]" identifier [ number_literal ]) = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar12 = pbVar12 + 2;" (assignment_expression "pbVar12 = pbVar12 + 2" identifier = (binary_expression "pbVar12 + 2" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar14;" (assignment_expression "pbVar3 = pbVar14" identifier = identifier) ;) }) (else_clause "else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" else (compound_statement "{\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" { (expression_statement "uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];" (assignment_expression "uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0]" identifier = (subscript_expression "(uint)(byte)(&DAT_00200520)[uVar6 - 0xc0]" (call_expression "(uint)(byte)(&DAT_00200520)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(&DAT_00200520)" ( (pointer_expression "&DAT_00200520" & identifier) ))) [ (binary_expression "uVar6 - 0xc0" identifier - number_literal) ])) ;) (if_statement "if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }" if (parenthesized_expression "((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80))" ( (binary_expression "(pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" (parenthesized_expression "(pbVar10 == pbVar14)" ( (binary_expression "pbVar10 == pbVar14" identifier == identifier) )) || (parenthesized_expression "(bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" ( (comma_expression "bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80" (assignment_expression "bVar4 = pbVar3[1]" identifier = (subscript_expression "pbVar3[1]" identifier [ number_literal ])) , (binary_expression "(bVar4 & 0xc0) != 0x80" (parenthesized_expression "(bVar4 & 0xc0)" ( (binary_expression "bVar4 & 0xc0" identifier & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }" { (if_statement "if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                  uVar6 = 0xfffd;\n                }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) })) (goto_statement "goto LAB_00152412;" goto statement_identifier ;) })) (do_statement "do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);" do (compound_statement "{\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              }" { (expression_statement "pbVar14 = pbVar14 + 1;" (assignment_expression "pbVar14 = pbVar14 + 1" identifier = (binary_expression "pbVar14 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);" (assignment_expression "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f)" identifier = (binary_expression "uVar6 * 0x40 + (bVar4 & 0x3f)" (binary_expression "uVar6 * 0x40" identifier * number_literal) + (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )))) ;) (if_statement "if (pbVar10 == pbVar14) break;" if (parenthesized_expression "(pbVar10 == pbVar14)" ( (binary_expression "pbVar10 == pbVar14" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "bVar4 = *pbVar14;" (assignment_expression "bVar4 = *pbVar14" identifier = (pointer_expression "*pbVar14" * identifier)) ;) }) while (parenthesized_expression "((bVar4 & 0xc0) == 0x80)" ( (binary_expression "(bVar4 & 0xc0) == 0x80" (parenthesized_expression "(bVar4 & 0xc0)" ( (binary_expression "bVar4 & 0xc0" identifier & number_literal) )) == number_literal) )) ;) (if_statement "if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_00152412;" goto statement_identifier ;) })) (if_statement "if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" if (parenthesized_expression "((uVar6 & 0xfffff800) == 0xd800)" ( (binary_expression "(uVar6 & 0xfffff800) == 0xd800" (parenthesized_expression "(uVar6 & 0xfffff800)" ( (binary_expression "uVar6 & 0xfffff800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_00152412;" goto statement_identifier ;) })) (if_statement "if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" if (parenthesized_expression "((uVar6 & 0xfffffffe) == 0xfffe)" ( (binary_expression "(uVar6 & 0xfffffffe) == 0xfffe" (parenthesized_expression "(uVar6 & 0xfffffffe)" ( (binary_expression "uVar6 & 0xfffffffe" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_00152412;" goto statement_identifier ;) })) (if_statement "if (uVar6 < 0x10000) goto LAB_00152412;" if (parenthesized_expression "(uVar6 < 0x10000)" ( (binary_expression "uVar6 < 0x10000" identifier < number_literal) )) (goto_statement "goto LAB_00152412;" goto statement_identifier ;)) (expression_statement "*pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;" (assignment_expression "*pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (pointer_expression "*pbVar12" * identifier) = (binary_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (parenthesized_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3)" ( (binary_expression "(byte)(uVar6 - 0x10000 >> 0x12) & 3" (call_expression "(byte)(uVar6 - 0x10000 >> 0x12)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 - 0x10000 >> 0x12)" ( (binary_expression "uVar6 - 0x10000 >> 0x12" (binary_expression "uVar6 - 0x10000" identifier - number_literal) >> number_literal) ))) & number_literal) )) - number_literal)) ;) (expression_statement "pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;" (assignment_expression "pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f" (subscript_expression "pbVar12[1]" identifier [ number_literal ]) = (binary_expression "(byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f" (binary_expression "(byte)(uVar6 - 0x10000 >> 10) & 0xc0" (call_expression "(byte)(uVar6 - 0x10000 >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 - 0x10000 >> 10)" ( (binary_expression "uVar6 - 0x10000 >> 10" (binary_expression "uVar6 - 0x10000" identifier - number_literal) >> number_literal) ))) & number_literal) | (binary_expression "(byte)(uVar6 >> 10) & 0x3f" (call_expression "(byte)(uVar6 >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 10)" ( (binary_expression "uVar6 >> 10" identifier >> number_literal) ))) & number_literal))) ;) (expression_statement "pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;" (assignment_expression "pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24" (subscript_expression "pbVar12[2]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 8) & 3) - 0x24" (parenthesized_expression "((byte)(uVar6 >> 8) & 3)" ( (binary_expression "(byte)(uVar6 >> 8) & 3" (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 8)" ( (binary_expression "uVar6 >> 8" identifier >> number_literal) ))) & number_literal) )) - number_literal)) ;) (expression_statement "pbVar12[3] = (byte)uVar6;" (assignment_expression "pbVar12[3] = (byte)uVar6" (subscript_expression "pbVar12[3]" identifier [ number_literal ]) = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar12 = pbVar12 + 4;" (assignment_expression "pbVar12 = pbVar12 + 4" identifier = (binary_expression "pbVar12 + 4" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar14;" (assignment_expression "pbVar3 = pbVar14" identifier = identifier) ;) }))) })) }))) (expression_statement "*(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;" (assignment_expression "*(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "(int)pbVar12 - (int)pbVar7" (cast_expression "(int)pbVar12" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar14 = pbVar12 + 1;" (assignment_expression "pbVar14 = pbVar12 + 1" identifier = (binary_expression "pbVar12 + 1" identifier + number_literal)) ;) (expression_statement "*pbVar12 = 0;" (assignment_expression "*pbVar12 = 0" (pointer_expression "*pbVar12" * identifier) = number_literal) ;) }) (else_clause "else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }" else (compound_statement "{\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }" { (expression_statement "pbVar14 = pbVar7;" (assignment_expression "pbVar14 = pbVar7" identifier = identifier) ;) (if_statement "if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }" if (parenthesized_expression "(*(char *)(param_1 + 10) == '\x02')" ( (binary_expression "*(char *)(param_1 + 10) == '\x02'" (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }" { (while_statement "while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }" while (parenthesized_expression "(pbVar3 < pbVar10)" ( (binary_expression "pbVar3 < pbVar10" identifier < identifier) )) (compound_statement "{\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }" { (expression_statement "pbVar12 = pbVar3 + 2;" (assignment_expression "pbVar12 = pbVar3 + 2" identifier = (binary_expression "pbVar3 + 2" identifier + number_literal)) ;) (expression_statement "uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3" identifier = (binary_expression "(uint)pbVar3[1] * 0x100 + (uint)*pbVar3" (binary_expression "(uint)pbVar3[1] * 0x100" (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])) * number_literal) + (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier))) ;) (if_statement "if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" if (parenthesized_expression "((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10))" ( (binary_expression "(uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)" (parenthesized_expression "(uVar6 - 0xd800 < 0x800)" ( (binary_expression "uVar6 - 0xd800 < 0x800" (binary_expression "uVar6 - 0xd800" identifier - number_literal) < number_literal) )) && (parenthesized_expression "(pbVar12 < pbVar10)" ( (binary_expression "pbVar12 < pbVar10" identifier < identifier) ))) )) (compound_statement "{\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }" { (expression_statement "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;" (assignment_expression "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400" identifier = (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff)" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400" (parenthesized_expression "((uVar6 & 0x3c0) + 0x40)" ( (binary_expression "(uVar6 & 0x3c0) + 0x40" (parenthesized_expression "(uVar6 & 0x3c0)" ( (binary_expression "uVar6 & 0x3c0" identifier & number_literal) )) + number_literal) )) * number_literal) + (parenthesized_expression "((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff)" ( (binary_expression "(uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff" (binary_expression "(uint)pbVar3[3] * 0x100 + (uint)pbVar3[2]" (binary_expression "(uint)pbVar3[3] * 0x100" (cast_expression "(uint)pbVar3[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[3]" identifier [ number_literal ])) * number_literal) + (cast_expression "(uint)pbVar3[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[2]" identifier [ number_literal ]))) & number_literal) ))) + (binary_expression "(uVar6 & 0x3f) * 0x400" (parenthesized_expression "(uVar6 & 0x3f)" ( (binary_expression "uVar6 & 0x3f" identifier & number_literal) )) * number_literal))) ;) (expression_statement "*pbVar14 = (char)(uVar6 >> 0x12) - 0x10;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 0x12) - 0x10" (pointer_expression "*pbVar14" * identifier) = (binary_expression "(char)(uVar6 >> 0x12) - 0x10" (cast_expression "(char)(uVar6 >> 0x12)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 0x12)" ( (binary_expression "uVar6 >> 0x12" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 0xc) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 0xc) & 0x3f" (call_expression "(byte)(uVar6 >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 0xc)" ( (binary_expression "uVar6 >> 0xc" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar14[2]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;" (assignment_expression "pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80" (subscript_expression "pbVar14[3]" identifier [ number_literal ]) = (binary_expression "((byte)uVar6 & 0x3f) + 0x80" (parenthesized_expression "((byte)uVar6 & 0x3f)" ( (binary_expression "(byte)uVar6 & 0x3f" (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14 = pbVar14 + 4;" (assignment_expression "pbVar14 = pbVar14 + 4" identifier = (binary_expression "pbVar14 + 4" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" identifier = (binary_expression "pbVar3 + 4" identifier + number_literal)) ;) }) (else_clause "else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" else (compound_statement "{\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" { (expression_statement "bVar4 = (byte)uVar6;" (assignment_expression "bVar4 = (byte)uVar6" identifier = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar3 = pbVar12;" (assignment_expression "pbVar3 = pbVar12" identifier = identifier) ;) (if_statement "if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }" { (expression_statement "*pbVar14 = bVar4;" (assignment_expression "*pbVar14 = bVar4" (pointer_expression "*pbVar14" * identifier) = identifier) ;) (expression_statement "pbVar14 = pbVar14 + 1;" (assignment_expression "pbVar14 = pbVar14 + 1" identifier = (binary_expression "pbVar14 + 1" identifier + number_literal)) ;) }) (else_clause "else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" else (if_statement "if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" if (parenthesized_expression "(uVar6 < 0x800)" ( (binary_expression "uVar6 < 0x800" identifier < number_literal) )) (compound_statement "{\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }" { (expression_statement "*pbVar14 = (char)(uVar6 >> 6) - 0x40;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 6) - 0x40" (pointer_expression "*pbVar14" * identifier) = (binary_expression "(char)(uVar6 >> 6) - 0x40" (cast_expression "(char)(uVar6 >> 6)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar14[1] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" identifier [ number_literal ]) = (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14 = pbVar14 + 2;" (assignment_expression "pbVar14 = pbVar14 + 2" identifier = (binary_expression "pbVar14 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" else (compound_statement "{\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" { (expression_statement "*pbVar14 = (char)(uVar6 >> 0xc) - 0x20;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 0xc) - 0x20" (pointer_expression "*pbVar14" * identifier) = (binary_expression "(char)(uVar6 >> 0xc) - 0x20" (cast_expression "(char)(uVar6 >> 0xc)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 0xc)" ( (binary_expression "uVar6 >> 0xc" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14[2] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar14[2] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar14[2]" identifier [ number_literal ]) = (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14 = pbVar14 + 3;" (assignment_expression "pbVar14 = pbVar14 + 3" identifier = (binary_expression "pbVar14 + 3" identifier + number_literal)) ;) }))))) }))) })) }) (else_clause "else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }" else (compound_statement "{\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }" { (while_statement "while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }" while (parenthesized_expression "(pbVar3 < pbVar10)" ( (binary_expression "pbVar3 < pbVar10" identifier < identifier) )) (compound_statement "{\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }" { (expression_statement "pbVar12 = pbVar3 + 2;" (assignment_expression "pbVar12 = pbVar3 + 2" identifier = (binary_expression "pbVar3 + 2" identifier + number_literal)) ;) (expression_statement "uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];" (assignment_expression "uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1]" identifier = (binary_expression "(uint)*pbVar3 * 0x100 + (uint)pbVar3[1]" (binary_expression "(uint)*pbVar3 * 0x100" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal) + (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])))) ;) (if_statement "if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" if (parenthesized_expression "((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10))" ( (binary_expression "(uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)" (parenthesized_expression "(uVar6 - 0xd800 < 0x800)" ( (binary_expression "uVar6 - 0xd800 < 0x800" (binary_expression "uVar6 - 0xd800" identifier - number_literal) < number_literal) )) && (parenthesized_expression "(pbVar12 < pbVar10)" ( (binary_expression "pbVar12 < pbVar10" identifier < identifier) ))) )) (compound_statement "{\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }" { (expression_statement "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;" (assignment_expression "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400" identifier = (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff)" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400" (parenthesized_expression "((uVar6 & 0x3c0) + 0x40)" ( (binary_expression "(uVar6 & 0x3c0) + 0x40" (parenthesized_expression "(uVar6 & 0x3c0)" ( (binary_expression "uVar6 & 0x3c0" identifier & number_literal) )) + number_literal) )) * number_literal) + (parenthesized_expression "(CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff)" ( (binary_expression "CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff" (call_expression "CONCAT11(pbVar3[2],pbVar3[3])" identifier (argument_list "(pbVar3[2],pbVar3[3])" ( (subscript_expression "pbVar3[2]" identifier [ number_literal ]) , (subscript_expression "pbVar3[3]" identifier [ number_literal ]) ))) & number_literal) ))) + (binary_expression "(uVar6 & 0x3f) * 0x400" (parenthesized_expression "(uVar6 & 0x3f)" ( (binary_expression "uVar6 & 0x3f" identifier & number_literal) )) * number_literal))) ;) (expression_statement "*pbVar14 = (char)(uVar6 >> 0x12) - 0x10;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 0x12) - 0x10" (pointer_expression "*pbVar14" * identifier) = (binary_expression "(char)(uVar6 >> 0x12) - 0x10" (cast_expression "(char)(uVar6 >> 0x12)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 0x12)" ( (binary_expression "uVar6 >> 0x12" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 0xc) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 0xc) & 0x3f" (call_expression "(byte)(uVar6 >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 0xc)" ( (binary_expression "uVar6 >> 0xc" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar14[2]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;" (assignment_expression "pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80" (subscript_expression "pbVar14[3]" identifier [ number_literal ]) = (binary_expression "((byte)uVar6 & 0x3f) + 0x80" (parenthesized_expression "((byte)uVar6 & 0x3f)" ( (binary_expression "(byte)uVar6 & 0x3f" (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14 = pbVar14 + 4;" (assignment_expression "pbVar14 = pbVar14 + 4" identifier = (binary_expression "pbVar14 + 4" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" identifier = (binary_expression "pbVar3 + 4" identifier + number_literal)) ;) }) (else_clause "else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" else (compound_statement "{\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" { (expression_statement "bVar4 = (byte)uVar6;" (assignment_expression "bVar4 = (byte)uVar6" identifier = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar3 = pbVar12;" (assignment_expression "pbVar3 = pbVar12" identifier = identifier) ;) (if_statement "if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }" { (expression_statement "*pbVar14 = bVar4;" (assignment_expression "*pbVar14 = bVar4" (pointer_expression "*pbVar14" * identifier) = identifier) ;) (expression_statement "pbVar14 = pbVar14 + 1;" (assignment_expression "pbVar14 = pbVar14 + 1" identifier = (binary_expression "pbVar14 + 1" identifier + number_literal)) ;) }) (else_clause "else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" else (if_statement "if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" if (parenthesized_expression "(uVar6 < 0x800)" ( (binary_expression "uVar6 < 0x800" identifier < number_literal) )) (compound_statement "{\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }" { (expression_statement "*pbVar14 = (char)(uVar6 >> 6) - 0x40;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 6) - 0x40" (pointer_expression "*pbVar14" * identifier) = (binary_expression "(char)(uVar6 >> 6) - 0x40" (cast_expression "(char)(uVar6 >> 6)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar14[1] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" identifier [ number_literal ]) = (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14 = pbVar14 + 2;" (assignment_expression "pbVar14 = pbVar14 + 2" identifier = (binary_expression "pbVar14 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" else (compound_statement "{\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" { (expression_statement "*pbVar14 = (char)(uVar6 >> 0xc) - 0x20;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 0xc) - 0x20" (pointer_expression "*pbVar14" * identifier) = (binary_expression "(char)(uVar6 >> 0xc) - 0x20" (cast_expression "(char)(uVar6 >> 0xc)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 0xc)" ( (binary_expression "uVar6 >> 0xc" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14[2] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar14[2] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar14[2]" identifier [ number_literal ]) = (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14 = pbVar14 + 3;" (assignment_expression "pbVar14 = pbVar14 + 3" identifier = (binary_expression "pbVar14 + 3" identifier + number_literal)) ;) }))))) }))) })) }))) (expression_statement "*(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;" (assignment_expression "*(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "(int)pbVar14 - (int)pbVar7" (cast_expression "(int)pbVar14" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (expression_statement "*pbVar14 = 0;" (assignment_expression "*pbVar14 = 0" (pointer_expression "*pbVar14" * identifier) = number_literal) ;) (expression_statement "uVar2 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar2 = *(ushort *)(param_1 + 8)" identifier = (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "FUN_001428f4(param_1);" (call_expression "FUN_001428f4(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "*(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;" (assignment_expression "*(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "uVar2 & 0x801d | 0x202" (binary_expression "uVar2 & 0x801d" identifier & number_literal) | number_literal)) ;) (expression_statement "*(char *)(param_1 + 10) = param_2;" (assignment_expression "*(char *)(param_1 + 10) = param_2" (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte **)(param_1 + 0x10) = pbVar7;" (assignment_expression "*(byte **)(param_1 + 0x10) = pbVar7" (pointer_expression "*(byte **)(param_1 + 0x10)" * (cast_expression "(byte **)(param_1 + 0x10)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte **)(param_1 + 0x18) = pbVar7;" (assignment_expression "*(byte **)(param_1 + 0x18) = pbVar7" (pointer_expression "*(byte **)(param_1 + 0x18)" * (cast_expression "(byte **)(param_1 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);" (assignment_expression "uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7)" identifier = (call_expression "FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x28),pbVar7)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x20) = uVar5;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = uVar5" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }" else (compound_statement "{\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }" { (expression_statement "uVar8 = FUN_001508b7();" (assignment_expression "uVar8 = FUN_001508b7()" identifier = (call_expression "FUN_001508b7()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }" if (parenthesized_expression "((int)uVar8 == 0)" ( (binary_expression "(int)uVar8 == 0" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }" { (expression_statement "puVar9 = *(undefined1 **)(param_1 + 0x10);" (assignment_expression "puVar9 = *(undefined1 **)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined1 **)(param_1 + 0x10)" * (cast_expression "(undefined1 **)(param_1 + 0x10)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);" (assignment_expression "puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe)" identifier = (binary_expression "puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe)" identifier + (cast_expression "(int)(*(uint *)(param_1 + 0xc) & 0xfffffffe)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(*(uint *)(param_1 + 0xc) & 0xfffffffe)" ( (binary_expression "*(uint *)(param_1 + 0xc) & 0xfffffffe" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) & number_literal) ))))) ;) (for_statement "for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }" for ( ; (binary_expression "puVar9 < puVar13" identifier < identifier) ; (assignment_expression "puVar9 = puVar9 + 2" identifier = (binary_expression "puVar9 + 2" identifier + number_literal)) ) (compound_statement "{\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }" { (expression_statement "uVar1 = *puVar9;" (assignment_expression "uVar1 = *puVar9" identifier = (pointer_expression "*puVar9" * identifier)) ;) (expression_statement "*puVar9 = puVar9[1];" (assignment_expression "*puVar9 = puVar9[1]" (pointer_expression "*puVar9" * identifier) = (subscript_expression "puVar9[1]" identifier [ number_literal ])) ;) (expression_statement "puVar9[1] = uVar1;" (assignment_expression "puVar9[1] = uVar1" (subscript_expression "puVar9[1]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "*(char *)(param_1 + 10) = param_2;" (assignment_expression "*(char *)(param_1 + 10) = param_2" (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      uVar8 = 7;\n    }" else (compound_statement "{\n      uVar8 = 7;\n    }" { (expression_statement "uVar8 = 7;" (assignment_expression "uVar8 = 7" identifier = number_literal) ;) }))) }))) (return_statement "return uVar8;" return identifier ;) })))
(translation_unit "int sqlite3VdbeMemTranslate(Mem *pMem,u8 desiredEnc)\n\n{\n  char cVar1;\n  ushort uVar2;\n  byte *pbVar3;\n  byte bVar4;\n  int iVar5;\n  uint uVar6;\n  byte *p;\n  char *pcVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  char *pcVar10;\n  byte *pbVar11;\n  \n  if ((pMem->enc == '\x01') || (desiredEnc == '\x01')) {\n    if (desiredEnc == '\x01') {\n      uVar6 = pMem->n & 0xfffffffe;\n      pMem->n = uVar6;\n      iVar5 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar5 = pMem->n * 2 + 2;\n    }\n    pbVar3 = (byte *)pMem->z;\n    pbVar8 = pbVar3 + pMem->n;\n    p = (byte *)sqlite3DbMallocRaw(pMem->db,(long)iVar5);\n    if (p == (byte *)0x0) {\n      iVar5 = 7;\n    }\n    else {\n      if (pMem->enc == '\x01') {\n        pbVar9 = p;\n        if (desiredEnc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        pMem->n = (int)pbVar9 - (int)p;\n        pbVar11 = pbVar9 + 1;\n        *pbVar9 = 0;\n      }\n      else {\n        pbVar11 = p;\n        if (pMem->enc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        pMem->n = (int)pbVar11 - (int)p;\n      }\n      *pbVar11 = 0;\n      uVar2 = pMem->flags;\n      sqlite3VdbeMemRelease(pMem);\n      pMem->flags = uVar2 & 0x801d | 0x202;\n      pMem->enc = desiredEnc;\n      pMem->z = (char *)p;\n      pMem->zMalloc = (char *)p;\n      iVar5 = sqlite3DbMallocSize(pMem->db,p);\n      pMem->szMalloc = iVar5;\n      iVar5 = 0;\n    }\n  }\n  else {\n    iVar5 = sqlite3VdbeMemMakeWriteable(pMem);\n    if (iVar5 == 0) {\n      pcVar7 = pMem->z;\n      pcVar10 = pcVar7 + (int)(pMem->n & 0xfffffffe);\n      for (; pcVar7 < pcVar10; pcVar7 = pcVar7 + 2) {\n        cVar1 = *pcVar7;\n        *pcVar7 = pcVar7[1];\n        pcVar7[1] = cVar1;\n      }\n      pMem->enc = desiredEnc;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 7;\n    }\n  }\n  return iVar5;\n}\n\n" (function_definition "int sqlite3VdbeMemTranslate(Mem *pMem,u8 desiredEnc)\n\n{\n  char cVar1;\n  ushort uVar2;\n  byte *pbVar3;\n  byte bVar4;\n  int iVar5;\n  uint uVar6;\n  byte *p;\n  char *pcVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  char *pcVar10;\n  byte *pbVar11;\n  \n  if ((pMem->enc == '\x01') || (desiredEnc == '\x01')) {\n    if (desiredEnc == '\x01') {\n      uVar6 = pMem->n & 0xfffffffe;\n      pMem->n = uVar6;\n      iVar5 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar5 = pMem->n * 2 + 2;\n    }\n    pbVar3 = (byte *)pMem->z;\n    pbVar8 = pbVar3 + pMem->n;\n    p = (byte *)sqlite3DbMallocRaw(pMem->db,(long)iVar5);\n    if (p == (byte *)0x0) {\n      iVar5 = 7;\n    }\n    else {\n      if (pMem->enc == '\x01') {\n        pbVar9 = p;\n        if (desiredEnc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        pMem->n = (int)pbVar9 - (int)p;\n        pbVar11 = pbVar9 + 1;\n        *pbVar9 = 0;\n      }\n      else {\n        pbVar11 = p;\n        if (pMem->enc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        pMem->n = (int)pbVar11 - (int)p;\n      }\n      *pbVar11 = 0;\n      uVar2 = pMem->flags;\n      sqlite3VdbeMemRelease(pMem);\n      pMem->flags = uVar2 & 0x801d | 0x202;\n      pMem->enc = desiredEnc;\n      pMem->z = (char *)p;\n      pMem->zMalloc = (char *)p;\n      iVar5 = sqlite3DbMallocSize(pMem->db,p);\n      pMem->szMalloc = iVar5;\n      iVar5 = 0;\n    }\n  }\n  else {\n    iVar5 = sqlite3VdbeMemMakeWriteable(pMem);\n    if (iVar5 == 0) {\n      pcVar7 = pMem->z;\n      pcVar10 = pcVar7 + (int)(pMem->n & 0xfffffffe);\n      for (; pcVar7 < pcVar10; pcVar7 = pcVar7 + 2) {\n        cVar1 = *pcVar7;\n        *pcVar7 = pcVar7[1];\n        pcVar7[1] = cVar1;\n      }\n      pMem->enc = desiredEnc;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 7;\n    }\n  }\n  return iVar5;\n}" primitive_type (function_declarator "sqlite3VdbeMemTranslate(Mem *pMem,u8 desiredEnc)" identifier (parameter_list "(Mem *pMem,u8 desiredEnc)" ( (parameter_declaration "Mem *pMem" type_identifier (pointer_declarator "*pMem" * identifier)) , (parameter_declaration "u8 desiredEnc" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  ushort uVar2;\n  byte *pbVar3;\n  byte bVar4;\n  int iVar5;\n  uint uVar6;\n  byte *p;\n  char *pcVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  char *pcVar10;\n  byte *pbVar11;\n  \n  if ((pMem->enc == '\x01') || (desiredEnc == '\x01')) {\n    if (desiredEnc == '\x01') {\n      uVar6 = pMem->n & 0xfffffffe;\n      pMem->n = uVar6;\n      iVar5 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar5 = pMem->n * 2 + 2;\n    }\n    pbVar3 = (byte *)pMem->z;\n    pbVar8 = pbVar3 + pMem->n;\n    p = (byte *)sqlite3DbMallocRaw(pMem->db,(long)iVar5);\n    if (p == (byte *)0x0) {\n      iVar5 = 7;\n    }\n    else {\n      if (pMem->enc == '\x01') {\n        pbVar9 = p;\n        if (desiredEnc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        pMem->n = (int)pbVar9 - (int)p;\n        pbVar11 = pbVar9 + 1;\n        *pbVar9 = 0;\n      }\n      else {\n        pbVar11 = p;\n        if (pMem->enc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        pMem->n = (int)pbVar11 - (int)p;\n      }\n      *pbVar11 = 0;\n      uVar2 = pMem->flags;\n      sqlite3VdbeMemRelease(pMem);\n      pMem->flags = uVar2 & 0x801d | 0x202;\n      pMem->enc = desiredEnc;\n      pMem->z = (char *)p;\n      pMem->zMalloc = (char *)p;\n      iVar5 = sqlite3DbMallocSize(pMem->db,p);\n      pMem->szMalloc = iVar5;\n      iVar5 = 0;\n    }\n  }\n  else {\n    iVar5 = sqlite3VdbeMemMakeWriteable(pMem);\n    if (iVar5 == 0) {\n      pcVar7 = pMem->z;\n      pcVar10 = pcVar7 + (int)(pMem->n & 0xfffffffe);\n      for (; pcVar7 < pcVar10; pcVar7 = pcVar7 + 2) {\n        cVar1 = *pcVar7;\n        *pcVar7 = pcVar7[1];\n        pcVar7[1] = cVar1;\n      }\n      pMem->enc = desiredEnc;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 7;\n    }\n  }\n  return iVar5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "byte *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "byte *pbVar11;" type_identifier (pointer_declarator "*pbVar11" * identifier) ;) (if_statement "if ((pMem->enc == '\x01') || (desiredEnc == '\x01')) {\n    if (desiredEnc == '\x01') {\n      uVar6 = pMem->n & 0xfffffffe;\n      pMem->n = uVar6;\n      iVar5 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar5 = pMem->n * 2 + 2;\n    }\n    pbVar3 = (byte *)pMem->z;\n    pbVar8 = pbVar3 + pMem->n;\n    p = (byte *)sqlite3DbMallocRaw(pMem->db,(long)iVar5);\n    if (p == (byte *)0x0) {\n      iVar5 = 7;\n    }\n    else {\n      if (pMem->enc == '\x01') {\n        pbVar9 = p;\n        if (desiredEnc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        pMem->n = (int)pbVar9 - (int)p;\n        pbVar11 = pbVar9 + 1;\n        *pbVar9 = 0;\n      }\n      else {\n        pbVar11 = p;\n        if (pMem->enc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        pMem->n = (int)pbVar11 - (int)p;\n      }\n      *pbVar11 = 0;\n      uVar2 = pMem->flags;\n      sqlite3VdbeMemRelease(pMem);\n      pMem->flags = uVar2 & 0x801d | 0x202;\n      pMem->enc = desiredEnc;\n      pMem->z = (char *)p;\n      pMem->zMalloc = (char *)p;\n      iVar5 = sqlite3DbMallocSize(pMem->db,p);\n      pMem->szMalloc = iVar5;\n      iVar5 = 0;\n    }\n  }\n  else {\n    iVar5 = sqlite3VdbeMemMakeWriteable(pMem);\n    if (iVar5 == 0) {\n      pcVar7 = pMem->z;\n      pcVar10 = pcVar7 + (int)(pMem->n & 0xfffffffe);\n      for (; pcVar7 < pcVar10; pcVar7 = pcVar7 + 2) {\n        cVar1 = *pcVar7;\n        *pcVar7 = pcVar7[1];\n        pcVar7[1] = cVar1;\n      }\n      pMem->enc = desiredEnc;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 7;\n    }\n  }" if (parenthesized_expression "((pMem->enc == '\x01') || (desiredEnc == '\x01'))" ( (binary_expression "(pMem->enc == '\x01') || (desiredEnc == '\x01')" (parenthesized_expression "(pMem->enc == '\x01')" ( (binary_expression "pMem->enc == '\x01'" (field_expression "pMem->enc" identifier -> field_identifier) == (char_literal "'\x01'" ' escape_sequence ')) )) || (parenthesized_expression "(desiredEnc == '\x01')" ( (binary_expression "desiredEnc == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) ))) )) (compound_statement "{\n    if (desiredEnc == '\x01') {\n      uVar6 = pMem->n & 0xfffffffe;\n      pMem->n = uVar6;\n      iVar5 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar5 = pMem->n * 2 + 2;\n    }\n    pbVar3 = (byte *)pMem->z;\n    pbVar8 = pbVar3 + pMem->n;\n    p = (byte *)sqlite3DbMallocRaw(pMem->db,(long)iVar5);\n    if (p == (byte *)0x0) {\n      iVar5 = 7;\n    }\n    else {\n      if (pMem->enc == '\x01') {\n        pbVar9 = p;\n        if (desiredEnc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        pMem->n = (int)pbVar9 - (int)p;\n        pbVar11 = pbVar9 + 1;\n        *pbVar9 = 0;\n      }\n      else {\n        pbVar11 = p;\n        if (pMem->enc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        pMem->n = (int)pbVar11 - (int)p;\n      }\n      *pbVar11 = 0;\n      uVar2 = pMem->flags;\n      sqlite3VdbeMemRelease(pMem);\n      pMem->flags = uVar2 & 0x801d | 0x202;\n      pMem->enc = desiredEnc;\n      pMem->z = (char *)p;\n      pMem->zMalloc = (char *)p;\n      iVar5 = sqlite3DbMallocSize(pMem->db,p);\n      pMem->szMalloc = iVar5;\n      iVar5 = 0;\n    }\n  }" { (if_statement "if (desiredEnc == '\x01') {\n      uVar6 = pMem->n & 0xfffffffe;\n      pMem->n = uVar6;\n      iVar5 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar5 = pMem->n * 2 + 2;\n    }" if (parenthesized_expression "(desiredEnc == '\x01')" ( (binary_expression "desiredEnc == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      uVar6 = pMem->n & 0xfffffffe;\n      pMem->n = uVar6;\n      iVar5 = uVar6 * 2 + 1;\n    }" { (expression_statement "uVar6 = pMem->n & 0xfffffffe;" (assignment_expression "uVar6 = pMem->n & 0xfffffffe" identifier = (binary_expression "pMem->n & 0xfffffffe" (field_expression "pMem->n" identifier -> field_identifier) & number_literal)) ;) (expression_statement "pMem->n = uVar6;" (assignment_expression "pMem->n = uVar6" (field_expression "pMem->n" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar5 = uVar6 * 2 + 1;" (assignment_expression "iVar5 = uVar6 * 2 + 1" identifier = (binary_expression "uVar6 * 2 + 1" (binary_expression "uVar6 * 2" identifier * number_literal) + number_literal)) ;) }) (else_clause "else {\n      iVar5 = pMem->n * 2 + 2;\n    }" else (compound_statement "{\n      iVar5 = pMem->n * 2 + 2;\n    }" { (expression_statement "iVar5 = pMem->n * 2 + 2;" (assignment_expression "iVar5 = pMem->n * 2 + 2" identifier = (binary_expression "pMem->n * 2 + 2" (binary_expression "pMem->n * 2" (field_expression "pMem->n" identifier -> field_identifier) * number_literal) + number_literal)) ;) }))) (expression_statement "pbVar3 = (byte *)pMem->z;" (assignment_expression "pbVar3 = (byte *)pMem->z" identifier = (cast_expression "(byte *)pMem->z" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pMem->z" identifier -> field_identifier))) ;) (expression_statement "pbVar8 = pbVar3 + pMem->n;" (assignment_expression "pbVar8 = pbVar3 + pMem->n" identifier = (binary_expression "pbVar3 + pMem->n" identifier + (field_expression "pMem->n" identifier -> field_identifier))) ;) (expression_statement "p = (byte *)sqlite3DbMallocRaw(pMem->db,(long)iVar5);" (assignment_expression "p = (byte *)sqlite3DbMallocRaw(pMem->db,(long)iVar5)" identifier = (cast_expression "(byte *)sqlite3DbMallocRaw(pMem->db,(long)iVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocRaw(pMem->db,(long)iVar5)" identifier (argument_list "(pMem->db,(long)iVar5)" ( (field_expression "pMem->db" identifier -> field_identifier) , (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))))) ;) (if_statement "if (p == (byte *)0x0) {\n      iVar5 = 7;\n    }\n    else {\n      if (pMem->enc == '\x01') {\n        pbVar9 = p;\n        if (desiredEnc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        pMem->n = (int)pbVar9 - (int)p;\n        pbVar11 = pbVar9 + 1;\n        *pbVar9 = 0;\n      }\n      else {\n        pbVar11 = p;\n        if (pMem->enc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        pMem->n = (int)pbVar11 - (int)p;\n      }\n      *pbVar11 = 0;\n      uVar2 = pMem->flags;\n      sqlite3VdbeMemRelease(pMem);\n      pMem->flags = uVar2 & 0x801d | 0x202;\n      pMem->enc = desiredEnc;\n      pMem->z = (char *)p;\n      pMem->zMalloc = (char *)p;\n      iVar5 = sqlite3DbMallocSize(pMem->db,p);\n      pMem->szMalloc = iVar5;\n      iVar5 = 0;\n    }" if (parenthesized_expression "(p == (byte *)0x0)" ( (binary_expression "p == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar5 = 7;\n    }" { (expression_statement "iVar5 = 7;" (assignment_expression "iVar5 = 7" identifier = number_literal) ;) }) (else_clause "else {\n      if (pMem->enc == '\x01') {\n        pbVar9 = p;\n        if (desiredEnc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        pMem->n = (int)pbVar9 - (int)p;\n        pbVar11 = pbVar9 + 1;\n        *pbVar9 = 0;\n      }\n      else {\n        pbVar11 = p;\n        if (pMem->enc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        pMem->n = (int)pbVar11 - (int)p;\n      }\n      *pbVar11 = 0;\n      uVar2 = pMem->flags;\n      sqlite3VdbeMemRelease(pMem);\n      pMem->flags = uVar2 & 0x801d | 0x202;\n      pMem->enc = desiredEnc;\n      pMem->z = (char *)p;\n      pMem->zMalloc = (char *)p;\n      iVar5 = sqlite3DbMallocSize(pMem->db,p);\n      pMem->szMalloc = iVar5;\n      iVar5 = 0;\n    }" else (compound_statement "{\n      if (pMem->enc == '\x01') {\n        pbVar9 = p;\n        if (desiredEnc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        pMem->n = (int)pbVar9 - (int)p;\n        pbVar11 = pbVar9 + 1;\n        *pbVar9 = 0;\n      }\n      else {\n        pbVar11 = p;\n        if (pMem->enc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        pMem->n = (int)pbVar11 - (int)p;\n      }\n      *pbVar11 = 0;\n      uVar2 = pMem->flags;\n      sqlite3VdbeMemRelease(pMem);\n      pMem->flags = uVar2 & 0x801d | 0x202;\n      pMem->enc = desiredEnc;\n      pMem->z = (char *)p;\n      pMem->zMalloc = (char *)p;\n      iVar5 = sqlite3DbMallocSize(pMem->db,p);\n      pMem->szMalloc = iVar5;\n      iVar5 = 0;\n    }" { (if_statement "if (pMem->enc == '\x01') {\n        pbVar9 = p;\n        if (desiredEnc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        pMem->n = (int)pbVar9 - (int)p;\n        pbVar11 = pbVar9 + 1;\n        *pbVar9 = 0;\n      }\n      else {\n        pbVar11 = p;\n        if (pMem->enc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        pMem->n = (int)pbVar11 - (int)p;\n      }" if (parenthesized_expression "(pMem->enc == '\x01')" ( (binary_expression "pMem->enc == '\x01'" (field_expression "pMem->enc" identifier -> field_identifier) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n        pbVar9 = p;\n        if (desiredEnc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        pMem->n = (int)pbVar9 - (int)p;\n        pbVar11 = pbVar9 + 1;\n        *pbVar9 = 0;\n      }" { (expression_statement "pbVar9 = p;" (assignment_expression "pbVar9 = p" identifier = identifier) ;) (if_statement "if (desiredEnc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }" if (parenthesized_expression "(desiredEnc == '\x02')" ( (binary_expression "desiredEnc == '\x02'" identifier == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }" { (while_statement "while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }" while (parenthesized_expression "(pbVar3 < pbVar8)" ( (binary_expression "pbVar3 < pbVar8" identifier < identifier) )) (compound_statement "{\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }" { (expression_statement "pbVar11 = pbVar3 + 1;" (assignment_expression "pbVar11 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }" if (parenthesized_expression "(uVar6 < 0xc0)" ( (binary_expression "uVar6 < 0xc0" identifier < number_literal) )) (compound_statement "{\nLAB_0015231b:\n              *pbVar9 = (byte)uVar6;\n              pbVar9[1] = (byte)(uVar6 >> 8);\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }" { (labeled_statement "LAB_0015231b:\n              *pbVar9 = (byte)uVar6;" statement_identifier : (expression_statement "*pbVar9 = (byte)uVar6;" (assignment_expression "*pbVar9 = (byte)uVar6" (pointer_expression "*pbVar9" * identifier) = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;)) (expression_statement "pbVar9[1] = (byte)(uVar6 >> 8);" (assignment_expression "pbVar9[1] = (byte)(uVar6 >> 8)" (subscript_expression "pbVar9[1]" identifier [ number_literal ]) = (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 8)" ( (binary_expression "uVar6 >> 8" identifier >> number_literal) )))) ;) (expression_statement "pbVar9 = pbVar9 + 2;" (assignment_expression "pbVar9 = pbVar9 + 2" identifier = (binary_expression "pbVar9 + 2" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar11;" (assignment_expression "pbVar3 = pbVar11" identifier = identifier) ;) }) (else_clause "else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }" else (compound_statement "{\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[2] = (byte)uVar6;\n              pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }" { (expression_statement "uVar6 = (uint)""[uVar6 - 0xc0];" (assignment_expression "uVar6 = (uint)""[uVar6 - 0xc0]" identifier = (cast_expression "(uint)""[uVar6 - 0xc0]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression """[uVar6 - 0xc0]" (string_literal """" " ") [ (binary_expression "uVar6 - 0xc0" identifier - number_literal) ]))) ;) (if_statement "if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }" if (parenthesized_expression "((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80))" ( (binary_expression "(pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" (parenthesized_expression "(pbVar8 == pbVar11)" ( (binary_expression "pbVar8 == pbVar11" identifier == identifier) )) || (parenthesized_expression "(bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" ( (comma_expression "bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80" (assignment_expression "bVar4 = pbVar3[1]" identifier = (subscript_expression "pbVar3[1]" identifier [ number_literal ])) , (binary_expression "(bVar4 & 0xc0) != 0x80" (parenthesized_expression "(bVar4 & 0xc0)" ( (binary_expression "bVar4 & 0xc0" identifier & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }" { (if_statement "if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                  uVar6 = 0xfffd;\n                }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) })) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;) })) (do_statement "do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);" do (compound_statement "{\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              }" { (expression_statement "pbVar11 = pbVar11 + 1;" (assignment_expression "pbVar11 = pbVar11 + 1" identifier = (binary_expression "pbVar11 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);" (assignment_expression "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f)" identifier = (binary_expression "uVar6 * 0x40 + (bVar4 & 0x3f)" (binary_expression "uVar6 * 0x40" identifier * number_literal) + (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )))) ;) (if_statement "if (pbVar8 == pbVar11) break;" if (parenthesized_expression "(pbVar8 == pbVar11)" ( (binary_expression "pbVar8 == pbVar11" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "bVar4 = *pbVar11;" (assignment_expression "bVar4 = *pbVar11" identifier = (pointer_expression "*pbVar11" * identifier)) ;) }) while (parenthesized_expression "((bVar4 & 0xc0) == 0x80)" ( (binary_expression "(bVar4 & 0xc0) == 0x80" (parenthesized_expression "(bVar4 & 0xc0)" ( (binary_expression "bVar4 & 0xc0" identifier & number_literal) )) == number_literal) )) ;) (if_statement "if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;) })) (if_statement "if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" if (parenthesized_expression "((uVar6 & 0xfffff800) == 0xd800)" ( (binary_expression "(uVar6 & 0xfffff800) == 0xd800" (parenthesized_expression "(uVar6 & 0xfffff800)" ( (binary_expression "uVar6 & 0xfffff800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;) })) (if_statement "if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" if (parenthesized_expression "((uVar6 & 0xfffffffe) == 0xfffe)" ( (binary_expression "(uVar6 & 0xfffffffe) == 0xfffe" (parenthesized_expression "(uVar6 & 0xfffffffe)" ( (binary_expression "uVar6 & 0xfffffffe" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;) })) (if_statement "if (uVar6 < 0x10000) goto LAB_0015231b;" if (parenthesized_expression "(uVar6 < 0x10000)" ( (binary_expression "uVar6 < 0x10000" identifier < number_literal) )) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;)) (expression_statement "*pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;" (assignment_expression "*pbVar9 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0" (pointer_expression "*pbVar9" * identifier) = (binary_expression "(byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0" (binary_expression "(byte)(uVar6 >> 10) & 0x3f" (call_expression "(byte)(uVar6 >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 10)" ( (binary_expression "uVar6 >> 10" identifier >> number_literal) ))) & number_literal) | (binary_expression "(byte)(uVar6 - 0x10000 >> 10) & 0xc0" (call_expression "(byte)(uVar6 - 0x10000 >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 - 0x10000 >> 10)" ( (binary_expression "uVar6 - 0x10000 >> 10" (binary_expression "uVar6 - 0x10000" identifier - number_literal) >> number_literal) ))) & number_literal))) ;) (expression_statement "pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;" (assignment_expression "pbVar9[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (subscript_expression "pbVar9[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (parenthesized_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3)" ( (binary_expression "(byte)(uVar6 - 0x10000 >> 0x12) & 3" (call_expression "(byte)(uVar6 - 0x10000 >> 0x12)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 - 0x10000 >> 0x12)" ( (binary_expression "uVar6 - 0x10000 >> 0x12" (binary_expression "uVar6 - 0x10000" identifier - number_literal) >> number_literal) ))) & number_literal) )) - number_literal)) ;) (expression_statement "pbVar9[2] = (byte)uVar6;" (assignment_expression "pbVar9[2] = (byte)uVar6" (subscript_expression "pbVar9[2]" identifier [ number_literal ]) = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;" (assignment_expression "pbVar9[3] = ((byte)(uVar6 >> 8) & 3) - 0x24" (subscript_expression "pbVar9[3]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 8) & 3) - 0x24" (parenthesized_expression "((byte)(uVar6 >> 8) & 3)" ( (binary_expression "(byte)(uVar6 >> 8) & 3" (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 8)" ( (binary_expression "uVar6 >> 8" identifier >> number_literal) ))) & number_literal) )) - number_literal)) ;) (expression_statement "pbVar9 = pbVar9 + 4;" (assignment_expression "pbVar9 = pbVar9 + 4" identifier = (binary_expression "pbVar9 + 4" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar11;" (assignment_expression "pbVar3 = pbVar11" identifier = identifier) ;) }))) })) }) (else_clause "else {\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }" else (compound_statement "{\n          while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }\n        }" { (while_statement "while (pbVar3 < pbVar8) {\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }" while (parenthesized_expression "(pbVar3 < pbVar8)" ( (binary_expression "pbVar3 < pbVar8" identifier < identifier) )) (compound_statement "{\n            pbVar11 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }\n          }" { (expression_statement "pbVar11 = pbVar3 + 1;" (assignment_expression "pbVar11 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }\n            else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }" if (parenthesized_expression "(uVar6 < 0xc0)" ( (binary_expression "uVar6 < 0xc0" identifier < number_literal) )) (compound_statement "{\nLAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);\n              pbVar9[1] = (byte)uVar6;\n              pbVar9 = pbVar9 + 2;\n              pbVar3 = pbVar11;\n            }" { (labeled_statement "LAB_00152412:\n              *pbVar9 = (byte)(uVar6 >> 8);" statement_identifier : (expression_statement "*pbVar9 = (byte)(uVar6 >> 8);" (assignment_expression "*pbVar9 = (byte)(uVar6 >> 8)" (pointer_expression "*pbVar9" * identifier) = (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 8)" ( (binary_expression "uVar6 >> 8" identifier >> number_literal) )))) ;)) (expression_statement "pbVar9[1] = (byte)uVar6;" (assignment_expression "pbVar9[1] = (byte)uVar6" (subscript_expression "pbVar9[1]" identifier [ number_literal ]) = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar9 = pbVar9 + 2;" (assignment_expression "pbVar9 = pbVar9 + 2" identifier = (binary_expression "pbVar9 + 2" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar11;" (assignment_expression "pbVar3 = pbVar11" identifier = identifier) ;) }) (else_clause "else {\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }" else (compound_statement "{\n              uVar6 = (uint)""[uVar6 - 0xc0];\n              if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar9[3] = (byte)uVar6;\n              pbVar9 = pbVar9 + 4;\n              pbVar3 = pbVar11;\n            }" { (expression_statement "uVar6 = (uint)""[uVar6 - 0xc0];" (assignment_expression "uVar6 = (uint)""[uVar6 - 0xc0]" identifier = (cast_expression "(uint)""[uVar6 - 0xc0]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression """[uVar6 - 0xc0]" (string_literal """" " ") [ (binary_expression "uVar6 - 0xc0" identifier - number_literal) ]))) ;) (if_statement "if ((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }" if (parenthesized_expression "((pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80))" ( (binary_expression "(pbVar8 == pbVar11) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" (parenthesized_expression "(pbVar8 == pbVar11)" ( (binary_expression "pbVar8 == pbVar11" identifier == identifier) )) || (parenthesized_expression "(bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" ( (comma_expression "bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80" (assignment_expression "bVar4 = pbVar3[1]" identifier = (subscript_expression "pbVar3[1]" identifier [ number_literal ])) , (binary_expression "(bVar4 & 0xc0) != 0x80" (parenthesized_expression "(bVar4 & 0xc0)" ( (binary_expression "bVar4 & 0xc0" identifier & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }" { (if_statement "if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                  uVar6 = 0xfffd;\n                }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) })) (goto_statement "goto LAB_00152412;" goto statement_identifier ;) })) (do_statement "do {\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              } while ((bVar4 & 0xc0) == 0x80);" do (compound_statement "{\n                pbVar11 = pbVar11 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar8 == pbVar11) break;\n                bVar4 = *pbVar11;\n              }" { (expression_statement "pbVar11 = pbVar11 + 1;" (assignment_expression "pbVar11 = pbVar11 + 1" identifier = (binary_expression "pbVar11 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);" (assignment_expression "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f)" identifier = (binary_expression "uVar6 * 0x40 + (bVar4 & 0x3f)" (binary_expression "uVar6 * 0x40" identifier * number_literal) + (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )))) ;) (if_statement "if (pbVar8 == pbVar11) break;" if (parenthesized_expression "(pbVar8 == pbVar11)" ( (binary_expression "pbVar8 == pbVar11" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "bVar4 = *pbVar11;" (assignment_expression "bVar4 = *pbVar11" identifier = (pointer_expression "*pbVar11" * identifier)) ;) }) while (parenthesized_expression "((bVar4 & 0xc0) == 0x80)" ( (binary_expression "(bVar4 & 0xc0) == 0x80" (parenthesized_expression "(bVar4 & 0xc0)" ( (binary_expression "bVar4 & 0xc0" identifier & number_literal) )) == number_literal) )) ;) (if_statement "if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_00152412;" goto statement_identifier ;) })) (if_statement "if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" if (parenthesized_expression "((uVar6 & 0xfffff800) == 0xd800)" ( (binary_expression "(uVar6 & 0xfffff800) == 0xd800" (parenthesized_expression "(uVar6 & 0xfffff800)" ( (binary_expression "uVar6 & 0xfffff800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_00152412;" goto statement_identifier ;) })) (if_statement "if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" if (parenthesized_expression "((uVar6 & 0xfffffffe) == 0xfffe)" ( (binary_expression "(uVar6 & 0xfffffffe) == 0xfffe" (parenthesized_expression "(uVar6 & 0xfffffffe)" ( (binary_expression "uVar6 & 0xfffffffe" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_00152412;" goto statement_identifier ;) })) (if_statement "if (uVar6 < 0x10000) goto LAB_00152412;" if (parenthesized_expression "(uVar6 < 0x10000)" ( (binary_expression "uVar6 < 0x10000" identifier < number_literal) )) (goto_statement "goto LAB_00152412;" goto statement_identifier ;)) (expression_statement "*pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;" (assignment_expression "*pbVar9 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (pointer_expression "*pbVar9" * identifier) = (binary_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (parenthesized_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3)" ( (binary_expression "(byte)(uVar6 - 0x10000 >> 0x12) & 3" (call_expression "(byte)(uVar6 - 0x10000 >> 0x12)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 - 0x10000 >> 0x12)" ( (binary_expression "uVar6 - 0x10000 >> 0x12" (binary_expression "uVar6 - 0x10000" identifier - number_literal) >> number_literal) ))) & number_literal) )) - number_literal)) ;) (expression_statement "pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;" (assignment_expression "pbVar9[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f" (subscript_expression "pbVar9[1]" identifier [ number_literal ]) = (binary_expression "(byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f" (binary_expression "(byte)(uVar6 - 0x10000 >> 10) & 0xc0" (call_expression "(byte)(uVar6 - 0x10000 >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 - 0x10000 >> 10)" ( (binary_expression "uVar6 - 0x10000 >> 10" (binary_expression "uVar6 - 0x10000" identifier - number_literal) >> number_literal) ))) & number_literal) | (binary_expression "(byte)(uVar6 >> 10) & 0x3f" (call_expression "(byte)(uVar6 >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 10)" ( (binary_expression "uVar6 >> 10" identifier >> number_literal) ))) & number_literal))) ;) (expression_statement "pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;" (assignment_expression "pbVar9[2] = ((byte)(uVar6 >> 8) & 3) - 0x24" (subscript_expression "pbVar9[2]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 8) & 3) - 0x24" (parenthesized_expression "((byte)(uVar6 >> 8) & 3)" ( (binary_expression "(byte)(uVar6 >> 8) & 3" (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 8)" ( (binary_expression "uVar6 >> 8" identifier >> number_literal) ))) & number_literal) )) - number_literal)) ;) (expression_statement "pbVar9[3] = (byte)uVar6;" (assignment_expression "pbVar9[3] = (byte)uVar6" (subscript_expression "pbVar9[3]" identifier [ number_literal ]) = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar9 = pbVar9 + 4;" (assignment_expression "pbVar9 = pbVar9 + 4" identifier = (binary_expression "pbVar9 + 4" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar11;" (assignment_expression "pbVar3 = pbVar11" identifier = identifier) ;) }))) })) }))) (expression_statement "pMem->n = (int)pbVar9 - (int)p;" (assignment_expression "pMem->n = (int)pbVar9 - (int)p" (field_expression "pMem->n" identifier -> field_identifier) = (binary_expression "(int)pbVar9 - (int)p" (cast_expression "(int)pbVar9" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar11 = pbVar9 + 1;" (assignment_expression "pbVar11 = pbVar9 + 1" identifier = (binary_expression "pbVar9 + 1" identifier + number_literal)) ;) (expression_statement "*pbVar9 = 0;" (assignment_expression "*pbVar9 = 0" (pointer_expression "*pbVar9" * identifier) = number_literal) ;) }) (else_clause "else {\n        pbVar11 = p;\n        if (pMem->enc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        pMem->n = (int)pbVar11 - (int)p;\n      }" else (compound_statement "{\n        pbVar11 = p;\n        if (pMem->enc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        pMem->n = (int)pbVar11 - (int)p;\n      }" { (expression_statement "pbVar11 = p;" (assignment_expression "pbVar11 = p" identifier = identifier) ;) (if_statement "if (pMem->enc == '\x02') {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }" if (parenthesized_expression "(pMem->enc == '\x02')" ( (binary_expression "pMem->enc == '\x02'" (field_expression "pMem->enc" identifier -> field_identifier) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }" { (while_statement "while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }" while (parenthesized_expression "(pbVar3 < pbVar8)" ( (binary_expression "pbVar3 < pbVar8" identifier < identifier) )) (compound_statement "{\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }" { (expression_statement "pbVar9 = pbVar3 + 2;" (assignment_expression "pbVar9 = pbVar3 + 2" identifier = (binary_expression "pbVar3 + 2" identifier + number_literal)) ;) (expression_statement "uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3" identifier = (binary_expression "(uint)pbVar3[1] * 0x100 + (uint)*pbVar3" (binary_expression "(uint)pbVar3[1] * 0x100" (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])) * number_literal) + (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier))) ;) (if_statement "if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }" if (parenthesized_expression "((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8))" ( (binary_expression "(uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)" (parenthesized_expression "(uVar6 - 0xd800 < 0x800)" ( (binary_expression "uVar6 - 0xd800 < 0x800" (binary_expression "uVar6 - 0xd800" identifier - number_literal) < number_literal) )) && (parenthesized_expression "(pbVar9 < pbVar8)" ( (binary_expression "pbVar9 < pbVar8" identifier < identifier) ))) )) (compound_statement "{\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }" { (expression_statement "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;" (assignment_expression "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400" identifier = (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff)" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400" (parenthesized_expression "((uVar6 & 0x3c0) + 0x40)" ( (binary_expression "(uVar6 & 0x3c0) + 0x40" (parenthesized_expression "(uVar6 & 0x3c0)" ( (binary_expression "uVar6 & 0x3c0" identifier & number_literal) )) + number_literal) )) * number_literal) + (parenthesized_expression "((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff)" ( (binary_expression "(uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff" (binary_expression "(uint)pbVar3[3] * 0x100 + (uint)pbVar3[2]" (binary_expression "(uint)pbVar3[3] * 0x100" (cast_expression "(uint)pbVar3[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[3]" identifier [ number_literal ])) * number_literal) + (cast_expression "(uint)pbVar3[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[2]" identifier [ number_literal ]))) & number_literal) ))) + (binary_expression "(uVar6 & 0x3f) * 0x400" (parenthesized_expression "(uVar6 & 0x3f)" ( (binary_expression "uVar6 & 0x3f" identifier & number_literal) )) * number_literal))) ;) (expression_statement "*pbVar11 = (char)(uVar6 >> 0x12) - 0x10;" (assignment_expression "*pbVar11 = (char)(uVar6 >> 0x12) - 0x10" (pointer_expression "*pbVar11" * identifier) = (binary_expression "(char)(uVar6 >> 0x12) - 0x10" (cast_expression "(char)(uVar6 >> 0x12)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 0x12)" ( (binary_expression "uVar6 >> 0x12" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;" (assignment_expression "pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (subscript_expression "pbVar11[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 0xc) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 0xc) & 0x3f" (call_expression "(byte)(uVar6 >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 0xc)" ( (binary_expression "uVar6 >> 0xc" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar11[2]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;" (assignment_expression "pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80" (subscript_expression "pbVar11[3]" identifier [ number_literal ]) = (binary_expression "((byte)uVar6 & 0x3f) + 0x80" (parenthesized_expression "((byte)uVar6 & 0x3f)" ( (binary_expression "(byte)uVar6 & 0x3f" (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar11 = pbVar11 + 4;" (assignment_expression "pbVar11 = pbVar11 + 4" identifier = (binary_expression "pbVar11 + 4" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" identifier = (binary_expression "pbVar3 + 4" identifier + number_literal)) ;) }) (else_clause "else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }" else (compound_statement "{\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }" { (expression_statement "bVar4 = (byte)uVar6;" (assignment_expression "bVar4 = (byte)uVar6" identifier = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar3 = pbVar9;" (assignment_expression "pbVar3 = pbVar9" identifier = identifier) ;) (if_statement "if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }" { (expression_statement "*pbVar11 = bVar4;" (assignment_expression "*pbVar11 = bVar4" (pointer_expression "*pbVar11" * identifier) = identifier) ;) (expression_statement "pbVar11 = pbVar11 + 1;" (assignment_expression "pbVar11 = pbVar11 + 1" identifier = (binary_expression "pbVar11 + 1" identifier + number_literal)) ;) }) (else_clause "else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }" else (if_statement "if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }" if (parenthesized_expression "(uVar6 < 0x800)" ( (binary_expression "uVar6 < 0x800" identifier < number_literal) )) (compound_statement "{\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }" { (expression_statement "*pbVar11 = (char)(uVar6 >> 6) - 0x40;" (assignment_expression "*pbVar11 = (char)(uVar6 >> 6) - 0x40" (pointer_expression "*pbVar11" * identifier) = (binary_expression "(char)(uVar6 >> 6) - 0x40" (cast_expression "(char)(uVar6 >> 6)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar11[1] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar11[1] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar11[1]" identifier [ number_literal ]) = (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )) + number_literal)) ;) (expression_statement "pbVar11 = pbVar11 + 2;" (assignment_expression "pbVar11 = pbVar11 + 2" identifier = (binary_expression "pbVar11 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }" else (compound_statement "{\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }" { (expression_statement "*pbVar11 = (char)(uVar6 >> 0xc) - 0x20;" (assignment_expression "*pbVar11 = (char)(uVar6 >> 0xc) - 0x20" (pointer_expression "*pbVar11" * identifier) = (binary_expression "(char)(uVar6 >> 0xc) - 0x20" (cast_expression "(char)(uVar6 >> 0xc)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 0xc)" ( (binary_expression "uVar6 >> 0xc" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar11[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar11[2] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar11[2] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar11[2]" identifier [ number_literal ]) = (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )) + number_literal)) ;) (expression_statement "pbVar11 = pbVar11 + 3;" (assignment_expression "pbVar11 = pbVar11 + 3" identifier = (binary_expression "pbVar11 + 3" identifier + number_literal)) ;) }))))) }))) })) }) (else_clause "else {\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }" else (compound_statement "{\n          while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }\n        }" { (while_statement "while (pbVar3 < pbVar8) {\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }" while (parenthesized_expression "(pbVar3 < pbVar8)" ( (binary_expression "pbVar3 < pbVar8" identifier < identifier) )) (compound_statement "{\n            pbVar9 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }\n          }" { (expression_statement "pbVar9 = pbVar3 + 2;" (assignment_expression "pbVar9 = pbVar3 + 2" identifier = (binary_expression "pbVar3 + 2" identifier + number_literal)) ;) (expression_statement "uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];" (assignment_expression "uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1]" identifier = (binary_expression "(uint)*pbVar3 * 0x100 + (uint)pbVar3[1]" (binary_expression "(uint)*pbVar3 * 0x100" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal) + (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])))) ;) (if_statement "if ((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }" if (parenthesized_expression "((uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8))" ( (binary_expression "(uVar6 - 0xd800 < 0x800) && (pbVar9 < pbVar8)" (parenthesized_expression "(uVar6 - 0xd800 < 0x800)" ( (binary_expression "uVar6 - 0xd800 < 0x800" (binary_expression "uVar6 - 0xd800" identifier - number_literal) < number_literal) )) && (parenthesized_expression "(pbVar9 < pbVar8)" ( (binary_expression "pbVar9 < pbVar8" identifier < identifier) ))) )) (compound_statement "{\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar11 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar11 = pbVar11 + 4;\n              pbVar3 = pbVar3 + 4;\n            }" { (expression_statement "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;" (assignment_expression "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400" identifier = (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff)" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400" (parenthesized_expression "((uVar6 & 0x3c0) + 0x40)" ( (binary_expression "(uVar6 & 0x3c0) + 0x40" (parenthesized_expression "(uVar6 & 0x3c0)" ( (binary_expression "uVar6 & 0x3c0" identifier & number_literal) )) + number_literal) )) * number_literal) + (parenthesized_expression "(CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff)" ( (binary_expression "CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff" (call_expression "CONCAT11(pbVar3[2],pbVar3[3])" identifier (argument_list "(pbVar3[2],pbVar3[3])" ( (subscript_expression "pbVar3[2]" identifier [ number_literal ]) , (subscript_expression "pbVar3[3]" identifier [ number_literal ]) ))) & number_literal) ))) + (binary_expression "(uVar6 & 0x3f) * 0x400" (parenthesized_expression "(uVar6 & 0x3f)" ( (binary_expression "uVar6 & 0x3f" identifier & number_literal) )) * number_literal))) ;) (expression_statement "*pbVar11 = (char)(uVar6 >> 0x12) - 0x10;" (assignment_expression "*pbVar11 = (char)(uVar6 >> 0x12) - 0x10" (pointer_expression "*pbVar11" * identifier) = (binary_expression "(char)(uVar6 >> 0x12) - 0x10" (cast_expression "(char)(uVar6 >> 0x12)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 0x12)" ( (binary_expression "uVar6 >> 0x12" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;" (assignment_expression "pbVar11[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (subscript_expression "pbVar11[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 0xc) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 0xc) & 0x3f" (call_expression "(byte)(uVar6 >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 0xc)" ( (binary_expression "uVar6 >> 0xc" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar11[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar11[2]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80;" (assignment_expression "pbVar11[3] = ((byte)uVar6 & 0x3f) + 0x80" (subscript_expression "pbVar11[3]" identifier [ number_literal ]) = (binary_expression "((byte)uVar6 & 0x3f) + 0x80" (parenthesized_expression "((byte)uVar6 & 0x3f)" ( (binary_expression "(byte)uVar6 & 0x3f" (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar11 = pbVar11 + 4;" (assignment_expression "pbVar11 = pbVar11 + 4" identifier = (binary_expression "pbVar11 + 4" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" identifier = (binary_expression "pbVar3 + 4" identifier + number_literal)) ;) }) (else_clause "else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }" else (compound_statement "{\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar9;\n              if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }\n            }" { (expression_statement "bVar4 = (byte)uVar6;" (assignment_expression "bVar4 = (byte)uVar6" identifier = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar3 = pbVar9;" (assignment_expression "pbVar3 = pbVar9" identifier = identifier) ;) (if_statement "if (uVar6 < 0x80) {\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                *pbVar11 = bVar4;\n                pbVar11 = pbVar11 + 1;\n              }" { (expression_statement "*pbVar11 = bVar4;" (assignment_expression "*pbVar11 = bVar4" (pointer_expression "*pbVar11" * identifier) = identifier) ;) (expression_statement "pbVar11 = pbVar11 + 1;" (assignment_expression "pbVar11 = pbVar11 + 1" identifier = (binary_expression "pbVar11 + 1" identifier + number_literal)) ;) }) (else_clause "else if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }" else (if_statement "if (uVar6 < 0x800) {\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }\n              else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }" if (parenthesized_expression "(uVar6 < 0x800)" ( (binary_expression "uVar6 < 0x800" identifier < number_literal) )) (compound_statement "{\n                *pbVar11 = (char)(uVar6 >> 6) - 0x40;\n                pbVar11[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 2;\n              }" { (expression_statement "*pbVar11 = (char)(uVar6 >> 6) - 0x40;" (assignment_expression "*pbVar11 = (char)(uVar6 >> 6) - 0x40" (pointer_expression "*pbVar11" * identifier) = (binary_expression "(char)(uVar6 >> 6) - 0x40" (cast_expression "(char)(uVar6 >> 6)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar11[1] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar11[1] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar11[1]" identifier [ number_literal ]) = (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )) + number_literal)) ;) (expression_statement "pbVar11 = pbVar11 + 2;" (assignment_expression "pbVar11 = pbVar11 + 2" identifier = (binary_expression "pbVar11 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }" else (compound_statement "{\n                *pbVar11 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar11[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar11 = pbVar11 + 3;\n              }" { (expression_statement "*pbVar11 = (char)(uVar6 >> 0xc) - 0x20;" (assignment_expression "*pbVar11 = (char)(uVar6 >> 0xc) - 0x20" (pointer_expression "*pbVar11" * identifier) = (binary_expression "(char)(uVar6 >> 0xc) - 0x20" (cast_expression "(char)(uVar6 >> 0xc)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 0xc)" ( (binary_expression "uVar6 >> 0xc" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar11[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar11[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar11[2] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar11[2] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar11[2]" identifier [ number_literal ]) = (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )) + number_literal)) ;) (expression_statement "pbVar11 = pbVar11 + 3;" (assignment_expression "pbVar11 = pbVar11 + 3" identifier = (binary_expression "pbVar11 + 3" identifier + number_literal)) ;) }))))) }))) })) }))) (expression_statement "pMem->n = (int)pbVar11 - (int)p;" (assignment_expression "pMem->n = (int)pbVar11 - (int)p" (field_expression "pMem->n" identifier -> field_identifier) = (binary_expression "(int)pbVar11 - (int)p" (cast_expression "(int)pbVar11" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (expression_statement "*pbVar11 = 0;" (assignment_expression "*pbVar11 = 0" (pointer_expression "*pbVar11" * identifier) = number_literal) ;) (expression_statement "uVar2 = pMem->flags;" (assignment_expression "uVar2 = pMem->flags" identifier = (field_expression "pMem->flags" identifier -> field_identifier)) ;) (expression_statement "sqlite3VdbeMemRelease(pMem);" (call_expression "sqlite3VdbeMemRelease(pMem)" identifier (argument_list "(pMem)" ( identifier ))) ;) (expression_statement "pMem->flags = uVar2 & 0x801d | 0x202;" (assignment_expression "pMem->flags = uVar2 & 0x801d | 0x202" (field_expression "pMem->flags" identifier -> field_identifier) = (binary_expression "uVar2 & 0x801d | 0x202" (binary_expression "uVar2 & 0x801d" identifier & number_literal) | number_literal)) ;) (expression_statement "pMem->enc = desiredEnc;" (assignment_expression "pMem->enc = desiredEnc" (field_expression "pMem->enc" identifier -> field_identifier) = identifier) ;) (expression_statement "pMem->z = (char *)p;" (assignment_expression "pMem->z = (char *)p" (field_expression "pMem->z" identifier -> field_identifier) = (cast_expression "(char *)p" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pMem->zMalloc = (char *)p;" (assignment_expression "pMem->zMalloc = (char *)p" (field_expression "pMem->zMalloc" identifier -> field_identifier) = (cast_expression "(char *)p" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "iVar5 = sqlite3DbMallocSize(pMem->db,p);" (assignment_expression "iVar5 = sqlite3DbMallocSize(pMem->db,p)" identifier = (call_expression "sqlite3DbMallocSize(pMem->db,p)" identifier (argument_list "(pMem->db,p)" ( (field_expression "pMem->db" identifier -> field_identifier) , identifier )))) ;) (expression_statement "pMem->szMalloc = iVar5;" (assignment_expression "pMem->szMalloc = iVar5" (field_expression "pMem->szMalloc" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n    iVar5 = sqlite3VdbeMemMakeWriteable(pMem);\n    if (iVar5 == 0) {\n      pcVar7 = pMem->z;\n      pcVar10 = pcVar7 + (int)(pMem->n & 0xfffffffe);\n      for (; pcVar7 < pcVar10; pcVar7 = pcVar7 + 2) {\n        cVar1 = *pcVar7;\n        *pcVar7 = pcVar7[1];\n        pcVar7[1] = cVar1;\n      }\n      pMem->enc = desiredEnc;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 7;\n    }\n  }" else (compound_statement "{\n    iVar5 = sqlite3VdbeMemMakeWriteable(pMem);\n    if (iVar5 == 0) {\n      pcVar7 = pMem->z;\n      pcVar10 = pcVar7 + (int)(pMem->n & 0xfffffffe);\n      for (; pcVar7 < pcVar10; pcVar7 = pcVar7 + 2) {\n        cVar1 = *pcVar7;\n        *pcVar7 = pcVar7[1];\n        pcVar7[1] = cVar1;\n      }\n      pMem->enc = desiredEnc;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 7;\n    }\n  }" { (expression_statement "iVar5 = sqlite3VdbeMemMakeWriteable(pMem);" (assignment_expression "iVar5 = sqlite3VdbeMemMakeWriteable(pMem)" identifier = (call_expression "sqlite3VdbeMemMakeWriteable(pMem)" identifier (argument_list "(pMem)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n      pcVar7 = pMem->z;\n      pcVar10 = pcVar7 + (int)(pMem->n & 0xfffffffe);\n      for (; pcVar7 < pcVar10; pcVar7 = pcVar7 + 2) {\n        cVar1 = *pcVar7;\n        *pcVar7 = pcVar7[1];\n        pcVar7[1] = cVar1;\n      }\n      pMem->enc = desiredEnc;\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 7;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar7 = pMem->z;\n      pcVar10 = pcVar7 + (int)(pMem->n & 0xfffffffe);\n      for (; pcVar7 < pcVar10; pcVar7 = pcVar7 + 2) {\n        cVar1 = *pcVar7;\n        *pcVar7 = pcVar7[1];\n        pcVar7[1] = cVar1;\n      }\n      pMem->enc = desiredEnc;\n      iVar5 = 0;\n    }" { (expression_statement "pcVar7 = pMem->z;" (assignment_expression "pcVar7 = pMem->z" identifier = (field_expression "pMem->z" identifier -> field_identifier)) ;) (expression_statement "pcVar10 = pcVar7 + (int)(pMem->n & 0xfffffffe);" (assignment_expression "pcVar10 = pcVar7 + (int)(pMem->n & 0xfffffffe)" identifier = (binary_expression "pcVar7 + (int)(pMem->n & 0xfffffffe)" identifier + (cast_expression "(int)(pMem->n & 0xfffffffe)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pMem->n & 0xfffffffe)" ( (binary_expression "pMem->n & 0xfffffffe" (field_expression "pMem->n" identifier -> field_identifier) & number_literal) ))))) ;) (for_statement "for (; pcVar7 < pcVar10; pcVar7 = pcVar7 + 2) {\n        cVar1 = *pcVar7;\n        *pcVar7 = pcVar7[1];\n        pcVar7[1] = cVar1;\n      }" for ( ; (binary_expression "pcVar7 < pcVar10" identifier < identifier) ; (assignment_expression "pcVar7 = pcVar7 + 2" identifier = (binary_expression "pcVar7 + 2" identifier + number_literal)) ) (compound_statement "{\n        cVar1 = *pcVar7;\n        *pcVar7 = pcVar7[1];\n        pcVar7[1] = cVar1;\n      }" { (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "*pcVar7 = pcVar7[1];" (assignment_expression "*pcVar7 = pcVar7[1]" (pointer_expression "*pcVar7" * identifier) = (subscript_expression "pcVar7[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar7[1] = cVar1;" (assignment_expression "pcVar7[1] = cVar1" (subscript_expression "pcVar7[1]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "pMem->enc = desiredEnc;" (assignment_expression "pMem->enc = desiredEnc" (field_expression "pMem->enc" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar5 = 7;\n    }" else (compound_statement "{\n      iVar5 = 7;\n    }" { (expression_statement "iVar5 = 7;" (assignment_expression "iVar5 = 7" identifier = number_literal) ;) }))) }))) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "undefined8 FUN_001520c3(long param_1,char param_2)\n\n{\n  undefined1 uVar1;\n  ushort uVar2;\n  byte *pbVar3;\n  byte bVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  byte *pbVar7;\n  undefined8 uVar8;\n  undefined1 *puVar9;\n  byte *pbVar10;\n  int iVar11;\n  byte *pbVar12;\n  undefined1 *puVar13;\n  byte *pbVar14;\n  \n  if ((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')) {\n    if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }\n    pbVar3 = *(byte **)(param_1 + 0x10);\n    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);\n    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);\n    if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }\n  }\n  else {\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }\n  return uVar8;\n}\n\n" (function_definition "undefined8 FUN_001520c3(long param_1,char param_2)\n\n{\n  undefined1 uVar1;\n  ushort uVar2;\n  byte *pbVar3;\n  byte bVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  byte *pbVar7;\n  undefined8 uVar8;\n  undefined1 *puVar9;\n  byte *pbVar10;\n  int iVar11;\n  byte *pbVar12;\n  undefined1 *puVar13;\n  byte *pbVar14;\n  \n  if ((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')) {\n    if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }\n    pbVar3 = *(byte **)(param_1 + 0x10);\n    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);\n    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);\n    if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }\n  }\n  else {\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }\n  return uVar8;\n}" type_identifier (function_declarator "FUN_001520c3(long param_1,char param_2)" identifier (parameter_list "(long param_1,char param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined1 uVar1;\n  ushort uVar2;\n  byte *pbVar3;\n  byte bVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  byte *pbVar7;\n  undefined8 uVar8;\n  undefined1 *puVar9;\n  byte *pbVar10;\n  int iVar11;\n  byte *pbVar12;\n  undefined1 *puVar13;\n  byte *pbVar14;\n  \n  if ((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')) {\n    if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }\n    pbVar3 = *(byte **)(param_1 + 0x10);\n    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);\n    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);\n    if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }\n  }\n  else {\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }\n  return uVar8;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "byte *pbVar10;" type_identifier (pointer_declarator "*pbVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "byte *pbVar12;" type_identifier (pointer_declarator "*pbVar12" * identifier) ;) (declaration "undefined1 *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "byte *pbVar14;" type_identifier (pointer_declarator "*pbVar14" * identifier) ;) (if_statement "if ((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')) {\n    if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }\n    pbVar3 = *(byte **)(param_1 + 0x10);\n    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);\n    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);\n    if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }\n  }\n  else {\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }" if (parenthesized_expression "((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01'))" ( (binary_expression "(*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')" (parenthesized_expression "(*(char *)(param_1 + 10) == '\x01')" ( (binary_expression "*(char *)(param_1 + 10) == '\x01'" (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) || (parenthesized_expression "(param_2 == '\x01')" ( (binary_expression "param_2 == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) ))) )) (compound_statement "{\n    if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }\n    pbVar3 = *(byte **)(param_1 + 0x10);\n    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);\n    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);\n    if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }\n  }" { (if_statement "if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }" if (parenthesized_expression "(param_2 == '\x01')" ( (binary_expression "param_2 == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }" { (expression_statement "uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;" (assignment_expression "uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe" identifier = (binary_expression "*(uint *)(param_1 + 0xc) & 0xfffffffe" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0xc) = uVar6;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar6" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar11 = uVar6 * 2 + 1;" (assignment_expression "iVar11 = uVar6 * 2 + 1" identifier = (binary_expression "uVar6 * 2 + 1" (binary_expression "uVar6 * 2" identifier * number_literal) + number_literal)) ;) }) (else_clause "else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }" else (compound_statement "{\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }" { (expression_statement "iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;" (assignment_expression "iVar11 = *(int *)(param_1 + 0xc) * 2 + 2" identifier = (binary_expression "*(int *)(param_1 + 0xc) * 2 + 2" (binary_expression "*(int *)(param_1 + 0xc) * 2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) * number_literal) + number_literal)) ;) }))) (expression_statement "pbVar3 = *(byte **)(param_1 + 0x10);" (assignment_expression "pbVar3 = *(byte **)(param_1 + 0x10)" identifier = (pointer_expression "*(byte **)(param_1 + 0x10)" * (cast_expression "(byte **)(param_1 + 0x10)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);" (assignment_expression "pbVar10 = pbVar3 + *(int *)(param_1 + 0xc)" identifier = (binary_expression "pbVar3 + *(int *)(param_1 + 0xc)" identifier + (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))))) ;) (expression_statement "pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);" (assignment_expression "pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11)" identifier = (cast_expression "(byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x28),(long)iVar11)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , (cast_expression "(long)iVar11" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))))) ;) (if_statement "if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }" if (parenthesized_expression "(pbVar7 == (byte *)0x0)" ( (binary_expression "pbVar7 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar8 = 7;\n    }" { (expression_statement "uVar8 = 7;" (assignment_expression "uVar8 = 7" identifier = number_literal) ;) }) (else_clause "else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }" else (compound_statement "{\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }" { (if_statement "if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }" if (parenthesized_expression "(*(char *)(param_1 + 10) == '\x01')" ( (binary_expression "*(char *)(param_1 + 10) == '\x01'" (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }" { (expression_statement "pbVar12 = pbVar7;" (assignment_expression "pbVar12 = pbVar7" identifier = identifier) ;) (if_statement "if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }" if (parenthesized_expression "(param_2 == '\x02')" ( (binary_expression "param_2 == '\x02'" identifier == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }" { (while_statement "while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }" while (parenthesized_expression "(pbVar3 < pbVar10)" ( (binary_expression "pbVar3 < pbVar10" identifier < identifier) )) (compound_statement "{\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }" { (expression_statement "pbVar14 = pbVar3 + 1;" (assignment_expression "pbVar14 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" if (parenthesized_expression "(uVar6 < 0xc0)" ( (binary_expression "uVar6 < 0xc0" identifier < number_literal) )) (compound_statement "{\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }" { (labeled_statement "LAB_0015231b:\n              *pbVar12 = (byte)uVar6;" statement_identifier : (expression_statement "*pbVar12 = (byte)uVar6;" (assignment_expression "*pbVar12 = (byte)uVar6" (pointer_expression "*pbVar12" * identifier) = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;)) (expression_statement "pbVar12[1] = (byte)(uVar6 >> 8);" (assignment_expression "pbVar12[1] = (byte)(uVar6 >> 8)" (subscript_expression "pbVar12[1]" identifier [ number_literal ]) = (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 8)" ( (binary_expression "uVar6 >> 8" identifier >> number_literal) )))) ;) (expression_statement "pbVar12 = pbVar12 + 2;" (assignment_expression "pbVar12 = pbVar12 + 2" identifier = (binary_expression "pbVar12 + 2" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar14;" (assignment_expression "pbVar3 = pbVar14" identifier = identifier) ;) }) (else_clause "else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" else (compound_statement "{\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" { (expression_statement "uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];" (assignment_expression "uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0]" identifier = (subscript_expression "(uint)(byte)(&DAT_00200520)[uVar6 - 0xc0]" (call_expression "(uint)(byte)(&DAT_00200520)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(&DAT_00200520)" ( (pointer_expression "&DAT_00200520" & identifier) ))) [ (binary_expression "uVar6 - 0xc0" identifier - number_literal) ])) ;) (if_statement "if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }" if (parenthesized_expression "((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80))" ( (binary_expression "(pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" (parenthesized_expression "(pbVar10 == pbVar14)" ( (binary_expression "pbVar10 == pbVar14" identifier == identifier) )) || (parenthesized_expression "(bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" ( (comma_expression "bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80" (assignment_expression "bVar4 = pbVar3[1]" identifier = (subscript_expression "pbVar3[1]" identifier [ number_literal ])) , (binary_expression "(bVar4 & 0xc0) != 0x80" (parenthesized_expression "(bVar4 & 0xc0)" ( (binary_expression "bVar4 & 0xc0" identifier & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }" { (if_statement "if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                  uVar6 = 0xfffd;\n                }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) })) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;) })) (do_statement "do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);" do (compound_statement "{\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              }" { (expression_statement "pbVar14 = pbVar14 + 1;" (assignment_expression "pbVar14 = pbVar14 + 1" identifier = (binary_expression "pbVar14 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);" (assignment_expression "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f)" identifier = (binary_expression "uVar6 * 0x40 + (bVar4 & 0x3f)" (binary_expression "uVar6 * 0x40" identifier * number_literal) + (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )))) ;) (if_statement "if (pbVar10 == pbVar14) break;" if (parenthesized_expression "(pbVar10 == pbVar14)" ( (binary_expression "pbVar10 == pbVar14" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "bVar4 = *pbVar14;" (assignment_expression "bVar4 = *pbVar14" identifier = (pointer_expression "*pbVar14" * identifier)) ;) }) while (parenthesized_expression "((bVar4 & 0xc0) == 0x80)" ( (binary_expression "(bVar4 & 0xc0) == 0x80" (parenthesized_expression "(bVar4 & 0xc0)" ( (binary_expression "bVar4 & 0xc0" identifier & number_literal) )) == number_literal) )) ;) (if_statement "if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;) })) (if_statement "if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" if (parenthesized_expression "((uVar6 & 0xfffff800) == 0xd800)" ( (binary_expression "(uVar6 & 0xfffff800) == 0xd800" (parenthesized_expression "(uVar6 & 0xfffff800)" ( (binary_expression "uVar6 & 0xfffff800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;) })) (if_statement "if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" if (parenthesized_expression "((uVar6 & 0xfffffffe) == 0xfffe)" ( (binary_expression "(uVar6 & 0xfffffffe) == 0xfffe" (parenthesized_expression "(uVar6 & 0xfffffffe)" ( (binary_expression "uVar6 & 0xfffffffe" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;) })) (if_statement "if (uVar6 < 0x10000) goto LAB_0015231b;" if (parenthesized_expression "(uVar6 < 0x10000)" ( (binary_expression "uVar6 < 0x10000" identifier < number_literal) )) (goto_statement "goto LAB_0015231b;" goto statement_identifier ;)) (expression_statement "*pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;" (assignment_expression "*pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0" (pointer_expression "*pbVar12" * identifier) = (binary_expression "(byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0" (binary_expression "(byte)(uVar6 >> 10) & 0x3f" (call_expression "(byte)(uVar6 >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 10)" ( (binary_expression "uVar6 >> 10" identifier >> number_literal) ))) & number_literal) | (binary_expression "(byte)(uVar6 - 0x10000 >> 10) & 0xc0" (call_expression "(byte)(uVar6 - 0x10000 >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 - 0x10000 >> 10)" ( (binary_expression "uVar6 - 0x10000 >> 10" (binary_expression "uVar6 - 0x10000" identifier - number_literal) >> number_literal) ))) & number_literal))) ;) (expression_statement "pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;" (assignment_expression "pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (subscript_expression "pbVar12[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (parenthesized_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3)" ( (binary_expression "(byte)(uVar6 - 0x10000 >> 0x12) & 3" (call_expression "(byte)(uVar6 - 0x10000 >> 0x12)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 - 0x10000 >> 0x12)" ( (binary_expression "uVar6 - 0x10000 >> 0x12" (binary_expression "uVar6 - 0x10000" identifier - number_literal) >> number_literal) ))) & number_literal) )) - number_literal)) ;) (expression_statement "pbVar12[2] = (byte)uVar6;" (assignment_expression "pbVar12[2] = (byte)uVar6" (subscript_expression "pbVar12[2]" identifier [ number_literal ]) = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;" (assignment_expression "pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24" (subscript_expression "pbVar12[3]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 8) & 3) - 0x24" (parenthesized_expression "((byte)(uVar6 >> 8) & 3)" ( (binary_expression "(byte)(uVar6 >> 8) & 3" (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 8)" ( (binary_expression "uVar6 >> 8" identifier >> number_literal) ))) & number_literal) )) - number_literal)) ;) (expression_statement "pbVar12 = pbVar12 + 4;" (assignment_expression "pbVar12 = pbVar12 + 4" identifier = (binary_expression "pbVar12 + 4" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar14;" (assignment_expression "pbVar3 = pbVar14" identifier = identifier) ;) }))) })) }) (else_clause "else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }" else (compound_statement "{\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }" { (while_statement "while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }" while (parenthesized_expression "(pbVar3 < pbVar10)" ( (binary_expression "pbVar3 < pbVar10" identifier < identifier) )) (compound_statement "{\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }" { (expression_statement "pbVar14 = pbVar3 + 1;" (assignment_expression "pbVar14 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" if (parenthesized_expression "(uVar6 < 0xc0)" ( (binary_expression "uVar6 < 0xc0" identifier < number_literal) )) (compound_statement "{\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }" { (labeled_statement "LAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);" statement_identifier : (expression_statement "*pbVar12 = (byte)(uVar6 >> 8);" (assignment_expression "*pbVar12 = (byte)(uVar6 >> 8)" (pointer_expression "*pbVar12" * identifier) = (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 8)" ( (binary_expression "uVar6 >> 8" identifier >> number_literal) )))) ;)) (expression_statement "pbVar12[1] = (byte)uVar6;" (assignment_expression "pbVar12[1] = (byte)uVar6" (subscript_expression "pbVar12[1]" identifier [ number_literal ]) = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar12 = pbVar12 + 2;" (assignment_expression "pbVar12 = pbVar12 + 2" identifier = (binary_expression "pbVar12 + 2" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar14;" (assignment_expression "pbVar3 = pbVar14" identifier = identifier) ;) }) (else_clause "else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" else (compound_statement "{\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" { (expression_statement "uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];" (assignment_expression "uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0]" identifier = (subscript_expression "(uint)(byte)(&DAT_00200520)[uVar6 - 0xc0]" (call_expression "(uint)(byte)(&DAT_00200520)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(&DAT_00200520)" ( (pointer_expression "&DAT_00200520" & identifier) ))) [ (binary_expression "uVar6 - 0xc0" identifier - number_literal) ])) ;) (if_statement "if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }" if (parenthesized_expression "((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80))" ( (binary_expression "(pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" (parenthesized_expression "(pbVar10 == pbVar14)" ( (binary_expression "pbVar10 == pbVar14" identifier == identifier) )) || (parenthesized_expression "(bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" ( (comma_expression "bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80" (assignment_expression "bVar4 = pbVar3[1]" identifier = (subscript_expression "pbVar3[1]" identifier [ number_literal ])) , (binary_expression "(bVar4 & 0xc0) != 0x80" (parenthesized_expression "(bVar4 & 0xc0)" ( (binary_expression "bVar4 & 0xc0" identifier & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }" { (if_statement "if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                  uVar6 = 0xfffd;\n                }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) })) (goto_statement "goto LAB_00152412;" goto statement_identifier ;) })) (do_statement "do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);" do (compound_statement "{\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              }" { (expression_statement "pbVar14 = pbVar14 + 1;" (assignment_expression "pbVar14 = pbVar14 + 1" identifier = (binary_expression "pbVar14 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);" (assignment_expression "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f)" identifier = (binary_expression "uVar6 * 0x40 + (bVar4 & 0x3f)" (binary_expression "uVar6 * 0x40" identifier * number_literal) + (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )))) ;) (if_statement "if (pbVar10 == pbVar14) break;" if (parenthesized_expression "(pbVar10 == pbVar14)" ( (binary_expression "pbVar10 == pbVar14" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "bVar4 = *pbVar14;" (assignment_expression "bVar4 = *pbVar14" identifier = (pointer_expression "*pbVar14" * identifier)) ;) }) while (parenthesized_expression "((bVar4 & 0xc0) == 0x80)" ( (binary_expression "(bVar4 & 0xc0) == 0x80" (parenthesized_expression "(bVar4 & 0xc0)" ( (binary_expression "bVar4 & 0xc0" identifier & number_literal) )) == number_literal) )) ;) (if_statement "if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_00152412;" goto statement_identifier ;) })) (if_statement "if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" if (parenthesized_expression "((uVar6 & 0xfffff800) == 0xd800)" ( (binary_expression "(uVar6 & 0xfffff800) == 0xd800" (parenthesized_expression "(uVar6 & 0xfffff800)" ( (binary_expression "uVar6 & 0xfffff800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_00152412;" goto statement_identifier ;) })) (if_statement "if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" if (parenthesized_expression "((uVar6 & 0xfffffffe) == 0xfffe)" ( (binary_expression "(uVar6 & 0xfffffffe) == 0xfffe" (parenthesized_expression "(uVar6 & 0xfffffffe)" ( (binary_expression "uVar6 & 0xfffffffe" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" { (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" identifier = number_literal) ;) (goto_statement "goto LAB_00152412;" goto statement_identifier ;) })) (if_statement "if (uVar6 < 0x10000) goto LAB_00152412;" if (parenthesized_expression "(uVar6 < 0x10000)" ( (binary_expression "uVar6 < 0x10000" identifier < number_literal) )) (goto_statement "goto LAB_00152412;" goto statement_identifier ;)) (expression_statement "*pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;" (assignment_expression "*pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (pointer_expression "*pbVar12" * identifier) = (binary_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (parenthesized_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3)" ( (binary_expression "(byte)(uVar6 - 0x10000 >> 0x12) & 3" (call_expression "(byte)(uVar6 - 0x10000 >> 0x12)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 - 0x10000 >> 0x12)" ( (binary_expression "uVar6 - 0x10000 >> 0x12" (binary_expression "uVar6 - 0x10000" identifier - number_literal) >> number_literal) ))) & number_literal) )) - number_literal)) ;) (expression_statement "pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;" (assignment_expression "pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f" (subscript_expression "pbVar12[1]" identifier [ number_literal ]) = (binary_expression "(byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f" (binary_expression "(byte)(uVar6 - 0x10000 >> 10) & 0xc0" (call_expression "(byte)(uVar6 - 0x10000 >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 - 0x10000 >> 10)" ( (binary_expression "uVar6 - 0x10000 >> 10" (binary_expression "uVar6 - 0x10000" identifier - number_literal) >> number_literal) ))) & number_literal) | (binary_expression "(byte)(uVar6 >> 10) & 0x3f" (call_expression "(byte)(uVar6 >> 10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 10)" ( (binary_expression "uVar6 >> 10" identifier >> number_literal) ))) & number_literal))) ;) (expression_statement "pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;" (assignment_expression "pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24" (subscript_expression "pbVar12[2]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 8) & 3) - 0x24" (parenthesized_expression "((byte)(uVar6 >> 8) & 3)" ( (binary_expression "(byte)(uVar6 >> 8) & 3" (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 8)" ( (binary_expression "uVar6 >> 8" identifier >> number_literal) ))) & number_literal) )) - number_literal)) ;) (expression_statement "pbVar12[3] = (byte)uVar6;" (assignment_expression "pbVar12[3] = (byte)uVar6" (subscript_expression "pbVar12[3]" identifier [ number_literal ]) = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar12 = pbVar12 + 4;" (assignment_expression "pbVar12 = pbVar12 + 4" identifier = (binary_expression "pbVar12 + 4" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar14;" (assignment_expression "pbVar3 = pbVar14" identifier = identifier) ;) }))) })) }))) (expression_statement "*(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;" (assignment_expression "*(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "(int)pbVar12 - (int)pbVar7" (cast_expression "(int)pbVar12" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar14 = pbVar12 + 1;" (assignment_expression "pbVar14 = pbVar12 + 1" identifier = (binary_expression "pbVar12 + 1" identifier + number_literal)) ;) (expression_statement "*pbVar12 = 0;" (assignment_expression "*pbVar12 = 0" (pointer_expression "*pbVar12" * identifier) = number_literal) ;) }) (else_clause "else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }" else (compound_statement "{\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }" { (expression_statement "pbVar14 = pbVar7;" (assignment_expression "pbVar14 = pbVar7" identifier = identifier) ;) (if_statement "if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }" if (parenthesized_expression "(*(char *)(param_1 + 10) == '\x02')" ( (binary_expression "*(char *)(param_1 + 10) == '\x02'" (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }" { (while_statement "while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }" while (parenthesized_expression "(pbVar3 < pbVar10)" ( (binary_expression "pbVar3 < pbVar10" identifier < identifier) )) (compound_statement "{\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }" { (expression_statement "pbVar12 = pbVar3 + 2;" (assignment_expression "pbVar12 = pbVar3 + 2" identifier = (binary_expression "pbVar3 + 2" identifier + number_literal)) ;) (expression_statement "uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3" identifier = (binary_expression "(uint)pbVar3[1] * 0x100 + (uint)*pbVar3" (binary_expression "(uint)pbVar3[1] * 0x100" (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])) * number_literal) + (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier))) ;) (if_statement "if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" if (parenthesized_expression "((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10))" ( (binary_expression "(uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)" (parenthesized_expression "(uVar6 - 0xd800 < 0x800)" ( (binary_expression "uVar6 - 0xd800 < 0x800" (binary_expression "uVar6 - 0xd800" identifier - number_literal) < number_literal) )) && (parenthesized_expression "(pbVar12 < pbVar10)" ( (binary_expression "pbVar12 < pbVar10" identifier < identifier) ))) )) (compound_statement "{\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }" { (expression_statement "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;" (assignment_expression "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400" identifier = (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff)" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400" (parenthesized_expression "((uVar6 & 0x3c0) + 0x40)" ( (binary_expression "(uVar6 & 0x3c0) + 0x40" (parenthesized_expression "(uVar6 & 0x3c0)" ( (binary_expression "uVar6 & 0x3c0" identifier & number_literal) )) + number_literal) )) * number_literal) + (parenthesized_expression "((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff)" ( (binary_expression "(uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff" (binary_expression "(uint)pbVar3[3] * 0x100 + (uint)pbVar3[2]" (binary_expression "(uint)pbVar3[3] * 0x100" (cast_expression "(uint)pbVar3[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[3]" identifier [ number_literal ])) * number_literal) + (cast_expression "(uint)pbVar3[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[2]" identifier [ number_literal ]))) & number_literal) ))) + (binary_expression "(uVar6 & 0x3f) * 0x400" (parenthesized_expression "(uVar6 & 0x3f)" ( (binary_expression "uVar6 & 0x3f" identifier & number_literal) )) * number_literal))) ;) (expression_statement "*pbVar14 = (char)(uVar6 >> 0x12) - 0x10;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 0x12) - 0x10" (pointer_expression "*pbVar14" * identifier) = (binary_expression "(char)(uVar6 >> 0x12) - 0x10" (cast_expression "(char)(uVar6 >> 0x12)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 0x12)" ( (binary_expression "uVar6 >> 0x12" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 0xc) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 0xc) & 0x3f" (call_expression "(byte)(uVar6 >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 0xc)" ( (binary_expression "uVar6 >> 0xc" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar14[2]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;" (assignment_expression "pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80" (subscript_expression "pbVar14[3]" identifier [ number_literal ]) = (binary_expression "((byte)uVar6 & 0x3f) + 0x80" (parenthesized_expression "((byte)uVar6 & 0x3f)" ( (binary_expression "(byte)uVar6 & 0x3f" (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14 = pbVar14 + 4;" (assignment_expression "pbVar14 = pbVar14 + 4" identifier = (binary_expression "pbVar14 + 4" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" identifier = (binary_expression "pbVar3 + 4" identifier + number_literal)) ;) }) (else_clause "else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" else (compound_statement "{\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" { (expression_statement "bVar4 = (byte)uVar6;" (assignment_expression "bVar4 = (byte)uVar6" identifier = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar3 = pbVar12;" (assignment_expression "pbVar3 = pbVar12" identifier = identifier) ;) (if_statement "if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }" { (expression_statement "*pbVar14 = bVar4;" (assignment_expression "*pbVar14 = bVar4" (pointer_expression "*pbVar14" * identifier) = identifier) ;) (expression_statement "pbVar14 = pbVar14 + 1;" (assignment_expression "pbVar14 = pbVar14 + 1" identifier = (binary_expression "pbVar14 + 1" identifier + number_literal)) ;) }) (else_clause "else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" else (if_statement "if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" if (parenthesized_expression "(uVar6 < 0x800)" ( (binary_expression "uVar6 < 0x800" identifier < number_literal) )) (compound_statement "{\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }" { (expression_statement "*pbVar14 = (char)(uVar6 >> 6) - 0x40;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 6) - 0x40" (pointer_expression "*pbVar14" * identifier) = (binary_expression "(char)(uVar6 >> 6) - 0x40" (cast_expression "(char)(uVar6 >> 6)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar14[1] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" identifier [ number_literal ]) = (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14 = pbVar14 + 2;" (assignment_expression "pbVar14 = pbVar14 + 2" identifier = (binary_expression "pbVar14 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" else (compound_statement "{\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" { (expression_statement "*pbVar14 = (char)(uVar6 >> 0xc) - 0x20;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 0xc) - 0x20" (pointer_expression "*pbVar14" * identifier) = (binary_expression "(char)(uVar6 >> 0xc) - 0x20" (cast_expression "(char)(uVar6 >> 0xc)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 0xc)" ( (binary_expression "uVar6 >> 0xc" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14[2] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar14[2] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar14[2]" identifier [ number_literal ]) = (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14 = pbVar14 + 3;" (assignment_expression "pbVar14 = pbVar14 + 3" identifier = (binary_expression "pbVar14 + 3" identifier + number_literal)) ;) }))))) }))) })) }) (else_clause "else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }" else (compound_statement "{\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }" { (while_statement "while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }" while (parenthesized_expression "(pbVar3 < pbVar10)" ( (binary_expression "pbVar3 < pbVar10" identifier < identifier) )) (compound_statement "{\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }" { (expression_statement "pbVar12 = pbVar3 + 2;" (assignment_expression "pbVar12 = pbVar3 + 2" identifier = (binary_expression "pbVar3 + 2" identifier + number_literal)) ;) (expression_statement "uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];" (assignment_expression "uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1]" identifier = (binary_expression "(uint)*pbVar3 * 0x100 + (uint)pbVar3[1]" (binary_expression "(uint)*pbVar3 * 0x100" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal) + (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])))) ;) (if_statement "if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" if (parenthesized_expression "((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10))" ( (binary_expression "(uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)" (parenthesized_expression "(uVar6 - 0xd800 < 0x800)" ( (binary_expression "uVar6 - 0xd800 < 0x800" (binary_expression "uVar6 - 0xd800" identifier - number_literal) < number_literal) )) && (parenthesized_expression "(pbVar12 < pbVar10)" ( (binary_expression "pbVar12 < pbVar10" identifier < identifier) ))) )) (compound_statement "{\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }" { (expression_statement "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;" (assignment_expression "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400" identifier = (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff)" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400" (parenthesized_expression "((uVar6 & 0x3c0) + 0x40)" ( (binary_expression "(uVar6 & 0x3c0) + 0x40" (parenthesized_expression "(uVar6 & 0x3c0)" ( (binary_expression "uVar6 & 0x3c0" identifier & number_literal) )) + number_literal) )) * number_literal) + (parenthesized_expression "(CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff)" ( (binary_expression "CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff" (call_expression "CONCAT11(pbVar3[2],pbVar3[3])" identifier (argument_list "(pbVar3[2],pbVar3[3])" ( (subscript_expression "pbVar3[2]" identifier [ number_literal ]) , (subscript_expression "pbVar3[3]" identifier [ number_literal ]) ))) & number_literal) ))) + (binary_expression "(uVar6 & 0x3f) * 0x400" (parenthesized_expression "(uVar6 & 0x3f)" ( (binary_expression "uVar6 & 0x3f" identifier & number_literal) )) * number_literal))) ;) (expression_statement "*pbVar14 = (char)(uVar6 >> 0x12) - 0x10;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 0x12) - 0x10" (pointer_expression "*pbVar14" * identifier) = (binary_expression "(char)(uVar6 >> 0x12) - 0x10" (cast_expression "(char)(uVar6 >> 0x12)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 0x12)" ( (binary_expression "uVar6 >> 0x12" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 0xc) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 0xc) & 0x3f" (call_expression "(byte)(uVar6 >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 0xc)" ( (binary_expression "uVar6 >> 0xc" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar14[2]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;" (assignment_expression "pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80" (subscript_expression "pbVar14[3]" identifier [ number_literal ]) = (binary_expression "((byte)uVar6 & 0x3f) + 0x80" (parenthesized_expression "((byte)uVar6 & 0x3f)" ( (binary_expression "(byte)uVar6 & 0x3f" (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14 = pbVar14 + 4;" (assignment_expression "pbVar14 = pbVar14 + 4" identifier = (binary_expression "pbVar14 + 4" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" identifier = (binary_expression "pbVar3 + 4" identifier + number_literal)) ;) }) (else_clause "else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" else (compound_statement "{\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" { (expression_statement "bVar4 = (byte)uVar6;" (assignment_expression "bVar4 = (byte)uVar6" identifier = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar3 = pbVar12;" (assignment_expression "pbVar3 = pbVar12" identifier = identifier) ;) (if_statement "if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" if (parenthesized_expression "(uVar6 < 0x80)" ( (binary_expression "uVar6 < 0x80" identifier < number_literal) )) (compound_statement "{\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }" { (expression_statement "*pbVar14 = bVar4;" (assignment_expression "*pbVar14 = bVar4" (pointer_expression "*pbVar14" * identifier) = identifier) ;) (expression_statement "pbVar14 = pbVar14 + 1;" (assignment_expression "pbVar14 = pbVar14 + 1" identifier = (binary_expression "pbVar14 + 1" identifier + number_literal)) ;) }) (else_clause "else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" else (if_statement "if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" if (parenthesized_expression "(uVar6 < 0x800)" ( (binary_expression "uVar6 < 0x800" identifier < number_literal) )) (compound_statement "{\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }" { (expression_statement "*pbVar14 = (char)(uVar6 >> 6) - 0x40;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 6) - 0x40" (pointer_expression "*pbVar14" * identifier) = (binary_expression "(char)(uVar6 >> 6) - 0x40" (cast_expression "(char)(uVar6 >> 6)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar14[1] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" identifier [ number_literal ]) = (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14 = pbVar14 + 2;" (assignment_expression "pbVar14 = pbVar14 + 2" identifier = (binary_expression "pbVar14 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" else (compound_statement "{\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" { (expression_statement "*pbVar14 = (char)(uVar6 >> 0xc) - 0x20;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 0xc) - 0x20" (pointer_expression "*pbVar14" * identifier) = (binary_expression "(char)(uVar6 >> 0xc) - 0x20" (cast_expression "(char)(uVar6 >> 0xc)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar6 >> 0xc)" ( (binary_expression "uVar6 >> 0xc" identifier >> number_literal) ))) - number_literal)) ;) (expression_statement "pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" identifier [ number_literal ]) = (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" ( (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar6 >> 6)" ( (binary_expression "uVar6 >> 6" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14[2] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar14[2] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar14[2]" identifier [ number_literal ]) = (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" ( (binary_expression "bVar4 & 0x3f" identifier & number_literal) )) + number_literal)) ;) (expression_statement "pbVar14 = pbVar14 + 3;" (assignment_expression "pbVar14 = pbVar14 + 3" identifier = (binary_expression "pbVar14 + 3" identifier + number_literal)) ;) }))))) }))) })) }))) (expression_statement "*(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;" (assignment_expression "*(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "(int)pbVar14 - (int)pbVar7" (cast_expression "(int)pbVar14" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (expression_statement "*pbVar14 = 0;" (assignment_expression "*pbVar14 = 0" (pointer_expression "*pbVar14" * identifier) = number_literal) ;) (expression_statement "uVar2 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar2 = *(ushort *)(param_1 + 8)" identifier = (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "FUN_001428f4(param_1);" (call_expression "FUN_001428f4(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "*(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;" (assignment_expression "*(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "uVar2 & 0x801d | 0x202" (binary_expression "uVar2 & 0x801d" identifier & number_literal) | number_literal)) ;) (expression_statement "*(char *)(param_1 + 10) = param_2;" (assignment_expression "*(char *)(param_1 + 10) = param_2" (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte **)(param_1 + 0x10) = pbVar7;" (assignment_expression "*(byte **)(param_1 + 0x10) = pbVar7" (pointer_expression "*(byte **)(param_1 + 0x10)" * (cast_expression "(byte **)(param_1 + 0x10)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte **)(param_1 + 0x18) = pbVar7;" (assignment_expression "*(byte **)(param_1 + 0x18) = pbVar7" (pointer_expression "*(byte **)(param_1 + 0x18)" * (cast_expression "(byte **)(param_1 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);" (assignment_expression "uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7)" identifier = (call_expression "FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x28),pbVar7)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x20) = uVar5;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = uVar5" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }" else (compound_statement "{\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }" { (expression_statement "uVar8 = FUN_001508b7();" (assignment_expression "uVar8 = FUN_001508b7()" identifier = (call_expression "FUN_001508b7()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }" if (parenthesized_expression "((int)uVar8 == 0)" ( (binary_expression "(int)uVar8 == 0" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }" { (expression_statement "puVar9 = *(undefined1 **)(param_1 + 0x10);" (assignment_expression "puVar9 = *(undefined1 **)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined1 **)(param_1 + 0x10)" * (cast_expression "(undefined1 **)(param_1 + 0x10)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);" (assignment_expression "puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe)" identifier = (binary_expression "puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe)" identifier + (cast_expression "(int)(*(uint *)(param_1 + 0xc) & 0xfffffffe)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(*(uint *)(param_1 + 0xc) & 0xfffffffe)" ( (binary_expression "*(uint *)(param_1 + 0xc) & 0xfffffffe" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) & number_literal) ))))) ;) (for_statement "for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }" for ( ; (binary_expression "puVar9 < puVar13" identifier < identifier) ; (assignment_expression "puVar9 = puVar9 + 2" identifier = (binary_expression "puVar9 + 2" identifier + number_literal)) ) (compound_statement "{\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }" { (expression_statement "uVar1 = *puVar9;" (assignment_expression "uVar1 = *puVar9" identifier = (pointer_expression "*puVar9" * identifier)) ;) (expression_statement "*puVar9 = puVar9[1];" (assignment_expression "*puVar9 = puVar9[1]" (pointer_expression "*puVar9" * identifier) = (subscript_expression "puVar9[1]" identifier [ number_literal ])) ;) (expression_statement "puVar9[1] = uVar1;" (assignment_expression "puVar9[1] = uVar1" (subscript_expression "puVar9[1]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "*(char *)(param_1 + 10) = param_2;" (assignment_expression "*(char *)(param_1 + 10) = param_2" (pointer_expression "*(char *)(param_1 + 10)" * (cast_expression "(char *)(param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      uVar8 = 7;\n    }" else (compound_statement "{\n      uVar8 = 7;\n    }" { (expression_statement "uVar8 = 7;" (assignment_expression "uVar8 = 7" identifier = number_literal) ;) }))) }))) (return_statement "return uVar8;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT) + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (pointer_expression & IDENT) ))) [ (binary_expression IDENT - LIT) ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) , (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) & LIT) | (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT - LIT) >> LIT) ))) & LIT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT - LIT) >> LIT) ))) & LIT) )) - LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) & LIT) )) - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) })) }) (else_clause else (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) )))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (pointer_expression & IDENT) ))) [ (binary_expression IDENT - LIT) ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) , (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT - LIT) >> LIT) ))) & LIT) )) - LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT - LIT) >> LIT) ))) & LIT) | (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) & LIT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) & LIT) )) - LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) })) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT) + (binary_expression (parenthesized_expression ( IDENT )) * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) && (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) + LIT) )) * LIT) + (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT) + (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) & LIT) ))) + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) - LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) & LIT) )) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) & LIT) )) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) - LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) - LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) & LIT) )) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))))) }))) })) }) (else_clause else (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT) + (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) && (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) + LIT) )) * LIT) + (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) & LIT) ))) + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) - LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) & LIT) )) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) & LIT) )) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) - LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) - LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) & LIT) )) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))))) }))) })) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT & LIT) | LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) ))))) ;) (for_statement for ( ; (binary_expression IDENT < IDENT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) (return_statement return IDENT ;) })))
(function_definition "undefined8 FUN_001520c3(long param_1,char param_2)\n\n{\n  undefined1 uVar1;\n  ushort uVar2;\n  byte *pbVar3;\n  byte bVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  byte *pbVar7;\n  undefined8 uVar8;\n  undefined1 *puVar9;\n  byte *pbVar10;\n  int iVar11;\n  byte *pbVar12;\n  undefined1 *puVar13;\n  byte *pbVar14;\n  \n  if ((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')) {\n    if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }\n    pbVar3 = *(byte **)(param_1 + 0x10);\n    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);\n    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);\n    if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }\n  }\n  else {\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }\n  return uVar8;\n}" (type_identifier "undefined8") (function_declarator "FUN_001520c3(long param_1,char param_2)" (identifier "FUN_001520c3") (parameter_list "(long param_1,char param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "char param_2" (primitive_type "char") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined1 uVar1;\n  ushort uVar2;\n  byte *pbVar3;\n  byte bVar4;\n  undefined4 uVar5;\n  uint uVar6;\n  byte *pbVar7;\n  undefined8 uVar8;\n  undefined1 *puVar9;\n  byte *pbVar10;\n  int iVar11;\n  byte *pbVar12;\n  undefined1 *puVar13;\n  byte *pbVar14;\n  \n  if ((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')) {\n    if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }\n    pbVar3 = *(byte **)(param_1 + 0x10);\n    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);\n    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);\n    if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }\n  }\n  else {\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }\n  return uVar8;\n}" ({ "{") (declaration "undefined1 uVar1;" (type_identifier "undefined1") (identifier "uVar1") (; ";")) (declaration "ushort uVar2;" (type_identifier "ushort") (identifier "uVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte bVar4;" (type_identifier "byte") (identifier "bVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "undefined8 uVar8;" (type_identifier "undefined8") (identifier "uVar8") (; ";")) (declaration "undefined1 *puVar9;" (type_identifier "undefined1") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "byte *pbVar10;" (type_identifier "byte") (pointer_declarator "*pbVar10" (* "*") (identifier "pbVar10")) (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "byte *pbVar12;" (type_identifier "byte") (pointer_declarator "*pbVar12" (* "*") (identifier "pbVar12")) (; ";")) (declaration "undefined1 *puVar13;" (type_identifier "undefined1") (pointer_declarator "*puVar13" (* "*") (identifier "puVar13")) (; ";")) (declaration "byte *pbVar14;" (type_identifier "byte") (pointer_declarator "*pbVar14" (* "*") (identifier "pbVar14")) (; ";")) (if_statement "if ((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')) {\n    if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }\n    pbVar3 = *(byte **)(param_1 + 0x10);\n    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);\n    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);\n    if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }\n  }\n  else {\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01'))" (( "(") (binary_expression "(*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')" (parenthesized_expression "(*(char *)(param_1 + 10) == '\x01')" (( "(") (binary_expression "*(char *)(param_1 + 10) == '\x01'" (pointer_expression "*(char *)(param_1 + 10)" (* "*") (cast_expression "(char *)(param_1 + 10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")")))) (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(param_2 == '\x01')" (( "(") (binary_expression "param_2 == '\x01'" (identifier "param_2") (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }\n    pbVar3 = *(byte **)(param_1 + 0x10);\n    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);\n    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);\n    if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }\n  }" ({ "{") (if_statement "if (param_2 == '\x01') {\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }\n    else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }" (if "if") (parenthesized_expression "(param_2 == '\x01')" (( "(") (binary_expression "param_2 == '\x01'" (identifier "param_2") (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;\n      *(uint *)(param_1 + 0xc) = uVar6;\n      iVar11 = uVar6 * 2 + 1;\n    }" ({ "{") (expression_statement "uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;" (assignment_expression "uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe" (identifier "uVar6") (= "=") (binary_expression "*(uint *)(param_1 + 0xc) & 0xfffffffe" (pointer_expression "*(uint *)(param_1 + 0xc)" (* "*") (cast_expression "(uint *)(param_1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (& "&") (number_literal "0xfffffffe"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0xc) = uVar6;" (assignment_expression "*(uint *)(param_1 + 0xc) = uVar6" (pointer_expression "*(uint *)(param_1 + 0xc)" (* "*") (cast_expression "(uint *)(param_1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "iVar11 = uVar6 * 2 + 1;" (assignment_expression "iVar11 = uVar6 * 2 + 1" (identifier "iVar11") (= "=") (binary_expression "uVar6 * 2 + 1" (binary_expression "uVar6 * 2" (identifier "uVar6") (* "*") (number_literal "2")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }" (else "else") (compound_statement "{\n      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;\n    }" ({ "{") (expression_statement "iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;" (assignment_expression "iVar11 = *(int *)(param_1 + 0xc) * 2 + 2" (identifier "iVar11") (= "=") (binary_expression "*(int *)(param_1 + 0xc) * 2 + 2" (binary_expression "*(int *)(param_1 + 0xc) * 2" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (* "*") (number_literal "2")) (+ "+") (number_literal "2"))) (; ";")) (} "}")))) (expression_statement "pbVar3 = *(byte **)(param_1 + 0x10);" (assignment_expression "pbVar3 = *(byte **)(param_1 + 0x10)" (identifier "pbVar3") (= "=") (pointer_expression "*(byte **)(param_1 + 0x10)" (* "*") (cast_expression "(byte **)(param_1 + 0x10)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);" (assignment_expression "pbVar10 = pbVar3 + *(int *)(param_1 + 0xc)" (identifier "pbVar10") (= "=") (binary_expression "pbVar3 + *(int *)(param_1 + 0xc)" (identifier "pbVar3") (+ "+") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))))) (; ";")) (expression_statement "pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);" (assignment_expression "pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11)" (identifier "pbVar7") (= "=") (cast_expression "(byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11)" (identifier "FUN_0012aaff") (argument_list "(*(undefined8 *)(param_1 + 0x28),(long)iVar11)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (cast_expression "(long)iVar11" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar11")) () ")"))))) (; ";")) (if_statement "if (pbVar7 == (byte *)0x0) {\n      uVar8 = 7;\n    }\n    else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }" (if "if") (parenthesized_expression "(pbVar7 == (byte *)0x0)" (( "(") (binary_expression "pbVar7 == (byte *)0x0" (identifier "pbVar7") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar8 = 7;\n    }" ({ "{") (expression_statement "uVar8 = 7;" (assignment_expression "uVar8 = 7" (identifier "uVar8") (= "=") (number_literal "7")) (; ";")) (} "}")) (else_clause "else {\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }" (else "else") (compound_statement "{\n      if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }\n      *pbVar14 = 0;\n      uVar2 = *(ushort *)(param_1 + 8);\n      FUN_001428f4(param_1);\n      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;\n      *(char *)(param_1 + 10) = param_2;\n      *(byte **)(param_1 + 0x10) = pbVar7;\n      *(byte **)(param_1 + 0x18) = pbVar7;\n      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);\n      *(undefined4 *)(param_1 + 0x20) = uVar5;\n      uVar8 = 0;\n    }" ({ "{") (if_statement "if (*(char *)(param_1 + 10) == '\x01') {\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }\n      else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 10) == '\x01')" (( "(") (binary_expression "*(char *)(param_1 + 10) == '\x01'" (pointer_expression "*(char *)(param_1 + 10)" (* "*") (cast_expression "(char *)(param_1 + 10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")")))) (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n        pbVar12 = pbVar7;\n        if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;\n        pbVar14 = pbVar12 + 1;\n        *pbVar12 = 0;\n      }" ({ "{") (expression_statement "pbVar12 = pbVar7;" (assignment_expression "pbVar12 = pbVar7" (identifier "pbVar12") (= "=") (identifier "pbVar7")) (; ";")) (if_statement "if (param_2 == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }" (if "if") (parenthesized_expression "(param_2 == '\x02')" (( "(") (binary_expression "param_2 == '\x02'" (identifier "param_2") (== "==") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }" ({ "{") (while_statement "while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }" (while "while") (parenthesized_expression "(pbVar3 < pbVar10)" (( "(") (binary_expression "pbVar3 < pbVar10" (identifier "pbVar3") (< "<") (identifier "pbVar10")) () ")")) (compound_statement "{\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }" ({ "{") (expression_statement "pbVar14 = pbVar3 + 1;" (assignment_expression "pbVar14 = pbVar3 + 1" (identifier "pbVar14") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar6 = (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)*pbVar3" (identifier "uVar6") (= "=") (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3"))) (; ";")) (if_statement "if (uVar6 < 0xc0) {\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" (if "if") (parenthesized_expression "(uVar6 < 0xc0)" (( "(") (binary_expression "uVar6 < 0xc0" (identifier "uVar6") (< "<") (number_literal "0xc0")) () ")")) (compound_statement "{\nLAB_0015231b:\n              *pbVar12 = (byte)uVar6;\n              pbVar12[1] = (byte)(uVar6 >> 8);\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }" ({ "{") (labeled_statement "LAB_0015231b:\n              *pbVar12 = (byte)uVar6;" (statement_identifier "LAB_0015231b") (: ":") (expression_statement "*pbVar12 = (byte)uVar6;" (assignment_expression "*pbVar12 = (byte)uVar6" (pointer_expression "*pbVar12" (* "*") (identifier "pbVar12")) (= "=") (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6"))) (; ";"))) (expression_statement "pbVar12[1] = (byte)(uVar6 >> 8);" (assignment_expression "pbVar12[1] = (byte)(uVar6 >> 8)" (subscript_expression "pbVar12[1]" (identifier "pbVar12") ([ "[") (number_literal "1") (] "]")) (= "=") (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 >> 8)" (( "(") (binary_expression "uVar6 >> 8" (identifier "uVar6") (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "pbVar12 = pbVar12 + 2;" (assignment_expression "pbVar12 = pbVar12 + 2" (identifier "pbVar12") (= "=") (binary_expression "pbVar12 + 2" (identifier "pbVar12") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "pbVar3 = pbVar14;" (assignment_expression "pbVar3 = pbVar14" (identifier "pbVar3") (= "=") (identifier "pbVar14")) (; ";")) (} "}")) (else_clause "else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" (else "else") (compound_statement "{\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }\n              if (uVar6 < 0x10000) goto LAB_0015231b;\n              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;\n              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[2] = (byte)uVar6;\n              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" ({ "{") (expression_statement "uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];" (assignment_expression "uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0]" (identifier "uVar6") (= "=") (subscript_expression "(uint)(byte)(&DAT_00200520)[uVar6 - 0xc0]" (call_expression "(uint)(byte)(&DAT_00200520)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (argument_list "(&DAT_00200520)" (( "(") (pointer_expression "&DAT_00200520" (& "&") (identifier "DAT_00200520")) () ")"))) ([ "[") (binary_expression "uVar6 - 0xc0" (identifier "uVar6") (- "-") (number_literal "0xc0")) (] "]"))) (; ";")) (if_statement "if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }" (if "if") (parenthesized_expression "((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80))" (( "(") (binary_expression "(pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" (parenthesized_expression "(pbVar10 == pbVar14)" (( "(") (binary_expression "pbVar10 == pbVar14" (identifier "pbVar10") (== "==") (identifier "pbVar14")) () ")")) (|| "||") (parenthesized_expression "(bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" (( "(") (comma_expression "bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80" (assignment_expression "bVar4 = pbVar3[1]" (identifier "bVar4") (= "=") (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]"))) (, ",") (binary_expression "(bVar4 & 0xc0) != 0x80" (parenthesized_expression "(bVar4 & 0xc0)" (( "(") (binary_expression "bVar4 & 0xc0" (identifier "bVar4") (& "&") (number_literal "0xc0")) () ")")) (!= "!=") (number_literal "0x80"))) () ")"))) () ")")) (compound_statement "{\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_0015231b;\n              }" ({ "{") (if_statement "if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }" (if "if") (parenthesized_expression "(uVar6 < 0x80)" (( "(") (binary_expression "uVar6 < 0x80" (identifier "uVar6") (< "<") (number_literal "0x80")) () ")")) (compound_statement "{\n                  uVar6 = 0xfffd;\n                }" ({ "{") (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" (identifier "uVar6") (= "=") (number_literal "0xfffd")) (; ";")) (} "}"))) (goto_statement "goto LAB_0015231b;" (goto "goto") (statement_identifier "LAB_0015231b") (; ";")) (} "}"))) (do_statement "do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);" (do "do") (compound_statement "{\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              }" ({ "{") (expression_statement "pbVar14 = pbVar14 + 1;" (assignment_expression "pbVar14 = pbVar14 + 1" (identifier "pbVar14") (= "=") (binary_expression "pbVar14 + 1" (identifier "pbVar14") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);" (assignment_expression "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f)" (identifier "uVar6") (= "=") (binary_expression "uVar6 * 0x40 + (bVar4 & 0x3f)" (binary_expression "uVar6 * 0x40" (identifier "uVar6") (* "*") (number_literal "0x40")) (+ "+") (parenthesized_expression "(bVar4 & 0x3f)" (( "(") (binary_expression "bVar4 & 0x3f" (identifier "bVar4") (& "&") (number_literal "0x3f")) () ")")))) (; ";")) (if_statement "if (pbVar10 == pbVar14) break;" (if "if") (parenthesized_expression "(pbVar10 == pbVar14)" (( "(") (binary_expression "pbVar10 == pbVar14" (identifier "pbVar10") (== "==") (identifier "pbVar14")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "bVar4 = *pbVar14;" (assignment_expression "bVar4 = *pbVar14" (identifier "bVar4") (= "=") (pointer_expression "*pbVar14" (* "*") (identifier "pbVar14"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((bVar4 & 0xc0) == 0x80)" (( "(") (binary_expression "(bVar4 & 0xc0) == 0x80" (parenthesized_expression "(bVar4 & 0xc0)" (( "(") (binary_expression "bVar4 & 0xc0" (identifier "bVar4") (& "&") (number_literal "0xc0")) () ")")) (== "==") (number_literal "0x80")) () ")")) (; ";")) (if_statement "if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" (if "if") (parenthesized_expression "(uVar6 < 0x80)" (( "(") (binary_expression "uVar6 < 0x80" (identifier "uVar6") (< "<") (number_literal "0x80")) () ")")) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" ({ "{") (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" (identifier "uVar6") (= "=") (number_literal "0xfffd")) (; ";")) (goto_statement "goto LAB_0015231b;" (goto "goto") (statement_identifier "LAB_0015231b") (; ";")) (} "}"))) (if_statement "if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" (if "if") (parenthesized_expression "((uVar6 & 0xfffff800) == 0xd800)" (( "(") (binary_expression "(uVar6 & 0xfffff800) == 0xd800" (parenthesized_expression "(uVar6 & 0xfffff800)" (( "(") (binary_expression "uVar6 & 0xfffff800" (identifier "uVar6") (& "&") (number_literal "0xfffff800")) () ")")) (== "==") (number_literal "0xd800")) () ")")) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" ({ "{") (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" (identifier "uVar6") (= "=") (number_literal "0xfffd")) (; ";")) (goto_statement "goto LAB_0015231b;" (goto "goto") (statement_identifier "LAB_0015231b") (; ";")) (} "}"))) (if_statement "if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" (if "if") (parenthesized_expression "((uVar6 & 0xfffffffe) == 0xfffe)" (( "(") (binary_expression "(uVar6 & 0xfffffffe) == 0xfffe" (parenthesized_expression "(uVar6 & 0xfffffffe)" (( "(") (binary_expression "uVar6 & 0xfffffffe" (identifier "uVar6") (& "&") (number_literal "0xfffffffe")) () ")")) (== "==") (number_literal "0xfffe")) () ")")) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_0015231b;\n              }" ({ "{") (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" (identifier "uVar6") (= "=") (number_literal "0xfffd")) (; ";")) (goto_statement "goto LAB_0015231b;" (goto "goto") (statement_identifier "LAB_0015231b") (; ";")) (} "}"))) (if_statement "if (uVar6 < 0x10000) goto LAB_0015231b;" (if "if") (parenthesized_expression "(uVar6 < 0x10000)" (( "(") (binary_expression "uVar6 < 0x10000" (identifier "uVar6") (< "<") (number_literal "0x10000")) () ")")) (goto_statement "goto LAB_0015231b;" (goto "goto") (statement_identifier "LAB_0015231b") (; ";"))) (expression_statement "*pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;" (assignment_expression "*pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0" (pointer_expression "*pbVar12" (* "*") (identifier "pbVar12")) (= "=") (binary_expression "(byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0" (binary_expression "(byte)(uVar6 >> 10) & 0x3f" (call_expression "(byte)(uVar6 >> 10)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 >> 10)" (( "(") (binary_expression "uVar6 >> 10" (identifier "uVar6") (>> ">>") (number_literal "10")) () ")"))) (& "&") (number_literal "0x3f")) (| "|") (binary_expression "(byte)(uVar6 - 0x10000 >> 10) & 0xc0" (call_expression "(byte)(uVar6 - 0x10000 >> 10)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 - 0x10000 >> 10)" (( "(") (binary_expression "uVar6 - 0x10000 >> 10" (binary_expression "uVar6 - 0x10000" (identifier "uVar6") (- "-") (number_literal "0x10000")) (>> ">>") (number_literal "10")) () ")"))) (& "&") (number_literal "0xc0")))) (; ";")) (expression_statement "pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;" (assignment_expression "pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (subscript_expression "pbVar12[1]" (identifier "pbVar12") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (parenthesized_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3)" (( "(") (binary_expression "(byte)(uVar6 - 0x10000 >> 0x12) & 3" (call_expression "(byte)(uVar6 - 0x10000 >> 0x12)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 - 0x10000 >> 0x12)" (( "(") (binary_expression "uVar6 - 0x10000 >> 0x12" (binary_expression "uVar6 - 0x10000" (identifier "uVar6") (- "-") (number_literal "0x10000")) (>> ">>") (number_literal "0x12")) () ")"))) (& "&") (number_literal "3")) () ")")) (- "-") (number_literal "0x28"))) (; ";")) (expression_statement "pbVar12[2] = (byte)uVar6;" (assignment_expression "pbVar12[2] = (byte)uVar6" (subscript_expression "pbVar12[2]" (identifier "pbVar12") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6"))) (; ";")) (expression_statement "pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;" (assignment_expression "pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24" (subscript_expression "pbVar12[3]" (identifier "pbVar12") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "((byte)(uVar6 >> 8) & 3) - 0x24" (parenthesized_expression "((byte)(uVar6 >> 8) & 3)" (( "(") (binary_expression "(byte)(uVar6 >> 8) & 3" (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 >> 8)" (( "(") (binary_expression "uVar6 >> 8" (identifier "uVar6") (>> ">>") (number_literal "8")) () ")"))) (& "&") (number_literal "3")) () ")")) (- "-") (number_literal "0x24"))) (; ";")) (expression_statement "pbVar12 = pbVar12 + 4;" (assignment_expression "pbVar12 = pbVar12 + 4" (identifier "pbVar12") (= "=") (binary_expression "pbVar12 + 4" (identifier "pbVar12") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "pbVar3 = pbVar14;" (assignment_expression "pbVar3 = pbVar14" (identifier "pbVar3") (= "=") (identifier "pbVar14")) (; ";")) (} "}")))) (} "}"))) (} "}")) (else_clause "else {\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }" (else "else") (compound_statement "{\n          while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }\n        }" ({ "{") (while_statement "while (pbVar3 < pbVar10) {\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }" (while "while") (parenthesized_expression "(pbVar3 < pbVar10)" (( "(") (binary_expression "pbVar3 < pbVar10" (identifier "pbVar3") (< "<") (identifier "pbVar10")) () ")")) (compound_statement "{\n            pbVar14 = pbVar3 + 1;\n            uVar6 = (uint)*pbVar3;\n            if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }\n          }" ({ "{") (expression_statement "pbVar14 = pbVar3 + 1;" (assignment_expression "pbVar14 = pbVar3 + 1" (identifier "pbVar14") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar6 = (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)*pbVar3" (identifier "uVar6") (= "=") (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3"))) (; ";")) (if_statement "if (uVar6 < 0xc0) {\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }\n            else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" (if "if") (parenthesized_expression "(uVar6 < 0xc0)" (( "(") (binary_expression "uVar6 < 0xc0" (identifier "uVar6") (< "<") (number_literal "0xc0")) () ")")) (compound_statement "{\nLAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);\n              pbVar12[1] = (byte)uVar6;\n              pbVar12 = pbVar12 + 2;\n              pbVar3 = pbVar14;\n            }" ({ "{") (labeled_statement "LAB_00152412:\n              *pbVar12 = (byte)(uVar6 >> 8);" (statement_identifier "LAB_00152412") (: ":") (expression_statement "*pbVar12 = (byte)(uVar6 >> 8);" (assignment_expression "*pbVar12 = (byte)(uVar6 >> 8)" (pointer_expression "*pbVar12" (* "*") (identifier "pbVar12")) (= "=") (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 >> 8)" (( "(") (binary_expression "uVar6 >> 8" (identifier "uVar6") (>> ">>") (number_literal "8")) () ")")))) (; ";"))) (expression_statement "pbVar12[1] = (byte)uVar6;" (assignment_expression "pbVar12[1] = (byte)uVar6" (subscript_expression "pbVar12[1]" (identifier "pbVar12") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6"))) (; ";")) (expression_statement "pbVar12 = pbVar12 + 2;" (assignment_expression "pbVar12 = pbVar12 + 2" (identifier "pbVar12") (= "=") (binary_expression "pbVar12 + 2" (identifier "pbVar12") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "pbVar3 = pbVar14;" (assignment_expression "pbVar3 = pbVar14" (identifier "pbVar3") (= "=") (identifier "pbVar14")) (; ";")) (} "}")) (else_clause "else {\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" (else "else") (compound_statement "{\n              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];\n              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }\n              do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);\n              if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }\n              if (uVar6 < 0x10000) goto LAB_00152412;\n              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;\n              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;\n              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;\n              pbVar12[3] = (byte)uVar6;\n              pbVar12 = pbVar12 + 4;\n              pbVar3 = pbVar14;\n            }" ({ "{") (expression_statement "uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];" (assignment_expression "uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0]" (identifier "uVar6") (= "=") (subscript_expression "(uint)(byte)(&DAT_00200520)[uVar6 - 0xc0]" (call_expression "(uint)(byte)(&DAT_00200520)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (argument_list "(&DAT_00200520)" (( "(") (pointer_expression "&DAT_00200520" (& "&") (identifier "DAT_00200520")) () ")"))) ([ "[") (binary_expression "uVar6 - 0xc0" (identifier "uVar6") (- "-") (number_literal "0xc0")) (] "]"))) (; ";")) (if_statement "if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }" (if "if") (parenthesized_expression "((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80))" (( "(") (binary_expression "(pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" (parenthesized_expression "(pbVar10 == pbVar14)" (( "(") (binary_expression "pbVar10 == pbVar14" (identifier "pbVar10") (== "==") (identifier "pbVar14")) () ")")) (|| "||") (parenthesized_expression "(bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)" (( "(") (comma_expression "bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80" (assignment_expression "bVar4 = pbVar3[1]" (identifier "bVar4") (= "=") (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]"))) (, ",") (binary_expression "(bVar4 & 0xc0) != 0x80" (parenthesized_expression "(bVar4 & 0xc0)" (( "(") (binary_expression "bVar4 & 0xc0" (identifier "bVar4") (& "&") (number_literal "0xc0")) () ")")) (!= "!=") (number_literal "0x80"))) () ")"))) () ")")) (compound_statement "{\n                if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }\n                goto LAB_00152412;\n              }" ({ "{") (if_statement "if (uVar6 < 0x80) {\n                  uVar6 = 0xfffd;\n                }" (if "if") (parenthesized_expression "(uVar6 < 0x80)" (( "(") (binary_expression "uVar6 < 0x80" (identifier "uVar6") (< "<") (number_literal "0x80")) () ")")) (compound_statement "{\n                  uVar6 = 0xfffd;\n                }" ({ "{") (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" (identifier "uVar6") (= "=") (number_literal "0xfffd")) (; ";")) (} "}"))) (goto_statement "goto LAB_00152412;" (goto "goto") (statement_identifier "LAB_00152412") (; ";")) (} "}"))) (do_statement "do {\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              } while ((bVar4 & 0xc0) == 0x80);" (do "do") (compound_statement "{\n                pbVar14 = pbVar14 + 1;\n                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);\n                if (pbVar10 == pbVar14) break;\n                bVar4 = *pbVar14;\n              }" ({ "{") (expression_statement "pbVar14 = pbVar14 + 1;" (assignment_expression "pbVar14 = pbVar14 + 1" (identifier "pbVar14") (= "=") (binary_expression "pbVar14 + 1" (identifier "pbVar14") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);" (assignment_expression "uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f)" (identifier "uVar6") (= "=") (binary_expression "uVar6 * 0x40 + (bVar4 & 0x3f)" (binary_expression "uVar6 * 0x40" (identifier "uVar6") (* "*") (number_literal "0x40")) (+ "+") (parenthesized_expression "(bVar4 & 0x3f)" (( "(") (binary_expression "bVar4 & 0x3f" (identifier "bVar4") (& "&") (number_literal "0x3f")) () ")")))) (; ";")) (if_statement "if (pbVar10 == pbVar14) break;" (if "if") (parenthesized_expression "(pbVar10 == pbVar14)" (( "(") (binary_expression "pbVar10 == pbVar14" (identifier "pbVar10") (== "==") (identifier "pbVar14")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "bVar4 = *pbVar14;" (assignment_expression "bVar4 = *pbVar14" (identifier "bVar4") (= "=") (pointer_expression "*pbVar14" (* "*") (identifier "pbVar14"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((bVar4 & 0xc0) == 0x80)" (( "(") (binary_expression "(bVar4 & 0xc0) == 0x80" (parenthesized_expression "(bVar4 & 0xc0)" (( "(") (binary_expression "bVar4 & 0xc0" (identifier "bVar4") (& "&") (number_literal "0xc0")) () ")")) (== "==") (number_literal "0x80")) () ")")) (; ";")) (if_statement "if (uVar6 < 0x80) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" (if "if") (parenthesized_expression "(uVar6 < 0x80)" (( "(") (binary_expression "uVar6 < 0x80" (identifier "uVar6") (< "<") (number_literal "0x80")) () ")")) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" ({ "{") (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" (identifier "uVar6") (= "=") (number_literal "0xfffd")) (; ";")) (goto_statement "goto LAB_00152412;" (goto "goto") (statement_identifier "LAB_00152412") (; ";")) (} "}"))) (if_statement "if ((uVar6 & 0xfffff800) == 0xd800) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" (if "if") (parenthesized_expression "((uVar6 & 0xfffff800) == 0xd800)" (( "(") (binary_expression "(uVar6 & 0xfffff800) == 0xd800" (parenthesized_expression "(uVar6 & 0xfffff800)" (( "(") (binary_expression "uVar6 & 0xfffff800" (identifier "uVar6") (& "&") (number_literal "0xfffff800")) () ")")) (== "==") (number_literal "0xd800")) () ")")) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" ({ "{") (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" (identifier "uVar6") (= "=") (number_literal "0xfffd")) (; ";")) (goto_statement "goto LAB_00152412;" (goto "goto") (statement_identifier "LAB_00152412") (; ";")) (} "}"))) (if_statement "if ((uVar6 & 0xfffffffe) == 0xfffe) {\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" (if "if") (parenthesized_expression "((uVar6 & 0xfffffffe) == 0xfffe)" (( "(") (binary_expression "(uVar6 & 0xfffffffe) == 0xfffe" (parenthesized_expression "(uVar6 & 0xfffffffe)" (( "(") (binary_expression "uVar6 & 0xfffffffe" (identifier "uVar6") (& "&") (number_literal "0xfffffffe")) () ")")) (== "==") (number_literal "0xfffe")) () ")")) (compound_statement "{\n                uVar6 = 0xfffd;\n                goto LAB_00152412;\n              }" ({ "{") (expression_statement "uVar6 = 0xfffd;" (assignment_expression "uVar6 = 0xfffd" (identifier "uVar6") (= "=") (number_literal "0xfffd")) (; ";")) (goto_statement "goto LAB_00152412;" (goto "goto") (statement_identifier "LAB_00152412") (; ";")) (} "}"))) (if_statement "if (uVar6 < 0x10000) goto LAB_00152412;" (if "if") (parenthesized_expression "(uVar6 < 0x10000)" (( "(") (binary_expression "uVar6 < 0x10000" (identifier "uVar6") (< "<") (number_literal "0x10000")) () ")")) (goto_statement "goto LAB_00152412;" (goto "goto") (statement_identifier "LAB_00152412") (; ";"))) (expression_statement "*pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;" (assignment_expression "*pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (pointer_expression "*pbVar12" (* "*") (identifier "pbVar12")) (= "=") (binary_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28" (parenthesized_expression "((byte)(uVar6 - 0x10000 >> 0x12) & 3)" (( "(") (binary_expression "(byte)(uVar6 - 0x10000 >> 0x12) & 3" (call_expression "(byte)(uVar6 - 0x10000 >> 0x12)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 - 0x10000 >> 0x12)" (( "(") (binary_expression "uVar6 - 0x10000 >> 0x12" (binary_expression "uVar6 - 0x10000" (identifier "uVar6") (- "-") (number_literal "0x10000")) (>> ">>") (number_literal "0x12")) () ")"))) (& "&") (number_literal "3")) () ")")) (- "-") (number_literal "0x28"))) (; ";")) (expression_statement "pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;" (assignment_expression "pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f" (subscript_expression "pbVar12[1]" (identifier "pbVar12") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f" (binary_expression "(byte)(uVar6 - 0x10000 >> 10) & 0xc0" (call_expression "(byte)(uVar6 - 0x10000 >> 10)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 - 0x10000 >> 10)" (( "(") (binary_expression "uVar6 - 0x10000 >> 10" (binary_expression "uVar6 - 0x10000" (identifier "uVar6") (- "-") (number_literal "0x10000")) (>> ">>") (number_literal "10")) () ")"))) (& "&") (number_literal "0xc0")) (| "|") (binary_expression "(byte)(uVar6 >> 10) & 0x3f" (call_expression "(byte)(uVar6 >> 10)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 >> 10)" (( "(") (binary_expression "uVar6 >> 10" (identifier "uVar6") (>> ">>") (number_literal "10")) () ")"))) (& "&") (number_literal "0x3f")))) (; ";")) (expression_statement "pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;" (assignment_expression "pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24" (subscript_expression "pbVar12[2]" (identifier "pbVar12") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "((byte)(uVar6 >> 8) & 3) - 0x24" (parenthesized_expression "((byte)(uVar6 >> 8) & 3)" (( "(") (binary_expression "(byte)(uVar6 >> 8) & 3" (call_expression "(byte)(uVar6 >> 8)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 >> 8)" (( "(") (binary_expression "uVar6 >> 8" (identifier "uVar6") (>> ">>") (number_literal "8")) () ")"))) (& "&") (number_literal "3")) () ")")) (- "-") (number_literal "0x24"))) (; ";")) (expression_statement "pbVar12[3] = (byte)uVar6;" (assignment_expression "pbVar12[3] = (byte)uVar6" (subscript_expression "pbVar12[3]" (identifier "pbVar12") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6"))) (; ";")) (expression_statement "pbVar12 = pbVar12 + 4;" (assignment_expression "pbVar12 = pbVar12 + 4" (identifier "pbVar12") (= "=") (binary_expression "pbVar12 + 4" (identifier "pbVar12") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "pbVar3 = pbVar14;" (assignment_expression "pbVar3 = pbVar14" (identifier "pbVar3") (= "=") (identifier "pbVar14")) (; ";")) (} "}")))) (} "}"))) (} "}")))) (expression_statement "*(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;" (assignment_expression "*(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "(int)pbVar12 - (int)pbVar7" (cast_expression "(int)pbVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar12")) (- "-") (cast_expression "(int)pbVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar7")))) (; ";")) (expression_statement "pbVar14 = pbVar12 + 1;" (assignment_expression "pbVar14 = pbVar12 + 1" (identifier "pbVar14") (= "=") (binary_expression "pbVar12 + 1" (identifier "pbVar12") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pbVar12 = 0;" (assignment_expression "*pbVar12 = 0" (pointer_expression "*pbVar12" (* "*") (identifier "pbVar12")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }" (else "else") (compound_statement "{\n        pbVar14 = pbVar7;\n        if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;\n      }" ({ "{") (expression_statement "pbVar14 = pbVar7;" (assignment_expression "pbVar14 = pbVar7" (identifier "pbVar14") (= "=") (identifier "pbVar7")) (; ";")) (if_statement "if (*(char *)(param_1 + 10) == '\x02') {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }\n        else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 10) == '\x02')" (( "(") (binary_expression "*(char *)(param_1 + 10) == '\x02'" (pointer_expression "*(char *)(param_1 + 10)" (* "*") (cast_expression "(char *)(param_1 + 10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")")))) (== "==") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }" ({ "{") (while_statement "while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }" (while "while") (parenthesized_expression "(pbVar3 < pbVar10)" (( "(") (binary_expression "pbVar3 < pbVar10" (identifier "pbVar3") (< "<") (identifier "pbVar10")) () ")")) (compound_statement "{\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }" ({ "{") (expression_statement "pbVar12 = pbVar3 + 2;" (assignment_expression "pbVar12 = pbVar3 + 2" (identifier "pbVar12") (= "=") (binary_expression "pbVar3 + 2" (identifier "pbVar3") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;" (assignment_expression "uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3" (identifier "uVar6") (= "=") (binary_expression "(uint)pbVar3[1] * 0x100 + (uint)*pbVar3" (binary_expression "(uint)pbVar3[1] * 0x100" (cast_expression "(uint)pbVar3[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]"))) (* "*") (number_literal "0x100")) (+ "+") (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3")))) (; ";")) (if_statement "if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" (if "if") (parenthesized_expression "((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10))" (( "(") (binary_expression "(uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)" (parenthesized_expression "(uVar6 - 0xd800 < 0x800)" (( "(") (binary_expression "uVar6 - 0xd800 < 0x800" (binary_expression "uVar6 - 0xd800" (identifier "uVar6") (- "-") (number_literal "0xd800")) (< "<") (number_literal "0x800")) () ")")) (&& "&&") (parenthesized_expression "(pbVar12 < pbVar10)" (( "(") (binary_expression "pbVar12 < pbVar10" (identifier "pbVar12") (< "<") (identifier "pbVar10")) () ")"))) () ")")) (compound_statement "{\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }" ({ "{") (expression_statement "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;" (assignment_expression "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400" (identifier "uVar6") (= "=") (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff)" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400" (parenthesized_expression "((uVar6 & 0x3c0) + 0x40)" (( "(") (binary_expression "(uVar6 & 0x3c0) + 0x40" (parenthesized_expression "(uVar6 & 0x3c0)" (( "(") (binary_expression "uVar6 & 0x3c0" (identifier "uVar6") (& "&") (number_literal "0x3c0")) () ")")) (+ "+") (number_literal "0x40")) () ")")) (* "*") (number_literal "0x400")) (+ "+") (parenthesized_expression "((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff)" (( "(") (binary_expression "(uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff" (binary_expression "(uint)pbVar3[3] * 0x100 + (uint)pbVar3[2]" (binary_expression "(uint)pbVar3[3] * 0x100" (cast_expression "(uint)pbVar3[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar3[3]" (identifier "pbVar3") ([ "[") (number_literal "3") (] "]"))) (* "*") (number_literal "0x100")) (+ "+") (cast_expression "(uint)pbVar3[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar3[2]" (identifier "pbVar3") ([ "[") (number_literal "2") (] "]")))) (& "&") (number_literal "0x3ff")) () ")"))) (+ "+") (binary_expression "(uVar6 & 0x3f) * 0x400" (parenthesized_expression "(uVar6 & 0x3f)" (( "(") (binary_expression "uVar6 & 0x3f" (identifier "uVar6") (& "&") (number_literal "0x3f")) () ")")) (* "*") (number_literal "0x400")))) (; ";")) (expression_statement "*pbVar14 = (char)(uVar6 >> 0x12) - 0x10;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 0x12) - 0x10" (pointer_expression "*pbVar14" (* "*") (identifier "pbVar14")) (= "=") (binary_expression "(char)(uVar6 >> 0x12) - 0x10" (cast_expression "(char)(uVar6 >> 0x12)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(uVar6 >> 0x12)" (( "(") (binary_expression "uVar6 >> 0x12" (identifier "uVar6") (>> ">>") (number_literal "0x12")) () ")"))) (- "-") (number_literal "0x10"))) (; ";")) (expression_statement "pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" (identifier "pbVar14") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 0xc) & 0x3f)" (( "(") (binary_expression "(byte)(uVar6 >> 0xc) & 0x3f" (call_expression "(byte)(uVar6 >> 0xc)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 >> 0xc)" (( "(") (binary_expression "uVar6 >> 0xc" (identifier "uVar6") (>> ">>") (number_literal "0xc")) () ")"))) (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar14[2]" (identifier "pbVar14") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" (( "(") (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 >> 6)" (( "(") (binary_expression "uVar6 >> 6" (identifier "uVar6") (>> ">>") (number_literal "6")) () ")"))) (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;" (assignment_expression "pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80" (subscript_expression "pbVar14[3]" (identifier "pbVar14") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "((byte)uVar6 & 0x3f) + 0x80" (parenthesized_expression "((byte)uVar6 & 0x3f)" (( "(") (binary_expression "(byte)uVar6 & 0x3f" (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6")) (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar14 = pbVar14 + 4;" (assignment_expression "pbVar14 = pbVar14 + 4" (identifier "pbVar14") (= "=") (binary_expression "pbVar14 + 4" (identifier "pbVar14") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 4" (identifier "pbVar3") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (else_clause "else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" (else "else") (compound_statement "{\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" ({ "{") (expression_statement "bVar4 = (byte)uVar6;" (assignment_expression "bVar4 = (byte)uVar6" (identifier "bVar4") (= "=") (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6"))) (; ";")) (expression_statement "pbVar3 = pbVar12;" (assignment_expression "pbVar3 = pbVar12" (identifier "pbVar3") (= "=") (identifier "pbVar12")) (; ";")) (if_statement "if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" (if "if") (parenthesized_expression "(uVar6 < 0x80)" (( "(") (binary_expression "uVar6 < 0x80" (identifier "uVar6") (< "<") (number_literal "0x80")) () ")")) (compound_statement "{\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }" ({ "{") (expression_statement "*pbVar14 = bVar4;" (assignment_expression "*pbVar14 = bVar4" (pointer_expression "*pbVar14" (* "*") (identifier "pbVar14")) (= "=") (identifier "bVar4")) (; ";")) (expression_statement "pbVar14 = pbVar14 + 1;" (assignment_expression "pbVar14 = pbVar14 + 1" (identifier "pbVar14") (= "=") (binary_expression "pbVar14 + 1" (identifier "pbVar14") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" (else "else") (if_statement "if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" (if "if") (parenthesized_expression "(uVar6 < 0x800)" (( "(") (binary_expression "uVar6 < 0x800" (identifier "uVar6") (< "<") (number_literal "0x800")) () ")")) (compound_statement "{\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }" ({ "{") (expression_statement "*pbVar14 = (char)(uVar6 >> 6) - 0x40;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 6) - 0x40" (pointer_expression "*pbVar14" (* "*") (identifier "pbVar14")) (= "=") (binary_expression "(char)(uVar6 >> 6) - 0x40" (cast_expression "(char)(uVar6 >> 6)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(uVar6 >> 6)" (( "(") (binary_expression "uVar6 >> 6" (identifier "uVar6") (>> ">>") (number_literal "6")) () ")"))) (- "-") (number_literal "0x40"))) (; ";")) (expression_statement "pbVar14[1] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" (identifier "pbVar14") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" (( "(") (binary_expression "bVar4 & 0x3f" (identifier "bVar4") (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar14 = pbVar14 + 2;" (assignment_expression "pbVar14 = pbVar14 + 2" (identifier "pbVar14") (= "=") (binary_expression "pbVar14 + 2" (identifier "pbVar14") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (else_clause "else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" (else "else") (compound_statement "{\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" ({ "{") (expression_statement "*pbVar14 = (char)(uVar6 >> 0xc) - 0x20;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 0xc) - 0x20" (pointer_expression "*pbVar14" (* "*") (identifier "pbVar14")) (= "=") (binary_expression "(char)(uVar6 >> 0xc) - 0x20" (cast_expression "(char)(uVar6 >> 0xc)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(uVar6 >> 0xc)" (( "(") (binary_expression "uVar6 >> 0xc" (identifier "uVar6") (>> ">>") (number_literal "0xc")) () ")"))) (- "-") (number_literal "0x20"))) (; ";")) (expression_statement "pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" (identifier "pbVar14") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" (( "(") (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 >> 6)" (( "(") (binary_expression "uVar6 >> 6" (identifier "uVar6") (>> ">>") (number_literal "6")) () ")"))) (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar14[2] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar14[2] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar14[2]" (identifier "pbVar14") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" (( "(") (binary_expression "bVar4 & 0x3f" (identifier "bVar4") (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar14 = pbVar14 + 3;" (assignment_expression "pbVar14 = pbVar14 + 3" (identifier "pbVar14") (= "=") (binary_expression "pbVar14 + 3" (identifier "pbVar14") (+ "+") (number_literal "3"))) (; ";")) (} "}")))))) (} "}")))) (} "}"))) (} "}")) (else_clause "else {\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }" (else "else") (compound_statement "{\n          while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }\n        }" ({ "{") (while_statement "while (pbVar3 < pbVar10) {\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }" (while "while") (parenthesized_expression "(pbVar3 < pbVar10)" (( "(") (binary_expression "pbVar3 < pbVar10" (identifier "pbVar3") (< "<") (identifier "pbVar10")) () ")")) (compound_statement "{\n            pbVar12 = pbVar3 + 2;\n            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];\n            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }\n          }" ({ "{") (expression_statement "pbVar12 = pbVar3 + 2;" (assignment_expression "pbVar12 = pbVar3 + 2" (identifier "pbVar12") (= "=") (binary_expression "pbVar3 + 2" (identifier "pbVar3") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];" (assignment_expression "uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1]" (identifier "uVar6") (= "=") (binary_expression "(uint)*pbVar3 * 0x100 + (uint)pbVar3[1]" (binary_expression "(uint)*pbVar3 * 0x100" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3")) (* "*") (number_literal "0x100")) (+ "+") (cast_expression "(uint)pbVar3[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]"))))) (; ";")) (if_statement "if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }\n            else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" (if "if") (parenthesized_expression "((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10))" (( "(") (binary_expression "(uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)" (parenthesized_expression "(uVar6 - 0xd800 < 0x800)" (( "(") (binary_expression "uVar6 - 0xd800 < 0x800" (binary_expression "uVar6 - 0xd800" (identifier "uVar6") (- "-") (number_literal "0xd800")) (< "<") (number_literal "0x800")) () ")")) (&& "&&") (parenthesized_expression "(pbVar12 < pbVar10)" (( "(") (binary_expression "pbVar12 < pbVar10" (identifier "pbVar12") (< "<") (identifier "pbVar10")) () ")"))) () ")")) (compound_statement "{\n              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;\n              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;\n              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;\n              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;\n              pbVar14 = pbVar14 + 4;\n              pbVar3 = pbVar3 + 4;\n            }" ({ "{") (expression_statement "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;" (assignment_expression "uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400" (identifier "uVar6") (= "=") (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400 +\n                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff)" (binary_expression "((uVar6 & 0x3c0) + 0x40) * 0x400" (parenthesized_expression "((uVar6 & 0x3c0) + 0x40)" (( "(") (binary_expression "(uVar6 & 0x3c0) + 0x40" (parenthesized_expression "(uVar6 & 0x3c0)" (( "(") (binary_expression "uVar6 & 0x3c0" (identifier "uVar6") (& "&") (number_literal "0x3c0")) () ")")) (+ "+") (number_literal "0x40")) () ")")) (* "*") (number_literal "0x400")) (+ "+") (parenthesized_expression "(CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff)" (( "(") (binary_expression "CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff" (call_expression "CONCAT11(pbVar3[2],pbVar3[3])" (identifier "CONCAT11") (argument_list "(pbVar3[2],pbVar3[3])" (( "(") (subscript_expression "pbVar3[2]" (identifier "pbVar3") ([ "[") (number_literal "2") (] "]")) (, ",") (subscript_expression "pbVar3[3]" (identifier "pbVar3") ([ "[") (number_literal "3") (] "]")) () ")"))) (& "&") (number_literal "0x3ff")) () ")"))) (+ "+") (binary_expression "(uVar6 & 0x3f) * 0x400" (parenthesized_expression "(uVar6 & 0x3f)" (( "(") (binary_expression "uVar6 & 0x3f" (identifier "uVar6") (& "&") (number_literal "0x3f")) () ")")) (* "*") (number_literal "0x400")))) (; ";")) (expression_statement "*pbVar14 = (char)(uVar6 >> 0x12) - 0x10;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 0x12) - 0x10" (pointer_expression "*pbVar14" (* "*") (identifier "pbVar14")) (= "=") (binary_expression "(char)(uVar6 >> 0x12) - 0x10" (cast_expression "(char)(uVar6 >> 0x12)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(uVar6 >> 0x12)" (( "(") (binary_expression "uVar6 >> 0x12" (identifier "uVar6") (>> ">>") (number_literal "0x12")) () ")"))) (- "-") (number_literal "0x10"))) (; ";")) (expression_statement "pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" (identifier "pbVar14") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "((byte)(uVar6 >> 0xc) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 0xc) & 0x3f)" (( "(") (binary_expression "(byte)(uVar6 >> 0xc) & 0x3f" (call_expression "(byte)(uVar6 >> 0xc)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 >> 0xc)" (( "(") (binary_expression "uVar6 >> 0xc" (identifier "uVar6") (>> ">>") (number_literal "0xc")) () ")"))) (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar14[2]" (identifier "pbVar14") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" (( "(") (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 >> 6)" (( "(") (binary_expression "uVar6 >> 6" (identifier "uVar6") (>> ">>") (number_literal "6")) () ")"))) (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;" (assignment_expression "pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80" (subscript_expression "pbVar14[3]" (identifier "pbVar14") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "((byte)uVar6 & 0x3f) + 0x80" (parenthesized_expression "((byte)uVar6 & 0x3f)" (( "(") (binary_expression "(byte)uVar6 & 0x3f" (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6")) (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar14 = pbVar14 + 4;" (assignment_expression "pbVar14 = pbVar14 + 4" (identifier "pbVar14") (= "=") (binary_expression "pbVar14 + 4" (identifier "pbVar14") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 4" (identifier "pbVar3") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (else_clause "else {\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" (else "else") (compound_statement "{\n              bVar4 = (byte)uVar6;\n              pbVar3 = pbVar12;\n              if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }\n            }" ({ "{") (expression_statement "bVar4 = (byte)uVar6;" (assignment_expression "bVar4 = (byte)uVar6" (identifier "bVar4") (= "=") (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6"))) (; ";")) (expression_statement "pbVar3 = pbVar12;" (assignment_expression "pbVar3 = pbVar12" (identifier "pbVar3") (= "=") (identifier "pbVar12")) (; ";")) (if_statement "if (uVar6 < 0x80) {\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }\n              else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" (if "if") (parenthesized_expression "(uVar6 < 0x80)" (( "(") (binary_expression "uVar6 < 0x80" (identifier "uVar6") (< "<") (number_literal "0x80")) () ")")) (compound_statement "{\n                *pbVar14 = bVar4;\n                pbVar14 = pbVar14 + 1;\n              }" ({ "{") (expression_statement "*pbVar14 = bVar4;" (assignment_expression "*pbVar14 = bVar4" (pointer_expression "*pbVar14" (* "*") (identifier "pbVar14")) (= "=") (identifier "bVar4")) (; ";")) (expression_statement "pbVar14 = pbVar14 + 1;" (assignment_expression "pbVar14 = pbVar14 + 1" (identifier "pbVar14") (= "=") (binary_expression "pbVar14 + 1" (identifier "pbVar14") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" (else "else") (if_statement "if (uVar6 < 0x800) {\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }\n              else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" (if "if") (parenthesized_expression "(uVar6 < 0x800)" (( "(") (binary_expression "uVar6 < 0x800" (identifier "uVar6") (< "<") (number_literal "0x800")) () ")")) (compound_statement "{\n                *pbVar14 = (char)(uVar6 >> 6) - 0x40;\n                pbVar14[1] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 2;\n              }" ({ "{") (expression_statement "*pbVar14 = (char)(uVar6 >> 6) - 0x40;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 6) - 0x40" (pointer_expression "*pbVar14" (* "*") (identifier "pbVar14")) (= "=") (binary_expression "(char)(uVar6 >> 6) - 0x40" (cast_expression "(char)(uVar6 >> 6)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(uVar6 >> 6)" (( "(") (binary_expression "uVar6 >> 6" (identifier "uVar6") (>> ">>") (number_literal "6")) () ")"))) (- "-") (number_literal "0x40"))) (; ";")) (expression_statement "pbVar14[1] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" (identifier "pbVar14") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" (( "(") (binary_expression "bVar4 & 0x3f" (identifier "bVar4") (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar14 = pbVar14 + 2;" (assignment_expression "pbVar14 = pbVar14 + 2" (identifier "pbVar14") (= "=") (binary_expression "pbVar14 + 2" (identifier "pbVar14") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (else_clause "else {\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" (else "else") (compound_statement "{\n                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;\n                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;\n                pbVar14[2] = (bVar4 & 0x3f) + 0x80;\n                pbVar14 = pbVar14 + 3;\n              }" ({ "{") (expression_statement "*pbVar14 = (char)(uVar6 >> 0xc) - 0x20;" (assignment_expression "*pbVar14 = (char)(uVar6 >> 0xc) - 0x20" (pointer_expression "*pbVar14" (* "*") (identifier "pbVar14")) (= "=") (binary_expression "(char)(uVar6 >> 0xc) - 0x20" (cast_expression "(char)(uVar6 >> 0xc)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(uVar6 >> 0xc)" (( "(") (binary_expression "uVar6 >> 0xc" (identifier "uVar6") (>> ">>") (number_literal "0xc")) () ")"))) (- "-") (number_literal "0x20"))) (; ";")) (expression_statement "pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;" (assignment_expression "pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80" (subscript_expression "pbVar14[1]" (identifier "pbVar14") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "((byte)(uVar6 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(uVar6 >> 6) & 0x3f)" (( "(") (binary_expression "(byte)(uVar6 >> 6) & 0x3f" (call_expression "(byte)(uVar6 >> 6)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar6 >> 6)" (( "(") (binary_expression "uVar6 >> 6" (identifier "uVar6") (>> ">>") (number_literal "6")) () ")"))) (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar14[2] = (bVar4 & 0x3f) + 0x80;" (assignment_expression "pbVar14[2] = (bVar4 & 0x3f) + 0x80" (subscript_expression "pbVar14[2]" (identifier "pbVar14") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "(bVar4 & 0x3f) + 0x80" (parenthesized_expression "(bVar4 & 0x3f)" (( "(") (binary_expression "bVar4 & 0x3f" (identifier "bVar4") (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar14 = pbVar14 + 3;" (assignment_expression "pbVar14 = pbVar14 + 3" (identifier "pbVar14") (= "=") (binary_expression "pbVar14 + 3" (identifier "pbVar14") (+ "+") (number_literal "3"))) (; ";")) (} "}")))))) (} "}")))) (} "}"))) (} "}")))) (expression_statement "*(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;" (assignment_expression "*(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "(int)pbVar14 - (int)pbVar7" (cast_expression "(int)pbVar14" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar14")) (- "-") (cast_expression "(int)pbVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar7")))) (; ";")) (} "}")))) (expression_statement "*pbVar14 = 0;" (assignment_expression "*pbVar14 = 0" (pointer_expression "*pbVar14" (* "*") (identifier "pbVar14")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar2 = *(ushort *)(param_1 + 8)" (identifier "uVar2") (= "=") (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "FUN_001428f4(param_1);" (call_expression "FUN_001428f4(param_1)" (identifier "FUN_001428f4") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "*(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;" (assignment_expression "*(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202" (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "uVar2 & 0x801d | 0x202" (binary_expression "uVar2 & 0x801d" (identifier "uVar2") (& "&") (number_literal "0x801d")) (| "|") (number_literal "0x202"))) (; ";")) (expression_statement "*(char *)(param_1 + 10) = param_2;" (assignment_expression "*(char *)(param_1 + 10) = param_2" (pointer_expression "*(char *)(param_1 + 10)" (* "*") (cast_expression "(char *)(param_1 + 10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(byte **)(param_1 + 0x10) = pbVar7;" (assignment_expression "*(byte **)(param_1 + 0x10) = pbVar7" (pointer_expression "*(byte **)(param_1 + 0x10)" (* "*") (cast_expression "(byte **)(param_1 + 0x10)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "pbVar7")) (; ";")) (expression_statement "*(byte **)(param_1 + 0x18) = pbVar7;" (assignment_expression "*(byte **)(param_1 + 0x18) = pbVar7" (pointer_expression "*(byte **)(param_1 + 0x18)" (* "*") (cast_expression "(byte **)(param_1 + 0x18)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "pbVar7")) (; ";")) (expression_statement "uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);" (assignment_expression "uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7)" (identifier "uVar5") (= "=") (call_expression "FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7)" (identifier "FUN_0012aa4e") (argument_list "(*(undefined8 *)(param_1 + 0x28),pbVar7)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (identifier "pbVar7") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x20) = uVar5;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = uVar5" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }" (else "else") (compound_statement "{\n    uVar8 = FUN_001508b7();\n    if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }\n  }" ({ "{") (expression_statement "uVar8 = FUN_001508b7();" (assignment_expression "uVar8 = FUN_001508b7()" (identifier "uVar8") (= "=") (call_expression "FUN_001508b7()" (identifier "FUN_001508b7") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((int)uVar8 == 0) {\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }\n    else {\n      uVar8 = 7;\n    }" (if "if") (parenthesized_expression "((int)uVar8 == 0)" (( "(") (binary_expression "(int)uVar8 == 0" (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar9 = *(undefined1 **)(param_1 + 0x10);\n      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);\n      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }\n      *(char *)(param_1 + 10) = param_2;\n    }" ({ "{") (expression_statement "puVar9 = *(undefined1 **)(param_1 + 0x10);" (assignment_expression "puVar9 = *(undefined1 **)(param_1 + 0x10)" (identifier "puVar9") (= "=") (pointer_expression "*(undefined1 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined1 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);" (assignment_expression "puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe)" (identifier "puVar13") (= "=") (binary_expression "puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe)" (identifier "puVar9") (+ "+") (cast_expression "(int)(*(uint *)(param_1 + 0xc) & 0xfffffffe)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(*(uint *)(param_1 + 0xc) & 0xfffffffe)" (( "(") (binary_expression "*(uint *)(param_1 + 0xc) & 0xfffffffe" (pointer_expression "*(uint *)(param_1 + 0xc)" (* "*") (cast_expression "(uint *)(param_1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (& "&") (number_literal "0xfffffffe")) () ")"))))) (; ";")) (for_statement "for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }" (for "for") (( "(") (; ";") (binary_expression "puVar9 < puVar13" (identifier "puVar9") (< "<") (identifier "puVar13")) (; ";") (assignment_expression "puVar9 = puVar9 + 2" (identifier "puVar9") (= "=") (binary_expression "puVar9 + 2" (identifier "puVar9") (+ "+") (number_literal "2"))) () ")") (compound_statement "{\n        uVar1 = *puVar9;\n        *puVar9 = puVar9[1];\n        puVar9[1] = uVar1;\n      }" ({ "{") (expression_statement "uVar1 = *puVar9;" (assignment_expression "uVar1 = *puVar9" (identifier "uVar1") (= "=") (pointer_expression "*puVar9" (* "*") (identifier "puVar9"))) (; ";")) (expression_statement "*puVar9 = puVar9[1];" (assignment_expression "*puVar9 = puVar9[1]" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (subscript_expression "puVar9[1]" (identifier "puVar9") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar9[1] = uVar1;" (assignment_expression "puVar9[1] = uVar1" (subscript_expression "puVar9[1]" (identifier "puVar9") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (expression_statement "*(char *)(param_1 + 10) = param_2;" (assignment_expression "*(char *)(param_1 + 10) = param_2" (pointer_expression "*(char *)(param_1 + 10)" (* "*") (cast_expression "(char *)(param_1 + 10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}")) (else_clause "else {\n      uVar8 = 7;\n    }" (else "else") (compound_statement "{\n      uVar8 = 7;\n    }" ({ "{") (expression_statement "uVar8 = 7;" (assignment_expression "uVar8 = 7" (identifier "uVar8") (= "=") (number_literal "7")) (; ";")) (} "}")))) (} "}")))) (return_statement "return uVar8;" (return "return") (identifier "uVar8") (; ";")) (} "}")))

int function_1(type_1 *pMem,type_2 var_1)

{
  char cVar1;
  type_3 var_12;
  type_4 *var_3;
  type_4 var_9;
  int var_15;
  type_5 var_2;
  type_4 *var_5;
  char *var_16;
  type_4 *var_6;
  type_4 *var_7;
  char *var_17;
  type_4 *var_8;
  
  if ((pMem->enc == '\x01') || (var_1 == '\x01')) {
    if (var_1 == '\x01') {
      var_2 = pMem->n & 0xfffffffe;
      pMem->n = var_2;
      var_15 = var_2 * 2 + 1;
    }
    else {
      var_15 = pMem->n * 2 + 2;
    }
    var_3 = (type_4 *)pMem->z;
    var_6 = var_3 + pMem->n;
    var_5 = (type_4 *)var_4(pMem->db,(long)var_15);
    if (var_5 == (type_4 *)0x0) {
      var_15 = 7;
    }
    else {
      if (pMem->enc == '\x01') {
        var_7 = var_5;
        if (var_1 == '\x02') {
          while (var_3 < var_6) {
            var_8 = var_3 + 1;
            var_2 = (type_5)*var_3;
            if (var_2 < 0xc0) {
LAB_0015231b:
              *var_7 = (type_4)var_2;
              var_7[1] = (type_4)(var_2 >> 8);
              var_7 = var_7 + 2;
              var_3 = var_8;
            }
            else {
              var_2 = (type_5)""[var_2 - 0xc0];
              if ((var_6 == var_8) || (var_9 = var_3[1], (var_9 & 0xc0) != 0x80)) {
                if (var_2 < 0x80) {
                  var_2 = 0xfffd;
                }
                goto LAB_0015231b;
              }
              do {
                var_8 = var_8 + 1;
                var_2 = var_2 * 0x40 + (var_9 & 0x3f);
                if (var_6 == var_8) break;
                var_9 = *var_8;
              } while ((var_9 & 0xc0) == 0x80);
              if (var_2 < 0x80) {
                var_2 = 0xfffd;
                goto LAB_0015231b;
              }
              if ((var_2 & 0xfffff800) == 0xd800) {
                var_2 = 0xfffd;
                goto LAB_0015231b;
              }
              if ((var_2 & 0xfffffffe) == 0xfffe) {
                var_2 = 0xfffd;
                goto LAB_0015231b;
              }
              if (var_2 < 0x10000) goto LAB_0015231b;
              *var_7 = (type_4)(var_2 >> 10) & 0x3f | (type_4)(var_2 - 0x10000 >> 10) & 0xc0;
              var_7[1] = ((type_4)(var_2 - 0x10000 >> 0x12) & 3) - 0x28;
              var_7[2] = (type_4)var_2;
              var_7[3] = ((type_4)(var_2 >> 8) & 3) - 0x24;
              var_7 = var_7 + 4;
              var_3 = var_8;
            }
          }
        }
        else {
          while (var_3 < var_6) {
            var_8 = var_3 + 1;
            var_2 = (type_5)*var_3;
            if (var_2 < 0xc0) {
LAB_00152412:
              *var_7 = (type_4)(var_2 >> 8);
              var_7[1] = (type_4)var_2;
              var_7 = var_7 + 2;
              var_3 = var_8;
            }
            else {
              var_2 = (type_5)""[var_2 - 0xc0];
              if ((var_6 == var_8) || (var_9 = var_3[1], (var_9 & 0xc0) != 0x80)) {
                if (var_2 < 0x80) {
                  var_2 = 0xfffd;
                }
                goto LAB_00152412;
              }
              do {
                var_8 = var_8 + 1;
                var_2 = var_2 * 0x40 + (var_9 & 0x3f);
                if (var_6 == var_8) break;
                var_9 = *var_8;
              } while ((var_9 & 0xc0) == 0x80);
              if (var_2 < 0x80) {
                var_2 = 0xfffd;
                goto LAB_00152412;
              }
              if ((var_2 & 0xfffff800) == 0xd800) {
                var_2 = 0xfffd;
                goto LAB_00152412;
              }
              if ((var_2 & 0xfffffffe) == 0xfffe) {
                var_2 = 0xfffd;
                goto LAB_00152412;
              }
              if (var_2 < 0x10000) goto LAB_00152412;
              *var_7 = ((type_4)(var_2 - 0x10000 >> 0x12) & 3) - 0x28;
              var_7[1] = (type_4)(var_2 - 0x10000 >> 10) & 0xc0 | (type_4)(var_2 >> 10) & 0x3f;
              var_7[2] = ((type_4)(var_2 >> 8) & 3) - 0x24;
              var_7[3] = (type_4)var_2;
              var_7 = var_7 + 4;
              var_3 = var_8;
            }
          }
        }
        pMem->n = (int)var_7 - (int)var_5;
        var_8 = var_7 + 1;
        *var_7 = 0;
      }
      else {
        var_8 = var_5;
        if (pMem->enc == '\x02') {
          while (var_3 < var_6) {
            var_7 = var_3 + 2;
            var_2 = (type_5)var_3[1] * 0x100 + (type_5)*var_3;
            if ((var_2 - 0xd800 < 0x800) && (var_7 < var_6)) {
              var_2 = ((var_2 & 0x3c0) + 0x40) * 0x400 +
                      ((type_5)var_3[3] * 0x100 + (type_5)var_3[2] & 0x3ff) + (var_2 & 0x3f) * 0x400;
              *var_8 = (char)(var_2 >> 0x12) - 0x10;
              var_8[1] = ((type_4)(var_2 >> 0xc) & 0x3f) + 0x80;
              var_8[2] = ((type_4)(var_2 >> 6) & 0x3f) + 0x80;
              var_8[3] = ((type_4)var_2 & 0x3f) + 0x80;
              var_8 = var_8 + 4;
              var_3 = var_3 + 4;
            }
            else {
              var_9 = (type_4)var_2;
              var_3 = var_7;
              if (var_2 < 0x80) {
                *var_8 = var_9;
                var_8 = var_8 + 1;
              }
              else if (var_2 < 0x800) {
                *var_8 = (char)(var_2 >> 6) - 0x40;
                var_8[1] = (var_9 & 0x3f) + 0x80;
                var_8 = var_8 + 2;
              }
              else {
                *var_8 = (char)(var_2 >> 0xc) - 0x20;
                var_8[1] = ((type_4)(var_2 >> 6) & 0x3f) + 0x80;
                var_8[2] = (var_9 & 0x3f) + 0x80;
                var_8 = var_8 + 3;
              }
            }
          }
        }
        else {
          while (var_3 < var_6) {
            var_7 = var_3 + 2;
            var_2 = (type_5)*var_3 * 0x100 + (type_5)var_3[1];
            if ((var_2 - 0xd800 < 0x800) && (var_7 < var_6)) {
              var_2 = ((var_2 & 0x3c0) + 0x40) * 0x400 +
                      (var_10(var_3[2],var_3[3]) & 0x3ff) + (var_2 & 0x3f) * 0x400;
              *var_8 = (char)(var_2 >> 0x12) - 0x10;
              var_8[1] = ((type_4)(var_2 >> 0xc) & 0x3f) + 0x80;
              var_8[2] = ((type_4)(var_2 >> 6) & 0x3f) + 0x80;
              var_8[3] = ((type_4)var_2 & 0x3f) + 0x80;
              var_8 = var_8 + 4;
              var_3 = var_3 + 4;
            }
            else {
              var_9 = (type_4)var_2;
              var_3 = var_7;
              if (var_2 < 0x80) {
                *var_8 = var_9;
                var_8 = var_8 + 1;
              }
              else if (var_2 < 0x800) {
                *var_8 = (char)(var_2 >> 6) - 0x40;
                var_8[1] = (var_9 & 0x3f) + 0x80;
                var_8 = var_8 + 2;
              }
              else {
                *var_8 = (char)(var_2 >> 0xc) - 0x20;
                var_8[1] = ((type_4)(var_2 >> 6) & 0x3f) + 0x80;
                var_8[2] = (var_9 & 0x3f) + 0x80;
                var_8 = var_8 + 3;
              }
            }
          }
        }
        pMem->n = (int)var_8 - (int)var_5;
      }
      *var_8 = 0;
      var_12 = pMem->flags;
      var_11(pMem);
      pMem->flags = var_12 & 0x801d | 0x202;
      pMem->enc = var_1;
      pMem->z = (char *)var_5;
      pMem->zMalloc = (char *)var_5;
      var_15 = var_13(pMem->db,var_5);
      pMem->szMalloc = var_15;
      var_15 = 0;
    }
  }
  else {
    var_15 = var_14(pMem);
    if (var_15 == 0) {
      var_16 = pMem->z;
      var_17 = var_16 + (int)(pMem->n & 0xfffffffe);
      for (; var_16 < var_17; var_16 = var_16 + 2) {
        cVar1 = *var_16;
        *var_16 = var_16[1];
        var_16[1] = cVar1;
      }
      pMem->enc = var_1;
      var_15 = 0;
    }
    else {
      var_15 = 7;
    }
  }
  return var_15;
}


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

undefined8 MASKED(long param_1,char param_2)

{
  undefined1 uVar1;
  ushort uVar2;
  byte *pbVar3;
  byte bVar4;
  undefined4 uVar5;
  uint uVar6;
  byte *pbVar7;
  undefined8 uVar8;
  undefined1 *puVar9;
  byte *pbVar10;
  int iVar11;
  byte *pbVar12;
  undefined1 *puVar13;
  byte *pbVar14;
  
  if ((*(char *)(param_1 + 10) == '\x01') || (param_2 == '\x01')) {
    if (param_2 == '\x01') {
      uVar6 = *(uint *)(param_1 + 0xc) & 0xfffffffe;
      *(uint *)(param_1 + 0xc) = uVar6;
      iVar11 = uVar6 * 2 + 1;
    }
    else {
      iVar11 = *(int *)(param_1 + 0xc) * 2 + 2;
    }
    pbVar3 = *(byte **)(param_1 + 0x10);
    pbVar10 = pbVar3 + *(int *)(param_1 + 0xc);
    pbVar7 = (byte *)FUN_0012aaff(*(undefined8 *)(param_1 + 0x28),(long)iVar11);
    if (pbVar7 == (byte *)0x0) {
      uVar8 = 7;
    }
    else {
      if (*(char *)(param_1 + 10) == '\x01') {
        pbVar12 = pbVar7;
        if (param_2 == '\x02') {
          while (pbVar3 < pbVar10) {
            pbVar14 = pbVar3 + 1;
            uVar6 = (uint)*pbVar3;
            if (uVar6 < 0xc0) {
LAB_0015231b:
              *pbVar12 = (byte)uVar6;
              pbVar12[1] = (byte)(uVar6 >> 8);
              pbVar12 = pbVar12 + 2;
              pbVar3 = pbVar14;
            }
            else {
              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];
              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {
                if (uVar6 < 0x80) {
                  uVar6 = 0xfffd;
                }
                goto LAB_0015231b;
              }
              do {
                pbVar14 = pbVar14 + 1;
                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);
                if (pbVar10 == pbVar14) break;
                bVar4 = *pbVar14;
              } while ((bVar4 & 0xc0) == 0x80);
              if (uVar6 < 0x80) {
                uVar6 = 0xfffd;
                goto LAB_0015231b;
              }
              if ((uVar6 & 0xfffff800) == 0xd800) {
                uVar6 = 0xfffd;
                goto LAB_0015231b;
              }
              if ((uVar6 & 0xfffffffe) == 0xfffe) {
                uVar6 = 0xfffd;
                goto LAB_0015231b;
              }
              if (uVar6 < 0x10000) goto LAB_0015231b;
              *pbVar12 = (byte)(uVar6 >> 10) & 0x3f | (byte)(uVar6 - 0x10000 >> 10) & 0xc0;
              pbVar12[1] = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;
              pbVar12[2] = (byte)uVar6;
              pbVar12[3] = ((byte)(uVar6 >> 8) & 3) - 0x24;
              pbVar12 = pbVar12 + 4;
              pbVar3 = pbVar14;
            }
          }
        }
        else {
          while (pbVar3 < pbVar10) {
            pbVar14 = pbVar3 + 1;
            uVar6 = (uint)*pbVar3;
            if (uVar6 < 0xc0) {
LAB_00152412:
              *pbVar12 = (byte)(uVar6 >> 8);
              pbVar12[1] = (byte)uVar6;
              pbVar12 = pbVar12 + 2;
              pbVar3 = pbVar14;
            }
            else {
              uVar6 = (uint)(byte)(&DAT_00200520)[uVar6 - 0xc0];
              if ((pbVar10 == pbVar14) || (bVar4 = pbVar3[1], (bVar4 & 0xc0) != 0x80)) {
                if (uVar6 < 0x80) {
                  uVar6 = 0xfffd;
                }
                goto LAB_00152412;
              }
              do {
                pbVar14 = pbVar14 + 1;
                uVar6 = uVar6 * 0x40 + (bVar4 & 0x3f);
                if (pbVar10 == pbVar14) break;
                bVar4 = *pbVar14;
              } while ((bVar4 & 0xc0) == 0x80);
              if (uVar6 < 0x80) {
                uVar6 = 0xfffd;
                goto LAB_00152412;
              }
              if ((uVar6 & 0xfffff800) == 0xd800) {
                uVar6 = 0xfffd;
                goto LAB_00152412;
              }
              if ((uVar6 & 0xfffffffe) == 0xfffe) {
                uVar6 = 0xfffd;
                goto LAB_00152412;
              }
              if (uVar6 < 0x10000) goto LAB_00152412;
              *pbVar12 = ((byte)(uVar6 - 0x10000 >> 0x12) & 3) - 0x28;
              pbVar12[1] = (byte)(uVar6 - 0x10000 >> 10) & 0xc0 | (byte)(uVar6 >> 10) & 0x3f;
              pbVar12[2] = ((byte)(uVar6 >> 8) & 3) - 0x24;
              pbVar12[3] = (byte)uVar6;
              pbVar12 = pbVar12 + 4;
              pbVar3 = pbVar14;
            }
          }
        }
        *(int *)(param_1 + 0xc) = (int)pbVar12 - (int)pbVar7;
        pbVar14 = pbVar12 + 1;
        *pbVar12 = 0;
      }
      else {
        pbVar14 = pbVar7;
        if (*(char *)(param_1 + 10) == '\x02') {
          while (pbVar3 < pbVar10) {
            pbVar12 = pbVar3 + 2;
            uVar6 = (uint)pbVar3[1] * 0x100 + (uint)*pbVar3;
            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {
              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +
                      ((uint)pbVar3[3] * 0x100 + (uint)pbVar3[2] & 0x3ff) + (uVar6 & 0x3f) * 0x400;
              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;
              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;
              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;
              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;
              pbVar14 = pbVar14 + 4;
              pbVar3 = pbVar3 + 4;
            }
            else {
              bVar4 = (byte)uVar6;
              pbVar3 = pbVar12;
              if (uVar6 < 0x80) {
                *pbVar14 = bVar4;
                pbVar14 = pbVar14 + 1;
              }
              else if (uVar6 < 0x800) {
                *pbVar14 = (char)(uVar6 >> 6) - 0x40;
                pbVar14[1] = (bVar4 & 0x3f) + 0x80;
                pbVar14 = pbVar14 + 2;
              }
              else {
                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;
                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;
                pbVar14[2] = (bVar4 & 0x3f) + 0x80;
                pbVar14 = pbVar14 + 3;
              }
            }
          }
        }
        else {
          while (pbVar3 < pbVar10) {
            pbVar12 = pbVar3 + 2;
            uVar6 = (uint)*pbVar3 * 0x100 + (uint)pbVar3[1];
            if ((uVar6 - 0xd800 < 0x800) && (pbVar12 < pbVar10)) {
              uVar6 = ((uVar6 & 0x3c0) + 0x40) * 0x400 +
                      (CONCAT11(pbVar3[2],pbVar3[3]) & 0x3ff) + (uVar6 & 0x3f) * 0x400;
              *pbVar14 = (char)(uVar6 >> 0x12) - 0x10;
              pbVar14[1] = ((byte)(uVar6 >> 0xc) & 0x3f) + 0x80;
              pbVar14[2] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;
              pbVar14[3] = ((byte)uVar6 & 0x3f) + 0x80;
              pbVar14 = pbVar14 + 4;
              pbVar3 = pbVar3 + 4;
            }
            else {
              bVar4 = (byte)uVar6;
              pbVar3 = pbVar12;
              if (uVar6 < 0x80) {
                *pbVar14 = bVar4;
                pbVar14 = pbVar14 + 1;
              }
              else if (uVar6 < 0x800) {
                *pbVar14 = (char)(uVar6 >> 6) - 0x40;
                pbVar14[1] = (bVar4 & 0x3f) + 0x80;
                pbVar14 = pbVar14 + 2;
              }
              else {
                *pbVar14 = (char)(uVar6 >> 0xc) - 0x20;
                pbVar14[1] = ((byte)(uVar6 >> 6) & 0x3f) + 0x80;
                pbVar14[2] = (bVar4 & 0x3f) + 0x80;
                pbVar14 = pbVar14 + 3;
              }
            }
          }
        }
        *(int *)(param_1 + 0xc) = (int)pbVar14 - (int)pbVar7;
      }
      *pbVar14 = 0;
      uVar2 = *(ushort *)(param_1 + 8);
      FUN_001428f4(param_1);
      *(ushort *)(param_1 + 8) = uVar2 & 0x801d | 0x202;
      *(char *)(param_1 + 10) = param_2;
      *(byte **)(param_1 + 0x10) = pbVar7;
      *(byte **)(param_1 + 0x18) = pbVar7;
      uVar5 = FUN_0012aa4e(*(undefined8 *)(param_1 + 0x28),pbVar7);
      *(undefined4 *)(param_1 + 0x20) = uVar5;
      uVar8 = 0;
    }
  }
  else {
    uVar8 = FUN_001508b7();
    if ((int)uVar8 == 0) {
      puVar9 = *(undefined1 **)(param_1 + 0x10);
      puVar13 = puVar9 + (int)(*(uint *)(param_1 + 0xc) & 0xfffffffe);
      for (; puVar9 < puVar13; puVar9 = puVar9 + 2) {
        uVar1 = *puVar9;
        *puVar9 = puVar9[1];
        puVar9[1] = uVar1;
      }
      *(char *)(param_1 + 10) = param_2;
    }
    else {
      uVar8 = 7;
    }
  }
  return uVar8;
}

