
int __regparm3 sqlite3BtreeBeginTrans(Btree *p,int wrflag,int *pSchemaVersion)

{
  int *piVar1;
  BtShared *pBVar2;
  Btree *pBVar3;
  Pager *pPVar4;
  _func_int_void_ptr_int *p_Var5;
  void *pvVar6;
  bool bVar7;
  u8 uVar8;
  ushort uVar9;
  BtLock *pBVar10;
  uint uVar11;
  MemPage *pMVar12;
  int iVar13;
  sqlite3 *psVar14;
  uint uVar15;
  bool bVar16;
  BtShared *in_stack_ffffffd4;
  
  pBVar2 = p->pBt;
  if (p->sharable != '\0') {
    sqlite3BtreeEnter(p);
  }
  if (p->inTrans == '\x02') {
    if (pSchemaVersion != (int *)0x0) {
LAB_000af0d8:
      uVar11 = *(uint *)(pBVar2->pPage1->aData + 0x28);
      *pSchemaVersion =
           uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;
    }
    if (wrflag != 0) {
LAB_000af0f1:
      iVar13 = p->db->nSavepoint;
      pPVar4 = pBVar2->pPager;
      if ((pPVar4->nSavepoint < iVar13) && (pPVar4->useJournal != '\0')) {
        uVar11 = pagerOpenSavepoint(pPVar4,iVar13);
        goto LAB_000aefad;
      }
    }
  }
  else {
    if ((p->inTrans != '\x01') || (wrflag != 0)) {
      uVar9 = pBVar2->btsFlags;
      if (((p->db->flags & 0x2000000) == 0) || (pBVar2->pPager->readOnly != '\0')) {
        if ((uVar9 & 1) == 0) goto LAB_000aee37;
        uVar11 = 8;
        if (wrflag != 0) goto LAB_000aefad;
LAB_000aee95:
        if ((uVar9 & 0x80) != 0) {
LAB_000aee99:
          psVar14 = pBVar2->pWriter->db;
          goto LAB_000aee9e;
        }
      }
      else {
        uVar9 = uVar9 & 0xfffe;
        pBVar2->btsFlags = uVar9;
LAB_000aee37:
        if (wrflag == 0) goto LAB_000aee95;
        if ((pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0)) goto LAB_000aee99;
        if ((wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)) goto LAB_000aeea6;
        pBVar3 = pBVar10->pBtree;
        if (p == pBVar3) {
          do {
            pBVar10 = pBVar10->pNext;
            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;
          } while (pBVar10->pBtree == pBVar3);
          psVar14 = pBVar10->pBtree->db;
        }
        else {
          psVar14 = pBVar3->db;
        }
LAB_000aee9e:
        if (psVar14 != (sqlite3 *)0x0) {
          uVar11 = 0x106;
          sqlite3ConnectionBlocked(p->db,psVar14);
          goto LAB_000aefad;
        }
      }
LAB_000aeea6:
      uVar11 = querySharedCacheTableLock(p,1,'\x01');
      if (uVar11 != 0) goto LAB_000aefad;
      uVar9 = pBVar2->btsFlags & 0xffef;
      pBVar2->btsFlags = uVar9;
      if (pBVar2->nPage == 0) {
        pBVar2->btsFlags = uVar9 | 0x10;
      }
LAB_000aeed7:
      if (pBVar2->pPage1 == (MemPage *)0x0) goto LAB_000af0af;
      while( true ) {
        bVar16 = wrflag != 0;
        bVar7 = uVar11 == 0 && bVar16;
        if (uVar11 == 0 && bVar16) break;
LAB_000af010:
        bVar7 = bVar16;
        if (uVar11 == 0) goto LAB_000af018;
        while( true ) {
          uVar15 = uVar11 & 0xff;
          uVar8 = pBVar2->inTransaction;
LAB_000aef18:
          if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {
LAB_000aef23:
            pBVar2->pPage1 = (MemPage *)0x0;
            pPVar4 = pMVar12->pDbPage->pPager;
            sqlite3PcacheRelease(pMVar12->pDbPage);
            if (pPVar4->pPCache->nRefSum == 0) {
              pagerUnlockAndRollback(pPVar4);
            }
          }
          if (uVar15 != 5) goto LAB_000aefad;
LAB_000aef55:
          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;
          psVar14 = pBVar2->db;
          p_Var5 = (psVar14->busyHandler).xBusyHandler;
          if ((p_Var5 == (_func_int_void_ptr_int *)0x0) ||
             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)) goto LAB_000aefad;
          pvVar6 = (psVar14->busyHandler).pBusyArg;
          if ((psVar14->busyHandler).bExtraFileArg == '\0') {
            iVar13 = (*p_Var5)(pvVar6,iVar13);
          }
          else {
            iVar13 = (*p_Var5)(pvVar6,iVar13);
          }
          if (iVar13 == 0) {
            (psVar14->busyHandler).nBusy = -1;
            goto LAB_000aefad;
          }
          piVar1 = &(psVar14->busyHandler).nBusy;
          *piVar1 = *piVar1 + 1;
          if (pBVar2->pPage1 != (MemPage *)0x0) break;
LAB_000af0af:
          uVar11 = lockBtree(in_stack_ffffffd4);
          if (uVar11 == 0) goto LAB_000aeed7;
        }
      }
      if ((pBVar2->btsFlags & 1) != 0) {
        uVar8 = pBVar2->inTransaction;
        uVar15 = 8;
        uVar11 = 8;
        goto LAB_000aef18;
      }
      uVar11 = sqlite3PagerBegin(pBVar2->pPager,(uint)(1 < wrflag),
                                 (uint)(p->db->temp_store == '\x02'));
      if (uVar11 != 0) {
        uVar8 = pBVar2->inTransaction;
        if (uVar11 == 0x205) {
          if (uVar8 != '\0') goto LAB_000aef55;
          pMVar12 = pBVar2->pPage1;
          uVar11 = 5;
          uVar15 = 5;
          if (pMVar12 != (MemPage *)0x0) goto LAB_000aef23;
          goto LAB_000aef55;
        }
        uVar15 = uVar11 & 0xff;
        goto LAB_000aef18;
      }
      if (pBVar2->nPage == 0) {
        uVar11 = newDatabase(in_stack_ffffffd4);
        goto LAB_000af010;
      }
LAB_000af018:
      if ((p->inTrans == '\0') &&
         (pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0')) {
        (p->lock).eLock = '\x01';
        (p->lock).pNext = pBVar2->pLock;
        pBVar2->pLock = &p->lock;
      }
      if (!bVar7) {
        p->inTrans = '\x01';
        if (pBVar2->inTransaction == '\0') {
          pBVar2->inTransaction = '\x01';
        }
        goto LAB_000af126;
      }
      p->inTrans = '\x02';
      if (pBVar2->inTransaction < 2) {
        pBVar2->inTransaction = '\x02';
      }
      pMVar12 = pBVar2->pPage1;
      pBVar2->pWriter = p;
      uVar9 = pBVar2->btsFlags & 0xffbf;
      if (1 < wrflag) {
        uVar9 = uVar9 | 0x40;
      }
      pBVar2->btsFlags = uVar9;
      uVar11 = *(uint *)(pMVar12->aData + 0x1c);
      if (pBVar2->nPage !=
          (uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18)) {
        uVar11 = sqlite3PagerWrite(pMVar12->pDbPage);
        if (uVar11 != 0) goto LAB_000aefad;
        uVar11 = pBVar2->nPage;
        *(uint *)(pMVar12->aData + 0x1c) =
             uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;
      }
      if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;
      goto LAB_000af0f1;
    }
LAB_000af126:
    if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;
  }
  uVar11 = 0;
LAB_000aefad:
  if (p->sharable != '\0') {
    piVar1 = &p->wantToLock;
    *piVar1 = *piVar1 + -1;
    if (*piVar1 == 0) {
      unlockBtreeMutex((Btree *)p->pBt,(Btree *)&p->locked);
      return uVar11;
    }
  }
  return uVar11;
}



uint __regparm3 FUN_000aede0(int *param_1,int param_2,uint *param_3)

{
  int *piVar1;
  int *piVar2;
  code *pcVar3;
  bool bVar4;
  char cVar5;
  ushort uVar6;
  undefined4 *puVar7;
  uint uVar8;
  int iVar9;
  int iVar10;
  uint uVar11;
  bool bVar12;
  
  piVar1 = (int *)param_1[1];
  if (*(char *)((int)param_1 + 9) != '\0') {
    FUN_00045510();
  }
  if ((char)param_1[2] == '\x02') {
    if (param_3 != (uint *)0x0) {
LAB_000af0d8:
      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);
      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;
    }
    if (param_2 != 0) {
LAB_000af0f1:
      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&
         (*(char *)(*piVar1 + 6) != '\0')) {
        uVar8 = FUN_00057820();
        goto LAB_000aefad;
      }
    }
  }
  else {
    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {
      uVar6 = *(ushort *)((int)piVar1 + 0x16);
      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {
        if ((uVar6 & 1) == 0) goto LAB_000aee37;
        uVar8 = 8;
        if (param_2 != 0) goto LAB_000aefad;
LAB_000aee95:
        if ((uVar6 & 0x80) != 0) {
LAB_000aee99:
          iVar9 = *(int *)piVar1[0x13];
          goto LAB_000aee9e;
        }
      }
      else {
        uVar6 = uVar6 & 0xfffe;
        *(ushort *)((int)piVar1 + 0x16) = uVar6;
LAB_000aee37:
        if (param_2 == 0) goto LAB_000aee95;
        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;
        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))
        goto LAB_000aeea6;
        piVar2 = (int *)*puVar7;
        if (param_1 == piVar2) {
          do {
            puVar7 = (undefined4 *)puVar7[3];
            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;
          } while ((int *)*puVar7 == piVar2);
          iVar9 = *(int *)*puVar7;
        }
        else {
          iVar9 = *piVar2;
        }
LAB_000aee9e:
        if (iVar9 != 0) {
          uVar8 = 0x106;
          FUN_0004e100();
          goto LAB_000aefad;
        }
      }
LAB_000aeea6:
      uVar8 = FUN_0004e1e0();
      if (uVar8 != 0) goto LAB_000aefad;
      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;
      *(ushort *)((int)piVar1 + 0x16) = uVar6;
      if (piVar1[0xb] == 0) {
        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;
      }
LAB_000aeed7:
      if (piVar1[3] == 0) goto LAB_000af0af;
      while( true ) {
        bVar12 = param_2 != 0;
        bVar4 = uVar8 == 0 && bVar12;
        if (uVar8 == 0 && bVar12) break;
LAB_000af010:
        bVar4 = bVar12;
        if (uVar8 == 0) goto LAB_000af018;
        while( true ) {
          uVar11 = uVar8 & 0xff;
          cVar5 = (char)piVar1[5];
LAB_000aef18:
          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {
LAB_000aef23:
            piVar1[3] = 0;
            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);
            FUN_0003bb60();
            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {
              FUN_000ad9a0();
            }
          }
          if (uVar11 != 5) goto LAB_000aefad;
LAB_000aef55:
          if ((char)piVar1[5] != '\0') goto LAB_000aefad;
          iVar9 = piVar1[1];
          pcVar3 = *(code **)(iVar9 + 400);
          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))
          goto LAB_000aefad;
          if (*(char *)(iVar9 + 0x19c) == '\0') {
            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);
          }
          else {
            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)
                              );
          }
          if (iVar10 == 0) {
            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;
            goto LAB_000aefad;
          }
          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;
          if (piVar1[3] != 0) break;
LAB_000af0af:
          uVar8 = FUN_000ae670();
          if (uVar8 == 0) goto LAB_000aeed7;
        }
      }
      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {
        cVar5 = (char)piVar1[5];
        uVar11 = 8;
        uVar8 = 8;
        goto LAB_000aef18;
      }
      uVar8 = FUN_00061ac0();
      if (uVar8 != 0) {
        cVar5 = (char)piVar1[5];
        if (uVar8 == 0x205) {
          if (cVar5 != '\0') goto LAB_000aef55;
          iVar9 = piVar1[3];
          uVar8 = 5;
          uVar11 = 5;
          if (iVar9 != 0) goto LAB_000aef23;
          goto LAB_000aef55;
        }
        uVar11 = uVar8 & 0xff;
        goto LAB_000aef18;
      }
      if (piVar1[0xb] == 0) {
        uVar8 = FUN_000aeab0();
        goto LAB_000af010;
      }
LAB_000af018:
      if (((char)param_1[2] == '\0') &&
         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {
        *(undefined1 *)(param_1 + 10) = 1;
        param_1[0xb] = piVar1[0x12];
        piVar1[0x12] = (int)(param_1 + 8);
      }
      if (!bVar4) {
        *(undefined1 *)(param_1 + 2) = 1;
        if ((char)piVar1[5] == '\0') {
          *(undefined1 *)(piVar1 + 5) = 1;
        }
        goto LAB_000af126;
      }
      *(undefined1 *)(param_1 + 2) = 2;
      if (*(byte *)(piVar1 + 5) < 2) {
        *(undefined1 *)(piVar1 + 5) = 2;
      }
      iVar9 = piVar1[3];
      piVar1[0x13] = (int)param_1;
      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;
      if (1 < param_2) {
        uVar6 = uVar6 | 0x40;
      }
      *(ushort *)((int)piVar1 + 0x16) = uVar6;
      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);
      if (piVar1[0xb] !=
          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {
        uVar8 = FUN_000aa4a0();
        if (uVar8 != 0) goto LAB_000aefad;
        uVar8 = piVar1[0xb];
        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =
             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;
      }
      if (param_3 != (uint *)0x0) goto LAB_000af0d8;
      goto LAB_000af0f1;
    }
LAB_000af126:
    if (param_3 != (uint *)0x0) goto LAB_000af0d8;
  }
  uVar8 = 0;
LAB_000aefad:
  if (*(char *)((int)param_1 + 9) != '\0') {
    param_1 = param_1 + 3;
    *param_1 = *param_1 + -1;
    if (*param_1 == 0) {
      FUN_000453f0();
      return uVar8;
    }
  }
  return uVar8;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
CMP byte ptr [EAX + 0x9],0x0
MOV EBX,dword ptr [EAX + 0x4]
MOV dword ptr [ESP + 0x4],EDX
MOV dword ptr [ESP + 0xc],ECX
JZ 0x000aedff
CALL 0x00045510
MOVZX EAX,byte ptr [EBP + 0x8]
CMP AL,0x2
JZ 0x000af0d0
CMP AL,0x1
JNZ 0x000aee1b
MOV EDI,dword ptr [ESP + 0x4]
TEST EDI,EDI
JZ 0x000af126
MOV EDX,dword ptr [EBP]
MOVZX EAX,word ptr [EBX + 0x16]
TEST byte ptr [EDX + 0x1f],0x2
JZ 0x000aee80
MOV EDX,dword ptr [EBX]
CMP byte ptr [EDX + 0xe],0x0
JNZ 0x000aee80
AND EAX,0xfffffffe
MOV word ptr [EBX + 0x16],AX
MOV ECX,dword ptr [ESP + 0x4]
TEST ECX,ECX
JZ 0x000aee95
CMP byte ptr [EBX + 0x14],0x2
JZ 0x000aee99
TEST AL,0x80
JNZ 0x000aee99
CMP dword ptr [ESP + 0x4],0x1
JLE 0x000aeea6
MOV EAX,dword ptr [EBX + 0x48]
TEST EAX,EAX
JZ 0x000aeea6
MOV ECX,dword ptr [EAX]
CMP EBP,ECX
JNZ 0x000af232
LEA ESI,[ESI]
MOV EAX,dword ptr [EAX + 0xc]
TEST EAX,EAX
JZ 0x000aeea6
MOV EDX,dword ptr [EAX]
CMP EDX,ECX
JZ 0x000aee68
MOV EDX,dword ptr [EDX]
JMP 0x000aee9e
TEST AL,0x1
JZ 0x000aee37
MOV ESI,dword ptr [ESP + 0x4]
MOV EDI,0x8
TEST ESI,ESI
JNZ 0x000aefad
TEST AL,0x80
JZ 0x000aeea6
MOV EAX,dword ptr [EBX + 0x4c]
MOV EDX,dword ptr [EAX]
TEST EDX,EDX
JNZ 0x000af1d0
MOV ECX,0x1
MOV EDX,0x1
MOV EAX,EBP
CALL 0x0004e1e0
MOV EDI,EAX
TEST EAX,EAX
JNZ 0x000aefad
MOVZX EAX,word ptr [EBX + 0x16]
MOV EDX,dword ptr [EBX + 0x2c]
AND EAX,0xffffffef
MOV word ptr [EBX + 0x16],AX
TEST EDX,EDX
JZ 0x000af160
MOV EAX,dword ptr [EBX + 0xc]
TEST EAX,EAX
JZ 0x000af0af
MOV EAX,dword ptr [ESP + 0x4]
TEST EAX,EAX
SETNZ AL
TEST EDI,EDI
MOV ESI,EAX
SETZ AL
MOV ECX,ESI
AND AL,CL
MOV byte ptr [ESP + 0x8],AL
JZ 0x000af010
TEST byte ptr [EBX + 0x16],0x1
JZ 0x000aefd0
MOVZX EAX,byte ptr [EBX + 0x14]
MOV ESI,0x8
MOV EDI,0x8
TEST AL,AL
JNZ 0x000aef50
MOV EAX,dword ptr [EBX + 0xc]
TEST EAX,EAX
JZ 0x000aef50
MOV dword ptr [EBX + 0xc],0x0
MOV EAX,dword ptr [EAX + 0x48]
MOV EDX,dword ptr [EAX + 0x14]
MOV dword ptr [ESP + 0x8],EDX
CALL 0x0003bb60
MOV EDX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EDX + 0xd0]
MOV EAX,dword ptr [EAX + 0xc]
TEST EAX,EAX
JZ 0x000af1a8
NOP
CMP ESI,0x5
JNZ 0x000aefad
CMP byte ptr [EBX + 0x14],0x0
JNZ 0x000aefad
MOV ESI,dword ptr [EBX + 0x4]
MOV EAX,dword ptr [ESI + 0x190]
TEST EAX,EAX
JZ 0x000aefad
MOV EDX,dword ptr [ESI + 0x198]
TEST EDX,EDX
JS 0x000aefad
MOV ECX,dword ptr [ESI + 0x194]
CMP byte ptr [ESI + 0x19c],0x0
MOV dword ptr [ESP + 0x8],ECX
JZ 0x000af088
MOV ECX,dword ptr [EBX]
SUB ESP,0x4
PUSH dword ptr [ECX + 0x3c]
PUSH EDX
PUSH dword ptr [ESP + 0x14]
CALL EAX
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000af09d
MOV dword ptr [ESI + 0x198],0xffffffff
CMP byte ptr [EBP + 0x9],0x0
JZ 0x000aefbd
SUB dword ptr [EBP + 0xc],0x1
JZ 0x000af1b8
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP]
XOR ECX,ECX
CMP byte ptr [EAX + 0x4c],0x2
MOV EAX,dword ptr [EBX]
SETZ CL
XOR EDX,EDX
CMP dword ptr [ESP + 0x4],0x1
SETG DL
CALL 0x00061ac0
MOV EDI,EAX
TEST EAX,EAX
JNZ 0x000af140
MOV EAX,dword ptr [EBX + 0x2c]
TEST EAX,EAX
JNZ 0x000af170
MOV EAX,EBX
CALL 0x000aeab0
MOV EDI,EAX
LEA ESI,[ESI]
NOP
TEST EDI,EDI
JNZ 0x000af0c0
CMP byte ptr [EBP + 0x8],0x0
JNZ 0x000af030
ADD dword ptr [EBX + 0x28],0x1
CMP byte ptr [EBP + 0x9],0x0
JNZ 0x000af1e8
LEA ESI,[ESI]
MOV EAX,ESI
TEST AL,AL
JZ 0x000af118
MOV byte ptr [EBP + 0x8],0x2
CMP byte ptr [EBX + 0x14],0x1
JBE 0x000af200
MOVZX EAX,word ptr [EBX + 0x16]
MOV ESI,dword ptr [EBX + 0xc]
MOV dword ptr [EBX + 0x4c],EBP
AND EAX,0xffffffbf
MOV EDX,EAX
OR EDX,0x40
CMP dword ptr [ESP + 0x4],0x2
CMOVGE EAX,EDX
MOV word ptr [EBX + 0x16],AX
MOV EAX,dword ptr [ESI + 0x38]
MOV EAX,dword ptr [EAX + 0x1c]
BSWAP EAX
CMP dword ptr [EBX + 0x2c],EAX
JNZ 0x000af210
MOV EDX,dword ptr [ESP + 0xc]
TEST EDX,EDX
JNZ 0x000af0d8
JMP 0x000af0f1
SUB ESP,0x8
PUSH EDX
PUSH dword ptr [ESP + 0x14]
CALL EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000aefa3
ADD dword ptr [ESI + 0x198],0x1
MOV EAX,dword ptr [EBX + 0xc]
TEST EAX,EAX
JNZ 0x000aeee2
MOV EAX,EBX
CALL 0x000ae670
MOV EDI,EAX
TEST EAX,EAX
JZ 0x000aeed7
MOV EAX,EDI
MOVZX ESI,AL
MOVZX EAX,byte ptr [EBX + 0x14]
JMP 0x000aef18
MOV ESI,dword ptr [ESP + 0xc]
TEST ESI,ESI
JZ 0x000af0e9
MOV EAX,dword ptr [EBX + 0xc]
MOV ECX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EAX + 0x38]
MOV EAX,dword ptr [EAX + 0x28]
BSWAP EAX
MOV dword ptr [ECX],EAX
MOV ECX,dword ptr [ESP + 0x4]
TEST ECX,ECX
JZ 0x000af130
MOV EAX,dword ptr [EBP]
MOV EDX,dword ptr [EAX + 0x1c8]
MOV EAX,dword ptr [EBX]
CMP EDX,dword ptr [EAX + 0x60]
JLE 0x000af130
CMP byte ptr [EAX + 0x6],0x0
JZ 0x000af130
CALL 0x00057820
MOV EDI,EAX
JMP 0x000aefad
MOV byte ptr [EBP + 0x8],0x1
CMP byte ptr [EBX + 0x14],0x0
JNZ 0x000af126
MOV byte ptr [EBX + 0x14],0x1
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x000af0d8
NOP
XOR EDI,EDI
JMP 0x000aefad
MOVZX EAX,byte ptr [EBX + 0x14]
CMP EDI,0x205
JZ 0x000af180
MOV ECX,EDI
MOVZX ESI,CL
JMP 0x000aef18
OR EAX,0x10
MOV word ptr [EBX + 0x16],AX
JMP 0x000aeed7
MOVZX ESI,byte ptr [ESP + 0x8]
JMP 0x000af018
TEST AL,AL
JNZ 0x000aef55
MOV EAX,dword ptr [EBX + 0xc]
MOV EDI,0x5
MOV ESI,0x5
TEST EAX,EAX
JNZ 0x000aef23
JMP 0x000aef55
MOV EAX,EDX
CALL 0x000ad9a0
JMP 0x000aef50
MOV EAX,dword ptr [EBP + 0x4]
LEA EDX,[EBP + 0xa]
CALL 0x000453f0
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP]
MOV EDI,0x106
CALL 0x0004e100
JMP 0x000aefad
MOV byte ptr [EBP + 0x28],0x1
MOV EAX,dword ptr [EBX + 0x48]
MOV dword ptr [EBP + 0x2c],EAX
LEA EAX,[EBP + 0x20]
MOV dword ptr [EBX + 0x48],EAX
JMP 0x000af030
MOV byte ptr [EBX + 0x14],0x2
JMP 0x000af048
MOV EAX,dword ptr [ESI + 0x48]
CALL 0x000aa4a0
MOV EDI,EAX
TEST EAX,EAX
JNZ 0x000aefad
MOV EAX,dword ptr [EBX + 0x2c]
MOV EDX,dword ptr [ESI + 0x38]
BSWAP EAX
MOV dword ptr [EDX + 0x1c],EAX
JMP 0x000af077
MOV EDX,ECX
MOV EDX,dword ptr [EDX]
JMP 0x000aee9e
(translation_unit "uint __regparm3 FUN_000aede0(int *param_1,int param_2,uint *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  code *pcVar3;\n  bool bVar4;\n  char cVar5;\n  ushort uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  bool bVar12;\n  \n  piVar1 = (int *)param_1[1];\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    FUN_00045510();\n  }\n  if ((char)param_1[2] == '\x02') {\n    if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }\n    if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }\n  uVar8 = 0;\nLAB_000aefad:\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }\n  return uVar8;\n}\n\n" (function_definition "uint __regparm3 FUN_000aede0(int *param_1,int param_2,uint *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  code *pcVar3;\n  bool bVar4;\n  char cVar5;\n  ushort uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  bool bVar12;\n  \n  piVar1 = (int *)param_1[1];\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    FUN_00045510();\n  }\n  if ((char)param_1[2] == '\x02') {\n    if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }\n    if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }\n  uVar8 = 0;\nLAB_000aefad:\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }\n  return uVar8;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000aede0(int *param_1,int param_2,uint *param_3)" identifier (parameter_list "(int *param_1,int param_2,uint *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  code *pcVar3;\n  bool bVar4;\n  char cVar5;\n  ushort uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  bool bVar12;\n  \n  piVar1 = (int *)param_1[1];\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    FUN_00045510();\n  }\n  if ((char)param_1[2] == '\x02') {\n    if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }\n    if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }\n  uVar8 = 0;\nLAB_000aefad:\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }\n  return uVar8;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "ushort uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "bool bVar12;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)param_1[1];" (assignment_expression "piVar1 = (int *)param_1[1]" identifier = (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (if_statement "if (*(char *)((int)param_1 + 9) != '\0') {\n    FUN_00045510();\n  }" if (parenthesized_expression "(*(char *)((int)param_1 + 9) != '\0')" ( (binary_expression "*(char *)((int)param_1 + 9) != '\0'" (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00045510();\n  }" { (expression_statement "FUN_00045510();" (call_expression "FUN_00045510()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if ((char)param_1[2] == '\x02') {\n    if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }\n    if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }" if (parenthesized_expression "((char)param_1[2] == '\x02')" ( (binary_expression "(char)param_1[2] == '\x02'" (cast_expression "(char)param_1[2]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }\n    if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }\n  }" { (if_statement "if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }" if (parenthesized_expression "(param_3 != (uint *)0x0)" ( (binary_expression "param_3 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }" { (labeled_statement "LAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);" statement_identifier : (expression_statement "uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);" (assignment_expression "uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28)" identifier = (pointer_expression "*(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28)" * (cast_expression "(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(piVar1[3] + 0x38) + 0x28)" ( (binary_expression "*(int *)(piVar1[3] + 0x38) + 0x28" (pointer_expression "*(int *)(piVar1[3] + 0x38)" * (cast_expression "(int *)(piVar1[3] + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[3] + 0x38)" ( (binary_expression "piVar1[3] + 0x38" (subscript_expression "piVar1[3]" identifier [ number_literal ]) + number_literal) )))) + number_literal) ))))) ;)) (expression_statement "*param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;" (assignment_expression "*param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (pointer_expression "*param_3" * identifier) = (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8" (binary_expression "uVar8 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar8 & 0xff0000) >> 8" (parenthesized_expression "(uVar8 & 0xff0000)" ( (binary_expression "uVar8 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar8 & 0xff00) << 8" (parenthesized_expression "(uVar8 & 0xff00)" ( (binary_expression "uVar8 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar8 << 0x18" identifier << number_literal))) ;) })) (if_statement "if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }" { (labeled_statement "LAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }" statement_identifier : (if_statement "if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }" if (parenthesized_expression "((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0'))" ( (binary_expression "(*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')" (parenthesized_expression "(*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8))" ( (binary_expression "*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)" (pointer_expression "*(int *)(*piVar1 + 0x60)" * (cast_expression "(int *)(*piVar1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x60)" ( (binary_expression "*piVar1 + 0x60" (pointer_expression "*piVar1" * identifier) + number_literal) )))) < (pointer_expression "*(int *)(*param_1 + 0x1c8)" * (cast_expression "(int *)(*param_1 + 0x1c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1c8)" ( (binary_expression "*param_1 + 0x1c8" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) && (parenthesized_expression "(*(char *)(*piVar1 + 6) != '\0')" ( (binary_expression "*(char *)(*piVar1 + 6) != '\0'" (pointer_expression "*(char *)(*piVar1 + 6)" * (cast_expression "(char *)(*piVar1 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 6)" ( (binary_expression "*piVar1 + 6" (pointer_expression "*piVar1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }" { (expression_statement "uVar8 = FUN_00057820();" (assignment_expression "uVar8 = FUN_00057820()" identifier = (call_expression "FUN_00057820()" identifier (argument_list "()" ( )))) ;) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;) }))) })) }) (else_clause "else {\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }" else (compound_statement "{\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }" { (if_statement "if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }" if (parenthesized_expression "(((char)param_1[2] != '\x01') || (param_2 != 0))" ( (binary_expression "((char)param_1[2] != '\x01') || (param_2 != 0)" (parenthesized_expression "((char)param_1[2] != '\x01')" ( (binary_expression "(char)param_1[2] != '\x01'" (cast_expression "(char)param_1[2]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) != (char_literal "'\x01'" ' escape_sequence ')) )) || (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }" { (expression_statement "uVar6 = *(ushort *)((int)piVar1 + 0x16);" (assignment_expression "uVar6 = *(ushort *)((int)piVar1 + 0x16)" identifier = (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" * (cast_expression "(ushort *)((int)piVar1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }" if (parenthesized_expression "(((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0'))" ( (binary_expression "((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')" (parenthesized_expression "((*(byte *)(*param_1 + 0x1f) & 2) == 0)" ( (binary_expression "(*(byte *)(*param_1 + 0x1f) & 2) == 0" (parenthesized_expression "(*(byte *)(*param_1 + 0x1f) & 2)" ( (binary_expression "*(byte *)(*param_1 + 0x1f) & 2" (pointer_expression "*(byte *)(*param_1 + 0x1f)" * (cast_expression "(byte *)(*param_1 + 0x1f)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1f)" ( (binary_expression "*param_1 + 0x1f" (pointer_expression "*param_1" * identifier) + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "(*(char *)(*piVar1 + 0xe) != '\0')" ( (binary_expression "*(char *)(*piVar1 + 0xe) != '\0'" (pointer_expression "*(char *)(*piVar1 + 0xe)" * (cast_expression "(char *)(*piVar1 + 0xe)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0xe)" ( (binary_expression "*piVar1 + 0xe" (pointer_expression "*piVar1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }" { (if_statement "if ((uVar6 & 1) == 0) goto LAB_000aee37;" if (parenthesized_expression "((uVar6 & 1) == 0)" ( (binary_expression "(uVar6 & 1) == 0" (parenthesized_expression "(uVar6 & 1)" ( (binary_expression "uVar6 & 1" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_000aee37;" goto statement_identifier ;)) (expression_statement "uVar8 = 8;" (assignment_expression "uVar8 = 8" identifier = number_literal) ;) (if_statement "if (param_2 != 0) goto LAB_000aefad;" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (labeled_statement "LAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }" statement_identifier : (if_statement "if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }" if (parenthesized_expression "((uVar6 & 0x80) != 0)" ( (binary_expression "(uVar6 & 0x80) != 0" (parenthesized_expression "(uVar6 & 0x80)" ( (binary_expression "uVar6 & 0x80" identifier & number_literal) )) != number_literal) )) (compound_statement "{\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }" { (labeled_statement "LAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];" statement_identifier : (expression_statement "iVar9 = *(int *)piVar1[0x13];" (assignment_expression "iVar9 = *(int *)piVar1[0x13]" identifier = (pointer_expression "*(int *)piVar1[0x13]" * (cast_expression "(int *)piVar1[0x13]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[0x13]" identifier [ number_literal ])))) ;)) (goto_statement "goto LAB_000aee9e;" goto statement_identifier ;) }))) }) (else_clause "else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }" else (compound_statement "{\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }" { (expression_statement "uVar6 = uVar6 & 0xfffe;" (assignment_expression "uVar6 = uVar6 & 0xfffe" identifier = (binary_expression "uVar6 & 0xfffe" identifier & number_literal)) ;) (expression_statement "*(ushort *)((int)piVar1 + 0x16) = uVar6;" (assignment_expression "*(ushort *)((int)piVar1 + 0x16) = uVar6" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" * (cast_expression "(ushort *)((int)piVar1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (labeled_statement "LAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;" statement_identifier : (if_statement "if (param_2 == 0) goto LAB_000aee95;" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000aee95;" goto statement_identifier ;))) (if_statement "if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;" if (parenthesized_expression "(((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0))" ( (binary_expression "((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)" (parenthesized_expression "((char)piVar1[5] == '\x02')" ( (binary_expression "(char)piVar1[5] == '\x02'" (cast_expression "(char)piVar1[5]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[5]" identifier [ number_literal ])) == (char_literal "'\x02'" ' escape_sequence ')) )) || (parenthesized_expression "((uVar6 & 0x80) != 0)" ( (binary_expression "(uVar6 & 0x80) != 0" (parenthesized_expression "(uVar6 & 0x80)" ( (binary_expression "uVar6 & 0x80" identifier & number_literal) )) != number_literal) ))) )) (goto_statement "goto LAB_000aee99;" goto statement_identifier ;)) (if_statement "if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;" if (parenthesized_expression "((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))" ( (binary_expression "(param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0)" (parenthesized_expression "(param_2 < 2)" ( (binary_expression "param_2 < 2" identifier < number_literal) )) || (parenthesized_expression "(puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0)" ( (comma_expression "puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0" (assignment_expression "puVar7 = (undefined4 *)piVar1[0x12]" identifier = (cast_expression "(undefined4 *)piVar1[0x12]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[0x12]" identifier [ number_literal ]))) , (binary_expression "puVar7 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_000aeea6;" goto statement_identifier ;)) (expression_statement "piVar2 = (int *)*puVar7;" (assignment_expression "piVar2 = (int *)*puVar7" identifier = (cast_expression "(int *)*puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier))) ;) (if_statement "if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }" if (parenthesized_expression "(param_1 == piVar2)" ( (binary_expression "param_1 == piVar2" identifier == identifier) )) (compound_statement "{\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }" { (do_statement "do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);" do (compound_statement "{\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          }" { (expression_statement "puVar7 = (undefined4 *)puVar7[3];" (assignment_expression "puVar7 = (undefined4 *)puVar7[3]" identifier = (cast_expression "(undefined4 *)puVar7[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar7[3]" identifier [ number_literal ]))) ;) (if_statement "if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;" if (parenthesized_expression "(puVar7 == (undefined4 *)0x0)" ( (binary_expression "puVar7 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000aeea6;" goto statement_identifier ;)) }) while (parenthesized_expression "((int *)*puVar7 == piVar2)" ( (binary_expression "(int *)*puVar7 == piVar2" (cast_expression "(int *)*puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier)) == identifier) )) ;) (expression_statement "iVar9 = *(int *)*puVar7;" (assignment_expression "iVar9 = *(int *)*puVar7" identifier = (pointer_expression "*(int *)*puVar7" * (cast_expression "(int *)*puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier)))) ;) }) (else_clause "else {\n          iVar9 = *piVar2;\n        }" else (compound_statement "{\n          iVar9 = *piVar2;\n        }" { (expression_statement "iVar9 = *piVar2;" (assignment_expression "iVar9 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) }))) (labeled_statement "LAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }" statement_identifier : (if_statement "if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }" { (expression_statement "uVar8 = 0x106;" (assignment_expression "uVar8 = 0x106" identifier = number_literal) ;) (expression_statement "FUN_0004e100();" (call_expression "FUN_0004e100()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;) }))) }))) (labeled_statement "LAB_000aeea6:\n      uVar8 = FUN_0004e1e0();" statement_identifier : (expression_statement "uVar8 = FUN_0004e1e0();" (assignment_expression "uVar8 = FUN_0004e1e0()" identifier = (call_expression "FUN_0004e1e0()" identifier (argument_list "()" ( )))) ;)) (if_statement "if (uVar8 != 0) goto LAB_000aefad;" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (expression_statement "uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;" (assignment_expression "uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef" identifier = (binary_expression "*(ushort *)((int)piVar1 + 0x16) & 0xffef" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" * (cast_expression "(ushort *)((int)piVar1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal)) ;) (expression_statement "*(ushort *)((int)piVar1 + 0x16) = uVar6;" (assignment_expression "*(ushort *)((int)piVar1 + 0x16) = uVar6" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" * (cast_expression "(ushort *)((int)piVar1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }" if (parenthesized_expression "(piVar1[0xb] == 0)" ( (binary_expression "piVar1[0xb] == 0" (subscript_expression "piVar1[0xb]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }" { (expression_statement "*(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;" (assignment_expression "*(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" * (cast_expression "(ushort *)((int)piVar1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "uVar6 | 0x10" identifier | number_literal)) ;) })) (labeled_statement "LAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;" statement_identifier : (if_statement "if (piVar1[3] == 0) goto LAB_000af0af;" if (parenthesized_expression "(piVar1[3] == 0)" ( (binary_expression "piVar1[3] == 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) == number_literal) )) (goto_statement "goto LAB_000af0af;" goto statement_identifier ;))) (while_statement "while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }" { (expression_statement "bVar12 = param_2 != 0;" (assignment_expression "bVar12 = param_2 != 0" identifier = (binary_expression "param_2 != 0" identifier != number_literal)) ;) (expression_statement "bVar4 = uVar8 == 0 && bVar12;" (assignment_expression "bVar4 = uVar8 == 0 && bVar12" identifier = (binary_expression "uVar8 == 0 && bVar12" (binary_expression "uVar8 == 0" identifier == number_literal) && identifier)) ;) (if_statement "if (uVar8 == 0 && bVar12) break;" if (parenthesized_expression "(uVar8 == 0 && bVar12)" ( (binary_expression "uVar8 == 0 && bVar12" (binary_expression "uVar8 == 0" identifier == number_literal) && identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_000af010:\n        bVar4 = bVar12;" statement_identifier : (expression_statement "bVar4 = bVar12;" (assignment_expression "bVar4 = bVar12" identifier = identifier) ;)) (if_statement "if (uVar8 == 0) goto LAB_000af018;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000af018;" goto statement_identifier ;)) (while_statement "while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }" { (expression_statement "uVar11 = uVar8 & 0xff;" (assignment_expression "uVar11 = uVar8 & 0xff" identifier = (binary_expression "uVar8 & 0xff" identifier & number_literal)) ;) (expression_statement "cVar5 = (char)piVar1[5];" (assignment_expression "cVar5 = (char)piVar1[5]" identifier = (cast_expression "(char)piVar1[5]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[5]" identifier [ number_literal ]))) ;) (labeled_statement "LAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }" statement_identifier : (if_statement "if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }" if (parenthesized_expression "((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0))" ( (binary_expression "(cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)" (parenthesized_expression "(cVar5 == '\0')" ( (binary_expression "cVar5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(iVar9 = piVar1[3], iVar9 != 0)" ( (comma_expression "iVar9 = piVar1[3], iVar9 != 0" (assignment_expression "iVar9 = piVar1[3]" identifier = (subscript_expression "piVar1[3]" identifier [ number_literal ])) , (binary_expression "iVar9 != 0" identifier != number_literal)) ))) )) (compound_statement "{\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }" { (labeled_statement "LAB_000aef23:\n            piVar1[3] = 0;" statement_identifier : (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);" (assignment_expression "iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14)" identifier = (pointer_expression "*(int *)(*(int *)(iVar9 + 0x48) + 0x14)" * (cast_expression "(int *)(*(int *)(iVar9 + 0x48) + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar9 + 0x48) + 0x14)" ( (binary_expression "*(int *)(iVar9 + 0x48) + 0x14" (pointer_expression "*(int *)(iVar9 + 0x48)" * (cast_expression "(int *)(iVar9 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x48)" ( (binary_expression "iVar9 + 0x48" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "FUN_0003bb60();" (call_expression "FUN_0003bb60()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }" if (parenthesized_expression "(*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0)" ( (binary_expression "*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0" (pointer_expression "*(int *)(*(int *)(iVar9 + 0xd0) + 0xc)" * (cast_expression "(int *)(*(int *)(iVar9 + 0xd0) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar9 + 0xd0) + 0xc)" ( (binary_expression "*(int *)(iVar9 + 0xd0) + 0xc" (pointer_expression "*(int *)(iVar9 + 0xd0)" * (cast_expression "(int *)(iVar9 + 0xd0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0xd0)" ( (binary_expression "iVar9 + 0xd0" identifier + number_literal) )))) + number_literal) )))) == number_literal) )) (compound_statement "{\n              FUN_000ad9a0();\n            }" { (expression_statement "FUN_000ad9a0();" (call_expression "FUN_000ad9a0()" identifier (argument_list "()" ( ))) ;) })) }))) (if_statement "if (uVar11 != 5) goto LAB_000aefad;" if (parenthesized_expression "(uVar11 != 5)" ( (binary_expression "uVar11 != 5" identifier != number_literal) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (labeled_statement "LAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;" statement_identifier : (if_statement "if ((char)piVar1[5] != '\0') goto LAB_000aefad;" if (parenthesized_expression "((char)piVar1[5] != '\0')" ( (binary_expression "(char)piVar1[5] != '\0'" (cast_expression "(char)piVar1[5]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[5]" identifier [ number_literal ])) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;))) (expression_statement "iVar9 = piVar1[1];" (assignment_expression "iVar9 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar3 = *(code **)(iVar9 + 400);" (assignment_expression "pcVar3 = *(code **)(iVar9 + 400)" identifier = (pointer_expression "*(code **)(iVar9 + 400)" * (cast_expression "(code **)(iVar9 + 400)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar9 + 400)" ( (binary_expression "iVar9 + 400" identifier + number_literal) ))))) ;) (if_statement "if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;" if (parenthesized_expression "((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))" ( (binary_expression "(pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0)" (parenthesized_expression "(pcVar3 == (code *)0x0)" ( (binary_expression "pcVar3 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0)" ( (comma_expression "iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0" (assignment_expression "iVar10 = *(int *)(iVar9 + 0x198)" identifier = (pointer_expression "*(int *)(iVar9 + 0x198)" * (cast_expression "(int *)(iVar9 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x198)" ( (binary_expression "iVar9 + 0x198" identifier + number_literal) ))))) , (binary_expression "iVar10 < 0" identifier < number_literal)) ))) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (if_statement "if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }" if (parenthesized_expression "(*(char *)(iVar9 + 0x19c) == '\0')" ( (binary_expression "*(char *)(iVar9 + 0x19c) == '\0'" (pointer_expression "*(char *)(iVar9 + 0x19c)" * (cast_expression "(char *)(iVar9 + 0x19c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x19c)" ( (binary_expression "iVar9 + 0x19c" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }" { (expression_statement "iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);" (assignment_expression "iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10)" identifier = (call_expression "(*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(*(undefined4 *)(iVar9 + 0x194),iVar10)" ( (pointer_expression "*(undefined4 *)(iVar9 + 0x194)" * (cast_expression "(undefined4 *)(iVar9 + 0x194)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x194)" ( (binary_expression "iVar9 + 0x194" identifier + number_literal) )))) , identifier )))) ;) }) (else_clause "else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }" else (compound_statement "{\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }" { (expression_statement "iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );" (assignment_expression "iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              )" identifier = (call_expression "(*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              )" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              )" ( (pointer_expression "*(undefined4 *)(iVar9 + 0x194)" * (cast_expression "(undefined4 *)(iVar9 + 0x194)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x194)" ( (binary_expression "iVar9 + 0x194" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined4 *)(*piVar1 + 0x3c)" * (cast_expression "(undefined4 *)(*piVar1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x3c)" ( (binary_expression "*piVar1 + 0x3c" (pointer_expression "*piVar1" * identifier) + number_literal) )))) )))) ;) }))) (if_statement "if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }" { (expression_statement "*(undefined4 *)(iVar9 + 0x198) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar9 + 0x198) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar9 + 0x198)" * (cast_expression "(undefined4 *)(iVar9 + 0x198)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x198)" ( (binary_expression "iVar9 + 0x198" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;) })) (expression_statement "*(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;" (assignment_expression "*(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1" (pointer_expression "*(int *)(iVar9 + 0x198)" * (cast_expression "(int *)(iVar9 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x198)" ( (binary_expression "iVar9 + 0x198" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar9 + 0x198) + 1" (pointer_expression "*(int *)(iVar9 + 0x198)" * (cast_expression "(int *)(iVar9 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x198)" ( (binary_expression "iVar9 + 0x198" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (piVar1[3] != 0) break;" if (parenthesized_expression "(piVar1[3] != 0)" ( (binary_expression "piVar1[3] != 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) != number_literal) )) (break_statement "break;" break ;)) (labeled_statement "LAB_000af0af:\n          uVar8 = FUN_000ae670();" statement_identifier : (expression_statement "uVar8 = FUN_000ae670();" (assignment_expression "uVar8 = FUN_000ae670()" identifier = (call_expression "FUN_000ae670()" identifier (argument_list "()" ( )))) ;)) (if_statement "if (uVar8 == 0) goto LAB_000aeed7;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000aeed7;" goto statement_identifier ;)) })) })) (if_statement "if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }" if (parenthesized_expression "((*(byte *)((int)piVar1 + 0x16) & 1) != 0)" ( (binary_expression "(*(byte *)((int)piVar1 + 0x16) & 1) != 0" (parenthesized_expression "(*(byte *)((int)piVar1 + 0x16) & 1)" ( (binary_expression "*(byte *)((int)piVar1 + 0x16) & 1" (pointer_expression "*(byte *)((int)piVar1 + 0x16)" * (cast_expression "(byte *)((int)piVar1 + 0x16)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }" { (expression_statement "cVar5 = (char)piVar1[5];" (assignment_expression "cVar5 = (char)piVar1[5]" identifier = (cast_expression "(char)piVar1[5]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[5]" identifier [ number_literal ]))) ;) (expression_statement "uVar11 = 8;" (assignment_expression "uVar11 = 8" identifier = number_literal) ;) (expression_statement "uVar8 = 8;" (assignment_expression "uVar8 = 8" identifier = number_literal) ;) (goto_statement "goto LAB_000aef18;" goto statement_identifier ;) })) (expression_statement "uVar8 = FUN_00061ac0();" (assignment_expression "uVar8 = FUN_00061ac0()" identifier = (call_expression "FUN_00061ac0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }" { (expression_statement "cVar5 = (char)piVar1[5];" (assignment_expression "cVar5 = (char)piVar1[5]" identifier = (cast_expression "(char)piVar1[5]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[5]" identifier [ number_literal ]))) ;) (if_statement "if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }" if (parenthesized_expression "(uVar8 == 0x205)" ( (binary_expression "uVar8 == 0x205" identifier == number_literal) )) (compound_statement "{\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }" { (if_statement "if (cVar5 != '\0') goto LAB_000aef55;" if (parenthesized_expression "(cVar5 != '\0')" ( (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000aef55;" goto statement_identifier ;)) (expression_statement "iVar9 = piVar1[3];" (assignment_expression "iVar9 = piVar1[3]" identifier = (subscript_expression "piVar1[3]" identifier [ number_literal ])) ;) (expression_statement "uVar8 = 5;" (assignment_expression "uVar8 = 5" identifier = number_literal) ;) (expression_statement "uVar11 = 5;" (assignment_expression "uVar11 = 5" identifier = number_literal) ;) (if_statement "if (iVar9 != 0) goto LAB_000aef23;" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000aef23;" goto statement_identifier ;)) (goto_statement "goto LAB_000aef55;" goto statement_identifier ;) })) (expression_statement "uVar11 = uVar8 & 0xff;" (assignment_expression "uVar11 = uVar8 & 0xff" identifier = (binary_expression "uVar8 & 0xff" identifier & number_literal)) ;) (goto_statement "goto LAB_000aef18;" goto statement_identifier ;) })) (if_statement "if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }" if (parenthesized_expression "(piVar1[0xb] == 0)" ( (binary_expression "piVar1[0xb] == 0" (subscript_expression "piVar1[0xb]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }" { (expression_statement "uVar8 = FUN_000aeab0();" (assignment_expression "uVar8 = FUN_000aeab0()" identifier = (call_expression "FUN_000aeab0()" identifier (argument_list "()" ( )))) ;) (goto_statement "goto LAB_000af010;" goto statement_identifier ;) })) (labeled_statement "LAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }" statement_identifier : (if_statement "if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }" if (parenthesized_expression "(((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0'))" ( (binary_expression "((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')" (parenthesized_expression "((char)param_1[2] == '\0')" ( (binary_expression "(char)param_1[2] == '\0'" (cast_expression "(char)param_1[2]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')" ( (comma_expression "piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0'" (assignment_expression "piVar1[10] = piVar1[10] + 1" (subscript_expression "piVar1[10]" identifier [ number_literal ]) = (binary_expression "piVar1[10] + 1" (subscript_expression "piVar1[10]" identifier [ number_literal ]) + number_literal)) , (binary_expression "*(char *)((int)param_1 + 9) != '\0'" (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }" { (expression_statement "*(undefined1 *)(param_1 + 10) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 10) = 1" (pointer_expression "*(undefined1 *)(param_1 + 10)" * (cast_expression "(undefined1 *)(param_1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0xb] = piVar1[0x12];" (assignment_expression "param_1[0xb] = piVar1[0x12]" (subscript_expression "param_1[0xb]" identifier [ number_literal ]) = (subscript_expression "piVar1[0x12]" identifier [ number_literal ])) ;) (expression_statement "piVar1[0x12] = (int)(param_1 + 8);" (assignment_expression "piVar1[0x12] = (int)(param_1 + 8)" (subscript_expression "piVar1[0x12]" identifier [ number_literal ]) = (cast_expression "(int)(param_1 + 8)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ;) }))) (if_statement "if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }" { (expression_statement "*(undefined1 *)(param_1 + 2) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 2) = 1" (pointer_expression "*(undefined1 *)(param_1 + 2)" * (cast_expression "(undefined1 *)(param_1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }" if (parenthesized_expression "((char)piVar1[5] == '\0')" ( (binary_expression "(char)piVar1[5] == '\0'" (cast_expression "(char)piVar1[5]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[5]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }" { (expression_statement "*(undefined1 *)(piVar1 + 5) = 1;" (assignment_expression "*(undefined1 *)(piVar1 + 5) = 1" (pointer_expression "*(undefined1 *)(piVar1 + 5)" * (cast_expression "(undefined1 *)(piVar1 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))) = number_literal) ;) })) (goto_statement "goto LAB_000af126;" goto statement_identifier ;) })) (expression_statement "*(undefined1 *)(param_1 + 2) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 2) = 2" (pointer_expression "*(undefined1 *)(param_1 + 2)" * (cast_expression "(undefined1 *)(param_1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }" if (parenthesized_expression "(*(byte *)(piVar1 + 5) < 2)" ( (binary_expression "*(byte *)(piVar1 + 5) < 2" (pointer_expression "*(byte *)(piVar1 + 5)" * (cast_expression "(byte *)(piVar1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }" { (expression_statement "*(undefined1 *)(piVar1 + 5) = 2;" (assignment_expression "*(undefined1 *)(piVar1 + 5) = 2" (pointer_expression "*(undefined1 *)(piVar1 + 5)" * (cast_expression "(undefined1 *)(piVar1 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "iVar9 = piVar1[3];" (assignment_expression "iVar9 = piVar1[3]" identifier = (subscript_expression "piVar1[3]" identifier [ number_literal ])) ;) (expression_statement "piVar1[0x13] = (int)param_1;" (assignment_expression "piVar1[0x13] = (int)param_1" (subscript_expression "piVar1[0x13]" identifier [ number_literal ]) = (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;" (assignment_expression "uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf" identifier = (binary_expression "*(ushort *)((int)piVar1 + 0x16) & 0xffbf" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" * (cast_expression "(ushort *)((int)piVar1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal)) ;) (if_statement "if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }" if (parenthesized_expression "(1 < param_2)" ( (binary_expression "1 < param_2" number_literal < identifier) )) (compound_statement "{\n        uVar6 = uVar6 | 0x40;\n      }" { (expression_statement "uVar6 = uVar6 | 0x40;" (assignment_expression "uVar6 = uVar6 | 0x40" identifier = (binary_expression "uVar6 | 0x40" identifier | number_literal)) ;) })) (expression_statement "*(ushort *)((int)piVar1 + 0x16) = uVar6;" (assignment_expression "*(ushort *)((int)piVar1 + 0x16) = uVar6" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" * (cast_expression "(ushort *)((int)piVar1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);" (assignment_expression "uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" identifier = (pointer_expression "*(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" * (cast_expression "(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar9 + 0x38) + 0x1c)" ( (binary_expression "*(int *)(iVar9 + 0x38) + 0x1c" (pointer_expression "*(int *)(iVar9 + 0x38)" * (cast_expression "(int *)(iVar9 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x38)" ( (binary_expression "iVar9 + 0x38" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }" if (parenthesized_expression "(piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18))" ( (binary_expression "piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)" (subscript_expression "piVar1[0xb]" identifier [ number_literal ]) != (parenthesized_expression "(uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)" ( (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8" (binary_expression "uVar8 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar8 & 0xff0000) >> 8" (parenthesized_expression "(uVar8 & 0xff0000)" ( (binary_expression "uVar8 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar8 & 0xff00) << 8" (parenthesized_expression "(uVar8 & 0xff00)" ( (binary_expression "uVar8 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar8 << 0x18" identifier << number_literal)) ))) )) (compound_statement "{\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }" { (expression_statement "uVar8 = FUN_000aa4a0();" (assignment_expression "uVar8 = FUN_000aa4a0()" identifier = (call_expression "FUN_000aa4a0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (uVar8 != 0) goto LAB_000aefad;" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (expression_statement "uVar8 = piVar1[0xb];" (assignment_expression "uVar8 = piVar1[0xb]" identifier = (subscript_expression "piVar1[0xb]" identifier [ number_literal ])) ;) (expression_statement "*(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;" (assignment_expression "*(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (pointer_expression "*(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" * (cast_expression "(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar9 + 0x38) + 0x1c)" ( (binary_expression "*(int *)(iVar9 + 0x38) + 0x1c" (pointer_expression "*(int *)(iVar9 + 0x38)" * (cast_expression "(int *)(iVar9 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x38)" ( (binary_expression "iVar9 + 0x38" identifier + number_literal) )))) + number_literal) )))) = (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8" (binary_expression "uVar8 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar8 & 0xff0000) >> 8" (parenthesized_expression "(uVar8 & 0xff0000)" ( (binary_expression "uVar8 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar8 & 0xff00) << 8" (parenthesized_expression "(uVar8 & 0xff00)" ( (binary_expression "uVar8 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar8 << 0x18" identifier << number_literal))) ;) })) (if_statement "if (param_3 != (uint *)0x0) goto LAB_000af0d8;" if (parenthesized_expression "(param_3 != (uint *)0x0)" ( (binary_expression "param_3 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000af0d8;" goto statement_identifier ;)) (goto_statement "goto LAB_000af0f1;" goto statement_identifier ;) })) (labeled_statement "LAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;" statement_identifier : (if_statement "if (param_3 != (uint *)0x0) goto LAB_000af0d8;" if (parenthesized_expression "(param_3 != (uint *)0x0)" ( (binary_expression "param_3 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000af0d8;" goto statement_identifier ;))) }))) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000aefad:\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }" statement_identifier : (if_statement "if (*(char *)((int)param_1 + 9) != '\0') {\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }" if (parenthesized_expression "(*(char *)((int)param_1 + 9) != '\0')" ( (binary_expression "*(char *)((int)param_1 + 9) != '\0'" (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }" { (expression_statement "param_1 = param_1 + 3;" (assignment_expression "param_1 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) (expression_statement "*param_1 = *param_1 + -1;" (assignment_expression "*param_1 = *param_1 + -1" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 + -1" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (if_statement "if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n      FUN_000453f0();\n      return uVar8;\n    }" { (expression_statement "FUN_000453f0();" (call_expression "FUN_000453f0()" identifier (argument_list "()" ( ))) ;) (return_statement "return uVar8;" return identifier ;) })) }))) (return_statement "return uVar8;" return identifier ;) })))
(translation_unit "int __regparm3 sqlite3BtreeBeginTrans(Btree *p,int wrflag,int *pSchemaVersion)\n\n{\n  int *piVar1;\n  BtShared *pBVar2;\n  Btree *pBVar3;\n  Pager *pPVar4;\n  _func_int_void_ptr_int *p_Var5;\n  void *pvVar6;\n  bool bVar7;\n  u8 uVar8;\n  ushort uVar9;\n  BtLock *pBVar10;\n  uint uVar11;\n  MemPage *pMVar12;\n  int iVar13;\n  sqlite3 *psVar14;\n  uint uVar15;\n  bool bVar16;\n  BtShared *in_stack_ffffffd4;\n  \n  pBVar2 = p->pBt;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  if (p->inTrans == '\x02') {\n    if (pSchemaVersion != (int *)0x0) {\nLAB_000af0d8:\n      uVar11 = *(uint *)(pBVar2->pPage1->aData + 0x28);\n      *pSchemaVersion =\n           uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n    }\n    if (wrflag != 0) {\nLAB_000af0f1:\n      iVar13 = p->db->nSavepoint;\n      pPVar4 = pBVar2->pPager;\n      if ((pPVar4->nSavepoint < iVar13) && (pPVar4->useJournal != '\0')) {\n        uVar11 = pagerOpenSavepoint(pPVar4,iVar13);\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if ((p->inTrans != '\x01') || (wrflag != 0)) {\n      uVar9 = pBVar2->btsFlags;\n      if (((p->db->flags & 0x2000000) == 0) || (pBVar2->pPager->readOnly != '\0')) {\n        if ((uVar9 & 1) == 0) goto LAB_000aee37;\n        uVar11 = 8;\n        if (wrflag != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar9 & 0x80) != 0) {\nLAB_000aee99:\n          psVar14 = pBVar2->pWriter->db;\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar9 = uVar9 & 0xfffe;\n        pBVar2->btsFlags = uVar9;\nLAB_000aee37:\n        if (wrflag == 0) goto LAB_000aee95;\n        if ((pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0)) goto LAB_000aee99;\n        if ((wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)) goto LAB_000aeea6;\n        pBVar3 = pBVar10->pBtree;\n        if (p == pBVar3) {\n          do {\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          } while (pBVar10->pBtree == pBVar3);\n          psVar14 = pBVar10->pBtree->db;\n        }\n        else {\n          psVar14 = pBVar3->db;\n        }\nLAB_000aee9e:\n        if (psVar14 != (sqlite3 *)0x0) {\n          uVar11 = 0x106;\n          sqlite3ConnectionBlocked(p->db,psVar14);\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar11 = querySharedCacheTableLock(p,1,'\x01');\n      if (uVar11 != 0) goto LAB_000aefad;\n      uVar9 = pBVar2->btsFlags & 0xffef;\n      pBVar2->btsFlags = uVar9;\n      if (pBVar2->nPage == 0) {\n        pBVar2->btsFlags = uVar9 | 0x10;\n      }\nLAB_000aeed7:\n      if (pBVar2->pPage1 == (MemPage *)0x0) goto LAB_000af0af;\n      while( true ) {\n        bVar16 = wrflag != 0;\n        bVar7 = uVar11 == 0 && bVar16;\n        if (uVar11 == 0 && bVar16) break;\nLAB_000af010:\n        bVar7 = bVar16;\n        if (uVar11 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar15 = uVar11 & 0xff;\n          uVar8 = pBVar2->inTransaction;\nLAB_000aef18:\n          if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }\n          if (uVar15 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;\n          psVar14 = pBVar2->db;\n          p_Var5 = (psVar14->busyHandler).xBusyHandler;\n          if ((p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)) goto LAB_000aefad;\n          pvVar6 = (psVar14->busyHandler).pBusyArg;\n          if ((psVar14->busyHandler).bExtraFileArg == '\0') {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          else {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          if (iVar13 == 0) {\n            (psVar14->busyHandler).nBusy = -1;\n            goto LAB_000aefad;\n          }\n          piVar1 = &(psVar14->busyHandler).nBusy;\n          *piVar1 = *piVar1 + 1;\n          if (pBVar2->pPage1 != (MemPage *)0x0) break;\nLAB_000af0af:\n          uVar11 = lockBtree(in_stack_ffffffd4);\n          if (uVar11 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((pBVar2->btsFlags & 1) != 0) {\n        uVar8 = pBVar2->inTransaction;\n        uVar15 = 8;\n        uVar11 = 8;\n        goto LAB_000aef18;\n      }\n      uVar11 = sqlite3PagerBegin(pBVar2->pPager,(uint)(1 < wrflag),\n                                 (uint)(p->db->temp_store == '\x02'));\n      if (uVar11 != 0) {\n        uVar8 = pBVar2->inTransaction;\n        if (uVar11 == 0x205) {\n          if (uVar8 != '\0') goto LAB_000aef55;\n          pMVar12 = pBVar2->pPage1;\n          uVar11 = 5;\n          uVar15 = 5;\n          if (pMVar12 != (MemPage *)0x0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar15 = uVar11 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (pBVar2->nPage == 0) {\n        uVar11 = newDatabase(in_stack_ffffffd4);\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if ((p->inTrans == '\0') &&\n         (pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0')) {\n        (p->lock).eLock = '\x01';\n        (p->lock).pNext = pBVar2->pLock;\n        pBVar2->pLock = &p->lock;\n      }\n      if (!bVar7) {\n        p->inTrans = '\x01';\n        if (pBVar2->inTransaction == '\0') {\n          pBVar2->inTransaction = '\x01';\n        }\n        goto LAB_000af126;\n      }\n      p->inTrans = '\x02';\n      if (pBVar2->inTransaction < 2) {\n        pBVar2->inTransaction = '\x02';\n      }\n      pMVar12 = pBVar2->pPage1;\n      pBVar2->pWriter = p;\n      uVar9 = pBVar2->btsFlags & 0xffbf;\n      if (1 < wrflag) {\n        uVar9 = uVar9 | 0x40;\n      }\n      pBVar2->btsFlags = uVar9;\n      uVar11 = *(uint *)(pMVar12->aData + 0x1c);\n      if (pBVar2->nPage !=\n          (uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18)) {\n        uVar11 = sqlite3PagerWrite(pMVar12->pDbPage);\n        if (uVar11 != 0) goto LAB_000aefad;\n        uVar11 = pBVar2->nPage;\n        *(uint *)(pMVar12->aData + 0x1c) =\n             uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n      }\n      if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;\n  }\n  uVar11 = 0;\nLAB_000aefad:\n  if (p->sharable != '\0') {\n    piVar1 = &p->wantToLock;\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 == 0) {\n      unlockBtreeMutex((Btree *)p->pBt,(Btree *)&p->locked);\n      return uVar11;\n    }\n  }\n  return uVar11;\n}\n\n" (function_definition "int __regparm3 sqlite3BtreeBeginTrans(Btree *p,int wrflag,int *pSchemaVersion)\n\n{\n  int *piVar1;\n  BtShared *pBVar2;\n  Btree *pBVar3;\n  Pager *pPVar4;\n  _func_int_void_ptr_int *p_Var5;\n  void *pvVar6;\n  bool bVar7;\n  u8 uVar8;\n  ushort uVar9;\n  BtLock *pBVar10;\n  uint uVar11;\n  MemPage *pMVar12;\n  int iVar13;\n  sqlite3 *psVar14;\n  uint uVar15;\n  bool bVar16;\n  BtShared *in_stack_ffffffd4;\n  \n  pBVar2 = p->pBt;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  if (p->inTrans == '\x02') {\n    if (pSchemaVersion != (int *)0x0) {\nLAB_000af0d8:\n      uVar11 = *(uint *)(pBVar2->pPage1->aData + 0x28);\n      *pSchemaVersion =\n           uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n    }\n    if (wrflag != 0) {\nLAB_000af0f1:\n      iVar13 = p->db->nSavepoint;\n      pPVar4 = pBVar2->pPager;\n      if ((pPVar4->nSavepoint < iVar13) && (pPVar4->useJournal != '\0')) {\n        uVar11 = pagerOpenSavepoint(pPVar4,iVar13);\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if ((p->inTrans != '\x01') || (wrflag != 0)) {\n      uVar9 = pBVar2->btsFlags;\n      if (((p->db->flags & 0x2000000) == 0) || (pBVar2->pPager->readOnly != '\0')) {\n        if ((uVar9 & 1) == 0) goto LAB_000aee37;\n        uVar11 = 8;\n        if (wrflag != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar9 & 0x80) != 0) {\nLAB_000aee99:\n          psVar14 = pBVar2->pWriter->db;\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar9 = uVar9 & 0xfffe;\n        pBVar2->btsFlags = uVar9;\nLAB_000aee37:\n        if (wrflag == 0) goto LAB_000aee95;\n        if ((pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0)) goto LAB_000aee99;\n        if ((wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)) goto LAB_000aeea6;\n        pBVar3 = pBVar10->pBtree;\n        if (p == pBVar3) {\n          do {\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          } while (pBVar10->pBtree == pBVar3);\n          psVar14 = pBVar10->pBtree->db;\n        }\n        else {\n          psVar14 = pBVar3->db;\n        }\nLAB_000aee9e:\n        if (psVar14 != (sqlite3 *)0x0) {\n          uVar11 = 0x106;\n          sqlite3ConnectionBlocked(p->db,psVar14);\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar11 = querySharedCacheTableLock(p,1,'\x01');\n      if (uVar11 != 0) goto LAB_000aefad;\n      uVar9 = pBVar2->btsFlags & 0xffef;\n      pBVar2->btsFlags = uVar9;\n      if (pBVar2->nPage == 0) {\n        pBVar2->btsFlags = uVar9 | 0x10;\n      }\nLAB_000aeed7:\n      if (pBVar2->pPage1 == (MemPage *)0x0) goto LAB_000af0af;\n      while( true ) {\n        bVar16 = wrflag != 0;\n        bVar7 = uVar11 == 0 && bVar16;\n        if (uVar11 == 0 && bVar16) break;\nLAB_000af010:\n        bVar7 = bVar16;\n        if (uVar11 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar15 = uVar11 & 0xff;\n          uVar8 = pBVar2->inTransaction;\nLAB_000aef18:\n          if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }\n          if (uVar15 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;\n          psVar14 = pBVar2->db;\n          p_Var5 = (psVar14->busyHandler).xBusyHandler;\n          if ((p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)) goto LAB_000aefad;\n          pvVar6 = (psVar14->busyHandler).pBusyArg;\n          if ((psVar14->busyHandler).bExtraFileArg == '\0') {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          else {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          if (iVar13 == 0) {\n            (psVar14->busyHandler).nBusy = -1;\n            goto LAB_000aefad;\n          }\n          piVar1 = &(psVar14->busyHandler).nBusy;\n          *piVar1 = *piVar1 + 1;\n          if (pBVar2->pPage1 != (MemPage *)0x0) break;\nLAB_000af0af:\n          uVar11 = lockBtree(in_stack_ffffffd4);\n          if (uVar11 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((pBVar2->btsFlags & 1) != 0) {\n        uVar8 = pBVar2->inTransaction;\n        uVar15 = 8;\n        uVar11 = 8;\n        goto LAB_000aef18;\n      }\n      uVar11 = sqlite3PagerBegin(pBVar2->pPager,(uint)(1 < wrflag),\n                                 (uint)(p->db->temp_store == '\x02'));\n      if (uVar11 != 0) {\n        uVar8 = pBVar2->inTransaction;\n        if (uVar11 == 0x205) {\n          if (uVar8 != '\0') goto LAB_000aef55;\n          pMVar12 = pBVar2->pPage1;\n          uVar11 = 5;\n          uVar15 = 5;\n          if (pMVar12 != (MemPage *)0x0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar15 = uVar11 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (pBVar2->nPage == 0) {\n        uVar11 = newDatabase(in_stack_ffffffd4);\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if ((p->inTrans == '\0') &&\n         (pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0')) {\n        (p->lock).eLock = '\x01';\n        (p->lock).pNext = pBVar2->pLock;\n        pBVar2->pLock = &p->lock;\n      }\n      if (!bVar7) {\n        p->inTrans = '\x01';\n        if (pBVar2->inTransaction == '\0') {\n          pBVar2->inTransaction = '\x01';\n        }\n        goto LAB_000af126;\n      }\n      p->inTrans = '\x02';\n      if (pBVar2->inTransaction < 2) {\n        pBVar2->inTransaction = '\x02';\n      }\n      pMVar12 = pBVar2->pPage1;\n      pBVar2->pWriter = p;\n      uVar9 = pBVar2->btsFlags & 0xffbf;\n      if (1 < wrflag) {\n        uVar9 = uVar9 | 0x40;\n      }\n      pBVar2->btsFlags = uVar9;\n      uVar11 = *(uint *)(pMVar12->aData + 0x1c);\n      if (pBVar2->nPage !=\n          (uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18)) {\n        uVar11 = sqlite3PagerWrite(pMVar12->pDbPage);\n        if (uVar11 != 0) goto LAB_000aefad;\n        uVar11 = pBVar2->nPage;\n        *(uint *)(pMVar12->aData + 0x1c) =\n             uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n      }\n      if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;\n  }\n  uVar11 = 0;\nLAB_000aefad:\n  if (p->sharable != '\0') {\n    piVar1 = &p->wantToLock;\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 == 0) {\n      unlockBtreeMutex((Btree *)p->pBt,(Btree *)&p->locked);\n      return uVar11;\n    }\n  }\n  return uVar11;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3BtreeBeginTrans(Btree *p,int wrflag,int *pSchemaVersion)" identifier (parameter_list "(Btree *p,int wrflag,int *pSchemaVersion)" ( (parameter_declaration "Btree *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int wrflag" primitive_type identifier) , (parameter_declaration "int *pSchemaVersion" primitive_type (pointer_declarator "*pSchemaVersion" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  BtShared *pBVar2;\n  Btree *pBVar3;\n  Pager *pPVar4;\n  _func_int_void_ptr_int *p_Var5;\n  void *pvVar6;\n  bool bVar7;\n  u8 uVar8;\n  ushort uVar9;\n  BtLock *pBVar10;\n  uint uVar11;\n  MemPage *pMVar12;\n  int iVar13;\n  sqlite3 *psVar14;\n  uint uVar15;\n  bool bVar16;\n  BtShared *in_stack_ffffffd4;\n  \n  pBVar2 = p->pBt;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  if (p->inTrans == '\x02') {\n    if (pSchemaVersion != (int *)0x0) {\nLAB_000af0d8:\n      uVar11 = *(uint *)(pBVar2->pPage1->aData + 0x28);\n      *pSchemaVersion =\n           uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n    }\n    if (wrflag != 0) {\nLAB_000af0f1:\n      iVar13 = p->db->nSavepoint;\n      pPVar4 = pBVar2->pPager;\n      if ((pPVar4->nSavepoint < iVar13) && (pPVar4->useJournal != '\0')) {\n        uVar11 = pagerOpenSavepoint(pPVar4,iVar13);\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if ((p->inTrans != '\x01') || (wrflag != 0)) {\n      uVar9 = pBVar2->btsFlags;\n      if (((p->db->flags & 0x2000000) == 0) || (pBVar2->pPager->readOnly != '\0')) {\n        if ((uVar9 & 1) == 0) goto LAB_000aee37;\n        uVar11 = 8;\n        if (wrflag != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar9 & 0x80) != 0) {\nLAB_000aee99:\n          psVar14 = pBVar2->pWriter->db;\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar9 = uVar9 & 0xfffe;\n        pBVar2->btsFlags = uVar9;\nLAB_000aee37:\n        if (wrflag == 0) goto LAB_000aee95;\n        if ((pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0)) goto LAB_000aee99;\n        if ((wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)) goto LAB_000aeea6;\n        pBVar3 = pBVar10->pBtree;\n        if (p == pBVar3) {\n          do {\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          } while (pBVar10->pBtree == pBVar3);\n          psVar14 = pBVar10->pBtree->db;\n        }\n        else {\n          psVar14 = pBVar3->db;\n        }\nLAB_000aee9e:\n        if (psVar14 != (sqlite3 *)0x0) {\n          uVar11 = 0x106;\n          sqlite3ConnectionBlocked(p->db,psVar14);\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar11 = querySharedCacheTableLock(p,1,'\x01');\n      if (uVar11 != 0) goto LAB_000aefad;\n      uVar9 = pBVar2->btsFlags & 0xffef;\n      pBVar2->btsFlags = uVar9;\n      if (pBVar2->nPage == 0) {\n        pBVar2->btsFlags = uVar9 | 0x10;\n      }\nLAB_000aeed7:\n      if (pBVar2->pPage1 == (MemPage *)0x0) goto LAB_000af0af;\n      while( true ) {\n        bVar16 = wrflag != 0;\n        bVar7 = uVar11 == 0 && bVar16;\n        if (uVar11 == 0 && bVar16) break;\nLAB_000af010:\n        bVar7 = bVar16;\n        if (uVar11 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar15 = uVar11 & 0xff;\n          uVar8 = pBVar2->inTransaction;\nLAB_000aef18:\n          if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }\n          if (uVar15 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;\n          psVar14 = pBVar2->db;\n          p_Var5 = (psVar14->busyHandler).xBusyHandler;\n          if ((p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)) goto LAB_000aefad;\n          pvVar6 = (psVar14->busyHandler).pBusyArg;\n          if ((psVar14->busyHandler).bExtraFileArg == '\0') {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          else {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          if (iVar13 == 0) {\n            (psVar14->busyHandler).nBusy = -1;\n            goto LAB_000aefad;\n          }\n          piVar1 = &(psVar14->busyHandler).nBusy;\n          *piVar1 = *piVar1 + 1;\n          if (pBVar2->pPage1 != (MemPage *)0x0) break;\nLAB_000af0af:\n          uVar11 = lockBtree(in_stack_ffffffd4);\n          if (uVar11 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((pBVar2->btsFlags & 1) != 0) {\n        uVar8 = pBVar2->inTransaction;\n        uVar15 = 8;\n        uVar11 = 8;\n        goto LAB_000aef18;\n      }\n      uVar11 = sqlite3PagerBegin(pBVar2->pPager,(uint)(1 < wrflag),\n                                 (uint)(p->db->temp_store == '\x02'));\n      if (uVar11 != 0) {\n        uVar8 = pBVar2->inTransaction;\n        if (uVar11 == 0x205) {\n          if (uVar8 != '\0') goto LAB_000aef55;\n          pMVar12 = pBVar2->pPage1;\n          uVar11 = 5;\n          uVar15 = 5;\n          if (pMVar12 != (MemPage *)0x0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar15 = uVar11 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (pBVar2->nPage == 0) {\n        uVar11 = newDatabase(in_stack_ffffffd4);\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if ((p->inTrans == '\0') &&\n         (pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0')) {\n        (p->lock).eLock = '\x01';\n        (p->lock).pNext = pBVar2->pLock;\n        pBVar2->pLock = &p->lock;\n      }\n      if (!bVar7) {\n        p->inTrans = '\x01';\n        if (pBVar2->inTransaction == '\0') {\n          pBVar2->inTransaction = '\x01';\n        }\n        goto LAB_000af126;\n      }\n      p->inTrans = '\x02';\n      if (pBVar2->inTransaction < 2) {\n        pBVar2->inTransaction = '\x02';\n      }\n      pMVar12 = pBVar2->pPage1;\n      pBVar2->pWriter = p;\n      uVar9 = pBVar2->btsFlags & 0xffbf;\n      if (1 < wrflag) {\n        uVar9 = uVar9 | 0x40;\n      }\n      pBVar2->btsFlags = uVar9;\n      uVar11 = *(uint *)(pMVar12->aData + 0x1c);\n      if (pBVar2->nPage !=\n          (uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18)) {\n        uVar11 = sqlite3PagerWrite(pMVar12->pDbPage);\n        if (uVar11 != 0) goto LAB_000aefad;\n        uVar11 = pBVar2->nPage;\n        *(uint *)(pMVar12->aData + 0x1c) =\n             uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n      }\n      if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;\n  }\n  uVar11 = 0;\nLAB_000aefad:\n  if (p->sharable != '\0') {\n    piVar1 = &p->wantToLock;\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 == 0) {\n      unlockBtreeMutex((Btree *)p->pBt,(Btree *)&p->locked);\n      return uVar11;\n    }\n  }\n  return uVar11;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "BtShared *pBVar2;" type_identifier (pointer_declarator "*pBVar2" * identifier) ;) (declaration "Btree *pBVar3;" type_identifier (pointer_declarator "*pBVar3" * identifier) ;) (declaration "Pager *pPVar4;" type_identifier (pointer_declarator "*pPVar4" * identifier) ;) (declaration "_func_int_void_ptr_int *p_Var5;" type_identifier (pointer_declarator "*p_Var5" * identifier) ;) (declaration "void *pvVar6;" primitive_type (pointer_declarator "*pvVar6" * identifier) ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "u8 uVar8;" type_identifier identifier ;) (declaration "ushort uVar9;" type_identifier identifier ;) (declaration "BtLock *pBVar10;" type_identifier (pointer_declarator "*pBVar10" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "MemPage *pMVar12;" type_identifier (pointer_declarator "*pMVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "sqlite3 *psVar14;" type_identifier (pointer_declarator "*psVar14" * identifier) ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "bool bVar16;" primitive_type identifier ;) (declaration "BtShared *in_stack_ffffffd4;" type_identifier (pointer_declarator "*in_stack_ffffffd4" * identifier) ;) (expression_statement "pBVar2 = p->pBt;" (assignment_expression "pBVar2 = p->pBt" identifier = (field_expression "p->pBt" identifier -> field_identifier)) ;) (if_statement "if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }" if (parenthesized_expression "(p->sharable != '\0')" ( (binary_expression "p->sharable != '\0'" (field_expression "p->sharable" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sqlite3BtreeEnter(p);\n  }" { (expression_statement "sqlite3BtreeEnter(p);" (call_expression "sqlite3BtreeEnter(p)" identifier (argument_list "(p)" ( identifier ))) ;) })) (if_statement "if (p->inTrans == '\x02') {\n    if (pSchemaVersion != (int *)0x0) {\nLAB_000af0d8:\n      uVar11 = *(uint *)(pBVar2->pPage1->aData + 0x28);\n      *pSchemaVersion =\n           uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n    }\n    if (wrflag != 0) {\nLAB_000af0f1:\n      iVar13 = p->db->nSavepoint;\n      pPVar4 = pBVar2->pPager;\n      if ((pPVar4->nSavepoint < iVar13) && (pPVar4->useJournal != '\0')) {\n        uVar11 = pagerOpenSavepoint(pPVar4,iVar13);\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if ((p->inTrans != '\x01') || (wrflag != 0)) {\n      uVar9 = pBVar2->btsFlags;\n      if (((p->db->flags & 0x2000000) == 0) || (pBVar2->pPager->readOnly != '\0')) {\n        if ((uVar9 & 1) == 0) goto LAB_000aee37;\n        uVar11 = 8;\n        if (wrflag != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar9 & 0x80) != 0) {\nLAB_000aee99:\n          psVar14 = pBVar2->pWriter->db;\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar9 = uVar9 & 0xfffe;\n        pBVar2->btsFlags = uVar9;\nLAB_000aee37:\n        if (wrflag == 0) goto LAB_000aee95;\n        if ((pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0)) goto LAB_000aee99;\n        if ((wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)) goto LAB_000aeea6;\n        pBVar3 = pBVar10->pBtree;\n        if (p == pBVar3) {\n          do {\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          } while (pBVar10->pBtree == pBVar3);\n          psVar14 = pBVar10->pBtree->db;\n        }\n        else {\n          psVar14 = pBVar3->db;\n        }\nLAB_000aee9e:\n        if (psVar14 != (sqlite3 *)0x0) {\n          uVar11 = 0x106;\n          sqlite3ConnectionBlocked(p->db,psVar14);\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar11 = querySharedCacheTableLock(p,1,'\x01');\n      if (uVar11 != 0) goto LAB_000aefad;\n      uVar9 = pBVar2->btsFlags & 0xffef;\n      pBVar2->btsFlags = uVar9;\n      if (pBVar2->nPage == 0) {\n        pBVar2->btsFlags = uVar9 | 0x10;\n      }\nLAB_000aeed7:\n      if (pBVar2->pPage1 == (MemPage *)0x0) goto LAB_000af0af;\n      while( true ) {\n        bVar16 = wrflag != 0;\n        bVar7 = uVar11 == 0 && bVar16;\n        if (uVar11 == 0 && bVar16) break;\nLAB_000af010:\n        bVar7 = bVar16;\n        if (uVar11 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar15 = uVar11 & 0xff;\n          uVar8 = pBVar2->inTransaction;\nLAB_000aef18:\n          if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }\n          if (uVar15 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;\n          psVar14 = pBVar2->db;\n          p_Var5 = (psVar14->busyHandler).xBusyHandler;\n          if ((p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)) goto LAB_000aefad;\n          pvVar6 = (psVar14->busyHandler).pBusyArg;\n          if ((psVar14->busyHandler).bExtraFileArg == '\0') {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          else {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          if (iVar13 == 0) {\n            (psVar14->busyHandler).nBusy = -1;\n            goto LAB_000aefad;\n          }\n          piVar1 = &(psVar14->busyHandler).nBusy;\n          *piVar1 = *piVar1 + 1;\n          if (pBVar2->pPage1 != (MemPage *)0x0) break;\nLAB_000af0af:\n          uVar11 = lockBtree(in_stack_ffffffd4);\n          if (uVar11 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((pBVar2->btsFlags & 1) != 0) {\n        uVar8 = pBVar2->inTransaction;\n        uVar15 = 8;\n        uVar11 = 8;\n        goto LAB_000aef18;\n      }\n      uVar11 = sqlite3PagerBegin(pBVar2->pPager,(uint)(1 < wrflag),\n                                 (uint)(p->db->temp_store == '\x02'));\n      if (uVar11 != 0) {\n        uVar8 = pBVar2->inTransaction;\n        if (uVar11 == 0x205) {\n          if (uVar8 != '\0') goto LAB_000aef55;\n          pMVar12 = pBVar2->pPage1;\n          uVar11 = 5;\n          uVar15 = 5;\n          if (pMVar12 != (MemPage *)0x0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar15 = uVar11 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (pBVar2->nPage == 0) {\n        uVar11 = newDatabase(in_stack_ffffffd4);\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if ((p->inTrans == '\0') &&\n         (pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0')) {\n        (p->lock).eLock = '\x01';\n        (p->lock).pNext = pBVar2->pLock;\n        pBVar2->pLock = &p->lock;\n      }\n      if (!bVar7) {\n        p->inTrans = '\x01';\n        if (pBVar2->inTransaction == '\0') {\n          pBVar2->inTransaction = '\x01';\n        }\n        goto LAB_000af126;\n      }\n      p->inTrans = '\x02';\n      if (pBVar2->inTransaction < 2) {\n        pBVar2->inTransaction = '\x02';\n      }\n      pMVar12 = pBVar2->pPage1;\n      pBVar2->pWriter = p;\n      uVar9 = pBVar2->btsFlags & 0xffbf;\n      if (1 < wrflag) {\n        uVar9 = uVar9 | 0x40;\n      }\n      pBVar2->btsFlags = uVar9;\n      uVar11 = *(uint *)(pMVar12->aData + 0x1c);\n      if (pBVar2->nPage !=\n          (uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18)) {\n        uVar11 = sqlite3PagerWrite(pMVar12->pDbPage);\n        if (uVar11 != 0) goto LAB_000aefad;\n        uVar11 = pBVar2->nPage;\n        *(uint *)(pMVar12->aData + 0x1c) =\n             uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n      }\n      if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;\n  }" if (parenthesized_expression "(p->inTrans == '\x02')" ( (binary_expression "p->inTrans == '\x02'" (field_expression "p->inTrans" identifier -> field_identifier) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    if (pSchemaVersion != (int *)0x0) {\nLAB_000af0d8:\n      uVar11 = *(uint *)(pBVar2->pPage1->aData + 0x28);\n      *pSchemaVersion =\n           uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n    }\n    if (wrflag != 0) {\nLAB_000af0f1:\n      iVar13 = p->db->nSavepoint;\n      pPVar4 = pBVar2->pPager;\n      if ((pPVar4->nSavepoint < iVar13) && (pPVar4->useJournal != '\0')) {\n        uVar11 = pagerOpenSavepoint(pPVar4,iVar13);\n        goto LAB_000aefad;\n      }\n    }\n  }" { (if_statement "if (pSchemaVersion != (int *)0x0) {\nLAB_000af0d8:\n      uVar11 = *(uint *)(pBVar2->pPage1->aData + 0x28);\n      *pSchemaVersion =\n           uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n    }" if (parenthesized_expression "(pSchemaVersion != (int *)0x0)" ( (binary_expression "pSchemaVersion != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000af0d8:\n      uVar11 = *(uint *)(pBVar2->pPage1->aData + 0x28);\n      *pSchemaVersion =\n           uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n    }" { (labeled_statement "LAB_000af0d8:\n      uVar11 = *(uint *)(pBVar2->pPage1->aData + 0x28);" statement_identifier : (expression_statement "uVar11 = *(uint *)(pBVar2->pPage1->aData + 0x28);" (assignment_expression "uVar11 = *(uint *)(pBVar2->pPage1->aData + 0x28)" identifier = (pointer_expression "*(uint *)(pBVar2->pPage1->aData + 0x28)" * (cast_expression "(uint *)(pBVar2->pPage1->aData + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pBVar2->pPage1->aData + 0x28)" ( (binary_expression "pBVar2->pPage1->aData + 0x28" (field_expression "pBVar2->pPage1->aData" (field_expression "pBVar2->pPage1" identifier -> field_identifier) -> field_identifier) + number_literal) ))))) ;)) (expression_statement "*pSchemaVersion =\n           uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;" (assignment_expression "*pSchemaVersion =\n           uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18" (pointer_expression "*pSchemaVersion" * identifier) = (binary_expression "uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18" (binary_expression "uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8" (binary_expression "uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8" (binary_expression "uVar11 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar11 & 0xff0000) >> 8" (parenthesized_expression "(uVar11 & 0xff0000)" ( (binary_expression "uVar11 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar11 & 0xff00) << 8" (parenthesized_expression "(uVar11 & 0xff00)" ( (binary_expression "uVar11 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar11 << 0x18" identifier << number_literal))) ;) })) (if_statement "if (wrflag != 0) {\nLAB_000af0f1:\n      iVar13 = p->db->nSavepoint;\n      pPVar4 = pBVar2->pPager;\n      if ((pPVar4->nSavepoint < iVar13) && (pPVar4->useJournal != '\0')) {\n        uVar11 = pagerOpenSavepoint(pPVar4,iVar13);\n        goto LAB_000aefad;\n      }\n    }" if (parenthesized_expression "(wrflag != 0)" ( (binary_expression "wrflag != 0" identifier != number_literal) )) (compound_statement "{\nLAB_000af0f1:\n      iVar13 = p->db->nSavepoint;\n      pPVar4 = pBVar2->pPager;\n      if ((pPVar4->nSavepoint < iVar13) && (pPVar4->useJournal != '\0')) {\n        uVar11 = pagerOpenSavepoint(pPVar4,iVar13);\n        goto LAB_000aefad;\n      }\n    }" { (labeled_statement "LAB_000af0f1:\n      iVar13 = p->db->nSavepoint;" statement_identifier : (expression_statement "iVar13 = p->db->nSavepoint;" (assignment_expression "iVar13 = p->db->nSavepoint" identifier = (field_expression "p->db->nSavepoint" (field_expression "p->db" identifier -> field_identifier) -> field_identifier)) ;)) (expression_statement "pPVar4 = pBVar2->pPager;" (assignment_expression "pPVar4 = pBVar2->pPager" identifier = (field_expression "pBVar2->pPager" identifier -> field_identifier)) ;) (if_statement "if ((pPVar4->nSavepoint < iVar13) && (pPVar4->useJournal != '\0')) {\n        uVar11 = pagerOpenSavepoint(pPVar4,iVar13);\n        goto LAB_000aefad;\n      }" if (parenthesized_expression "((pPVar4->nSavepoint < iVar13) && (pPVar4->useJournal != '\0'))" ( (binary_expression "(pPVar4->nSavepoint < iVar13) && (pPVar4->useJournal != '\0')" (parenthesized_expression "(pPVar4->nSavepoint < iVar13)" ( (binary_expression "pPVar4->nSavepoint < iVar13" (field_expression "pPVar4->nSavepoint" identifier -> field_identifier) < identifier) )) && (parenthesized_expression "(pPVar4->useJournal != '\0')" ( (binary_expression "pPVar4->useJournal != '\0'" (field_expression "pPVar4->useJournal" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        uVar11 = pagerOpenSavepoint(pPVar4,iVar13);\n        goto LAB_000aefad;\n      }" { (expression_statement "uVar11 = pagerOpenSavepoint(pPVar4,iVar13);" (assignment_expression "uVar11 = pagerOpenSavepoint(pPVar4,iVar13)" identifier = (call_expression "pagerOpenSavepoint(pPVar4,iVar13)" identifier (argument_list "(pPVar4,iVar13)" ( identifier , identifier )))) ;) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;) })) })) }) (else_clause "else {\n    if ((p->inTrans != '\x01') || (wrflag != 0)) {\n      uVar9 = pBVar2->btsFlags;\n      if (((p->db->flags & 0x2000000) == 0) || (pBVar2->pPager->readOnly != '\0')) {\n        if ((uVar9 & 1) == 0) goto LAB_000aee37;\n        uVar11 = 8;\n        if (wrflag != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar9 & 0x80) != 0) {\nLAB_000aee99:\n          psVar14 = pBVar2->pWriter->db;\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar9 = uVar9 & 0xfffe;\n        pBVar2->btsFlags = uVar9;\nLAB_000aee37:\n        if (wrflag == 0) goto LAB_000aee95;\n        if ((pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0)) goto LAB_000aee99;\n        if ((wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)) goto LAB_000aeea6;\n        pBVar3 = pBVar10->pBtree;\n        if (p == pBVar3) {\n          do {\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          } while (pBVar10->pBtree == pBVar3);\n          psVar14 = pBVar10->pBtree->db;\n        }\n        else {\n          psVar14 = pBVar3->db;\n        }\nLAB_000aee9e:\n        if (psVar14 != (sqlite3 *)0x0) {\n          uVar11 = 0x106;\n          sqlite3ConnectionBlocked(p->db,psVar14);\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar11 = querySharedCacheTableLock(p,1,'\x01');\n      if (uVar11 != 0) goto LAB_000aefad;\n      uVar9 = pBVar2->btsFlags & 0xffef;\n      pBVar2->btsFlags = uVar9;\n      if (pBVar2->nPage == 0) {\n        pBVar2->btsFlags = uVar9 | 0x10;\n      }\nLAB_000aeed7:\n      if (pBVar2->pPage1 == (MemPage *)0x0) goto LAB_000af0af;\n      while( true ) {\n        bVar16 = wrflag != 0;\n        bVar7 = uVar11 == 0 && bVar16;\n        if (uVar11 == 0 && bVar16) break;\nLAB_000af010:\n        bVar7 = bVar16;\n        if (uVar11 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar15 = uVar11 & 0xff;\n          uVar8 = pBVar2->inTransaction;\nLAB_000aef18:\n          if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }\n          if (uVar15 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;\n          psVar14 = pBVar2->db;\n          p_Var5 = (psVar14->busyHandler).xBusyHandler;\n          if ((p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)) goto LAB_000aefad;\n          pvVar6 = (psVar14->busyHandler).pBusyArg;\n          if ((psVar14->busyHandler).bExtraFileArg == '\0') {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          else {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          if (iVar13 == 0) {\n            (psVar14->busyHandler).nBusy = -1;\n            goto LAB_000aefad;\n          }\n          piVar1 = &(psVar14->busyHandler).nBusy;\n          *piVar1 = *piVar1 + 1;\n          if (pBVar2->pPage1 != (MemPage *)0x0) break;\nLAB_000af0af:\n          uVar11 = lockBtree(in_stack_ffffffd4);\n          if (uVar11 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((pBVar2->btsFlags & 1) != 0) {\n        uVar8 = pBVar2->inTransaction;\n        uVar15 = 8;\n        uVar11 = 8;\n        goto LAB_000aef18;\n      }\n      uVar11 = sqlite3PagerBegin(pBVar2->pPager,(uint)(1 < wrflag),\n                                 (uint)(p->db->temp_store == '\x02'));\n      if (uVar11 != 0) {\n        uVar8 = pBVar2->inTransaction;\n        if (uVar11 == 0x205) {\n          if (uVar8 != '\0') goto LAB_000aef55;\n          pMVar12 = pBVar2->pPage1;\n          uVar11 = 5;\n          uVar15 = 5;\n          if (pMVar12 != (MemPage *)0x0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar15 = uVar11 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (pBVar2->nPage == 0) {\n        uVar11 = newDatabase(in_stack_ffffffd4);\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if ((p->inTrans == '\0') &&\n         (pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0')) {\n        (p->lock).eLock = '\x01';\n        (p->lock).pNext = pBVar2->pLock;\n        pBVar2->pLock = &p->lock;\n      }\n      if (!bVar7) {\n        p->inTrans = '\x01';\n        if (pBVar2->inTransaction == '\0') {\n          pBVar2->inTransaction = '\x01';\n        }\n        goto LAB_000af126;\n      }\n      p->inTrans = '\x02';\n      if (pBVar2->inTransaction < 2) {\n        pBVar2->inTransaction = '\x02';\n      }\n      pMVar12 = pBVar2->pPage1;\n      pBVar2->pWriter = p;\n      uVar9 = pBVar2->btsFlags & 0xffbf;\n      if (1 < wrflag) {\n        uVar9 = uVar9 | 0x40;\n      }\n      pBVar2->btsFlags = uVar9;\n      uVar11 = *(uint *)(pMVar12->aData + 0x1c);\n      if (pBVar2->nPage !=\n          (uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18)) {\n        uVar11 = sqlite3PagerWrite(pMVar12->pDbPage);\n        if (uVar11 != 0) goto LAB_000aefad;\n        uVar11 = pBVar2->nPage;\n        *(uint *)(pMVar12->aData + 0x1c) =\n             uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n      }\n      if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;\n  }" else (compound_statement "{\n    if ((p->inTrans != '\x01') || (wrflag != 0)) {\n      uVar9 = pBVar2->btsFlags;\n      if (((p->db->flags & 0x2000000) == 0) || (pBVar2->pPager->readOnly != '\0')) {\n        if ((uVar9 & 1) == 0) goto LAB_000aee37;\n        uVar11 = 8;\n        if (wrflag != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar9 & 0x80) != 0) {\nLAB_000aee99:\n          psVar14 = pBVar2->pWriter->db;\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar9 = uVar9 & 0xfffe;\n        pBVar2->btsFlags = uVar9;\nLAB_000aee37:\n        if (wrflag == 0) goto LAB_000aee95;\n        if ((pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0)) goto LAB_000aee99;\n        if ((wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)) goto LAB_000aeea6;\n        pBVar3 = pBVar10->pBtree;\n        if (p == pBVar3) {\n          do {\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          } while (pBVar10->pBtree == pBVar3);\n          psVar14 = pBVar10->pBtree->db;\n        }\n        else {\n          psVar14 = pBVar3->db;\n        }\nLAB_000aee9e:\n        if (psVar14 != (sqlite3 *)0x0) {\n          uVar11 = 0x106;\n          sqlite3ConnectionBlocked(p->db,psVar14);\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar11 = querySharedCacheTableLock(p,1,'\x01');\n      if (uVar11 != 0) goto LAB_000aefad;\n      uVar9 = pBVar2->btsFlags & 0xffef;\n      pBVar2->btsFlags = uVar9;\n      if (pBVar2->nPage == 0) {\n        pBVar2->btsFlags = uVar9 | 0x10;\n      }\nLAB_000aeed7:\n      if (pBVar2->pPage1 == (MemPage *)0x0) goto LAB_000af0af;\n      while( true ) {\n        bVar16 = wrflag != 0;\n        bVar7 = uVar11 == 0 && bVar16;\n        if (uVar11 == 0 && bVar16) break;\nLAB_000af010:\n        bVar7 = bVar16;\n        if (uVar11 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar15 = uVar11 & 0xff;\n          uVar8 = pBVar2->inTransaction;\nLAB_000aef18:\n          if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }\n          if (uVar15 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;\n          psVar14 = pBVar2->db;\n          p_Var5 = (psVar14->busyHandler).xBusyHandler;\n          if ((p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)) goto LAB_000aefad;\n          pvVar6 = (psVar14->busyHandler).pBusyArg;\n          if ((psVar14->busyHandler).bExtraFileArg == '\0') {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          else {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          if (iVar13 == 0) {\n            (psVar14->busyHandler).nBusy = -1;\n            goto LAB_000aefad;\n          }\n          piVar1 = &(psVar14->busyHandler).nBusy;\n          *piVar1 = *piVar1 + 1;\n          if (pBVar2->pPage1 != (MemPage *)0x0) break;\nLAB_000af0af:\n          uVar11 = lockBtree(in_stack_ffffffd4);\n          if (uVar11 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((pBVar2->btsFlags & 1) != 0) {\n        uVar8 = pBVar2->inTransaction;\n        uVar15 = 8;\n        uVar11 = 8;\n        goto LAB_000aef18;\n      }\n      uVar11 = sqlite3PagerBegin(pBVar2->pPager,(uint)(1 < wrflag),\n                                 (uint)(p->db->temp_store == '\x02'));\n      if (uVar11 != 0) {\n        uVar8 = pBVar2->inTransaction;\n        if (uVar11 == 0x205) {\n          if (uVar8 != '\0') goto LAB_000aef55;\n          pMVar12 = pBVar2->pPage1;\n          uVar11 = 5;\n          uVar15 = 5;\n          if (pMVar12 != (MemPage *)0x0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar15 = uVar11 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (pBVar2->nPage == 0) {\n        uVar11 = newDatabase(in_stack_ffffffd4);\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if ((p->inTrans == '\0') &&\n         (pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0')) {\n        (p->lock).eLock = '\x01';\n        (p->lock).pNext = pBVar2->pLock;\n        pBVar2->pLock = &p->lock;\n      }\n      if (!bVar7) {\n        p->inTrans = '\x01';\n        if (pBVar2->inTransaction == '\0') {\n          pBVar2->inTransaction = '\x01';\n        }\n        goto LAB_000af126;\n      }\n      p->inTrans = '\x02';\n      if (pBVar2->inTransaction < 2) {\n        pBVar2->inTransaction = '\x02';\n      }\n      pMVar12 = pBVar2->pPage1;\n      pBVar2->pWriter = p;\n      uVar9 = pBVar2->btsFlags & 0xffbf;\n      if (1 < wrflag) {\n        uVar9 = uVar9 | 0x40;\n      }\n      pBVar2->btsFlags = uVar9;\n      uVar11 = *(uint *)(pMVar12->aData + 0x1c);\n      if (pBVar2->nPage !=\n          (uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18)) {\n        uVar11 = sqlite3PagerWrite(pMVar12->pDbPage);\n        if (uVar11 != 0) goto LAB_000aefad;\n        uVar11 = pBVar2->nPage;\n        *(uint *)(pMVar12->aData + 0x1c) =\n             uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n      }\n      if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;\n  }" { (if_statement "if ((p->inTrans != '\x01') || (wrflag != 0)) {\n      uVar9 = pBVar2->btsFlags;\n      if (((p->db->flags & 0x2000000) == 0) || (pBVar2->pPager->readOnly != '\0')) {\n        if ((uVar9 & 1) == 0) goto LAB_000aee37;\n        uVar11 = 8;\n        if (wrflag != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar9 & 0x80) != 0) {\nLAB_000aee99:\n          psVar14 = pBVar2->pWriter->db;\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar9 = uVar9 & 0xfffe;\n        pBVar2->btsFlags = uVar9;\nLAB_000aee37:\n        if (wrflag == 0) goto LAB_000aee95;\n        if ((pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0)) goto LAB_000aee99;\n        if ((wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)) goto LAB_000aeea6;\n        pBVar3 = pBVar10->pBtree;\n        if (p == pBVar3) {\n          do {\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          } while (pBVar10->pBtree == pBVar3);\n          psVar14 = pBVar10->pBtree->db;\n        }\n        else {\n          psVar14 = pBVar3->db;\n        }\nLAB_000aee9e:\n        if (psVar14 != (sqlite3 *)0x0) {\n          uVar11 = 0x106;\n          sqlite3ConnectionBlocked(p->db,psVar14);\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar11 = querySharedCacheTableLock(p,1,'\x01');\n      if (uVar11 != 0) goto LAB_000aefad;\n      uVar9 = pBVar2->btsFlags & 0xffef;\n      pBVar2->btsFlags = uVar9;\n      if (pBVar2->nPage == 0) {\n        pBVar2->btsFlags = uVar9 | 0x10;\n      }\nLAB_000aeed7:\n      if (pBVar2->pPage1 == (MemPage *)0x0) goto LAB_000af0af;\n      while( true ) {\n        bVar16 = wrflag != 0;\n        bVar7 = uVar11 == 0 && bVar16;\n        if (uVar11 == 0 && bVar16) break;\nLAB_000af010:\n        bVar7 = bVar16;\n        if (uVar11 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar15 = uVar11 & 0xff;\n          uVar8 = pBVar2->inTransaction;\nLAB_000aef18:\n          if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }\n          if (uVar15 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;\n          psVar14 = pBVar2->db;\n          p_Var5 = (psVar14->busyHandler).xBusyHandler;\n          if ((p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)) goto LAB_000aefad;\n          pvVar6 = (psVar14->busyHandler).pBusyArg;\n          if ((psVar14->busyHandler).bExtraFileArg == '\0') {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          else {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          if (iVar13 == 0) {\n            (psVar14->busyHandler).nBusy = -1;\n            goto LAB_000aefad;\n          }\n          piVar1 = &(psVar14->busyHandler).nBusy;\n          *piVar1 = *piVar1 + 1;\n          if (pBVar2->pPage1 != (MemPage *)0x0) break;\nLAB_000af0af:\n          uVar11 = lockBtree(in_stack_ffffffd4);\n          if (uVar11 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((pBVar2->btsFlags & 1) != 0) {\n        uVar8 = pBVar2->inTransaction;\n        uVar15 = 8;\n        uVar11 = 8;\n        goto LAB_000aef18;\n      }\n      uVar11 = sqlite3PagerBegin(pBVar2->pPager,(uint)(1 < wrflag),\n                                 (uint)(p->db->temp_store == '\x02'));\n      if (uVar11 != 0) {\n        uVar8 = pBVar2->inTransaction;\n        if (uVar11 == 0x205) {\n          if (uVar8 != '\0') goto LAB_000aef55;\n          pMVar12 = pBVar2->pPage1;\n          uVar11 = 5;\n          uVar15 = 5;\n          if (pMVar12 != (MemPage *)0x0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar15 = uVar11 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (pBVar2->nPage == 0) {\n        uVar11 = newDatabase(in_stack_ffffffd4);\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if ((p->inTrans == '\0') &&\n         (pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0')) {\n        (p->lock).eLock = '\x01';\n        (p->lock).pNext = pBVar2->pLock;\n        pBVar2->pLock = &p->lock;\n      }\n      if (!bVar7) {\n        p->inTrans = '\x01';\n        if (pBVar2->inTransaction == '\0') {\n          pBVar2->inTransaction = '\x01';\n        }\n        goto LAB_000af126;\n      }\n      p->inTrans = '\x02';\n      if (pBVar2->inTransaction < 2) {\n        pBVar2->inTransaction = '\x02';\n      }\n      pMVar12 = pBVar2->pPage1;\n      pBVar2->pWriter = p;\n      uVar9 = pBVar2->btsFlags & 0xffbf;\n      if (1 < wrflag) {\n        uVar9 = uVar9 | 0x40;\n      }\n      pBVar2->btsFlags = uVar9;\n      uVar11 = *(uint *)(pMVar12->aData + 0x1c);\n      if (pBVar2->nPage !=\n          (uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18)) {\n        uVar11 = sqlite3PagerWrite(pMVar12->pDbPage);\n        if (uVar11 != 0) goto LAB_000aefad;\n        uVar11 = pBVar2->nPage;\n        *(uint *)(pMVar12->aData + 0x1c) =\n             uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n      }\n      if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }" if (parenthesized_expression "((p->inTrans != '\x01') || (wrflag != 0))" ( (binary_expression "(p->inTrans != '\x01') || (wrflag != 0)" (parenthesized_expression "(p->inTrans != '\x01')" ( (binary_expression "p->inTrans != '\x01'" (field_expression "p->inTrans" identifier -> field_identifier) != (char_literal "'\x01'" ' escape_sequence ')) )) || (parenthesized_expression "(wrflag != 0)" ( (binary_expression "wrflag != 0" identifier != number_literal) ))) )) (compound_statement "{\n      uVar9 = pBVar2->btsFlags;\n      if (((p->db->flags & 0x2000000) == 0) || (pBVar2->pPager->readOnly != '\0')) {\n        if ((uVar9 & 1) == 0) goto LAB_000aee37;\n        uVar11 = 8;\n        if (wrflag != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar9 & 0x80) != 0) {\nLAB_000aee99:\n          psVar14 = pBVar2->pWriter->db;\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar9 = uVar9 & 0xfffe;\n        pBVar2->btsFlags = uVar9;\nLAB_000aee37:\n        if (wrflag == 0) goto LAB_000aee95;\n        if ((pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0)) goto LAB_000aee99;\n        if ((wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)) goto LAB_000aeea6;\n        pBVar3 = pBVar10->pBtree;\n        if (p == pBVar3) {\n          do {\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          } while (pBVar10->pBtree == pBVar3);\n          psVar14 = pBVar10->pBtree->db;\n        }\n        else {\n          psVar14 = pBVar3->db;\n        }\nLAB_000aee9e:\n        if (psVar14 != (sqlite3 *)0x0) {\n          uVar11 = 0x106;\n          sqlite3ConnectionBlocked(p->db,psVar14);\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar11 = querySharedCacheTableLock(p,1,'\x01');\n      if (uVar11 != 0) goto LAB_000aefad;\n      uVar9 = pBVar2->btsFlags & 0xffef;\n      pBVar2->btsFlags = uVar9;\n      if (pBVar2->nPage == 0) {\n        pBVar2->btsFlags = uVar9 | 0x10;\n      }\nLAB_000aeed7:\n      if (pBVar2->pPage1 == (MemPage *)0x0) goto LAB_000af0af;\n      while( true ) {\n        bVar16 = wrflag != 0;\n        bVar7 = uVar11 == 0 && bVar16;\n        if (uVar11 == 0 && bVar16) break;\nLAB_000af010:\n        bVar7 = bVar16;\n        if (uVar11 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar15 = uVar11 & 0xff;\n          uVar8 = pBVar2->inTransaction;\nLAB_000aef18:\n          if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }\n          if (uVar15 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;\n          psVar14 = pBVar2->db;\n          p_Var5 = (psVar14->busyHandler).xBusyHandler;\n          if ((p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)) goto LAB_000aefad;\n          pvVar6 = (psVar14->busyHandler).pBusyArg;\n          if ((psVar14->busyHandler).bExtraFileArg == '\0') {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          else {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          if (iVar13 == 0) {\n            (psVar14->busyHandler).nBusy = -1;\n            goto LAB_000aefad;\n          }\n          piVar1 = &(psVar14->busyHandler).nBusy;\n          *piVar1 = *piVar1 + 1;\n          if (pBVar2->pPage1 != (MemPage *)0x0) break;\nLAB_000af0af:\n          uVar11 = lockBtree(in_stack_ffffffd4);\n          if (uVar11 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((pBVar2->btsFlags & 1) != 0) {\n        uVar8 = pBVar2->inTransaction;\n        uVar15 = 8;\n        uVar11 = 8;\n        goto LAB_000aef18;\n      }\n      uVar11 = sqlite3PagerBegin(pBVar2->pPager,(uint)(1 < wrflag),\n                                 (uint)(p->db->temp_store == '\x02'));\n      if (uVar11 != 0) {\n        uVar8 = pBVar2->inTransaction;\n        if (uVar11 == 0x205) {\n          if (uVar8 != '\0') goto LAB_000aef55;\n          pMVar12 = pBVar2->pPage1;\n          uVar11 = 5;\n          uVar15 = 5;\n          if (pMVar12 != (MemPage *)0x0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar15 = uVar11 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (pBVar2->nPage == 0) {\n        uVar11 = newDatabase(in_stack_ffffffd4);\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if ((p->inTrans == '\0') &&\n         (pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0')) {\n        (p->lock).eLock = '\x01';\n        (p->lock).pNext = pBVar2->pLock;\n        pBVar2->pLock = &p->lock;\n      }\n      if (!bVar7) {\n        p->inTrans = '\x01';\n        if (pBVar2->inTransaction == '\0') {\n          pBVar2->inTransaction = '\x01';\n        }\n        goto LAB_000af126;\n      }\n      p->inTrans = '\x02';\n      if (pBVar2->inTransaction < 2) {\n        pBVar2->inTransaction = '\x02';\n      }\n      pMVar12 = pBVar2->pPage1;\n      pBVar2->pWriter = p;\n      uVar9 = pBVar2->btsFlags & 0xffbf;\n      if (1 < wrflag) {\n        uVar9 = uVar9 | 0x40;\n      }\n      pBVar2->btsFlags = uVar9;\n      uVar11 = *(uint *)(pMVar12->aData + 0x1c);\n      if (pBVar2->nPage !=\n          (uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18)) {\n        uVar11 = sqlite3PagerWrite(pMVar12->pDbPage);\n        if (uVar11 != 0) goto LAB_000aefad;\n        uVar11 = pBVar2->nPage;\n        *(uint *)(pMVar12->aData + 0x1c) =\n             uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n      }\n      if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }" { (expression_statement "uVar9 = pBVar2->btsFlags;" (assignment_expression "uVar9 = pBVar2->btsFlags" identifier = (field_expression "pBVar2->btsFlags" identifier -> field_identifier)) ;) (if_statement "if (((p->db->flags & 0x2000000) == 0) || (pBVar2->pPager->readOnly != '\0')) {\n        if ((uVar9 & 1) == 0) goto LAB_000aee37;\n        uVar11 = 8;\n        if (wrflag != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar9 & 0x80) != 0) {\nLAB_000aee99:\n          psVar14 = pBVar2->pWriter->db;\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar9 = uVar9 & 0xfffe;\n        pBVar2->btsFlags = uVar9;\nLAB_000aee37:\n        if (wrflag == 0) goto LAB_000aee95;\n        if ((pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0)) goto LAB_000aee99;\n        if ((wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)) goto LAB_000aeea6;\n        pBVar3 = pBVar10->pBtree;\n        if (p == pBVar3) {\n          do {\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          } while (pBVar10->pBtree == pBVar3);\n          psVar14 = pBVar10->pBtree->db;\n        }\n        else {\n          psVar14 = pBVar3->db;\n        }\nLAB_000aee9e:\n        if (psVar14 != (sqlite3 *)0x0) {\n          uVar11 = 0x106;\n          sqlite3ConnectionBlocked(p->db,psVar14);\n          goto LAB_000aefad;\n        }\n      }" if (parenthesized_expression "(((p->db->flags & 0x2000000) == 0) || (pBVar2->pPager->readOnly != '\0'))" ( (binary_expression "((p->db->flags & 0x2000000) == 0) || (pBVar2->pPager->readOnly != '\0')" (parenthesized_expression "((p->db->flags & 0x2000000) == 0)" ( (binary_expression "(p->db->flags & 0x2000000) == 0" (parenthesized_expression "(p->db->flags & 0x2000000)" ( (binary_expression "p->db->flags & 0x2000000" (field_expression "p->db->flags" (field_expression "p->db" identifier -> field_identifier) -> field_identifier) & number_literal) )) == number_literal) )) || (parenthesized_expression "(pBVar2->pPager->readOnly != '\0')" ( (binary_expression "pBVar2->pPager->readOnly != '\0'" (field_expression "pBVar2->pPager->readOnly" (field_expression "pBVar2->pPager" identifier -> field_identifier) -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        if ((uVar9 & 1) == 0) goto LAB_000aee37;\n        uVar11 = 8;\n        if (wrflag != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar9 & 0x80) != 0) {\nLAB_000aee99:\n          psVar14 = pBVar2->pWriter->db;\n          goto LAB_000aee9e;\n        }\n      }" { (if_statement "if ((uVar9 & 1) == 0) goto LAB_000aee37;" if (parenthesized_expression "((uVar9 & 1) == 0)" ( (binary_expression "(uVar9 & 1) == 0" (parenthesized_expression "(uVar9 & 1)" ( (binary_expression "uVar9 & 1" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_000aee37;" goto statement_identifier ;)) (expression_statement "uVar11 = 8;" (assignment_expression "uVar11 = 8" identifier = number_literal) ;) (if_statement "if (wrflag != 0) goto LAB_000aefad;" if (parenthesized_expression "(wrflag != 0)" ( (binary_expression "wrflag != 0" identifier != number_literal) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (labeled_statement "LAB_000aee95:\n        if ((uVar9 & 0x80) != 0) {\nLAB_000aee99:\n          psVar14 = pBVar2->pWriter->db;\n          goto LAB_000aee9e;\n        }" statement_identifier : (if_statement "if ((uVar9 & 0x80) != 0) {\nLAB_000aee99:\n          psVar14 = pBVar2->pWriter->db;\n          goto LAB_000aee9e;\n        }" if (parenthesized_expression "((uVar9 & 0x80) != 0)" ( (binary_expression "(uVar9 & 0x80) != 0" (parenthesized_expression "(uVar9 & 0x80)" ( (binary_expression "uVar9 & 0x80" identifier & number_literal) )) != number_literal) )) (compound_statement "{\nLAB_000aee99:\n          psVar14 = pBVar2->pWriter->db;\n          goto LAB_000aee9e;\n        }" { (labeled_statement "LAB_000aee99:\n          psVar14 = pBVar2->pWriter->db;" statement_identifier : (expression_statement "psVar14 = pBVar2->pWriter->db;" (assignment_expression "psVar14 = pBVar2->pWriter->db" identifier = (field_expression "pBVar2->pWriter->db" (field_expression "pBVar2->pWriter" identifier -> field_identifier) -> field_identifier)) ;)) (goto_statement "goto LAB_000aee9e;" goto statement_identifier ;) }))) }) (else_clause "else {\n        uVar9 = uVar9 & 0xfffe;\n        pBVar2->btsFlags = uVar9;\nLAB_000aee37:\n        if (wrflag == 0) goto LAB_000aee95;\n        if ((pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0)) goto LAB_000aee99;\n        if ((wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)) goto LAB_000aeea6;\n        pBVar3 = pBVar10->pBtree;\n        if (p == pBVar3) {\n          do {\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          } while (pBVar10->pBtree == pBVar3);\n          psVar14 = pBVar10->pBtree->db;\n        }\n        else {\n          psVar14 = pBVar3->db;\n        }\nLAB_000aee9e:\n        if (psVar14 != (sqlite3 *)0x0) {\n          uVar11 = 0x106;\n          sqlite3ConnectionBlocked(p->db,psVar14);\n          goto LAB_000aefad;\n        }\n      }" else (compound_statement "{\n        uVar9 = uVar9 & 0xfffe;\n        pBVar2->btsFlags = uVar9;\nLAB_000aee37:\n        if (wrflag == 0) goto LAB_000aee95;\n        if ((pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0)) goto LAB_000aee99;\n        if ((wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)) goto LAB_000aeea6;\n        pBVar3 = pBVar10->pBtree;\n        if (p == pBVar3) {\n          do {\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          } while (pBVar10->pBtree == pBVar3);\n          psVar14 = pBVar10->pBtree->db;\n        }\n        else {\n          psVar14 = pBVar3->db;\n        }\nLAB_000aee9e:\n        if (psVar14 != (sqlite3 *)0x0) {\n          uVar11 = 0x106;\n          sqlite3ConnectionBlocked(p->db,psVar14);\n          goto LAB_000aefad;\n        }\n      }" { (expression_statement "uVar9 = uVar9 & 0xfffe;" (assignment_expression "uVar9 = uVar9 & 0xfffe" identifier = (binary_expression "uVar9 & 0xfffe" identifier & number_literal)) ;) (expression_statement "pBVar2->btsFlags = uVar9;" (assignment_expression "pBVar2->btsFlags = uVar9" (field_expression "pBVar2->btsFlags" identifier -> field_identifier) = identifier) ;) (labeled_statement "LAB_000aee37:\n        if (wrflag == 0) goto LAB_000aee95;" statement_identifier : (if_statement "if (wrflag == 0) goto LAB_000aee95;" if (parenthesized_expression "(wrflag == 0)" ( (binary_expression "wrflag == 0" identifier == number_literal) )) (goto_statement "goto LAB_000aee95;" goto statement_identifier ;))) (if_statement "if ((pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0)) goto LAB_000aee99;" if (parenthesized_expression "((pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0))" ( (binary_expression "(pBVar2->inTransaction == '\x02') || ((uVar9 & 0x80) != 0)" (parenthesized_expression "(pBVar2->inTransaction == '\x02')" ( (binary_expression "pBVar2->inTransaction == '\x02'" (field_expression "pBVar2->inTransaction" identifier -> field_identifier) == (char_literal "'\x02'" ' escape_sequence ')) )) || (parenthesized_expression "((uVar9 & 0x80) != 0)" ( (binary_expression "(uVar9 & 0x80) != 0" (parenthesized_expression "(uVar9 & 0x80)" ( (binary_expression "uVar9 & 0x80" identifier & number_literal) )) != number_literal) ))) )) (goto_statement "goto LAB_000aee99;" goto statement_identifier ;)) (if_statement "if ((wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)) goto LAB_000aeea6;" if (parenthesized_expression "((wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0))" ( (binary_expression "(wrflag < 2) || (pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)" (parenthesized_expression "(wrflag < 2)" ( (binary_expression "wrflag < 2" identifier < number_literal) )) || (parenthesized_expression "(pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0)" ( (comma_expression "pBVar10 = pBVar2->pLock, pBVar10 == (BtLock *)0x0" (assignment_expression "pBVar10 = pBVar2->pLock" identifier = (field_expression "pBVar2->pLock" identifier -> field_identifier)) , (binary_expression "pBVar10 == (BtLock *)0x0" identifier == (cast_expression "(BtLock *)0x0" ( (type_descriptor "BtLock *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_000aeea6;" goto statement_identifier ;)) (expression_statement "pBVar3 = pBVar10->pBtree;" (assignment_expression "pBVar3 = pBVar10->pBtree" identifier = (field_expression "pBVar10->pBtree" identifier -> field_identifier)) ;) (if_statement "if (p == pBVar3) {\n          do {\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          } while (pBVar10->pBtree == pBVar3);\n          psVar14 = pBVar10->pBtree->db;\n        }\n        else {\n          psVar14 = pBVar3->db;\n        }" if (parenthesized_expression "(p == pBVar3)" ( (binary_expression "p == pBVar3" identifier == identifier) )) (compound_statement "{\n          do {\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          } while (pBVar10->pBtree == pBVar3);\n          psVar14 = pBVar10->pBtree->db;\n        }" { (do_statement "do {\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          } while (pBVar10->pBtree == pBVar3);" do (compound_statement "{\n            pBVar10 = pBVar10->pNext;\n            if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;\n          }" { (expression_statement "pBVar10 = pBVar10->pNext;" (assignment_expression "pBVar10 = pBVar10->pNext" identifier = (field_expression "pBVar10->pNext" identifier -> field_identifier)) ;) (if_statement "if (pBVar10 == (BtLock *)0x0) goto LAB_000aeea6;" if (parenthesized_expression "(pBVar10 == (BtLock *)0x0)" ( (binary_expression "pBVar10 == (BtLock *)0x0" identifier == (cast_expression "(BtLock *)0x0" ( (type_descriptor "BtLock *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000aeea6;" goto statement_identifier ;)) }) while (parenthesized_expression "(pBVar10->pBtree == pBVar3)" ( (binary_expression "pBVar10->pBtree == pBVar3" (field_expression "pBVar10->pBtree" identifier -> field_identifier) == identifier) )) ;) (expression_statement "psVar14 = pBVar10->pBtree->db;" (assignment_expression "psVar14 = pBVar10->pBtree->db" identifier = (field_expression "pBVar10->pBtree->db" (field_expression "pBVar10->pBtree" identifier -> field_identifier) -> field_identifier)) ;) }) (else_clause "else {\n          psVar14 = pBVar3->db;\n        }" else (compound_statement "{\n          psVar14 = pBVar3->db;\n        }" { (expression_statement "psVar14 = pBVar3->db;" (assignment_expression "psVar14 = pBVar3->db" identifier = (field_expression "pBVar3->db" identifier -> field_identifier)) ;) }))) (labeled_statement "LAB_000aee9e:\n        if (psVar14 != (sqlite3 *)0x0) {\n          uVar11 = 0x106;\n          sqlite3ConnectionBlocked(p->db,psVar14);\n          goto LAB_000aefad;\n        }" statement_identifier : (if_statement "if (psVar14 != (sqlite3 *)0x0) {\n          uVar11 = 0x106;\n          sqlite3ConnectionBlocked(p->db,psVar14);\n          goto LAB_000aefad;\n        }" if (parenthesized_expression "(psVar14 != (sqlite3 *)0x0)" ( (binary_expression "psVar14 != (sqlite3 *)0x0" identifier != (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          uVar11 = 0x106;\n          sqlite3ConnectionBlocked(p->db,psVar14);\n          goto LAB_000aefad;\n        }" { (expression_statement "uVar11 = 0x106;" (assignment_expression "uVar11 = 0x106" identifier = number_literal) ;) (expression_statement "sqlite3ConnectionBlocked(p->db,psVar14);" (call_expression "sqlite3ConnectionBlocked(p->db,psVar14)" identifier (argument_list "(p->db,psVar14)" ( (field_expression "p->db" identifier -> field_identifier) , identifier ))) ;) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;) }))) }))) (labeled_statement "LAB_000aeea6:\n      uVar11 = querySharedCacheTableLock(p,1,'\x01');" statement_identifier : (expression_statement "uVar11 = querySharedCacheTableLock(p,1,'\x01');" (assignment_expression "uVar11 = querySharedCacheTableLock(p,1,'\x01')" identifier = (call_expression "querySharedCacheTableLock(p,1,'\x01')" identifier (argument_list "(p,1,'\x01')" ( identifier , number_literal , (char_literal "'\x01'" ' escape_sequence ') )))) ;)) (if_statement "if (uVar11 != 0) goto LAB_000aefad;" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (expression_statement "uVar9 = pBVar2->btsFlags & 0xffef;" (assignment_expression "uVar9 = pBVar2->btsFlags & 0xffef" identifier = (binary_expression "pBVar2->btsFlags & 0xffef" (field_expression "pBVar2->btsFlags" identifier -> field_identifier) & number_literal)) ;) (expression_statement "pBVar2->btsFlags = uVar9;" (assignment_expression "pBVar2->btsFlags = uVar9" (field_expression "pBVar2->btsFlags" identifier -> field_identifier) = identifier) ;) (if_statement "if (pBVar2->nPage == 0) {\n        pBVar2->btsFlags = uVar9 | 0x10;\n      }" if (parenthesized_expression "(pBVar2->nPage == 0)" ( (binary_expression "pBVar2->nPage == 0" (field_expression "pBVar2->nPage" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n        pBVar2->btsFlags = uVar9 | 0x10;\n      }" { (expression_statement "pBVar2->btsFlags = uVar9 | 0x10;" (assignment_expression "pBVar2->btsFlags = uVar9 | 0x10" (field_expression "pBVar2->btsFlags" identifier -> field_identifier) = (binary_expression "uVar9 | 0x10" identifier | number_literal)) ;) })) (labeled_statement "LAB_000aeed7:\n      if (pBVar2->pPage1 == (MemPage *)0x0) goto LAB_000af0af;" statement_identifier : (if_statement "if (pBVar2->pPage1 == (MemPage *)0x0) goto LAB_000af0af;" if (parenthesized_expression "(pBVar2->pPage1 == (MemPage *)0x0)" ( (binary_expression "pBVar2->pPage1 == (MemPage *)0x0" (field_expression "pBVar2->pPage1" identifier -> field_identifier) == (cast_expression "(MemPage *)0x0" ( (type_descriptor "MemPage *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000af0af;" goto statement_identifier ;))) (while_statement "while( true ) {\n        bVar16 = wrflag != 0;\n        bVar7 = uVar11 == 0 && bVar16;\n        if (uVar11 == 0 && bVar16) break;\nLAB_000af010:\n        bVar7 = bVar16;\n        if (uVar11 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar15 = uVar11 & 0xff;\n          uVar8 = pBVar2->inTransaction;\nLAB_000aef18:\n          if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }\n          if (uVar15 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;\n          psVar14 = pBVar2->db;\n          p_Var5 = (psVar14->busyHandler).xBusyHandler;\n          if ((p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)) goto LAB_000aefad;\n          pvVar6 = (psVar14->busyHandler).pBusyArg;\n          if ((psVar14->busyHandler).bExtraFileArg == '\0') {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          else {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          if (iVar13 == 0) {\n            (psVar14->busyHandler).nBusy = -1;\n            goto LAB_000aefad;\n          }\n          piVar1 = &(psVar14->busyHandler).nBusy;\n          *piVar1 = *piVar1 + 1;\n          if (pBVar2->pPage1 != (MemPage *)0x0) break;\nLAB_000af0af:\n          uVar11 = lockBtree(in_stack_ffffffd4);\n          if (uVar11 == 0) goto LAB_000aeed7;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        bVar16 = wrflag != 0;\n        bVar7 = uVar11 == 0 && bVar16;\n        if (uVar11 == 0 && bVar16) break;\nLAB_000af010:\n        bVar7 = bVar16;\n        if (uVar11 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar15 = uVar11 & 0xff;\n          uVar8 = pBVar2->inTransaction;\nLAB_000aef18:\n          if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }\n          if (uVar15 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;\n          psVar14 = pBVar2->db;\n          p_Var5 = (psVar14->busyHandler).xBusyHandler;\n          if ((p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)) goto LAB_000aefad;\n          pvVar6 = (psVar14->busyHandler).pBusyArg;\n          if ((psVar14->busyHandler).bExtraFileArg == '\0') {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          else {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          if (iVar13 == 0) {\n            (psVar14->busyHandler).nBusy = -1;\n            goto LAB_000aefad;\n          }\n          piVar1 = &(psVar14->busyHandler).nBusy;\n          *piVar1 = *piVar1 + 1;\n          if (pBVar2->pPage1 != (MemPage *)0x0) break;\nLAB_000af0af:\n          uVar11 = lockBtree(in_stack_ffffffd4);\n          if (uVar11 == 0) goto LAB_000aeed7;\n        }\n      }" { (expression_statement "bVar16 = wrflag != 0;" (assignment_expression "bVar16 = wrflag != 0" identifier = (binary_expression "wrflag != 0" identifier != number_literal)) ;) (expression_statement "bVar7 = uVar11 == 0 && bVar16;" (assignment_expression "bVar7 = uVar11 == 0 && bVar16" identifier = (binary_expression "uVar11 == 0 && bVar16" (binary_expression "uVar11 == 0" identifier == number_literal) && identifier)) ;) (if_statement "if (uVar11 == 0 && bVar16) break;" if (parenthesized_expression "(uVar11 == 0 && bVar16)" ( (binary_expression "uVar11 == 0 && bVar16" (binary_expression "uVar11 == 0" identifier == number_literal) && identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_000af010:\n        bVar7 = bVar16;" statement_identifier : (expression_statement "bVar7 = bVar16;" (assignment_expression "bVar7 = bVar16" identifier = identifier) ;)) (if_statement "if (uVar11 == 0) goto LAB_000af018;" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000af018;" goto statement_identifier ;)) (while_statement "while( true ) {\n          uVar15 = uVar11 & 0xff;\n          uVar8 = pBVar2->inTransaction;\nLAB_000aef18:\n          if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }\n          if (uVar15 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;\n          psVar14 = pBVar2->db;\n          p_Var5 = (psVar14->busyHandler).xBusyHandler;\n          if ((p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)) goto LAB_000aefad;\n          pvVar6 = (psVar14->busyHandler).pBusyArg;\n          if ((psVar14->busyHandler).bExtraFileArg == '\0') {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          else {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          if (iVar13 == 0) {\n            (psVar14->busyHandler).nBusy = -1;\n            goto LAB_000aefad;\n          }\n          piVar1 = &(psVar14->busyHandler).nBusy;\n          *piVar1 = *piVar1 + 1;\n          if (pBVar2->pPage1 != (MemPage *)0x0) break;\nLAB_000af0af:\n          uVar11 = lockBtree(in_stack_ffffffd4);\n          if (uVar11 == 0) goto LAB_000aeed7;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          uVar15 = uVar11 & 0xff;\n          uVar8 = pBVar2->inTransaction;\nLAB_000aef18:\n          if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }\n          if (uVar15 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;\n          psVar14 = pBVar2->db;\n          p_Var5 = (psVar14->busyHandler).xBusyHandler;\n          if ((p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)) goto LAB_000aefad;\n          pvVar6 = (psVar14->busyHandler).pBusyArg;\n          if ((psVar14->busyHandler).bExtraFileArg == '\0') {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          else {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          if (iVar13 == 0) {\n            (psVar14->busyHandler).nBusy = -1;\n            goto LAB_000aefad;\n          }\n          piVar1 = &(psVar14->busyHandler).nBusy;\n          *piVar1 = *piVar1 + 1;\n          if (pBVar2->pPage1 != (MemPage *)0x0) break;\nLAB_000af0af:\n          uVar11 = lockBtree(in_stack_ffffffd4);\n          if (uVar11 == 0) goto LAB_000aeed7;\n        }" { (expression_statement "uVar15 = uVar11 & 0xff;" (assignment_expression "uVar15 = uVar11 & 0xff" identifier = (binary_expression "uVar11 & 0xff" identifier & number_literal)) ;) (expression_statement "uVar8 = pBVar2->inTransaction;" (assignment_expression "uVar8 = pBVar2->inTransaction" identifier = (field_expression "pBVar2->inTransaction" identifier -> field_identifier)) ;) (labeled_statement "LAB_000aef18:\n          if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }" statement_identifier : (if_statement "if ((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)) {\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }" if (parenthesized_expression "((uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0))" ( (binary_expression "(uVar8 == '\0') && (pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)" (parenthesized_expression "(uVar8 == '\0')" ( (binary_expression "uVar8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0)" ( (comma_expression "pMVar12 = pBVar2->pPage1, pMVar12 != (MemPage *)0x0" (assignment_expression "pMVar12 = pBVar2->pPage1" identifier = (field_expression "pBVar2->pPage1" identifier -> field_identifier)) , (binary_expression "pMVar12 != (MemPage *)0x0" identifier != (cast_expression "(MemPage *)0x0" ( (type_descriptor "MemPage *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\nLAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;\n            pPVar4 = pMVar12->pDbPage->pPager;\n            sqlite3PcacheRelease(pMVar12->pDbPage);\n            if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }\n          }" { (labeled_statement "LAB_000aef23:\n            pBVar2->pPage1 = (MemPage *)0x0;" statement_identifier : (expression_statement "pBVar2->pPage1 = (MemPage *)0x0;" (assignment_expression "pBVar2->pPage1 = (MemPage *)0x0" (field_expression "pBVar2->pPage1" identifier -> field_identifier) = (cast_expression "(MemPage *)0x0" ( (type_descriptor "MemPage *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "pPVar4 = pMVar12->pDbPage->pPager;" (assignment_expression "pPVar4 = pMVar12->pDbPage->pPager" identifier = (field_expression "pMVar12->pDbPage->pPager" (field_expression "pMVar12->pDbPage" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "sqlite3PcacheRelease(pMVar12->pDbPage);" (call_expression "sqlite3PcacheRelease(pMVar12->pDbPage)" identifier (argument_list "(pMVar12->pDbPage)" ( (field_expression "pMVar12->pDbPage" identifier -> field_identifier) ))) ;) (if_statement "if (pPVar4->pPCache->nRefSum == 0) {\n              pagerUnlockAndRollback(pPVar4);\n            }" if (parenthesized_expression "(pPVar4->pPCache->nRefSum == 0)" ( (binary_expression "pPVar4->pPCache->nRefSum == 0" (field_expression "pPVar4->pPCache->nRefSum" (field_expression "pPVar4->pPCache" identifier -> field_identifier) -> field_identifier) == number_literal) )) (compound_statement "{\n              pagerUnlockAndRollback(pPVar4);\n            }" { (expression_statement "pagerUnlockAndRollback(pPVar4);" (call_expression "pagerUnlockAndRollback(pPVar4)" identifier (argument_list "(pPVar4)" ( identifier ))) ;) })) }))) (if_statement "if (uVar15 != 5) goto LAB_000aefad;" if (parenthesized_expression "(uVar15 != 5)" ( (binary_expression "uVar15 != 5" identifier != number_literal) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (labeled_statement "LAB_000aef55:\n          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;" statement_identifier : (if_statement "if (pBVar2->inTransaction != '\0') goto LAB_000aefad;" if (parenthesized_expression "(pBVar2->inTransaction != '\0')" ( (binary_expression "pBVar2->inTransaction != '\0'" (field_expression "pBVar2->inTransaction" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;))) (expression_statement "psVar14 = pBVar2->db;" (assignment_expression "psVar14 = pBVar2->db" identifier = (field_expression "pBVar2->db" identifier -> field_identifier)) ;) (expression_statement "p_Var5 = (psVar14->busyHandler).xBusyHandler;" (assignment_expression "p_Var5 = (psVar14->busyHandler).xBusyHandler" identifier = (field_expression "(psVar14->busyHandler).xBusyHandler" (parenthesized_expression "(psVar14->busyHandler)" ( (field_expression "psVar14->busyHandler" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if ((p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)) goto LAB_000aefad;" if (parenthesized_expression "((p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0))" ( (binary_expression "(p_Var5 == (_func_int_void_ptr_int *)0x0) ||\n             (iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)" (parenthesized_expression "(p_Var5 == (_func_int_void_ptr_int *)0x0)" ( (binary_expression "p_Var5 == (_func_int_void_ptr_int *)0x0" identifier == (cast_expression "(_func_int_void_ptr_int *)0x0" ( (type_descriptor "_func_int_void_ptr_int *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0)" ( (comma_expression "iVar13 = (psVar14->busyHandler).nBusy, iVar13 < 0" (assignment_expression "iVar13 = (psVar14->busyHandler).nBusy" identifier = (field_expression "(psVar14->busyHandler).nBusy" (parenthesized_expression "(psVar14->busyHandler)" ( (field_expression "psVar14->busyHandler" identifier -> field_identifier) )) . field_identifier)) , (binary_expression "iVar13 < 0" identifier < number_literal)) ))) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (expression_statement "pvVar6 = (psVar14->busyHandler).pBusyArg;" (assignment_expression "pvVar6 = (psVar14->busyHandler).pBusyArg" identifier = (field_expression "(psVar14->busyHandler).pBusyArg" (parenthesized_expression "(psVar14->busyHandler)" ( (field_expression "psVar14->busyHandler" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if ((psVar14->busyHandler).bExtraFileArg == '\0') {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }\n          else {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }" if (parenthesized_expression "((psVar14->busyHandler).bExtraFileArg == '\0')" ( (binary_expression "(psVar14->busyHandler).bExtraFileArg == '\0'" (field_expression "(psVar14->busyHandler).bExtraFileArg" (parenthesized_expression "(psVar14->busyHandler)" ( (field_expression "psVar14->busyHandler" identifier -> field_identifier) )) . field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }" { (expression_statement "iVar13 = (*p_Var5)(pvVar6,iVar13);" (assignment_expression "iVar13 = (*p_Var5)(pvVar6,iVar13)" identifier = (call_expression "(*p_Var5)(pvVar6,iVar13)" (parenthesized_expression "(*p_Var5)" ( (pointer_expression "*p_Var5" * identifier) )) (argument_list "(pvVar6,iVar13)" ( identifier , identifier )))) ;) }) (else_clause "else {\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }" else (compound_statement "{\n            iVar13 = (*p_Var5)(pvVar6,iVar13);\n          }" { (expression_statement "iVar13 = (*p_Var5)(pvVar6,iVar13);" (assignment_expression "iVar13 = (*p_Var5)(pvVar6,iVar13)" identifier = (call_expression "(*p_Var5)(pvVar6,iVar13)" (parenthesized_expression "(*p_Var5)" ( (pointer_expression "*p_Var5" * identifier) )) (argument_list "(pvVar6,iVar13)" ( identifier , identifier )))) ;) }))) (if_statement "if (iVar13 == 0) {\n            (psVar14->busyHandler).nBusy = -1;\n            goto LAB_000aefad;\n          }" if (parenthesized_expression "(iVar13 == 0)" ( (binary_expression "iVar13 == 0" identifier == number_literal) )) (compound_statement "{\n            (psVar14->busyHandler).nBusy = -1;\n            goto LAB_000aefad;\n          }" { (expression_statement "(psVar14->busyHandler).nBusy = -1;" (assignment_expression "(psVar14->busyHandler).nBusy = -1" (field_expression "(psVar14->busyHandler).nBusy" (parenthesized_expression "(psVar14->busyHandler)" ( (field_expression "psVar14->busyHandler" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;) })) (expression_statement "piVar1 = &(psVar14->busyHandler).nBusy;" (assignment_expression "piVar1 = &(psVar14->busyHandler).nBusy" identifier = (pointer_expression "&(psVar14->busyHandler).nBusy" & (field_expression "(psVar14->busyHandler).nBusy" (parenthesized_expression "(psVar14->busyHandler)" ( (field_expression "psVar14->busyHandler" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (pBVar2->pPage1 != (MemPage *)0x0) break;" if (parenthesized_expression "(pBVar2->pPage1 != (MemPage *)0x0)" ( (binary_expression "pBVar2->pPage1 != (MemPage *)0x0" (field_expression "pBVar2->pPage1" identifier -> field_identifier) != (cast_expression "(MemPage *)0x0" ( (type_descriptor "MemPage *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (labeled_statement "LAB_000af0af:\n          uVar11 = lockBtree(in_stack_ffffffd4);" statement_identifier : (expression_statement "uVar11 = lockBtree(in_stack_ffffffd4);" (assignment_expression "uVar11 = lockBtree(in_stack_ffffffd4)" identifier = (call_expression "lockBtree(in_stack_ffffffd4)" identifier (argument_list "(in_stack_ffffffd4)" ( identifier )))) ;)) (if_statement "if (uVar11 == 0) goto LAB_000aeed7;" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000aeed7;" goto statement_identifier ;)) })) })) (if_statement "if ((pBVar2->btsFlags & 1) != 0) {\n        uVar8 = pBVar2->inTransaction;\n        uVar15 = 8;\n        uVar11 = 8;\n        goto LAB_000aef18;\n      }" if (parenthesized_expression "((pBVar2->btsFlags & 1) != 0)" ( (binary_expression "(pBVar2->btsFlags & 1) != 0" (parenthesized_expression "(pBVar2->btsFlags & 1)" ( (binary_expression "pBVar2->btsFlags & 1" (field_expression "pBVar2->btsFlags" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n        uVar8 = pBVar2->inTransaction;\n        uVar15 = 8;\n        uVar11 = 8;\n        goto LAB_000aef18;\n      }" { (expression_statement "uVar8 = pBVar2->inTransaction;" (assignment_expression "uVar8 = pBVar2->inTransaction" identifier = (field_expression "pBVar2->inTransaction" identifier -> field_identifier)) ;) (expression_statement "uVar15 = 8;" (assignment_expression "uVar15 = 8" identifier = number_literal) ;) (expression_statement "uVar11 = 8;" (assignment_expression "uVar11 = 8" identifier = number_literal) ;) (goto_statement "goto LAB_000aef18;" goto statement_identifier ;) })) (expression_statement "uVar11 = sqlite3PagerBegin(pBVar2->pPager,(uint)(1 < wrflag),\n                                 (uint)(p->db->temp_store == '\x02'));" (assignment_expression "uVar11 = sqlite3PagerBegin(pBVar2->pPager,(uint)(1 < wrflag),\n                                 (uint)(p->db->temp_store == '\x02'))" identifier = (call_expression "sqlite3PagerBegin(pBVar2->pPager,(uint)(1 < wrflag),\n                                 (uint)(p->db->temp_store == '\x02'))" identifier (argument_list "(pBVar2->pPager,(uint)(1 < wrflag),\n                                 (uint)(p->db->temp_store == '\x02'))" ( (field_expression "pBVar2->pPager" identifier -> field_identifier) , (call_expression "(uint)(1 < wrflag)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(1 < wrflag)" ( (binary_expression "1 < wrflag" number_literal < identifier) ))) , (call_expression "(uint)(p->db->temp_store == '\x02')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(p->db->temp_store == '\x02')" ( (binary_expression "p->db->temp_store == '\x02'" (field_expression "p->db->temp_store" (field_expression "p->db" identifier -> field_identifier) -> field_identifier) == (char_literal "'\x02'" ' escape_sequence ')) ))) )))) ;) (if_statement "if (uVar11 != 0) {\n        uVar8 = pBVar2->inTransaction;\n        if (uVar11 == 0x205) {\n          if (uVar8 != '\0') goto LAB_000aef55;\n          pMVar12 = pBVar2->pPage1;\n          uVar11 = 5;\n          uVar15 = 5;\n          if (pMVar12 != (MemPage *)0x0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar15 = uVar11 & 0xff;\n        goto LAB_000aef18;\n      }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar8 = pBVar2->inTransaction;\n        if (uVar11 == 0x205) {\n          if (uVar8 != '\0') goto LAB_000aef55;\n          pMVar12 = pBVar2->pPage1;\n          uVar11 = 5;\n          uVar15 = 5;\n          if (pMVar12 != (MemPage *)0x0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar15 = uVar11 & 0xff;\n        goto LAB_000aef18;\n      }" { (expression_statement "uVar8 = pBVar2->inTransaction;" (assignment_expression "uVar8 = pBVar2->inTransaction" identifier = (field_expression "pBVar2->inTransaction" identifier -> field_identifier)) ;) (if_statement "if (uVar11 == 0x205) {\n          if (uVar8 != '\0') goto LAB_000aef55;\n          pMVar12 = pBVar2->pPage1;\n          uVar11 = 5;\n          uVar15 = 5;\n          if (pMVar12 != (MemPage *)0x0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }" if (parenthesized_expression "(uVar11 == 0x205)" ( (binary_expression "uVar11 == 0x205" identifier == number_literal) )) (compound_statement "{\n          if (uVar8 != '\0') goto LAB_000aef55;\n          pMVar12 = pBVar2->pPage1;\n          uVar11 = 5;\n          uVar15 = 5;\n          if (pMVar12 != (MemPage *)0x0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }" { (if_statement "if (uVar8 != '\0') goto LAB_000aef55;" if (parenthesized_expression "(uVar8 != '\0')" ( (binary_expression "uVar8 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000aef55;" goto statement_identifier ;)) (expression_statement "pMVar12 = pBVar2->pPage1;" (assignment_expression "pMVar12 = pBVar2->pPage1" identifier = (field_expression "pBVar2->pPage1" identifier -> field_identifier)) ;) (expression_statement "uVar11 = 5;" (assignment_expression "uVar11 = 5" identifier = number_literal) ;) (expression_statement "uVar15 = 5;" (assignment_expression "uVar15 = 5" identifier = number_literal) ;) (if_statement "if (pMVar12 != (MemPage *)0x0) goto LAB_000aef23;" if (parenthesized_expression "(pMVar12 != (MemPage *)0x0)" ( (binary_expression "pMVar12 != (MemPage *)0x0" identifier != (cast_expression "(MemPage *)0x0" ( (type_descriptor "MemPage *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000aef23;" goto statement_identifier ;)) (goto_statement "goto LAB_000aef55;" goto statement_identifier ;) })) (expression_statement "uVar15 = uVar11 & 0xff;" (assignment_expression "uVar15 = uVar11 & 0xff" identifier = (binary_expression "uVar11 & 0xff" identifier & number_literal)) ;) (goto_statement "goto LAB_000aef18;" goto statement_identifier ;) })) (if_statement "if (pBVar2->nPage == 0) {\n        uVar11 = newDatabase(in_stack_ffffffd4);\n        goto LAB_000af010;\n      }" if (parenthesized_expression "(pBVar2->nPage == 0)" ( (binary_expression "pBVar2->nPage == 0" (field_expression "pBVar2->nPage" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n        uVar11 = newDatabase(in_stack_ffffffd4);\n        goto LAB_000af010;\n      }" { (expression_statement "uVar11 = newDatabase(in_stack_ffffffd4);" (assignment_expression "uVar11 = newDatabase(in_stack_ffffffd4)" identifier = (call_expression "newDatabase(in_stack_ffffffd4)" identifier (argument_list "(in_stack_ffffffd4)" ( identifier )))) ;) (goto_statement "goto LAB_000af010;" goto statement_identifier ;) })) (labeled_statement "LAB_000af018:\n      if ((p->inTrans == '\0') &&\n         (pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0')) {\n        (p->lock).eLock = '\x01';\n        (p->lock).pNext = pBVar2->pLock;\n        pBVar2->pLock = &p->lock;\n      }" statement_identifier : (if_statement "if ((p->inTrans == '\0') &&\n         (pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0')) {\n        (p->lock).eLock = '\x01';\n        (p->lock).pNext = pBVar2->pLock;\n        pBVar2->pLock = &p->lock;\n      }" if (parenthesized_expression "((p->inTrans == '\0') &&\n         (pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0'))" ( (binary_expression "(p->inTrans == '\0') &&\n         (pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0')" (parenthesized_expression "(p->inTrans == '\0')" ( (binary_expression "p->inTrans == '\0'" (field_expression "p->inTrans" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0')" ( (comma_expression "pBVar2->nTransaction = pBVar2->nTransaction + 1, p->sharable != '\0'" (assignment_expression "pBVar2->nTransaction = pBVar2->nTransaction + 1" (field_expression "pBVar2->nTransaction" identifier -> field_identifier) = (binary_expression "pBVar2->nTransaction + 1" (field_expression "pBVar2->nTransaction" identifier -> field_identifier) + number_literal)) , (binary_expression "p->sharable != '\0'" (field_expression "p->sharable" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n        (p->lock).eLock = '\x01';\n        (p->lock).pNext = pBVar2->pLock;\n        pBVar2->pLock = &p->lock;\n      }" { (expression_statement "(p->lock).eLock = '\x01';" (assignment_expression "(p->lock).eLock = '\x01'" (field_expression "(p->lock).eLock" (parenthesized_expression "(p->lock)" ( (field_expression "p->lock" identifier -> field_identifier) )) . field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "(p->lock).pNext = pBVar2->pLock;" (assignment_expression "(p->lock).pNext = pBVar2->pLock" (field_expression "(p->lock).pNext" (parenthesized_expression "(p->lock)" ( (field_expression "p->lock" identifier -> field_identifier) )) . field_identifier) = (field_expression "pBVar2->pLock" identifier -> field_identifier)) ;) (expression_statement "pBVar2->pLock = &p->lock;" (assignment_expression "pBVar2->pLock = &p->lock" (field_expression "pBVar2->pLock" identifier -> field_identifier) = (pointer_expression "&p->lock" & (field_expression "p->lock" identifier -> field_identifier))) ;) }))) (if_statement "if (!bVar7) {\n        p->inTrans = '\x01';\n        if (pBVar2->inTransaction == '\0') {\n          pBVar2->inTransaction = '\x01';\n        }\n        goto LAB_000af126;\n      }" if (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) )) (compound_statement "{\n        p->inTrans = '\x01';\n        if (pBVar2->inTransaction == '\0') {\n          pBVar2->inTransaction = '\x01';\n        }\n        goto LAB_000af126;\n      }" { (expression_statement "p->inTrans = '\x01';" (assignment_expression "p->inTrans = '\x01'" (field_expression "p->inTrans" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (if_statement "if (pBVar2->inTransaction == '\0') {\n          pBVar2->inTransaction = '\x01';\n        }" if (parenthesized_expression "(pBVar2->inTransaction == '\0')" ( (binary_expression "pBVar2->inTransaction == '\0'" (field_expression "pBVar2->inTransaction" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          pBVar2->inTransaction = '\x01';\n        }" { (expression_statement "pBVar2->inTransaction = '\x01';" (assignment_expression "pBVar2->inTransaction = '\x01'" (field_expression "pBVar2->inTransaction" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) })) (goto_statement "goto LAB_000af126;" goto statement_identifier ;) })) (expression_statement "p->inTrans = '\x02';" (assignment_expression "p->inTrans = '\x02'" (field_expression "p->inTrans" identifier -> field_identifier) = (char_literal "'\x02'" ' escape_sequence ')) ;) (if_statement "if (pBVar2->inTransaction < 2) {\n        pBVar2->inTransaction = '\x02';\n      }" if (parenthesized_expression "(pBVar2->inTransaction < 2)" ( (binary_expression "pBVar2->inTransaction < 2" (field_expression "pBVar2->inTransaction" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n        pBVar2->inTransaction = '\x02';\n      }" { (expression_statement "pBVar2->inTransaction = '\x02';" (assignment_expression "pBVar2->inTransaction = '\x02'" (field_expression "pBVar2->inTransaction" identifier -> field_identifier) = (char_literal "'\x02'" ' escape_sequence ')) ;) })) (expression_statement "pMVar12 = pBVar2->pPage1;" (assignment_expression "pMVar12 = pBVar2->pPage1" identifier = (field_expression "pBVar2->pPage1" identifier -> field_identifier)) ;) (expression_statement "pBVar2->pWriter = p;" (assignment_expression "pBVar2->pWriter = p" (field_expression "pBVar2->pWriter" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar9 = pBVar2->btsFlags & 0xffbf;" (assignment_expression "uVar9 = pBVar2->btsFlags & 0xffbf" identifier = (binary_expression "pBVar2->btsFlags & 0xffbf" (field_expression "pBVar2->btsFlags" identifier -> field_identifier) & number_literal)) ;) (if_statement "if (1 < wrflag) {\n        uVar9 = uVar9 | 0x40;\n      }" if (parenthesized_expression "(1 < wrflag)" ( (binary_expression "1 < wrflag" number_literal < identifier) )) (compound_statement "{\n        uVar9 = uVar9 | 0x40;\n      }" { (expression_statement "uVar9 = uVar9 | 0x40;" (assignment_expression "uVar9 = uVar9 | 0x40" identifier = (binary_expression "uVar9 | 0x40" identifier | number_literal)) ;) })) (expression_statement "pBVar2->btsFlags = uVar9;" (assignment_expression "pBVar2->btsFlags = uVar9" (field_expression "pBVar2->btsFlags" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar11 = *(uint *)(pMVar12->aData + 0x1c);" (assignment_expression "uVar11 = *(uint *)(pMVar12->aData + 0x1c)" identifier = (pointer_expression "*(uint *)(pMVar12->aData + 0x1c)" * (cast_expression "(uint *)(pMVar12->aData + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pMVar12->aData + 0x1c)" ( (binary_expression "pMVar12->aData + 0x1c" (field_expression "pMVar12->aData" identifier -> field_identifier) + number_literal) ))))) ;) (if_statement "if (pBVar2->nPage !=\n          (uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18)) {\n        uVar11 = sqlite3PagerWrite(pMVar12->pDbPage);\n        if (uVar11 != 0) goto LAB_000aefad;\n        uVar11 = pBVar2->nPage;\n        *(uint *)(pMVar12->aData + 0x1c) =\n             uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n      }" if (parenthesized_expression "(pBVar2->nPage !=\n          (uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18))" ( (binary_expression "pBVar2->nPage !=\n          (uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18)" (field_expression "pBVar2->nPage" identifier -> field_identifier) != (parenthesized_expression "(uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18)" ( (binary_expression "uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18" (binary_expression "uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8" (binary_expression "uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8" (binary_expression "uVar11 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar11 & 0xff0000) >> 8" (parenthesized_expression "(uVar11 & 0xff0000)" ( (binary_expression "uVar11 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar11 & 0xff00) << 8" (parenthesized_expression "(uVar11 & 0xff00)" ( (binary_expression "uVar11 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar11 << 0x18" identifier << number_literal)) ))) )) (compound_statement "{\n        uVar11 = sqlite3PagerWrite(pMVar12->pDbPage);\n        if (uVar11 != 0) goto LAB_000aefad;\n        uVar11 = pBVar2->nPage;\n        *(uint *)(pMVar12->aData + 0x1c) =\n             uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;\n      }" { (expression_statement "uVar11 = sqlite3PagerWrite(pMVar12->pDbPage);" (assignment_expression "uVar11 = sqlite3PagerWrite(pMVar12->pDbPage)" identifier = (call_expression "sqlite3PagerWrite(pMVar12->pDbPage)" identifier (argument_list "(pMVar12->pDbPage)" ( (field_expression "pMVar12->pDbPage" identifier -> field_identifier) )))) ;) (if_statement "if (uVar11 != 0) goto LAB_000aefad;" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (expression_statement "uVar11 = pBVar2->nPage;" (assignment_expression "uVar11 = pBVar2->nPage" identifier = (field_expression "pBVar2->nPage" identifier -> field_identifier)) ;) (expression_statement "*(uint *)(pMVar12->aData + 0x1c) =\n             uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18;" (assignment_expression "*(uint *)(pMVar12->aData + 0x1c) =\n             uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18" (pointer_expression "*(uint *)(pMVar12->aData + 0x1c)" * (cast_expression "(uint *)(pMVar12->aData + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pMVar12->aData + 0x1c)" ( (binary_expression "pMVar12->aData + 0x1c" (field_expression "pMVar12->aData" identifier -> field_identifier) + number_literal) )))) = (binary_expression "uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8 | uVar11 << 0x18" (binary_expression "uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8 | (uVar11 & 0xff00) << 8" (binary_expression "uVar11 >> 0x18 | (uVar11 & 0xff0000) >> 8" (binary_expression "uVar11 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar11 & 0xff0000) >> 8" (parenthesized_expression "(uVar11 & 0xff0000)" ( (binary_expression "uVar11 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar11 & 0xff00) << 8" (parenthesized_expression "(uVar11 & 0xff00)" ( (binary_expression "uVar11 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar11 << 0x18" identifier << number_literal))) ;) })) (if_statement "if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;" if (parenthesized_expression "(pSchemaVersion != (int *)0x0)" ( (binary_expression "pSchemaVersion != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000af0d8;" goto statement_identifier ;)) (goto_statement "goto LAB_000af0f1;" goto statement_identifier ;) })) (labeled_statement "LAB_000af126:\n    if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;" statement_identifier : (if_statement "if (pSchemaVersion != (int *)0x0) goto LAB_000af0d8;" if (parenthesized_expression "(pSchemaVersion != (int *)0x0)" ( (binary_expression "pSchemaVersion != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000af0d8;" goto statement_identifier ;))) }))) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000aefad:\n  if (p->sharable != '\0') {\n    piVar1 = &p->wantToLock;\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 == 0) {\n      unlockBtreeMutex((Btree *)p->pBt,(Btree *)&p->locked);\n      return uVar11;\n    }\n  }" statement_identifier : (if_statement "if (p->sharable != '\0') {\n    piVar1 = &p->wantToLock;\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 == 0) {\n      unlockBtreeMutex((Btree *)p->pBt,(Btree *)&p->locked);\n      return uVar11;\n    }\n  }" if (parenthesized_expression "(p->sharable != '\0')" ( (binary_expression "p->sharable != '\0'" (field_expression "p->sharable" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar1 = &p->wantToLock;\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 == 0) {\n      unlockBtreeMutex((Btree *)p->pBt,(Btree *)&p->locked);\n      return uVar11;\n    }\n  }" { (expression_statement "piVar1 = &p->wantToLock;" (assignment_expression "piVar1 = &p->wantToLock" identifier = (pointer_expression "&p->wantToLock" & (field_expression "p->wantToLock" identifier -> field_identifier))) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (*piVar1 == 0) {\n      unlockBtreeMutex((Btree *)p->pBt,(Btree *)&p->locked);\n      return uVar11;\n    }" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n      unlockBtreeMutex((Btree *)p->pBt,(Btree *)&p->locked);\n      return uVar11;\n    }" { (expression_statement "unlockBtreeMutex((Btree *)p->pBt,(Btree *)&p->locked);" (call_expression "unlockBtreeMutex((Btree *)p->pBt,(Btree *)&p->locked)" identifier (argument_list "((Btree *)p->pBt,(Btree *)&p->locked)" ( (cast_expression "(Btree *)p->pBt" ( (type_descriptor "Btree *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p->pBt" identifier -> field_identifier)) , (cast_expression "(Btree *)&p->locked" ( (type_descriptor "Btree *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->locked" & (field_expression "p->locked" identifier -> field_identifier))) ))) ;) (return_statement "return uVar11;" return identifier ;) })) }))) (return_statement "return uVar11;" return identifier ;) })))
(translation_unit "uint __regparm3 FUN_000aede0(int *param_1,int param_2,uint *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  code *pcVar3;\n  bool bVar4;\n  char cVar5;\n  ushort uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  bool bVar12;\n  \n  piVar1 = (int *)param_1[1];\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    FUN_00045510();\n  }\n  if ((char)param_1[2] == '\x02') {\n    if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }\n    if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }\n  uVar8 = 0;\nLAB_000aefad:\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }\n  return uVar8;\n}\n\n" (function_definition "uint __regparm3 FUN_000aede0(int *param_1,int param_2,uint *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  code *pcVar3;\n  bool bVar4;\n  char cVar5;\n  ushort uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  bool bVar12;\n  \n  piVar1 = (int *)param_1[1];\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    FUN_00045510();\n  }\n  if ((char)param_1[2] == '\x02') {\n    if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }\n    if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }\n  uVar8 = 0;\nLAB_000aefad:\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }\n  return uVar8;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000aede0(int *param_1,int param_2,uint *param_3)" identifier (parameter_list "(int *param_1,int param_2,uint *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  code *pcVar3;\n  bool bVar4;\n  char cVar5;\n  ushort uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  bool bVar12;\n  \n  piVar1 = (int *)param_1[1];\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    FUN_00045510();\n  }\n  if ((char)param_1[2] == '\x02') {\n    if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }\n    if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }\n  uVar8 = 0;\nLAB_000aefad:\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }\n  return uVar8;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "ushort uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "bool bVar12;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)param_1[1];" (assignment_expression "piVar1 = (int *)param_1[1]" identifier = (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (if_statement "if (*(char *)((int)param_1 + 9) != '\0') {\n    FUN_00045510();\n  }" if (parenthesized_expression "(*(char *)((int)param_1 + 9) != '\0')" ( (binary_expression "*(char *)((int)param_1 + 9) != '\0'" (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00045510();\n  }" { (expression_statement "FUN_00045510();" (call_expression "FUN_00045510()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if ((char)param_1[2] == '\x02') {\n    if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }\n    if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }" if (parenthesized_expression "((char)param_1[2] == '\x02')" ( (binary_expression "(char)param_1[2] == '\x02'" (cast_expression "(char)param_1[2]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }\n    if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }\n  }" { (if_statement "if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }" if (parenthesized_expression "(param_3 != (uint *)0x0)" ( (binary_expression "param_3 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }" { (labeled_statement "LAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);" statement_identifier : (expression_statement "uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);" (assignment_expression "uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28)" identifier = (pointer_expression "*(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28)" * (cast_expression "(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(piVar1[3] + 0x38) + 0x28)" ( (binary_expression "*(int *)(piVar1[3] + 0x38) + 0x28" (pointer_expression "*(int *)(piVar1[3] + 0x38)" * (cast_expression "(int *)(piVar1[3] + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[3] + 0x38)" ( (binary_expression "piVar1[3] + 0x38" (subscript_expression "piVar1[3]" identifier [ number_literal ]) + number_literal) )))) + number_literal) ))))) ;)) (expression_statement "*param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;" (assignment_expression "*param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (pointer_expression "*param_3" * identifier) = (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8" (binary_expression "uVar8 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar8 & 0xff0000) >> 8" (parenthesized_expression "(uVar8 & 0xff0000)" ( (binary_expression "uVar8 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar8 & 0xff00) << 8" (parenthesized_expression "(uVar8 & 0xff00)" ( (binary_expression "uVar8 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar8 << 0x18" identifier << number_literal))) ;) })) (if_statement "if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }" { (labeled_statement "LAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }" statement_identifier : (if_statement "if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }" if (parenthesized_expression "((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0'))" ( (binary_expression "(*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')" (parenthesized_expression "(*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8))" ( (binary_expression "*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)" (pointer_expression "*(int *)(*piVar1 + 0x60)" * (cast_expression "(int *)(*piVar1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x60)" ( (binary_expression "*piVar1 + 0x60" (pointer_expression "*piVar1" * identifier) + number_literal) )))) < (pointer_expression "*(int *)(*param_1 + 0x1c8)" * (cast_expression "(int *)(*param_1 + 0x1c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1c8)" ( (binary_expression "*param_1 + 0x1c8" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) && (parenthesized_expression "(*(char *)(*piVar1 + 6) != '\0')" ( (binary_expression "*(char *)(*piVar1 + 6) != '\0'" (pointer_expression "*(char *)(*piVar1 + 6)" * (cast_expression "(char *)(*piVar1 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 6)" ( (binary_expression "*piVar1 + 6" (pointer_expression "*piVar1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }" { (expression_statement "uVar8 = FUN_00057820();" (assignment_expression "uVar8 = FUN_00057820()" identifier = (call_expression "FUN_00057820()" identifier (argument_list "()" ( )))) ;) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;) }))) })) }) (else_clause "else {\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }" else (compound_statement "{\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }" { (if_statement "if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }" if (parenthesized_expression "(((char)param_1[2] != '\x01') || (param_2 != 0))" ( (binary_expression "((char)param_1[2] != '\x01') || (param_2 != 0)" (parenthesized_expression "((char)param_1[2] != '\x01')" ( (binary_expression "(char)param_1[2] != '\x01'" (cast_expression "(char)param_1[2]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) != (char_literal "'\x01'" ' escape_sequence ')) )) || (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }" { (expression_statement "uVar6 = *(ushort *)((int)piVar1 + 0x16);" (assignment_expression "uVar6 = *(ushort *)((int)piVar1 + 0x16)" identifier = (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" * (cast_expression "(ushort *)((int)piVar1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }" if (parenthesized_expression "(((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0'))" ( (binary_expression "((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')" (parenthesized_expression "((*(byte *)(*param_1 + 0x1f) & 2) == 0)" ( (binary_expression "(*(byte *)(*param_1 + 0x1f) & 2) == 0" (parenthesized_expression "(*(byte *)(*param_1 + 0x1f) & 2)" ( (binary_expression "*(byte *)(*param_1 + 0x1f) & 2" (pointer_expression "*(byte *)(*param_1 + 0x1f)" * (cast_expression "(byte *)(*param_1 + 0x1f)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1f)" ( (binary_expression "*param_1 + 0x1f" (pointer_expression "*param_1" * identifier) + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "(*(char *)(*piVar1 + 0xe) != '\0')" ( (binary_expression "*(char *)(*piVar1 + 0xe) != '\0'" (pointer_expression "*(char *)(*piVar1 + 0xe)" * (cast_expression "(char *)(*piVar1 + 0xe)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0xe)" ( (binary_expression "*piVar1 + 0xe" (pointer_expression "*piVar1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }" { (if_statement "if ((uVar6 & 1) == 0) goto LAB_000aee37;" if (parenthesized_expression "((uVar6 & 1) == 0)" ( (binary_expression "(uVar6 & 1) == 0" (parenthesized_expression "(uVar6 & 1)" ( (binary_expression "uVar6 & 1" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_000aee37;" goto statement_identifier ;)) (expression_statement "uVar8 = 8;" (assignment_expression "uVar8 = 8" identifier = number_literal) ;) (if_statement "if (param_2 != 0) goto LAB_000aefad;" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (labeled_statement "LAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }" statement_identifier : (if_statement "if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }" if (parenthesized_expression "((uVar6 & 0x80) != 0)" ( (binary_expression "(uVar6 & 0x80) != 0" (parenthesized_expression "(uVar6 & 0x80)" ( (binary_expression "uVar6 & 0x80" identifier & number_literal) )) != number_literal) )) (compound_statement "{\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }" { (labeled_statement "LAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];" statement_identifier : (expression_statement "iVar9 = *(int *)piVar1[0x13];" (assignment_expression "iVar9 = *(int *)piVar1[0x13]" identifier = (pointer_expression "*(int *)piVar1[0x13]" * (cast_expression "(int *)piVar1[0x13]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[0x13]" identifier [ number_literal ])))) ;)) (goto_statement "goto LAB_000aee9e;" goto statement_identifier ;) }))) }) (else_clause "else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }" else (compound_statement "{\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }" { (expression_statement "uVar6 = uVar6 & 0xfffe;" (assignment_expression "uVar6 = uVar6 & 0xfffe" identifier = (binary_expression "uVar6 & 0xfffe" identifier & number_literal)) ;) (expression_statement "*(ushort *)((int)piVar1 + 0x16) = uVar6;" (assignment_expression "*(ushort *)((int)piVar1 + 0x16) = uVar6" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" * (cast_expression "(ushort *)((int)piVar1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (labeled_statement "LAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;" statement_identifier : (if_statement "if (param_2 == 0) goto LAB_000aee95;" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000aee95;" goto statement_identifier ;))) (if_statement "if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;" if (parenthesized_expression "(((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0))" ( (binary_expression "((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)" (parenthesized_expression "((char)piVar1[5] == '\x02')" ( (binary_expression "(char)piVar1[5] == '\x02'" (cast_expression "(char)piVar1[5]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[5]" identifier [ number_literal ])) == (char_literal "'\x02'" ' escape_sequence ')) )) || (parenthesized_expression "((uVar6 & 0x80) != 0)" ( (binary_expression "(uVar6 & 0x80) != 0" (parenthesized_expression "(uVar6 & 0x80)" ( (binary_expression "uVar6 & 0x80" identifier & number_literal) )) != number_literal) ))) )) (goto_statement "goto LAB_000aee99;" goto statement_identifier ;)) (if_statement "if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;" if (parenthesized_expression "((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))" ( (binary_expression "(param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0)" (parenthesized_expression "(param_2 < 2)" ( (binary_expression "param_2 < 2" identifier < number_literal) )) || (parenthesized_expression "(puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0)" ( (comma_expression "puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0" (assignment_expression "puVar7 = (undefined4 *)piVar1[0x12]" identifier = (cast_expression "(undefined4 *)piVar1[0x12]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[0x12]" identifier [ number_literal ]))) , (binary_expression "puVar7 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_000aeea6;" goto statement_identifier ;)) (expression_statement "piVar2 = (int *)*puVar7;" (assignment_expression "piVar2 = (int *)*puVar7" identifier = (cast_expression "(int *)*puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier))) ;) (if_statement "if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }" if (parenthesized_expression "(param_1 == piVar2)" ( (binary_expression "param_1 == piVar2" identifier == identifier) )) (compound_statement "{\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }" { (do_statement "do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);" do (compound_statement "{\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          }" { (expression_statement "puVar7 = (undefined4 *)puVar7[3];" (assignment_expression "puVar7 = (undefined4 *)puVar7[3]" identifier = (cast_expression "(undefined4 *)puVar7[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar7[3]" identifier [ number_literal ]))) ;) (if_statement "if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;" if (parenthesized_expression "(puVar7 == (undefined4 *)0x0)" ( (binary_expression "puVar7 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000aeea6;" goto statement_identifier ;)) }) while (parenthesized_expression "((int *)*puVar7 == piVar2)" ( (binary_expression "(int *)*puVar7 == piVar2" (cast_expression "(int *)*puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier)) == identifier) )) ;) (expression_statement "iVar9 = *(int *)*puVar7;" (assignment_expression "iVar9 = *(int *)*puVar7" identifier = (pointer_expression "*(int *)*puVar7" * (cast_expression "(int *)*puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier)))) ;) }) (else_clause "else {\n          iVar9 = *piVar2;\n        }" else (compound_statement "{\n          iVar9 = *piVar2;\n        }" { (expression_statement "iVar9 = *piVar2;" (assignment_expression "iVar9 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) }))) (labeled_statement "LAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }" statement_identifier : (if_statement "if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }" { (expression_statement "uVar8 = 0x106;" (assignment_expression "uVar8 = 0x106" identifier = number_literal) ;) (expression_statement "FUN_0004e100();" (call_expression "FUN_0004e100()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;) }))) }))) (labeled_statement "LAB_000aeea6:\n      uVar8 = FUN_0004e1e0();" statement_identifier : (expression_statement "uVar8 = FUN_0004e1e0();" (assignment_expression "uVar8 = FUN_0004e1e0()" identifier = (call_expression "FUN_0004e1e0()" identifier (argument_list "()" ( )))) ;)) (if_statement "if (uVar8 != 0) goto LAB_000aefad;" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (expression_statement "uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;" (assignment_expression "uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef" identifier = (binary_expression "*(ushort *)((int)piVar1 + 0x16) & 0xffef" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" * (cast_expression "(ushort *)((int)piVar1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal)) ;) (expression_statement "*(ushort *)((int)piVar1 + 0x16) = uVar6;" (assignment_expression "*(ushort *)((int)piVar1 + 0x16) = uVar6" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" * (cast_expression "(ushort *)((int)piVar1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }" if (parenthesized_expression "(piVar1[0xb] == 0)" ( (binary_expression "piVar1[0xb] == 0" (subscript_expression "piVar1[0xb]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }" { (expression_statement "*(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;" (assignment_expression "*(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" * (cast_expression "(ushort *)((int)piVar1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "uVar6 | 0x10" identifier | number_literal)) ;) })) (labeled_statement "LAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;" statement_identifier : (if_statement "if (piVar1[3] == 0) goto LAB_000af0af;" if (parenthesized_expression "(piVar1[3] == 0)" ( (binary_expression "piVar1[3] == 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) == number_literal) )) (goto_statement "goto LAB_000af0af;" goto statement_identifier ;))) (while_statement "while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }" { (expression_statement "bVar12 = param_2 != 0;" (assignment_expression "bVar12 = param_2 != 0" identifier = (binary_expression "param_2 != 0" identifier != number_literal)) ;) (expression_statement "bVar4 = uVar8 == 0 && bVar12;" (assignment_expression "bVar4 = uVar8 == 0 && bVar12" identifier = (binary_expression "uVar8 == 0 && bVar12" (binary_expression "uVar8 == 0" identifier == number_literal) && identifier)) ;) (if_statement "if (uVar8 == 0 && bVar12) break;" if (parenthesized_expression "(uVar8 == 0 && bVar12)" ( (binary_expression "uVar8 == 0 && bVar12" (binary_expression "uVar8 == 0" identifier == number_literal) && identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_000af010:\n        bVar4 = bVar12;" statement_identifier : (expression_statement "bVar4 = bVar12;" (assignment_expression "bVar4 = bVar12" identifier = identifier) ;)) (if_statement "if (uVar8 == 0) goto LAB_000af018;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000af018;" goto statement_identifier ;)) (while_statement "while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }" { (expression_statement "uVar11 = uVar8 & 0xff;" (assignment_expression "uVar11 = uVar8 & 0xff" identifier = (binary_expression "uVar8 & 0xff" identifier & number_literal)) ;) (expression_statement "cVar5 = (char)piVar1[5];" (assignment_expression "cVar5 = (char)piVar1[5]" identifier = (cast_expression "(char)piVar1[5]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[5]" identifier [ number_literal ]))) ;) (labeled_statement "LAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }" statement_identifier : (if_statement "if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }" if (parenthesized_expression "((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0))" ( (binary_expression "(cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)" (parenthesized_expression "(cVar5 == '\0')" ( (binary_expression "cVar5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(iVar9 = piVar1[3], iVar9 != 0)" ( (comma_expression "iVar9 = piVar1[3], iVar9 != 0" (assignment_expression "iVar9 = piVar1[3]" identifier = (subscript_expression "piVar1[3]" identifier [ number_literal ])) , (binary_expression "iVar9 != 0" identifier != number_literal)) ))) )) (compound_statement "{\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }" { (labeled_statement "LAB_000aef23:\n            piVar1[3] = 0;" statement_identifier : (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);" (assignment_expression "iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14)" identifier = (pointer_expression "*(int *)(*(int *)(iVar9 + 0x48) + 0x14)" * (cast_expression "(int *)(*(int *)(iVar9 + 0x48) + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar9 + 0x48) + 0x14)" ( (binary_expression "*(int *)(iVar9 + 0x48) + 0x14" (pointer_expression "*(int *)(iVar9 + 0x48)" * (cast_expression "(int *)(iVar9 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x48)" ( (binary_expression "iVar9 + 0x48" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "FUN_0003bb60();" (call_expression "FUN_0003bb60()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }" if (parenthesized_expression "(*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0)" ( (binary_expression "*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0" (pointer_expression "*(int *)(*(int *)(iVar9 + 0xd0) + 0xc)" * (cast_expression "(int *)(*(int *)(iVar9 + 0xd0) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar9 + 0xd0) + 0xc)" ( (binary_expression "*(int *)(iVar9 + 0xd0) + 0xc" (pointer_expression "*(int *)(iVar9 + 0xd0)" * (cast_expression "(int *)(iVar9 + 0xd0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0xd0)" ( (binary_expression "iVar9 + 0xd0" identifier + number_literal) )))) + number_literal) )))) == number_literal) )) (compound_statement "{\n              FUN_000ad9a0();\n            }" { (expression_statement "FUN_000ad9a0();" (call_expression "FUN_000ad9a0()" identifier (argument_list "()" ( ))) ;) })) }))) (if_statement "if (uVar11 != 5) goto LAB_000aefad;" if (parenthesized_expression "(uVar11 != 5)" ( (binary_expression "uVar11 != 5" identifier != number_literal) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (labeled_statement "LAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;" statement_identifier : (if_statement "if ((char)piVar1[5] != '\0') goto LAB_000aefad;" if (parenthesized_expression "((char)piVar1[5] != '\0')" ( (binary_expression "(char)piVar1[5] != '\0'" (cast_expression "(char)piVar1[5]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[5]" identifier [ number_literal ])) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;))) (expression_statement "iVar9 = piVar1[1];" (assignment_expression "iVar9 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar3 = *(code **)(iVar9 + 400);" (assignment_expression "pcVar3 = *(code **)(iVar9 + 400)" identifier = (pointer_expression "*(code **)(iVar9 + 400)" * (cast_expression "(code **)(iVar9 + 400)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar9 + 400)" ( (binary_expression "iVar9 + 400" identifier + number_literal) ))))) ;) (if_statement "if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;" if (parenthesized_expression "((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))" ( (binary_expression "(pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0)" (parenthesized_expression "(pcVar3 == (code *)0x0)" ( (binary_expression "pcVar3 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0)" ( (comma_expression "iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0" (assignment_expression "iVar10 = *(int *)(iVar9 + 0x198)" identifier = (pointer_expression "*(int *)(iVar9 + 0x198)" * (cast_expression "(int *)(iVar9 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x198)" ( (binary_expression "iVar9 + 0x198" identifier + number_literal) ))))) , (binary_expression "iVar10 < 0" identifier < number_literal)) ))) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (if_statement "if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }" if (parenthesized_expression "(*(char *)(iVar9 + 0x19c) == '\0')" ( (binary_expression "*(char *)(iVar9 + 0x19c) == '\0'" (pointer_expression "*(char *)(iVar9 + 0x19c)" * (cast_expression "(char *)(iVar9 + 0x19c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x19c)" ( (binary_expression "iVar9 + 0x19c" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }" { (expression_statement "iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);" (assignment_expression "iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10)" identifier = (call_expression "(*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(*(undefined4 *)(iVar9 + 0x194),iVar10)" ( (pointer_expression "*(undefined4 *)(iVar9 + 0x194)" * (cast_expression "(undefined4 *)(iVar9 + 0x194)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x194)" ( (binary_expression "iVar9 + 0x194" identifier + number_literal) )))) , identifier )))) ;) }) (else_clause "else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }" else (compound_statement "{\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }" { (expression_statement "iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );" (assignment_expression "iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              )" identifier = (call_expression "(*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              )" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              )" ( (pointer_expression "*(undefined4 *)(iVar9 + 0x194)" * (cast_expression "(undefined4 *)(iVar9 + 0x194)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x194)" ( (binary_expression "iVar9 + 0x194" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined4 *)(*piVar1 + 0x3c)" * (cast_expression "(undefined4 *)(*piVar1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x3c)" ( (binary_expression "*piVar1 + 0x3c" (pointer_expression "*piVar1" * identifier) + number_literal) )))) )))) ;) }))) (if_statement "if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }" { (expression_statement "*(undefined4 *)(iVar9 + 0x198) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar9 + 0x198) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar9 + 0x198)" * (cast_expression "(undefined4 *)(iVar9 + 0x198)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x198)" ( (binary_expression "iVar9 + 0x198" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;) })) (expression_statement "*(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;" (assignment_expression "*(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1" (pointer_expression "*(int *)(iVar9 + 0x198)" * (cast_expression "(int *)(iVar9 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x198)" ( (binary_expression "iVar9 + 0x198" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar9 + 0x198) + 1" (pointer_expression "*(int *)(iVar9 + 0x198)" * (cast_expression "(int *)(iVar9 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x198)" ( (binary_expression "iVar9 + 0x198" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (piVar1[3] != 0) break;" if (parenthesized_expression "(piVar1[3] != 0)" ( (binary_expression "piVar1[3] != 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) != number_literal) )) (break_statement "break;" break ;)) (labeled_statement "LAB_000af0af:\n          uVar8 = FUN_000ae670();" statement_identifier : (expression_statement "uVar8 = FUN_000ae670();" (assignment_expression "uVar8 = FUN_000ae670()" identifier = (call_expression "FUN_000ae670()" identifier (argument_list "()" ( )))) ;)) (if_statement "if (uVar8 == 0) goto LAB_000aeed7;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000aeed7;" goto statement_identifier ;)) })) })) (if_statement "if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }" if (parenthesized_expression "((*(byte *)((int)piVar1 + 0x16) & 1) != 0)" ( (binary_expression "(*(byte *)((int)piVar1 + 0x16) & 1) != 0" (parenthesized_expression "(*(byte *)((int)piVar1 + 0x16) & 1)" ( (binary_expression "*(byte *)((int)piVar1 + 0x16) & 1" (pointer_expression "*(byte *)((int)piVar1 + 0x16)" * (cast_expression "(byte *)((int)piVar1 + 0x16)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }" { (expression_statement "cVar5 = (char)piVar1[5];" (assignment_expression "cVar5 = (char)piVar1[5]" identifier = (cast_expression "(char)piVar1[5]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[5]" identifier [ number_literal ]))) ;) (expression_statement "uVar11 = 8;" (assignment_expression "uVar11 = 8" identifier = number_literal) ;) (expression_statement "uVar8 = 8;" (assignment_expression "uVar8 = 8" identifier = number_literal) ;) (goto_statement "goto LAB_000aef18;" goto statement_identifier ;) })) (expression_statement "uVar8 = FUN_00061ac0();" (assignment_expression "uVar8 = FUN_00061ac0()" identifier = (call_expression "FUN_00061ac0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }" { (expression_statement "cVar5 = (char)piVar1[5];" (assignment_expression "cVar5 = (char)piVar1[5]" identifier = (cast_expression "(char)piVar1[5]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[5]" identifier [ number_literal ]))) ;) (if_statement "if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }" if (parenthesized_expression "(uVar8 == 0x205)" ( (binary_expression "uVar8 == 0x205" identifier == number_literal) )) (compound_statement "{\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }" { (if_statement "if (cVar5 != '\0') goto LAB_000aef55;" if (parenthesized_expression "(cVar5 != '\0')" ( (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000aef55;" goto statement_identifier ;)) (expression_statement "iVar9 = piVar1[3];" (assignment_expression "iVar9 = piVar1[3]" identifier = (subscript_expression "piVar1[3]" identifier [ number_literal ])) ;) (expression_statement "uVar8 = 5;" (assignment_expression "uVar8 = 5" identifier = number_literal) ;) (expression_statement "uVar11 = 5;" (assignment_expression "uVar11 = 5" identifier = number_literal) ;) (if_statement "if (iVar9 != 0) goto LAB_000aef23;" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000aef23;" goto statement_identifier ;)) (goto_statement "goto LAB_000aef55;" goto statement_identifier ;) })) (expression_statement "uVar11 = uVar8 & 0xff;" (assignment_expression "uVar11 = uVar8 & 0xff" identifier = (binary_expression "uVar8 & 0xff" identifier & number_literal)) ;) (goto_statement "goto LAB_000aef18;" goto statement_identifier ;) })) (if_statement "if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }" if (parenthesized_expression "(piVar1[0xb] == 0)" ( (binary_expression "piVar1[0xb] == 0" (subscript_expression "piVar1[0xb]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }" { (expression_statement "uVar8 = FUN_000aeab0();" (assignment_expression "uVar8 = FUN_000aeab0()" identifier = (call_expression "FUN_000aeab0()" identifier (argument_list "()" ( )))) ;) (goto_statement "goto LAB_000af010;" goto statement_identifier ;) })) (labeled_statement "LAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }" statement_identifier : (if_statement "if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }" if (parenthesized_expression "(((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0'))" ( (binary_expression "((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')" (parenthesized_expression "((char)param_1[2] == '\0')" ( (binary_expression "(char)param_1[2] == '\0'" (cast_expression "(char)param_1[2]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')" ( (comma_expression "piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0'" (assignment_expression "piVar1[10] = piVar1[10] + 1" (subscript_expression "piVar1[10]" identifier [ number_literal ]) = (binary_expression "piVar1[10] + 1" (subscript_expression "piVar1[10]" identifier [ number_literal ]) + number_literal)) , (binary_expression "*(char *)((int)param_1 + 9) != '\0'" (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }" { (expression_statement "*(undefined1 *)(param_1 + 10) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 10) = 1" (pointer_expression "*(undefined1 *)(param_1 + 10)" * (cast_expression "(undefined1 *)(param_1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0xb] = piVar1[0x12];" (assignment_expression "param_1[0xb] = piVar1[0x12]" (subscript_expression "param_1[0xb]" identifier [ number_literal ]) = (subscript_expression "piVar1[0x12]" identifier [ number_literal ])) ;) (expression_statement "piVar1[0x12] = (int)(param_1 + 8);" (assignment_expression "piVar1[0x12] = (int)(param_1 + 8)" (subscript_expression "piVar1[0x12]" identifier [ number_literal ]) = (cast_expression "(int)(param_1 + 8)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ;) }))) (if_statement "if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }" { (expression_statement "*(undefined1 *)(param_1 + 2) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 2) = 1" (pointer_expression "*(undefined1 *)(param_1 + 2)" * (cast_expression "(undefined1 *)(param_1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }" if (parenthesized_expression "((char)piVar1[5] == '\0')" ( (binary_expression "(char)piVar1[5] == '\0'" (cast_expression "(char)piVar1[5]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar1[5]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }" { (expression_statement "*(undefined1 *)(piVar1 + 5) = 1;" (assignment_expression "*(undefined1 *)(piVar1 + 5) = 1" (pointer_expression "*(undefined1 *)(piVar1 + 5)" * (cast_expression "(undefined1 *)(piVar1 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))) = number_literal) ;) })) (goto_statement "goto LAB_000af126;" goto statement_identifier ;) })) (expression_statement "*(undefined1 *)(param_1 + 2) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 2) = 2" (pointer_expression "*(undefined1 *)(param_1 + 2)" * (cast_expression "(undefined1 *)(param_1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }" if (parenthesized_expression "(*(byte *)(piVar1 + 5) < 2)" ( (binary_expression "*(byte *)(piVar1 + 5) < 2" (pointer_expression "*(byte *)(piVar1 + 5)" * (cast_expression "(byte *)(piVar1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }" { (expression_statement "*(undefined1 *)(piVar1 + 5) = 2;" (assignment_expression "*(undefined1 *)(piVar1 + 5) = 2" (pointer_expression "*(undefined1 *)(piVar1 + 5)" * (cast_expression "(undefined1 *)(piVar1 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "iVar9 = piVar1[3];" (assignment_expression "iVar9 = piVar1[3]" identifier = (subscript_expression "piVar1[3]" identifier [ number_literal ])) ;) (expression_statement "piVar1[0x13] = (int)param_1;" (assignment_expression "piVar1[0x13] = (int)param_1" (subscript_expression "piVar1[0x13]" identifier [ number_literal ]) = (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;" (assignment_expression "uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf" identifier = (binary_expression "*(ushort *)((int)piVar1 + 0x16) & 0xffbf" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" * (cast_expression "(ushort *)((int)piVar1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal)) ;) (if_statement "if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }" if (parenthesized_expression "(1 < param_2)" ( (binary_expression "1 < param_2" number_literal < identifier) )) (compound_statement "{\n        uVar6 = uVar6 | 0x40;\n      }" { (expression_statement "uVar6 = uVar6 | 0x40;" (assignment_expression "uVar6 = uVar6 | 0x40" identifier = (binary_expression "uVar6 | 0x40" identifier | number_literal)) ;) })) (expression_statement "*(ushort *)((int)piVar1 + 0x16) = uVar6;" (assignment_expression "*(ushort *)((int)piVar1 + 0x16) = uVar6" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" * (cast_expression "(ushort *)((int)piVar1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 0x16)" ( (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);" (assignment_expression "uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" identifier = (pointer_expression "*(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" * (cast_expression "(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar9 + 0x38) + 0x1c)" ( (binary_expression "*(int *)(iVar9 + 0x38) + 0x1c" (pointer_expression "*(int *)(iVar9 + 0x38)" * (cast_expression "(int *)(iVar9 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x38)" ( (binary_expression "iVar9 + 0x38" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }" if (parenthesized_expression "(piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18))" ( (binary_expression "piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)" (subscript_expression "piVar1[0xb]" identifier [ number_literal ]) != (parenthesized_expression "(uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)" ( (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8" (binary_expression "uVar8 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar8 & 0xff0000) >> 8" (parenthesized_expression "(uVar8 & 0xff0000)" ( (binary_expression "uVar8 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar8 & 0xff00) << 8" (parenthesized_expression "(uVar8 & 0xff00)" ( (binary_expression "uVar8 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar8 << 0x18" identifier << number_literal)) ))) )) (compound_statement "{\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }" { (expression_statement "uVar8 = FUN_000aa4a0();" (assignment_expression "uVar8 = FUN_000aa4a0()" identifier = (call_expression "FUN_000aa4a0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (uVar8 != 0) goto LAB_000aefad;" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000aefad;" goto statement_identifier ;)) (expression_statement "uVar8 = piVar1[0xb];" (assignment_expression "uVar8 = piVar1[0xb]" identifier = (subscript_expression "piVar1[0xb]" identifier [ number_literal ])) ;) (expression_statement "*(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;" (assignment_expression "*(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (pointer_expression "*(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" * (cast_expression "(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar9 + 0x38) + 0x1c)" ( (binary_expression "*(int *)(iVar9 + 0x38) + 0x1c" (pointer_expression "*(int *)(iVar9 + 0x38)" * (cast_expression "(int *)(iVar9 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x38)" ( (binary_expression "iVar9 + 0x38" identifier + number_literal) )))) + number_literal) )))) = (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8" (binary_expression "uVar8 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar8 & 0xff0000) >> 8" (parenthesized_expression "(uVar8 & 0xff0000)" ( (binary_expression "uVar8 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar8 & 0xff00) << 8" (parenthesized_expression "(uVar8 & 0xff00)" ( (binary_expression "uVar8 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar8 << 0x18" identifier << number_literal))) ;) })) (if_statement "if (param_3 != (uint *)0x0) goto LAB_000af0d8;" if (parenthesized_expression "(param_3 != (uint *)0x0)" ( (binary_expression "param_3 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000af0d8;" goto statement_identifier ;)) (goto_statement "goto LAB_000af0f1;" goto statement_identifier ;) })) (labeled_statement "LAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;" statement_identifier : (if_statement "if (param_3 != (uint *)0x0) goto LAB_000af0d8;" if (parenthesized_expression "(param_3 != (uint *)0x0)" ( (binary_expression "param_3 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000af0d8;" goto statement_identifier ;))) }))) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000aefad:\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }" statement_identifier : (if_statement "if (*(char *)((int)param_1 + 9) != '\0') {\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }" if (parenthesized_expression "(*(char *)((int)param_1 + 9) != '\0')" ( (binary_expression "*(char *)((int)param_1 + 9) != '\0'" (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }" { (expression_statement "param_1 = param_1 + 3;" (assignment_expression "param_1 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) (expression_statement "*param_1 = *param_1 + -1;" (assignment_expression "*param_1 = *param_1 + -1" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 + -1" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (if_statement "if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n      FUN_000453f0();\n      return uVar8;\n    }" { (expression_statement "FUN_000453f0();" (call_expression "FUN_000453f0()" identifier (argument_list "()" ( ))) ;) (return_statement "return uVar8;" return identifier ;) })) }))) (return_statement "return uVar8;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (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 (subscript_expression IDENT [ LIT ]) + LIT) )))) + LIT) ))))) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (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 (pointer_expression * IDENT) + LIT) )))) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (goto_statement goto statement_identifier ;) }))) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) != (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;)) (goto_statement goto statement_identifier ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) == IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (goto_statement goto statement_identifier ;) }))) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression IDENT | LIT)) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (goto_statement goto statement_identifier ;))) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT == LIT) && IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && IDENT) )) (break_statement break ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (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 IDENT = (subscript_expression IDENT [ LIT ])) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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) )))) + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (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) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) != (char_literal ' escape_sequence ')) )) (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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT < LIT)) ))) )) (goto_statement goto statement_identifier ;)) (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 = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (break_statement break ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) })) (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence '))) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }))) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (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) )))) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;))) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return IDENT ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "uint __regparm3 FUN_000aede0(int *param_1,int param_2,uint *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  code *pcVar3;\n  bool bVar4;\n  char cVar5;\n  ushort uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  bool bVar12;\n  \n  piVar1 = (int *)param_1[1];\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    FUN_00045510();\n  }\n  if ((char)param_1[2] == '\x02') {\n    if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }\n    if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }\n  uVar8 = 0;\nLAB_000aefad:\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }\n  return uVar8;\n}" (type_identifier "uint") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000aede0(int *param_1,int param_2,uint *param_3)" (identifier "FUN_000aede0") (parameter_list "(int *param_1,int param_2,uint *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  code *pcVar3;\n  bool bVar4;\n  char cVar5;\n  ushort uVar6;\n  undefined4 *puVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  bool bVar12;\n  \n  piVar1 = (int *)param_1[1];\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    FUN_00045510();\n  }\n  if ((char)param_1[2] == '\x02') {\n    if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }\n    if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }\n  uVar8 = 0;\nLAB_000aefad:\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }\n  return uVar8;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "code *pcVar3;" (type_identifier "code") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "bool bVar4;" (primitive_type "bool") (identifier "bVar4") (; ";")) (declaration "char cVar5;" (primitive_type "char") (identifier "cVar5") (; ";")) (declaration "ushort uVar6;" (type_identifier "ushort") (identifier "uVar6") (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "bool bVar12;" (primitive_type "bool") (identifier "bVar12") (; ";")) (expression_statement "piVar1 = (int *)param_1[1];" (assignment_expression "piVar1 = (int *)param_1[1]" (identifier "piVar1") (= "=") (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (*(char *)((int)param_1 + 9) != '\0') {\n    FUN_00045510();\n  }" (if "if") (parenthesized_expression "(*(char *)((int)param_1 + 9) != '\0')" (( "(") (binary_expression "*(char *)((int)param_1 + 9) != '\0'" (pointer_expression "*(char *)((int)param_1 + 9)" (* "*") (cast_expression "(char *)((int)param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 9)" (( "(") (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_00045510();\n  }" ({ "{") (expression_statement "FUN_00045510();" (call_expression "FUN_00045510()" (identifier "FUN_00045510") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if ((char)param_1[2] == '\x02') {\n    if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }\n    if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }\n  }\n  else {\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }" (if "if") (parenthesized_expression "((char)param_1[2] == '\x02')" (( "(") (binary_expression "(char)param_1[2] == '\x02'" (cast_expression "(char)param_1[2]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (== "==") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n    if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }\n    if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }\n  }" ({ "{") (if_statement "if (param_3 != (uint *)0x0) {\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }" (if "if") (parenthesized_expression "(param_3 != (uint *)0x0)" (( "(") (binary_expression "param_3 != (uint *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);\n      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    }" ({ "{") (labeled_statement "LAB_000af0d8:\n      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);" (statement_identifier "LAB_000af0d8") (: ":") (expression_statement "uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);" (assignment_expression "uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28)" (identifier "uVar8") (= "=") (pointer_expression "*(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28)" (* "*") (cast_expression "(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(piVar1[3] + 0x38) + 0x28)" (( "(") (binary_expression "*(int *)(piVar1[3] + 0x38) + 0x28" (pointer_expression "*(int *)(piVar1[3] + 0x38)" (* "*") (cast_expression "(int *)(piVar1[3] + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1[3] + 0x38)" (( "(") (binary_expression "piVar1[3] + 0x38" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "0x28")) () ")"))))) (; ";"))) (expression_statement "*param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;" (assignment_expression "*param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8" (binary_expression "uVar8 >> 0x18" (identifier "uVar8") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar8 & 0xff0000) >> 8" (parenthesized_expression "(uVar8 & 0xff0000)" (( "(") (binary_expression "uVar8 & 0xff0000" (identifier "uVar8") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar8 & 0xff00) << 8" (parenthesized_expression "(uVar8 & 0xff00)" (( "(") (binary_expression "uVar8 & 0xff00" (identifier "uVar8") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar8 << 0x18" (identifier "uVar8") (<< "<<") (number_literal "0x18")))) (; ";")) (} "}"))) (if_statement "if (param_2 != 0) {\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }\n    }" ({ "{") (labeled_statement "LAB_000af0f1:\n      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }" (statement_identifier "LAB_000af0f1") (: ":") (if_statement "if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')) {\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }" (if "if") (parenthesized_expression "((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0'))" (( "(") (binary_expression "(*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&\n         (*(char *)(*piVar1 + 6) != '\0')" (parenthesized_expression "(*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8))" (( "(") (binary_expression "*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)" (pointer_expression "*(int *)(*piVar1 + 0x60)" (* "*") (cast_expression "(int *)(*piVar1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + 0x60)" (( "(") (binary_expression "*piVar1 + 0x60" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x60")) () ")")))) (< "<") (pointer_expression "*(int *)(*param_1 + 0x1c8)" (* "*") (cast_expression "(int *)(*param_1 + 0x1c8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x1c8)" (( "(") (binary_expression "*param_1 + 0x1c8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x1c8")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(*piVar1 + 6) != '\0')" (( "(") (binary_expression "*(char *)(*piVar1 + 6) != '\0'" (pointer_expression "*(char *)(*piVar1 + 6)" (* "*") (cast_expression "(char *)(*piVar1 + 6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + 6)" (( "(") (binary_expression "*piVar1 + 6" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "6")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        uVar8 = FUN_00057820();\n        goto LAB_000aefad;\n      }" ({ "{") (expression_statement "uVar8 = FUN_00057820();" (assignment_expression "uVar8 = FUN_00057820()" (identifier "uVar8") (= "=") (call_expression "FUN_00057820()" (identifier "FUN_00057820") (argument_list "()" (( "(") () ")")))) (; ";")) (goto_statement "goto LAB_000aefad;" (goto "goto") (statement_identifier "LAB_000aefad") (; ";")) (} "}")))) (} "}"))) (} "}")) (else_clause "else {\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }" (else "else") (compound_statement "{\n    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }\nLAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n  }" ({ "{") (if_statement "if (((char)param_1[2] != '\x01') || (param_2 != 0)) {\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }" (if "if") (parenthesized_expression "(((char)param_1[2] != '\x01') || (param_2 != 0))" (( "(") (binary_expression "((char)param_1[2] != '\x01') || (param_2 != 0)" (parenthesized_expression "((char)param_1[2] != '\x01')" (( "(") (binary_expression "(char)param_1[2] != '\x01'" (cast_expression "(char)param_1[2]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (!= "!=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      uVar6 = *(ushort *)((int)piVar1 + 0x16);\n      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }\nLAB_000aeea6:\n      uVar8 = FUN_0004e1e0();\n      if (uVar8 != 0) goto LAB_000aefad;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }\nLAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;\n      while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }\n      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }\n      uVar8 = FUN_00061ac0();\n      if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }\n      if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }\nLAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }\n      if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }\n      *(undefined1 *)(param_1 + 2) = 2;\n      if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }\n      iVar9 = piVar1[3];\n      piVar1[0x13] = (int)param_1;\n      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;\n      if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }\n      *(ushort *)((int)piVar1 + 0x16) = uVar6;\n      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);\n      if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }\n      if (param_3 != (uint *)0x0) goto LAB_000af0d8;\n      goto LAB_000af0f1;\n    }" ({ "{") (expression_statement "uVar6 = *(ushort *)((int)piVar1 + 0x16);" (assignment_expression "uVar6 = *(ushort *)((int)piVar1 + 0x16)" (identifier "uVar6") (= "=") (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" (* "*") (cast_expression "(ushort *)((int)piVar1 + 0x16)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x16)" (( "(") (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x16")) () ")"))))) (; ";")) (if_statement "if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }\n      else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }" (if "if") (parenthesized_expression "(((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0'))" (( "(") (binary_expression "((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')" (parenthesized_expression "((*(byte *)(*param_1 + 0x1f) & 2) == 0)" (( "(") (binary_expression "(*(byte *)(*param_1 + 0x1f) & 2) == 0" (parenthesized_expression "(*(byte *)(*param_1 + 0x1f) & 2)" (( "(") (binary_expression "*(byte *)(*param_1 + 0x1f) & 2" (pointer_expression "*(byte *)(*param_1 + 0x1f)" (* "*") (cast_expression "(byte *)(*param_1 + 0x1f)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x1f)" (( "(") (binary_expression "*param_1 + 0x1f" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x1f")) () ")")))) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(char *)(*piVar1 + 0xe) != '\0')" (( "(") (binary_expression "*(char *)(*piVar1 + 0xe) != '\0'" (pointer_expression "*(char *)(*piVar1 + 0xe)" (* "*") (cast_expression "(char *)(*piVar1 + 0xe)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + 0xe)" (( "(") (binary_expression "*piVar1 + 0xe" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0xe")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        if ((uVar6 & 1) == 0) goto LAB_000aee37;\n        uVar8 = 8;\n        if (param_2 != 0) goto LAB_000aefad;\nLAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }\n      }" ({ "{") (if_statement "if ((uVar6 & 1) == 0) goto LAB_000aee37;" (if "if") (parenthesized_expression "((uVar6 & 1) == 0)" (( "(") (binary_expression "(uVar6 & 1) == 0" (parenthesized_expression "(uVar6 & 1)" (( "(") (binary_expression "uVar6 & 1" (identifier "uVar6") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000aee37;" (goto "goto") (statement_identifier "LAB_000aee37") (; ";"))) (expression_statement "uVar8 = 8;" (assignment_expression "uVar8 = 8" (identifier "uVar8") (= "=") (number_literal "8")) (; ";")) (if_statement "if (param_2 != 0) goto LAB_000aefad;" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000aefad;" (goto "goto") (statement_identifier "LAB_000aefad") (; ";"))) (labeled_statement "LAB_000aee95:\n        if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }" (statement_identifier "LAB_000aee95") (: ":") (if_statement "if ((uVar6 & 0x80) != 0) {\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }" (if "if") (parenthesized_expression "((uVar6 & 0x80) != 0)" (( "(") (binary_expression "(uVar6 & 0x80) != 0" (parenthesized_expression "(uVar6 & 0x80)" (( "(") (binary_expression "uVar6 & 0x80" (identifier "uVar6") (& "&") (number_literal "0x80")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];\n          goto LAB_000aee9e;\n        }" ({ "{") (labeled_statement "LAB_000aee99:\n          iVar9 = *(int *)piVar1[0x13];" (statement_identifier "LAB_000aee99") (: ":") (expression_statement "iVar9 = *(int *)piVar1[0x13];" (assignment_expression "iVar9 = *(int *)piVar1[0x13]" (identifier "iVar9") (= "=") (pointer_expression "*(int *)piVar1[0x13]" (* "*") (cast_expression "(int *)piVar1[0x13]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[0x13]" (identifier "piVar1") ([ "[") (number_literal "0x13") (] "]"))))) (; ";"))) (goto_statement "goto LAB_000aee9e;" (goto "goto") (statement_identifier "LAB_000aee9e") (; ";")) (} "}")))) (} "}")) (else_clause "else {\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }" (else "else") (compound_statement "{\n        uVar6 = uVar6 & 0xfffe;\n        *(ushort *)((int)piVar1 + 0x16) = uVar6;\nLAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;\n        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;\n        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;\n        piVar2 = (int *)*puVar7;\n        if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }\nLAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }\n      }" ({ "{") (expression_statement "uVar6 = uVar6 & 0xfffe;" (assignment_expression "uVar6 = uVar6 & 0xfffe" (identifier "uVar6") (= "=") (binary_expression "uVar6 & 0xfffe" (identifier "uVar6") (& "&") (number_literal "0xfffe"))) (; ";")) (expression_statement "*(ushort *)((int)piVar1 + 0x16) = uVar6;" (assignment_expression "*(ushort *)((int)piVar1 + 0x16) = uVar6" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" (* "*") (cast_expression "(ushort *)((int)piVar1 + 0x16)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x16)" (( "(") (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x16")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (labeled_statement "LAB_000aee37:\n        if (param_2 == 0) goto LAB_000aee95;" (statement_identifier "LAB_000aee37") (: ":") (if_statement "if (param_2 == 0) goto LAB_000aee95;" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000aee95;" (goto "goto") (statement_identifier "LAB_000aee95") (; ";")))) (if_statement "if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;" (if "if") (parenthesized_expression "(((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0))" (( "(") (binary_expression "((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)" (parenthesized_expression "((char)piVar1[5] == '\x02')" (( "(") (binary_expression "(char)piVar1[5] == '\x02'" (cast_expression "(char)piVar1[5]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "piVar1[5]" (identifier "piVar1") ([ "[") (number_literal "5") (] "]"))) (== "==") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (|| "||") (parenthesized_expression "((uVar6 & 0x80) != 0)" (( "(") (binary_expression "(uVar6 & 0x80) != 0" (parenthesized_expression "(uVar6 & 0x80)" (( "(") (binary_expression "uVar6 & 0x80" (identifier "uVar6") (& "&") (number_literal "0x80")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_000aee99;" (goto "goto") (statement_identifier "LAB_000aee99") (; ";"))) (if_statement "if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))\n        goto LAB_000aeea6;" (if "if") (parenthesized_expression "((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))" (( "(") (binary_expression "(param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0)" (parenthesized_expression "(param_2 < 2)" (( "(") (binary_expression "param_2 < 2" (identifier "param_2") (< "<") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0)" (( "(") (comma_expression "puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0" (assignment_expression "puVar7 = (undefined4 *)piVar1[0x12]" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)piVar1[0x12]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[0x12]" (identifier "piVar1") ([ "[") (number_literal "0x12") (] "]")))) (, ",") (binary_expression "puVar7 == (undefined4 *)0x0" (identifier "puVar7") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (goto_statement "goto LAB_000aeea6;" (goto "goto") (statement_identifier "LAB_000aeea6") (; ";"))) (expression_statement "piVar2 = (int *)*puVar7;" (assignment_expression "piVar2 = (int *)*puVar7" (identifier "piVar2") (= "=") (cast_expression "(int *)*puVar7" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar7" (* "*") (identifier "puVar7")))) (; ";")) (if_statement "if (param_1 == piVar2) {\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }\n        else {\n          iVar9 = *piVar2;\n        }" (if "if") (parenthesized_expression "(param_1 == piVar2)" (( "(") (binary_expression "param_1 == piVar2" (identifier "param_1") (== "==") (identifier "piVar2")) () ")")) (compound_statement "{\n          do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);\n          iVar9 = *(int *)*puVar7;\n        }" ({ "{") (do_statement "do {\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          } while ((int *)*puVar7 == piVar2);" (do "do") (compound_statement "{\n            puVar7 = (undefined4 *)puVar7[3];\n            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;\n          }" ({ "{") (expression_statement "puVar7 = (undefined4 *)puVar7[3];" (assignment_expression "puVar7 = (undefined4 *)puVar7[3]" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)puVar7[3]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar7[3]" (identifier "puVar7") ([ "[") (number_literal "3") (] "]")))) (; ";")) (if_statement "if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;" (if "if") (parenthesized_expression "(puVar7 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar7 == (undefined4 *)0x0" (identifier "puVar7") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000aeea6;" (goto "goto") (statement_identifier "LAB_000aeea6") (; ";"))) (} "}")) (while "while") (parenthesized_expression "((int *)*puVar7 == piVar2)" (( "(") (binary_expression "(int *)*puVar7 == piVar2" (cast_expression "(int *)*puVar7" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar7" (* "*") (identifier "puVar7"))) (== "==") (identifier "piVar2")) () ")")) (; ";")) (expression_statement "iVar9 = *(int *)*puVar7;" (assignment_expression "iVar9 = *(int *)*puVar7" (identifier "iVar9") (= "=") (pointer_expression "*(int *)*puVar7" (* "*") (cast_expression "(int *)*puVar7" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar7" (* "*") (identifier "puVar7"))))) (; ";")) (} "}")) (else_clause "else {\n          iVar9 = *piVar2;\n        }" (else "else") (compound_statement "{\n          iVar9 = *piVar2;\n        }" ({ "{") (expression_statement "iVar9 = *piVar2;" (assignment_expression "iVar9 = *piVar2" (identifier "iVar9") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}")))) (labeled_statement "LAB_000aee9e:\n        if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }" (statement_identifier "LAB_000aee9e") (: ":") (if_statement "if (iVar9 != 0) {\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }" (if "if") (parenthesized_expression "(iVar9 != 0)" (( "(") (binary_expression "iVar9 != 0" (identifier "iVar9") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar8 = 0x106;\n          FUN_0004e100();\n          goto LAB_000aefad;\n        }" ({ "{") (expression_statement "uVar8 = 0x106;" (assignment_expression "uVar8 = 0x106" (identifier "uVar8") (= "=") (number_literal "0x106")) (; ";")) (expression_statement "FUN_0004e100();" (call_expression "FUN_0004e100()" (identifier "FUN_0004e100") (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_000aefad;" (goto "goto") (statement_identifier "LAB_000aefad") (; ";")) (} "}")))) (} "}")))) (labeled_statement "LAB_000aeea6:\n      uVar8 = FUN_0004e1e0();" (statement_identifier "LAB_000aeea6") (: ":") (expression_statement "uVar8 = FUN_0004e1e0();" (assignment_expression "uVar8 = FUN_0004e1e0()" (identifier "uVar8") (= "=") (call_expression "FUN_0004e1e0()" (identifier "FUN_0004e1e0") (argument_list "()" (( "(") () ")")))) (; ";"))) (if_statement "if (uVar8 != 0) goto LAB_000aefad;" (if "if") (parenthesized_expression "(uVar8 != 0)" (( "(") (binary_expression "uVar8 != 0" (identifier "uVar8") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000aefad;" (goto "goto") (statement_identifier "LAB_000aefad") (; ";"))) (expression_statement "uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;" (assignment_expression "uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef" (identifier "uVar6") (= "=") (binary_expression "*(ushort *)((int)piVar1 + 0x16) & 0xffef" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" (* "*") (cast_expression "(ushort *)((int)piVar1 + 0x16)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x16)" (( "(") (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x16")) () ")")))) (& "&") (number_literal "0xffef"))) (; ";")) (expression_statement "*(ushort *)((int)piVar1 + 0x16) = uVar6;" (assignment_expression "*(ushort *)((int)piVar1 + 0x16) = uVar6" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" (* "*") (cast_expression "(ushort *)((int)piVar1 + 0x16)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x16)" (( "(") (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x16")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (piVar1[0xb] == 0) {\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }" (if "if") (parenthesized_expression "(piVar1[0xb] == 0)" (( "(") (binary_expression "piVar1[0xb] == 0" (subscript_expression "piVar1[0xb]" (identifier "piVar1") ([ "[") (number_literal "0xb") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;\n      }" ({ "{") (expression_statement "*(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;" (assignment_expression "*(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" (* "*") (cast_expression "(ushort *)((int)piVar1 + 0x16)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x16)" (( "(") (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x16")) () ")")))) (= "=") (binary_expression "uVar6 | 0x10" (identifier "uVar6") (| "|") (number_literal "0x10"))) (; ";")) (} "}"))) (labeled_statement "LAB_000aeed7:\n      if (piVar1[3] == 0) goto LAB_000af0af;" (statement_identifier "LAB_000aeed7") (: ":") (if_statement "if (piVar1[3] == 0) goto LAB_000af0af;" (if "if") (parenthesized_expression "(piVar1[3] == 0)" (( "(") (binary_expression "piVar1[3] == 0" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000af0af;" (goto "goto") (statement_identifier "LAB_000af0af") (; ";")))) (while_statement "while( true ) {\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        bVar12 = param_2 != 0;\n        bVar4 = uVar8 == 0 && bVar12;\n        if (uVar8 == 0 && bVar12) break;\nLAB_000af010:\n        bVar4 = bVar12;\n        if (uVar8 == 0) goto LAB_000af018;\n        while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }\n      }" ({ "{") (expression_statement "bVar12 = param_2 != 0;" (assignment_expression "bVar12 = param_2 != 0" (identifier "bVar12") (= "=") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0"))) (; ";")) (expression_statement "bVar4 = uVar8 == 0 && bVar12;" (assignment_expression "bVar4 = uVar8 == 0 && bVar12" (identifier "bVar4") (= "=") (binary_expression "uVar8 == 0 && bVar12" (binary_expression "uVar8 == 0" (identifier "uVar8") (== "==") (number_literal "0")) (&& "&&") (identifier "bVar12"))) (; ";")) (if_statement "if (uVar8 == 0 && bVar12) break;" (if "if") (parenthesized_expression "(uVar8 == 0 && bVar12)" (( "(") (binary_expression "uVar8 == 0 && bVar12" (binary_expression "uVar8 == 0" (identifier "uVar8") (== "==") (number_literal "0")) (&& "&&") (identifier "bVar12")) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "LAB_000af010:\n        bVar4 = bVar12;" (statement_identifier "LAB_000af010") (: ":") (expression_statement "bVar4 = bVar12;" (assignment_expression "bVar4 = bVar12" (identifier "bVar4") (= "=") (identifier "bVar12")) (; ";"))) (if_statement "if (uVar8 == 0) goto LAB_000af018;" (if "if") (parenthesized_expression "(uVar8 == 0)" (( "(") (binary_expression "uVar8 == 0" (identifier "uVar8") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000af018;" (goto "goto") (statement_identifier "LAB_000af018") (; ";"))) (while_statement "while( true ) {\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          uVar11 = uVar8 & 0xff;\n          cVar5 = (char)piVar1[5];\nLAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }\n          if (uVar11 != 5) goto LAB_000aefad;\nLAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;\n          iVar9 = piVar1[1];\n          pcVar3 = *(code **)(iVar9 + 400);\n          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;\n          if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }\n          if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }\n          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;\n          if (piVar1[3] != 0) break;\nLAB_000af0af:\n          uVar8 = FUN_000ae670();\n          if (uVar8 == 0) goto LAB_000aeed7;\n        }" ({ "{") (expression_statement "uVar11 = uVar8 & 0xff;" (assignment_expression "uVar11 = uVar8 & 0xff" (identifier "uVar11") (= "=") (binary_expression "uVar8 & 0xff" (identifier "uVar8") (& "&") (number_literal "0xff"))) (; ";")) (expression_statement "cVar5 = (char)piVar1[5];" (assignment_expression "cVar5 = (char)piVar1[5]" (identifier "cVar5") (= "=") (cast_expression "(char)piVar1[5]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "piVar1[5]" (identifier "piVar1") ([ "[") (number_literal "5") (] "]")))) (; ";")) (labeled_statement "LAB_000aef18:\n          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }" (statement_identifier "LAB_000aef18") (: ":") (if_statement "if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }" (if "if") (parenthesized_expression "((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0))" (( "(") (binary_expression "(cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)" (parenthesized_expression "(cVar5 == '\0')" (( "(") (binary_expression "cVar5 == '\0'" (identifier "cVar5") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(iVar9 = piVar1[3], iVar9 != 0)" (( "(") (comma_expression "iVar9 = piVar1[3], iVar9 != 0" (assignment_expression "iVar9 = piVar1[3]" (identifier "iVar9") (= "=") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) (, ",") (binary_expression "iVar9 != 0" (identifier "iVar9") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\nLAB_000aef23:\n            piVar1[3] = 0;\n            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);\n            FUN_0003bb60();\n            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }\n          }" ({ "{") (labeled_statement "LAB_000aef23:\n            piVar1[3] = 0;" (statement_identifier "LAB_000aef23") (: ":") (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";"))) (expression_statement "iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);" (assignment_expression "iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(*(int *)(iVar9 + 0x48) + 0x14)" (* "*") (cast_expression "(int *)(*(int *)(iVar9 + 0x48) + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar9 + 0x48) + 0x14)" (( "(") (binary_expression "*(int *)(iVar9 + 0x48) + 0x14" (pointer_expression "*(int *)(iVar9 + 0x48)" (* "*") (cast_expression "(int *)(iVar9 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x48)" (( "(") (binary_expression "iVar9 + 0x48" (identifier "iVar9") (+ "+") (number_literal "0x48")) () ")")))) (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "FUN_0003bb60();" (call_expression "FUN_0003bb60()" (identifier "FUN_0003bb60") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {\n              FUN_000ad9a0();\n            }" (if "if") (parenthesized_expression "(*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0)" (( "(") (binary_expression "*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0" (pointer_expression "*(int *)(*(int *)(iVar9 + 0xd0) + 0xc)" (* "*") (cast_expression "(int *)(*(int *)(iVar9 + 0xd0) + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar9 + 0xd0) + 0xc)" (( "(") (binary_expression "*(int *)(iVar9 + 0xd0) + 0xc" (pointer_expression "*(int *)(iVar9 + 0xd0)" (* "*") (cast_expression "(int *)(iVar9 + 0xd0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0xd0)" (( "(") (binary_expression "iVar9 + 0xd0" (identifier "iVar9") (+ "+") (number_literal "0xd0")) () ")")))) (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              FUN_000ad9a0();\n            }" ({ "{") (expression_statement "FUN_000ad9a0();" (call_expression "FUN_000ad9a0()" (identifier "FUN_000ad9a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")))) (if_statement "if (uVar11 != 5) goto LAB_000aefad;" (if "if") (parenthesized_expression "(uVar11 != 5)" (( "(") (binary_expression "uVar11 != 5" (identifier "uVar11") (!= "!=") (number_literal "5")) () ")")) (goto_statement "goto LAB_000aefad;" (goto "goto") (statement_identifier "LAB_000aefad") (; ";"))) (labeled_statement "LAB_000aef55:\n          if ((char)piVar1[5] != '\0') goto LAB_000aefad;" (statement_identifier "LAB_000aef55") (: ":") (if_statement "if ((char)piVar1[5] != '\0') goto LAB_000aefad;" (if "if") (parenthesized_expression "((char)piVar1[5] != '\0')" (( "(") (binary_expression "(char)piVar1[5] != '\0'" (cast_expression "(char)piVar1[5]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "piVar1[5]" (identifier "piVar1") ([ "[") (number_literal "5") (] "]"))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000aefad;" (goto "goto") (statement_identifier "LAB_000aefad") (; ";")))) (expression_statement "iVar9 = piVar1[1];" (assignment_expression "iVar9 = piVar1[1]" (identifier "iVar9") (= "=") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pcVar3 = *(code **)(iVar9 + 400);" (assignment_expression "pcVar3 = *(code **)(iVar9 + 400)" (identifier "pcVar3") (= "=") (pointer_expression "*(code **)(iVar9 + 400)" (* "*") (cast_expression "(code **)(iVar9 + 400)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar9 + 400)" (( "(") (binary_expression "iVar9 + 400" (identifier "iVar9") (+ "+") (number_literal "400")) () ")"))))) (; ";")) (if_statement "if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))\n          goto LAB_000aefad;" (if "if") (parenthesized_expression "((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))" (( "(") (binary_expression "(pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0)" (parenthesized_expression "(pcVar3 == (code *)0x0)" (( "(") (binary_expression "pcVar3 == (code *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0)" (( "(") (comma_expression "iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0" (assignment_expression "iVar10 = *(int *)(iVar9 + 0x198)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(iVar9 + 0x198)" (* "*") (cast_expression "(int *)(iVar9 + 0x198)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x198)" (( "(") (binary_expression "iVar9 + 0x198" (identifier "iVar9") (+ "+") (number_literal "0x198")) () ")"))))) (, ",") (binary_expression "iVar10 < 0" (identifier "iVar10") (< "<") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_000aefad;" (goto "goto") (statement_identifier "LAB_000aefad") (; ";"))) (if_statement "if (*(char *)(iVar9 + 0x19c) == '\0') {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }\n          else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }" (if "if") (parenthesized_expression "(*(char *)(iVar9 + 0x19c) == '\0')" (( "(") (binary_expression "*(char *)(iVar9 + 0x19c) == '\0'" (pointer_expression "*(char *)(iVar9 + 0x19c)" (* "*") (cast_expression "(char *)(iVar9 + 0x19c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x19c)" (( "(") (binary_expression "iVar9 + 0x19c" (identifier "iVar9") (+ "+") (number_literal "0x19c")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);\n          }" ({ "{") (expression_statement "iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);" (assignment_expression "iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10)" (identifier "iVar10") (= "=") (call_expression "(*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10)" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(*(undefined4 *)(iVar9 + 0x194),iVar10)" (( "(") (pointer_expression "*(undefined4 *)(iVar9 + 0x194)" (* "*") (cast_expression "(undefined4 *)(iVar9 + 0x194)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x194)" (( "(") (binary_expression "iVar9 + 0x194" (identifier "iVar9") (+ "+") (number_literal "0x194")) () ")")))) (, ",") (identifier "iVar10") () ")")))) (; ";")) (} "}")) (else_clause "else {\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }" (else "else") (compound_statement "{\n            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );\n          }" ({ "{") (expression_statement "iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              );" (assignment_expression "iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              )" (identifier "iVar10") (= "=") (call_expression "(*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              )" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)\n                              )" (( "(") (pointer_expression "*(undefined4 *)(iVar9 + 0x194)" (* "*") (cast_expression "(undefined4 *)(iVar9 + 0x194)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x194)" (( "(") (binary_expression "iVar9 + 0x194" (identifier "iVar9") (+ "+") (number_literal "0x194")) () ")")))) (, ",") (identifier "iVar10") (, ",") (pointer_expression "*(undefined4 *)(*piVar1 + 0x3c)" (* "*") (cast_expression "(undefined4 *)(*piVar1 + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + 0x3c)" (( "(") (binary_expression "*piVar1 + 0x3c" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x3c")) () ")")))) () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar10 == 0) {\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;\n            goto LAB_000aefad;\n          }" ({ "{") (expression_statement "*(undefined4 *)(iVar9 + 0x198) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar9 + 0x198) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar9 + 0x198)" (* "*") (cast_expression "(undefined4 *)(iVar9 + 0x198)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x198)" (( "(") (binary_expression "iVar9 + 0x198" (identifier "iVar9") (+ "+") (number_literal "0x198")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (goto_statement "goto LAB_000aefad;" (goto "goto") (statement_identifier "LAB_000aefad") (; ";")) (} "}"))) (expression_statement "*(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;" (assignment_expression "*(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1" (pointer_expression "*(int *)(iVar9 + 0x198)" (* "*") (cast_expression "(int *)(iVar9 + 0x198)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x198)" (( "(") (binary_expression "iVar9 + 0x198" (identifier "iVar9") (+ "+") (number_literal "0x198")) () ")")))) (= "=") (binary_expression "*(int *)(iVar9 + 0x198) + 1" (pointer_expression "*(int *)(iVar9 + 0x198)" (* "*") (cast_expression "(int *)(iVar9 + 0x198)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x198)" (( "(") (binary_expression "iVar9 + 0x198" (identifier "iVar9") (+ "+") (number_literal "0x198")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (piVar1[3] != 0) break;" (if "if") (parenthesized_expression "(piVar1[3] != 0)" (( "(") (binary_expression "piVar1[3] != 0" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "LAB_000af0af:\n          uVar8 = FUN_000ae670();" (statement_identifier "LAB_000af0af") (: ":") (expression_statement "uVar8 = FUN_000ae670();" (assignment_expression "uVar8 = FUN_000ae670()" (identifier "uVar8") (= "=") (call_expression "FUN_000ae670()" (identifier "FUN_000ae670") (argument_list "()" (( "(") () ")")))) (; ";"))) (if_statement "if (uVar8 == 0) goto LAB_000aeed7;" (if "if") (parenthesized_expression "(uVar8 == 0)" (( "(") (binary_expression "uVar8 == 0" (identifier "uVar8") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000aeed7;" (goto "goto") (statement_identifier "LAB_000aeed7") (; ";"))) (} "}"))) (} "}"))) (if_statement "if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }" (if "if") (parenthesized_expression "((*(byte *)((int)piVar1 + 0x16) & 1) != 0)" (( "(") (binary_expression "(*(byte *)((int)piVar1 + 0x16) & 1) != 0" (parenthesized_expression "(*(byte *)((int)piVar1 + 0x16) & 1)" (( "(") (binary_expression "*(byte *)((int)piVar1 + 0x16) & 1" (pointer_expression "*(byte *)((int)piVar1 + 0x16)" (* "*") (cast_expression "(byte *)((int)piVar1 + 0x16)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x16)" (( "(") (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x16")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        cVar5 = (char)piVar1[5];\n        uVar11 = 8;\n        uVar8 = 8;\n        goto LAB_000aef18;\n      }" ({ "{") (expression_statement "cVar5 = (char)piVar1[5];" (assignment_expression "cVar5 = (char)piVar1[5]" (identifier "cVar5") (= "=") (cast_expression "(char)piVar1[5]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "piVar1[5]" (identifier "piVar1") ([ "[") (number_literal "5") (] "]")))) (; ";")) (expression_statement "uVar11 = 8;" (assignment_expression "uVar11 = 8" (identifier "uVar11") (= "=") (number_literal "8")) (; ";")) (expression_statement "uVar8 = 8;" (assignment_expression "uVar8 = 8" (identifier "uVar8") (= "=") (number_literal "8")) (; ";")) (goto_statement "goto LAB_000aef18;" (goto "goto") (statement_identifier "LAB_000aef18") (; ";")) (} "}"))) (expression_statement "uVar8 = FUN_00061ac0();" (assignment_expression "uVar8 = FUN_00061ac0()" (identifier "uVar8") (= "=") (call_expression "FUN_00061ac0()" (identifier "FUN_00061ac0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (uVar8 != 0) {\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }" (if "if") (parenthesized_expression "(uVar8 != 0)" (( "(") (binary_expression "uVar8 != 0" (identifier "uVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        cVar5 = (char)piVar1[5];\n        if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }\n        uVar11 = uVar8 & 0xff;\n        goto LAB_000aef18;\n      }" ({ "{") (expression_statement "cVar5 = (char)piVar1[5];" (assignment_expression "cVar5 = (char)piVar1[5]" (identifier "cVar5") (= "=") (cast_expression "(char)piVar1[5]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "piVar1[5]" (identifier "piVar1") ([ "[") (number_literal "5") (] "]")))) (; ";")) (if_statement "if (uVar8 == 0x205) {\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }" (if "if") (parenthesized_expression "(uVar8 == 0x205)" (( "(") (binary_expression "uVar8 == 0x205" (identifier "uVar8") (== "==") (number_literal "0x205")) () ")")) (compound_statement "{\n          if (cVar5 != '\0') goto LAB_000aef55;\n          iVar9 = piVar1[3];\n          uVar8 = 5;\n          uVar11 = 5;\n          if (iVar9 != 0) goto LAB_000aef23;\n          goto LAB_000aef55;\n        }" ({ "{") (if_statement "if (cVar5 != '\0') goto LAB_000aef55;" (if "if") (parenthesized_expression "(cVar5 != '\0')" (( "(") (binary_expression "cVar5 != '\0'" (identifier "cVar5") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000aef55;" (goto "goto") (statement_identifier "LAB_000aef55") (; ";"))) (expression_statement "iVar9 = piVar1[3];" (assignment_expression "iVar9 = piVar1[3]" (identifier "iVar9") (= "=") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "uVar8 = 5;" (assignment_expression "uVar8 = 5" (identifier "uVar8") (= "=") (number_literal "5")) (; ";")) (expression_statement "uVar11 = 5;" (assignment_expression "uVar11 = 5" (identifier "uVar11") (= "=") (number_literal "5")) (; ";")) (if_statement "if (iVar9 != 0) goto LAB_000aef23;" (if "if") (parenthesized_expression "(iVar9 != 0)" (( "(") (binary_expression "iVar9 != 0" (identifier "iVar9") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000aef23;" (goto "goto") (statement_identifier "LAB_000aef23") (; ";"))) (goto_statement "goto LAB_000aef55;" (goto "goto") (statement_identifier "LAB_000aef55") (; ";")) (} "}"))) (expression_statement "uVar11 = uVar8 & 0xff;" (assignment_expression "uVar11 = uVar8 & 0xff" (identifier "uVar11") (= "=") (binary_expression "uVar8 & 0xff" (identifier "uVar8") (& "&") (number_literal "0xff"))) (; ";")) (goto_statement "goto LAB_000aef18;" (goto "goto") (statement_identifier "LAB_000aef18") (; ";")) (} "}"))) (if_statement "if (piVar1[0xb] == 0) {\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }" (if "if") (parenthesized_expression "(piVar1[0xb] == 0)" (( "(") (binary_expression "piVar1[0xb] == 0" (subscript_expression "piVar1[0xb]" (identifier "piVar1") ([ "[") (number_literal "0xb") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar8 = FUN_000aeab0();\n        goto LAB_000af010;\n      }" ({ "{") (expression_statement "uVar8 = FUN_000aeab0();" (assignment_expression "uVar8 = FUN_000aeab0()" (identifier "uVar8") (= "=") (call_expression "FUN_000aeab0()" (identifier "FUN_000aeab0") (argument_list "()" (( "(") () ")")))) (; ";")) (goto_statement "goto LAB_000af010;" (goto "goto") (statement_identifier "LAB_000af010") (; ";")) (} "}"))) (labeled_statement "LAB_000af018:\n      if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }" (statement_identifier "LAB_000af018") (: ":") (if_statement "if (((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }" (if "if") (parenthesized_expression "(((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0'))" (( "(") (binary_expression "((char)param_1[2] == '\0') &&\n         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')" (parenthesized_expression "((char)param_1[2] == '\0')" (( "(") (binary_expression "(char)param_1[2] == '\0'" (cast_expression "(char)param_1[2]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')" (( "(") (comma_expression "piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0'" (assignment_expression "piVar1[10] = piVar1[10] + 1" (subscript_expression "piVar1[10]" (identifier "piVar1") ([ "[") (number_literal "10") (] "]")) (= "=") (binary_expression "piVar1[10] + 1" (subscript_expression "piVar1[10]" (identifier "piVar1") ([ "[") (number_literal "10") (] "]")) (+ "+") (number_literal "1"))) (, ",") (binary_expression "*(char *)((int)param_1 + 9) != '\0'" (pointer_expression "*(char *)((int)param_1 + 9)" (* "*") (cast_expression "(char *)((int)param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 9)" (( "(") (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (compound_statement "{\n        *(undefined1 *)(param_1 + 10) = 1;\n        param_1[0xb] = piVar1[0x12];\n        piVar1[0x12] = (int)(param_1 + 8);\n      }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 10) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 10) = 1" (pointer_expression "*(undefined1 *)(param_1 + 10)" (* "*") (cast_expression "(undefined1 *)(param_1 + 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "param_1[0xb] = piVar1[0x12];" (assignment_expression "param_1[0xb] = piVar1[0x12]" (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]")) (= "=") (subscript_expression "piVar1[0x12]" (identifier "piVar1") ([ "[") (number_literal "0x12") (] "]"))) (; ";")) (expression_statement "piVar1[0x12] = (int)(param_1 + 8);" (assignment_expression "piVar1[0x12] = (int)(param_1 + 8)" (subscript_expression "piVar1[0x12]" (identifier "piVar1") ([ "[") (number_literal "0x12") (] "]")) (= "=") (cast_expression "(int)(param_1 + 8)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}")))) (if_statement "if (!bVar4) {\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }" (if "if") (parenthesized_expression "(!bVar4)" (( "(") (unary_expression "!bVar4" (! "!") (identifier "bVar4")) () ")")) (compound_statement "{\n        *(undefined1 *)(param_1 + 2) = 1;\n        if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }\n        goto LAB_000af126;\n      }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 2) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 2) = 1" (pointer_expression "*(undefined1 *)(param_1 + 2)" (* "*") (cast_expression "(undefined1 *)(param_1 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "1")) (; ";")) (if_statement "if ((char)piVar1[5] == '\0') {\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }" (if "if") (parenthesized_expression "((char)piVar1[5] == '\0')" (( "(") (binary_expression "(char)piVar1[5] == '\0'" (cast_expression "(char)piVar1[5]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "piVar1[5]" (identifier "piVar1") ([ "[") (number_literal "5") (] "]"))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          *(undefined1 *)(piVar1 + 5) = 1;\n        }" ({ "{") (expression_statement "*(undefined1 *)(piVar1 + 5) = 1;" (assignment_expression "*(undefined1 *)(piVar1 + 5) = 1" (pointer_expression "*(undefined1 *)(piVar1 + 5)" (* "*") (cast_expression "(undefined1 *)(piVar1 + 5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 5)" (( "(") (binary_expression "piVar1 + 5" (identifier "piVar1") (+ "+") (number_literal "5")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (goto_statement "goto LAB_000af126;" (goto "goto") (statement_identifier "LAB_000af126") (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(param_1 + 2) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 2) = 2" (pointer_expression "*(undefined1 *)(param_1 + 2)" (* "*") (cast_expression "(undefined1 *)(param_1 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "2")) (; ";")) (if_statement "if (*(byte *)(piVar1 + 5) < 2) {\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }" (if "if") (parenthesized_expression "(*(byte *)(piVar1 + 5) < 2)" (( "(") (binary_expression "*(byte *)(piVar1 + 5) < 2" (pointer_expression "*(byte *)(piVar1 + 5)" (* "*") (cast_expression "(byte *)(piVar1 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 5)" (( "(") (binary_expression "piVar1 + 5" (identifier "piVar1") (+ "+") (number_literal "5")) () ")")))) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        *(undefined1 *)(piVar1 + 5) = 2;\n      }" ({ "{") (expression_statement "*(undefined1 *)(piVar1 + 5) = 2;" (assignment_expression "*(undefined1 *)(piVar1 + 5) = 2" (pointer_expression "*(undefined1 *)(piVar1 + 5)" (* "*") (cast_expression "(undefined1 *)(piVar1 + 5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 5)" (( "(") (binary_expression "piVar1 + 5" (identifier "piVar1") (+ "+") (number_literal "5")) () ")")))) (= "=") (number_literal "2")) (; ";")) (} "}"))) (expression_statement "iVar9 = piVar1[3];" (assignment_expression "iVar9 = piVar1[3]" (identifier "iVar9") (= "=") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "piVar1[0x13] = (int)param_1;" (assignment_expression "piVar1[0x13] = (int)param_1" (subscript_expression "piVar1[0x13]" (identifier "piVar1") ([ "[") (number_literal "0x13") (] "]")) (= "=") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (; ";")) (expression_statement "uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;" (assignment_expression "uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf" (identifier "uVar6") (= "=") (binary_expression "*(ushort *)((int)piVar1 + 0x16) & 0xffbf" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" (* "*") (cast_expression "(ushort *)((int)piVar1 + 0x16)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x16)" (( "(") (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x16")) () ")")))) (& "&") (number_literal "0xffbf"))) (; ";")) (if_statement "if (1 < param_2) {\n        uVar6 = uVar6 | 0x40;\n      }" (if "if") (parenthesized_expression "(1 < param_2)" (( "(") (binary_expression "1 < param_2" (number_literal "1") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n        uVar6 = uVar6 | 0x40;\n      }" ({ "{") (expression_statement "uVar6 = uVar6 | 0x40;" (assignment_expression "uVar6 = uVar6 | 0x40" (identifier "uVar6") (= "=") (binary_expression "uVar6 | 0x40" (identifier "uVar6") (| "|") (number_literal "0x40"))) (; ";")) (} "}"))) (expression_statement "*(ushort *)((int)piVar1 + 0x16) = uVar6;" (assignment_expression "*(ushort *)((int)piVar1 + 0x16) = uVar6" (pointer_expression "*(ushort *)((int)piVar1 + 0x16)" (* "*") (cast_expression "(ushort *)((int)piVar1 + 0x16)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 0x16)" (( "(") (binary_expression "(int)piVar1 + 0x16" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "0x16")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);" (assignment_expression "uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" (identifier "uVar8") (= "=") (pointer_expression "*(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" (* "*") (cast_expression "(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar9 + 0x38) + 0x1c)" (( "(") (binary_expression "*(int *)(iVar9 + 0x38) + 0x1c" (pointer_expression "*(int *)(iVar9 + 0x38)" (* "*") (cast_expression "(int *)(iVar9 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x38)" (( "(") (binary_expression "iVar9 + 0x38" (identifier "iVar9") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (if_statement "if (piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }" (if "if") (parenthesized_expression "(piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18))" (( "(") (binary_expression "piVar1[0xb] !=\n          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)" (subscript_expression "piVar1[0xb]" (identifier "piVar1") ([ "[") (number_literal "0xb") (] "]")) (!= "!=") (parenthesized_expression "(uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)" (( "(") (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8" (binary_expression "uVar8 >> 0x18" (identifier "uVar8") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar8 & 0xff0000) >> 8" (parenthesized_expression "(uVar8 & 0xff0000)" (( "(") (binary_expression "uVar8 & 0xff0000" (identifier "uVar8") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar8 & 0xff00) << 8" (parenthesized_expression "(uVar8 & 0xff00)" (( "(") (binary_expression "uVar8 & 0xff00" (identifier "uVar8") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar8 << 0x18" (identifier "uVar8") (<< "<<") (number_literal "0x18"))) () ")"))) () ")")) (compound_statement "{\n        uVar8 = FUN_000aa4a0();\n        if (uVar8 != 0) goto LAB_000aefad;\n        uVar8 = piVar1[0xb];\n        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n      }" ({ "{") (expression_statement "uVar8 = FUN_000aa4a0();" (assignment_expression "uVar8 = FUN_000aa4a0()" (identifier "uVar8") (= "=") (call_expression "FUN_000aa4a0()" (identifier "FUN_000aa4a0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (uVar8 != 0) goto LAB_000aefad;" (if "if") (parenthesized_expression "(uVar8 != 0)" (( "(") (binary_expression "uVar8 != 0" (identifier "uVar8") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000aefad;" (goto "goto") (statement_identifier "LAB_000aefad") (; ";"))) (expression_statement "uVar8 = piVar1[0xb];" (assignment_expression "uVar8 = piVar1[0xb]" (identifier "uVar8") (= "=") (subscript_expression "piVar1[0xb]" (identifier "piVar1") ([ "[") (number_literal "0xb") (] "]"))) (; ";")) (expression_statement "*(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;" (assignment_expression "*(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =\n             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (pointer_expression "*(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" (* "*") (cast_expression "(uint *)(*(int *)(iVar9 + 0x38) + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar9 + 0x38) + 0x1c)" (( "(") (binary_expression "*(int *)(iVar9 + 0x38) + 0x1c" (pointer_expression "*(int *)(iVar9 + 0x38)" (* "*") (cast_expression "(int *)(iVar9 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x38)" (( "(") (binary_expression "iVar9 + 0x38" (identifier "iVar9") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8" (binary_expression "uVar8 >> 0x18" (identifier "uVar8") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar8 & 0xff0000) >> 8" (parenthesized_expression "(uVar8 & 0xff0000)" (( "(") (binary_expression "uVar8 & 0xff0000" (identifier "uVar8") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar8 & 0xff00) << 8" (parenthesized_expression "(uVar8 & 0xff00)" (( "(") (binary_expression "uVar8 & 0xff00" (identifier "uVar8") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar8 << 0x18" (identifier "uVar8") (<< "<<") (number_literal "0x18")))) (; ";")) (} "}"))) (if_statement "if (param_3 != (uint *)0x0) goto LAB_000af0d8;" (if "if") (parenthesized_expression "(param_3 != (uint *)0x0)" (( "(") (binary_expression "param_3 != (uint *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000af0d8;" (goto "goto") (statement_identifier "LAB_000af0d8") (; ";"))) (goto_statement "goto LAB_000af0f1;" (goto "goto") (statement_identifier "LAB_000af0f1") (; ";")) (} "}"))) (labeled_statement "LAB_000af126:\n    if (param_3 != (uint *)0x0) goto LAB_000af0d8;" (statement_identifier "LAB_000af126") (: ":") (if_statement "if (param_3 != (uint *)0x0) goto LAB_000af0d8;" (if "if") (parenthesized_expression "(param_3 != (uint *)0x0)" (( "(") (binary_expression "param_3 != (uint *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000af0d8;" (goto "goto") (statement_identifier "LAB_000af0d8") (; ";")))) (} "}")))) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000aefad:\n  if (*(char *)((int)param_1 + 9) != '\0') {\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }" (statement_identifier "LAB_000aefad") (: ":") (if_statement "if (*(char *)((int)param_1 + 9) != '\0') {\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)((int)param_1 + 9) != '\0')" (( "(") (binary_expression "*(char *)((int)param_1 + 9) != '\0'" (pointer_expression "*(char *)((int)param_1 + 9)" (* "*") (cast_expression "(char *)((int)param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 9)" (( "(") (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    param_1 = param_1 + 3;\n    *param_1 = *param_1 + -1;\n    if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }\n  }" ({ "{") (expression_statement "param_1 = param_1 + 3;" (assignment_expression "param_1 = param_1 + 3" (identifier "param_1") (= "=") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "*param_1 = *param_1 + -1;" (assignment_expression "*param_1 = *param_1 + -1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*param_1 + -1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (*param_1 == 0) {\n      FUN_000453f0();\n      return uVar8;\n    }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_000453f0();\n      return uVar8;\n    }" ({ "{") (expression_statement "FUN_000453f0();" (call_expression "FUN_000453f0()" (identifier "FUN_000453f0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return uVar8;" (return "return") (identifier "uVar8") (; ";")) (} "}"))) (} "}")))) (return_statement "return uVar8;" (return "return") (identifier "uVar8") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *var_9,int var_4,int *var_2)

{
  int *piVar1;
  type_2 *pBVar2;
  type_1 *var_10;
  type_3 *pPVar4;
  type_4 *var_20;
  void *pvVar6;
  bool bVar7;
  type_5 var_15;
  type_6 var_7;
  type_7 *var_8;
  type_8 var_3;
  type_9 *var_16;
  int var_5;
  type_10 *var_11;
  type_8 var_19;
  bool var_14;
  type_2 *in_stack_ffffffd4;
  
  pBVar2 = var_9->pBt;
  if (var_9->sharable != '\0') {
    var_1(var_9);
  }
  if (var_9->inTrans == '\x02') {
    if (var_2 != (int *)0x0) {
LAB_000af0d8:
      var_3 = *(type_8 *)(pBVar2->pPage1->aData + 0x28);
      *var_2 =
           var_3 >> 0x18 | (var_3 & 0xff0000) >> 8 | (var_3 & 0xff00) << 8 | var_3 << 0x18;
    }
    if (var_4 != 0) {
LAB_000af0f1:
      var_5 = var_9->db->nSavepoint;
      pPVar4 = pBVar2->pPager;
      if ((pPVar4->nSavepoint < var_5) && (pPVar4->useJournal != '\0')) {
        var_3 = var_6(pPVar4,var_5);
        goto LAB_000aefad;
      }
    }
  }
  else {
    if ((var_9->inTrans != '\x01') || (var_4 != 0)) {
      var_7 = pBVar2->btsFlags;
      if (((var_9->db->flags & 0x2000000) == 0) || (pBVar2->pPager->readOnly != '\0')) {
        if ((var_7 & 1) == 0) goto LAB_000aee37;
        var_3 = 8;
        if (var_4 != 0) goto LAB_000aefad;
LAB_000aee95:
        if ((var_7 & 0x80) != 0) {
LAB_000aee99:
          var_11 = pBVar2->pWriter->db;
          goto LAB_000aee9e;
        }
      }
      else {
        var_7 = var_7 & 0xfffe;
        pBVar2->btsFlags = var_7;
LAB_000aee37:
        if (var_4 == 0) goto LAB_000aee95;
        if ((pBVar2->inTransaction == '\x02') || ((var_7 & 0x80) != 0)) goto LAB_000aee99;
        if ((var_4 < 2) || (var_8 = pBVar2->pLock, var_8 == (type_7 *)0x0)) goto LAB_000aeea6;
        var_10 = var_8->pBtree;
        if (var_9 == var_10) {
          do {
            var_8 = var_8->pNext;
            if (var_8 == (type_7 *)0x0) goto LAB_000aeea6;
          } while (var_8->pBtree == var_10);
          var_11 = var_8->pBtree->db;
        }
        else {
          var_11 = var_10->db;
        }
LAB_000aee9e:
        if (var_11 != (type_10 *)0x0) {
          var_3 = 0x106;
          var_12(var_9->db,var_11);
          goto LAB_000aefad;
        }
      }
LAB_000aeea6:
      var_3 = var_13(var_9,1,'\x01');
      if (var_3 != 0) goto LAB_000aefad;
      var_7 = pBVar2->btsFlags & 0xffef;
      pBVar2->btsFlags = var_7;
      if (pBVar2->nPage == 0) {
        pBVar2->btsFlags = var_7 | 0x10;
      }
LAB_000aeed7:
      if (pBVar2->pPage1 == (type_9 *)0x0) goto LAB_000af0af;
      while( true ) {
        var_14 = var_4 != 0;
        bVar7 = var_3 == 0 && var_14;
        if (var_3 == 0 && var_14) break;
LAB_000af010:
        bVar7 = var_14;
        if (var_3 == 0) goto LAB_000af018;
        while( true ) {
          var_19 = var_3 & 0xff;
          var_15 = pBVar2->inTransaction;
LAB_000aef18:
          if ((var_15 == '\0') && (var_16 = pBVar2->pPage1, var_16 != (type_9 *)0x0)) {
LAB_000aef23:
            pBVar2->pPage1 = (type_9 *)0x0;
            pPVar4 = var_16->pDbPage->pPager;
            var_17(var_16->pDbPage);
            if (pPVar4->pPCache->nRefSum == 0) {
              var_18(pPVar4);
            }
          }
          if (var_19 != 5) goto LAB_000aefad;
LAB_000aef55:
          if (pBVar2->inTransaction != '\0') goto LAB_000aefad;
          var_11 = pBVar2->db;
          var_20 = (var_11->busyHandler).xBusyHandler;
          if ((var_20 == (type_4 *)0x0) ||
             (var_5 = (var_11->busyHandler).nBusy, var_5 < 0)) goto LAB_000aefad;
          pvVar6 = (var_11->busyHandler).pBusyArg;
          if ((var_11->busyHandler).bExtraFileArg == '\0') {
            var_5 = (*var_20)(pvVar6,var_5);
          }
          else {
            var_5 = (*var_20)(pvVar6,var_5);
          }
          if (var_5 == 0) {
            (var_11->busyHandler).nBusy = -1;
            goto LAB_000aefad;
          }
          piVar1 = &(var_11->busyHandler).nBusy;
          *piVar1 = *piVar1 + 1;
          if (pBVar2->pPage1 != (type_9 *)0x0) break;
LAB_000af0af:
          var_3 = var_21(in_stack_ffffffd4);
          if (var_3 == 0) goto LAB_000aeed7;
        }
      }
      if ((pBVar2->btsFlags & 1) != 0) {
        var_15 = pBVar2->inTransaction;
        var_19 = 8;
        var_3 = 8;
        goto LAB_000aef18;
      }
      var_3 = var_22(pBVar2->pPager,(type_8)(1 < var_4),
                                 (type_8)(var_9->db->temp_store == '\x02'));
      if (var_3 != 0) {
        var_15 = pBVar2->inTransaction;
        if (var_3 == 0x205) {
          if (var_15 != '\0') goto LAB_000aef55;
          var_16 = pBVar2->pPage1;
          var_3 = 5;
          var_19 = 5;
          if (var_16 != (type_9 *)0x0) goto LAB_000aef23;
          goto LAB_000aef55;
        }
        var_19 = var_3 & 0xff;
        goto LAB_000aef18;
      }
      if (pBVar2->nPage == 0) {
        var_3 = var_23(in_stack_ffffffd4);
        goto LAB_000af010;
      }
LAB_000af018:
      if ((var_9->inTrans == '\0') &&
         (pBVar2->nTransaction = pBVar2->nTransaction + 1, var_9->sharable != '\0')) {
        (var_9->lock).eLock = '\x01';
        (var_9->lock).pNext = pBVar2->pLock;
        pBVar2->pLock = &var_9->lock;
      }
      if (!bVar7) {
        var_9->inTrans = '\x01';
        if (pBVar2->inTransaction == '\0') {
          pBVar2->inTransaction = '\x01';
        }
        goto LAB_000af126;
      }
      var_9->inTrans = '\x02';
      if (pBVar2->inTransaction < 2) {
        pBVar2->inTransaction = '\x02';
      }
      var_16 = pBVar2->pPage1;
      pBVar2->pWriter = var_9;
      var_7 = pBVar2->btsFlags & 0xffbf;
      if (1 < var_4) {
        var_7 = var_7 | 0x40;
      }
      pBVar2->btsFlags = var_7;
      var_3 = *(type_8 *)(var_16->aData + 0x1c);
      if (pBVar2->nPage !=
          (var_3 >> 0x18 | (var_3 & 0xff0000) >> 8 | (var_3 & 0xff00) << 8 | var_3 << 0x18)) {
        var_3 = var_24(var_16->pDbPage);
        if (var_3 != 0) goto LAB_000aefad;
        var_3 = pBVar2->nPage;
        *(type_8 *)(var_16->aData + 0x1c) =
             var_3 >> 0x18 | (var_3 & 0xff0000) >> 8 | (var_3 & 0xff00) << 8 | var_3 << 0x18;
      }
      if (var_2 != (int *)0x0) goto LAB_000af0d8;
      goto LAB_000af0f1;
    }
LAB_000af126:
    if (var_2 != (int *)0x0) goto LAB_000af0d8;
  }
  var_3 = 0;
LAB_000aefad:
  if (var_9->sharable != '\0') {
    piVar1 = &var_9->wantToLock;
    *piVar1 = *piVar1 + -1;
    if (*piVar1 == 0) {
      var_25((type_1 *)var_9->pBt,(type_1 *)&var_9->locked);
      return var_3;
    }
  }
  return var_3;
}


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

uint __regparm3 MASKED(int *param_1,int param_2,uint *param_3)

{
  int *piVar1;
  int *piVar2;
  code *pcVar3;
  bool bVar4;
  char cVar5;
  ushort uVar6;
  undefined4 *puVar7;
  uint uVar8;
  int iVar9;
  int iVar10;
  uint uVar11;
  bool bVar12;
  
  piVar1 = (int *)param_1[1];
  if (*(char *)((int)param_1 + 9) != '\0') {
    FUN_00045510();
  }
  if ((char)param_1[2] == '\x02') {
    if (param_3 != (uint *)0x0) {
LAB_000af0d8:
      uVar8 = *(uint *)(*(int *)(piVar1[3] + 0x38) + 0x28);
      *param_3 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;
    }
    if (param_2 != 0) {
LAB_000af0f1:
      if ((*(int *)(*piVar1 + 0x60) < *(int *)(*param_1 + 0x1c8)) &&
         (*(char *)(*piVar1 + 6) != '\0')) {
        uVar8 = FUN_00057820();
        goto LAB_000aefad;
      }
    }
  }
  else {
    if (((char)param_1[2] != '\x01') || (param_2 != 0)) {
      uVar6 = *(ushort *)((int)piVar1 + 0x16);
      if (((*(byte *)(*param_1 + 0x1f) & 2) == 0) || (*(char *)(*piVar1 + 0xe) != '\0')) {
        if ((uVar6 & 1) == 0) goto LAB_000aee37;
        uVar8 = 8;
        if (param_2 != 0) goto LAB_000aefad;
LAB_000aee95:
        if ((uVar6 & 0x80) != 0) {
LAB_000aee99:
          iVar9 = *(int *)piVar1[0x13];
          goto LAB_000aee9e;
        }
      }
      else {
        uVar6 = uVar6 & 0xfffe;
        *(ushort *)((int)piVar1 + 0x16) = uVar6;
LAB_000aee37:
        if (param_2 == 0) goto LAB_000aee95;
        if (((char)piVar1[5] == '\x02') || ((uVar6 & 0x80) != 0)) goto LAB_000aee99;
        if ((param_2 < 2) || (puVar7 = (undefined4 *)piVar1[0x12], puVar7 == (undefined4 *)0x0))
        goto LAB_000aeea6;
        piVar2 = (int *)*puVar7;
        if (param_1 == piVar2) {
          do {
            puVar7 = (undefined4 *)puVar7[3];
            if (puVar7 == (undefined4 *)0x0) goto LAB_000aeea6;
          } while ((int *)*puVar7 == piVar2);
          iVar9 = *(int *)*puVar7;
        }
        else {
          iVar9 = *piVar2;
        }
LAB_000aee9e:
        if (iVar9 != 0) {
          uVar8 = 0x106;
          FUN_0004e100();
          goto LAB_000aefad;
        }
      }
LAB_000aeea6:
      uVar8 = FUN_0004e1e0();
      if (uVar8 != 0) goto LAB_000aefad;
      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffef;
      *(ushort *)((int)piVar1 + 0x16) = uVar6;
      if (piVar1[0xb] == 0) {
        *(ushort *)((int)piVar1 + 0x16) = uVar6 | 0x10;
      }
LAB_000aeed7:
      if (piVar1[3] == 0) goto LAB_000af0af;
      while( true ) {
        bVar12 = param_2 != 0;
        bVar4 = uVar8 == 0 && bVar12;
        if (uVar8 == 0 && bVar12) break;
LAB_000af010:
        bVar4 = bVar12;
        if (uVar8 == 0) goto LAB_000af018;
        while( true ) {
          uVar11 = uVar8 & 0xff;
          cVar5 = (char)piVar1[5];
LAB_000aef18:
          if ((cVar5 == '\0') && (iVar9 = piVar1[3], iVar9 != 0)) {
LAB_000aef23:
            piVar1[3] = 0;
            iVar9 = *(int *)(*(int *)(iVar9 + 0x48) + 0x14);
            FUN_0003bb60();
            if (*(int *)(*(int *)(iVar9 + 0xd0) + 0xc) == 0) {
              FUN_000ad9a0();
            }
          }
          if (uVar11 != 5) goto LAB_000aefad;
LAB_000aef55:
          if ((char)piVar1[5] != '\0') goto LAB_000aefad;
          iVar9 = piVar1[1];
          pcVar3 = *(code **)(iVar9 + 400);
          if ((pcVar3 == (code *)0x0) || (iVar10 = *(int *)(iVar9 + 0x198), iVar10 < 0))
          goto LAB_000aefad;
          if (*(char *)(iVar9 + 0x19c) == '\0') {
            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10);
          }
          else {
            iVar10 = (*pcVar3)(*(undefined4 *)(iVar9 + 0x194),iVar10,*(undefined4 *)(*piVar1 + 0x3c)
                              );
          }
          if (iVar10 == 0) {
            *(undefined4 *)(iVar9 + 0x198) = 0xffffffff;
            goto LAB_000aefad;
          }
          *(int *)(iVar9 + 0x198) = *(int *)(iVar9 + 0x198) + 1;
          if (piVar1[3] != 0) break;
LAB_000af0af:
          uVar8 = FUN_000ae670();
          if (uVar8 == 0) goto LAB_000aeed7;
        }
      }
      if ((*(byte *)((int)piVar1 + 0x16) & 1) != 0) {
        cVar5 = (char)piVar1[5];
        uVar11 = 8;
        uVar8 = 8;
        goto LAB_000aef18;
      }
      uVar8 = FUN_00061ac0();
      if (uVar8 != 0) {
        cVar5 = (char)piVar1[5];
        if (uVar8 == 0x205) {
          if (cVar5 != '\0') goto LAB_000aef55;
          iVar9 = piVar1[3];
          uVar8 = 5;
          uVar11 = 5;
          if (iVar9 != 0) goto LAB_000aef23;
          goto LAB_000aef55;
        }
        uVar11 = uVar8 & 0xff;
        goto LAB_000aef18;
      }
      if (piVar1[0xb] == 0) {
        uVar8 = FUN_000aeab0();
        goto LAB_000af010;
      }
LAB_000af018:
      if (((char)param_1[2] == '\0') &&
         (piVar1[10] = piVar1[10] + 1, *(char *)((int)param_1 + 9) != '\0')) {
        *(undefined1 *)(param_1 + 10) = 1;
        param_1[0xb] = piVar1[0x12];
        piVar1[0x12] = (int)(param_1 + 8);
      }
      if (!bVar4) {
        *(undefined1 *)(param_1 + 2) = 1;
        if ((char)piVar1[5] == '\0') {
          *(undefined1 *)(piVar1 + 5) = 1;
        }
        goto LAB_000af126;
      }
      *(undefined1 *)(param_1 + 2) = 2;
      if (*(byte *)(piVar1 + 5) < 2) {
        *(undefined1 *)(piVar1 + 5) = 2;
      }
      iVar9 = piVar1[3];
      piVar1[0x13] = (int)param_1;
      uVar6 = *(ushort *)((int)piVar1 + 0x16) & 0xffbf;
      if (1 < param_2) {
        uVar6 = uVar6 | 0x40;
      }
      *(ushort *)((int)piVar1 + 0x16) = uVar6;
      uVar8 = *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c);
      if (piVar1[0xb] !=
          (uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18)) {
        uVar8 = FUN_000aa4a0();
        if (uVar8 != 0) goto LAB_000aefad;
        uVar8 = piVar1[0xb];
        *(uint *)(*(int *)(iVar9 + 0x38) + 0x1c) =
             uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;
      }
      if (param_3 != (uint *)0x0) goto LAB_000af0d8;
      goto LAB_000af0f1;
    }
LAB_000af126:
    if (param_3 != (uint *)0x0) goto LAB_000af0d8;
  }
  uVar8 = 0;
LAB_000aefad:
  if (*(char *)((int)param_1 + 9) != '\0') {
    param_1 = param_1 + 3;
    *param_1 = *param_1 + -1;
    if (*param_1 == 0) {
      FUN_000453f0();
      return uVar8;
    }
  }
  return uVar8;
}

