// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: wherePathSatisfiesOrderBy
static i8 wherePathSatisfiesOrderBy(
  WhereInfo *pWInfo,    /* The WHERE clause */
  ExprList *pOrderBy,   /* ORDER BY or GROUP BY or DISTINCT clause to check */
  WherePath *pPath,     /* The WherePath to check */
  u16 wctrlFlags,       /* WHERE_GROUPBY or _DISTINCTBY or _ORDERBY_LIMIT */
  u16 nLoop,            /* Number of entries in pPath->aLoop[] */
  WhereLoop *pLast,     /* Add this WhereLoop to the end of pPath->aLoop[] */
  Bitmask *pRevMask     /* OUT: Mask of WhereLoops to run in reverse order */
){
  u8 revSet;            /* True if rev is known */
  u8 rev;               /* Composite sort order */
  u8 revIdx;            /* Index sort order */
  u8 isOrderDistinct;   /* All prior WhereLoops are order-distinct */
  u8 distinctColumns;   /* True if the loop has UNIQUE NOT NULL columns */
  u8 isMatch;           /* iColumn matches a term of the ORDER BY clause */
  u16 eqOpMask;         /* Allowed equality operators */
  u16 nKeyCol;          /* Number of key columns in pIndex */
  u16 nColumn;          /* Total number of ordered columns in the index */
  u16 nOrderBy;         /* Number terms in the ORDER BY clause */
  int iLoop;            /* Index of WhereLoop in pPath being processed */
  int i, j;             /* Loop counters */
  int iCur;             /* Cursor number for current WhereLoop */
  int iColumn;          /* A column number within table iCur */
  WhereLoop *pLoop = 0; /* Current WhereLoop being processed. */
  WhereTerm *pTerm;     /* A single term of the WHERE clause */
  Expr *pOBExpr;        /* An expression from the ORDER BY clause */
  CollSeq *pColl;       /* COLLATE function from an ORDER BY clause term */
  Index *pIndex;        /* The index associated with pLoop */
  sqlite3 *db = pWInfo->pParse->db;  /* Database connection */
  Bitmask obSat = 0;    /* Mask of ORDER BY terms satisfied so far */
  Bitmask obDone;       /* Mask of all ORDER BY terms */
  Bitmask orderDistinctMask;  /* Mask of all well-ordered loops */
  Bitmask ready;              /* Mask of inner loops */

  /*
  ** We say the WhereLoop is "one-row" if it generates no more than one
  ** row of output.  A WhereLoop is one-row if all of the following are true:
  **  (a) All index columns match with WHERE_COLUMN_EQ.
  **  (b) The index is unique
  ** Any WhereLoop with an WHERE_COLUMN_EQ constraint on the rowid is one-row.
  ** Every one-row WhereLoop will have the WHERE_ONEROW bit set in wsFlags.
  **
  ** We say the WhereLoop is "order-distinct" if the set of columns from
  ** that WhereLoop that are in the ORDER BY clause are different for every
  ** row of the WhereLoop.  Every one-row WhereLoop is automatically
  ** order-distinct.   A WhereLoop that has no columns in the ORDER BY clause
  ** is not order-distinct. To be order-distinct is not quite the same as being
  ** UNIQUE since a UNIQUE column or index can have multiple rows that 
  ** are NULL and NULL values are equivalent for the purpose of order-distinct.
  ** To be order-distinct, the columns must be UNIQUE and NOT NULL.
  **
  ** The rowid for a table is always UNIQUE and NOT NULL so whenever the
  ** rowid appears in the ORDER BY clause, the corresponding WhereLoop is
  ** automatically order-distinct.
  */

  assert( pOrderBy!=0 );
  if( nLoop && OptimizationDisabled(db, SQLITE_OrderByIdxJoin) ) return 0;

  nOrderBy = pOrderBy->nExpr;
  testcase( nOrderBy==BMS-1 );
  if( nOrderBy>BMS-1 ) return 0;  /* Cannot optimize overly large ORDER BYs */
  isOrderDistinct = 1;
  obDone = MASKBIT(nOrderBy)-1;
  orderDistinctMask = 0;
  ready = 0;
  eqOpMask = WO_EQ | WO_IS | WO_ISNULL;
  if( wctrlFlags & WHERE_ORDERBY_LIMIT ) eqOpMask |= WO_IN;
  for(iLoop=0; isOrderDistinct && obSat<obDone && iLoop<=nLoop; iLoop++){
    if( iLoop>0 ) ready |= pLoop->maskSelf;
    if( iLoop<nLoop ){
      pLoop = pPath->aLoop[iLoop];
      if( wctrlFlags & WHERE_ORDERBY_LIMIT ) continue;
    }else{
      pLoop = pLast;
    }
    if( pLoop->wsFlags & WHERE_VIRTUALTABLE ){
      if( pLoop->u.vtab.isOrdered ) obSat = obDone;
      break;
    }else{
      pLoop->u.btree.nIdxCol = 0;
    }
    iCur = pWInfo->pTabList->a[pLoop->iTab].iCursor;

    /* Mark off any ORDER BY term X that is a column in the table of
    ** the current loop for which there is term in the WHERE
    ** clause of the form X IS NULL or X=? that reference only outer
    ** loops.
    */
    for(i=0; i<nOrderBy; i++){
      if( MASKBIT(i) & obSat ) continue;
      pOBExpr = sqlite3ExprSkipCollate(pOrderBy->a[i].pExpr);
      if( pOBExpr->op!=TK_COLUMN ) continue;
      if( pOBExpr->iTable!=iCur ) continue;
      pTerm = sqlite3WhereFindTerm(&pWInfo->sWC, iCur, pOBExpr->iColumn,
                       ~ready, eqOpMask, 0);
      if( pTerm==0 ) continue;
      if( pTerm->eOperator==WO_IN ){
        /* IN terms are only valid for sorting in the ORDER BY LIMIT 
        ** optimization, and then only if they are actually used
        ** by the query plan */
        assert( wctrlFlags & WHERE_ORDERBY_LIMIT );
        for(j=0; j<pLoop->nLTerm && pTerm!=pLoop->aLTerm[j]; j++){}
        if( j>=pLoop->nLTerm ) continue;
      }
      if( (pTerm->eOperator&(WO_EQ|WO_IS))!=0 && pOBExpr->iColumn>=0 ){
        if( sqlite3ExprCollSeqMatch(pWInfo->pParse, 
                  pOrderBy->a[i].pExpr, pTerm->pExpr)==0 ){
          continue;
        }
        testcase( pTerm->pExpr->op==TK_IS );
      }
      obSat |= MASKBIT(i);
    }

    if( (pLoop->wsFlags & WHERE_ONEROW)==0 ){
      if( pLoop->wsFlags & WHERE_IPK ){
        pIndex = 0;
        nKeyCol = 0;
        nColumn = 1;
      }else if( (pIndex = pLoop->u.btree.pIndex)==0 || pIndex->bUnordered ){
        return 0;
      }else{
        nKeyCol = pIndex->nKeyCol;
        nColumn = pIndex->nColumn;
        assert( nColumn==nKeyCol+1 || !HasRowid(pIndex->pTable) );
        assert( pIndex->aiColumn[nColumn-1]==XN_ROWID
                          || !HasRowid(pIndex->pTable));
        isOrderDistinct = IsUniqueIndex(pIndex);
      }

      /* Loop through all columns of the index and deal with the ones
      ** that are not constrained by == or IN.
      */
      rev = revSet = 0;
      distinctColumns = 0;
      for(j=0; j<nColumn; j++){
        u8 bOnce = 1; /* True to run the ORDER BY search loop */

        assert( j>=pLoop->u.btree.nEq 
            || (pLoop->aLTerm[j]==0)==(j<pLoop->nSkip)
        );
        if( j<pLoop->u.btree.nEq && j>=pLoop->nSkip ){
          u16 eOp = pLoop->aLTerm[j]->eOperator;

          /* Skip over == and IS and ISNULL terms.  (Also skip IN terms when
          ** doing WHERE_ORDERBY_LIMIT processing). 
          **
          ** If the current term is a column of an ((?,?) IN (SELECT...)) 
          ** expression for which the SELECT returns more than one column,
          ** check that it is the only column used by this loop. Otherwise,
          ** if it is one of two or more, none of the columns can be
          ** considered to match an ORDER BY term.  */
          if( (eOp & eqOpMask)!=0 ){
            if( eOp & WO_ISNULL ){
              testcase( isOrderDistinct );
              isOrderDistinct = 0;
            }
            continue;  
          }else if( ALWAYS(eOp & WO_IN) ){
            /* ALWAYS() justification: eOp is an equality operator due to the
            ** j<pLoop->u.btree.nEq constraint above.  Any equality other
            ** than WO_IN is captured by the previous "if".  So this one
            ** always has to be WO_IN. */
            Expr *pX = pLoop->aLTerm[j]->pExpr;
            for(i=j+1; i<pLoop->u.btree.nEq; i++){
              if( pLoop->aLTerm[i]->pExpr==pX ){
                assert( (pLoop->aLTerm[i]->eOperator & WO_IN) );
                bOnce = 0;
                break;
              }
            }
          }
        }

        /* Get the column number in the table (iColumn) and sort order
        ** (revIdx) for the j-th column of the index.
        */
        if( pIndex ){
          iColumn = pIndex->aiColumn[j];
          revIdx = pIndex->aSortOrder[j];
          if( iColumn==pIndex->pTable->iPKey ) iColumn = XN_ROWID;
        }else{
          iColumn = XN_ROWID;
          revIdx = 0;
        }

        /* An unconstrained column that might be NULL means that this
        ** WhereLoop is not well-ordered
        */
        if( isOrderDistinct
         && iColumn>=0
         && j>=pLoop->u.btree.nEq
         && pIndex->pTable->aCol[iColumn].notNull==0
        ){
          isOrderDistinct = 0;
        }

        /* Find the ORDER BY term that corresponds to the j-th column
        ** of the index and mark that ORDER BY term off 
        */
        isMatch = 0;
        for(i=0; bOnce && i<nOrderBy; i++){
          if( MASKBIT(i) & obSat ) continue;
          pOBExpr = sqlite3ExprSkipCollate(pOrderBy->a[i].pExpr);
          testcase( wctrlFlags & WHERE_GROUPBY );
          testcase( wctrlFlags & WHERE_DISTINCTBY );
          if( (wctrlFlags & (WHERE_GROUPBY|WHERE_DISTINCTBY))==0 ) bOnce = 0;
          if( iColumn>=XN_ROWID ){
            if( pOBExpr->op!=TK_COLUMN ) continue;
            if( pOBExpr->iTable!=iCur ) continue;
            if( pOBExpr->iColumn!=iColumn ) continue;
          }else{
            Expr *pIdxExpr = pIndex->aColExpr->a[j].pExpr;
            if( sqlite3ExprCompareSkip(pOBExpr, pIdxExpr, iCur) ){
              continue;
            }
          }
          if( iColumn!=XN_ROWID ){
            pColl = sqlite3ExprNNCollSeq(pWInfo->pParse, pOrderBy->a[i].pExpr);
            if( sqlite3StrICmp(pColl->zName, pIndex->azColl[j])!=0 ) continue;
          }
          pLoop->u.btree.nIdxCol = j+1;
          isMatch = 1;
          break;
        }
        if( isMatch && (wctrlFlags & WHERE_GROUPBY)==0 ){
          /* Make sure the sort order is compatible in an ORDER BY clause.
          ** Sort order is irrelevant for a GROUP BY clause. */
          if( revSet ){
            if( (rev ^ revIdx)!=pOrderBy->a[i].sortOrder ) isMatch = 0;
          }else{
            rev = revIdx ^ pOrderBy->a[i].sortOrder;
            if( rev ) *pRevMask |= MASKBIT(iLoop);
            revSet = 1;
          }
        }
        if( isMatch ){
          if( iColumn==XN_ROWID ){
            testcase( distinctColumns==0 );
            distinctColumns = 1;
          }
          obSat |= MASKBIT(i);
        }else{
          /* No match found */
          if( j==0 || j<nKeyCol ){
            testcase( isOrderDistinct!=0 );
            isOrderDistinct = 0;
          }
          break;
        }
      } /* end Loop over all index columns */
      if( distinctColumns ){
        testcase( isOrderDistinct==0 );
        isOrderDistinct = 1;
      }
    } /* end-if not one-row */

    /* Mark off any other ORDER BY terms that reference pLoop */
    if( isOrderDistinct ){
      orderDistinctMask |= pLoop->maskSelf;
      for(i=0; i<nOrderBy; i++){
        Expr *p;
        Bitmask mTerm;
        if( MASKBIT(i) & obSat ) continue;
        p = pOrderBy->a[i].pExpr;
        mTerm = sqlite3WhereExprUsage(&pWInfo->sMaskSet,p);
        if( mTerm==0 && !sqlite3ExprIsConstant(p) ) continue;
        if( (mTerm&~orderDistinctMask)==0 ){
          obSat |= MASKBIT(i);
        }
      }
    }
  } /* End the loop over all WhereLoops from outer-most down to inner-most */
  if( obSat==obDone ) return (i8)nOrderBy;
  if( !isOrderDistinct ){
    for(i=nOrderBy-1; i>0; i--){
      Bitmask m = MASKBIT(i) - 1;
      if( (obSat&m)==m ) return i;
    }
    return 0;
  }
  return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %r9, 0xd0(%rsp)
movl %ecx, %eax
movq %rdx, 0xc8(%rsp)
testl %r8d, %r8d
je 0x45d480
movq (%rdi), %rcx
movq (%rcx), %rcx
testb $0x40, 0x5c(%rcx)
jne 0x45db55
movzwl (%rsi), %r9d
xorl %ecx, %ecx
cmpl $0x3f, %r9d
ja 0x45db57
pushq $-0x1
popq %rdx
movl %r9d, %ecx
shlq %cl, %rdx
movzwl %ax, %eax
movl %eax, 0x34(%rsp)
btl $0xb, %eax
movl $0x0, %eax
adcl $0x182, %eax            # imm = 0x182
movl %eax, 0x5c(%rsp)
notq %rdx
movq %rdx, 0x38(%rsp)
leaq 0x8(%rsi), %rax
movq %rax, 0x80(%rsp)
leaq 0x68(%rdi), %rax
movq %rax, 0xd8(%rsp)
leaq 0x290(%rdi), %rax
movq %rax, 0xe0(%rsp)
movzwl %r8w, %eax
movq %rax, 0xa8(%rsp)
addq $0x20, %rsi
movq %rsi, 0xc0(%rsp)
movb $0x1, %sil
pushq $0x1
popq %r10
xorl %ecx, %ecx
movq $0x0, 0x20(%rsp)
xorl %r15d, %r15d
movq $0x0, 0xa0(%rsp)
movq $0x0, 0x70(%rsp)
movq %r9, 0x10(%rsp)
movq %rdi, 0x60(%rsp)
testb %sil, %sil
je 0x45db13
cmpq 0x38(%rsp), %r15
jae 0x45db13
cmpq 0xa8(%rsp), %rcx
ja 0x45db13
testq %rcx, %rcx
je 0x45d567
movq 0x70(%rsp), %rax
movq 0x20(%rsp), %rdx
orq 0x8(%rdx), %rax
movq %rax, 0x70(%rsp)
movq 0xd0(%rsp), %rdx
cmpq 0xa8(%rsp), %rcx
jae 0x45d595
btl $0xb, 0x34(%rsp)
movq 0xc8(%rsp), %rax
movq 0x18(%rax), %rax
movq (%rax,%rcx,8), %rdx
jb 0x45d716
testb $0x4, 0x29(%rdx)
jne 0x45db1a
movl %esi, 0xc(%rsp)
movq %rcx, 0x40(%rsp)
andw $0x0, 0x1e(%rdx)
movq 0x8(%rdi), %rax
movq %rdx, 0x20(%rsp)
movzbl 0x10(%rdx), %ecx
imulq $0x70, %rcx, %rcx
movl 0x48(%rax,%rcx), %eax
movl %eax, 0x50(%rsp)
movq 0x70(%rsp), %r14
notq %r14
xorl %ebp, %ebp
cmpq %r9, %rbp
je 0x45d6c1
movq %r10, %r13
movl %ebp, %ecx
shlq %cl, %r13
btq %rbp, %r15
jb 0x45d6b9
movq %rbp, %r12
shlq $0x5, %r12
movq 0x80(%rsp), %rax
movq (%rax,%r12), %rdi
callq 0x44b988
cmpb $-0x62, (%rax)
jne 0x45d6b0
movq %rax, %rbx
movl 0x50(%rsp), %esi
cmpl %esi, 0x2c(%rax)
jne 0x45d6b0
movswl 0x30(%rbx), %edx
movq 0xd8(%rsp), %rdi
movq %r14, %rcx
movl 0x5c(%rsp), %r8d
xorl %r9d, %r9d
callq 0x45abcb
testq %rax, %rax
je 0x45d6b0
movzwl 0x14(%rax), %ecx
cmpw $0x1, %cx
movq 0x10(%rsp), %r9
pushq $0x1
popq %r10
jne 0x45d676
movq 0x20(%rsp), %rdx
movzwl 0x2c(%rdx), %edx
xorl %esi, %esi
cmpq %rsi, %rdx
je 0x45d6b9
movq 0x20(%rsp), %rdi
movq 0x38(%rdi), %rdi
leaq 0x1(%rsi), %r8
cmpq (%rdi,%rsi,8), %rax
movq %r8, %rsi
jne 0x45d65b
testb $-0x7e, %cl
je 0x45d6ab
cmpw $0x0, 0x30(%rbx)
js 0x45d6ab
addq 0x80(%rsp), %r12
movq 0x60(%rsp), %rcx
movq (%rcx), %rdi
movq (%r12), %rsi
movq (%rax), %rdx
callq 0x45ab55
pushq $0x1
popq %r10
movq 0x10(%rsp), %r9
testl %eax, %eax
je 0x45d6b9
orq %r13, %r15
jmp 0x45d6b9
movq 0x10(%rsp), %r9
pushq $0x1
popq %r10
incq %rbp
jmp 0x45d5d0
movq 0x20(%rsp), %rdx
movl 0x28(%rdx), %eax
btl $0xc, %eax
jb 0x45da7e
btl $0x8, %eax
jb 0x45d720
movq 0x20(%rdx), %rbx
testq %rbx, %rbx
movq 0x40(%rsp), %rcx
je 0x45db55
testb $0x4, 0x63(%rbx)
movl $0x0, %r14d
jne 0x45db55
movzwl 0x5e(%rbx), %eax
movq %rax, 0x98(%rsp)
movzwl 0x60(%rbx), %r12d
cmpb $0x0, 0x62(%rbx)
setne %r8b
jmp 0x45d73e
movq %rdx, 0x20(%rsp)
jmp 0x45db0b
movq $0x0, 0x98(%rsp)
movq %r10, %r12
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0x40(%rsp), %rcx
movl 0xc(%rsp), %r8d
movq %r10, %rax
shlq %cl, %rax
movq %rax, 0xb0(%rsp)
xorl %r13d, %r13d
movq %r10, 0x90(%rsp)
xorl %ebp, %ebp
movq $0x0, 0x88(%rsp)
movq $0x0, 0x68(%rsp)
movq %rbx, 0x78(%rsp)
movq %r12, 0xb8(%rsp)
cmpq %r12, %r13
je 0x45da68
movq 0x20(%rsp), %rsi
movzwl 0x18(%rsi), %r11d
movzbl %r8b, %eax
cmpq %r11, %r13
jae 0x45d7a4
movzwl 0x2e(%rsi), %edx
cmpq %rdx, %r13
jae 0x45d92a
movl %ebp, 0x2c(%rsp)
movl %r8d, 0xc(%rsp)
movb $0x1, %bpl
testq %rbx, %rbx
movq %r13, 0x48(%rsp)
je 0x45d812
movq 0x8(%rbx), %rsi
movq 0x18(%rbx), %rdx
movzwl (%rsi,%r13,2), %esi
cmpw 0x44(%rdx), %si
movl $0xffff, %edi           # imm = 0xFFFF
cmovel %edi, %esi
movq 0x38(%rbx), %rdi
movb (%rdi,%r13), %cl
movl %ecx, 0x30(%rsp)
movswl %si, %ecx
movl %ecx, 0x1c(%rsp)
cmpq %r11, %r13
jb 0x45d821
cmpb $0x0, 0xc(%rsp)
je 0x45d821
testw %si, %si
js 0x45d821
movq 0x8(%rdx), %rcx
movl 0x1c(%rsp), %edx
shlq $0x5, %rdx
cmpb $0x0, 0x18(%rcx,%rdx)
cmovel %r14d, %eax
movl %eax, 0xc(%rsp)
jmp 0x45d821
movl $0x0, 0x30(%rsp)
pushq $-0x1
popq %rax
movl %eax, 0x1c(%rsp)
movq 0xc0(%rsp), %r12
xorl %r13d, %r13d
testb %bpl, %bpl
je 0x45da40
cmpq %r9, %r13
jae 0x45da40
btq %r13, %r15
jb 0x45d91e
movl 0x34(%rsp), %r14d
andl $0xc0, %r14d
movq -0x18(%r12), %rbx
movq %rbx, %rdi
callq 0x44b988
testl %r14d, %r14d
movzbl %bpl, %ebp
cmovel %r14d, %ebp
cmpl $-0x1, 0x1c(%rsp)
jl 0x45d8aa
cmpb $-0x62, (%rax)
jne 0x45d8d1
movl 0x50(%rsp), %ecx
cmpl %ecx, 0x2c(%rax)
movl $0x0, %r14d
movq 0x10(%rsp), %r9
pushq $0x1
popq %r10
jne 0x45d91e
movswl 0x30(%rax), %eax
movl 0x1c(%rsp), %ecx
cmpl %eax, %ecx
jne 0x45d91e
cmpl $-0x1, %ecx
jne 0x45d8e7
jmp 0x45d986
movq 0x78(%rsp), %rcx
movq 0x50(%rcx), %rcx
movq 0x48(%rsp), %rdx
shlq $0x5, %rdx
movq 0x8(%rcx,%rdx), %rsi
movq %rax, %rdi
movl 0x50(%rsp), %edx
callq 0x45ab27
testl %eax, %eax
je 0x45d8df
xorl %r14d, %r14d
movq 0x10(%rsp), %r9
pushq $0x1
popq %r10
jmp 0x45d91e
movq -0x18(%r12), %rbx
xorl %r14d, %r14d
movq 0x60(%rsp), %rax
movq (%rax), %rdi
movq %rbx, %rsi
callq 0x45832e
movq (%rax), %rdi
movq 0x78(%rsp), %rax
movq 0x40(%rax), %rax
movq 0x48(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x406caf
pushq $0x1
popq %r10
movq 0x10(%rsp), %r9
testl %eax, %eax
je 0x45d986
incq %r13
addq $0x20, %r12
jmp 0x45d82c
movq 0x38(%rsi), %rdx
movq (%rdx,%r13,8), %rsi
movzwl 0x14(%rsi), %edi
testl %edi, 0x5c(%rsp)
je 0x45d94c
btl $0x8, %edi
cmovbl %r14d, %eax
movl %eax, %r8d
jmp 0x45da30
movl %r8d, 0xc(%rsp)
testb $0x1, %dil
movl %ebp, 0x2c(%rsp)
je 0x45d7ad
movq (%rsi), %rsi
movq 0x90(%rsp), %rdi
cmpq %r11, %rdi
jae 0x45d7ad
movq (%rdx,%rdi,8), %r8
incq %rdi
xorl %ebp, %ebp
cmpq %rsi, (%r8)
jne 0x45d96a
jmp 0x45d7b0
cmpq %r9, %r13
setae %al
movl 0x34(%rsp), %ecx
andl $0x40, %ecx
shrl $0x6, %ecx
movq 0x48(%rsp), %rdx
incl %edx
movq 0x20(%rsp), %rsi
movw %dx, 0x1e(%rsi)
orb %al, %cl
jne 0x45d9fd
cmpb $0x0, 0x68(%rsp)
je 0x45d9cb
movl 0x30(%rsp), %ecx
xorb 0x88(%rsp), %cl
movb $0x1, %al
movq %rax, 0x68(%rsp)
cmpb (%r12), %cl
je 0x45d9fd
jmp 0x45da40
movb (%r12), %al
movl %eax, %ecx
movl 0x30(%rsp), %edx
xorb %dl, %cl
movq %rcx, 0x88(%rsp)
movb $0x1, %cl
movq %rcx, 0x68(%rsp)
cmpb %dl, %al
je 0x45d9fd
movq 0x120(%rsp), %rax
movq 0xb0(%rsp), %rcx
orq %rcx, (%rax)
cmpl $-0x1, 0x1c(%rsp)
movl 0x2c(%rsp), %ebp
movzbl %bpl, %ebp
pushq $0x1
popq %rax
cmovel %eax, %ebp
btsq %r13, %r15
movq 0x40(%rsp), %rcx
movl 0xc(%rsp), %r8d
movq 0x78(%rsp), %rbx
movq 0xb8(%rsp), %r12
movq 0x48(%rsp), %r13
incq %r13
incq 0x90(%rsp)
jmp 0x45d77b
movq 0x48(%rsp), %rax
cmpl %eax, 0x98(%rsp)
movl 0xc(%rsp), %r8d
movzbl %r8b, %r8d
cmoval %r14d, %r8d
testl %eax, %eax
cmovel %eax, %r8d
movq 0x40(%rsp), %rcx
movl 0x2c(%rsp), %ebp
orb %r8b, %bpl
movq 0x60(%rsp), %rdi
jne 0x45da79
xorl %esi, %esi
jmp 0x45db0b
movq 0x20(%rsp), %rdx
movq 0xa0(%rsp), %rcx
orq 0x8(%rdx), %rcx
movq %rcx, 0xa0(%rsp)
notq %rcx
movq %rcx, 0x50(%rsp)
movq 0x80(%rsp), %r14
xorl %r12d, %r12d
cmpq %r12, %r9
je 0x45dafe
movq %r10, %rbp
movl %r12d, %ecx
shlq %cl, %rbp
btq %r12, %r15
jb 0x45daf5
movq (%r14), %r13
movq 0xe0(%rsp), %rdi
movq %r13, %rsi
callq 0x45a739
movq %rax, %rbx
testq %rax, %rax
jne 0x45dae0
movq %r13, %rdi
callq 0x44a105
testl %eax, %eax
je 0x45daec
testq %rbx, 0x50(%rsp)
je 0x45dae9
xorl %ebp, %ebp
orq %rbp, %r15
movq 0x10(%rsp), %r9
pushq $0x1
popq %r10
incq %r12
addq $0x20, %r14
jmp 0x45daa5
movb $0x1, %sil
movq 0x60(%rsp), %rdi
movq 0x40(%rsp), %rcx
incq %rcx
jmp 0x45d52d
movq 0x38(%rsp), %rax
jmp 0x45db27
cmpb $0x0, 0x1d(%rdx)
movq 0x38(%rsp), %rax
cmovneq %rax, %r15
cmpq %rax, %r15
jne 0x45db31
movl %r9d, %ecx
jmp 0x45db57
movb $-0x1, %cl
testb %sil, %sil
jne 0x45db57
movq %r9, %rcx
cmpq $0x2, %rcx
jl 0x45db55
decq %rcx
pushq $-0x1
popq %rax
shlq %cl, %rax
orq %r15, %rax
cmpq $-0x1, %rax
jne 0x45db3b
jmp 0x45db57
xorl %ecx, %ecx
movl %ecx, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq