
int __regparm3 sqlite3BtreeDelete(BtCursor *pCur,u8 flags)

{
  int iVar1;
  char cVar2;
  u8 uVar3;
  ushort uVar4;
  ushort uVar5;
  ushort uVar6;
  Btree *pBVar7;
  BtShared *pBVar8;
  MemPage *pPage;
  KeyInfo *pKVar9;
  undefined4 uVar10;
  MemPage *pMVar11;
  u8 *pTemp;
  bool bVar12;
  char cVar13;
  u16 uVar14;
  uint idx;
  int iVar15;
  int iVar16;
  u8 *puVar17;
  int in_GS_OFFSET;
  Pgno local_44;
  int rc;
  CellInfo info;
  
  pBVar7 = pCur->pBtree;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  pBVar8 = pBVar7->pBt;
  if ((pCur->eState == '\x03') && (rc = btreeRestoreCursorPosition(pCur), iVar16 = rc, rc != 0))
  goto LAB_000692f5;
  cVar2 = pCur->iPage;
  pPage = pCur->pPage;
  uVar5 = pCur->ix;
  idx = (uint)uVar5;
  uVar6 = *(ushort *)(pPage->aCellIdx + idx * 2);
  uVar4 = pPage->maskPage;
  puVar17 = pPage->aData;
  if (pPage->nFree < 0) {
    iVar15 = btreeComputeFreeSpace(pPage);
    iVar16 = 0xb;
    if (iVar15 != 0) goto LAB_000692f5;
  }
  uVar3 = pPage->leaf;
  if ((flags & 2) == 0) {
joined_r0x000692c2:
    if ((uVar3 == '\0') && (rc = sqlite3BtreePrevious(pCur,0), iVar16 = rc, rc != 0))
    goto LAB_000692f5;
    bVar12 = false;
  }
  else if (((uVar3 == '\0') ||
           (uVar14 = cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)),
           (int)((pBVar8->usableSize * 2) / 3) <= (int)((uint)uVar14 + pPage->nFree + 1))) ||
          (bVar12 = true, pPage->nCell == 1)) {
    if (pCur->curIntKey == '\0') {
      rc = saveCursorKey(pCur);
      iVar16 = rc;
      if (rc != 0) goto LAB_000692f5;
      uVar3 = pPage->leaf;
      rc = 0;
    }
    else {
      getCellInfo(pCur);
      uVar10 = *(undefined4 *)((int)&(pCur->info).nKey + 4);
      rc = 0;
      *(int *)&pCur->nKey = (int)(pCur->info).nKey;
      *(undefined4 *)((int)&pCur->nKey + 4) = uVar10;
      uVar3 = pPage->leaf;
    }
    goto joined_r0x000692c2;
  }
  if ((pCur->curFlags & 0x20) == 0) {
    pKVar9 = pCur->pKeyInfo;
  }
  else {
    rc = saveAllCursors((BtShared *)pBVar8->pCursor,pCur->pgnoRoot,pCur);
    iVar16 = rc;
    if (rc != 0) goto LAB_000692f5;
    pKVar9 = pCur->pKeyInfo;
    rc = 0;
  }
  if ((pKVar9 == (KeyInfo *)0x0) && (pBVar7->hasIncrblobCur != '\0')) {
    invalidateIncrblobCursors
              ((Btree *)pBVar7->pBt,(Pgno)&pBVar7->hasIncrblobCur,(pCur->info).nKey,pCur->pgnoRoot,
               (Btree *)0x0);
  }
  rc = sqlite3PagerWrite(pPage->pDbPage);
  iVar16 = rc;
  if ((rc == 0) &&
     (rc = clearCell(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4),&info), iVar16 = rc,
     rc == 0)) {
    dropCell(pPage,idx,(uint)info.nSize,&rc);
    iVar16 = rc;
    if (rc == 0) {
      if (pPage->leaf == '\0') {
        pMVar11 = pCur->pPage;
        if ((pMVar11->nFree < 0) && (rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0))
        goto LAB_000692f5;
        if ((int)cVar2 < pCur->iPage + -1) {
          local_44 = pCur->apPage[cVar2 + 1]->pgno;
        }
        else {
          local_44 = pCur->pPage->pgno;
        }
        puVar17 = pMVar11->aData +
                  ((*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |
                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &
                  pMVar11->maskPage);
        if (puVar17 < pMVar11->aData + 4) {
          iVar16 = sqlite3CorruptError(0x11f26);
          goto LAB_000692f5;
        }
        uVar14 = (*pMVar11->xCellSize)(pMVar11,puVar17);
        pTemp = pBVar8->pTmpSpace;
        rc = sqlite3PagerWrite(pMVar11->pDbPage);
        iVar16 = rc;
        if (rc != 0) goto LAB_000692f5;
        insertCell(pPage,idx,puVar17 + -4,uVar14 + 4,pTemp,local_44,&rc);
        iVar16 = rc;
        if ((rc != 0) ||
           (dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0))
        goto LAB_000692f5;
      }
      rc = balance(pCur);
      iVar16 = rc;
      if (rc == 0) {
        if (cVar2 < pCur->iPage) {
          sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);
          cVar13 = pCur->iPage + -1;
          pCur->iPage = cVar13;
          do {
            iVar16 = (int)cVar13;
            do {
              cVar13 = (char)iVar16;
              pMVar11 = pCur->apPage[iVar16];
              if (cVar13 <= cVar2) {
                pCur->pPage = pMVar11;
                rc = balance(pCur);
                iVar16 = rc;
                if (rc != 0) goto LAB_000692f5;
                goto LAB_00069555;
              }
              iVar16 = iVar16 + -1;
              pCur->iPage = cVar13 + -1;
            } while (pMVar11 == (MemPage *)0x0);
            sqlite3PagerUnrefNotNull(pMVar11->pDbPage);
            cVar13 = pCur->iPage;
          } while( true );
        }
LAB_00069555:
        if (bVar12) {
          pCur->eState = '\x02';
          uVar4 = pPage->nCell;
          iVar16 = rc;
          if (uVar5 < uVar4) {
            pCur->skipNext = 1;
          }
          else {
            pCur->skipNext = -1;
            pCur->ix = uVar4 - 1;
          }
        }
        else {
          rc = moveToRoot(pCur);
          if ((flags & 2) != 0) {
            if (-1 < pCur->iPage) {
              btreeReleaseAllCursorPages(pCur);
            }
            pCur->eState = '\x03';
          }
          iVar16 = rc;
          if (rc == 0x10) {
            iVar16 = 0;
          }
        }
      }
    }
  }
LAB_000692f5:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar16;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



int __regparm3 FUN_000691f0(char *param_1,byte param_2)

{
  char cVar1;
  ushort uVar2;
  ushort uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 uVar7;
  bool bVar8;
  char cVar9;
  ushort uVar10;
  uint uVar11;
  int iVar12;
  int iVar13;
  int iVar14;
  int in_GS_OFFSET;
  undefined4 local_44;
  int local_38 [6];
  int local_20;
  
  iVar14 = *(int *)(param_1 + 8);
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar4 = *(int *)(iVar14 + 4);
  if ((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)
     ) goto LAB_000692f5;
  cVar1 = param_1[0x3c];
  iVar5 = *(int *)(param_1 + 0x6c);
  uVar2 = *(ushort *)(param_1 + 0x3e);
  uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2);
  uVar10 = *(ushort *)(iVar5 + 0x1a);
  iVar6 = *(int *)(iVar5 + 0x38);
  if (*(int *)(iVar5 + 0x14) < 0) {
    iVar12 = FUN_00038800();
    iVar13 = 0xb;
    if (iVar12 != 0) goto LAB_000692f5;
  }
  cVar9 = *(char *)(iVar5 + 8);
  if ((param_2 & 2) == 0) {
joined_r0x000692c2:
    if ((cVar9 == '\0') &&
       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))
    goto LAB_000692f5;
    bVar8 = false;
  }
  else if (((cVar9 == '\0') ||
           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),
           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=
           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||
          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {
    if (param_1[0x3d] == '\0') {
      local_38[0] = FUN_00067980();
      iVar13 = local_38[0];
      if (local_38[0] != 0) goto LAB_000692f5;
      cVar9 = *(char *)(iVar5 + 8);
      local_38[0] = 0;
    }
    else {
      FUN_000232c0();
      local_38[0] = 0;
      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);
      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);
      cVar9 = *(char *)(iVar5 + 8);
    }
    goto joined_r0x000692c2;
  }
  if ((param_1[1] & 0x20U) == 0) {
    iVar13 = *(int *)(param_1 + 0x68);
  }
  else {
    local_38[0] = FUN_00067b20();
    iVar13 = local_38[0];
    if (local_38[0] != 0) goto LAB_000692f5;
    iVar13 = *(int *)(param_1 + 0x68);
    local_38[0] = 0;
  }
  if ((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')) {
    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);
  }
  local_38[0] = FUN_0005f680();
  iVar13 = local_38[0];
  if ((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))
  {
    FUN_00038cc0(local_38);
    iVar13 = local_38[0];
    if (local_38[0] == 0) {
      if (*(char *)(iVar5 + 8) == '\0') {
        iVar14 = *(int *)(param_1 + 0x6c);
        if ((*(int *)(iVar14 + 0x14) < 0) &&
           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))
        goto LAB_000692f5;
        if ((int)cVar1 < param_1[0x3c] + -1) {
          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);
        }
        else {
          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);
        }
        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);
        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +
                 *(int *)(iVar14 + 0x38);
        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {
          iVar13 = FUN_000383f0();
          goto LAB_000692f5;
        }
        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);
        uVar7 = *(undefined4 *)(iVar4 + 0x54);
        local_38[0] = FUN_0005f680();
        iVar13 = local_38[0];
        if (((local_38[0] != 0) ||
            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],
            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))
        goto LAB_000692f5;
      }
      local_38[0] = FUN_00066cc0();
      iVar13 = local_38[0];
      if (local_38[0] == 0) {
        if (cVar1 < param_1[0x3c]) {
          FUN_0001f150();
          cVar9 = param_1[0x3c] + -1;
          param_1[0x3c] = cVar9;
          do {
            iVar14 = (int)cVar9;
            do {
              cVar9 = (char)iVar14;
              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);
              if (cVar9 <= cVar1) {
                *(int *)(param_1 + 0x6c) = iVar4;
                local_38[0] = FUN_00066cc0();
                iVar13 = local_38[0];
                if (local_38[0] != 0) goto LAB_000692f5;
                goto LAB_00069555;
              }
              iVar14 = iVar14 + -1;
              param_1[0x3c] = cVar9 + -1;
            } while (iVar4 == 0);
            FUN_0001f150();
            cVar9 = param_1[0x3c];
          } while( true );
        }
LAB_00069555:
        if (bVar8) {
          *param_1 = '\x02';
          uVar10 = *(ushort *)(iVar5 + 0x18);
          iVar13 = local_38[0];
          if (uVar2 < uVar10) {
            param_1[4] = '\x01';
            param_1[5] = '\0';
            param_1[6] = '\0';
            param_1[7] = '\0';
          }
          else {
            param_1[4] = -1;
            param_1[5] = -1;
            param_1[6] = -1;
            param_1[7] = -1;
            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;
          }
        }
        else {
          local_38[0] = FUN_00039f90();
          if ((param_2 & 2) != 0) {
            if (-1 < param_1[0x3c]) {
              FUN_00027e90();
            }
            *param_1 = '\x03';
          }
          iVar13 = local_38[0];
          if (local_38[0] == 0x10) {
            iVar13 = 0;
          }
        }
      }
    }
  }
LAB_000692f5:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar13;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a9ea0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,EAX
SUB ESP,0x4c
MOV EBP,dword ptr [EBX + 0x8]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x3c],EAX
XOR EAX,EAX
MOV EAX,dword ptr [EBP + 0x4]
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,EDX
AND EAX,0x2
CMP byte ptr [EBX],0x3
MOV byte ptr [ESP + 0xa],AL
JZ 0x00069330
MOVZX EAX,byte ptr [EBX + 0x3c]
MOV EDI,dword ptr [EBX + 0x6c]
MOV byte ptr [ESP + 0xb],AL
MOVZX EAX,word ptr [EBX + 0x3e]
MOV EDX,EAX
MOV word ptr [ESP + 0x1c],AX
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EDI + 0x40]
MOVZX ESI,word ptr [EAX + EDX*0x2]
MOV EAX,dword ptr [EDI + 0x14]
ROL SI,0x8
AND SI,word ptr [EDI + 0x1a]
MOVZX ESI,SI
ADD ESI,dword ptr [EDI + 0x38]
TEST EAX,EAX
JS 0x00069390
CMP byte ptr [ESP + 0xa],0x0
MOVZX EAX,byte ptr [EDI + 0x8]
JZ 0x000692c0
TEST AL,AL
JZ 0x0006929e
SUB ESP,0x8
PUSH ESI
PUSH EDI
CALL 0x0001f4d0
ADD ESP,0x10
MOVZX ECX,AX
MOV EDX,0xaaaaaaab
MOV EAX,dword ptr [ESP + 0x4]
ADD ECX,dword ptr [EDI + 0x14]
MOV EAX,dword ptr [EAX + 0x28]
ADD ECX,0x1
MOV dword ptr [ESP + 0x10],EAX
ADD EAX,EAX
MUL EDX
SHR EDX,0x1
CMP ECX,EDX
JL 0x00069370
CMP byte ptr [EBX + 0x3d],0x0
MOV EAX,EBX
JNZ 0x00069348
CALL 0x00067980
TEST EAX,EAX
MOV dword ptr [ESP + 0x24],EAX
JNZ 0x000692f5
MOVZX EAX,byte ptr [EDI + 0x8]
NOP
LEA ESI,[ESI]
TEST AL,AL
JZ 0x00069310
MOV dword ptr [ESP + 0x10],0x0
TEST byte ptr [EBX + 0x1],0x20
JNZ 0x000693b0
MOV ECX,dword ptr [EBX + 0x68]
TEST ECX,ECX
JZ 0x000693d8
MOV EAX,dword ptr [EDI + 0x48]
CALL 0x0005f680
TEST EAX,EAX
MOV dword ptr [ESP + 0x24],EAX
JZ 0x00069408
MOV ECX,dword ptr [ESP + 0x3c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x00069685
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x0
PUSH EBX
CALL 0x00068fe0
MOV dword ptr [ESP + 0x34],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000692c4
JMP 0x000692f5
MOV EAX,EBX
CALL 0x00068df0
TEST EAX,EAX
MOV dword ptr [ESP + 0x24],EAX
JZ 0x00069221
JMP 0x000692f5
CALL 0x000232c0
MOV EAX,dword ptr [EBX + 0x1c]
MOV EDX,dword ptr [EBX + 0x20]
MOV dword ptr [ESP + 0x24],0x0
MOV dword ptr [EBX + 0x30],EAX
MOV dword ptr [EBX + 0x34],EDX
MOVZX EAX,byte ptr [EDI + 0x8]
TEST AL,AL
JNZ 0x000692c4
JMP 0x00069310
CMP word ptr [EDI + 0x18],0x1
MOV dword ptr [ESP + 0x10],0x1
JNZ 0x000692cc
JMP 0x0006929e
MOV EAX,EDI
CALL 0x00038800
MOV EDX,EAX
MOV EAX,0xb
TEST EDX,EDX
JZ 0x0006925b
JMP 0x000692f5
MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [EBX + 0x38]
MOV ECX,EBX
MOV EAX,dword ptr [EAX + 0x8]
CALL 0x00067b20
TEST EAX,EAX
MOV dword ptr [ESP + 0x24],EAX
JNZ 0x000692f5
MOV ECX,dword ptr [EBX + 0x68]
TEST ECX,ECX
JNZ 0x000692e1
CMP byte ptr [EBP + 0xb],0x0
JZ 0x000692e1
SUB ESP,0x4
MOV EAX,dword ptr [EBP + 0x4]
MOV ECX,dword ptr [EBX + 0x38]
PUSH 0x0
LEA EDX,[EBP + 0xb]
PUSH dword ptr [EBX + 0x20]
PUSH dword ptr [EBX + 0x1c]
CALL 0x00027aa0
ADD ESP,0x10
JMP 0x000692e1
LEA ECX,[ESP + 0x28]
MOV EDX,ESI
MOV EAX,EDI
CALL 0x00064e80
TEST EAX,EAX
MOV dword ptr [ESP + 0x24],EAX
JNZ 0x000692f5
MOVZX ECX,word ptr [ESP + 0x3a]
SUB ESP,0xc
MOV EAX,EDI
LEA EBP,[ESP + 0x30]
PUSH EBP
MOV EDX,dword ptr [ESP + 0x1c]
CALL 0x00038cc0
MOV EAX,dword ptr [ESP + 0x34]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000692f5
CMP byte ptr [EDI + 0x8],0x0
JNZ 0x00069534
MOV ESI,dword ptr [EBX + 0x6c]
MOV EDX,dword ptr [ESI + 0x14]
TEST EDX,EDX
JS 0x000695a0
MOVSX EAX,byte ptr [EBX + 0x3c]
MOVSX EDX,byte ptr [ESP + 0xb]
SUB EAX,0x1
CMP EAX,EDX
JG 0x00069588
MOV EAX,dword ptr [EBX + 0x6c]
MOV EAX,dword ptr [EAX + 0x4]
MOV dword ptr [ESP + 0x18],EAX
MOVZX ECX,word ptr [ESI + 0x18]
MOV EDX,dword ptr [ESI + 0x40]
MOV EAX,dword ptr [ESI + 0x38]
MOVZX ECX,word ptr [EDX + ECX*0x2 + -0x2]
ROL CX,0x8
AND CX,word ptr [ESI + 0x1a]
MOVZX ECX,CX
ADD ECX,EAX
ADD EAX,0x4
CMP ECX,EAX
JC 0x00069676
SUB ESP,0x8
PUSH ECX
MOV dword ptr [ESP + 0x20],ECX
PUSH ESI
CALL dword ptr [ESI + 0x4c]
MOV word ptr [ESP + 0x2e],AX
MOV EAX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EAX + 0x54]
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [ESI + 0x48]
CALL 0x0005f680
MOV dword ptr [ESP + 0x34],EAX
ADD ESP,0x10
TEST EAX,EAX
MOV ECX,dword ptr [ESP + 0x14]
JNZ 0x000692f5
MOVZX EAX,word ptr [ESP + 0x1e]
PUSH EBP
SUB ECX,0x4
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x10],EAX
ADD EAX,0x4
PUSH EAX
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,EDI
CALL 0x00065060
MOVZX EDX,word ptr [ESI + 0x18]
MOV EAX,dword ptr [ESP + 0x34]
ADD ESP,0x10
SUB EDX,0x1
TEST EAX,EAX
JNZ 0x000692f5
SUB ESP,0xc
MOV EAX,ESI
PUSH EBP
MOV ECX,dword ptr [ESP + 0x14]
CALL 0x00038cc0
MOV EAX,dword ptr [ESP + 0x34]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000692f5
MOV EAX,EBX
CALL 0x00066cc0
TEST EAX,EAX
MOV dword ptr [ESP + 0x24],EAX
JNZ 0x000692f5
MOVZX EAX,byte ptr [ESP + 0xb]
CMP AL,byte ptr [EBX + 0x3c]
JL 0x00069610
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x000695d0
MOV byte ptr [EBX],0x2
MOVZX EAX,word ptr [EDI + 0x18]
CMP word ptr [ESP + 0x1c],AX
JC 0x000695c0
SUB EAX,0x1
MOV dword ptr [EBX + 0x4],0xffffffff
MOV word ptr [EBX + 0x3e],AX
MOV EAX,dword ptr [ESP + 0x24]
JMP 0x000692f5
MOV EAX,dword ptr [EBX + EDX*0x4 + 0x74]
MOV EAX,dword ptr [EAX + 0x4]
MOV dword ptr [ESP + 0x18],EAX
JMP 0x0006947e
MOV EAX,ESI
CALL 0x00038800
TEST EAX,EAX
MOV dword ptr [ESP + 0x24],EAX
JZ 0x00069460
JMP 0x000692f5
MOV dword ptr [EBX + 0x4],0x1
MOV EAX,dword ptr [ESP + 0x24]
JMP 0x000692f5
MOV EAX,EBX
CALL 0x00039f90
CMP byte ptr [ESP + 0xa],0x0
MOV dword ptr [ESP + 0x24],EAX
JZ 0x000695f6
CMP byte ptr [EBX + 0x3c],0x0
JS 0x000695f3
MOV EAX,EBX
CALL 0x00027e90
MOV EAX,dword ptr [ESP + 0x24]
MOV byte ptr [EBX],0x3
CMP EAX,0x10
MOV EDX,0x0
CMOVZ EAX,EDX
JMP 0x000692f5
MOV EAX,dword ptr [EBX + 0x6c]
MOV EAX,dword ptr [EAX + 0x48]
CALL 0x0001f150
MOVZX EAX,byte ptr [EBX + 0x3c]
SUB EAX,0x1
MOV byte ptr [EBX + 0x3c],AL
MOVSX EAX,AL
JMP 0x0006963d
LEA ECX,[EAX + -0x1]
SUB EAX,0x1
TEST EDX,EDX
MOV byte ptr [EBX + 0x3c],CL
JNZ 0x00069668
CMP byte ptr [ESP + 0xb],AL
MOV EDX,dword ptr [EBX + EAX*0x4 + 0x70]
JL 0x00069630
MOV dword ptr [EBX + 0x6c],EDX
MOV EAX,EBX
CALL 0x00066cc0
TEST EAX,EAX
MOV dword ptr [ESP + 0x24],EAX
JZ 0x00069555
JMP 0x000692f5
MOV EAX,dword ptr [EDX + 0x48]
CALL 0x0001f150
MOVZX EAX,byte ptr [EBX + 0x3c]
JMP 0x00069625
MOV EAX,0x11f26
CALL 0x000383f0
JMP 0x000692f5
CALL 0x000a9ea0
(translation_unit "int __regparm3 FUN_000691f0(char *param_1,byte param_2)\n\n{\n  char cVar1;\n  ushort uVar2;\n  ushort uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  char cVar9;\n  ushort uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  undefined4 local_44;\n  int local_38 [6];\n  int local_20;\n  \n  iVar14 = *(int *)(param_1 + 8);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(iVar14 + 4);\n  if ((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)\n     ) goto LAB_000692f5;\n  cVar1 = param_1[0x3c];\n  iVar5 = *(int *)(param_1 + 0x6c);\n  uVar2 = *(ushort *)(param_1 + 0x3e);\n  uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2);\n  uVar10 = *(ushort *)(iVar5 + 0x1a);\n  iVar6 = *(int *)(iVar5 + 0x38);\n  if (*(int *)(iVar5 + 0x14) < 0) {\n    iVar12 = FUN_00038800();\n    iVar13 = 0xb;\n    if (iVar12 != 0) goto LAB_000692f5;\n  }\n  cVar9 = *(char *)(iVar5 + 8);\n  if ((param_2 & 2) == 0) {\njoined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;\n    bVar8 = false;\n  }\n  else if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }\n  if ((param_1[1] & 0x20U) == 0) {\n    iVar13 = *(int *)(param_1 + 0x68);\n  }\n  else {\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }\n  if ((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')) {\n    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);\n  }\n  local_38[0] = FUN_0005f680();\n  iVar13 = local_38[0];\n  if ((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))\n  {\n    FUN_00038cc0(local_38);\n    iVar13 = local_38[0];\n    if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }\n  }\nLAB_000692f5:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar13;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}\n\n" (function_definition "int __regparm3 FUN_000691f0(char *param_1,byte param_2)\n\n{\n  char cVar1;\n  ushort uVar2;\n  ushort uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  char cVar9;\n  ushort uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  undefined4 local_44;\n  int local_38 [6];\n  int local_20;\n  \n  iVar14 = *(int *)(param_1 + 8);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(iVar14 + 4);\n  if ((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)\n     ) goto LAB_000692f5;\n  cVar1 = param_1[0x3c];\n  iVar5 = *(int *)(param_1 + 0x6c);\n  uVar2 = *(ushort *)(param_1 + 0x3e);\n  uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2);\n  uVar10 = *(ushort *)(iVar5 + 0x1a);\n  iVar6 = *(int *)(iVar5 + 0x38);\n  if (*(int *)(iVar5 + 0x14) < 0) {\n    iVar12 = FUN_00038800();\n    iVar13 = 0xb;\n    if (iVar12 != 0) goto LAB_000692f5;\n  }\n  cVar9 = *(char *)(iVar5 + 8);\n  if ((param_2 & 2) == 0) {\njoined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;\n    bVar8 = false;\n  }\n  else if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }\n  if ((param_1[1] & 0x20U) == 0) {\n    iVar13 = *(int *)(param_1 + 0x68);\n  }\n  else {\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }\n  if ((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')) {\n    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);\n  }\n  local_38[0] = FUN_0005f680();\n  iVar13 = local_38[0];\n  if ((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))\n  {\n    FUN_00038cc0(local_38);\n    iVar13 = local_38[0];\n    if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }\n  }\nLAB_000692f5:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar13;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000691f0(char *param_1,byte param_2)" identifier (parameter_list "(char *param_1,byte param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  ushort uVar2;\n  ushort uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  char cVar9;\n  ushort uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  undefined4 local_44;\n  int local_38 [6];\n  int local_20;\n  \n  iVar14 = *(int *)(param_1 + 8);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(iVar14 + 4);\n  if ((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)\n     ) goto LAB_000692f5;\n  cVar1 = param_1[0x3c];\n  iVar5 = *(int *)(param_1 + 0x6c);\n  uVar2 = *(ushort *)(param_1 + 0x3e);\n  uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2);\n  uVar10 = *(ushort *)(iVar5 + 0x1a);\n  iVar6 = *(int *)(iVar5 + 0x38);\n  if (*(int *)(iVar5 + 0x14) < 0) {\n    iVar12 = FUN_00038800();\n    iVar13 = 0xb;\n    if (iVar12 != 0) goto LAB_000692f5;\n  }\n  cVar9 = *(char *)(iVar5 + 8);\n  if ((param_2 & 2) == 0) {\njoined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;\n    bVar8 = false;\n  }\n  else if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }\n  if ((param_1[1] & 0x20U) == 0) {\n    iVar13 = *(int *)(param_1 + 0x68);\n  }\n  else {\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }\n  if ((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')) {\n    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);\n  }\n  local_38[0] = FUN_0005f680();\n  iVar13 = local_38[0];\n  if ((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))\n  {\n    FUN_00038cc0(local_38);\n    iVar13 = local_38[0];\n    if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }\n  }\nLAB_000692f5:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar13;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "ushort uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "char cVar9;" primitive_type identifier ;) (declaration "ushort uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "int local_38 [6];" primitive_type (array_declarator "local_38 [6]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar14 = *(int *)(param_1 + 8);" (assignment_expression "iVar14 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(iVar14 + 4);" (assignment_expression "iVar4 = *(int *)(iVar14 + 4)" identifier = (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)\n     ) goto LAB_000692f5;" if (parenthesized_expression "((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)\n     )" ( (binary_expression "(*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)" (parenthesized_expression "(*param_1 == '\x03')" ( (binary_expression "*param_1 == '\x03'" (pointer_expression "*param_1" * identifier) == (char_literal "'\x03'" ' escape_sequence ')) )) && (parenthesized_expression "(local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)" ( (comma_expression "local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "local_38[0] = FUN_00068df0()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00068df0()" identifier (argument_list "()" ( )))) , (comma_expression "iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) , (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal))) ))) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (expression_statement "cVar1 = param_1[0x3c];" (assignment_expression "cVar1 = param_1[0x3c]" identifier = (subscript_expression "param_1[0x3c]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x6c)" identifier = (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(ushort *)(param_1 + 0x3e);" (assignment_expression "uVar2 = *(ushort *)(param_1 + 0x3e)" identifier = (pointer_expression "*(ushort *)(param_1 + 0x3e)" * (cast_expression "(ushort *)(param_1 + 0x3e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e)" ( (binary_expression "param_1 + 0x3e" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2);" (assignment_expression "uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2)" identifier = (pointer_expression "*(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2)" * (cast_expression "(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2)" ( (binary_expression "*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2" (pointer_expression "*(int *)(iVar5 + 0x40)" * (cast_expression "(int *)(iVar5 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x40)" ( (binary_expression "iVar5 + 0x40" identifier + number_literal) )))) + (binary_expression "(uint)uVar2 * 2" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) (expression_statement "uVar10 = *(ushort *)(iVar5 + 0x1a);" (assignment_expression "uVar10 = *(ushort *)(iVar5 + 0x1a)" identifier = (pointer_expression "*(ushort *)(iVar5 + 0x1a)" * (cast_expression "(ushort *)(iVar5 + 0x1a)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1a)" ( (binary_expression "iVar5 + 0x1a" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(iVar5 + 0x38);" (assignment_expression "iVar6 = *(int *)(iVar5 + 0x38)" identifier = (pointer_expression "*(int *)(iVar5 + 0x38)" * (cast_expression "(int *)(iVar5 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x38)" ( (binary_expression "iVar5 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar5 + 0x14) < 0) {\n    iVar12 = FUN_00038800();\n    iVar13 = 0xb;\n    if (iVar12 != 0) goto LAB_000692f5;\n  }" if (parenthesized_expression "(*(int *)(iVar5 + 0x14) < 0)" ( (binary_expression "*(int *)(iVar5 + 0x14) < 0" (pointer_expression "*(int *)(iVar5 + 0x14)" * (cast_expression "(int *)(iVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    iVar12 = FUN_00038800();\n    iVar13 = 0xb;\n    if (iVar12 != 0) goto LAB_000692f5;\n  }" { (expression_statement "iVar12 = FUN_00038800();" (assignment_expression "iVar12 = FUN_00038800()" identifier = (call_expression "FUN_00038800()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = 0xb;" (assignment_expression "iVar13 = 0xb" identifier = number_literal) ;) (if_statement "if (iVar12 != 0) goto LAB_000692f5;" if (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) })) (expression_statement "cVar9 = *(char *)(iVar5 + 8);" (assignment_expression "cVar9 = *(char *)(iVar5 + 8)" identifier = (pointer_expression "*(char *)(iVar5 + 8)" * (cast_expression "(char *)(iVar5 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((param_2 & 2) == 0) {\njoined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;\n    bVar8 = false;\n  }\n  else if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }" if (parenthesized_expression "((param_2 & 2) == 0)" ( (binary_expression "(param_2 & 2) == 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\njoined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;\n    bVar8 = false;\n  }" { (labeled_statement "joined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;" statement_identifier : (if_statement "if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;" if (parenthesized_expression "((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))" ( (binary_expression "(cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0)" (parenthesized_expression "(cVar9 == '\0')" ( (binary_expression "cVar9 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0)" ( (comma_expression "local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "local_38[0] = FUN_00068fe0(param_1,0)" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00068fe0(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) , (comma_expression "iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) , (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal))) ))) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;))) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) }) (else_clause "else if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }" else (if_statement "if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }" if (parenthesized_expression "(((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1))" ( (binary_expression "((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)" (parenthesized_expression "((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)))" ( (binary_expression "(cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))" (parenthesized_expression "(cVar9 == '\0')" ( (binary_expression "cVar9 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))" ( (comma_expression "uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)" (assignment_expression "uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6)" identifier = (call_expression "FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6)" identifier (argument_list "(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6)" ( identifier , (binary_expression "(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6" (call_expression "(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uVar3 << 8 | uVar3 >> 8) & uVar10)" ( (binary_expression "(uVar3 << 8 | uVar3 >> 8) & uVar10" (parenthesized_expression "(uVar3 << 8 | uVar3 >> 8)" ( (binary_expression "uVar3 << 8 | uVar3 >> 8" (binary_expression "uVar3 << 8" identifier << number_literal) | (binary_expression "uVar3 >> 8" identifier >> number_literal)) )) & identifier) ))) + identifier) )))) , (binary_expression "(int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)" (cast_expression "(int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(*(int *)(iVar4 + 0x28) * 2) / 3)" ( (binary_expression "(uint)(*(int *)(iVar4 + 0x28) * 2) / 3" (call_expression "(uint)(*(int *)(iVar4 + 0x28) * 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(iVar4 + 0x28) * 2)" ( (binary_expression "*(int *)(iVar4 + 0x28) * 2" (pointer_expression "*(int *)(iVar4 + 0x28)" * (cast_expression "(int *)(iVar4 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x28)" ( (binary_expression "iVar4 + 0x28" identifier + number_literal) )))) * number_literal) ))) / number_literal) ))) <= (cast_expression "(int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)" ( (binary_expression "(uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1" (binary_expression "(uVar11 & 0xffff) + *(int *)(iVar5 + 0x14)" (parenthesized_expression "(uVar11 & 0xffff)" ( (binary_expression "uVar11 & 0xffff" identifier & number_literal) )) + (pointer_expression "*(int *)(iVar5 + 0x14)" * (cast_expression "(int *)(iVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) ))))) + number_literal) ))))) ))) )) || (parenthesized_expression "(bVar8 = true, *(short *)(iVar5 + 0x18) == 1)" ( (comma_expression "bVar8 = true, *(short *)(iVar5 + 0x18) == 1" (assignment_expression "bVar8 = true" identifier = true) , (binary_expression "*(short *)(iVar5 + 0x18) == 1" (pointer_expression "*(short *)(iVar5 + 0x18)" * (cast_expression "(short *)(iVar5 + 0x18)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) )))) == number_literal)) ))) )) (compound_statement "{\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }" { (if_statement "if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }" if (parenthesized_expression "(param_1[0x3d] == '\0')" ( (binary_expression "param_1[0x3d] == '\0'" (subscript_expression "param_1[0x3d]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }" { (expression_statement "local_38[0] = FUN_00067980();" (assignment_expression "local_38[0] = FUN_00067980()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00067980()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (local_38[0] != 0) goto LAB_000692f5;" if (parenthesized_expression "(local_38[0] != 0)" ( (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (expression_statement "cVar9 = *(char *)(iVar5 + 8);" (assignment_expression "cVar9 = *(char *)(iVar5 + 8)" identifier = (pointer_expression "*(char *)(iVar5 + 8)" * (cast_expression "(char *)(iVar5 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_38[0] = 0;" (assignment_expression "local_38[0] = 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }" else (compound_statement "{\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }" { (expression_statement "FUN_000232c0();" (call_expression "FUN_000232c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_38[0] = 0;" (assignment_expression "local_38[0] = 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c)" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20)" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" * (cast_expression "(undefined4 *)(param_1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (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) ))))) ;) (expression_statement "cVar9 = *(char *)(iVar5 + 8);" (assignment_expression "cVar9 = *(char *)(iVar5 + 8)" identifier = (pointer_expression "*(char *)(iVar5 + 8)" * (cast_expression "(char *)(iVar5 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) ))))) ;) }))) (goto_statement "goto joined_r0x000692c2;" goto statement_identifier ;) })))) (if_statement "if ((param_1[1] & 0x20U) == 0) {\n    iVar13 = *(int *)(param_1 + 0x68);\n  }\n  else {\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }" if (parenthesized_expression "((param_1[1] & 0x20U) == 0)" ( (binary_expression "(param_1[1] & 0x20U) == 0" (parenthesized_expression "(param_1[1] & 0x20U)" ( (binary_expression "param_1[1] & 0x20U" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar13 = *(int *)(param_1 + 0x68);\n  }" { (expression_statement "iVar13 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar13 = *(int *)(param_1 + 0x68)" identifier = (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }" else (compound_statement "{\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }" { (expression_statement "local_38[0] = FUN_00067b20();" (assignment_expression "local_38[0] = FUN_00067b20()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00067b20()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (local_38[0] != 0) goto LAB_000692f5;" if (parenthesized_expression "(local_38[0] != 0)" ( (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (expression_statement "iVar13 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar13 = *(int *)(param_1 + 0x68)" identifier = (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (expression_statement "local_38[0] = 0;" (assignment_expression "local_38[0] = 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) = number_literal) ;) }))) (if_statement "if ((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')) {\n    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);\n  }" if (parenthesized_expression "((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0'))" ( (binary_expression "(iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')" (parenthesized_expression "(iVar13 == 0)" ( (binary_expression "iVar13 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(char *)(iVar14 + 0xb) != '\0')" ( (binary_expression "*(char *)(iVar14 + 0xb) != '\0'" (pointer_expression "*(char *)(iVar14 + 0xb)" * (cast_expression "(char *)(iVar14 + 0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xb)" ( (binary_expression "iVar14 + 0xb" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);\n  }" { (expression_statement "FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);" (call_expression "FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) , (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) )))) , number_literal ))) ;) })) (expression_statement "local_38[0] = FUN_0005f680();" (assignment_expression "local_38[0] = FUN_0005f680()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_0005f680()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if ((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))\n  {\n    FUN_00038cc0(local_38);\n    iVar13 = local_38[0];\n    if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }\n  }" if (parenthesized_expression "((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))" ( (binary_expression "(local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0)" (parenthesized_expression "(local_38[0] == 0)" ( (binary_expression "local_38[0] == 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "(local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0)" ( (comma_expression "local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0" (assignment_expression "local_38[0] = FUN_00064e80()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00064e80()" identifier (argument_list "()" ( )))) , (comma_expression "iVar13 = local_38[0], local_38[0] == 0" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) , (binary_expression "local_38[0] == 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) == number_literal))) ))) )) (compound_statement "{\n    FUN_00038cc0(local_38);\n    iVar13 = local_38[0];\n    if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }\n  }" { (expression_statement "FUN_00038cc0(local_38);" (call_expression "FUN_00038cc0(local_38)" identifier (argument_list "(local_38)" ( identifier ))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }" if (parenthesized_expression "(local_38[0] == 0)" ( (binary_expression "local_38[0] == 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }" { (if_statement "if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }" if (parenthesized_expression "(*(char *)(iVar5 + 8) == '\0')" ( (binary_expression "*(char *)(iVar5 + 8) == '\0'" (pointer_expression "*(char *)(iVar5 + 8)" * (cast_expression "(char *)(iVar5 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }" { (expression_statement "iVar14 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar14 = *(int *)(param_1 + 0x6c)" identifier = (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (if_statement "if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;" if (parenthesized_expression "((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))" ( (binary_expression "(*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0)" (parenthesized_expression "(*(int *)(iVar14 + 0x14) < 0)" ( (binary_expression "*(int *)(iVar14 + 0x14) < 0" (pointer_expression "*(int *)(iVar14 + 0x14)" * (cast_expression "(int *)(iVar14 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x14)" ( (binary_expression "iVar14 + 0x14" identifier + number_literal) )))) < number_literal) )) && (parenthesized_expression "(local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0)" ( (comma_expression "local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "local_38[0] = FUN_00038800()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00038800()" identifier (argument_list "()" ( )))) , (comma_expression "iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) , (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal))) ))) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (if_statement "if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }" if (parenthesized_expression "((int)cVar1 < param_1[0x3c] + -1)" ( (binary_expression "(int)cVar1 < param_1[0x3c] + -1" (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) < (binary_expression "param_1[0x3c] + -1" (subscript_expression "param_1[0x3c]" identifier [ number_literal ]) + number_literal)) )) (compound_statement "{\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }" { (expression_statement "local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);" (assignment_expression "local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4)" ( (binary_expression "*(int *)(param_1 + cVar1 * 4 + 0x74) + 4" (pointer_expression "*(int *)(param_1 + cVar1 * 4 + 0x74)" * (cast_expression "(int *)(param_1 + cVar1 * 4 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + cVar1 * 4 + 0x74)" ( (binary_expression "param_1 + cVar1 * 4 + 0x74" (binary_expression "param_1 + cVar1 * 4" identifier + (binary_expression "cVar1 * 4" identifier * number_literal)) + number_literal) )))) + number_literal) ))))) ;) }) (else_clause "else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }" else (compound_statement "{\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }" { (expression_statement "local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);" (assignment_expression "local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x6c) + 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x6c) + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x6c) + 4)" ( (binary_expression "*(int *)(param_1 + 0x6c) + 4" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) + number_literal) ))))) ;) }))) (expression_statement "uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);" (assignment_expression "uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2)" identifier = (pointer_expression "*(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2)" * (cast_expression "(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2)" ( (binary_expression "*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2" (binary_expression "*(int *)(iVar14 + 0x40) + -2" (pointer_expression "*(int *)(iVar14 + 0x40)" * (cast_expression "(int *)(iVar14 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x40)" ( (binary_expression "iVar14 + 0x40" identifier + number_literal) )))) + number_literal) + (binary_expression "(uint)*(ushort *)(iVar14 + 0x18) * 2" (binary_expression "(uint)*(ushort *)(iVar14 + 0x18)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(iVar14 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x18)" ( (binary_expression "iVar14 + 0x18" identifier + number_literal) )))) * number_literal)) ))))) ;) (expression_statement "uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);" (assignment_expression "uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38)" identifier = (binary_expression "(uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38)" (call_expression "(uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a))" ( (binary_expression "(uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)" (parenthesized_expression "(uVar10 << 8 | uVar10 >> 8)" ( (binary_expression "uVar10 << 8 | uVar10 >> 8" (binary_expression "uVar10 << 8" identifier << number_literal) | (binary_expression "uVar10 >> 8" identifier >> number_literal)) )) & (pointer_expression "*(ushort *)(iVar14 + 0x1a)" * (cast_expression "(ushort *)(iVar14 + 0x1a)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x1a)" ( (binary_expression "iVar14 + 0x1a" identifier + number_literal) ))))) ))) + (pointer_expression "*(int *)(iVar14 + 0x38)" * (cast_expression "(int *)(iVar14 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x38)" ( (binary_expression "iVar14 + 0x38" identifier + number_literal) )))))) ;) (if_statement "if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }" if (parenthesized_expression "(uVar11 < *(int *)(iVar14 + 0x38) + 4U)" ( (binary_expression "uVar11 < *(int *)(iVar14 + 0x38) + 4U" identifier < (binary_expression "*(int *)(iVar14 + 0x38) + 4U" (pointer_expression "*(int *)(iVar14 + 0x38)" * (cast_expression "(int *)(iVar14 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x38)" ( (binary_expression "iVar14 + 0x38" identifier + number_literal) )))) + number_literal)) )) (compound_statement "{\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }" { (expression_statement "iVar13 = FUN_000383f0();" (assignment_expression "iVar13 = FUN_000383f0()" identifier = (call_expression "FUN_000383f0()" identifier (argument_list "()" ( )))) ;) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;) })) (expression_statement "uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);" (assignment_expression "uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11)" identifier = (call_expression "(**(code **)(iVar14 + 0x4c))(iVar14,uVar11)" (parenthesized_expression "(**(code **)(iVar14 + 0x4c))" ( (pointer_expression "**(code **)(iVar14 + 0x4c)" * (pointer_expression "*(code **)(iVar14 + 0x4c)" * (cast_expression "(code **)(iVar14 + 0x4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar14 + 0x4c)" ( (binary_expression "iVar14 + 0x4c" identifier + number_literal) ))))) )) (argument_list "(iVar14,uVar11)" ( identifier , identifier )))) ;) (expression_statement "uVar7 = *(undefined4 *)(iVar4 + 0x54);" (assignment_expression "uVar7 = *(undefined4 *)(iVar4 + 0x54)" identifier = (pointer_expression "*(undefined4 *)(iVar4 + 0x54)" * (cast_expression "(undefined4 *)(iVar4 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x54)" ( (binary_expression "iVar4 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "local_38[0] = FUN_0005f680();" (assignment_expression "local_38[0] = FUN_0005f680()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_0005f680()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;" if (parenthesized_expression "(((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))" ( (binary_expression "((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0)" (parenthesized_expression "((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0))" ( (binary_expression "(local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)" (parenthesized_expression "(local_38[0] != 0)" ( (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal) )) || (parenthesized_expression "(FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)" ( (comma_expression "FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0" (call_expression "FUN_00065060(uVar10 + 4,uVar7,local_44,local_38)" identifier (argument_list "(uVar10 + 4,uVar7,local_44,local_38)" ( (binary_expression "uVar10 + 4" identifier + number_literal) , identifier , identifier , identifier ))) , (comma_expression "iVar13 = local_38[0],\n            local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) , (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal))) ))) )) || (parenthesized_expression "(FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0)" ( (comma_expression "FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0" (call_expression "FUN_00038cc0(local_38)" identifier (argument_list "(local_38)" ( identifier ))) , (comma_expression "iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) , (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal))) ))) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) })) (expression_statement "local_38[0] = FUN_00066cc0();" (assignment_expression "local_38[0] = FUN_00066cc0()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00066cc0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }" if (parenthesized_expression "(local_38[0] == 0)" ( (binary_expression "local_38[0] == 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }" { (if_statement "if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }" if (parenthesized_expression "(cVar1 < param_1[0x3c])" ( (binary_expression "cVar1 < param_1[0x3c]" identifier < (subscript_expression "param_1[0x3c]" identifier [ number_literal ])) )) (compound_statement "{\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }" { (expression_statement "FUN_0001f150();" (call_expression "FUN_0001f150()" identifier (argument_list "()" ( ))) ;) (expression_statement "cVar9 = param_1[0x3c] + -1;" (assignment_expression "cVar9 = param_1[0x3c] + -1" identifier = (binary_expression "param_1[0x3c] + -1" (subscript_expression "param_1[0x3c]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "param_1[0x3c] = cVar9;" (assignment_expression "param_1[0x3c] = cVar9" (subscript_expression "param_1[0x3c]" identifier [ number_literal ]) = identifier) ;) (do_statement "do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );" do (compound_statement "{\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          }" { (expression_statement "iVar14 = (int)cVar9;" (assignment_expression "iVar14 = (int)cVar9" identifier = (cast_expression "(int)cVar9" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);" do (compound_statement "{\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            }" { (expression_statement "cVar9 = (char)iVar14;" (assignment_expression "cVar9 = (char)iVar14" identifier = (cast_expression "(char)iVar14" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);" (assignment_expression "iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70)" identifier = (pointer_expression "*(int *)(param_1 + iVar14 * 4 + 0x70)" * (cast_expression "(int *)(param_1 + iVar14 * 4 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar14 * 4 + 0x70)" ( (binary_expression "param_1 + iVar14 * 4 + 0x70" (binary_expression "param_1 + iVar14 * 4" identifier + (binary_expression "iVar14 * 4" identifier * number_literal)) + number_literal) ))))) ;) (if_statement "if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }" if (parenthesized_expression "(cVar9 <= cVar1)" ( (binary_expression "cVar9 <= cVar1" identifier <= identifier) )) (compound_statement "{\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }" { (expression_statement "*(int *)(param_1 + 0x6c) = iVar4;" (assignment_expression "*(int *)(param_1 + 0x6c) = iVar4" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = identifier) ;) (expression_statement "local_38[0] = FUN_00066cc0();" (assignment_expression "local_38[0] = FUN_00066cc0()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00066cc0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (local_38[0] != 0) goto LAB_000692f5;" if (parenthesized_expression "(local_38[0] != 0)" ( (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (goto_statement "goto LAB_00069555;" goto statement_identifier ;) })) (expression_statement "iVar14 = iVar14 + -1;" (assignment_expression "iVar14 = iVar14 + -1" identifier = (binary_expression "iVar14 + -1" identifier + number_literal)) ;) (expression_statement "param_1[0x3c] = cVar9 + -1;" (assignment_expression "param_1[0x3c] = cVar9 + -1" (subscript_expression "param_1[0x3c]" identifier [ number_literal ]) = (binary_expression "cVar9 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) ;) (expression_statement "FUN_0001f150();" (call_expression "FUN_0001f150()" identifier (argument_list "()" ( ))) ;) (expression_statement "cVar9 = param_1[0x3c];" (assignment_expression "cVar9 = param_1[0x3c]" identifier = (subscript_expression "param_1[0x3c]" identifier [ number_literal ])) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }" statement_identifier : (if_statement "if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }" { (expression_statement "*param_1 = '\x02';" (assignment_expression "*param_1 = '\x02'" (pointer_expression "*param_1" * identifier) = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "uVar10 = *(ushort *)(iVar5 + 0x18);" (assignment_expression "uVar10 = *(ushort *)(iVar5 + 0x18)" identifier = (pointer_expression "*(ushort *)(iVar5 + 0x18)" * (cast_expression "(ushort *)(iVar5 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }" if (parenthesized_expression "(uVar2 < uVar10)" ( (binary_expression "uVar2 < uVar10" identifier < identifier) )) (compound_statement "{\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }" { (expression_statement "param_1[4] = '\x01';" (assignment_expression "param_1[4] = '\x01'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "param_1[5] = '\0';" (assignment_expression "param_1[5] = '\0'" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_1[6] = '\0';" (assignment_expression "param_1[6] = '\0'" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_1[7] = '\0';" (assignment_expression "param_1[7] = '\0'" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }" else (compound_statement "{\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }" { (expression_statement "param_1[4] = -1;" (assignment_expression "param_1[4] = -1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = -1;" (assignment_expression "param_1[5] = -1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[6] = -1;" (assignment_expression "param_1[6] = -1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[7] = -1;" (assignment_expression "param_1[7] = -1" (subscript_expression "param_1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(ushort *)(param_1 + 0x3e) = uVar10 - 1;" (assignment_expression "*(ushort *)(param_1 + 0x3e) = uVar10 - 1" (pointer_expression "*(ushort *)(param_1 + 0x3e)" * (cast_expression "(ushort *)(param_1 + 0x3e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e)" ( (binary_expression "param_1 + 0x3e" identifier + number_literal) )))) = (binary_expression "uVar10 - 1" identifier - number_literal)) ;) }))) }) (else_clause "else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }" else (compound_statement "{\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }" { (expression_statement "local_38[0] = FUN_00039f90();" (assignment_expression "local_38[0] = FUN_00039f90()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00039f90()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }" if (parenthesized_expression "((param_2 & 2) != 0)" ( (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }" { (if_statement "if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }" if (parenthesized_expression "(-1 < param_1[0x3c])" ( (binary_expression "-1 < param_1[0x3c]" number_literal < (subscript_expression "param_1[0x3c]" identifier [ number_literal ])) )) (compound_statement "{\n              FUN_00027e90();\n            }" { (expression_statement "FUN_00027e90();" (call_expression "FUN_00027e90()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*param_1 = '\x03';" (assignment_expression "*param_1 = '\x03'" (pointer_expression "*param_1" * identifier) = (char_literal "'\x03'" ' escape_sequence ')) ;) })) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }" if (parenthesized_expression "(local_38[0] == 0x10)" ( (binary_expression "local_38[0] == 0x10" (subscript_expression "local_38[0]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            iVar13 = 0;\n          }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) })) })))) })) })) })) (labeled_statement "LAB_000692f5:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar13;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar13;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar13;\n  }" { (return_statement "return iVar13;" return identifier ;) }))) comment (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int __regparm3 sqlite3BtreeDelete(BtCursor *pCur,u8 flags)\n\n{\n  int iVar1;\n  char cVar2;\n  u8 uVar3;\n  ushort uVar4;\n  ushort uVar5;\n  ushort uVar6;\n  Btree *pBVar7;\n  BtShared *pBVar8;\n  MemPage *pPage;\n  KeyInfo *pKVar9;\n  undefined4 uVar10;\n  MemPage *pMVar11;\n  u8 *pTemp;\n  bool bVar12;\n  char cVar13;\n  u16 uVar14;\n  uint idx;\n  int iVar15;\n  int iVar16;\n  u8 *puVar17;\n  int in_GS_OFFSET;\n  Pgno local_44;\n  int rc;\n  CellInfo info;\n  \n  pBVar7 = pCur->pBtree;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pBVar8 = pBVar7->pBt;\n  if ((pCur->eState == '\x03') && (rc = btreeRestoreCursorPosition(pCur), iVar16 = rc, rc != 0))\n  goto LAB_000692f5;\n  cVar2 = pCur->iPage;\n  pPage = pCur->pPage;\n  uVar5 = pCur->ix;\n  idx = (uint)uVar5;\n  uVar6 = *(ushort *)(pPage->aCellIdx + idx * 2);\n  uVar4 = pPage->maskPage;\n  puVar17 = pPage->aData;\n  if (pPage->nFree < 0) {\n    iVar15 = btreeComputeFreeSpace(pPage);\n    iVar16 = 0xb;\n    if (iVar15 != 0) goto LAB_000692f5;\n  }\n  uVar3 = pPage->leaf;\n  if ((flags & 2) == 0) {\njoined_r0x000692c2:\n    if ((uVar3 == '\0') && (rc = sqlite3BtreePrevious(pCur,0), iVar16 = rc, rc != 0))\n    goto LAB_000692f5;\n    bVar12 = false;\n  }\n  else if (((uVar3 == '\0') ||\n           (uVar14 = cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)),\n           (int)((pBVar8->usableSize * 2) / 3) <= (int)((uint)uVar14 + pPage->nFree + 1))) ||\n          (bVar12 = true, pPage->nCell == 1)) {\n    if (pCur->curIntKey == '\0') {\n      rc = saveCursorKey(pCur);\n      iVar16 = rc;\n      if (rc != 0) goto LAB_000692f5;\n      uVar3 = pPage->leaf;\n      rc = 0;\n    }\n    else {\n      getCellInfo(pCur);\n      uVar10 = *(undefined4 *)((int)&(pCur->info).nKey + 4);\n      rc = 0;\n      *(int *)&pCur->nKey = (int)(pCur->info).nKey;\n      *(undefined4 *)((int)&pCur->nKey + 4) = uVar10;\n      uVar3 = pPage->leaf;\n    }\n    goto joined_r0x000692c2;\n  }\n  if ((pCur->curFlags & 0x20) == 0) {\n    pKVar9 = pCur->pKeyInfo;\n  }\n  else {\n    rc = saveAllCursors((BtShared *)pBVar8->pCursor,pCur->pgnoRoot,pCur);\n    iVar16 = rc;\n    if (rc != 0) goto LAB_000692f5;\n    pKVar9 = pCur->pKeyInfo;\n    rc = 0;\n  }\n  if ((pKVar9 == (KeyInfo *)0x0) && (pBVar7->hasIncrblobCur != '\0')) {\n    invalidateIncrblobCursors\n              ((Btree *)pBVar7->pBt,(Pgno)&pBVar7->hasIncrblobCur,(pCur->info).nKey,pCur->pgnoRoot,\n               (Btree *)0x0);\n  }\n  rc = sqlite3PagerWrite(pPage->pDbPage);\n  iVar16 = rc;\n  if ((rc == 0) &&\n     (rc = clearCell(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4),&info), iVar16 = rc,\n     rc == 0)) {\n    dropCell(pPage,idx,(uint)info.nSize,&rc);\n    iVar16 = rc;\n    if (rc == 0) {\n      if (pPage->leaf == '\0') {\n        pMVar11 = pCur->pPage;\n        if ((pMVar11->nFree < 0) && (rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n        if ((int)cVar2 < pCur->iPage + -1) {\n          local_44 = pCur->apPage[cVar2 + 1]->pgno;\n        }\n        else {\n          local_44 = pCur->pPage->pgno;\n        }\n        puVar17 = pMVar11->aData +\n                  ((*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &\n                  pMVar11->maskPage);\n        if (puVar17 < pMVar11->aData + 4) {\n          iVar16 = sqlite3CorruptError(0x11f26);\n          goto LAB_000692f5;\n        }\n        uVar14 = (*pMVar11->xCellSize)(pMVar11,puVar17);\n        pTemp = pBVar8->pTmpSpace;\n        rc = sqlite3PagerWrite(pMVar11->pDbPage);\n        iVar16 = rc;\n        if (rc != 0) goto LAB_000692f5;\n        insertCell(pPage,idx,puVar17 + -4,uVar14 + 4,pTemp,local_44,&rc);\n        iVar16 = rc;\n        if ((rc != 0) ||\n           (dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n      }\n      rc = balance(pCur);\n      iVar16 = rc;\n      if (rc == 0) {\n        if (cVar2 < pCur->iPage) {\n          sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n          cVar13 = pCur->iPage + -1;\n          pCur->iPage = cVar13;\n          do {\n            iVar16 = (int)cVar13;\n            do {\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            } while (pMVar11 == (MemPage *)0x0);\n            sqlite3PagerUnrefNotNull(pMVar11->pDbPage);\n            cVar13 = pCur->iPage;\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar12) {\n          pCur->eState = '\x02';\n          uVar4 = pPage->nCell;\n          iVar16 = rc;\n          if (uVar5 < uVar4) {\n            pCur->skipNext = 1;\n          }\n          else {\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }\n        }\n        else {\n          rc = moveToRoot(pCur);\n          if ((flags & 2) != 0) {\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }\n          iVar16 = rc;\n          if (rc == 0x10) {\n            iVar16 = 0;\n          }\n        }\n      }\n    }\n  }\nLAB_000692f5:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar16;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" (function_definition "int __regparm3 sqlite3BtreeDelete(BtCursor *pCur,u8 flags)\n\n{\n  int iVar1;\n  char cVar2;\n  u8 uVar3;\n  ushort uVar4;\n  ushort uVar5;\n  ushort uVar6;\n  Btree *pBVar7;\n  BtShared *pBVar8;\n  MemPage *pPage;\n  KeyInfo *pKVar9;\n  undefined4 uVar10;\n  MemPage *pMVar11;\n  u8 *pTemp;\n  bool bVar12;\n  char cVar13;\n  u16 uVar14;\n  uint idx;\n  int iVar15;\n  int iVar16;\n  u8 *puVar17;\n  int in_GS_OFFSET;\n  Pgno local_44;\n  int rc;\n  CellInfo info;\n  \n  pBVar7 = pCur->pBtree;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pBVar8 = pBVar7->pBt;\n  if ((pCur->eState == '\x03') && (rc = btreeRestoreCursorPosition(pCur), iVar16 = rc, rc != 0))\n  goto LAB_000692f5;\n  cVar2 = pCur->iPage;\n  pPage = pCur->pPage;\n  uVar5 = pCur->ix;\n  idx = (uint)uVar5;\n  uVar6 = *(ushort *)(pPage->aCellIdx + idx * 2);\n  uVar4 = pPage->maskPage;\n  puVar17 = pPage->aData;\n  if (pPage->nFree < 0) {\n    iVar15 = btreeComputeFreeSpace(pPage);\n    iVar16 = 0xb;\n    if (iVar15 != 0) goto LAB_000692f5;\n  }\n  uVar3 = pPage->leaf;\n  if ((flags & 2) == 0) {\njoined_r0x000692c2:\n    if ((uVar3 == '\0') && (rc = sqlite3BtreePrevious(pCur,0), iVar16 = rc, rc != 0))\n    goto LAB_000692f5;\n    bVar12 = false;\n  }\n  else if (((uVar3 == '\0') ||\n           (uVar14 = cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)),\n           (int)((pBVar8->usableSize * 2) / 3) <= (int)((uint)uVar14 + pPage->nFree + 1))) ||\n          (bVar12 = true, pPage->nCell == 1)) {\n    if (pCur->curIntKey == '\0') {\n      rc = saveCursorKey(pCur);\n      iVar16 = rc;\n      if (rc != 0) goto LAB_000692f5;\n      uVar3 = pPage->leaf;\n      rc = 0;\n    }\n    else {\n      getCellInfo(pCur);\n      uVar10 = *(undefined4 *)((int)&(pCur->info).nKey + 4);\n      rc = 0;\n      *(int *)&pCur->nKey = (int)(pCur->info).nKey;\n      *(undefined4 *)((int)&pCur->nKey + 4) = uVar10;\n      uVar3 = pPage->leaf;\n    }\n    goto joined_r0x000692c2;\n  }\n  if ((pCur->curFlags & 0x20) == 0) {\n    pKVar9 = pCur->pKeyInfo;\n  }\n  else {\n    rc = saveAllCursors((BtShared *)pBVar8->pCursor,pCur->pgnoRoot,pCur);\n    iVar16 = rc;\n    if (rc != 0) goto LAB_000692f5;\n    pKVar9 = pCur->pKeyInfo;\n    rc = 0;\n  }\n  if ((pKVar9 == (KeyInfo *)0x0) && (pBVar7->hasIncrblobCur != '\0')) {\n    invalidateIncrblobCursors\n              ((Btree *)pBVar7->pBt,(Pgno)&pBVar7->hasIncrblobCur,(pCur->info).nKey,pCur->pgnoRoot,\n               (Btree *)0x0);\n  }\n  rc = sqlite3PagerWrite(pPage->pDbPage);\n  iVar16 = rc;\n  if ((rc == 0) &&\n     (rc = clearCell(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4),&info), iVar16 = rc,\n     rc == 0)) {\n    dropCell(pPage,idx,(uint)info.nSize,&rc);\n    iVar16 = rc;\n    if (rc == 0) {\n      if (pPage->leaf == '\0') {\n        pMVar11 = pCur->pPage;\n        if ((pMVar11->nFree < 0) && (rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n        if ((int)cVar2 < pCur->iPage + -1) {\n          local_44 = pCur->apPage[cVar2 + 1]->pgno;\n        }\n        else {\n          local_44 = pCur->pPage->pgno;\n        }\n        puVar17 = pMVar11->aData +\n                  ((*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &\n                  pMVar11->maskPage);\n        if (puVar17 < pMVar11->aData + 4) {\n          iVar16 = sqlite3CorruptError(0x11f26);\n          goto LAB_000692f5;\n        }\n        uVar14 = (*pMVar11->xCellSize)(pMVar11,puVar17);\n        pTemp = pBVar8->pTmpSpace;\n        rc = sqlite3PagerWrite(pMVar11->pDbPage);\n        iVar16 = rc;\n        if (rc != 0) goto LAB_000692f5;\n        insertCell(pPage,idx,puVar17 + -4,uVar14 + 4,pTemp,local_44,&rc);\n        iVar16 = rc;\n        if ((rc != 0) ||\n           (dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n      }\n      rc = balance(pCur);\n      iVar16 = rc;\n      if (rc == 0) {\n        if (cVar2 < pCur->iPage) {\n          sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n          cVar13 = pCur->iPage + -1;\n          pCur->iPage = cVar13;\n          do {\n            iVar16 = (int)cVar13;\n            do {\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            } while (pMVar11 == (MemPage *)0x0);\n            sqlite3PagerUnrefNotNull(pMVar11->pDbPage);\n            cVar13 = pCur->iPage;\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar12) {\n          pCur->eState = '\x02';\n          uVar4 = pPage->nCell;\n          iVar16 = rc;\n          if (uVar5 < uVar4) {\n            pCur->skipNext = 1;\n          }\n          else {\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }\n        }\n        else {\n          rc = moveToRoot(pCur);\n          if ((flags & 2) != 0) {\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }\n          iVar16 = rc;\n          if (rc == 0x10) {\n            iVar16 = 0;\n          }\n        }\n      }\n    }\n  }\nLAB_000692f5:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar16;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3BtreeDelete(BtCursor *pCur,u8 flags)" identifier (parameter_list "(BtCursor *pCur,u8 flags)" ( (parameter_declaration "BtCursor *pCur" type_identifier (pointer_declarator "*pCur" * identifier)) , (parameter_declaration "u8 flags" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  u8 uVar3;\n  ushort uVar4;\n  ushort uVar5;\n  ushort uVar6;\n  Btree *pBVar7;\n  BtShared *pBVar8;\n  MemPage *pPage;\n  KeyInfo *pKVar9;\n  undefined4 uVar10;\n  MemPage *pMVar11;\n  u8 *pTemp;\n  bool bVar12;\n  char cVar13;\n  u16 uVar14;\n  uint idx;\n  int iVar15;\n  int iVar16;\n  u8 *puVar17;\n  int in_GS_OFFSET;\n  Pgno local_44;\n  int rc;\n  CellInfo info;\n  \n  pBVar7 = pCur->pBtree;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pBVar8 = pBVar7->pBt;\n  if ((pCur->eState == '\x03') && (rc = btreeRestoreCursorPosition(pCur), iVar16 = rc, rc != 0))\n  goto LAB_000692f5;\n  cVar2 = pCur->iPage;\n  pPage = pCur->pPage;\n  uVar5 = pCur->ix;\n  idx = (uint)uVar5;\n  uVar6 = *(ushort *)(pPage->aCellIdx + idx * 2);\n  uVar4 = pPage->maskPage;\n  puVar17 = pPage->aData;\n  if (pPage->nFree < 0) {\n    iVar15 = btreeComputeFreeSpace(pPage);\n    iVar16 = 0xb;\n    if (iVar15 != 0) goto LAB_000692f5;\n  }\n  uVar3 = pPage->leaf;\n  if ((flags & 2) == 0) {\njoined_r0x000692c2:\n    if ((uVar3 == '\0') && (rc = sqlite3BtreePrevious(pCur,0), iVar16 = rc, rc != 0))\n    goto LAB_000692f5;\n    bVar12 = false;\n  }\n  else if (((uVar3 == '\0') ||\n           (uVar14 = cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)),\n           (int)((pBVar8->usableSize * 2) / 3) <= (int)((uint)uVar14 + pPage->nFree + 1))) ||\n          (bVar12 = true, pPage->nCell == 1)) {\n    if (pCur->curIntKey == '\0') {\n      rc = saveCursorKey(pCur);\n      iVar16 = rc;\n      if (rc != 0) goto LAB_000692f5;\n      uVar3 = pPage->leaf;\n      rc = 0;\n    }\n    else {\n      getCellInfo(pCur);\n      uVar10 = *(undefined4 *)((int)&(pCur->info).nKey + 4);\n      rc = 0;\n      *(int *)&pCur->nKey = (int)(pCur->info).nKey;\n      *(undefined4 *)((int)&pCur->nKey + 4) = uVar10;\n      uVar3 = pPage->leaf;\n    }\n    goto joined_r0x000692c2;\n  }\n  if ((pCur->curFlags & 0x20) == 0) {\n    pKVar9 = pCur->pKeyInfo;\n  }\n  else {\n    rc = saveAllCursors((BtShared *)pBVar8->pCursor,pCur->pgnoRoot,pCur);\n    iVar16 = rc;\n    if (rc != 0) goto LAB_000692f5;\n    pKVar9 = pCur->pKeyInfo;\n    rc = 0;\n  }\n  if ((pKVar9 == (KeyInfo *)0x0) && (pBVar7->hasIncrblobCur != '\0')) {\n    invalidateIncrblobCursors\n              ((Btree *)pBVar7->pBt,(Pgno)&pBVar7->hasIncrblobCur,(pCur->info).nKey,pCur->pgnoRoot,\n               (Btree *)0x0);\n  }\n  rc = sqlite3PagerWrite(pPage->pDbPage);\n  iVar16 = rc;\n  if ((rc == 0) &&\n     (rc = clearCell(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4),&info), iVar16 = rc,\n     rc == 0)) {\n    dropCell(pPage,idx,(uint)info.nSize,&rc);\n    iVar16 = rc;\n    if (rc == 0) {\n      if (pPage->leaf == '\0') {\n        pMVar11 = pCur->pPage;\n        if ((pMVar11->nFree < 0) && (rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n        if ((int)cVar2 < pCur->iPage + -1) {\n          local_44 = pCur->apPage[cVar2 + 1]->pgno;\n        }\n        else {\n          local_44 = pCur->pPage->pgno;\n        }\n        puVar17 = pMVar11->aData +\n                  ((*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &\n                  pMVar11->maskPage);\n        if (puVar17 < pMVar11->aData + 4) {\n          iVar16 = sqlite3CorruptError(0x11f26);\n          goto LAB_000692f5;\n        }\n        uVar14 = (*pMVar11->xCellSize)(pMVar11,puVar17);\n        pTemp = pBVar8->pTmpSpace;\n        rc = sqlite3PagerWrite(pMVar11->pDbPage);\n        iVar16 = rc;\n        if (rc != 0) goto LAB_000692f5;\n        insertCell(pPage,idx,puVar17 + -4,uVar14 + 4,pTemp,local_44,&rc);\n        iVar16 = rc;\n        if ((rc != 0) ||\n           (dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n      }\n      rc = balance(pCur);\n      iVar16 = rc;\n      if (rc == 0) {\n        if (cVar2 < pCur->iPage) {\n          sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n          cVar13 = pCur->iPage + -1;\n          pCur->iPage = cVar13;\n          do {\n            iVar16 = (int)cVar13;\n            do {\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            } while (pMVar11 == (MemPage *)0x0);\n            sqlite3PagerUnrefNotNull(pMVar11->pDbPage);\n            cVar13 = pCur->iPage;\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar12) {\n          pCur->eState = '\x02';\n          uVar4 = pPage->nCell;\n          iVar16 = rc;\n          if (uVar5 < uVar4) {\n            pCur->skipNext = 1;\n          }\n          else {\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }\n        }\n        else {\n          rc = moveToRoot(pCur);\n          if ((flags & 2) != 0) {\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }\n          iVar16 = rc;\n          if (rc == 0x10) {\n            iVar16 = 0;\n          }\n        }\n      }\n    }\n  }\nLAB_000692f5:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar16;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "u8 uVar3;" type_identifier identifier ;) (declaration "ushort uVar4;" type_identifier identifier ;) (declaration "ushort uVar5;" type_identifier identifier ;) (declaration "ushort uVar6;" type_identifier identifier ;) (declaration "Btree *pBVar7;" type_identifier (pointer_declarator "*pBVar7" * identifier) ;) (declaration "BtShared *pBVar8;" type_identifier (pointer_declarator "*pBVar8" * identifier) ;) (declaration "MemPage *pPage;" type_identifier (pointer_declarator "*pPage" * identifier) ;) (declaration "KeyInfo *pKVar9;" type_identifier (pointer_declarator "*pKVar9" * identifier) ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "MemPage *pMVar11;" type_identifier (pointer_declarator "*pMVar11" * identifier) ;) (declaration "u8 *pTemp;" type_identifier (pointer_declarator "*pTemp" * identifier) ;) (declaration "bool bVar12;" primitive_type identifier ;) (declaration "char cVar13;" primitive_type identifier ;) (declaration "u16 uVar14;" type_identifier identifier ;) (declaration "uint idx;" type_identifier identifier ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "int iVar16;" primitive_type identifier ;) (declaration "u8 *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "Pgno local_44;" type_identifier identifier ;) (declaration "int rc;" primitive_type identifier ;) (declaration "CellInfo info;" type_identifier identifier ;) (expression_statement "pBVar7 = pCur->pBtree;" (assignment_expression "pBVar7 = pCur->pBtree" identifier = (field_expression "pCur->pBtree" identifier -> field_identifier)) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pBVar8 = pBVar7->pBt;" (assignment_expression "pBVar8 = pBVar7->pBt" identifier = (field_expression "pBVar7->pBt" identifier -> field_identifier)) ;) (if_statement "if ((pCur->eState == '\x03') && (rc = btreeRestoreCursorPosition(pCur), iVar16 = rc, rc != 0))\n  goto LAB_000692f5;" if (parenthesized_expression "((pCur->eState == '\x03') && (rc = btreeRestoreCursorPosition(pCur), iVar16 = rc, rc != 0))" ( (binary_expression "(pCur->eState == '\x03') && (rc = btreeRestoreCursorPosition(pCur), iVar16 = rc, rc != 0)" (parenthesized_expression "(pCur->eState == '\x03')" ( (binary_expression "pCur->eState == '\x03'" (field_expression "pCur->eState" identifier -> field_identifier) == (char_literal "'\x03'" ' escape_sequence ')) )) && (parenthesized_expression "(rc = btreeRestoreCursorPosition(pCur), iVar16 = rc, rc != 0)" ( (comma_expression "rc = btreeRestoreCursorPosition(pCur), iVar16 = rc, rc != 0" (assignment_expression "rc = btreeRestoreCursorPosition(pCur)" identifier = (call_expression "btreeRestoreCursorPosition(pCur)" identifier (argument_list "(pCur)" ( identifier )))) , (comma_expression "iVar16 = rc, rc != 0" (assignment_expression "iVar16 = rc" identifier = identifier) , (binary_expression "rc != 0" identifier != number_literal))) ))) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (expression_statement "cVar2 = pCur->iPage;" (assignment_expression "cVar2 = pCur->iPage" identifier = (field_expression "pCur->iPage" identifier -> field_identifier)) ;) (expression_statement "pPage = pCur->pPage;" (assignment_expression "pPage = pCur->pPage" identifier = (field_expression "pCur->pPage" identifier -> field_identifier)) ;) (expression_statement "uVar5 = pCur->ix;" (assignment_expression "uVar5 = pCur->ix" identifier = (field_expression "pCur->ix" identifier -> field_identifier)) ;) (expression_statement "idx = (uint)uVar5;" (assignment_expression "idx = (uint)uVar5" identifier = (cast_expression "(uint)uVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "uVar6 = *(ushort *)(pPage->aCellIdx + idx * 2);" (assignment_expression "uVar6 = *(ushort *)(pPage->aCellIdx + idx * 2)" identifier = (pointer_expression "*(ushort *)(pPage->aCellIdx + idx * 2)" * (cast_expression "(ushort *)(pPage->aCellIdx + idx * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pPage->aCellIdx + idx * 2)" ( (binary_expression "pPage->aCellIdx + idx * 2" (field_expression "pPage->aCellIdx" identifier -> field_identifier) + (binary_expression "idx * 2" identifier * number_literal)) ))))) ;) (expression_statement "uVar4 = pPage->maskPage;" (assignment_expression "uVar4 = pPage->maskPage" identifier = (field_expression "pPage->maskPage" identifier -> field_identifier)) ;) (expression_statement "puVar17 = pPage->aData;" (assignment_expression "puVar17 = pPage->aData" identifier = (field_expression "pPage->aData" identifier -> field_identifier)) ;) (if_statement "if (pPage->nFree < 0) {\n    iVar15 = btreeComputeFreeSpace(pPage);\n    iVar16 = 0xb;\n    if (iVar15 != 0) goto LAB_000692f5;\n  }" if (parenthesized_expression "(pPage->nFree < 0)" ( (binary_expression "pPage->nFree < 0" (field_expression "pPage->nFree" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n    iVar15 = btreeComputeFreeSpace(pPage);\n    iVar16 = 0xb;\n    if (iVar15 != 0) goto LAB_000692f5;\n  }" { (expression_statement "iVar15 = btreeComputeFreeSpace(pPage);" (assignment_expression "iVar15 = btreeComputeFreeSpace(pPage)" identifier = (call_expression "btreeComputeFreeSpace(pPage)" identifier (argument_list "(pPage)" ( identifier )))) ;) (expression_statement "iVar16 = 0xb;" (assignment_expression "iVar16 = 0xb" identifier = number_literal) ;) (if_statement "if (iVar15 != 0) goto LAB_000692f5;" if (parenthesized_expression "(iVar15 != 0)" ( (binary_expression "iVar15 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) })) (expression_statement "uVar3 = pPage->leaf;" (assignment_expression "uVar3 = pPage->leaf" identifier = (field_expression "pPage->leaf" identifier -> field_identifier)) ;) (if_statement "if ((flags & 2) == 0) {\njoined_r0x000692c2:\n    if ((uVar3 == '\0') && (rc = sqlite3BtreePrevious(pCur,0), iVar16 = rc, rc != 0))\n    goto LAB_000692f5;\n    bVar12 = false;\n  }\n  else if (((uVar3 == '\0') ||\n           (uVar14 = cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)),\n           (int)((pBVar8->usableSize * 2) / 3) <= (int)((uint)uVar14 + pPage->nFree + 1))) ||\n          (bVar12 = true, pPage->nCell == 1)) {\n    if (pCur->curIntKey == '\0') {\n      rc = saveCursorKey(pCur);\n      iVar16 = rc;\n      if (rc != 0) goto LAB_000692f5;\n      uVar3 = pPage->leaf;\n      rc = 0;\n    }\n    else {\n      getCellInfo(pCur);\n      uVar10 = *(undefined4 *)((int)&(pCur->info).nKey + 4);\n      rc = 0;\n      *(int *)&pCur->nKey = (int)(pCur->info).nKey;\n      *(undefined4 *)((int)&pCur->nKey + 4) = uVar10;\n      uVar3 = pPage->leaf;\n    }\n    goto joined_r0x000692c2;\n  }" if (parenthesized_expression "((flags & 2) == 0)" ( (binary_expression "(flags & 2) == 0" (parenthesized_expression "(flags & 2)" ( (binary_expression "flags & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\njoined_r0x000692c2:\n    if ((uVar3 == '\0') && (rc = sqlite3BtreePrevious(pCur,0), iVar16 = rc, rc != 0))\n    goto LAB_000692f5;\n    bVar12 = false;\n  }" { (labeled_statement "joined_r0x000692c2:\n    if ((uVar3 == '\0') && (rc = sqlite3BtreePrevious(pCur,0), iVar16 = rc, rc != 0))\n    goto LAB_000692f5;" statement_identifier : (if_statement "if ((uVar3 == '\0') && (rc = sqlite3BtreePrevious(pCur,0), iVar16 = rc, rc != 0))\n    goto LAB_000692f5;" if (parenthesized_expression "((uVar3 == '\0') && (rc = sqlite3BtreePrevious(pCur,0), iVar16 = rc, rc != 0))" ( (binary_expression "(uVar3 == '\0') && (rc = sqlite3BtreePrevious(pCur,0), iVar16 = rc, rc != 0)" (parenthesized_expression "(uVar3 == '\0')" ( (binary_expression "uVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(rc = sqlite3BtreePrevious(pCur,0), iVar16 = rc, rc != 0)" ( (comma_expression "rc = sqlite3BtreePrevious(pCur,0), iVar16 = rc, rc != 0" (assignment_expression "rc = sqlite3BtreePrevious(pCur,0)" identifier = (call_expression "sqlite3BtreePrevious(pCur,0)" identifier (argument_list "(pCur,0)" ( identifier , number_literal )))) , (comma_expression "iVar16 = rc, rc != 0" (assignment_expression "iVar16 = rc" identifier = identifier) , (binary_expression "rc != 0" identifier != number_literal))) ))) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;))) (expression_statement "bVar12 = false;" (assignment_expression "bVar12 = false" identifier = false) ;) }) (else_clause "else if (((uVar3 == '\0') ||\n           (uVar14 = cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)),\n           (int)((pBVar8->usableSize * 2) / 3) <= (int)((uint)uVar14 + pPage->nFree + 1))) ||\n          (bVar12 = true, pPage->nCell == 1)) {\n    if (pCur->curIntKey == '\0') {\n      rc = saveCursorKey(pCur);\n      iVar16 = rc;\n      if (rc != 0) goto LAB_000692f5;\n      uVar3 = pPage->leaf;\n      rc = 0;\n    }\n    else {\n      getCellInfo(pCur);\n      uVar10 = *(undefined4 *)((int)&(pCur->info).nKey + 4);\n      rc = 0;\n      *(int *)&pCur->nKey = (int)(pCur->info).nKey;\n      *(undefined4 *)((int)&pCur->nKey + 4) = uVar10;\n      uVar3 = pPage->leaf;\n    }\n    goto joined_r0x000692c2;\n  }" else (if_statement "if (((uVar3 == '\0') ||\n           (uVar14 = cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)),\n           (int)((pBVar8->usableSize * 2) / 3) <= (int)((uint)uVar14 + pPage->nFree + 1))) ||\n          (bVar12 = true, pPage->nCell == 1)) {\n    if (pCur->curIntKey == '\0') {\n      rc = saveCursorKey(pCur);\n      iVar16 = rc;\n      if (rc != 0) goto LAB_000692f5;\n      uVar3 = pPage->leaf;\n      rc = 0;\n    }\n    else {\n      getCellInfo(pCur);\n      uVar10 = *(undefined4 *)((int)&(pCur->info).nKey + 4);\n      rc = 0;\n      *(int *)&pCur->nKey = (int)(pCur->info).nKey;\n      *(undefined4 *)((int)&pCur->nKey + 4) = uVar10;\n      uVar3 = pPage->leaf;\n    }\n    goto joined_r0x000692c2;\n  }" if (parenthesized_expression "(((uVar3 == '\0') ||\n           (uVar14 = cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)),\n           (int)((pBVar8->usableSize * 2) / 3) <= (int)((uint)uVar14 + pPage->nFree + 1))) ||\n          (bVar12 = true, pPage->nCell == 1))" ( (binary_expression "((uVar3 == '\0') ||\n           (uVar14 = cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)),\n           (int)((pBVar8->usableSize * 2) / 3) <= (int)((uint)uVar14 + pPage->nFree + 1))) ||\n          (bVar12 = true, pPage->nCell == 1)" (parenthesized_expression "((uVar3 == '\0') ||\n           (uVar14 = cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)),\n           (int)((pBVar8->usableSize * 2) / 3) <= (int)((uint)uVar14 + pPage->nFree + 1)))" ( (binary_expression "(uVar3 == '\0') ||\n           (uVar14 = cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)),\n           (int)((pBVar8->usableSize * 2) / 3) <= (int)((uint)uVar14 + pPage->nFree + 1))" (parenthesized_expression "(uVar3 == '\0')" ( (binary_expression "uVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(uVar14 = cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)),\n           (int)((pBVar8->usableSize * 2) / 3) <= (int)((uint)uVar14 + pPage->nFree + 1))" ( (comma_expression "uVar14 = cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)),\n           (int)((pBVar8->usableSize * 2) / 3) <= (int)((uint)uVar14 + pPage->nFree + 1)" (assignment_expression "uVar14 = cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4))" identifier = (call_expression "cellSizePtr(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4))" identifier (argument_list "(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4))" ( identifier , (binary_expression "puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)" identifier + (parenthesized_expression "((uVar6 << 8 | uVar6 >> 8) & uVar4)" ( (binary_expression "(uVar6 << 8 | uVar6 >> 8) & uVar4" (parenthesized_expression "(uVar6 << 8 | uVar6 >> 8)" ( (binary_expression "uVar6 << 8 | uVar6 >> 8" (binary_expression "uVar6 << 8" identifier << number_literal) | (binary_expression "uVar6 >> 8" identifier >> number_literal)) )) & identifier) ))) )))) , (binary_expression "(int)((pBVar8->usableSize * 2) / 3) <= (int)((uint)uVar14 + pPage->nFree + 1)" (cast_expression "(int)((pBVar8->usableSize * 2) / 3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((pBVar8->usableSize * 2) / 3)" ( (binary_expression "(pBVar8->usableSize * 2) / 3" (parenthesized_expression "(pBVar8->usableSize * 2)" ( (binary_expression "pBVar8->usableSize * 2" (field_expression "pBVar8->usableSize" identifier -> field_identifier) * number_literal) )) / number_literal) ))) <= (cast_expression "(int)((uint)uVar14 + pPage->nFree + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)uVar14 + pPage->nFree + 1)" ( (binary_expression "(uint)uVar14 + pPage->nFree + 1" (binary_expression "(uint)uVar14 + pPage->nFree" (cast_expression "(uint)uVar14" ( (type_descriptor "uint" type_identifier) ) identifier) + (field_expression "pPage->nFree" identifier -> field_identifier)) + number_literal) ))))) ))) )) || (parenthesized_expression "(bVar12 = true, pPage->nCell == 1)" ( (comma_expression "bVar12 = true, pPage->nCell == 1" (assignment_expression "bVar12 = true" identifier = true) , (binary_expression "pPage->nCell == 1" (field_expression "pPage->nCell" identifier -> field_identifier) == number_literal)) ))) )) (compound_statement "{\n    if (pCur->curIntKey == '\0') {\n      rc = saveCursorKey(pCur);\n      iVar16 = rc;\n      if (rc != 0) goto LAB_000692f5;\n      uVar3 = pPage->leaf;\n      rc = 0;\n    }\n    else {\n      getCellInfo(pCur);\n      uVar10 = *(undefined4 *)((int)&(pCur->info).nKey + 4);\n      rc = 0;\n      *(int *)&pCur->nKey = (int)(pCur->info).nKey;\n      *(undefined4 *)((int)&pCur->nKey + 4) = uVar10;\n      uVar3 = pPage->leaf;\n    }\n    goto joined_r0x000692c2;\n  }" { (if_statement "if (pCur->curIntKey == '\0') {\n      rc = saveCursorKey(pCur);\n      iVar16 = rc;\n      if (rc != 0) goto LAB_000692f5;\n      uVar3 = pPage->leaf;\n      rc = 0;\n    }\n    else {\n      getCellInfo(pCur);\n      uVar10 = *(undefined4 *)((int)&(pCur->info).nKey + 4);\n      rc = 0;\n      *(int *)&pCur->nKey = (int)(pCur->info).nKey;\n      *(undefined4 *)((int)&pCur->nKey + 4) = uVar10;\n      uVar3 = pPage->leaf;\n    }" if (parenthesized_expression "(pCur->curIntKey == '\0')" ( (binary_expression "pCur->curIntKey == '\0'" (field_expression "pCur->curIntKey" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      rc = saveCursorKey(pCur);\n      iVar16 = rc;\n      if (rc != 0) goto LAB_000692f5;\n      uVar3 = pPage->leaf;\n      rc = 0;\n    }" { (expression_statement "rc = saveCursorKey(pCur);" (assignment_expression "rc = saveCursorKey(pCur)" identifier = (call_expression "saveCursorKey(pCur)" identifier (argument_list "(pCur)" ( identifier )))) ;) (expression_statement "iVar16 = rc;" (assignment_expression "iVar16 = rc" identifier = identifier) ;) (if_statement "if (rc != 0) goto LAB_000692f5;" if (parenthesized_expression "(rc != 0)" ( (binary_expression "rc != 0" identifier != number_literal) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (expression_statement "uVar3 = pPage->leaf;" (assignment_expression "uVar3 = pPage->leaf" identifier = (field_expression "pPage->leaf" identifier -> field_identifier)) ;) (expression_statement "rc = 0;" (assignment_expression "rc = 0" identifier = number_literal) ;) }) (else_clause "else {\n      getCellInfo(pCur);\n      uVar10 = *(undefined4 *)((int)&(pCur->info).nKey + 4);\n      rc = 0;\n      *(int *)&pCur->nKey = (int)(pCur->info).nKey;\n      *(undefined4 *)((int)&pCur->nKey + 4) = uVar10;\n      uVar3 = pPage->leaf;\n    }" else (compound_statement "{\n      getCellInfo(pCur);\n      uVar10 = *(undefined4 *)((int)&(pCur->info).nKey + 4);\n      rc = 0;\n      *(int *)&pCur->nKey = (int)(pCur->info).nKey;\n      *(undefined4 *)((int)&pCur->nKey + 4) = uVar10;\n      uVar3 = pPage->leaf;\n    }" { (expression_statement "getCellInfo(pCur);" (call_expression "getCellInfo(pCur)" identifier (argument_list "(pCur)" ( identifier ))) ;) (expression_statement "uVar10 = *(undefined4 *)((int)&(pCur->info).nKey + 4);" (assignment_expression "uVar10 = *(undefined4 *)((int)&(pCur->info).nKey + 4)" identifier = (pointer_expression "*(undefined4 *)((int)&(pCur->info).nKey + 4)" * (cast_expression "(undefined4 *)((int)&(pCur->info).nKey + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(pCur->info).nKey + 4)" ( (binary_expression "(int)&(pCur->info).nKey + 4" (cast_expression "(int)&(pCur->info).nKey" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(pCur->info).nKey" & (field_expression "(pCur->info).nKey" (parenthesized_expression "(pCur->info)" ( (field_expression "pCur->info" identifier -> field_identifier) )) . field_identifier))) + number_literal) ))))) ;) (expression_statement "rc = 0;" (assignment_expression "rc = 0" identifier = number_literal) ;) (expression_statement "*(int *)&pCur->nKey = (int)(pCur->info).nKey;" (assignment_expression "*(int *)&pCur->nKey = (int)(pCur->info).nKey" (pointer_expression "*(int *)&pCur->nKey" * (cast_expression "(int *)&pCur->nKey" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pCur->nKey" & (field_expression "pCur->nKey" identifier -> field_identifier)))) = (cast_expression "(int)(pCur->info).nKey" ( (type_descriptor "int" primitive_type) ) (field_expression "(pCur->info).nKey" (parenthesized_expression "(pCur->info)" ( (field_expression "pCur->info" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "*(undefined4 *)((int)&pCur->nKey + 4) = uVar10;" (assignment_expression "*(undefined4 *)((int)&pCur->nKey + 4) = uVar10" (pointer_expression "*(undefined4 *)((int)&pCur->nKey + 4)" * (cast_expression "(undefined4 *)((int)&pCur->nKey + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pCur->nKey + 4)" ( (binary_expression "(int)&pCur->nKey + 4" (cast_expression "(int)&pCur->nKey" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pCur->nKey" & (field_expression "pCur->nKey" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = pPage->leaf;" (assignment_expression "uVar3 = pPage->leaf" identifier = (field_expression "pPage->leaf" identifier -> field_identifier)) ;) }))) (goto_statement "goto joined_r0x000692c2;" goto statement_identifier ;) })))) (if_statement "if ((pCur->curFlags & 0x20) == 0) {\n    pKVar9 = pCur->pKeyInfo;\n  }\n  else {\n    rc = saveAllCursors((BtShared *)pBVar8->pCursor,pCur->pgnoRoot,pCur);\n    iVar16 = rc;\n    if (rc != 0) goto LAB_000692f5;\n    pKVar9 = pCur->pKeyInfo;\n    rc = 0;\n  }" if (parenthesized_expression "((pCur->curFlags & 0x20) == 0)" ( (binary_expression "(pCur->curFlags & 0x20) == 0" (parenthesized_expression "(pCur->curFlags & 0x20)" ( (binary_expression "pCur->curFlags & 0x20" (field_expression "pCur->curFlags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    pKVar9 = pCur->pKeyInfo;\n  }" { (expression_statement "pKVar9 = pCur->pKeyInfo;" (assignment_expression "pKVar9 = pCur->pKeyInfo" identifier = (field_expression "pCur->pKeyInfo" identifier -> field_identifier)) ;) }) (else_clause "else {\n    rc = saveAllCursors((BtShared *)pBVar8->pCursor,pCur->pgnoRoot,pCur);\n    iVar16 = rc;\n    if (rc != 0) goto LAB_000692f5;\n    pKVar9 = pCur->pKeyInfo;\n    rc = 0;\n  }" else (compound_statement "{\n    rc = saveAllCursors((BtShared *)pBVar8->pCursor,pCur->pgnoRoot,pCur);\n    iVar16 = rc;\n    if (rc != 0) goto LAB_000692f5;\n    pKVar9 = pCur->pKeyInfo;\n    rc = 0;\n  }" { (expression_statement "rc = saveAllCursors((BtShared *)pBVar8->pCursor,pCur->pgnoRoot,pCur);" (assignment_expression "rc = saveAllCursors((BtShared *)pBVar8->pCursor,pCur->pgnoRoot,pCur)" identifier = (call_expression "saveAllCursors((BtShared *)pBVar8->pCursor,pCur->pgnoRoot,pCur)" identifier (argument_list "((BtShared *)pBVar8->pCursor,pCur->pgnoRoot,pCur)" ( (cast_expression "(BtShared *)pBVar8->pCursor" ( (type_descriptor "BtShared *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pBVar8->pCursor" identifier -> field_identifier)) , (field_expression "pCur->pgnoRoot" identifier -> field_identifier) , identifier )))) ;) (expression_statement "iVar16 = rc;" (assignment_expression "iVar16 = rc" identifier = identifier) ;) (if_statement "if (rc != 0) goto LAB_000692f5;" if (parenthesized_expression "(rc != 0)" ( (binary_expression "rc != 0" identifier != number_literal) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (expression_statement "pKVar9 = pCur->pKeyInfo;" (assignment_expression "pKVar9 = pCur->pKeyInfo" identifier = (field_expression "pCur->pKeyInfo" identifier -> field_identifier)) ;) (expression_statement "rc = 0;" (assignment_expression "rc = 0" identifier = number_literal) ;) }))) (if_statement "if ((pKVar9 == (KeyInfo *)0x0) && (pBVar7->hasIncrblobCur != '\0')) {\n    invalidateIncrblobCursors\n              ((Btree *)pBVar7->pBt,(Pgno)&pBVar7->hasIncrblobCur,(pCur->info).nKey,pCur->pgnoRoot,\n               (Btree *)0x0);\n  }" if (parenthesized_expression "((pKVar9 == (KeyInfo *)0x0) && (pBVar7->hasIncrblobCur != '\0'))" ( (binary_expression "(pKVar9 == (KeyInfo *)0x0) && (pBVar7->hasIncrblobCur != '\0')" (parenthesized_expression "(pKVar9 == (KeyInfo *)0x0)" ( (binary_expression "pKVar9 == (KeyInfo *)0x0" identifier == (cast_expression "(KeyInfo *)0x0" ( (type_descriptor "KeyInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pBVar7->hasIncrblobCur != '\0')" ( (binary_expression "pBVar7->hasIncrblobCur != '\0'" (field_expression "pBVar7->hasIncrblobCur" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    invalidateIncrblobCursors\n              ((Btree *)pBVar7->pBt,(Pgno)&pBVar7->hasIncrblobCur,(pCur->info).nKey,pCur->pgnoRoot,\n               (Btree *)0x0);\n  }" { (expression_statement "invalidateIncrblobCursors\n              ((Btree *)pBVar7->pBt,(Pgno)&pBVar7->hasIncrblobCur,(pCur->info).nKey,pCur->pgnoRoot,\n               (Btree *)0x0);" (call_expression "invalidateIncrblobCursors\n              ((Btree *)pBVar7->pBt,(Pgno)&pBVar7->hasIncrblobCur,(pCur->info).nKey,pCur->pgnoRoot,\n               (Btree *)0x0)" identifier (argument_list "((Btree *)pBVar7->pBt,(Pgno)&pBVar7->hasIncrblobCur,(pCur->info).nKey,pCur->pgnoRoot,\n               (Btree *)0x0)" ( (cast_expression "(Btree *)pBVar7->pBt" ( (type_descriptor "Btree *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pBVar7->pBt" identifier -> field_identifier)) , (binary_expression "(Pgno)&pBVar7->hasIncrblobCur" (parenthesized_expression "(Pgno)" ( identifier )) & (field_expression "pBVar7->hasIncrblobCur" identifier -> field_identifier)) , (field_expression "(pCur->info).nKey" (parenthesized_expression "(pCur->info)" ( (field_expression "pCur->info" identifier -> field_identifier) )) . field_identifier) , (field_expression "pCur->pgnoRoot" identifier -> field_identifier) , (cast_expression "(Btree *)0x0" ( (type_descriptor "Btree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (expression_statement "rc = sqlite3PagerWrite(pPage->pDbPage);" (assignment_expression "rc = sqlite3PagerWrite(pPage->pDbPage)" identifier = (call_expression "sqlite3PagerWrite(pPage->pDbPage)" identifier (argument_list "(pPage->pDbPage)" ( (field_expression "pPage->pDbPage" identifier -> field_identifier) )))) ;) (expression_statement "iVar16 = rc;" (assignment_expression "iVar16 = rc" identifier = identifier) ;) (if_statement "if ((rc == 0) &&\n     (rc = clearCell(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4),&info), iVar16 = rc,\n     rc == 0)) {\n    dropCell(pPage,idx,(uint)info.nSize,&rc);\n    iVar16 = rc;\n    if (rc == 0) {\n      if (pPage->leaf == '\0') {\n        pMVar11 = pCur->pPage;\n        if ((pMVar11->nFree < 0) && (rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n        if ((int)cVar2 < pCur->iPage + -1) {\n          local_44 = pCur->apPage[cVar2 + 1]->pgno;\n        }\n        else {\n          local_44 = pCur->pPage->pgno;\n        }\n        puVar17 = pMVar11->aData +\n                  ((*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &\n                  pMVar11->maskPage);\n        if (puVar17 < pMVar11->aData + 4) {\n          iVar16 = sqlite3CorruptError(0x11f26);\n          goto LAB_000692f5;\n        }\n        uVar14 = (*pMVar11->xCellSize)(pMVar11,puVar17);\n        pTemp = pBVar8->pTmpSpace;\n        rc = sqlite3PagerWrite(pMVar11->pDbPage);\n        iVar16 = rc;\n        if (rc != 0) goto LAB_000692f5;\n        insertCell(pPage,idx,puVar17 + -4,uVar14 + 4,pTemp,local_44,&rc);\n        iVar16 = rc;\n        if ((rc != 0) ||\n           (dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n      }\n      rc = balance(pCur);\n      iVar16 = rc;\n      if (rc == 0) {\n        if (cVar2 < pCur->iPage) {\n          sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n          cVar13 = pCur->iPage + -1;\n          pCur->iPage = cVar13;\n          do {\n            iVar16 = (int)cVar13;\n            do {\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            } while (pMVar11 == (MemPage *)0x0);\n            sqlite3PagerUnrefNotNull(pMVar11->pDbPage);\n            cVar13 = pCur->iPage;\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar12) {\n          pCur->eState = '\x02';\n          uVar4 = pPage->nCell;\n          iVar16 = rc;\n          if (uVar5 < uVar4) {\n            pCur->skipNext = 1;\n          }\n          else {\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }\n        }\n        else {\n          rc = moveToRoot(pCur);\n          if ((flags & 2) != 0) {\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }\n          iVar16 = rc;\n          if (rc == 0x10) {\n            iVar16 = 0;\n          }\n        }\n      }\n    }\n  }" if (parenthesized_expression "((rc == 0) &&\n     (rc = clearCell(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4),&info), iVar16 = rc,\n     rc == 0))" ( (binary_expression "(rc == 0) &&\n     (rc = clearCell(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4),&info), iVar16 = rc,\n     rc == 0)" (parenthesized_expression "(rc == 0)" ( (binary_expression "rc == 0" identifier == number_literal) )) && (parenthesized_expression "(rc = clearCell(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4),&info), iVar16 = rc,\n     rc == 0)" ( (comma_expression "rc = clearCell(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4),&info), iVar16 = rc,\n     rc == 0" (assignment_expression "rc = clearCell(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4),&info)" identifier = (call_expression "clearCell(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4),&info)" identifier (argument_list "(pPage,puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4),&info)" ( identifier , (binary_expression "puVar17 + ((uVar6 << 8 | uVar6 >> 8) & uVar4)" identifier + (parenthesized_expression "((uVar6 << 8 | uVar6 >> 8) & uVar4)" ( (binary_expression "(uVar6 << 8 | uVar6 >> 8) & uVar4" (parenthesized_expression "(uVar6 << 8 | uVar6 >> 8)" ( (binary_expression "uVar6 << 8 | uVar6 >> 8" (binary_expression "uVar6 << 8" identifier << number_literal) | (binary_expression "uVar6 >> 8" identifier >> number_literal)) )) & identifier) ))) , (pointer_expression "&info" & identifier) )))) , (comma_expression "iVar16 = rc,\n     rc == 0" (assignment_expression "iVar16 = rc" identifier = identifier) , (binary_expression "rc == 0" identifier == number_literal))) ))) )) (compound_statement "{\n    dropCell(pPage,idx,(uint)info.nSize,&rc);\n    iVar16 = rc;\n    if (rc == 0) {\n      if (pPage->leaf == '\0') {\n        pMVar11 = pCur->pPage;\n        if ((pMVar11->nFree < 0) && (rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n        if ((int)cVar2 < pCur->iPage + -1) {\n          local_44 = pCur->apPage[cVar2 + 1]->pgno;\n        }\n        else {\n          local_44 = pCur->pPage->pgno;\n        }\n        puVar17 = pMVar11->aData +\n                  ((*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &\n                  pMVar11->maskPage);\n        if (puVar17 < pMVar11->aData + 4) {\n          iVar16 = sqlite3CorruptError(0x11f26);\n          goto LAB_000692f5;\n        }\n        uVar14 = (*pMVar11->xCellSize)(pMVar11,puVar17);\n        pTemp = pBVar8->pTmpSpace;\n        rc = sqlite3PagerWrite(pMVar11->pDbPage);\n        iVar16 = rc;\n        if (rc != 0) goto LAB_000692f5;\n        insertCell(pPage,idx,puVar17 + -4,uVar14 + 4,pTemp,local_44,&rc);\n        iVar16 = rc;\n        if ((rc != 0) ||\n           (dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n      }\n      rc = balance(pCur);\n      iVar16 = rc;\n      if (rc == 0) {\n        if (cVar2 < pCur->iPage) {\n          sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n          cVar13 = pCur->iPage + -1;\n          pCur->iPage = cVar13;\n          do {\n            iVar16 = (int)cVar13;\n            do {\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            } while (pMVar11 == (MemPage *)0x0);\n            sqlite3PagerUnrefNotNull(pMVar11->pDbPage);\n            cVar13 = pCur->iPage;\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar12) {\n          pCur->eState = '\x02';\n          uVar4 = pPage->nCell;\n          iVar16 = rc;\n          if (uVar5 < uVar4) {\n            pCur->skipNext = 1;\n          }\n          else {\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }\n        }\n        else {\n          rc = moveToRoot(pCur);\n          if ((flags & 2) != 0) {\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }\n          iVar16 = rc;\n          if (rc == 0x10) {\n            iVar16 = 0;\n          }\n        }\n      }\n    }\n  }" { (expression_statement "dropCell(pPage,idx,(uint)info.nSize,&rc);" (call_expression "dropCell(pPage,idx,(uint)info.nSize,&rc)" identifier (argument_list "(pPage,idx,(uint)info.nSize,&rc)" ( identifier , identifier , (cast_expression "(uint)info.nSize" ( (type_descriptor "uint" type_identifier) ) (field_expression "info.nSize" identifier . field_identifier)) , (pointer_expression "&rc" & identifier) ))) ;) (expression_statement "iVar16 = rc;" (assignment_expression "iVar16 = rc" identifier = identifier) ;) (if_statement "if (rc == 0) {\n      if (pPage->leaf == '\0') {\n        pMVar11 = pCur->pPage;\n        if ((pMVar11->nFree < 0) && (rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n        if ((int)cVar2 < pCur->iPage + -1) {\n          local_44 = pCur->apPage[cVar2 + 1]->pgno;\n        }\n        else {\n          local_44 = pCur->pPage->pgno;\n        }\n        puVar17 = pMVar11->aData +\n                  ((*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &\n                  pMVar11->maskPage);\n        if (puVar17 < pMVar11->aData + 4) {\n          iVar16 = sqlite3CorruptError(0x11f26);\n          goto LAB_000692f5;\n        }\n        uVar14 = (*pMVar11->xCellSize)(pMVar11,puVar17);\n        pTemp = pBVar8->pTmpSpace;\n        rc = sqlite3PagerWrite(pMVar11->pDbPage);\n        iVar16 = rc;\n        if (rc != 0) goto LAB_000692f5;\n        insertCell(pPage,idx,puVar17 + -4,uVar14 + 4,pTemp,local_44,&rc);\n        iVar16 = rc;\n        if ((rc != 0) ||\n           (dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n      }\n      rc = balance(pCur);\n      iVar16 = rc;\n      if (rc == 0) {\n        if (cVar2 < pCur->iPage) {\n          sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n          cVar13 = pCur->iPage + -1;\n          pCur->iPage = cVar13;\n          do {\n            iVar16 = (int)cVar13;\n            do {\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            } while (pMVar11 == (MemPage *)0x0);\n            sqlite3PagerUnrefNotNull(pMVar11->pDbPage);\n            cVar13 = pCur->iPage;\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar12) {\n          pCur->eState = '\x02';\n          uVar4 = pPage->nCell;\n          iVar16 = rc;\n          if (uVar5 < uVar4) {\n            pCur->skipNext = 1;\n          }\n          else {\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }\n        }\n        else {\n          rc = moveToRoot(pCur);\n          if ((flags & 2) != 0) {\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }\n          iVar16 = rc;\n          if (rc == 0x10) {\n            iVar16 = 0;\n          }\n        }\n      }\n    }" if (parenthesized_expression "(rc == 0)" ( (binary_expression "rc == 0" identifier == number_literal) )) (compound_statement "{\n      if (pPage->leaf == '\0') {\n        pMVar11 = pCur->pPage;\n        if ((pMVar11->nFree < 0) && (rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n        if ((int)cVar2 < pCur->iPage + -1) {\n          local_44 = pCur->apPage[cVar2 + 1]->pgno;\n        }\n        else {\n          local_44 = pCur->pPage->pgno;\n        }\n        puVar17 = pMVar11->aData +\n                  ((*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &\n                  pMVar11->maskPage);\n        if (puVar17 < pMVar11->aData + 4) {\n          iVar16 = sqlite3CorruptError(0x11f26);\n          goto LAB_000692f5;\n        }\n        uVar14 = (*pMVar11->xCellSize)(pMVar11,puVar17);\n        pTemp = pBVar8->pTmpSpace;\n        rc = sqlite3PagerWrite(pMVar11->pDbPage);\n        iVar16 = rc;\n        if (rc != 0) goto LAB_000692f5;\n        insertCell(pPage,idx,puVar17 + -4,uVar14 + 4,pTemp,local_44,&rc);\n        iVar16 = rc;\n        if ((rc != 0) ||\n           (dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n      }\n      rc = balance(pCur);\n      iVar16 = rc;\n      if (rc == 0) {\n        if (cVar2 < pCur->iPage) {\n          sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n          cVar13 = pCur->iPage + -1;\n          pCur->iPage = cVar13;\n          do {\n            iVar16 = (int)cVar13;\n            do {\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            } while (pMVar11 == (MemPage *)0x0);\n            sqlite3PagerUnrefNotNull(pMVar11->pDbPage);\n            cVar13 = pCur->iPage;\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar12) {\n          pCur->eState = '\x02';\n          uVar4 = pPage->nCell;\n          iVar16 = rc;\n          if (uVar5 < uVar4) {\n            pCur->skipNext = 1;\n          }\n          else {\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }\n        }\n        else {\n          rc = moveToRoot(pCur);\n          if ((flags & 2) != 0) {\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }\n          iVar16 = rc;\n          if (rc == 0x10) {\n            iVar16 = 0;\n          }\n        }\n      }\n    }" { (if_statement "if (pPage->leaf == '\0') {\n        pMVar11 = pCur->pPage;\n        if ((pMVar11->nFree < 0) && (rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n        if ((int)cVar2 < pCur->iPage + -1) {\n          local_44 = pCur->apPage[cVar2 + 1]->pgno;\n        }\n        else {\n          local_44 = pCur->pPage->pgno;\n        }\n        puVar17 = pMVar11->aData +\n                  ((*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &\n                  pMVar11->maskPage);\n        if (puVar17 < pMVar11->aData + 4) {\n          iVar16 = sqlite3CorruptError(0x11f26);\n          goto LAB_000692f5;\n        }\n        uVar14 = (*pMVar11->xCellSize)(pMVar11,puVar17);\n        pTemp = pBVar8->pTmpSpace;\n        rc = sqlite3PagerWrite(pMVar11->pDbPage);\n        iVar16 = rc;\n        if (rc != 0) goto LAB_000692f5;\n        insertCell(pPage,idx,puVar17 + -4,uVar14 + 4,pTemp,local_44,&rc);\n        iVar16 = rc;\n        if ((rc != 0) ||\n           (dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n      }" if (parenthesized_expression "(pPage->leaf == '\0')" ( (binary_expression "pPage->leaf == '\0'" (field_expression "pPage->leaf" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        pMVar11 = pCur->pPage;\n        if ((pMVar11->nFree < 0) && (rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n        if ((int)cVar2 < pCur->iPage + -1) {\n          local_44 = pCur->apPage[cVar2 + 1]->pgno;\n        }\n        else {\n          local_44 = pCur->pPage->pgno;\n        }\n        puVar17 = pMVar11->aData +\n                  ((*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &\n                  pMVar11->maskPage);\n        if (puVar17 < pMVar11->aData + 4) {\n          iVar16 = sqlite3CorruptError(0x11f26);\n          goto LAB_000692f5;\n        }\n        uVar14 = (*pMVar11->xCellSize)(pMVar11,puVar17);\n        pTemp = pBVar8->pTmpSpace;\n        rc = sqlite3PagerWrite(pMVar11->pDbPage);\n        iVar16 = rc;\n        if (rc != 0) goto LAB_000692f5;\n        insertCell(pPage,idx,puVar17 + -4,uVar14 + 4,pTemp,local_44,&rc);\n        iVar16 = rc;\n        if ((rc != 0) ||\n           (dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;\n      }" { (expression_statement "pMVar11 = pCur->pPage;" (assignment_expression "pMVar11 = pCur->pPage" identifier = (field_expression "pCur->pPage" identifier -> field_identifier)) ;) (if_statement "if ((pMVar11->nFree < 0) && (rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;" if (parenthesized_expression "((pMVar11->nFree < 0) && (rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0))" ( (binary_expression "(pMVar11->nFree < 0) && (rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0)" (parenthesized_expression "(pMVar11->nFree < 0)" ( (binary_expression "pMVar11->nFree < 0" (field_expression "pMVar11->nFree" identifier -> field_identifier) < number_literal) )) && (parenthesized_expression "(rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0)" ( (comma_expression "rc = btreeComputeFreeSpace(pMVar11), iVar16 = rc, rc != 0" (assignment_expression "rc = btreeComputeFreeSpace(pMVar11)" identifier = (call_expression "btreeComputeFreeSpace(pMVar11)" identifier (argument_list "(pMVar11)" ( identifier )))) , (comma_expression "iVar16 = rc, rc != 0" (assignment_expression "iVar16 = rc" identifier = identifier) , (binary_expression "rc != 0" identifier != number_literal))) ))) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (if_statement "if ((int)cVar2 < pCur->iPage + -1) {\n          local_44 = pCur->apPage[cVar2 + 1]->pgno;\n        }\n        else {\n          local_44 = pCur->pPage->pgno;\n        }" if (parenthesized_expression "((int)cVar2 < pCur->iPage + -1)" ( (binary_expression "(int)cVar2 < pCur->iPage + -1" (cast_expression "(int)cVar2" ( (type_descriptor "int" primitive_type) ) identifier) < (binary_expression "pCur->iPage + -1" (field_expression "pCur->iPage" identifier -> field_identifier) + number_literal)) )) (compound_statement "{\n          local_44 = pCur->apPage[cVar2 + 1]->pgno;\n        }" { (expression_statement "local_44 = pCur->apPage[cVar2 + 1]->pgno;" (assignment_expression "local_44 = pCur->apPage[cVar2 + 1]->pgno" identifier = (field_expression "pCur->apPage[cVar2 + 1]->pgno" (subscript_expression "pCur->apPage[cVar2 + 1]" (field_expression "pCur->apPage" identifier -> field_identifier) [ (binary_expression "cVar2 + 1" identifier + number_literal) ]) -> field_identifier)) ;) }) (else_clause "else {\n          local_44 = pCur->pPage->pgno;\n        }" else (compound_statement "{\n          local_44 = pCur->pPage->pgno;\n        }" { (expression_statement "local_44 = pCur->pPage->pgno;" (assignment_expression "local_44 = pCur->pPage->pgno" identifier = (field_expression "pCur->pPage->pgno" (field_expression "pCur->pPage" identifier -> field_identifier) -> field_identifier)) ;) }))) (expression_statement "puVar17 = pMVar11->aData +\n                  ((*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &\n                  pMVar11->maskPage);" (assignment_expression "puVar17 = pMVar11->aData +\n                  ((*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &\n                  pMVar11->maskPage)" identifier = (binary_expression "pMVar11->aData +\n                  ((*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &\n                  pMVar11->maskPage)" (field_expression "pMVar11->aData" identifier -> field_identifier) + (parenthesized_expression "((*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &\n                  pMVar11->maskPage)" ( (binary_expression "(*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8) &\n                  pMVar11->maskPage" (parenthesized_expression "(*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8)" ( (binary_expression "*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8 |\n                   *(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8" (binary_expression "*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) << 8" (pointer_expression "*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2)" * (cast_expression "(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2)" ( (binary_expression "pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2" (binary_expression "pMVar11->aCellIdx + (uint)pMVar11->nCell * 2" (field_expression "pMVar11->aCellIdx" identifier -> field_identifier) + (binary_expression "(uint)pMVar11->nCell * 2" (cast_expression "(uint)pMVar11->nCell" ( (type_descriptor "uint" type_identifier) ) (field_expression "pMVar11->nCell" identifier -> field_identifier)) * number_literal)) + number_literal) )))) << number_literal) | (binary_expression "*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2) >> 8" (pointer_expression "*(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2)" * (cast_expression "(ushort *)(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2)" ( (binary_expression "pMVar11->aCellIdx + (uint)pMVar11->nCell * 2 + -2" (binary_expression "pMVar11->aCellIdx + (uint)pMVar11->nCell * 2" (field_expression "pMVar11->aCellIdx" identifier -> field_identifier) + (binary_expression "(uint)pMVar11->nCell * 2" (cast_expression "(uint)pMVar11->nCell" ( (type_descriptor "uint" type_identifier) ) (field_expression "pMVar11->nCell" identifier -> field_identifier)) * number_literal)) + number_literal) )))) >> number_literal)) )) & (field_expression "pMVar11->maskPage" identifier -> field_identifier)) )))) ;) (if_statement "if (puVar17 < pMVar11->aData + 4) {\n          iVar16 = sqlite3CorruptError(0x11f26);\n          goto LAB_000692f5;\n        }" if (parenthesized_expression "(puVar17 < pMVar11->aData + 4)" ( (binary_expression "puVar17 < pMVar11->aData + 4" identifier < (binary_expression "pMVar11->aData + 4" (field_expression "pMVar11->aData" identifier -> field_identifier) + number_literal)) )) (compound_statement "{\n          iVar16 = sqlite3CorruptError(0x11f26);\n          goto LAB_000692f5;\n        }" { (expression_statement "iVar16 = sqlite3CorruptError(0x11f26);" (assignment_expression "iVar16 = sqlite3CorruptError(0x11f26)" identifier = (call_expression "sqlite3CorruptError(0x11f26)" identifier (argument_list "(0x11f26)" ( number_literal )))) ;) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;) })) (expression_statement "uVar14 = (*pMVar11->xCellSize)(pMVar11,puVar17);" (assignment_expression "uVar14 = (*pMVar11->xCellSize)(pMVar11,puVar17)" identifier = (call_expression "(*pMVar11->xCellSize)(pMVar11,puVar17)" (parenthesized_expression "(*pMVar11->xCellSize)" ( (pointer_expression "*pMVar11->xCellSize" * (field_expression "pMVar11->xCellSize" identifier -> field_identifier)) )) (argument_list "(pMVar11,puVar17)" ( identifier , identifier )))) ;) (expression_statement "pTemp = pBVar8->pTmpSpace;" (assignment_expression "pTemp = pBVar8->pTmpSpace" identifier = (field_expression "pBVar8->pTmpSpace" identifier -> field_identifier)) ;) (expression_statement "rc = sqlite3PagerWrite(pMVar11->pDbPage);" (assignment_expression "rc = sqlite3PagerWrite(pMVar11->pDbPage)" identifier = (call_expression "sqlite3PagerWrite(pMVar11->pDbPage)" identifier (argument_list "(pMVar11->pDbPage)" ( (field_expression "pMVar11->pDbPage" identifier -> field_identifier) )))) ;) (expression_statement "iVar16 = rc;" (assignment_expression "iVar16 = rc" identifier = identifier) ;) (if_statement "if (rc != 0) goto LAB_000692f5;" if (parenthesized_expression "(rc != 0)" ( (binary_expression "rc != 0" identifier != number_literal) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (expression_statement "insertCell(pPage,idx,puVar17 + -4,uVar14 + 4,pTemp,local_44,&rc);" (call_expression "insertCell(pPage,idx,puVar17 + -4,uVar14 + 4,pTemp,local_44,&rc)" identifier (argument_list "(pPage,idx,puVar17 + -4,uVar14 + 4,pTemp,local_44,&rc)" ( identifier , identifier , (binary_expression "puVar17 + -4" identifier + number_literal) , (binary_expression "uVar14 + 4" identifier + number_literal) , identifier , identifier , (pointer_expression "&rc" & identifier) ))) ;) (expression_statement "iVar16 = rc;" (assignment_expression "iVar16 = rc" identifier = identifier) ;) (if_statement "if ((rc != 0) ||\n           (dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0))\n        goto LAB_000692f5;" if (parenthesized_expression "((rc != 0) ||\n           (dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0))" ( (binary_expression "(rc != 0) ||\n           (dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0)" (parenthesized_expression "(rc != 0)" ( (binary_expression "rc != 0" identifier != number_literal) )) || (parenthesized_expression "(dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0)" ( (comma_expression "dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc), iVar16 = rc, rc != 0" (call_expression "dropCell(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc)" identifier (argument_list "(pMVar11,pMVar11->nCell - 1,(uint)uVar14,&rc)" ( identifier , (binary_expression "pMVar11->nCell - 1" (field_expression "pMVar11->nCell" identifier -> field_identifier) - number_literal) , (cast_expression "(uint)uVar14" ( (type_descriptor "uint" type_identifier) ) identifier) , (pointer_expression "&rc" & identifier) ))) , (comma_expression "iVar16 = rc, rc != 0" (assignment_expression "iVar16 = rc" identifier = identifier) , (binary_expression "rc != 0" identifier != number_literal))) ))) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) })) (expression_statement "rc = balance(pCur);" (assignment_expression "rc = balance(pCur)" identifier = (call_expression "balance(pCur)" identifier (argument_list "(pCur)" ( identifier )))) ;) (expression_statement "iVar16 = rc;" (assignment_expression "iVar16 = rc" identifier = identifier) ;) (if_statement "if (rc == 0) {\n        if (cVar2 < pCur->iPage) {\n          sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n          cVar13 = pCur->iPage + -1;\n          pCur->iPage = cVar13;\n          do {\n            iVar16 = (int)cVar13;\n            do {\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            } while (pMVar11 == (MemPage *)0x0);\n            sqlite3PagerUnrefNotNull(pMVar11->pDbPage);\n            cVar13 = pCur->iPage;\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar12) {\n          pCur->eState = '\x02';\n          uVar4 = pPage->nCell;\n          iVar16 = rc;\n          if (uVar5 < uVar4) {\n            pCur->skipNext = 1;\n          }\n          else {\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }\n        }\n        else {\n          rc = moveToRoot(pCur);\n          if ((flags & 2) != 0) {\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }\n          iVar16 = rc;\n          if (rc == 0x10) {\n            iVar16 = 0;\n          }\n        }\n      }" if (parenthesized_expression "(rc == 0)" ( (binary_expression "rc == 0" identifier == number_literal) )) (compound_statement "{\n        if (cVar2 < pCur->iPage) {\n          sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n          cVar13 = pCur->iPage + -1;\n          pCur->iPage = cVar13;\n          do {\n            iVar16 = (int)cVar13;\n            do {\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            } while (pMVar11 == (MemPage *)0x0);\n            sqlite3PagerUnrefNotNull(pMVar11->pDbPage);\n            cVar13 = pCur->iPage;\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar12) {\n          pCur->eState = '\x02';\n          uVar4 = pPage->nCell;\n          iVar16 = rc;\n          if (uVar5 < uVar4) {\n            pCur->skipNext = 1;\n          }\n          else {\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }\n        }\n        else {\n          rc = moveToRoot(pCur);\n          if ((flags & 2) != 0) {\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }\n          iVar16 = rc;\n          if (rc == 0x10) {\n            iVar16 = 0;\n          }\n        }\n      }" { (if_statement "if (cVar2 < pCur->iPage) {\n          sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n          cVar13 = pCur->iPage + -1;\n          pCur->iPage = cVar13;\n          do {\n            iVar16 = (int)cVar13;\n            do {\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            } while (pMVar11 == (MemPage *)0x0);\n            sqlite3PagerUnrefNotNull(pMVar11->pDbPage);\n            cVar13 = pCur->iPage;\n          } while( true );\n        }" if (parenthesized_expression "(cVar2 < pCur->iPage)" ( (binary_expression "cVar2 < pCur->iPage" identifier < (field_expression "pCur->iPage" identifier -> field_identifier)) )) (compound_statement "{\n          sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);\n          cVar13 = pCur->iPage + -1;\n          pCur->iPage = cVar13;\n          do {\n            iVar16 = (int)cVar13;\n            do {\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            } while (pMVar11 == (MemPage *)0x0);\n            sqlite3PagerUnrefNotNull(pMVar11->pDbPage);\n            cVar13 = pCur->iPage;\n          } while( true );\n        }" { (expression_statement "sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage);" (call_expression "sqlite3PagerUnrefNotNull(pCur->pPage->pDbPage)" identifier (argument_list "(pCur->pPage->pDbPage)" ( (field_expression "pCur->pPage->pDbPage" (field_expression "pCur->pPage" identifier -> field_identifier) -> field_identifier) ))) ;) (expression_statement "cVar13 = pCur->iPage + -1;" (assignment_expression "cVar13 = pCur->iPage + -1" identifier = (binary_expression "pCur->iPage + -1" (field_expression "pCur->iPage" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pCur->iPage = cVar13;" (assignment_expression "pCur->iPage = cVar13" (field_expression "pCur->iPage" identifier -> field_identifier) = identifier) ;) (do_statement "do {\n            iVar16 = (int)cVar13;\n            do {\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            } while (pMVar11 == (MemPage *)0x0);\n            sqlite3PagerUnrefNotNull(pMVar11->pDbPage);\n            cVar13 = pCur->iPage;\n          } while( true );" do (compound_statement "{\n            iVar16 = (int)cVar13;\n            do {\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            } while (pMVar11 == (MemPage *)0x0);\n            sqlite3PagerUnrefNotNull(pMVar11->pDbPage);\n            cVar13 = pCur->iPage;\n          }" { (expression_statement "iVar16 = (int)cVar13;" (assignment_expression "iVar16 = (int)cVar13" identifier = (cast_expression "(int)cVar13" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            } while (pMVar11 == (MemPage *)0x0);" do (compound_statement "{\n              cVar13 = (char)iVar16;\n              pMVar11 = pCur->apPage[iVar16];\n              if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar16 = iVar16 + -1;\n              pCur->iPage = cVar13 + -1;\n            }" { (expression_statement "cVar13 = (char)iVar16;" (assignment_expression "cVar13 = (char)iVar16" identifier = (cast_expression "(char)iVar16" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "pMVar11 = pCur->apPage[iVar16];" (assignment_expression "pMVar11 = pCur->apPage[iVar16]" identifier = (subscript_expression "pCur->apPage[iVar16]" (field_expression "pCur->apPage" identifier -> field_identifier) [ identifier ])) ;) (if_statement "if (cVar13 <= cVar2) {\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }" if (parenthesized_expression "(cVar13 <= cVar2)" ( (binary_expression "cVar13 <= cVar2" identifier <= identifier) )) (compound_statement "{\n                pCur->pPage = pMVar11;\n                rc = balance(pCur);\n                iVar16 = rc;\n                if (rc != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }" { (expression_statement "pCur->pPage = pMVar11;" (assignment_expression "pCur->pPage = pMVar11" (field_expression "pCur->pPage" identifier -> field_identifier) = identifier) ;) (expression_statement "rc = balance(pCur);" (assignment_expression "rc = balance(pCur)" identifier = (call_expression "balance(pCur)" identifier (argument_list "(pCur)" ( identifier )))) ;) (expression_statement "iVar16 = rc;" (assignment_expression "iVar16 = rc" identifier = identifier) ;) (if_statement "if (rc != 0) goto LAB_000692f5;" if (parenthesized_expression "(rc != 0)" ( (binary_expression "rc != 0" identifier != number_literal) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (goto_statement "goto LAB_00069555;" goto statement_identifier ;) })) (expression_statement "iVar16 = iVar16 + -1;" (assignment_expression "iVar16 = iVar16 + -1" identifier = (binary_expression "iVar16 + -1" identifier + number_literal)) ;) (expression_statement "pCur->iPage = cVar13 + -1;" (assignment_expression "pCur->iPage = cVar13 + -1" (field_expression "pCur->iPage" identifier -> field_identifier) = (binary_expression "cVar13 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pMVar11 == (MemPage *)0x0)" ( (binary_expression "pMVar11 == (MemPage *)0x0" identifier == (cast_expression "(MemPage *)0x0" ( (type_descriptor "MemPage *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "sqlite3PagerUnrefNotNull(pMVar11->pDbPage);" (call_expression "sqlite3PagerUnrefNotNull(pMVar11->pDbPage)" identifier (argument_list "(pMVar11->pDbPage)" ( (field_expression "pMVar11->pDbPage" identifier -> field_identifier) ))) ;) (expression_statement "cVar13 = pCur->iPage;" (assignment_expression "cVar13 = pCur->iPage" identifier = (field_expression "pCur->iPage" identifier -> field_identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_00069555:\n        if (bVar12) {\n          pCur->eState = '\x02';\n          uVar4 = pPage->nCell;\n          iVar16 = rc;\n          if (uVar5 < uVar4) {\n            pCur->skipNext = 1;\n          }\n          else {\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }\n        }\n        else {\n          rc = moveToRoot(pCur);\n          if ((flags & 2) != 0) {\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }\n          iVar16 = rc;\n          if (rc == 0x10) {\n            iVar16 = 0;\n          }\n        }" statement_identifier : (if_statement "if (bVar12) {\n          pCur->eState = '\x02';\n          uVar4 = pPage->nCell;\n          iVar16 = rc;\n          if (uVar5 < uVar4) {\n            pCur->skipNext = 1;\n          }\n          else {\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }\n        }\n        else {\n          rc = moveToRoot(pCur);\n          if ((flags & 2) != 0) {\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }\n          iVar16 = rc;\n          if (rc == 0x10) {\n            iVar16 = 0;\n          }\n        }" if (parenthesized_expression "(bVar12)" ( identifier )) (compound_statement "{\n          pCur->eState = '\x02';\n          uVar4 = pPage->nCell;\n          iVar16 = rc;\n          if (uVar5 < uVar4) {\n            pCur->skipNext = 1;\n          }\n          else {\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }\n        }" { (expression_statement "pCur->eState = '\x02';" (assignment_expression "pCur->eState = '\x02'" (field_expression "pCur->eState" identifier -> field_identifier) = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "uVar4 = pPage->nCell;" (assignment_expression "uVar4 = pPage->nCell" identifier = (field_expression "pPage->nCell" identifier -> field_identifier)) ;) (expression_statement "iVar16 = rc;" (assignment_expression "iVar16 = rc" identifier = identifier) ;) (if_statement "if (uVar5 < uVar4) {\n            pCur->skipNext = 1;\n          }\n          else {\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }" if (parenthesized_expression "(uVar5 < uVar4)" ( (binary_expression "uVar5 < uVar4" identifier < identifier) )) (compound_statement "{\n            pCur->skipNext = 1;\n          }" { (expression_statement "pCur->skipNext = 1;" (assignment_expression "pCur->skipNext = 1" (field_expression "pCur->skipNext" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }" else (compound_statement "{\n            pCur->skipNext = -1;\n            pCur->ix = uVar4 - 1;\n          }" { (expression_statement "pCur->skipNext = -1;" (assignment_expression "pCur->skipNext = -1" (field_expression "pCur->skipNext" identifier -> field_identifier) = number_literal) ;) (expression_statement "pCur->ix = uVar4 - 1;" (assignment_expression "pCur->ix = uVar4 - 1" (field_expression "pCur->ix" identifier -> field_identifier) = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) }))) }) (else_clause "else {\n          rc = moveToRoot(pCur);\n          if ((flags & 2) != 0) {\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }\n          iVar16 = rc;\n          if (rc == 0x10) {\n            iVar16 = 0;\n          }\n        }" else (compound_statement "{\n          rc = moveToRoot(pCur);\n          if ((flags & 2) != 0) {\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }\n          iVar16 = rc;\n          if (rc == 0x10) {\n            iVar16 = 0;\n          }\n        }" { (expression_statement "rc = moveToRoot(pCur);" (assignment_expression "rc = moveToRoot(pCur)" identifier = (call_expression "moveToRoot(pCur)" identifier (argument_list "(pCur)" ( identifier )))) ;) (if_statement "if ((flags & 2) != 0) {\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }" if (parenthesized_expression "((flags & 2) != 0)" ( (binary_expression "(flags & 2) != 0" (parenthesized_expression "(flags & 2)" ( (binary_expression "flags & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }\n            pCur->eState = '\x03';\n          }" { (if_statement "if (-1 < pCur->iPage) {\n              btreeReleaseAllCursorPages(pCur);\n            }" if (parenthesized_expression "(-1 < pCur->iPage)" ( (binary_expression "-1 < pCur->iPage" number_literal < (field_expression "pCur->iPage" identifier -> field_identifier)) )) (compound_statement "{\n              btreeReleaseAllCursorPages(pCur);\n            }" { (expression_statement "btreeReleaseAllCursorPages(pCur);" (call_expression "btreeReleaseAllCursorPages(pCur)" identifier (argument_list "(pCur)" ( identifier ))) ;) })) (expression_statement "pCur->eState = '\x03';" (assignment_expression "pCur->eState = '\x03'" (field_expression "pCur->eState" identifier -> field_identifier) = (char_literal "'\x03'" ' escape_sequence ')) ;) })) (expression_statement "iVar16 = rc;" (assignment_expression "iVar16 = rc" identifier = identifier) ;) (if_statement "if (rc == 0x10) {\n            iVar16 = 0;\n          }" if (parenthesized_expression "(rc == 0x10)" ( (binary_expression "rc == 0x10" identifier == number_literal) )) (compound_statement "{\n            iVar16 = 0;\n          }" { (expression_statement "iVar16 = 0;" (assignment_expression "iVar16 = 0" identifier = number_literal) ;) })) })))) })) })) })) (labeled_statement "LAB_000692f5:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar16;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar16;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar16;\n  }" { (return_statement "return iVar16;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int __regparm3 FUN_000691f0(char *param_1,byte param_2)\n\n{\n  char cVar1;\n  ushort uVar2;\n  ushort uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  char cVar9;\n  ushort uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  undefined4 local_44;\n  int local_38 [6];\n  int local_20;\n  \n  iVar14 = *(int *)(param_1 + 8);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(iVar14 + 4);\n  if ((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)\n     ) goto LAB_000692f5;\n  cVar1 = param_1[0x3c];\n  iVar5 = *(int *)(param_1 + 0x6c);\n  uVar2 = *(ushort *)(param_1 + 0x3e);\n  uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2);\n  uVar10 = *(ushort *)(iVar5 + 0x1a);\n  iVar6 = *(int *)(iVar5 + 0x38);\n  if (*(int *)(iVar5 + 0x14) < 0) {\n    iVar12 = FUN_00038800();\n    iVar13 = 0xb;\n    if (iVar12 != 0) goto LAB_000692f5;\n  }\n  cVar9 = *(char *)(iVar5 + 8);\n  if ((param_2 & 2) == 0) {\njoined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;\n    bVar8 = false;\n  }\n  else if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }\n  if ((param_1[1] & 0x20U) == 0) {\n    iVar13 = *(int *)(param_1 + 0x68);\n  }\n  else {\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }\n  if ((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')) {\n    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);\n  }\n  local_38[0] = FUN_0005f680();\n  iVar13 = local_38[0];\n  if ((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))\n  {\n    FUN_00038cc0(local_38);\n    iVar13 = local_38[0];\n    if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }\n  }\nLAB_000692f5:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar13;\n  }\n                    \n  FUN_000a9ea0();\n}\n\n" (function_definition "int __regparm3 FUN_000691f0(char *param_1,byte param_2)\n\n{\n  char cVar1;\n  ushort uVar2;\n  ushort uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  char cVar9;\n  ushort uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  undefined4 local_44;\n  int local_38 [6];\n  int local_20;\n  \n  iVar14 = *(int *)(param_1 + 8);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(iVar14 + 4);\n  if ((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)\n     ) goto LAB_000692f5;\n  cVar1 = param_1[0x3c];\n  iVar5 = *(int *)(param_1 + 0x6c);\n  uVar2 = *(ushort *)(param_1 + 0x3e);\n  uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2);\n  uVar10 = *(ushort *)(iVar5 + 0x1a);\n  iVar6 = *(int *)(iVar5 + 0x38);\n  if (*(int *)(iVar5 + 0x14) < 0) {\n    iVar12 = FUN_00038800();\n    iVar13 = 0xb;\n    if (iVar12 != 0) goto LAB_000692f5;\n  }\n  cVar9 = *(char *)(iVar5 + 8);\n  if ((param_2 & 2) == 0) {\njoined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;\n    bVar8 = false;\n  }\n  else if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }\n  if ((param_1[1] & 0x20U) == 0) {\n    iVar13 = *(int *)(param_1 + 0x68);\n  }\n  else {\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }\n  if ((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')) {\n    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);\n  }\n  local_38[0] = FUN_0005f680();\n  iVar13 = local_38[0];\n  if ((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))\n  {\n    FUN_00038cc0(local_38);\n    iVar13 = local_38[0];\n    if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }\n  }\nLAB_000692f5:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar13;\n  }\n                    \n  FUN_000a9ea0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000691f0(char *param_1,byte param_2)" identifier (parameter_list "(char *param_1,byte param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  ushort uVar2;\n  ushort uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  char cVar9;\n  ushort uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  undefined4 local_44;\n  int local_38 [6];\n  int local_20;\n  \n  iVar14 = *(int *)(param_1 + 8);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(iVar14 + 4);\n  if ((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)\n     ) goto LAB_000692f5;\n  cVar1 = param_1[0x3c];\n  iVar5 = *(int *)(param_1 + 0x6c);\n  uVar2 = *(ushort *)(param_1 + 0x3e);\n  uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2);\n  uVar10 = *(ushort *)(iVar5 + 0x1a);\n  iVar6 = *(int *)(iVar5 + 0x38);\n  if (*(int *)(iVar5 + 0x14) < 0) {\n    iVar12 = FUN_00038800();\n    iVar13 = 0xb;\n    if (iVar12 != 0) goto LAB_000692f5;\n  }\n  cVar9 = *(char *)(iVar5 + 8);\n  if ((param_2 & 2) == 0) {\njoined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;\n    bVar8 = false;\n  }\n  else if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }\n  if ((param_1[1] & 0x20U) == 0) {\n    iVar13 = *(int *)(param_1 + 0x68);\n  }\n  else {\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }\n  if ((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')) {\n    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);\n  }\n  local_38[0] = FUN_0005f680();\n  iVar13 = local_38[0];\n  if ((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))\n  {\n    FUN_00038cc0(local_38);\n    iVar13 = local_38[0];\n    if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }\n  }\nLAB_000692f5:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar13;\n  }\n                    \n  FUN_000a9ea0();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "ushort uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "char cVar9;" primitive_type identifier ;) (declaration "ushort uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "int local_38 [6];" primitive_type (array_declarator "local_38 [6]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar14 = *(int *)(param_1 + 8);" (assignment_expression "iVar14 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(iVar14 + 4);" (assignment_expression "iVar4 = *(int *)(iVar14 + 4)" identifier = (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)\n     ) goto LAB_000692f5;" if (parenthesized_expression "((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)\n     )" ( (binary_expression "(*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)" (parenthesized_expression "(*param_1 == '\x03')" ( (binary_expression "*param_1 == '\x03'" (pointer_expression "*param_1" * identifier) == (char_literal "'\x03'" ' escape_sequence ')) )) && (parenthesized_expression "(local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)" ( (comma_expression "local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "local_38[0] = FUN_00068df0()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00068df0()" identifier (argument_list "()" ( )))) , (comma_expression "iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) , (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal))) ))) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (expression_statement "cVar1 = param_1[0x3c];" (assignment_expression "cVar1 = param_1[0x3c]" identifier = (subscript_expression "param_1[0x3c]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x6c)" identifier = (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(ushort *)(param_1 + 0x3e);" (assignment_expression "uVar2 = *(ushort *)(param_1 + 0x3e)" identifier = (pointer_expression "*(ushort *)(param_1 + 0x3e)" * (cast_expression "(ushort *)(param_1 + 0x3e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e)" ( (binary_expression "param_1 + 0x3e" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2);" (assignment_expression "uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2)" identifier = (pointer_expression "*(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2)" * (cast_expression "(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2)" ( (binary_expression "*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2" (pointer_expression "*(int *)(iVar5 + 0x40)" * (cast_expression "(int *)(iVar5 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x40)" ( (binary_expression "iVar5 + 0x40" identifier + number_literal) )))) + (binary_expression "(uint)uVar2 * 2" (cast_expression "(uint)uVar2" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) (expression_statement "uVar10 = *(ushort *)(iVar5 + 0x1a);" (assignment_expression "uVar10 = *(ushort *)(iVar5 + 0x1a)" identifier = (pointer_expression "*(ushort *)(iVar5 + 0x1a)" * (cast_expression "(ushort *)(iVar5 + 0x1a)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1a)" ( (binary_expression "iVar5 + 0x1a" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(iVar5 + 0x38);" (assignment_expression "iVar6 = *(int *)(iVar5 + 0x38)" identifier = (pointer_expression "*(int *)(iVar5 + 0x38)" * (cast_expression "(int *)(iVar5 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x38)" ( (binary_expression "iVar5 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar5 + 0x14) < 0) {\n    iVar12 = FUN_00038800();\n    iVar13 = 0xb;\n    if (iVar12 != 0) goto LAB_000692f5;\n  }" if (parenthesized_expression "(*(int *)(iVar5 + 0x14) < 0)" ( (binary_expression "*(int *)(iVar5 + 0x14) < 0" (pointer_expression "*(int *)(iVar5 + 0x14)" * (cast_expression "(int *)(iVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    iVar12 = FUN_00038800();\n    iVar13 = 0xb;\n    if (iVar12 != 0) goto LAB_000692f5;\n  }" { (expression_statement "iVar12 = FUN_00038800();" (assignment_expression "iVar12 = FUN_00038800()" identifier = (call_expression "FUN_00038800()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = 0xb;" (assignment_expression "iVar13 = 0xb" identifier = number_literal) ;) (if_statement "if (iVar12 != 0) goto LAB_000692f5;" if (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) })) (expression_statement "cVar9 = *(char *)(iVar5 + 8);" (assignment_expression "cVar9 = *(char *)(iVar5 + 8)" identifier = (pointer_expression "*(char *)(iVar5 + 8)" * (cast_expression "(char *)(iVar5 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((param_2 & 2) == 0) {\njoined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;\n    bVar8 = false;\n  }\n  else if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }" if (parenthesized_expression "((param_2 & 2) == 0)" ( (binary_expression "(param_2 & 2) == 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\njoined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;\n    bVar8 = false;\n  }" { (labeled_statement "joined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;" statement_identifier : (if_statement "if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;" if (parenthesized_expression "((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))" ( (binary_expression "(cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0)" (parenthesized_expression "(cVar9 == '\0')" ( (binary_expression "cVar9 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0)" ( (comma_expression "local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "local_38[0] = FUN_00068fe0(param_1,0)" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00068fe0(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) , (comma_expression "iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) , (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal))) ))) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;))) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) }) (else_clause "else if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }" else (if_statement "if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }" if (parenthesized_expression "(((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1))" ( (binary_expression "((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)" (parenthesized_expression "((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)))" ( (binary_expression "(cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))" (parenthesized_expression "(cVar9 == '\0')" ( (binary_expression "cVar9 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))" ( (comma_expression "uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)" (assignment_expression "uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6)" identifier = (call_expression "FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6)" identifier (argument_list "(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6)" ( identifier , (binary_expression "(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6" (call_expression "(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uVar3 << 8 | uVar3 >> 8) & uVar10)" ( (binary_expression "(uVar3 << 8 | uVar3 >> 8) & uVar10" (parenthesized_expression "(uVar3 << 8 | uVar3 >> 8)" ( (binary_expression "uVar3 << 8 | uVar3 >> 8" (binary_expression "uVar3 << 8" identifier << number_literal) | (binary_expression "uVar3 >> 8" identifier >> number_literal)) )) & identifier) ))) + identifier) )))) , (binary_expression "(int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)" (cast_expression "(int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(*(int *)(iVar4 + 0x28) * 2) / 3)" ( (binary_expression "(uint)(*(int *)(iVar4 + 0x28) * 2) / 3" (call_expression "(uint)(*(int *)(iVar4 + 0x28) * 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(iVar4 + 0x28) * 2)" ( (binary_expression "*(int *)(iVar4 + 0x28) * 2" (pointer_expression "*(int *)(iVar4 + 0x28)" * (cast_expression "(int *)(iVar4 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x28)" ( (binary_expression "iVar4 + 0x28" identifier + number_literal) )))) * number_literal) ))) / number_literal) ))) <= (cast_expression "(int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)" ( (binary_expression "(uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1" (binary_expression "(uVar11 & 0xffff) + *(int *)(iVar5 + 0x14)" (parenthesized_expression "(uVar11 & 0xffff)" ( (binary_expression "uVar11 & 0xffff" identifier & number_literal) )) + (pointer_expression "*(int *)(iVar5 + 0x14)" * (cast_expression "(int *)(iVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) ))))) + number_literal) ))))) ))) )) || (parenthesized_expression "(bVar8 = true, *(short *)(iVar5 + 0x18) == 1)" ( (comma_expression "bVar8 = true, *(short *)(iVar5 + 0x18) == 1" (assignment_expression "bVar8 = true" identifier = true) , (binary_expression "*(short *)(iVar5 + 0x18) == 1" (pointer_expression "*(short *)(iVar5 + 0x18)" * (cast_expression "(short *)(iVar5 + 0x18)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) )))) == number_literal)) ))) )) (compound_statement "{\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }" { (if_statement "if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }" if (parenthesized_expression "(param_1[0x3d] == '\0')" ( (binary_expression "param_1[0x3d] == '\0'" (subscript_expression "param_1[0x3d]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }" { (expression_statement "local_38[0] = FUN_00067980();" (assignment_expression "local_38[0] = FUN_00067980()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00067980()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (local_38[0] != 0) goto LAB_000692f5;" if (parenthesized_expression "(local_38[0] != 0)" ( (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (expression_statement "cVar9 = *(char *)(iVar5 + 8);" (assignment_expression "cVar9 = *(char *)(iVar5 + 8)" identifier = (pointer_expression "*(char *)(iVar5 + 8)" * (cast_expression "(char *)(iVar5 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_38[0] = 0;" (assignment_expression "local_38[0] = 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }" else (compound_statement "{\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }" { (expression_statement "FUN_000232c0();" (call_expression "FUN_000232c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_38[0] = 0;" (assignment_expression "local_38[0] = 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c)" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20)" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" * (cast_expression "(undefined4 *)(param_1 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (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) ))))) ;) (expression_statement "cVar9 = *(char *)(iVar5 + 8);" (assignment_expression "cVar9 = *(char *)(iVar5 + 8)" identifier = (pointer_expression "*(char *)(iVar5 + 8)" * (cast_expression "(char *)(iVar5 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) ))))) ;) }))) (goto_statement "goto joined_r0x000692c2;" goto statement_identifier ;) })))) (if_statement "if ((param_1[1] & 0x20U) == 0) {\n    iVar13 = *(int *)(param_1 + 0x68);\n  }\n  else {\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }" if (parenthesized_expression "((param_1[1] & 0x20U) == 0)" ( (binary_expression "(param_1[1] & 0x20U) == 0" (parenthesized_expression "(param_1[1] & 0x20U)" ( (binary_expression "param_1[1] & 0x20U" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar13 = *(int *)(param_1 + 0x68);\n  }" { (expression_statement "iVar13 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar13 = *(int *)(param_1 + 0x68)" identifier = (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }" else (compound_statement "{\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }" { (expression_statement "local_38[0] = FUN_00067b20();" (assignment_expression "local_38[0] = FUN_00067b20()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00067b20()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (local_38[0] != 0) goto LAB_000692f5;" if (parenthesized_expression "(local_38[0] != 0)" ( (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (expression_statement "iVar13 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar13 = *(int *)(param_1 + 0x68)" identifier = (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (expression_statement "local_38[0] = 0;" (assignment_expression "local_38[0] = 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) = number_literal) ;) }))) (if_statement "if ((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')) {\n    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);\n  }" if (parenthesized_expression "((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0'))" ( (binary_expression "(iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')" (parenthesized_expression "(iVar13 == 0)" ( (binary_expression "iVar13 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(char *)(iVar14 + 0xb) != '\0')" ( (binary_expression "*(char *)(iVar14 + 0xb) != '\0'" (pointer_expression "*(char *)(iVar14 + 0xb)" * (cast_expression "(char *)(iVar14 + 0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xb)" ( (binary_expression "iVar14 + 0xb" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);\n  }" { (expression_statement "FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);" (call_expression "FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) , (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) )))) , number_literal ))) ;) })) (expression_statement "local_38[0] = FUN_0005f680();" (assignment_expression "local_38[0] = FUN_0005f680()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_0005f680()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if ((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))\n  {\n    FUN_00038cc0(local_38);\n    iVar13 = local_38[0];\n    if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }\n  }" if (parenthesized_expression "((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))" ( (binary_expression "(local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0)" (parenthesized_expression "(local_38[0] == 0)" ( (binary_expression "local_38[0] == 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) == number_literal) )) && (parenthesized_expression "(local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0)" ( (comma_expression "local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0" (assignment_expression "local_38[0] = FUN_00064e80()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00064e80()" identifier (argument_list "()" ( )))) , (comma_expression "iVar13 = local_38[0], local_38[0] == 0" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) , (binary_expression "local_38[0] == 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) == number_literal))) ))) )) (compound_statement "{\n    FUN_00038cc0(local_38);\n    iVar13 = local_38[0];\n    if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }\n  }" { (expression_statement "FUN_00038cc0(local_38);" (call_expression "FUN_00038cc0(local_38)" identifier (argument_list "(local_38)" ( identifier ))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }" if (parenthesized_expression "(local_38[0] == 0)" ( (binary_expression "local_38[0] == 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }" { (if_statement "if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }" if (parenthesized_expression "(*(char *)(iVar5 + 8) == '\0')" ( (binary_expression "*(char *)(iVar5 + 8) == '\0'" (pointer_expression "*(char *)(iVar5 + 8)" * (cast_expression "(char *)(iVar5 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }" { (expression_statement "iVar14 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar14 = *(int *)(param_1 + 0x6c)" identifier = (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (if_statement "if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;" if (parenthesized_expression "((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))" ( (binary_expression "(*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0)" (parenthesized_expression "(*(int *)(iVar14 + 0x14) < 0)" ( (binary_expression "*(int *)(iVar14 + 0x14) < 0" (pointer_expression "*(int *)(iVar14 + 0x14)" * (cast_expression "(int *)(iVar14 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x14)" ( (binary_expression "iVar14 + 0x14" identifier + number_literal) )))) < number_literal) )) && (parenthesized_expression "(local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0)" ( (comma_expression "local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "local_38[0] = FUN_00038800()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00038800()" identifier (argument_list "()" ( )))) , (comma_expression "iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) , (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal))) ))) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (if_statement "if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }" if (parenthesized_expression "((int)cVar1 < param_1[0x3c] + -1)" ( (binary_expression "(int)cVar1 < param_1[0x3c] + -1" (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) < (binary_expression "param_1[0x3c] + -1" (subscript_expression "param_1[0x3c]" identifier [ number_literal ]) + number_literal)) )) (compound_statement "{\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }" { (expression_statement "local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);" (assignment_expression "local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4)" ( (binary_expression "*(int *)(param_1 + cVar1 * 4 + 0x74) + 4" (pointer_expression "*(int *)(param_1 + cVar1 * 4 + 0x74)" * (cast_expression "(int *)(param_1 + cVar1 * 4 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + cVar1 * 4 + 0x74)" ( (binary_expression "param_1 + cVar1 * 4 + 0x74" (binary_expression "param_1 + cVar1 * 4" identifier + (binary_expression "cVar1 * 4" identifier * number_literal)) + number_literal) )))) + number_literal) ))))) ;) }) (else_clause "else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }" else (compound_statement "{\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }" { (expression_statement "local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);" (assignment_expression "local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x6c) + 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x6c) + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x6c) + 4)" ( (binary_expression "*(int *)(param_1 + 0x6c) + 4" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) + number_literal) ))))) ;) }))) (expression_statement "uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);" (assignment_expression "uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2)" identifier = (pointer_expression "*(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2)" * (cast_expression "(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2)" ( (binary_expression "*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2" (binary_expression "*(int *)(iVar14 + 0x40) + -2" (pointer_expression "*(int *)(iVar14 + 0x40)" * (cast_expression "(int *)(iVar14 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x40)" ( (binary_expression "iVar14 + 0x40" identifier + number_literal) )))) + number_literal) + (binary_expression "(uint)*(ushort *)(iVar14 + 0x18) * 2" (binary_expression "(uint)*(ushort *)(iVar14 + 0x18)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(iVar14 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x18)" ( (binary_expression "iVar14 + 0x18" identifier + number_literal) )))) * number_literal)) ))))) ;) (expression_statement "uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);" (assignment_expression "uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38)" identifier = (binary_expression "(uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38)" (call_expression "(uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a))" ( (binary_expression "(uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)" (parenthesized_expression "(uVar10 << 8 | uVar10 >> 8)" ( (binary_expression "uVar10 << 8 | uVar10 >> 8" (binary_expression "uVar10 << 8" identifier << number_literal) | (binary_expression "uVar10 >> 8" identifier >> number_literal)) )) & (pointer_expression "*(ushort *)(iVar14 + 0x1a)" * (cast_expression "(ushort *)(iVar14 + 0x1a)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x1a)" ( (binary_expression "iVar14 + 0x1a" identifier + number_literal) ))))) ))) + (pointer_expression "*(int *)(iVar14 + 0x38)" * (cast_expression "(int *)(iVar14 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x38)" ( (binary_expression "iVar14 + 0x38" identifier + number_literal) )))))) ;) (if_statement "if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }" if (parenthesized_expression "(uVar11 < *(int *)(iVar14 + 0x38) + 4U)" ( (binary_expression "uVar11 < *(int *)(iVar14 + 0x38) + 4U" identifier < (binary_expression "*(int *)(iVar14 + 0x38) + 4U" (pointer_expression "*(int *)(iVar14 + 0x38)" * (cast_expression "(int *)(iVar14 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0x38)" ( (binary_expression "iVar14 + 0x38" identifier + number_literal) )))) + number_literal)) )) (compound_statement "{\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }" { (expression_statement "iVar13 = FUN_000383f0();" (assignment_expression "iVar13 = FUN_000383f0()" identifier = (call_expression "FUN_000383f0()" identifier (argument_list "()" ( )))) ;) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;) })) (expression_statement "uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);" (assignment_expression "uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11)" identifier = (call_expression "(**(code **)(iVar14 + 0x4c))(iVar14,uVar11)" (parenthesized_expression "(**(code **)(iVar14 + 0x4c))" ( (pointer_expression "**(code **)(iVar14 + 0x4c)" * (pointer_expression "*(code **)(iVar14 + 0x4c)" * (cast_expression "(code **)(iVar14 + 0x4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar14 + 0x4c)" ( (binary_expression "iVar14 + 0x4c" identifier + number_literal) ))))) )) (argument_list "(iVar14,uVar11)" ( identifier , identifier )))) ;) (expression_statement "uVar7 = *(undefined4 *)(iVar4 + 0x54);" (assignment_expression "uVar7 = *(undefined4 *)(iVar4 + 0x54)" identifier = (pointer_expression "*(undefined4 *)(iVar4 + 0x54)" * (cast_expression "(undefined4 *)(iVar4 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x54)" ( (binary_expression "iVar4 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "local_38[0] = FUN_0005f680();" (assignment_expression "local_38[0] = FUN_0005f680()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_0005f680()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;" if (parenthesized_expression "(((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))" ( (binary_expression "((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0)" (parenthesized_expression "((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0))" ( (binary_expression "(local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)" (parenthesized_expression "(local_38[0] != 0)" ( (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal) )) || (parenthesized_expression "(FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)" ( (comma_expression "FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0" (call_expression "FUN_00065060(uVar10 + 4,uVar7,local_44,local_38)" identifier (argument_list "(uVar10 + 4,uVar7,local_44,local_38)" ( (binary_expression "uVar10 + 4" identifier + number_literal) , identifier , identifier , identifier ))) , (comma_expression "iVar13 = local_38[0],\n            local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) , (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal))) ))) )) || (parenthesized_expression "(FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0)" ( (comma_expression "FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0" (call_expression "FUN_00038cc0(local_38)" identifier (argument_list "(local_38)" ( identifier ))) , (comma_expression "iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) , (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal))) ))) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) })) (expression_statement "local_38[0] = FUN_00066cc0();" (assignment_expression "local_38[0] = FUN_00066cc0()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00066cc0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }" if (parenthesized_expression "(local_38[0] == 0)" ( (binary_expression "local_38[0] == 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }" { (if_statement "if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }" if (parenthesized_expression "(cVar1 < param_1[0x3c])" ( (binary_expression "cVar1 < param_1[0x3c]" identifier < (subscript_expression "param_1[0x3c]" identifier [ number_literal ])) )) (compound_statement "{\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }" { (expression_statement "FUN_0001f150();" (call_expression "FUN_0001f150()" identifier (argument_list "()" ( ))) ;) (expression_statement "cVar9 = param_1[0x3c] + -1;" (assignment_expression "cVar9 = param_1[0x3c] + -1" identifier = (binary_expression "param_1[0x3c] + -1" (subscript_expression "param_1[0x3c]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "param_1[0x3c] = cVar9;" (assignment_expression "param_1[0x3c] = cVar9" (subscript_expression "param_1[0x3c]" identifier [ number_literal ]) = identifier) ;) (do_statement "do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );" do (compound_statement "{\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          }" { (expression_statement "iVar14 = (int)cVar9;" (assignment_expression "iVar14 = (int)cVar9" identifier = (cast_expression "(int)cVar9" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);" do (compound_statement "{\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            }" { (expression_statement "cVar9 = (char)iVar14;" (assignment_expression "cVar9 = (char)iVar14" identifier = (cast_expression "(char)iVar14" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);" (assignment_expression "iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70)" identifier = (pointer_expression "*(int *)(param_1 + iVar14 * 4 + 0x70)" * (cast_expression "(int *)(param_1 + iVar14 * 4 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar14 * 4 + 0x70)" ( (binary_expression "param_1 + iVar14 * 4 + 0x70" (binary_expression "param_1 + iVar14 * 4" identifier + (binary_expression "iVar14 * 4" identifier * number_literal)) + number_literal) ))))) ;) (if_statement "if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }" if (parenthesized_expression "(cVar9 <= cVar1)" ( (binary_expression "cVar9 <= cVar1" identifier <= identifier) )) (compound_statement "{\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }" { (expression_statement "*(int *)(param_1 + 0x6c) = iVar4;" (assignment_expression "*(int *)(param_1 + 0x6c) = iVar4" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = identifier) ;) (expression_statement "local_38[0] = FUN_00066cc0();" (assignment_expression "local_38[0] = FUN_00066cc0()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00066cc0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (local_38[0] != 0) goto LAB_000692f5;" if (parenthesized_expression "(local_38[0] != 0)" ( (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" identifier [ number_literal ]) != number_literal) )) (goto_statement "goto LAB_000692f5;" goto statement_identifier ;)) (goto_statement "goto LAB_00069555;" goto statement_identifier ;) })) (expression_statement "iVar14 = iVar14 + -1;" (assignment_expression "iVar14 = iVar14 + -1" identifier = (binary_expression "iVar14 + -1" identifier + number_literal)) ;) (expression_statement "param_1[0x3c] = cVar9 + -1;" (assignment_expression "param_1[0x3c] = cVar9 + -1" (subscript_expression "param_1[0x3c]" identifier [ number_literal ]) = (binary_expression "cVar9 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) ;) (expression_statement "FUN_0001f150();" (call_expression "FUN_0001f150()" identifier (argument_list "()" ( ))) ;) (expression_statement "cVar9 = param_1[0x3c];" (assignment_expression "cVar9 = param_1[0x3c]" identifier = (subscript_expression "param_1[0x3c]" identifier [ number_literal ])) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }" statement_identifier : (if_statement "if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }" { (expression_statement "*param_1 = '\x02';" (assignment_expression "*param_1 = '\x02'" (pointer_expression "*param_1" * identifier) = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "uVar10 = *(ushort *)(iVar5 + 0x18);" (assignment_expression "uVar10 = *(ushort *)(iVar5 + 0x18)" identifier = (pointer_expression "*(ushort *)(iVar5 + 0x18)" * (cast_expression "(ushort *)(iVar5 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }" if (parenthesized_expression "(uVar2 < uVar10)" ( (binary_expression "uVar2 < uVar10" identifier < identifier) )) (compound_statement "{\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }" { (expression_statement "param_1[4] = '\x01';" (assignment_expression "param_1[4] = '\x01'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "param_1[5] = '\0';" (assignment_expression "param_1[5] = '\0'" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_1[6] = '\0';" (assignment_expression "param_1[6] = '\0'" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_1[7] = '\0';" (assignment_expression "param_1[7] = '\0'" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }" else (compound_statement "{\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }" { (expression_statement "param_1[4] = -1;" (assignment_expression "param_1[4] = -1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = -1;" (assignment_expression "param_1[5] = -1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[6] = -1;" (assignment_expression "param_1[6] = -1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[7] = -1;" (assignment_expression "param_1[7] = -1" (subscript_expression "param_1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(ushort *)(param_1 + 0x3e) = uVar10 - 1;" (assignment_expression "*(ushort *)(param_1 + 0x3e) = uVar10 - 1" (pointer_expression "*(ushort *)(param_1 + 0x3e)" * (cast_expression "(ushort *)(param_1 + 0x3e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e)" ( (binary_expression "param_1 + 0x3e" identifier + number_literal) )))) = (binary_expression "uVar10 - 1" identifier - number_literal)) ;) }))) }) (else_clause "else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }" else (compound_statement "{\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }" { (expression_statement "local_38[0] = FUN_00039f90();" (assignment_expression "local_38[0] = FUN_00039f90()" (subscript_expression "local_38[0]" identifier [ number_literal ]) = (call_expression "FUN_00039f90()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }" if (parenthesized_expression "((param_2 & 2) != 0)" ( (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }" { (if_statement "if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }" if (parenthesized_expression "(-1 < param_1[0x3c])" ( (binary_expression "-1 < param_1[0x3c]" number_literal < (subscript_expression "param_1[0x3c]" identifier [ number_literal ])) )) (compound_statement "{\n              FUN_00027e90();\n            }" { (expression_statement "FUN_00027e90();" (call_expression "FUN_00027e90()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*param_1 = '\x03';" (assignment_expression "*param_1 = '\x03'" (pointer_expression "*param_1" * identifier) = (char_literal "'\x03'" ' escape_sequence ')) ;) })) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" identifier = (subscript_expression "local_38[0]" identifier [ number_literal ])) ;) (if_statement "if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }" if (parenthesized_expression "(local_38[0] == 0x10)" ( (binary_expression "local_38[0] == 0x10" (subscript_expression "local_38[0]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n            iVar13 = 0;\n          }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) })) })))) })) })) })) (labeled_statement "LAB_000692f5:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar13;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar13;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar13;\n  }" { (return_statement "return iVar13;" return identifier ;) }))) (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( )))) , (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) , (binary_expression (subscript_expression IDENT [ LIT ]) != LIT))) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (subscript_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 (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) 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 (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) , (binary_expression (subscript_expression IDENT [ LIT ]) != LIT))) ))) )) (goto_statement goto statement_identifier ;))) (expression_statement (assignment_expression IDENT = BOOL) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT << LIT) | (binary_expression IDENT >> LIT)) )) & IDENT) ))) + IDENT) )))) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT) ))) / LIT) ))) <= (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = BOOL) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (goto_statement goto statement_identifier ;) })))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (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 (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( )))) , (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) , (binary_expression (subscript_expression IDENT [ LIT ]) == LIT))) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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) )))) < LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( )))) , (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) , (binary_expression (subscript_expression IDENT [ LIT ]) != LIT))) ))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT << LIT) | (binary_expression IDENT >> LIT)) )) & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) || (parenthesized_expression ( (comma_expression (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT ))) , (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) , (binary_expression (subscript_expression IDENT [ LIT ]) != LIT))) ))) )) || (parenthesized_expression ( (comma_expression (call_expression IDENT (argument_list ( IDENT ))) , (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) , (binary_expression (subscript_expression IDENT [ LIT ]) != LIT))) ))) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) while (parenthesized_expression ( BOOL )) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT - LIT)) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) })))) })) })) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int __regparm3 FUN_000691f0(char *param_1,byte param_2)\n\n{\n  char cVar1;\n  ushort uVar2;\n  ushort uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  char cVar9;\n  ushort uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  undefined4 local_44;\n  int local_38 [6];\n  int local_20;\n  \n  iVar14 = *(int *)(param_1 + 8);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(iVar14 + 4);\n  if ((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)\n     ) goto LAB_000692f5;\n  cVar1 = param_1[0x3c];\n  iVar5 = *(int *)(param_1 + 0x6c);\n  uVar2 = *(ushort *)(param_1 + 0x3e);\n  uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2);\n  uVar10 = *(ushort *)(iVar5 + 0x1a);\n  iVar6 = *(int *)(iVar5 + 0x38);\n  if (*(int *)(iVar5 + 0x14) < 0) {\n    iVar12 = FUN_00038800();\n    iVar13 = 0xb;\n    if (iVar12 != 0) goto LAB_000692f5;\n  }\n  cVar9 = *(char *)(iVar5 + 8);\n  if ((param_2 & 2) == 0) {\njoined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;\n    bVar8 = false;\n  }\n  else if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }\n  if ((param_1[1] & 0x20U) == 0) {\n    iVar13 = *(int *)(param_1 + 0x68);\n  }\n  else {\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }\n  if ((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')) {\n    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);\n  }\n  local_38[0] = FUN_0005f680();\n  iVar13 = local_38[0];\n  if ((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))\n  {\n    FUN_00038cc0(local_38);\n    iVar13 = local_38[0];\n    if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }\n  }\nLAB_000692f5:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar13;\n  }\n                    \n  FUN_000a9ea0();\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000691f0(char *param_1,byte param_2)" (identifier "FUN_000691f0") (parameter_list "(char *param_1,byte param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte param_2" (type_identifier "byte") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  ushort uVar2;\n  ushort uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  char cVar9;\n  ushort uVar10;\n  uint uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  undefined4 local_44;\n  int local_38 [6];\n  int local_20;\n  \n  iVar14 = *(int *)(param_1 + 8);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar4 = *(int *)(iVar14 + 4);\n  if ((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)\n     ) goto LAB_000692f5;\n  cVar1 = param_1[0x3c];\n  iVar5 = *(int *)(param_1 + 0x6c);\n  uVar2 = *(ushort *)(param_1 + 0x3e);\n  uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2);\n  uVar10 = *(ushort *)(iVar5 + 0x1a);\n  iVar6 = *(int *)(iVar5 + 0x38);\n  if (*(int *)(iVar5 + 0x14) < 0) {\n    iVar12 = FUN_00038800();\n    iVar13 = 0xb;\n    if (iVar12 != 0) goto LAB_000692f5;\n  }\n  cVar9 = *(char *)(iVar5 + 8);\n  if ((param_2 & 2) == 0) {\njoined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;\n    bVar8 = false;\n  }\n  else if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }\n  if ((param_1[1] & 0x20U) == 0) {\n    iVar13 = *(int *)(param_1 + 0x68);\n  }\n  else {\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }\n  if ((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')) {\n    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);\n  }\n  local_38[0] = FUN_0005f680();\n  iVar13 = local_38[0];\n  if ((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))\n  {\n    FUN_00038cc0(local_38);\n    iVar13 = local_38[0];\n    if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }\n  }\nLAB_000692f5:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar13;\n  }\n                    \n  FUN_000a9ea0();\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "ushort uVar2;" (type_identifier "ushort") (identifier "uVar2") (; ";")) (declaration "ushort uVar3;" (type_identifier "ushort") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (declaration "char cVar9;" (primitive_type "char") (identifier "cVar9") (; ";")) (declaration "ushort uVar10;" (type_identifier "ushort") (identifier "uVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "int iVar14;" (primitive_type "int") (identifier "iVar14") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_44;" (type_identifier "undefined4") (identifier "local_44") (; ";")) (declaration "int local_38 [6];" (primitive_type "int") (array_declarator "local_38 [6]" (identifier "local_38") ([ "[") (number_literal "6") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "iVar14 = *(int *)(param_1 + 8);" (assignment_expression "iVar14 = *(int *)(param_1 + 8)" (identifier "iVar14") (= "=") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar14 + 4);" (assignment_expression "iVar4 = *(int *)(iVar14 + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if ((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)\n     ) goto LAB_000692f5;" (if "if") (parenthesized_expression "((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)\n     )" (( "(") (binary_expression "(*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)" (parenthesized_expression "(*param_1 == '\x03')" (( "(") (binary_expression "*param_1 == '\x03'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'\x03'" (' "'") (escape_sequence "\x03") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)" (( "(") (comma_expression "local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "local_38[0] = FUN_00068df0()" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (call_expression "FUN_00068df0()" (identifier "FUN_00068df0") (argument_list "()" (( "(") () ")")))) (, ",") (comma_expression "iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (, ",") (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")))) () ")"))) () ")")) (goto_statement "goto LAB_000692f5;" (goto "goto") (statement_identifier "LAB_000692f5") (; ";"))) (expression_statement "cVar1 = param_1[0x3c];" (assignment_expression "cVar1 = param_1[0x3c]" (identifier "cVar1") (= "=") (subscript_expression "param_1[0x3c]" (identifier "param_1") ([ "[") (number_literal "0x3c") (] "]"))) (; ";")) (expression_statement "iVar5 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x6c)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(ushort *)(param_1 + 0x3e);" (assignment_expression "uVar2 = *(ushort *)(param_1 + 0x3e)" (identifier "uVar2") (= "=") (pointer_expression "*(ushort *)(param_1 + 0x3e)" (* "*") (cast_expression "(ushort *)(param_1 + 0x3e)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3e)" (( "(") (binary_expression "param_1 + 0x3e" (identifier "param_1") (+ "+") (number_literal "0x3e")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2);" (assignment_expression "uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2)" (identifier "uVar3") (= "=") (pointer_expression "*(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2)" (* "*") (cast_expression "(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2)" (( "(") (binary_expression "*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2" (pointer_expression "*(int *)(iVar5 + 0x40)" (* "*") (cast_expression "(int *)(iVar5 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x40)" (( "(") (binary_expression "iVar5 + 0x40" (identifier "iVar5") (+ "+") (number_literal "0x40")) () ")")))) (+ "+") (binary_expression "(uint)uVar2 * 2" (cast_expression "(uint)uVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar2")) (* "*") (number_literal "2"))) () ")"))))) (; ";")) (expression_statement "uVar10 = *(ushort *)(iVar5 + 0x1a);" (assignment_expression "uVar10 = *(ushort *)(iVar5 + 0x1a)" (identifier "uVar10") (= "=") (pointer_expression "*(ushort *)(iVar5 + 0x1a)" (* "*") (cast_expression "(ushort *)(iVar5 + 0x1a)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x1a)" (( "(") (binary_expression "iVar5 + 0x1a" (identifier "iVar5") (+ "+") (number_literal "0x1a")) () ")"))))) (; ";")) (expression_statement "iVar6 = *(int *)(iVar5 + 0x38);" (assignment_expression "iVar6 = *(int *)(iVar5 + 0x38)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar5 + 0x38)" (* "*") (cast_expression "(int *)(iVar5 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x38)" (( "(") (binary_expression "iVar5 + 0x38" (identifier "iVar5") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar5 + 0x14) < 0) {\n    iVar12 = FUN_00038800();\n    iVar13 = 0xb;\n    if (iVar12 != 0) goto LAB_000692f5;\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar5 + 0x14) < 0)" (( "(") (binary_expression "*(int *)(iVar5 + 0x14) < 0" (pointer_expression "*(int *)(iVar5 + 0x14)" (* "*") (cast_expression "(int *)(iVar5 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x14)" (( "(") (binary_expression "iVar5 + 0x14" (identifier "iVar5") (+ "+") (number_literal "0x14")) () ")")))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar12 = FUN_00038800();\n    iVar13 = 0xb;\n    if (iVar12 != 0) goto LAB_000692f5;\n  }" ({ "{") (expression_statement "iVar12 = FUN_00038800();" (assignment_expression "iVar12 = FUN_00038800()" (identifier "iVar12") (= "=") (call_expression "FUN_00038800()" (identifier "FUN_00038800") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar13 = 0xb;" (assignment_expression "iVar13 = 0xb" (identifier "iVar13") (= "=") (number_literal "0xb")) (; ";")) (if_statement "if (iVar12 != 0) goto LAB_000692f5;" (if "if") (parenthesized_expression "(iVar12 != 0)" (( "(") (binary_expression "iVar12 != 0" (identifier "iVar12") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000692f5;" (goto "goto") (statement_identifier "LAB_000692f5") (; ";"))) (} "}"))) (expression_statement "cVar9 = *(char *)(iVar5 + 8);" (assignment_expression "cVar9 = *(char *)(iVar5 + 8)" (identifier "cVar9") (= "=") (pointer_expression "*(char *)(iVar5 + 8)" (* "*") (cast_expression "(char *)(iVar5 + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 8)" (( "(") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if ((param_2 & 2) == 0) {\njoined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;\n    bVar8 = false;\n  }\n  else if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }" (if "if") (parenthesized_expression "((param_2 & 2) == 0)" (( "(") (binary_expression "(param_2 & 2) == 0" (parenthesized_expression "(param_2 & 2)" (( "(") (binary_expression "param_2 & 2" (identifier "param_2") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\njoined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;\n    bVar8 = false;\n  }" ({ "{") (labeled_statement "joined_r0x000692c2:\n    if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;" (statement_identifier "joined_r0x000692c2") (: ":") (if_statement "if ((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))\n    goto LAB_000692f5;" (if "if") (parenthesized_expression "((cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))" (( "(") (binary_expression "(cVar9 == '\0') &&\n       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0)" (parenthesized_expression "(cVar9 == '\0')" (( "(") (binary_expression "cVar9 == '\0'" (identifier "cVar9") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0)" (( "(") (comma_expression "local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "local_38[0] = FUN_00068fe0(param_1,0)" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (call_expression "FUN_00068fe0(param_1,0)" (identifier "FUN_00068fe0") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (, ",") (comma_expression "iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (, ",") (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")))) () ")"))) () ")")) (goto_statement "goto LAB_000692f5;" (goto "goto") (statement_identifier "LAB_000692f5") (; ";")))) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" (identifier "bVar8") (= "=") (false "false")) (; ";")) (} "}")) (else_clause "else if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }" (else "else") (if_statement "if (((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }" (if "if") (parenthesized_expression "(((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1))" (( "(") (binary_expression "((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||\n          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)" (parenthesized_expression "((cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)))" (( "(") (binary_expression "(cVar9 == '\0') ||\n           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))" (parenthesized_expression "(cVar9 == '\0')" (( "(") (binary_expression "cVar9 == '\0'" (identifier "cVar9") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))" (( "(") (comma_expression "uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),\n           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)" (assignment_expression "uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6)" (identifier "uVar11") (= "=") (call_expression "FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6)" (identifier "FUN_0001f4d0") (argument_list "(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6)" (( "(") (identifier "iVar5") (, ",") (binary_expression "(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6" (call_expression "(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((uVar3 << 8 | uVar3 >> 8) & uVar10)" (( "(") (binary_expression "(uVar3 << 8 | uVar3 >> 8) & uVar10" (parenthesized_expression "(uVar3 << 8 | uVar3 >> 8)" (( "(") (binary_expression "uVar3 << 8 | uVar3 >> 8" (binary_expression "uVar3 << 8" (identifier "uVar3") (<< "<<") (number_literal "8")) (| "|") (binary_expression "uVar3 >> 8" (identifier "uVar3") (>> ">>") (number_literal "8"))) () ")")) (& "&") (identifier "uVar10")) () ")"))) (+ "+") (identifier "iVar6")) () ")")))) (, ",") (binary_expression "(int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=\n           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)" (cast_expression "(int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(*(int *)(iVar4 + 0x28) * 2) / 3)" (( "(") (binary_expression "(uint)(*(int *)(iVar4 + 0x28) * 2) / 3" (call_expression "(uint)(*(int *)(iVar4 + 0x28) * 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(iVar4 + 0x28) * 2)" (( "(") (binary_expression "*(int *)(iVar4 + 0x28) * 2" (pointer_expression "*(int *)(iVar4 + 0x28)" (* "*") (cast_expression "(int *)(iVar4 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x28)" (( "(") (binary_expression "iVar4 + 0x28" (identifier "iVar4") (+ "+") (number_literal "0x28")) () ")")))) (* "*") (number_literal "2")) () ")"))) (/ "/") (number_literal "3")) () ")"))) (<= "<=") (cast_expression "(int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1)" (( "(") (binary_expression "(uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1" (binary_expression "(uVar11 & 0xffff) + *(int *)(iVar5 + 0x14)" (parenthesized_expression "(uVar11 & 0xffff)" (( "(") (binary_expression "uVar11 & 0xffff" (identifier "uVar11") (& "&") (number_literal "0xffff")) () ")")) (+ "+") (pointer_expression "*(int *)(iVar5 + 0x14)" (* "*") (cast_expression "(int *)(iVar5 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x14)" (( "(") (binary_expression "iVar5 + 0x14" (identifier "iVar5") (+ "+") (number_literal "0x14")) () ")"))))) (+ "+") (number_literal "1")) () ")"))))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(bVar8 = true, *(short *)(iVar5 + 0x18) == 1)" (( "(") (comma_expression "bVar8 = true, *(short *)(iVar5 + 0x18) == 1" (assignment_expression "bVar8 = true" (identifier "bVar8") (= "=") (true "true")) (, ",") (binary_expression "*(short *)(iVar5 + 0x18) == 1" (pointer_expression "*(short *)(iVar5 + 0x18)" (* "*") (cast_expression "(short *)(iVar5 + 0x18)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x18)" (( "(") (binary_expression "iVar5 + 0x18" (identifier "iVar5") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "1"))) () ")"))) () ")")) (compound_statement "{\n    if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }\n    goto joined_r0x000692c2;\n  }" ({ "{") (if_statement "if (param_1[0x3d] == '\0') {\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }\n    else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }" (if "if") (parenthesized_expression "(param_1[0x3d] == '\0')" (( "(") (binary_expression "param_1[0x3d] == '\0'" (subscript_expression "param_1[0x3d]" (identifier "param_1") ([ "[") (number_literal "0x3d") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      local_38[0] = FUN_00067980();\n      iVar13 = local_38[0];\n      if (local_38[0] != 0) goto LAB_000692f5;\n      cVar9 = *(char *)(iVar5 + 8);\n      local_38[0] = 0;\n    }" ({ "{") (expression_statement "local_38[0] = FUN_00067980();" (assignment_expression "local_38[0] = FUN_00067980()" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (call_expression "FUN_00067980()" (identifier "FUN_00067980") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (; ";")) (if_statement "if (local_38[0] != 0) goto LAB_000692f5;" (if "if") (parenthesized_expression "(local_38[0] != 0)" (( "(") (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000692f5;" (goto "goto") (statement_identifier "LAB_000692f5") (; ";"))) (expression_statement "cVar9 = *(char *)(iVar5 + 8);" (assignment_expression "cVar9 = *(char *)(iVar5 + 8)" (identifier "cVar9") (= "=") (pointer_expression "*(char *)(iVar5 + 8)" (* "*") (cast_expression "(char *)(iVar5 + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 8)" (( "(") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "local_38[0] = 0;" (assignment_expression "local_38[0] = 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }" (else "else") (compound_statement "{\n      FUN_000232c0();\n      local_38[0] = 0;\n      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);\n      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);\n      cVar9 = *(char *)(iVar5 + 8);\n    }" ({ "{") (expression_statement "FUN_000232c0();" (call_expression "FUN_000232c0()" (identifier "FUN_000232c0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_38[0] = 0;" (assignment_expression "local_38[0] = 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c)" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);" (assignment_expression "*(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20)" (pointer_expression "*(undefined4 *)(param_1 + 0x34)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (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")) () ")"))))) (; ";")) (expression_statement "cVar9 = *(char *)(iVar5 + 8);" (assignment_expression "cVar9 = *(char *)(iVar5 + 8)" (identifier "cVar9") (= "=") (pointer_expression "*(char *)(iVar5 + 8)" (* "*") (cast_expression "(char *)(iVar5 + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 8)" (( "(") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")))) (goto_statement "goto joined_r0x000692c2;" (goto "goto") (statement_identifier "joined_r0x000692c2") (; ";")) (} "}"))))) (if_statement "if ((param_1[1] & 0x20U) == 0) {\n    iVar13 = *(int *)(param_1 + 0x68);\n  }\n  else {\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }" (if "if") (parenthesized_expression "((param_1[1] & 0x20U) == 0)" (( "(") (binary_expression "(param_1[1] & 0x20U) == 0" (parenthesized_expression "(param_1[1] & 0x20U)" (( "(") (binary_expression "param_1[1] & 0x20U" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "0x20U")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar13 = *(int *)(param_1 + 0x68);\n  }" ({ "{") (expression_statement "iVar13 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar13 = *(int *)(param_1 + 0x68)" (identifier "iVar13") (= "=") (pointer_expression "*(int *)(param_1 + 0x68)" (* "*") (cast_expression "(int *)(param_1 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }" (else "else") (compound_statement "{\n    local_38[0] = FUN_00067b20();\n    iVar13 = local_38[0];\n    if (local_38[0] != 0) goto LAB_000692f5;\n    iVar13 = *(int *)(param_1 + 0x68);\n    local_38[0] = 0;\n  }" ({ "{") (expression_statement "local_38[0] = FUN_00067b20();" (assignment_expression "local_38[0] = FUN_00067b20()" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (call_expression "FUN_00067b20()" (identifier "FUN_00067b20") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (; ";")) (if_statement "if (local_38[0] != 0) goto LAB_000692f5;" (if "if") (parenthesized_expression "(local_38[0] != 0)" (( "(") (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000692f5;" (goto "goto") (statement_identifier "LAB_000692f5") (; ";"))) (expression_statement "iVar13 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar13 = *(int *)(param_1 + 0x68)" (identifier "iVar13") (= "=") (pointer_expression "*(int *)(param_1 + 0x68)" (* "*") (cast_expression "(int *)(param_1 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (expression_statement "local_38[0] = 0;" (assignment_expression "local_38[0] = 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (if_statement "if ((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')) {\n    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);\n  }" (if "if") (parenthesized_expression "((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0'))" (( "(") (binary_expression "(iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')" (parenthesized_expression "(iVar13 == 0)" (( "(") (binary_expression "iVar13 == 0" (identifier "iVar13") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(iVar14 + 0xb) != '\0')" (( "(") (binary_expression "*(char *)(iVar14 + 0xb) != '\0'" (pointer_expression "*(char *)(iVar14 + 0xb)" (* "*") (cast_expression "(char *)(iVar14 + 0xb)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0xb)" (( "(") (binary_expression "iVar14 + 0xb" (identifier "iVar14") (+ "+") (number_literal "0xb")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);\n  }" ({ "{") (expression_statement "FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);" (call_expression "FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0)" (identifier "FUN_00027aa0") (argument_list "(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (, ",") (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")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "local_38[0] = FUN_0005f680();" (assignment_expression "local_38[0] = FUN_0005f680()" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (call_expression "FUN_0005f680()" (identifier "FUN_0005f680") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (; ";")) (if_statement "if ((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))\n  {\n    FUN_00038cc0(local_38);\n    iVar13 = local_38[0];\n    if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))" (( "(") (binary_expression "(local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0)" (parenthesized_expression "(local_38[0] == 0)" (( "(") (binary_expression "local_38[0] == 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0)" (( "(") (comma_expression "local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0" (assignment_expression "local_38[0] = FUN_00064e80()" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (call_expression "FUN_00064e80()" (identifier "FUN_00064e80") (argument_list "()" (( "(") () ")")))) (, ",") (comma_expression "iVar13 = local_38[0], local_38[0] == 0" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (, ",") (binary_expression "local_38[0] == 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (== "==") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n    FUN_00038cc0(local_38);\n    iVar13 = local_38[0];\n    if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "FUN_00038cc0(local_38);" (call_expression "FUN_00038cc0(local_38)" (identifier "FUN_00038cc0") (argument_list "(local_38)" (( "(") (identifier "local_38") () ")"))) (; ";")) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (; ";")) (if_statement "if (local_38[0] == 0) {\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }" (if "if") (parenthesized_expression "(local_38[0] == 0)" (( "(") (binary_expression "local_38[0] == 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }\n      local_38[0] = FUN_00066cc0();\n      iVar13 = local_38[0];\n      if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }\n    }" ({ "{") (if_statement "if (*(char *)(iVar5 + 8) == '\0') {\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }" (if "if") (parenthesized_expression "(*(char *)(iVar5 + 8) == '\0')" (( "(") (binary_expression "*(char *)(iVar5 + 8) == '\0'" (pointer_expression "*(char *)(iVar5 + 8)" (* "*") (cast_expression "(char *)(iVar5 + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 8)" (( "(") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar14 = *(int *)(param_1 + 0x6c);\n        if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n        if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }\n        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);\n        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);\n        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }\n        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);\n        uVar7 = *(undefined4 *)(iVar4 + 0x54);\n        local_38[0] = FUN_0005f680();\n        iVar13 = local_38[0];\n        if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;\n      }" ({ "{") (expression_statement "iVar14 = *(int *)(param_1 + 0x6c);" (assignment_expression "iVar14 = *(int *)(param_1 + 0x6c)" (identifier "iVar14") (= "=") (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (if_statement "if ((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;" (if "if") (parenthesized_expression "((*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))" (( "(") (binary_expression "(*(int *)(iVar14 + 0x14) < 0) &&\n           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0)" (parenthesized_expression "(*(int *)(iVar14 + 0x14) < 0)" (( "(") (binary_expression "*(int *)(iVar14 + 0x14) < 0" (pointer_expression "*(int *)(iVar14 + 0x14)" (* "*") (cast_expression "(int *)(iVar14 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0x14)" (( "(") (binary_expression "iVar14 + 0x14" (identifier "iVar14") (+ "+") (number_literal "0x14")) () ")")))) (< "<") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0)" (( "(") (comma_expression "local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "local_38[0] = FUN_00038800()" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (call_expression "FUN_00038800()" (identifier "FUN_00038800") (argument_list "()" (( "(") () ")")))) (, ",") (comma_expression "iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (, ",") (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")))) () ")"))) () ")")) (goto_statement "goto LAB_000692f5;" (goto "goto") (statement_identifier "LAB_000692f5") (; ";"))) (if_statement "if ((int)cVar1 < param_1[0x3c] + -1) {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }\n        else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }" (if "if") (parenthesized_expression "((int)cVar1 < param_1[0x3c] + -1)" (( "(") (binary_expression "(int)cVar1 < param_1[0x3c] + -1" (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1")) (< "<") (binary_expression "param_1[0x3c] + -1" (subscript_expression "param_1[0x3c]" (identifier "param_1") ([ "[") (number_literal "0x3c") (] "]")) (+ "+") (number_literal "-1"))) () ")")) (compound_statement "{\n          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);\n        }" ({ "{") (expression_statement "local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);" (assignment_expression "local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4)" (identifier "local_44") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4)" (( "(") (binary_expression "*(int *)(param_1 + cVar1 * 4 + 0x74) + 4" (pointer_expression "*(int *)(param_1 + cVar1 * 4 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + cVar1 * 4 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + cVar1 * 4 + 0x74)" (( "(") (binary_expression "param_1 + cVar1 * 4 + 0x74" (binary_expression "param_1 + cVar1 * 4" (identifier "param_1") (+ "+") (binary_expression "cVar1 * 4" (identifier "cVar1") (* "*") (number_literal "4"))) (+ "+") (number_literal "0x74")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }" (else "else") (compound_statement "{\n          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);\n        }" ({ "{") (expression_statement "local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);" (assignment_expression "local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4)" (identifier "local_44") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x6c) + 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x6c) + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x6c) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x6c) + 4" (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")))) (expression_statement "uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);" (assignment_expression "uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2)" (identifier "uVar10") (= "=") (pointer_expression "*(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2)" (* "*") (cast_expression "(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2)" (( "(") (binary_expression "*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2" (binary_expression "*(int *)(iVar14 + 0x40) + -2" (pointer_expression "*(int *)(iVar14 + 0x40)" (* "*") (cast_expression "(int *)(iVar14 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0x40)" (( "(") (binary_expression "iVar14 + 0x40" (identifier "iVar14") (+ "+") (number_literal "0x40")) () ")")))) (+ "+") (number_literal "-2")) (+ "+") (binary_expression "(uint)*(ushort *)(iVar14 + 0x18) * 2" (binary_expression "(uint)*(ushort *)(iVar14 + 0x18)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(iVar14 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0x18)" (( "(") (binary_expression "iVar14 + 0x18" (identifier "iVar14") (+ "+") (number_literal "0x18")) () ")")))) (* "*") (number_literal "2"))) () ")"))))) (; ";")) (expression_statement "uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38);" (assignment_expression "uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38)" (identifier "uVar11") (= "=") (binary_expression "(uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +\n                 *(int *)(iVar14 + 0x38)" (call_expression "(uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a))" (( "(") (binary_expression "(uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)" (parenthesized_expression "(uVar10 << 8 | uVar10 >> 8)" (( "(") (binary_expression "uVar10 << 8 | uVar10 >> 8" (binary_expression "uVar10 << 8" (identifier "uVar10") (<< "<<") (number_literal "8")) (| "|") (binary_expression "uVar10 >> 8" (identifier "uVar10") (>> ">>") (number_literal "8"))) () ")")) (& "&") (pointer_expression "*(ushort *)(iVar14 + 0x1a)" (* "*") (cast_expression "(ushort *)(iVar14 + 0x1a)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0x1a)" (( "(") (binary_expression "iVar14 + 0x1a" (identifier "iVar14") (+ "+") (number_literal "0x1a")) () ")"))))) () ")"))) (+ "+") (pointer_expression "*(int *)(iVar14 + 0x38)" (* "*") (cast_expression "(int *)(iVar14 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0x38)" (( "(") (binary_expression "iVar14 + 0x38" (identifier "iVar14") (+ "+") (number_literal "0x38")) () ")")))))) (; ";")) (if_statement "if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }" (if "if") (parenthesized_expression "(uVar11 < *(int *)(iVar14 + 0x38) + 4U)" (( "(") (binary_expression "uVar11 < *(int *)(iVar14 + 0x38) + 4U" (identifier "uVar11") (< "<") (binary_expression "*(int *)(iVar14 + 0x38) + 4U" (pointer_expression "*(int *)(iVar14 + 0x38)" (* "*") (cast_expression "(int *)(iVar14 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0x38)" (( "(") (binary_expression "iVar14 + 0x38" (identifier "iVar14") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "4U"))) () ")")) (compound_statement "{\n          iVar13 = FUN_000383f0();\n          goto LAB_000692f5;\n        }" ({ "{") (expression_statement "iVar13 = FUN_000383f0();" (assignment_expression "iVar13 = FUN_000383f0()" (identifier "iVar13") (= "=") (call_expression "FUN_000383f0()" (identifier "FUN_000383f0") (argument_list "()" (( "(") () ")")))) (; ";")) (goto_statement "goto LAB_000692f5;" (goto "goto") (statement_identifier "LAB_000692f5") (; ";")) (} "}"))) (expression_statement "uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);" (assignment_expression "uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11)" (identifier "uVar10") (= "=") (call_expression "(**(code **)(iVar14 + 0x4c))(iVar14,uVar11)" (parenthesized_expression "(**(code **)(iVar14 + 0x4c))" (( "(") (pointer_expression "**(code **)(iVar14 + 0x4c)" (* "*") (pointer_expression "*(code **)(iVar14 + 0x4c)" (* "*") (cast_expression "(code **)(iVar14 + 0x4c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar14 + 0x4c)" (( "(") (binary_expression "iVar14 + 0x4c" (identifier "iVar14") (+ "+") (number_literal "0x4c")) () ")"))))) () ")")) (argument_list "(iVar14,uVar11)" (( "(") (identifier "iVar14") (, ",") (identifier "uVar11") () ")")))) (; ";")) (expression_statement "uVar7 = *(undefined4 *)(iVar4 + 0x54);" (assignment_expression "uVar7 = *(undefined4 *)(iVar4 + 0x54)" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)(iVar4 + 0x54)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x54)" (( "(") (binary_expression "iVar4 + 0x54" (identifier "iVar4") (+ "+") (number_literal "0x54")) () ")"))))) (; ";")) (expression_statement "local_38[0] = FUN_0005f680();" (assignment_expression "local_38[0] = FUN_0005f680()" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (call_expression "FUN_0005f680()" (identifier "FUN_0005f680") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (; ";")) (if_statement "if (((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))\n        goto LAB_000692f5;" (if "if") (parenthesized_expression "(((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))" (( "(") (binary_expression "((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0)" (parenthesized_expression "((local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0))" (( "(") (binary_expression "(local_38[0] != 0) ||\n            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)" (parenthesized_expression "(local_38[0] != 0)" (( "(") (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0)" (( "(") (comma_expression "FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],\n            local_38[0] != 0" (call_expression "FUN_00065060(uVar10 + 4,uVar7,local_44,local_38)" (identifier "FUN_00065060") (argument_list "(uVar10 + 4,uVar7,local_44,local_38)" (( "(") (binary_expression "uVar10 + 4" (identifier "uVar10") (+ "+") (number_literal "4")) (, ",") (identifier "uVar7") (, ",") (identifier "local_44") (, ",") (identifier "local_38") () ")"))) (, ",") (comma_expression "iVar13 = local_38[0],\n            local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (, ",") (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0)" (( "(") (comma_expression "FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0" (call_expression "FUN_00038cc0(local_38)" (identifier "FUN_00038cc0") (argument_list "(local_38)" (( "(") (identifier "local_38") () ")"))) (, ",") (comma_expression "iVar13 = local_38[0], local_38[0] != 0" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (, ",") (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")))) () ")"))) () ")")) (goto_statement "goto LAB_000692f5;" (goto "goto") (statement_identifier "LAB_000692f5") (; ";"))) (} "}"))) (expression_statement "local_38[0] = FUN_00066cc0();" (assignment_expression "local_38[0] = FUN_00066cc0()" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (call_expression "FUN_00066cc0()" (identifier "FUN_00066cc0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (; ";")) (if_statement "if (local_38[0] == 0) {\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(local_38[0] == 0)" (( "(") (binary_expression "local_38[0] == 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }\nLAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }\n      }" ({ "{") (if_statement "if (cVar1 < param_1[0x3c]) {\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }" (if "if") (parenthesized_expression "(cVar1 < param_1[0x3c])" (( "(") (binary_expression "cVar1 < param_1[0x3c]" (identifier "cVar1") (< "<") (subscript_expression "param_1[0x3c]" (identifier "param_1") ([ "[") (number_literal "0x3c") (] "]"))) () ")")) (compound_statement "{\n          FUN_0001f150();\n          cVar9 = param_1[0x3c] + -1;\n          param_1[0x3c] = cVar9;\n          do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );\n        }" ({ "{") (expression_statement "FUN_0001f150();" (call_expression "FUN_0001f150()" (identifier "FUN_0001f150") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "cVar9 = param_1[0x3c] + -1;" (assignment_expression "cVar9 = param_1[0x3c] + -1" (identifier "cVar9") (= "=") (binary_expression "param_1[0x3c] + -1" (subscript_expression "param_1[0x3c]" (identifier "param_1") ([ "[") (number_literal "0x3c") (] "]")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "param_1[0x3c] = cVar9;" (assignment_expression "param_1[0x3c] = cVar9" (subscript_expression "param_1[0x3c]" (identifier "param_1") ([ "[") (number_literal "0x3c") (] "]")) (= "=") (identifier "cVar9")) (; ";")) (do_statement "do {\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          } while( true );" (do "do") (compound_statement "{\n            iVar14 = (int)cVar9;\n            do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);\n            FUN_0001f150();\n            cVar9 = param_1[0x3c];\n          }" ({ "{") (expression_statement "iVar14 = (int)cVar9;" (assignment_expression "iVar14 = (int)cVar9" (identifier "iVar14") (= "=") (cast_expression "(int)cVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar9"))) (; ";")) (do_statement "do {\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            } while (iVar4 == 0);" (do "do") (compound_statement "{\n              cVar9 = (char)iVar14;\n              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);\n              if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }\n              iVar14 = iVar14 + -1;\n              param_1[0x3c] = cVar9 + -1;\n            }" ({ "{") (expression_statement "cVar9 = (char)iVar14;" (assignment_expression "cVar9 = (char)iVar14" (identifier "cVar9") (= "=") (cast_expression "(char)iVar14" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar14"))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);" (assignment_expression "iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + iVar14 * 4 + 0x70)" (* "*") (cast_expression "(int *)(param_1 + iVar14 * 4 + 0x70)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar14 * 4 + 0x70)" (( "(") (binary_expression "param_1 + iVar14 * 4 + 0x70" (binary_expression "param_1 + iVar14 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar14 * 4" (identifier "iVar14") (* "*") (number_literal "4"))) (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (if_statement "if (cVar9 <= cVar1) {\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }" (if "if") (parenthesized_expression "(cVar9 <= cVar1)" (( "(") (binary_expression "cVar9 <= cVar1" (identifier "cVar9") (<= "<=") (identifier "cVar1")) () ")")) (compound_statement "{\n                *(int *)(param_1 + 0x6c) = iVar4;\n                local_38[0] = FUN_00066cc0();\n                iVar13 = local_38[0];\n                if (local_38[0] != 0) goto LAB_000692f5;\n                goto LAB_00069555;\n              }" ({ "{") (expression_statement "*(int *)(param_1 + 0x6c) = iVar4;" (assignment_expression "*(int *)(param_1 + 0x6c) = iVar4" (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "local_38[0] = FUN_00066cc0();" (assignment_expression "local_38[0] = FUN_00066cc0()" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (call_expression "FUN_00066cc0()" (identifier "FUN_00066cc0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (; ";")) (if_statement "if (local_38[0] != 0) goto LAB_000692f5;" (if "if") (parenthesized_expression "(local_38[0] != 0)" (( "(") (binary_expression "local_38[0] != 0" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000692f5;" (goto "goto") (statement_identifier "LAB_000692f5") (; ";"))) (goto_statement "goto LAB_00069555;" (goto "goto") (statement_identifier "LAB_00069555") (; ";")) (} "}"))) (expression_statement "iVar14 = iVar14 + -1;" (assignment_expression "iVar14 = iVar14 + -1" (identifier "iVar14") (= "=") (binary_expression "iVar14 + -1" (identifier "iVar14") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "param_1[0x3c] = cVar9 + -1;" (assignment_expression "param_1[0x3c] = cVar9 + -1" (subscript_expression "param_1[0x3c]" (identifier "param_1") ([ "[") (number_literal "0x3c") (] "]")) (= "=") (binary_expression "cVar9 + -1" (identifier "cVar9") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "FUN_0001f150();" (call_expression "FUN_0001f150()" (identifier "FUN_0001f150") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "cVar9 = param_1[0x3c];" (assignment_expression "cVar9 = param_1[0x3c]" (identifier "cVar9") (= "=") (subscript_expression "param_1[0x3c]" (identifier "param_1") ([ "[") (number_literal "0x3c") (] "]"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_00069555:\n        if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }" (statement_identifier "LAB_00069555") (: ":") (if_statement "if (bVar8) {\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }\n        else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }" (if "if") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (compound_statement "{\n          *param_1 = '\x02';\n          uVar10 = *(ushort *)(iVar5 + 0x18);\n          iVar13 = local_38[0];\n          if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }\n        }" ({ "{") (expression_statement "*param_1 = '\x02';" (assignment_expression "*param_1 = '\x02'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) (; ";")) (expression_statement "uVar10 = *(ushort *)(iVar5 + 0x18);" (assignment_expression "uVar10 = *(ushort *)(iVar5 + 0x18)" (identifier "uVar10") (= "=") (pointer_expression "*(ushort *)(iVar5 + 0x18)" (* "*") (cast_expression "(ushort *)(iVar5 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x18)" (( "(") (binary_expression "iVar5 + 0x18" (identifier "iVar5") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (; ";")) (if_statement "if (uVar2 < uVar10) {\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }\n          else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }" (if "if") (parenthesized_expression "(uVar2 < uVar10)" (( "(") (binary_expression "uVar2 < uVar10" (identifier "uVar2") (< "<") (identifier "uVar10")) () ")")) (compound_statement "{\n            param_1[4] = '\x01';\n            param_1[5] = '\0';\n            param_1[6] = '\0';\n            param_1[7] = '\0';\n          }" ({ "{") (expression_statement "param_1[4] = '\x01';" (assignment_expression "param_1[4] = '\x01'" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (expression_statement "param_1[5] = '\0';" (assignment_expression "param_1[5] = '\0'" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "param_1[6] = '\0';" (assignment_expression "param_1[6] = '\0'" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "param_1[7] = '\0';" (assignment_expression "param_1[7] = '\0'" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }" (else "else") (compound_statement "{\n            param_1[4] = -1;\n            param_1[5] = -1;\n            param_1[6] = -1;\n            param_1[7] = -1;\n            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;\n          }" ({ "{") (expression_statement "param_1[4] = -1;" (assignment_expression "param_1[4] = -1" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "-1")) (; ";")) (expression_statement "param_1[5] = -1;" (assignment_expression "param_1[5] = -1" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "-1")) (; ";")) (expression_statement "param_1[6] = -1;" (assignment_expression "param_1[6] = -1" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "-1")) (; ";")) (expression_statement "param_1[7] = -1;" (assignment_expression "param_1[7] = -1" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "-1")) (; ";")) (expression_statement "*(ushort *)(param_1 + 0x3e) = uVar10 - 1;" (assignment_expression "*(ushort *)(param_1 + 0x3e) = uVar10 - 1" (pointer_expression "*(ushort *)(param_1 + 0x3e)" (* "*") (cast_expression "(ushort *)(param_1 + 0x3e)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3e)" (( "(") (binary_expression "param_1 + 0x3e" (identifier "param_1") (+ "+") (number_literal "0x3e")) () ")")))) (= "=") (binary_expression "uVar10 - 1" (identifier "uVar10") (- "-") (number_literal "1"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }" (else "else") (compound_statement "{\n          local_38[0] = FUN_00039f90();\n          if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }\n          iVar13 = local_38[0];\n          if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }\n        }" ({ "{") (expression_statement "local_38[0] = FUN_00039f90();" (assignment_expression "local_38[0] = FUN_00039f90()" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (= "=") (call_expression "FUN_00039f90()" (identifier "FUN_00039f90") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((param_2 & 2) != 0) {\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }" (if "if") (parenthesized_expression "((param_2 & 2) != 0)" (( "(") (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" (( "(") (binary_expression "param_2 & 2" (identifier "param_2") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }\n            *param_1 = '\x03';\n          }" ({ "{") (if_statement "if (-1 < param_1[0x3c]) {\n              FUN_00027e90();\n            }" (if "if") (parenthesized_expression "(-1 < param_1[0x3c])" (( "(") (binary_expression "-1 < param_1[0x3c]" (number_literal "-1") (< "<") (subscript_expression "param_1[0x3c]" (identifier "param_1") ([ "[") (number_literal "0x3c") (] "]"))) () ")")) (compound_statement "{\n              FUN_00027e90();\n            }" ({ "{") (expression_statement "FUN_00027e90();" (call_expression "FUN_00027e90()" (identifier "FUN_00027e90") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_1 = '\x03';" (assignment_expression "*param_1 = '\x03'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (char_literal "'\x03'" (' "'") (escape_sequence "\x03") (' "'"))) (; ";")) (} "}"))) (expression_statement "iVar13 = local_38[0];" (assignment_expression "iVar13 = local_38[0]" (identifier "iVar13") (= "=") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]"))) (; ";")) (if_statement "if (local_38[0] == 0x10) {\n            iVar13 = 0;\n          }" (if "if") (parenthesized_expression "(local_38[0] == 0x10)" (( "(") (binary_expression "local_38[0] == 0x10" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (== "==") (number_literal "0x10")) () ")")) (compound_statement "{\n            iVar13 = 0;\n          }" ({ "{") (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))))) (} "}"))) (} "}"))) (} "}"))) (labeled_statement "LAB_000692f5:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar13;\n  }" (statement_identifier "LAB_000692f5") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar13;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return iVar13;\n  }" ({ "{") (return_statement "return iVar13;" (return "return") (identifier "iVar13") (; ";")) (} "}")))) (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" (identifier "FUN_000a9ea0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pCur,type_2 var_7)

{
  int var_34;
  char var_22;
  type_2 var_8;
  type_3 var_13;
  type_3 var_31;
  type_3 var_12;
  type_4 *pBVar7;
  type_5 *pBVar8;
  type_6 *pPage;
  type_7 *var_17;
  type_8 uVar10;
  type_6 *var_30;
  type_2 *pTemp;
  bool bVar12;
  char var_28;
  type_9 var_25;
  type_10 var_4;
  int var_6;
  int var_29;
  type_2 *var_11;
  int var_1;
  type_11 local_44;
  int var_3;
  type_12 info;
  
  pBVar7 = pCur->pBtree;
  var_34 = *(int *)(var_1 + 0x14);
  pBVar8 = pBVar7->pBt;
  if ((pCur->eState == '\x03') && (var_3 = var_2(pCur), var_29 = var_3, var_3 != 0))
  goto LAB_000692f5;
  var_22 = pCur->iPage;
  pPage = pCur->pPage;
  var_31 = pCur->ix;
  var_4 = (type_10)var_31;
  var_12 = *(type_3 *)(pPage->aCellIdx + var_4 * 2);
  var_13 = pPage->maskPage;
  var_11 = pPage->aData;
  if (pPage->nFree < 0) {
    var_6 = var_5(pPage);
    var_29 = 0xb;
    if (var_6 != 0) goto LAB_000692f5;
  }
  var_8 = pPage->leaf;
  if ((var_7 & 2) == 0) {
joined_r0x000692c2:
    if ((var_8 == '\0') && (var_3 = var_9(pCur,0), var_29 = var_3, var_3 != 0))
    goto LAB_000692f5;
    bVar12 = false;
  }
  else if (((var_8 == '\0') ||
           (var_25 = var_10(pPage,var_11 + ((var_12 << 8 | var_12 >> 8) & var_13)),
           (int)((pBVar8->usableSize * 2) / 3) <= (int)((type_10)var_25 + pPage->nFree + 1))) ||
          (bVar12 = true, pPage->nCell == 1)) {
    if (pCur->curIntKey == '\0') {
      var_3 = var_14(pCur);
      var_29 = var_3;
      if (var_3 != 0) goto LAB_000692f5;
      var_8 = pPage->leaf;
      var_3 = 0;
    }
    else {
      var_15(pCur);
      uVar10 = *(type_8 *)((int)&(pCur->info).nKey + 4);
      var_3 = 0;
      *(int *)&pCur->nKey = (int)(pCur->info).nKey;
      *(type_8 *)((int)&pCur->nKey + 4) = uVar10;
      var_8 = pPage->leaf;
    }
    goto joined_r0x000692c2;
  }
  if ((pCur->curFlags & 0x20) == 0) {
    var_17 = pCur->pKeyInfo;
  }
  else {
    var_3 = var_16((type_5 *)pBVar8->pCursor,pCur->pgnoRoot,pCur);
    var_29 = var_3;
    if (var_3 != 0) goto LAB_000692f5;
    var_17 = pCur->pKeyInfo;
    var_3 = 0;
  }
  if ((var_17 == (type_7 *)0x0) && (pBVar7->hasIncrblobCur != '\0')) {
    var_18
              ((type_4 *)pBVar7->pBt,(type_11)&pBVar7->hasIncrblobCur,(pCur->info).nKey,pCur->pgnoRoot,
               (type_4 *)0x0);
  }
  var_3 = var_19(pPage->pDbPage);
  var_29 = var_3;
  if ((var_3 == 0) &&
     (var_3 = var_20(pPage,var_11 + ((var_12 << 8 | var_12 >> 8) & var_13),&info), var_29 = var_3,
     var_3 == 0)) {
    var_21(pPage,var_4,(type_10)info.nSize,&var_3);
    var_29 = var_3;
    if (var_3 == 0) {
      if (pPage->leaf == '\0') {
        var_30 = pCur->pPage;
        if ((var_30->nFree < 0) && (var_3 = var_5(var_30), var_29 = var_3, var_3 != 0))
        goto LAB_000692f5;
        if ((int)var_22 < pCur->iPage + -1) {
          local_44 = pCur->apPage[var_22 + 1]->pgno;
        }
        else {
          local_44 = pCur->pPage->pgno;
        }
        var_11 = var_30->aData +
                  ((*(type_3 *)(var_30->aCellIdx + (type_10)var_30->nCell * 2 + -2) << 8 |
                   *(type_3 *)(var_30->aCellIdx + (type_10)var_30->nCell * 2 + -2) >> 8) &
                  var_30->maskPage);
        if (var_11 < var_30->aData + 4) {
          var_29 = var_23(0x11f26);
          goto LAB_000692f5;
        }
        var_25 = (*var_30->xCellSize)(var_30,var_11);
        pTemp = pBVar8->pTmpSpace;
        var_3 = var_19(var_30->pDbPage);
        var_29 = var_3;
        if (var_3 != 0) goto LAB_000692f5;
        var_24(pPage,var_4,var_11 + -4,var_25 + 4,pTemp,local_44,&var_3);
        var_29 = var_3;
        if ((var_3 != 0) ||
           (var_21(var_30,var_30->nCell - 1,(type_10)var_25,&var_3), var_29 = var_3, var_3 != 0))
        goto LAB_000692f5;
      }
      var_3 = var_26(pCur);
      var_29 = var_3;
      if (var_3 == 0) {
        if (var_22 < pCur->iPage) {
          var_27(pCur->pPage->pDbPage);
          var_28 = pCur->iPage + -1;
          pCur->iPage = var_28;
          do {
            var_29 = (int)var_28;
            do {
              var_28 = (char)var_29;
              var_30 = pCur->apPage[var_29];
              if (var_28 <= var_22) {
                pCur->pPage = var_30;
                var_3 = var_26(pCur);
                var_29 = var_3;
                if (var_3 != 0) goto LAB_000692f5;
                goto LAB_00069555;
              }
              var_29 = var_29 + -1;
              pCur->iPage = var_28 + -1;
            } while (var_30 == (type_6 *)0x0);
            var_27(var_30->pDbPage);
            var_28 = pCur->iPage;
          } while( true );
        }
LAB_00069555:
        if (bVar12) {
          pCur->eState = '\x02';
          var_13 = pPage->nCell;
          var_29 = var_3;
          if (var_31 < var_13) {
            pCur->skipNext = 1;
          }
          else {
            pCur->skipNext = -1;
            pCur->ix = var_13 - 1;
          }
        }
        else {
          var_3 = var_32(pCur);
          if ((var_7 & 2) != 0) {
            if (-1 < pCur->iPage) {
              var_33(pCur);
            }
            pCur->eState = '\x03';
          }
          var_29 = var_3;
          if (var_3 == 0x10) {
            var_29 = 0;
          }
        }
      }
    }
  }
LAB_000692f5:
  if (var_34 == *(int *)(var_1 + 0x14)) {
    return var_29;
  }
                    /* WARNING: Subroutine does not return */
  var_35();
}


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

int __regparm3 MASKED(char *param_1,byte param_2)

{
  char cVar1;
  ushort uVar2;
  ushort uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 uVar7;
  bool bVar8;
  char cVar9;
  ushort uVar10;
  uint uVar11;
  int iVar12;
  int iVar13;
  int iVar14;
  int in_GS_OFFSET;
  undefined4 local_44;
  int local_38 [6];
  int local_20;
  
  iVar14 = *(int *)(param_1 + 8);
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar4 = *(int *)(iVar14 + 4);
  if ((*param_1 == '\x03') && (local_38[0] = FUN_00068df0(), iVar13 = local_38[0], local_38[0] != 0)
     ) goto LAB_000692f5;
  cVar1 = param_1[0x3c];
  iVar5 = *(int *)(param_1 + 0x6c);
  uVar2 = *(ushort *)(param_1 + 0x3e);
  uVar3 = *(ushort *)(*(int *)(iVar5 + 0x40) + (uint)uVar2 * 2);
  uVar10 = *(ushort *)(iVar5 + 0x1a);
  iVar6 = *(int *)(iVar5 + 0x38);
  if (*(int *)(iVar5 + 0x14) < 0) {
    iVar12 = FUN_00038800();
    iVar13 = 0xb;
    if (iVar12 != 0) goto LAB_000692f5;
  }
  cVar9 = *(char *)(iVar5 + 8);
  if ((param_2 & 2) == 0) {
joined_r0x000692c2:
    if ((cVar9 == '\0') &&
       (local_38[0] = FUN_00068fe0(param_1,0), iVar13 = local_38[0], local_38[0] != 0))
    goto LAB_000692f5;
    bVar8 = false;
  }
  else if (((cVar9 == '\0') ||
           (uVar11 = FUN_0001f4d0(iVar5,(uint)((uVar3 << 8 | uVar3 >> 8) & uVar10) + iVar6),
           (int)((uint)(*(int *)(iVar4 + 0x28) * 2) / 3) <=
           (int)((uVar11 & 0xffff) + *(int *)(iVar5 + 0x14) + 1))) ||
          (bVar8 = true, *(short *)(iVar5 + 0x18) == 1)) {
    if (param_1[0x3d] == '\0') {
      local_38[0] = FUN_00067980();
      iVar13 = local_38[0];
      if (local_38[0] != 0) goto LAB_000692f5;
      cVar9 = *(char *)(iVar5 + 8);
      local_38[0] = 0;
    }
    else {
      FUN_000232c0();
      local_38[0] = 0;
      *(undefined4 *)(param_1 + 0x30) = *(undefined4 *)(param_1 + 0x1c);
      *(undefined4 *)(param_1 + 0x34) = *(undefined4 *)(param_1 + 0x20);
      cVar9 = *(char *)(iVar5 + 8);
    }
    goto joined_r0x000692c2;
  }
  if ((param_1[1] & 0x20U) == 0) {
    iVar13 = *(int *)(param_1 + 0x68);
  }
  else {
    local_38[0] = FUN_00067b20();
    iVar13 = local_38[0];
    if (local_38[0] != 0) goto LAB_000692f5;
    iVar13 = *(int *)(param_1 + 0x68);
    local_38[0] = 0;
  }
  if ((iVar13 == 0) && (*(char *)(iVar14 + 0xb) != '\0')) {
    FUN_00027aa0(*(undefined4 *)(param_1 + 0x1c),*(undefined4 *)(param_1 + 0x20),0);
  }
  local_38[0] = FUN_0005f680();
  iVar13 = local_38[0];
  if ((local_38[0] == 0) && (local_38[0] = FUN_00064e80(), iVar13 = local_38[0], local_38[0] == 0))
  {
    FUN_00038cc0(local_38);
    iVar13 = local_38[0];
    if (local_38[0] == 0) {
      if (*(char *)(iVar5 + 8) == '\0') {
        iVar14 = *(int *)(param_1 + 0x6c);
        if ((*(int *)(iVar14 + 0x14) < 0) &&
           (local_38[0] = FUN_00038800(), iVar13 = local_38[0], local_38[0] != 0))
        goto LAB_000692f5;
        if ((int)cVar1 < param_1[0x3c] + -1) {
          local_44 = *(undefined4 *)(*(int *)(param_1 + cVar1 * 4 + 0x74) + 4);
        }
        else {
          local_44 = *(undefined4 *)(*(int *)(param_1 + 0x6c) + 4);
        }
        uVar10 = *(ushort *)(*(int *)(iVar14 + 0x40) + -2 + (uint)*(ushort *)(iVar14 + 0x18) * 2);
        uVar11 = (uint)((uVar10 << 8 | uVar10 >> 8) & *(ushort *)(iVar14 + 0x1a)) +
                 *(int *)(iVar14 + 0x38);
        if (uVar11 < *(int *)(iVar14 + 0x38) + 4U) {
          iVar13 = FUN_000383f0();
          goto LAB_000692f5;
        }
        uVar10 = (**(code **)(iVar14 + 0x4c))(iVar14,uVar11);
        uVar7 = *(undefined4 *)(iVar4 + 0x54);
        local_38[0] = FUN_0005f680();
        iVar13 = local_38[0];
        if (((local_38[0] != 0) ||
            (FUN_00065060(uVar10 + 4,uVar7,local_44,local_38), iVar13 = local_38[0],
            local_38[0] != 0)) || (FUN_00038cc0(local_38), iVar13 = local_38[0], local_38[0] != 0))
        goto LAB_000692f5;
      }
      local_38[0] = FUN_00066cc0();
      iVar13 = local_38[0];
      if (local_38[0] == 0) {
        if (cVar1 < param_1[0x3c]) {
          FUN_0001f150();
          cVar9 = param_1[0x3c] + -1;
          param_1[0x3c] = cVar9;
          do {
            iVar14 = (int)cVar9;
            do {
              cVar9 = (char)iVar14;
              iVar4 = *(int *)(param_1 + iVar14 * 4 + 0x70);
              if (cVar9 <= cVar1) {
                *(int *)(param_1 + 0x6c) = iVar4;
                local_38[0] = FUN_00066cc0();
                iVar13 = local_38[0];
                if (local_38[0] != 0) goto LAB_000692f5;
                goto LAB_00069555;
              }
              iVar14 = iVar14 + -1;
              param_1[0x3c] = cVar9 + -1;
            } while (iVar4 == 0);
            FUN_0001f150();
            cVar9 = param_1[0x3c];
          } while( true );
        }
LAB_00069555:
        if (bVar8) {
          *param_1 = '\x02';
          uVar10 = *(ushort *)(iVar5 + 0x18);
          iVar13 = local_38[0];
          if (uVar2 < uVar10) {
            param_1[4] = '\x01';
            param_1[5] = '\0';
            param_1[6] = '\0';
            param_1[7] = '\0';
          }
          else {
            param_1[4] = -1;
            param_1[5] = -1;
            param_1[6] = -1;
            param_1[7] = -1;
            *(ushort *)(param_1 + 0x3e) = uVar10 - 1;
          }
        }
        else {
          local_38[0] = FUN_00039f90();
          if ((param_2 & 2) != 0) {
            if (-1 < param_1[0x3c]) {
              FUN_00027e90();
            }
            *param_1 = '\x03';
          }
          iVar13 = local_38[0];
          if (local_38[0] == 0x10) {
            iVar13 = 0;
          }
        }
      }
    }
  }
LAB_000692f5:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar13;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a9ea0();
}

