// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: constructAutomaticIndex
static void constructAutomaticIndex(
  Parse *pParse,              /* The parsing context */
  WhereClause *pWC,           /* The WHERE clause */
  struct SrcList_item *pSrc,  /* The FROM clause term to get the next index */
  Bitmask notReady,           /* Mask of cursors that are not available */
  WhereLevel *pLevel          /* Write new index here */
){
  int nKeyCol;                /* Number of columns in the constructed index */
  WhereTerm *pTerm;           /* A single term of the WHERE clause */
  WhereTerm *pWCEnd;          /* End of pWC->a[] */
  Index *pIdx;                /* Object describing the transient index */
  Vdbe *v;                    /* Prepared statement under construction */
  int addrInit;               /* Address of the initialization bypass jump */
  Table *pTable;              /* The table being indexed */
  int addrTop;                /* Top of the index fill loop */
  int regRecord;              /* Register holding an index record */
  int n;                      /* Column counter */
  int i;                      /* Loop counter */
  int mxBitCol;               /* Maximum column in pSrc->colUsed */
  CollSeq *pColl;             /* Collating sequence to on a column */
  WhereLoop *pLoop;           /* The Loop object */
  char *zNotUsed;             /* Extra space on the end of pIdx */
  Bitmask idxCols;            /* Bitmap of columns used for indexing */
  Bitmask extraCols;          /* Bitmap of additional columns */
  u8 sentWarning = 0;         /* True if a warnning has been issued */
  Expr *pPartial = 0;         /* Partial Index Expression */
  int iContinue = 0;          /* Jump here to skip excluded rows */
  struct SrcList_item *pTabItem;  /* FROM clause term being indexed */
  int addrCounter = 0;        /* Address where integer counter is initialized */
  int regBase;                /* Array of registers where record is assembled */

  /* Generate code to skip over the creation and initialization of the
  ** transient index on 2nd and subsequent iterations of the loop. */
  v = pParse->pVdbe;
  assert( v!=0 );
  addrInit = sqlite3VdbeAddOp0(v, OP_Once); VdbeCoverage(v);

  /* Count the number of columns that will be added to the index
  ** and used to match WHERE clause constraints */
  nKeyCol = 0;
  pTable = pSrc->pTab;
  pWCEnd = &pWC->a[pWC->nTerm];
  pLoop = pLevel->pWLoop;
  idxCols = 0;
  for(pTerm=pWC->a; pTerm<pWCEnd; pTerm++){
    Expr *pExpr = pTerm->pExpr;
    assert( !ExprHasProperty(pExpr, EP_FromJoin)    /* prereq always non-zero */
         || pExpr->iRightJoinTable!=pSrc->iCursor   /*   for the right-hand   */
         || pLoop->prereq!=0 );                     /*   table of a LEFT JOIN */
    if( pLoop->prereq==0
     && (pTerm->wtFlags & TERM_VIRTUAL)==0
     && !ExprHasProperty(pExpr, EP_FromJoin)
     && sqlite3ExprIsTableConstant(pExpr, pSrc->iCursor) ){
      pPartial = sqlite3ExprAnd(pParse, pPartial,
                                sqlite3ExprDup(pParse->db, pExpr, 0));
    }
    if( termCanDriveIndex(pTerm, pSrc, notReady) ){
      int iCol = pTerm->u.leftColumn;
      Bitmask cMask = iCol>=BMS ? MASKBIT(BMS-1) : MASKBIT(iCol);
      testcase( iCol==BMS );
      testcase( iCol==BMS-1 );
      if( !sentWarning ){
        sqlite3_log(SQLITE_WARNING_AUTOINDEX,
            "automatic index on %s(%s)", pTable->zName,
            pTable->aCol[iCol].zName);
        sentWarning = 1;
      }
      if( (idxCols & cMask)==0 ){
        if( whereLoopResize(pParse->db, pLoop, nKeyCol+1) ){
          goto end_auto_index_create;
        }
        pLoop->aLTerm[nKeyCol++] = pTerm;
        idxCols |= cMask;
      }
    }
  }
  assert( nKeyCol>0 );
  pLoop->u.btree.nEq = pLoop->nLTerm = nKeyCol;
  pLoop->wsFlags = WHERE_COLUMN_EQ | WHERE_IDX_ONLY | WHERE_INDEXED
                     | WHERE_AUTO_INDEX;

  /* Count the number of additional columns needed to create a
  ** covering index.  A "covering index" is an index that contains all
  ** columns that are needed by the query.  With a covering index, the
  ** original table never needs to be accessed.  Automatic indices must
  ** be a covering index because the index will not be updated if the
  ** original table changes and the index and table cannot both be used
  ** if they go out of sync.
  */
  extraCols = pSrc->colUsed & (~idxCols | MASKBIT(BMS-1));
  mxBitCol = MIN(BMS-1,pTable->nCol);
  testcase( pTable->nCol==BMS-1 );
  testcase( pTable->nCol==BMS-2 );
  for(i=0; i<mxBitCol; i++){
    if( extraCols & MASKBIT(i) ) nKeyCol++;
  }
  if( pSrc->colUsed & MASKBIT(BMS-1) ){
    nKeyCol += pTable->nCol - BMS + 1;
  }

  /* Construct the Index object to describe this index */
  pIdx = sqlite3AllocateIndexObject(pParse->db, nKeyCol+1, 0, &zNotUsed);
  if( pIdx==0 ) goto end_auto_index_create;
  pLoop->u.btree.pIndex = pIdx;
  pIdx->zName = "auto-index";
  pIdx->pTable = pTable;
  n = 0;
  idxCols = 0;
  for(pTerm=pWC->a; pTerm<pWCEnd; pTerm++){
    if( termCanDriveIndex(pTerm, pSrc, notReady) ){
      int iCol = pTerm->u.leftColumn;
      Bitmask cMask = iCol>=BMS ? MASKBIT(BMS-1) : MASKBIT(iCol);
      testcase( iCol==BMS-1 );
      testcase( iCol==BMS );
      if( (idxCols & cMask)==0 ){
        Expr *pX = pTerm->pExpr;
        idxCols |= cMask;
        pIdx->aiColumn[n] = pTerm->u.leftColumn;
        pColl = sqlite3ExprCompareCollSeq(pParse, pX);
        assert( pColl!=0 || pParse->nErr>0 ); /* TH3 collate01.800 */
        pIdx->azColl[n] = pColl ? pColl->zName : sqlite3StrBINARY;
        n++;
      }
    }
  }
  assert( (u32)n==pLoop->u.btree.nEq );

  /* Add additional columns needed to make the automatic index into
  ** a covering index */
  for(i=0; i<mxBitCol; i++){
    if( extraCols & MASKBIT(i) ){
      pIdx->aiColumn[n] = i;
      pIdx->azColl[n] = sqlite3StrBINARY;
      n++;
    }
  }
  if( pSrc->colUsed & MASKBIT(BMS-1) ){
    for(i=BMS-1; i<pTable->nCol; i++){
      pIdx->aiColumn[n] = i;
      pIdx->azColl[n] = sqlite3StrBINARY;
      n++;
    }
  }
  assert( n==nKeyCol );
  pIdx->aiColumn[n] = XN_ROWID;
  pIdx->azColl[n] = sqlite3StrBINARY;

  /* Create the automatic index */
  assert( pLevel->iIdxCur>=0 );
  pLevel->iIdxCur = pParse->nTab++;
  sqlite3VdbeAddOp2(v, OP_OpenAutoindex, pLevel->iIdxCur, nKeyCol+1);
  sqlite3VdbeSetP4KeyInfo(pParse, pIdx);
  VdbeComment((v, "for %s", pTable->zName));

  /* Fill the automatic index with content */
  pTabItem = &pWC->pWInfo->pTabList->a[pLevel->iFrom];
  if( pTabItem->fg.viaCoroutine ){
    int regYield = pTabItem->regReturn;
    addrCounter = sqlite3VdbeAddOp2(v, OP_Integer, 0, 0);
    sqlite3VdbeAddOp3(v, OP_InitCoroutine, regYield, 0, pTabItem->addrFillSub);
    addrTop =  sqlite3VdbeAddOp1(v, OP_Yield, regYield);
    VdbeCoverage(v);
    VdbeComment((v, "next row of %s", pTabItem->pTab->zName));
  }else{
    addrTop = sqlite3VdbeAddOp1(v, OP_Rewind, pLevel->iTabCur); VdbeCoverage(v);
  }
  if( pPartial ){
    iContinue = sqlite3VdbeMakeLabel(pParse);
    sqlite3ExprIfFalse(pParse, pPartial, iContinue, SQLITE_JUMPIFNULL);
    pLoop->wsFlags |= WHERE_PARTIALIDX;
  }
  regRecord = sqlite3GetTempReg(pParse);
  regBase = sqlite3GenerateIndexKey(
      pParse, pIdx, pLevel->iTabCur, regRecord, 0, 0, 0, 0
  );
  sqlite3VdbeAddOp2(v, OP_IdxInsert, pLevel->iIdxCur, regRecord);
  sqlite3VdbeChangeP5(v, OPFLAG_USESEEKRESULT);
  if( pPartial ) sqlite3VdbeResolveLabel(v, iContinue);
  if( pTabItem->fg.viaCoroutine ){
    sqlite3VdbeChangeP2(v, addrCounter, regBase+n);
    testcase( pParse->db->mallocFailed );
    assert( pLevel->iIdxCur>0 );
    translateColumnToCopy(pParse, addrTop, pLevel->iTabCur,
                          pTabItem->regResult, pLevel->iIdxCur);
    sqlite3VdbeGoto(v, addrTop);
    pTabItem->fg.viaCoroutine = 0;
  }else{
    sqlite3VdbeAddOp2(v, OP_Next, pLevel->iTabCur, addrTop+1); VdbeCoverage(v);
    sqlite3VdbeChangeP5(v, SQLITE_STMTSTATUS_AUTOINDEX);
  }
  sqlite3VdbeJumpHere(v, addrTop);
  sqlite3ReleaseTempReg(pParse, regRecord);

  /* Jump here when skipping the initialization */
  sqlite3VdbeJumpHere(v, addrInit);

end_auto_index_create:
  sqlite3ExprDelete(pParse->db, pPartial);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %r8, %rbx
movq %rcx, 0x58(%rsp)
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, (%rsp)
movq 0x10(%rdi), %rdi
xorl %ebp, %ebp
movq %rdi, 0x18(%rsp)
movl $0x11, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2b200c
movl %eax, 0x4c(%rsp)
movq %r14, 0x8(%rsp)
movq 0x20(%r14), %rax
movq %rax, 0x40(%rsp)
movq 0x20(%r15), %r14
movq %r15, 0x50(%rsp)
movslq 0x14(%r15), %rax
movq %rax, %rcx
shlq $0x6, %rcx
addq %r14, %rcx
movq %rcx, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
movq 0x50(%rbx), %rcx
testq %rax, %rax
movq %rcx, 0x38(%rsp)
jle 0x2ddd4b
xorl %ebp, %ebp
xorl %r13d, %r13d
xorl %r15d, %r15d
movq $0x0, 0x10(%rsp)
movq 0x38(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x2ddc8c
testb $0x2, 0x12(%r14)
jne 0x2ddc8c
movq (%r14), %rbx
testb $0x1, 0x4(%rbx)
jne 0x2ddc8c
movq 0x8(%rsp), %rax
movl 0x40(%rax), %eax
movw $0x3, 0x8c(%rsp)
leaq -0x13afe(%rip), %rcx    # 0x2ca123
movq %rcx, 0x70(%rsp)
leaq -0x13a28(%rip), %rcx    # 0x2ca205
movq %rcx, 0x78(%rsp)
movl %eax, 0x90(%rsp)
testq %rbx, %rbx
je 0x2ddc4b
leaq 0x68(%rsp), %rdi
movq %rbx, %rsi
callq 0x2ca211
cmpw $0x0, 0x8c(%rsp)
je 0x2ddc8c
testq %rbx, %rbx
je 0x2ddc74
movq (%rsp), %r12
movq (%r12), %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x2cbf97
movq %rax, %rdx
jmp 0x2ddc7a
xorl %edx, %edx
movq (%rsp), %r12
movq %r12, %rdi
movq 0x10(%rsp), %rsi
callq 0x2c02f0
movq %rax, 0x10(%rsp)
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x2e4ece
testl %eax, %eax
je 0x2ddcf5
movslq 0x28(%r14), %rcx
movl $0x1, %r12d
shlq %cl, %r12
cmpq $0x40, %rcx
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
cmovgeq %rax, %r12
testb %r15b, %r15b
jne 0x2ddced
movq 0x40(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rax
shlq $0x5, %rcx
movq (%rax,%rcx), %rcx
movl $0x11c, %edi            # imm = 0x11C
leaq 0x104407(%rip), %rsi    # 0x3e20ed
xorl %eax, %eax
callq 0x27e637
movb $0x1, %r15b
testq %r13, %r12
je 0x2ddd10
movb $0x1, %al
testb %al, %al
je 0x2ddefd
addq $0x40, %r14
cmpq 0x20(%rsp), %r14
jb 0x2ddbe1
jmp 0x2ddd5d
movq (%rsp), %rax
movq (%rax), %rdi
leal 0x1(%rbp), %ebx
movq 0x38(%rsp), %r15
movq %r15, %rsi
movl %ebx, %edx
callq 0x2e450c
testl %eax, %eax
je 0x2ddd34
movb $0x1, %r15b
xorl %eax, %eax
jmp 0x2ddcf7
movq 0x38(%r15), %rax
movslq %ebp, %rcx
movq %r14, (%rax,%rcx,8)
orq %r12, %r13
movb $0x1, %r15b
movb $0x1, %al
movl %ebx, %ebp
jmp 0x2ddcf7
movq $-0x1, %r13
movq $0x0, 0x10(%rsp)
jmp 0x2ddd72
notq %r13
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
orq %rax, %r13
movq 0x38(%rsp), %rcx
movw %bp, 0x2c(%rcx)
movw %bp, 0x18(%rcx)
movl $0x4241, 0x28(%rcx)     # imm = 0x4241
movq 0x8(%rsp), %rax
movq 0x58(%rax), %rax
andq %rax, %r13
movq 0x40(%rsp), %rcx
movswl 0x46(%rcx), %r12d
cmpw $0x3f, %r12w
movl $0x3f, %ecx
cmovll %r12d, %ecx
movl %ecx, %r15d
testl %r12d, %r12d
jle 0x2dddbe
xorl %ecx, %ecx
btq %rcx, %r13
adcl $0x0, %ebp
incq %rcx
cmpq %rcx, %r15
jne 0x2dddaf
leal -0x3e(%r12), %ecx
testq %rax, %rax
movq (%rsp), %rax
movq (%rax), %rdi
movl $0x1, %ebx
cmovsl %ecx, %ebx
addl %ebp, %ebx
movswl %bx, %esi
xorl %r14d, %r14d
leaq 0x68(%rsp), %rcx
xorl %edx, %edx
callq 0x2d36c8
testq %rax, %rax
je 0x2ddefd
movq %rax, %rcx
movq %r12, 0x60(%rsp)
movl %ebx, 0x48(%rsp)
movq 0x38(%rsp), %rax
movq %rcx, 0x20(%rax)
leaq 0x1042f9(%rip), %rax    # 0x3e2107
movq %rax, (%rcx)
movq 0x40(%rsp), %rax
movq %rcx, 0x30(%rsp)
movq %rax, 0x18(%rcx)
movq 0x50(%rsp), %rax
movq 0x20(%rax), %rbx
cmpq 0x20(%rsp), %rbx
jae 0x2ddebe
xorl %r14d, %r14d
xorl %r12d, %r12d
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x2e4ece
testl %eax, %eax
je 0x2ddeaf
movl 0x28(%rbx), %ecx
movl $0x1, %ebp
shlq %cl, %rbp
cmpl $0x40, %ecx
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
cmovgeq %rax, %rbp
testq %r12, %rbp
jne 0x2ddeaf
movq (%rbx), %rsi
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rax
movslq %r14d, %r14
movw %cx, (%rax,%r14,2)
movq (%rsp), %rdi
callq 0x287c50
leaq 0xfd44c(%rip), %rcx     # 0x3db2e0
testq %rax, %rax
je 0x2dde9c
movq (%rax), %rcx
orq %rbp, %r12
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rax
movq %rcx, (%rax,%r14,8)
incl %r14d
addq $0x40, %rbx
cmpq 0x20(%rsp), %rbx
jb 0x2dde39
cmpw $0x0, 0x60(%rsp)
jle 0x2ddf0b
xorl %eax, %eax
leaq 0xfd411(%rip), %rcx     # 0x3db2e0
movq 0x30(%rsp), %r12
btq %rax, %r13
jae 0x2ddef3
movq 0x8(%r12), %rdx
movslq %r14d, %r14
movw %ax, (%rdx,%r14,2)
movq 0x40(%r12), %rdx
movq %rcx, (%rdx,%r14,8)
incl %r14d
incq %rax
cmpq %rax, %r15
jne 0x2dded4
jmp 0x2ddf10
movq (%rsp), %rdx
movq 0x10(%rsp), %r13
jmp 0x2de277
movq 0x30(%rsp), %r12
movq 0x8(%rsp), %rax
cmpq $0x0, 0x58(%rax)
js 0x2ddf22
movq (%rsp), %r15
jmp 0x2ddf61
movq 0x40(%rsp), %rsi
cmpw $0x40, 0x46(%rsi)
movq (%rsp), %r15
jl 0x2ddf61
movslq %r14d, %r14
movl $0x3f, %eax
leaq 0xfd39f(%rip), %rcx     # 0x3db2e0
movq 0x8(%r12), %rdx
movw %ax, (%rdx,%r14,2)
movq 0x40(%r12), %rdx
movq %rcx, (%rdx,%r14,8)
incq %r14
incl %eax
movswl 0x46(%rsi), %edx
cmpl %edx, %eax
jl 0x2ddf41
movq 0x8(%r12), %rax
movslq %r14d, %rcx
movw $0xffff, (%rax,%rcx,2)  # imm = 0xFFFF
movq 0x40(%r12), %rax
leaq 0xfd365(%rip), %rdx     # 0x3db2e0
movq %rdx, (%rax,%rcx,8)
movl 0x34(%r15), %edx
leal 0x1(%rdx), %eax
movl %eax, 0x34(%r15)
movq 0x28(%rsp), %rbx
movl %edx, 0x8(%rbx)
movl $0x0, 0x20(%rsp)
movq 0x18(%rsp), %r13
movq %r13, %rdi
movl $0x63, %esi
movl 0x48(%rsp), %ecx
xorl %r8d, %r8d
callq 0x2b200c
movq %r15, %rdi
movq %r12, %rsi
callq 0x2c61e4
movq 0x50(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movzbl 0x34(%rbx), %ecx
imulq $0x70, %rcx, %rcx
leaq (%rax,%rcx), %r12
addq $0x8, %r12
testb $0x10, 0x3d(%r12)
jne 0x2ddfef
movl 0x4(%rbx), %edx
movq %r13, %rdi
movl $0x25, %esi
jmp 0x2de02c
movl 0x34(%r12), %ebx
movq %r13, %rdi
movl $0x45, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2b200c
movl %eax, 0x20(%rsp)
movl 0x30(%r12), %r8d
movq %r13, %rdi
movl $0xd, %esi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0x2b200c
movq %r13, %rdi
movl $0xe, %esi
movl %ebx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2b200c
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x2de069
movl 0x44(%r15), %ebx
decl %ebx
movl %ebx, 0x44(%r15)
movq %r15, %rdi
movl %ebx, %edx
movl $0x10, %ecx
callq 0x2c9460
movq 0x38(%rsp), %rax
orb $0x2, 0x2a(%rax)
jmp 0x2de06b
xorl %ebx, %ebx
movb 0x1f(%r15), %al
testb %al, %al
je 0x2de089
decb %al
movb %al, 0x1f(%r15)
movzbl %al, %eax
movq %r15, %rdi
movl 0xd4(%r15,%rax,4), %r15d
jmp 0x2de097
movq %r15, %rdi
movl 0x38(%r15), %r15d
incl %r15d
movl %r15d, 0x38(%rdi)
movq 0x28(%rsp), %r13
movl 0x4(%r13), %edx
movq 0x30(%rsp), %rsi
movl %r15d, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq $0x0
pushq $0x0
callq 0x2d3ed1
addq $0x10, %rsp
movl %eax, %ebp
movl 0x8(%r13), %edx
movq 0x18(%rsp), %r13
movq %r13, %rdi
movl $0x82, %esi
movl %r15d, %ecx
xorl %r8d, %r8d
callq 0x2b200c
movslq 0x90(%r13), %rax
testq %rax, %rax
jle 0x2de0f7
movq 0x88(%r13), %rcx
leaq (%rax,%rax,2), %rax
movw $0x10, -0x16(%rcx,%rax,8)
movq 0x10(%rsp), %r13
testq %r13, %r13
je 0x2de10d
movq 0x18(%rsp), %rdi
movl %ebx, %esi
callq 0x2c91a7
testb $0x10, 0x3d(%r12)
jne 0x2de162
movq 0x28(%rsp), %rax
movl 0x4(%rax), %edx
movq 0x8(%rsp), %r14
leal 0x1(%r14), %ecx
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
movl $0x5, %esi
xorl %r8d, %r8d
callq 0x2b200c
movslq 0x90(%rbx), %rax
testq %rax, %rax
jle 0x2de1e3
movq 0x88(%rbx), %rcx
leaq (%rax,%rax,2), %rax
movw $0x3, -0x16(%rcx,%rax,8)
jmp 0x2de1e3
movl 0x20(%rsp), %ecx
testl %ecx, %ecx
jns 0x2de177
movq 0x18(%rsp), %rax
movl 0x90(%rax), %ecx
decl %ecx
addl %r14d, %ebp
movq 0x18(%rsp), %rbx
movq (%rbx), %rax
cmpb $0x0, 0x61(%rax)
je 0x2de191
leaq 0x1ebcf9(%rip), %rax    # 0x4c9e88
jmp 0x2de1a3
movslq %ecx, %rax
leaq (%rax,%rax,2), %rax
shlq $0x3, %rax
addq 0x88(%rbx), %rax
movq 0x28(%rsp), %rsi
movq 0x8(%rsp), %r14
movl %ebp, 0x8(%rax)
movl 0x38(%r12), %ecx
movl 0x4(%rsi), %edx
movl 0x8(%rsi), %r8d
movq (%rsp), %rdi
movl %r14d, %esi
callq 0x2e6522
movq %rbx, %rdi
movl $0xb, %esi
xorl %edx, %edx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x2b200c
andb $-0x11, 0x3d(%r12)
movl 0x90(%rbx), %ecx
movq (%rbx), %rax
movb 0x61(%rax), %al
testb %al, %al
je 0x2de1fc
leaq 0x1ebc8e(%rip), %rdx    # 0x4c9e88
jmp 0x2de218
leal -0x1(%rcx), %edx
testl %r14d, %r14d
cmovnsl %r14d, %edx
movslq %edx, %rdx
leaq (%rdx,%rdx,2), %rdx
shlq $0x3, %rdx
addq 0x88(%rbx), %rdx
movl %ecx, 0x8(%rdx)
testl %r15d, %r15d
je 0x2de240
movq (%rsp), %rcx
movzbl 0x1f(%rcx), %ecx
cmpq $0x7, %rcx
ja 0x2de240
leal 0x1(%rcx), %edx
movq (%rsp), %rsi
movb %dl, 0x1f(%rsi)
movl %r15d, 0xd4(%rsi,%rcx,4)
movl 0x90(%rbx), %ecx
testb %al, %al
je 0x2de253
leaq 0x1ebc37(%rip), %rax    # 0x4c9e88
jmp 0x2de270
leal -0x1(%rcx), %eax
movl 0x4c(%rsp), %edx
testl %edx, %edx
cmovnsl %edx, %eax
cltq
leaq (%rax,%rax,2), %rax
shlq $0x3, %rax
addq 0x88(%rbx), %rax
movq (%rsp), %rdx
movl %ecx, 0x8(%rax)
testq %r13, %r13
je 0x2de287
movq (%rdx), %rdi
movq %r13, %rsi
callq 0x2afd54
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq