// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3FindInIndex
SQLITE_PRIVATE int sqlite3FindInIndex(
  Parse *pParse,             /* Parsing context */
  Expr *pX,                  /* The IN expression */
  u32 inFlags,               /* IN_INDEX_LOOP, _MEMBERSHIP, and/or _NOOP_OK */
  int *prRhsHasNull,         /* Register holding NULL status.  See notes */
  int *aiMap,                /* Mapping from Index fields to RHS fields */
  int *piTab                 /* OUT: index to use */
){
  Select *p;                            /* SELECT to the right of IN operator */
  int eType = 0;                        /* Type of RHS table. IN_INDEX_* */
  int iTab = pParse->nTab++;            /* Cursor of the RHS table */
  int mustBeUnique;                     /* True if RHS must be unique */
  Vdbe *v = sqlite3GetVdbe(pParse);     /* Virtual machine being coded */

  assert( pX->op==TK_IN );
  mustBeUnique = (inFlags & IN_INDEX_LOOP)!=0;

  /* If the RHS of this IN(...) operator is a SELECT, and if it matters
  ** whether or not the SELECT result contains NULL values, check whether
  ** or not NULL is actually possible (it may not be, for example, due
  ** to NOT NULL constraints in the schema). If no NULL values are possible,
  ** set prRhsHasNull to 0 before continuing.  */
  if( prRhsHasNull && (pX->flags & EP_xIsSelect) ){
    int i;
    ExprList *pEList = pX->x.pSelect->pEList;
    for(i=0; i<pEList->nExpr; i++){
      if( sqlite3ExprCanBeNull(pEList->a[i].pExpr) ) break;
    }
    if( i==pEList->nExpr ){
      prRhsHasNull = 0;
    }
  }

  /* Check to see if an existing table or index can be used to
  ** satisfy the query.  This is preferable to generating a new
  ** ephemeral table.  */
  if( pParse->nErr==0 && (p = isCandidateForInOpt(pX))!=0 ){
    sqlite3 *db = pParse->db;              /* Database connection */
    Table *pTab;                           /* Table <table>. */
    int iDb;                               /* Database idx for pTab */
    ExprList *pEList = p->pEList;
    int nExpr = pEList->nExpr;

    assert( p->pEList!=0 );             /* Because of isCandidateForInOpt(p) */
    assert( p->pEList->a[0].pExpr!=0 ); /* Because of isCandidateForInOpt(p) */
    assert( p->pSrc!=0 );               /* Because of isCandidateForInOpt(p) */
    pTab = p->pSrc->a[0].pTab;

    /* Code an OP_Transaction and OP_TableLock for <table>. */
    iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
    assert( iDb>=0 && iDb<SQLITE_MAX_ATTACHED );
    sqlite3CodeVerifySchema(pParse, iDb);
    sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);

    assert(v);  /* sqlite3GetVdbe() has always been previously called */
    if( nExpr==1 && pEList->a[0].pExpr->iColumn<0 ){
      /* The "x IN (SELECT rowid FROM table)" case */
      int iAddr = sqlite3VdbeAddOp0(v, OP_Once);
      VdbeCoverage(v);

      sqlite3OpenTable(pParse, iTab, iDb, pTab, OP_OpenRead);
      eType = IN_INDEX_ROWID;
      ExplainQueryPlan((pParse, 0,
            "USING ROWID SEARCH ON TABLE %s FOR IN-OPERATOR",pTab->zName));
      sqlite3VdbeJumpHere(v, iAddr);
    }else{
      Index *pIdx;                         /* Iterator variable */
      int affinity_ok = 1;
      int i;

      /* Check that the affinity that will be used to perform each
      ** comparison is the same as the affinity of each column in table
      ** on the RHS of the IN operator.  If it not, it is not possible to
      ** use any index of the RHS table.  */
      for(i=0; i<nExpr && affinity_ok; i++){
        Expr *pLhs = sqlite3VectorFieldSubexpr(pX->pLeft, i);
        int iCol = pEList->a[i].pExpr->iColumn;
        char idxaff = sqlite3TableColumnAffinity(pTab,iCol); /* RHS table */
        char cmpaff = sqlite3CompareAffinity(pLhs, idxaff);
        testcase( cmpaff==SQLITE_AFF_BLOB );
        testcase( cmpaff==SQLITE_AFF_TEXT );
        switch( cmpaff ){
          case SQLITE_AFF_BLOB:
            break;
          case SQLITE_AFF_TEXT:
            /* sqlite3CompareAffinity() only returns TEXT if one side or the
            ** other has no affinity and the other side is TEXT.  Hence,
            ** the only way for cmpaff to be TEXT is for idxaff to be TEXT
            ** and for the term on the LHS of the IN to have no affinity. */
            assert( idxaff==SQLITE_AFF_TEXT );
            break;
          default:
            affinity_ok = sqlite3IsNumericAffinity(idxaff);
        }
      }

      if( affinity_ok ){
        /* Search for an existing index that will work for this IN operator */
        for(pIdx=pTab->pIndex; pIdx && eType==0; pIdx=pIdx->pNext){
          Bitmask colUsed;      /* Columns of the index used */
          Bitmask mCol;         /* Mask for the current column */
          if( pIdx->nColumn<nExpr ) continue;
          if( pIdx->pPartIdxWhere!=0 ) continue;
          /* Maximum nColumn is BMS-2, not BMS-1, so that we can compute
          ** BITMASK(nExpr) without overflowing */
          testcase( pIdx->nColumn==BMS-2 );
          testcase( pIdx->nColumn==BMS-1 );
          if( pIdx->nColumn>=BMS-1 ) continue;
          if( mustBeUnique ){
            if( pIdx->nKeyCol>nExpr
             ||(pIdx->nColumn>nExpr && !IsUniqueIndex(pIdx))
            ){
              continue;  /* This index is not unique over the IN RHS columns */
            }
          }

          colUsed = 0;   /* Columns of index used so far */
          for(i=0; i<nExpr; i++){
            Expr *pLhs = sqlite3VectorFieldSubexpr(pX->pLeft, i);
            Expr *pRhs = pEList->a[i].pExpr;
            CollSeq *pReq = sqlite3BinaryCompareCollSeq(pParse, pLhs, pRhs);
            int j;

            assert( pReq!=0 || pRhs->iColumn==XN_ROWID || pParse->nErr );
            for(j=0; j<nExpr; j++){
              if( pIdx->aiColumn[j]!=pRhs->iColumn ) continue;
              assert( pIdx->azColl[j] );
              if( pReq!=0 && sqlite3StrICmp(pReq->zName, pIdx->azColl[j])!=0 ){
                continue;
              }
              break;
            }
            if( j==nExpr ) break;
            mCol = MASKBIT(j);
            if( mCol & colUsed ) break; /* Each column used only once */
            colUsed |= mCol;
            if( aiMap ) aiMap[i] = j;
          }

          assert( i==nExpr || colUsed!=(MASKBIT(nExpr)-1) );
          if( colUsed==(MASKBIT(nExpr)-1) ){
            /* If we reach this point, that means the index pIdx is usable */
            int iAddr = sqlite3VdbeAddOp0(v, OP_Once); VdbeCoverage(v);
            ExplainQueryPlan((pParse, 0,
                              "USING INDEX %s FOR IN-OPERATOR",pIdx->zName));
            sqlite3VdbeAddOp3(v, OP_OpenRead, iTab, pIdx->tnum, iDb);
            sqlite3VdbeSetP4KeyInfo(pParse, pIdx);
            VdbeComment((v, "%s", pIdx->zName));
            assert( IN_INDEX_INDEX_DESC == IN_INDEX_INDEX_ASC+1 );
            eType = IN_INDEX_INDEX_ASC + pIdx->aSortOrder[0];

            if( prRhsHasNull ){
#ifdef SQLITE_ENABLE_COLUMN_USED_MASK
              i64 mask = (1<<nExpr)-1;
              sqlite3VdbeAddOp4Dup8(v, OP_ColumnsUsed,
                  iTab, 0, 0, (u8*)&mask, P4_INT64);
#endif
              *prRhsHasNull = ++pParse->nMem;
              if( nExpr==1 ){
                sqlite3SetHasNullFlag(v, iTab, *prRhsHasNull);
              }
            }
            sqlite3VdbeJumpHere(v, iAddr);
          }
        } /* End loop over indexes */
      } /* End if( affinity_ok ) */
    } /* End if not an rowid index */
  } /* End attempt to optimize using an index */

  /* If no preexisting index is available for the IN clause
  ** and IN_INDEX_NOOP is an allowed reply
  ** and the RHS of the IN operator is a list, not a subquery
  ** and the RHS is not constant or has two or fewer terms,
  ** then it is not worth creating an ephemeral table to evaluate
  ** the IN operator so return IN_INDEX_NOOP.
  */
  if( eType==0
   && (inFlags & IN_INDEX_NOOP_OK)
   && !ExprHasProperty(pX, EP_xIsSelect)
   && (!sqlite3InRhsIsConstant(pX) || pX->x.pList->nExpr<=2)
  ){
    eType = IN_INDEX_NOOP;
  }

  if( eType==0 ){
    /* Could not find an existing table or index to use as the RHS b-tree.
    ** We will have to generate an ephemeral table to do the job.
    */
    u32 savedNQueryLoop = pParse->nQueryLoop;
    int rMayHaveNull = 0;
    eType = IN_INDEX_EPH;
    if( inFlags & IN_INDEX_LOOP ){
      pParse->nQueryLoop = 0;
    }else if( prRhsHasNull ){
      *prRhsHasNull = rMayHaveNull = ++pParse->nMem;
    }
    assert( pX->op==TK_IN );
    sqlite3CodeRhsOfIN(pParse, pX, iTab);
    if( rMayHaveNull ){
      sqlite3SetHasNullFlag(v, iTab, rMayHaveNull);
    }
    pParse->nQueryLoop = savedNQueryLoop;
  }

  if( aiMap && eType!=IN_INDEX_INDEX_ASC && eType!=IN_INDEX_INDEX_DESC ){
    int i, n;
    n = sqlite3ExprVectorSize(pX->pLeft);
    for(i=0; i<n; i++) aiMap[i] = i;
  }
  *piTab = iTab;
  return eType;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r9, 0x78(%rsp)
movq %r8, 0x70(%rsp)
movq %rcx, %r14
movl %edx, %r12d
movq %rsi, %r15
movq %rdi, %r13
movl 0x34(%rdi), %eax
movq %rax, 0x38(%rsp)
incl %eax
movl %eax, 0x34(%rdi)
callq 0x2645be
movq %rax, 0x50(%rsp)
testq %r14, %r14
je 0x268d1d
testb $0x8, 0x5(%r15)
je 0x268d3e
movl %r12d, 0x28(%rsp)
movq %r14, %rbp
movq %r13, 0x20(%rsp)
movq %r15, %r13
movq 0x20(%r15), %rax
movq 0x20(%rax), %r15
movl (%r15), %ebx
addq $0x8, %r15
xorl %r12d, %r12d
testl %ebx, %ebx
movl $0x0, %r14d
cmovgl %ebx, %r14d
cmpq %r12, %r14
je 0x268d25
movq (%r15), %rdi
callq 0x269684
testl %eax, %eax
jne 0x268d22
incq %r12
addq $0x18, %r15
jmp 0x268d03
xorl %r14d, %r14d
jmp 0x268d3e
movl %r12d, %r14d
xorl %eax, %eax
cmpl %ebx, %r14d
movq %rbp, %r14
cmoveq %rax, %r14
movq %r13, %r15
movq 0x20(%rsp), %r13
movl 0x28(%rsp), %r12d
cmpl $0x0, 0x30(%r13)
jne 0x269117
movl $0x820, %eax            # imm = 0x820
andl 0x4(%r15), %eax
cmpl $0x800, %eax            # imm = 0x800
jne 0x269117
movq 0x20(%r15), %rax
cmpq $0x0, 0x50(%rax)
jne 0x269117
testb $0x9, 0x4(%rax)
jne 0x269117
cmpq $0x0, 0x60(%rax)
jne 0x269117
cmpq $0x0, 0x30(%rax)
jne 0x269117
movq 0x28(%rax), %rcx
cmpl $0x1, (%rcx)
jne 0x269117
cmpq $0x0, 0x30(%rcx)
jne 0x269117
movq 0x28(%rcx), %r8
cmpl $0x0, 0x54(%r8)
jne 0x269117
pushq $0x1
popq %rbx
movq 0x20(%rax), %rdi
movslq (%rdi), %rdx
addq $0x8, %rdi
movl %edx, %r9d
xorl %ecx, %ecx
testl %edx, %edx
movl $0x0, %esi
movq %rdx, 0x58(%rsp)
cmovgl %edx, %esi
movq %rsi, 0x60(%rsp)
imulq $0x18, %rsi, %rdx
addq $0x18, %rdx
leaq 0x18(%rcx), %rsi
cmpq %rsi, %rdx
je 0x268dfc
movq (%rdi,%rcx), %rcx
cmpb $-0x5c, (%rcx)
movq %rsi, %rcx
je 0x268de2
jmp 0x269117
testq %rax, %rax
je 0x269117
movq %rdi, 0x18(%rsp)
movl %r12d, 0x28(%rsp)
movq %r14, 0x30(%rsp)
movq %r15, 0x8(%rsp)
movq (%r13), %rdi
movq 0x70(%r8), %rsi
movq %r8, %r14
movq %r9, %r15
callq 0x226e9e
movl %eax, %r12d
movq %r13, %rdi
movl %eax, %esi
callq 0x269725
movl 0x38(%r14), %edx
movq %r14, %rbp
movq (%r14), %r8
movq %r13, 0x20(%rsp)
movq %r13, %rdi
movl %r12d, 0x6c(%rsp)
movl %r12d, %esi
xorl %ecx, %ecx
callq 0x264778
movq %r15, 0x10(%rsp)
cmpl $0x1, %r15d
jne 0x268e78
movq 0x18(%rsp), %rax
movq (%rax), %rax
cmpw $0x0, 0x30(%rax)
js 0x269628
movb $0x1, %al
xorl %ebx, %ebx
movq 0x18(%rsp), %r15
movq 0x58(%rsp), %r12
cmpq %r12, %rbx
jge 0x268ee4
testb $0x1, %al
je 0x268ee4
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rdi
movl %ebx, %esi
callq 0x267cfa
movq (%r15), %rcx
movswq 0x30(%rcx), %rcx
testq %rcx, %rcx
js 0x268eba
movq 0x8(%rbp), %rdx
shlq $0x5, %rcx
movb 0x19(%rdx,%rcx), %cl
jmp 0x268ebc
movb $0x44, %cl
movsbl %cl, %r14d
movq %rax, %rdi
movl %r14d, %esi
callq 0x267e25
addb $-0x41, %al
cmpb $0x2, %al
setb %cl
cmpb $0x43, %r14b
setge %al
orb %cl, %al
incq %rbx
addq $0x18, %r15
jmp 0x268e86
testb $0x1, %al
movq 0x8(%rsp), %r15
movq 0x20(%rsp), %r13
movq 0x30(%rsp), %r14
movl 0x28(%rsp), %r12d
movq 0x10(%rsp), %rsi
je 0x269117
movq %rbp, %rdx
addq $0x10, %rdx
pushq $-0x1
popq %rax
movl %esi, %ecx
shlq %cl, %rax
movq %rax, 0x48(%rsp)
xorl %ebx, %ebx
movq (%rdx), %rdx
testq %rdx, %rdx
je 0x269105
testl %ebx, %ebx
jne 0x269105
movzwl 0x60(%rdx), %eax
xorl %ebx, %ebx
cmpl %eax, %esi
jle 0x268f3f
addq $0x28, %rdx
jmp 0x268f1b
cmpw $0x3e, %ax
ja 0x268f39
cmpq $0x0, 0x48(%rdx)
jne 0x268f39
testb $0x4, %r12b
jne 0x2690e0
xorl %r14d, %r14d
movq $0x0, 0x40(%rsp)
movq %rdx, %rbp
cmpq 0x60(%rsp), %r14
je 0x26901f
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rdi
movl %r14d, %esi
callq 0x267cfa
imulq $0x18, %r14, %rcx
movq 0x18(%rsp), %rdx
movq (%rdx,%rcx), %r13
movq 0x20(%rsp), %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x24e4fd
movq 0x10(%rsp), %rsi
movq %rbp, %rdx
movq %rax, %r12
xorl %r15d, %r15d
cmpq %r15, %rsi
je 0x26901f
movq 0x8(%rdx), %rax
movzwl (%rax,%r15,2), %eax
cmpw 0x30(%r13), %ax
jne 0x268fe3
testq %r12, %r12
je 0x268fe8
movq (%r12), %rdi
movq 0x40(%rdx), %rax
movq (%rax,%r15,8), %rsi
callq 0x221779
movq 0x10(%rsp), %rsi
movq %rbp, %rdx
testl %eax, %eax
je 0x268fe8
incq %r15
jmp 0x268fac
cmpl %r15d, %esi
je 0x26901f
pushq $0x1
popq %rax
movl %r15d, %ecx
shlq %cl, %rax
movq 0x40(%rsp), %rcx
btq %r15, %rcx
jb 0x26901f
cmpq $0x0, 0x70(%rsp)
je 0x269012
movq 0x70(%rsp), %rcx
movl %r15d, (%rcx,%r14,4)
orq %rax, 0x40(%rsp)
incq %r14
jmp 0x268f65
movq 0x40(%rsp), %rax
xorq 0x48(%rsp), %rax
cmpq $-0x1, %rax
movq 0x20(%rsp), %r13
movl 0x28(%rsp), %r12d
jne 0x268f39
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
pushq $0x11
popq %rsi
movq %rdx, %r15
callq 0x2645ec
movl %eax, %r14d
movq (%r15), %rcx
movq %r13, %rdi
xorl %esi, %esi
leaq 0x10ea89(%rip), %rdx    # 0x377aeb
xorl %eax, %eax
callq 0x268aa3
movl 0x58(%r15), %ecx
movq %rbx, %rdi
pushq $0x60
popq %rsi
movq 0x38(%rsp), %rdx
movl 0x6c(%rsp), %r8d
callq 0x24d51f
movq %r13, %rdi
movq %r15, %rsi
callq 0x264872
movq 0x38(%r15), %rax
movzbl (%rax), %ebx
cmpq $0x0, 0x30(%rsp)
je 0x2690c3
movl 0x38(%r13), %edx
incl %edx
movl %edx, 0x38(%r13)
movq 0x30(%rsp), %rax
movl %edx, (%rax)
cmpl $0x1, 0x58(%rsp)
jne 0x2690c3
movq 0x50(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x269754
addl $0x3, %ebx
movq 0x50(%rsp), %rdi
movl %r14d, %esi
callq 0x2645f8
movq %rbp, %rdx
movq 0x10(%rsp), %rsi
jmp 0x268f39
movzwl 0x5e(%rdx), %ecx
cmpl %ecx, 0x58(%rsp)
jl 0x268f39
cmpl %eax, %esi
jae 0x268f56
cmpb $0x0, 0x62(%rdx)
jne 0x268f56
jmp 0x268f39
testl %ebx, %ebx
movq 0x8(%rsp), %r15
movq 0x30(%rsp), %r14
jne 0x2695d8
testb $0x1, %r12b
je 0x269151
testb $0x8, 0x5(%r15)
jne 0x269151
movq 0x10(%r15), %rbx
andq $0x0, 0x10(%r15)
movq %r15, %rdi
callq 0x261298
movq %rbx, 0x10(%r15)
pushq $0x5
popq %rbx
testl %eax, %eax
je 0x2695d8
movq 0x20(%r15), %rax
cmpl $0x3, (%rax)
jl 0x2695d8
movl 0xc4(%r13), %eax
testb $0x4, %r12b
movl %eax, 0x58(%rsp)
jne 0x269176
testq %r14, %r14
je 0x26917e
movl 0x38(%r13), %ebp
incl %ebp
movl %ebp, 0x38(%r13)
movl %ebp, (%r14)
jmp 0x269180
andl $0x0, 0xc4(%r13)
xorl %ebp, %ebp
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movl 0x4(%r15), %eax
movl $0x0, 0x28(%rsp)
testb $0x20, %al
jne 0x2691e8
cmpl $0x0, 0x40(%r13)
jne 0x2691e8
btl $0x19, %eax
jb 0x269497
orl $0x2000000, %eax        # imm = 0x2000000
movl %eax, 0x4(%r15)
movl 0x38(%r13), %ecx
incl %ecx
movl %ecx, 0x38(%r13)
movl %ecx, 0x44(%r15)
pushq $0x45
popq %rsi
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x24d51a
incl %eax
movl %eax, 0x40(%r15)
pushq $0x11
popq %rsi
movq %rbx, %rdi
callq 0x2645ec
movl %eax, 0x28(%rsp)
movl %ebp, 0x30(%rsp)
movq 0x10(%r15), %r12
movq %r12, %rdi
callq 0x26697d
movl %eax, %r14d
movq 0x38(%rsp), %rdx
movl %edx, 0x2c(%r15)
pushq $0x64
popq %rsi
movq 0x10(%rsp), %rdi
movl %eax, %ecx
callq 0x24d51a
movl %eax, %ebx
movq (%r13), %rdi
pushq $0x1
popq %rdx
movl %r14d, %esi
callq 0x264994
movq %rax, 0x18(%rsp)
testb $0x8, 0x5(%r15)
movq %r15, 0x8(%rsp)
movq 0x20(%r15), %r15
jne 0x26926b
testq %r15, %r15
je 0x26954b
movq %r12, %rdi
callq 0x267d81
movb %al, 0x80(%rsp)
cmpb $0x40, %al
jg 0x26932d
movb $0x41, 0x80(%rsp)
movq 0x18(%rsp), %r14
jmp 0x26933e
movq 0x20(%r15), %rbp
cmpl $0x0, 0x28(%rsp)
leaq 0x10e835(%rip), %rax    # 0x377ab0
leaq 0x1012ee(%rip), %rcx    # 0x36a570
cmoveq %rax, %rcx
movl 0x10(%r15), %r8d
leaq 0x10e890(%rip), %rdx    # 0x377b21
pushq $0x1
popq %rsi
movq %r13, %rdi
xorl %eax, %eax
callq 0x268aa3
cmpl %r14d, (%rbp)
jne 0x26954b
movl %ebx, 0x48(%rsp)
movq %r13, %rbx
leaq 0x80(%rsp), %r13
movb $0xb, (%r13)
movq 0x38(%rsp), %rax
movl %eax, 0x4(%r13)
andq $0x0, 0x8(%r13)
andl $0x0, 0x10(%r13)
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x268bd6
movq %rax, 0x18(%r13)
andl $0x0, 0x8(%r15)
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x2565ce
movl %eax, %r15d
movq %rbx, 0x20(%rsp)
movq (%rbx), %rdi
movq 0x18(%r13), %rsi
callq 0x21f26b
testl %r15d, %r15d
je 0x269502
movq 0x18(%rsp), %rdi
callq 0x2387e9
movq 0x8(%rsp), %r15
movq 0x20(%rsp), %r13
movl 0x30(%rsp), %ebp
jmp 0x2695b5
cmpb $0x45, %al
movq 0x18(%rsp), %r14
jne 0x26933e
movb $0x43, 0x80(%rsp)
movl %ebx, 0x48(%rsp)
testq %r14, %r14
je 0x26935c
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rsi
movq %r13, %rdi
callq 0x24e541
movq %rax, 0x20(%r14)
movq %r13, %rdi
callq 0x267d61
movl %eax, 0x60(%rsp)
movq %r13, 0x20(%rsp)
movq %r13, %rdi
callq 0x267d61
movl %eax, 0x40(%rsp)
movl (%r15), %r12d
addq $0x8, %r15
movl 0x28(%rsp), %ebx
movl 0x60(%rsp), %r14d
movl 0x40(%rsp), %r13d
testl %r12d, %r12d
jle 0x26942e
movq (%r15), %rbp
testl %ebx, %ebx
movq %r15, 0x28(%rsp)
je 0x2693c4
movq %rbp, %rdi
callq 0x261298
testl %eax, %eax
jne 0x2693c6
movq 0x10(%rsp), %rdi
movl %ebx, %esi
callq 0x2697c6
movq 0x8(%rsp), %rax
andb $-0x3, 0x7(%rax)
xorl %ebx, %ebx
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
movl %r14d, %edx
callq 0x26463f
movl $0x1, (%rsp)
movq 0x10(%rsp), %rbp
movq %rbp, %rdi
pushq $0x5b
popq %rsi
movl %r14d, %edx
pushq $0x1
popq %r15
movl %r15d, %ecx
movl %r13d, %r8d
leaq 0x80(%rsp), %r9
callq 0x264609
movq %rbp, %rdi
movl $0x82, %esi
movq 0x38(%rsp), %rdx
movl %r13d, %ecx
movl %r14d, %r8d
movl %r15d, %r9d
callq 0x226fc2
decl %r12d
movq 0x28(%rsp), %r15
addq $0x18, %r15
jmp 0x26938e
movl %ebx, 0x28(%rsp)
cmpl $0x0, 0x60(%rsp)
movq 0x20(%rsp), %r13
je 0x26945c
movzbl 0x1f(%r13), %eax
cmpq $0x7, %rax
ja 0x26945c
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%r13)
movl 0x60(%rsp), %ecx
movl %ecx, 0xd4(%r13,%rax,4)
cmpl $0x0, 0x40(%rsp)
movq 0x8(%rsp), %r15
movl 0x48(%rsp), %ebx
je 0x269550
movzbl 0x1f(%r13), %eax
cmpq $0x7, %rax
ja 0x269550
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%r13)
movl 0x40(%rsp), %ecx
movl %ecx, 0xd4(%r13,%rax,4)
jmp 0x269550
pushq $0x11
popq %rsi
movq 0x10(%rsp), %rdi
callq 0x2645ec
movl %eax, %ebx
testb $0x8, 0x5(%r15)
je 0x2694c7
movq 0x20(%r15), %rax
movl 0x10(%rax), %ecx
leaq 0x10e64f(%rip), %rdx    # 0x377b0a
movq %r13, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x268aa3
movl 0x40(%r15), %ecx
movl 0x44(%r15), %edx
pushq $0xc
popq %rsi
movq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x24d51a
movl 0x2c(%r15), %ecx
pushq $0x62
popq %rsi
movq %r14, %rdi
movq 0x38(%rsp), %rdx
callq 0x24d51a
movq %r14, %rdi
movl %ebx, %esi
callq 0x2645f8
jmp 0x2695b5
addq $0x8, %rbp
xorl %r15d, %r15d
testl %r14d, %r14d
cmovlel %r15d, %r14d
movq 0x20(%rsp), %r13
movl 0x48(%rsp), %ebx
cmpq %r15, %r14
je 0x26954b
movq %r12, %rdi
movl %r15d, %esi
callq 0x267cfa
movq (%rbp), %rdx
movq %r13, %rdi
movq %rax, %rsi
callq 0x24e4fd
movq 0x18(%rsp), %rcx
movq %rax, 0x20(%rcx,%r15,8)
incq %r15
addq $0x18, %rbp
jmp 0x269519
movq 0x8(%rsp), %r15
movl 0x30(%rsp), %ebp
movq 0x18(%rsp), %rdx
testq %rdx, %rdx
je 0x26956d
pushq $-0x9
popq %rcx
movq 0x10(%rsp), %rdi
movl %ebx, %esi
callq 0x2270ee
movl 0x28(%rsp), %esi
testl %esi, %esi
je 0x2695b5
movq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x2645f8
movl 0x44(%r15), %edx
pushq $0x41
popq %rsi
movq %r14, %rdi
callq 0x265d5c
movl 0x40(%r15), %esi
decl %esi
movl 0x90(%r14), %ebx
decl %ebx
movq %r14, %rdi
callq 0x26468f
movl %ebx, 0x4(%rax)
movb $0x0, 0x1f(%r13)
andl $0x0, 0x28(%r13)
testl %ebp, %ebp
je 0x2695ca
movq 0x50(%rsp), %rdi
movq 0x38(%rsp), %rsi
movl %ebp, %edx
callq 0x269754
movl 0x58(%rsp), %eax
movl %eax, 0xc4(%r13)
pushq $0x2
popq %rbx
movq 0x70(%rsp), %r14
testq %r14, %r14
je 0x269608
leal -0x5(%rbx), %eax
cmpl $-0x3, %eax
ja 0x269608
movq 0x10(%r15), %rdi
callq 0x26697d
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
cmpq %rcx, %rax
je 0x269608
movl %ecx, (%r14,%rcx,4)
incq %rcx
jmp 0x2695fa
movq 0x78(%rsp), %rax
movq 0x38(%rsp), %rcx
movl %ecx, (%rax)
movl %ebx, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x11
popq %rsi
movq 0x50(%rsp), %r15
movq %r15, %rdi
callq 0x2645ec
movl %eax, %r13d
pushq $0x60
popq %r8
movq 0x20(%rsp), %r14
movq %r14, %rdi
movq 0x38(%rsp), %rsi
movl 0x6c(%rsp), %edx
movq %rbp, %rcx
callq 0x2646bb
movq (%rbp), %rcx
leaq 0x10e459(%rip), %rdx    # 0x377abc
movq %r14, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x268aa3
movq %r15, %rdi
movl %r13d, %esi
callq 0x2645f8
movq 0x8(%rsp), %r15
jmp 0x2695d8