// File: /workspace/github_c_makefile_star2_O1/shifengbin[P]bishe/Output/../Persistence/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,       /* Might contain WHERE_GROUPBY or WHERE_DISTINCTBY */
  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 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;
  for(iLoop=0; isOrderDistinct && obSat<obDone && iLoop<=nLoop; iLoop++){
    if( iLoop>0 ) ready |= pLoop->maskSelf;
    pLoop = iLoop<nLoop ? pPath->aLoop[iLoop] : pLast;
    if( pLoop->wsFlags & WHERE_VIRTUALTABLE ){
      if( pLoop->u.vtab.isOrdered ) obSat = obDone;
      break;
    }
    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, WO_EQ|WO_ISNULL|WO_IS, 0);
      if( pTerm==0 ) continue;
      if( (pTerm->eOperator&(WO_EQ|WO_IS))!=0 && pOBExpr->iColumn>=0 ){
        const char *z1, *z2;
        pColl = sqlite3ExprCollSeq(pWInfo->pParse, pOrderBy->a[i].pExpr);
        if( !pColl ) pColl = db->pDfltColl;
        z1 = pColl->zName;
        pColl = sqlite3ExprCollSeq(pWInfo->pParse, pTerm->pExpr);
        if( !pColl ) pColl = db->pDfltColl;
        z2 = pColl->zName;
        if( sqlite3StrICmp(z1, z2)!=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;   /* True to run the ORDER BY search loop */

        /* Skip over == and IS NULL terms */
        if( j<pLoop->u.btree.nEq
         && pLoop->nSkip==0
         && ((i = pLoop->aLTerm[j]->eOperator) & (WO_EQ|WO_ISNULL|WO_IS))!=0
        ){
          if( i & WO_ISNULL ){
            testcase( isOrderDistinct );
            isOrderDistinct = 0;
          }
          continue;  
        }

        /* 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 = -1;
        }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 
        */
        bOnce = 1;
        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>=(-1) ){
            if( pOBExpr->op!=TK_COLUMN ) continue;
            if( pOBExpr->iTable!=iCur ) continue;
            if( pOBExpr->iColumn!=iColumn ) continue;
          }else{
            if( sqlite3ExprCompare(pOBExpr,pIndex->aColExpr->a[j].pExpr,iCur) ){
              continue;
            }
          }
          if( iColumn>=0 ){
            pColl = sqlite3ExprCollSeq(pWInfo->pParse, pOrderBy->a[i].pExpr);
            if( !pColl ) pColl = db->pDfltColl;
            if( sqlite3StrICmp(pColl->zName, pIndex->azColl[j])!=0 ) continue;
          }
          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<0 ){
            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
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %r9, -0xf0(%rbp)
movl %ecx, -0x84(%rbp)
movq %rdx, -0xe0(%rbp)
movq %rsi, -0x58(%rbp)
movq (%rdi), %rax
movq (%rax), %rax
testl %r8d, %r8d
je 0x695c5
testb $-0x80, 0x4c(%rax)
jne 0x695d8
movq %rax, -0xa0(%rbp)
movq -0x58(%rbp), %rax
movzwl (%rax), %ecx
cmpl $0x3f, %ecx
jbe 0x695ec
xorl %eax, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $-0x1, %rax
shlq %cl, %rax
notq %rax
movq %rax, -0x90(%rbp)
testl %ecx, %ecx
movq %rcx, -0xb8(%rbp)
je 0x69d14
leaq 0x158(%rdi), %rax
movq %rax, -0xf8(%rbp)
leaq 0x54(%rdi), %rax
movq %rax, -0x100(%rbp)
movl %ecx, %r9d
movzwl %r8w, %eax
movq %rax, -0xc8(%rbp)
movb $0x1, %al
movl %eax, -0x2c(%rbp)
movl -0x84(%rbp), %eax
andl $0x300, %eax            # imm = 0x300
movl %eax, -0xac(%rbp)
xorl %eax, %eax
movq $0x0, -0x98(%rbp)
movq $0x0, -0xc0(%rbp)
xorl %r8d, %r8d
xorl %esi, %esi
movq %r9, -0x50(%rbp)
movq %rdi, -0x40(%rbp)
testq %rax, %rax
je 0x69688
movq -0x98(%rbp), %rcx
orq 0x8(%rsi), %rcx
movq %rcx, -0x98(%rbp)
movq -0xf0(%rbp), %rcx
cmpq -0xc8(%rbp), %rax
movq %rax, -0x78(%rbp)
jae 0x696af
movq -0xe0(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x78(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
testb $0x4, 0x29(%rcx)
jne 0x69d1e
movq 0x8(%rdi), %rax
movq %rcx, -0x68(%rbp)
movzbl 0x10(%rcx), %ecx
imulq $0x70, %rcx, %rcx
movl 0x4c(%rax,%rcx), %r10d
movq -0x98(%rbp), %rax
notq %rax
movq %rax, -0x48(%rbp)
xorl %r15d, %r15d
movl %r10d, -0x30(%rbp)
movl $0x1, %r14d
movl %r15d, %ecx
shlq %cl, %r14
btq %r15, %r8
jb 0x697fd
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rax
movq %r15, %r12
shlq $0x5, %r12
movq (%rax,%r12), %r13
testq %r13, %r13
je 0x69735
movl 0x4(%r13), %eax
btl $0xc, %eax
jae 0x69735
btl $0x12, %eax
jb 0x69727
addq $0x10, %r13
jmp 0x6972f
movq 0x20(%r13), %rax
movq 0x8(%rax), %r13
movq (%r13), %r13
jmp 0x6970c
cmpb $-0x68, (%r13)
jne 0x697fd
cmpl %r10d, 0x2c(%r13)
jne 0x697fd
movq %r8, -0x70(%rbp)
movswl 0x30(%r13), %edx
movq -0xf8(%rbp), %rdi
movl %r10d, %esi
movq -0x48(%rbp), %rcx
movl $0x182, %r8d            # imm = 0x182
xorl %r9d, %r9d
callq 0x66fac
testq %rax, %rax
je 0x697f1
movq %rax, %rbx
testb $-0x7e, 0x1a(%rax)
movq -0x70(%rbp), %r8
movq -0x50(%rbp), %r9
je 0x697ec
cmpw $0x0, 0x30(%r13)
js 0x697ec
movq -0x40(%rbp), %r13
movq (%r13), %rdi
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax,%r12), %rsi
callq 0x529e4
testq %rax, %rax
jne 0x697b6
movq -0xa0(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %r12
movq (%r13), %rdi
movq (%rbx), %rsi
callq 0x529e4
testq %rax, %rax
jne 0x697d5
movq -0xa0(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rsi
movq %r12, %rdi
callq 0xa3f0
testl %eax, %eax
movq -0x70(%rbp), %r8
movq -0x50(%rbp), %r9
jne 0x697f9
orq %r14, %r8
jmp 0x697f9
movq -0x70(%rbp), %r8
movq -0x50(%rbp), %r9
movl -0x30(%rbp), %r10d
incq %r15
cmpq %r9, %r15
jne 0x696e3
movq -0x68(%rbp), %rsi
movl 0x28(%rsi), %eax
btl $0xc, %eax
jb 0x69856
btl $0x8, %eax
movq -0x40(%rbp), %rdi
jb 0x6985f
movq 0x20(%rsi), %r11
testq %r11, %r11
je 0x695d8
testb $0x4, 0x63(%r11)
jne 0x695d8
movzwl 0x5e(%r11), %eax
movq %rax, -0xd0(%rbp)
movzwl 0x60(%r11), %eax
cmpb $0x0, 0x62(%r11)
setne %cl
movl %ecx, -0x2c(%rbp)
jmp 0x69872
movq -0x40(%rbp), %rdi
jmp 0x69bf6
movl $0x1, %eax
movq $0x0, -0xd0(%rbp)
xorl %r11d, %r11d
testl %eax, %eax
je 0x69bf6
movl $0x1, %edx
movq -0x78(%rbp), %rcx
shlq %cl, %rdx
movq %rdx, -0xe8(%rbp)
movl %eax, %eax
movq %rax, -0x108(%rbp)
xorl %ebx, %ebx
movq $0x0, -0xa8(%rbp)
movq $0x0, -0xd8(%rbp)
movl $0x0, -0x5c(%rbp)
movq %r11, -0x80(%rbp)
movzwl 0x18(%rsi), %eax
cmpq %rax, %rbx
jae 0x698cd
cmpw $0x0, 0x2e(%rsi)
je 0x69b52
testq %r11, %r11
je 0x698f7
movq 0x8(%r11), %rcx
movq 0x18(%r11), %rdx
movzwl (%rcx,%rbx,2), %ecx
movq 0x38(%r11), %rsi
cmpw 0x3c(%rdx), %cx
movzbl (%rsi,%rbx), %esi
movl $0xffff, %edx           # imm = 0xFFFF
cmovel %edx, %ecx
movswl %cx, %edx
jmp 0x698fe
xorl %esi, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpq %rax, %rbx
movq %rbx, -0x48(%rbp)
movl %esi, -0x88(%rbp)
jb 0x6993f
cmpb $0x0, -0x2c(%rbp)
je 0x6993f
testl %edx, %edx
js 0x6993f
movq 0x18(%r11), %rax
movq 0x8(%rax), %rax
movl %edx, %ecx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
cmpb $0x0, 0x28(%rax,%rcx)
movl -0x2c(%rbp), %eax
movzbl %al, %eax
movl $0x0, %ecx
cmovel %ecx, %eax
movl %eax, -0x2c(%rbp)
xorl %r12d, %r12d
movb $0x1, %r14b
movb $0x1, %r15b
xorl %r13d, %r13d
movq %r8, -0x70(%rbp)
movl %edx, -0x34(%rbp)
btq %r12, %r8
jae 0x69975
incq %r12
incl %r13d
testb %r15b, %r15b
setne %al
cmpq %r9, %r12
setb %r14b
andb %al, %r14b
jne 0x69952
jmp 0x69a7b
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rax
movq %r12, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rbx
movq %rbx, %rdi
testq %rbx, %rbx
je 0x699b8
movq %rbx, %rdi
movl 0x4(%rdi), %eax
btl $0xc, %eax
jae 0x699b8
btl $0x12, %eax
jb 0x699a8
addq $0x10, %rdi
jmp 0x699b0
movq 0x20(%rdi), %rax
movq 0x8(%rax), %rdi
movq (%rdi), %rdi
testq %rdi, %rdi
jne 0x69993
movl -0xac(%rbp), %eax
testl %eax, %eax
movzbl %r15b, %r15d
cmovel %eax, %r15d
cmpl $-0x1, %edx
jl 0x69a3f
cmpb $-0x68, (%rdi)
jne 0x69958
cmpl %r10d, 0x2c(%rdi)
jne 0x69958
movswl 0x30(%rdi), %eax
cmpl %eax, %edx
jne 0x69a72
testl %edx, %edx
js 0x69bc9
movq -0x40(%rbp), %rax
movq (%rax), %rdi
movq %rbx, %rsi
callq 0x529e4
testq %rax, %rax
jne 0x69a0b
movq -0xa0(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movq -0x80(%rbp), %rax
movq 0x40(%rax), %rax
movq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0xa3f0
testl %eax, %eax
movq -0x70(%rbp), %r8
movq -0x50(%rbp), %r9
movl -0x30(%rbp), %r10d
movl -0x34(%rbp), %edx
jne 0x69958
jmp 0x69bd7
movq -0x80(%rbp), %rax
movq 0x50(%rax), %rax
movq 0x8(%rax), %rax
movq -0x48(%rbp), %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
movl %r10d, %edx
callq 0x544b5
movl -0x34(%rbp), %edx
movq -0x50(%rbp), %r9
movq -0x70(%rbp), %r8
testl %eax, %eax
je 0x699e4
movl -0x30(%rbp), %r10d
jmp 0x69958
xorl %eax, %eax
btl $0x8, -0x84(%rbp)
jb 0x69aeb
testb $0x1, %r14b
je 0x69aeb
movl %r13d, %ecx
cmpb $0x0, -0xa8(%rbp)
movq -0x40(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x80(%rbp), %r11
movq -0x48(%rbp), %rbx
je 0x69b81
movzbl -0xd8(%rbp), %edx
movl -0x88(%rbp), %r14d
xorl %edx, %r14d
movq -0x58(%rbp), %rdx
movq 0x8(%rdx), %rdx
shlq $0x5, %rcx
movzbl 0x18(%rdx,%rcx), %ecx
cmpl %ecx, %r14d
movzbl %al, %eax
movl $0x0, %ecx
cmovnel %ecx, %eax
movb $0x1, %cl
movq %rcx, -0xa8(%rbp)
movl -0x34(%rbp), %edx
jmp 0x69afb
movq -0x40(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x80(%rbp), %r11
movq -0x48(%rbp), %rbx
testb %al, %al
je 0x69b1a
testl %edx, %edx
movl -0x5c(%rbp), %ecx
movzbl %cl, %ecx
movl $0x1, %eax
cmovsl %eax, %ecx
movl %ecx, -0x5c(%rbp)
btsq %r13, %r8
movb $0x1, %al
jmp 0x69b35
xorl %eax, %eax
cmpq -0xd0(%rbp), %rbx
movl -0x2c(%rbp), %ecx
movzbl %cl, %ecx
cmovbl %eax, %ecx
testq %rbx, %rbx
cmovel %eax, %ecx
movl %ecx, -0x2c(%rbp)
testb %al, %al
je 0x69be1
incq %rbx
cmpq -0x108(%rbp), %rbx
jb 0x698b9
jmp 0x69be1
movq 0x38(%rsi), %rcx
movq (%rcx,%rbx,8), %rcx
movzwl 0x1a(%rcx), %ecx
testl $0x182, %ecx            # imm = 0x182
je 0x698cd
btl $0x8, %ecx
movl -0x2c(%rbp), %eax
movzbl %al, %eax
movl $0x0, %ecx
cmovbl %ecx, %eax
movl %eax, -0x2c(%rbp)
jmp 0x69b16
movq -0x58(%rbp), %rdx
movq 0x8(%rdx), %rdx
shlq $0x5, %rcx
movb 0x18(%rdx,%rcx), %cl
movl %ecx, %edx
movl -0x88(%rbp), %r14d
xorb %r14b, %dl
movq %rdx, -0xd8(%rbp)
movb $0x1, %dl
movq %rdx, -0xa8(%rbp)
cmpb %r14b, %cl
je 0x69ae6
movq 0x10(%rbp), %rcx
movq -0xe8(%rbp), %rdx
orq %rdx, (%rcx)
jmp 0x69ae6
movb $0x1, %al
movl %r12d, %r13d
movl -0x30(%rbp), %r10d
jmp 0x69a7d
movb $0x1, %al
movl %r12d, %r13d
jmp 0x69a7d
cmpb $0x0, -0x5c(%rbp)
movl -0x2c(%rbp), %eax
movzbl %al, %eax
movl $0x1, %ecx
cmovnel %ecx, %eax
movl %eax, -0x2c(%rbp)
cmpb $0x0, -0x2c(%rbp)
movq -0x78(%rbp), %rax
je 0x69cf0
movq -0xc0(%rbp), %rdx
orq 0x8(%rsi), %rdx
movq %rdx, -0xc0(%rbp)
notq %rdx
movq %rdx, -0x48(%rbp)
xorl %ebx, %ebx
movl $0x1, %r13d
movl %ebx, %ecx
shlq %cl, %r13
btq %rbx, %r8
jb 0x69cdd
movq %r8, %r12
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rax
movq %rbx, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %r14
movq -0x100(%rbp), %rdi
movq %r14, %rsi
callq 0x66ba0
movq %rax, %r15
testq %rax, %rax
jne 0x69cbe
xorps %xmm0, %xmm0
movaps %xmm0, -0x120(%rbp)
movaps %xmm0, -0x140(%rbp)
movaps %xmm0, -0x130(%rbp)
movb $0x1, -0x11c(%rbp)
leaq -0x15550(%rip), %rax    # 0x54737
movq %rax, -0x140(%rbp)
leaq -0x154e8(%rip), %rax    # 0x547ad
movq %rax, -0x138(%rbp)
movl $0x0, -0x118(%rbp)
leaq -0x140(%rbp), %rdi
movq %r14, %rsi
callq 0x547bc
cmpb $0x0, -0x11c(%rbp)
je 0x69ceb
testq %r15, -0x48(%rbp)
movq %r12, %r8
je 0x69cca
xorl %r13d, %r13d
orq %r13, %r8
movq -0x40(%rbp), %rdi
movq -0x50(%rbp), %r9
movq -0x78(%rbp), %rax
movq -0x68(%rbp), %rsi
incq %rbx
cmpq %r9, %rbx
jne 0x69c1f
jmp 0x69cf0
movq %r12, %r8
jmp 0x69ccd
cmpb $0x0, -0x2c(%rbp)
je 0x69d2a
cmpq -0x90(%rbp), %r8
jae 0x69d2a
movq %rax, %rcx
incq %rax
cmpq -0xc8(%rbp), %rcx
jb 0x69671
jmp 0x69d2a
movb $0x1, %al
movl %eax, -0x2c(%rbp)
xorl %r8d, %r8d
jmp 0x69d2a
cmpb $0x0, 0x1d(%rcx)
cmovneq -0x90(%rbp), %r8
cmpq -0x90(%rbp), %r8
jne 0x69d3f
movq -0xb8(%rbp), %rax
jmp 0x695da
movb $-0x1, %al
cmpb $0x0, -0x2c(%rbp)
movq -0xb8(%rbp), %rcx
jne 0x695da
leal -0x1(%rcx), %edx
cmpq $0x2, %rcx
jl 0x695d8
decq %rcx
movq $-0x1, %rsi
shlq %cl, %rsi
orq %r8, %rsi
movzbl %dl, %edi
decl %edx
movzbl %al, %eax
cmpq $-0x1, %rsi
cmovel %edi, %eax
jne 0x69d55
jmp 0x695da