// File: /workspace/github_c_makefile_star2_O1/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: whereLoopAddVirtual
static int whereLoopAddVirtual(
  WhereLoopBuilder *pBuilder,  /* WHERE clause information */
  Bitmask mExtra,              /* Tables that must be scanned before this one */
  Bitmask mUnusable            /* Tables that must be scanned after this one */
){
  WhereInfo *pWInfo;           /* WHERE analysis context */
  Parse *pParse;               /* The parsing context */
  WhereClause *pWC;            /* The WHERE clause */
  struct SrcList_item *pSrc;   /* The FROM clause term to search */
  Table *pTab;
  sqlite3 *db;
  sqlite3_index_info *pIdxInfo;
  struct sqlite3_index_constraint *pIdxCons;
  struct sqlite3_index_constraint_usage *pUsage;
  WhereTerm *pTerm;
  int i, j;
  int iTerm, mxTerm;
  int nConstraint;
  int seenIn = 0;              /* True if an IN operator is seen */
  int seenVar = 0;             /* True if a non-constant constraint is seen */
  int iPhase;                  /* 0: const w/o IN, 1: const, 2: no IN,  2: IN */
  WhereLoop *pNew;
  int rc = SQLITE_OK;

  assert( (mExtra & mUnusable)==0 );
  pWInfo = pBuilder->pWInfo;
  pParse = pWInfo->pParse;
  db = pParse->db;
  pWC = pBuilder->pWC;
  pNew = pBuilder->pNew;
  pSrc = &pWInfo->pTabList->a[pNew->iTab];
  pTab = pSrc->pTab;
  assert( IsVirtual(pTab) );
  pIdxInfo = allocateIndexInfo(pParse, pWC, mUnusable, pSrc,pBuilder->pOrderBy);
  if( pIdxInfo==0 ) return SQLITE_NOMEM;
  pNew->prereq = 0;
  pNew->rSetup = 0;
  pNew->wsFlags = WHERE_VIRTUALTABLE;
  pNew->nLTerm = 0;
  pNew->u.vtab.needFree = 0;
  pUsage = pIdxInfo->aConstraintUsage;
  nConstraint = pIdxInfo->nConstraint;
  if( whereLoopResize(db, pNew, nConstraint) ){
    sqlite3DbFree(db, pIdxInfo);
    return SQLITE_NOMEM;
  }

  for(iPhase=0; iPhase<=3; iPhase++){
    if( !seenIn && (iPhase&1)!=0 ){
      iPhase++;
      if( iPhase>3 ) break;
    }
    if( !seenVar && iPhase>1 ) break;
    pIdxCons = *(struct sqlite3_index_constraint**)&pIdxInfo->aConstraint;
    for(i=0; i<pIdxInfo->nConstraint; i++, pIdxCons++){
      j = pIdxCons->iTermOffset;
      pTerm = &pWC->a[j];
      switch( iPhase ){
        case 0:    /* Constants without IN operator */
          pIdxCons->usable = 0;
          if( (pTerm->eOperator & WO_IN)!=0 ){
            seenIn = 1;
          }
          if( (pTerm->prereqRight & ~mExtra)!=0 ){
            seenVar = 1;
          }else if( (pTerm->eOperator & WO_IN)==0 ){
            pIdxCons->usable = 1;
          }
          break;
        case 1:    /* Constants with IN operators */
          assert( seenIn );
          pIdxCons->usable = (pTerm->prereqRight & ~mExtra)==0;
          break;
        case 2:    /* Variables without IN */
          assert( seenVar );
          pIdxCons->usable = (pTerm->eOperator & WO_IN)==0;
          break;
        default:   /* Variables with IN */
          assert( seenVar && seenIn );
          pIdxCons->usable = 1;
          break;
      }
    }
    memset(pUsage, 0, sizeof(pUsage[0])*pIdxInfo->nConstraint);
    if( pIdxInfo->needToFreeIdxStr ) sqlite3_free(pIdxInfo->idxStr);
    pIdxInfo->idxStr = 0;
    pIdxInfo->idxNum = 0;
    pIdxInfo->needToFreeIdxStr = 0;
    pIdxInfo->orderByConsumed = 0;
    pIdxInfo->estimatedCost = SQLITE_BIG_DBL / (double)2;
    pIdxInfo->estimatedRows = 25;
    pIdxInfo->idxFlags = 0;
    pIdxInfo->colUsed = (sqlite3_int64)pSrc->colUsed;
    rc = vtabBestIndex(pParse, pTab, pIdxInfo);
    if( rc ) goto whereLoopAddVtab_exit;
    pIdxCons = *(struct sqlite3_index_constraint**)&pIdxInfo->aConstraint;
    pNew->prereq = mExtra;
    mxTerm = -1;
    assert( pNew->nLSlot>=nConstraint );
    for(i=0; i<nConstraint; i++) pNew->aLTerm[i] = 0;
    pNew->u.vtab.omitMask = 0;
    for(i=0; i<nConstraint; i++, pIdxCons++){
      if( (iTerm = pUsage[i].argvIndex - 1)>=0 ){
        j = pIdxCons->iTermOffset;
        if( iTerm>=nConstraint
         || j<0
         || j>=pWC->nTerm
         || pNew->aLTerm[iTerm]!=0
        ){
          rc = SQLITE_ERROR;
          sqlite3ErrorMsg(pParse, "%s.xBestIndex() malfunction", pTab->zName);
          goto whereLoopAddVtab_exit;
        }
        testcase( iTerm==nConstraint-1 );
        testcase( j==0 );
        testcase( j==pWC->nTerm-1 );
        pTerm = &pWC->a[j];
        pNew->prereq |= pTerm->prereqRight;
        assert( iTerm<pNew->nLSlot );
        pNew->aLTerm[iTerm] = pTerm;
        if( iTerm>mxTerm ) mxTerm = iTerm;
        testcase( iTerm==15 );
        testcase( iTerm==16 );
        if( iTerm<16 && pUsage[i].omit ) pNew->u.vtab.omitMask |= 1<<iTerm;
        if( (pTerm->eOperator & WO_IN)!=0 ){
          if( pUsage[i].omit==0 ){
            /* Do not attempt to use an IN constraint if the virtual table
            ** says that the equivalent EQ constraint cannot be safely omitted.
            ** If we do attempt to use such a constraint, some rows might be
            ** repeated in the output. */
            break;
          }
          /* A virtual table that is constrained by an IN clause may not
          ** consume the ORDER BY clause because (1) the order of IN terms
          ** is not necessarily related to the order of output terms and
          ** (2) Multiple outputs from a single IN value will not merge
          ** together.  */
          pIdxInfo->orderByConsumed = 0;
          pIdxInfo->idxFlags &= ~SQLITE_INDEX_SCAN_UNIQUE;
        }
      }
    }
    if( i>=nConstraint ){
      pNew->nLTerm = mxTerm+1;
      assert( pNew->nLTerm<=pNew->nLSlot );
      pNew->u.vtab.idxNum = pIdxInfo->idxNum;
      pNew->u.vtab.needFree = pIdxInfo->needToFreeIdxStr;
      pIdxInfo->needToFreeIdxStr = 0;
      pNew->u.vtab.idxStr = pIdxInfo->idxStr;
      pNew->u.vtab.isOrdered = (i8)(pIdxInfo->orderByConsumed ?
                                      pIdxInfo->nOrderBy : 0);
      pNew->rSetup = 0;
      pNew->rRun = sqlite3LogEstFromDouble(pIdxInfo->estimatedCost);
      pNew->nOut = sqlite3LogEst(pIdxInfo->estimatedRows);

      /* Set the WHERE_ONEROW flag if the xBestIndex() method indicated
      ** that the scan will visit at most one row. Clear it otherwise. */
      if( pIdxInfo->idxFlags & SQLITE_INDEX_SCAN_UNIQUE ){
        pNew->wsFlags |= WHERE_ONEROW;
      }else{
        pNew->wsFlags &= ~WHERE_ONEROW;
      }
      whereLoopInsert(pBuilder, pNew);
      if( pNew->u.vtab.needFree ){
        sqlite3_free(pNew->u.vtab.idxStr);
        pNew->u.vtab.needFree = 0;
      }
    }
  }  

whereLoopAddVtab_exit:
  if( pIdxInfo->needToFreeIdxStr ) sqlite3_free(pIdxInfo->idxStr);
  sqlite3DbFree(db, pIdxInfo);
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r15
movq %rsi, -0x80(%rbp)
movq (%rdi), %rax
movq 0x8(%rdi), %r11
movq (%rax), %r10
movq 0x8(%rax), %rax
movq 0x18(%rdi), %rcx
movq %rcx, -0x70(%rbp)
movzbl 0x10(%rcx), %ecx
imulq $0x70, %rcx, %rcx
leaq (%rax,%rcx), %rbx
addq $0x8, %rbx
movq %rdi, -0xa0(%rbp)
movq 0x10(%rdi), %r12
movl 0x14(%r11), %esi
xorl %r14d, %r14d
movl $0x0, %edx
testl %esi, %esi
jle 0x673c0
movq 0x20(%r11), %rdi
movl 0x44(%rbx), %r8d
addq $0x28, %rdi
xorl %edx, %edx
cmpl %r8d, -0x1c(%rdi)
jne 0x673b8
testq %r15, (%rdi)
jne 0x673b8
movzwl -0xe(%rdi), %r9d
andl $0xf67f, %r9d           # imm = 0xF67F
cmpw $0x1, %r9w
sbbl $-0x1, %edx
addq $0x38, %rdi
decl %esi
jne 0x67399
movq (%r10), %r13
testq %r12, %r12
je 0x67406
movl (%r12), %esi
xorl %r14d, %r14d
movl $0x0, %edi
testl %esi, %esi
jle 0x67400
movq 0x8(%r12), %r8
xorl %edi, %edi
movq (%r8), %r9
cmpb $-0x68, (%r9)
jne 0x67400
movl 0x2c(%r9), %r9d
cmpl 0x44(%rbx), %r9d
jne 0x67400
incq %rdi
addq $0x20, %r8
cmpq %rdi, %rsi
jne 0x673df
movl %esi, %edi
cmpl %esi, %edi
cmovel %esi, %r14d
movq %rbx, -0x88(%rbp)
movq %r11, -0x60(%rbp)
movq %r10, -0x40(%rbp)
movq 0x28(%rax,%rcx), %rax
movq %rax, -0x78(%rbp)
movslq %edx, %rax
movq %rax, -0x38(%rbp)
leaq (%rax,%rax,4), %rax
movl %r14d, -0x68(%rbp)
movslq %r14d, %r14
leaq (,%r14,8), %rcx
leaq (%rcx,%rax,4), %rbx
addq $0x60, %rbx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x144ee
testq %rax, %rax
je 0x6756d
movq %r13, -0x48(%rbp)
xorl %r13d, %r13d
movq %rax, %rdi
xorl %esi, %esi
movq %r12, -0x50(%rbp)
movq %rax, %r12
movq %rbx, %rdx
callq 0xa210
leaq 0x60(%r12), %rcx
movq -0x38(%rbp), %rdi
leaq (%rdi,%rdi,2), %rax
leaq (%r12,%rax,4), %rdx
addq $0x60, %rdx
leaq (%rdx,%r14,8), %rsi
movl %edi, (%r12)
movl %r14d, 0x10(%r12)
movq %rcx, 0x8(%r12)
movq %rdx, 0x18(%r12)
movq %r12, -0x38(%rbp)
movq %rsi, 0x20(%r12)
movq -0x50(%rbp), %r12
movq -0x60(%rbp), %r14
movl 0x14(%r14), %edx
testl %edx, %edx
jle 0x67523
movq 0x20(%r14), %rsi
movq -0x88(%rbp), %rdi
movl 0x44(%rdi), %edi
addq $0xc, %rsi
movl $0x2, %r8d
xorl %r9d, %r9d
cmpl %edi, (%rsi)
jne 0x67517
testq %r15, 0x1c(%rsi)
jne 0x67517
movzwl 0xe(%rsi), %r10d
testl $0xf67f, %r10d          # imm = 0xF67F
je 0x67517
movl 0x4(%rsi), %ebx
movslq %r9d, %r11
leaq (%r11,%r11,2), %r11
movl %ebx, (%rcx,%r11,4)
movl %r13d, 0x8(%rcx,%r11,4)
cmpb $0x1, %r10b
cmovel %r8d, %r10d
cmpb $0x40, %r10b
jne 0x6750c
movb 0x13(%rsi), %r10b
leaq (%rcx,%r11,4), %r11
movb %r10b, 0x4(%r11)
incl %r9d
incl %r13d
addq $0x38, %rsi
cmpl %r13d, %edx
jne 0x674cf
movl -0x68(%rbp), %edx
testl %edx, %edx
movq -0x70(%rbp), %rsi
jle 0x67588
movq 0x8(%r12), %rcx
movl %edx, %edx
shlq $0x3, %rdx
movq -0x38(%rbp), %rdi
leaq (%rdi,%rax,4), %rax
addq $0x64, %rax
xorl %r8d, %r8d
movq -0x48(%rbp), %r13
movq (%rcx,%r8,4), %rdi
movswl 0x30(%rdi), %edi
movl %edi, -0x4(%rax,%r8)
movb 0x18(%rcx,%r8,4), %dil
movb %dil, (%rax,%r8)
addq $0x8, %r8
cmpq %r8, %rdx
jne 0x6754c
jmp 0x6758c
leaq 0x15ea3(%rip), %rsi     # 0x7d417
xorl %r12d, %r12d
movq -0x40(%rbp), %rdi
xorl %eax, %eax
callq 0x14804
movq -0x70(%rbp), %rsi
jmp 0x67590
movq -0x48(%rbp), %r13
movq -0x38(%rbp), %r12
testq %r12, %r12
je 0x67ab5
movq $0x0, (%rsi)
xorl %r15d, %r15d
movw %r15w, 0x12(%rsi)
movl $0x400, 0x28(%rsi)      # imm = 0x400
movw %r15w, 0x2c(%rsi)
movb $0x0, 0x1c(%rsi)
movq 0x20(%r12), %rax
movq %rax, -0x58(%rbp)
movl (%r12), %r14d
movq %r13, %rdi
movq %r12, -0x38(%rbp)
movl %r14d, %edx
callq 0x6862c
movq -0x38(%rbp), %rsi
movl $0x7, %ebx
testl %eax, %eax
jne 0x67af5
movq %r13, -0x48(%rbp)
movslq %r14d, %rax
movq %rax, -0xb0(%rbp)
movq -0x80(%rbp), %rax
notq %rax
movq %rax, -0x68(%rbp)
leaq 0x30(%rsi), %rax
movq %rax, -0x98(%rbp)
testl %r14d, %r14d
setg -0x29(%rbp)
movq %r14, -0x90(%rbp)
negq %r14
movq %r14, -0xa8(%rbp)
xorl %r13d, %r13d
movl $0x0, -0x50(%rbp)
xorl %r12d, %r12d
movq -0x58(%rbp), %rbx
movq -0x60(%rbp), %r14
testl %r12d, %r12d
jne 0x67650
movl %r13d, %eax
andl $0x1, %eax
je 0x67650
cmpl $0x3, %r13d
je 0x67ab1
incl %r13d
cmpl $0x0, -0x50(%rbp)
sete %al
cmpl $0x2, %r13d
setge %cl
testb %cl, %al
jne 0x67ab1
movslq (%rsi), %rdx
testq %rdx, %rdx
jle 0x676fa
movq 0x8(%rsi), %rax
movq 0x20(%r14), %rcx
addq $0x5, %rax
movl %edx, %esi
movslq 0x3(%rax), %rdi
imulq $0x38, %rdi, %rdi
addq %rcx, %rdi
cmpl $0x2, %r13d
je 0x676e4
cmpl $0x1, %r13d
je 0x676d7
testl %r13d, %r13d
jne 0x676d2
movb $0x0, (%rax)
movb 0x1a(%rdi), %r8b
testb $0x1, %r8b
movl $0x1, %r10d
cmovnel %r10d, %r12d
movq -0x68(%rbp), %r9
testq %r9, 0x28(%rdi)
setne %r9b
movl -0x50(%rbp), %edi
cmovnel %r10d, %edi
orb %r8b, %r9b
testb $0x1, %r9b
je 0x676d2
movl %edi, -0x50(%rbp)
jmp 0x676f2
movb $0x1, (%rax)
jmp 0x676f2
movq -0x68(%rbp), %r8
testq %r8, 0x28(%rdi)
sete (%rax)
jmp 0x676f2
movb 0x1a(%rdi), %dil
notb %dil
andb $0x1, %dil
movb %dil, (%rax)
addq $0xc, %rax
decl %esi
jne 0x67680
shlq $0x3, %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0xa210
movq -0x38(%rbp), %rsi
cmpl $0x0, 0x38(%rsi)
je 0x6771f
movq 0x30(%rsi), %rdi
callq 0xa620
movq -0x38(%rbp), %rsi
movl %r15d, 0x28(%rsi)
movq -0x98(%rbp), %rax
xorpd %xmm0, %xmm0
movupd %xmm0, (%rax)
movabsq $0x546d42aea2879f2e, %rax # imm = 0x546D42AEA2879F2E
movq %rax, 0x40(%rsi)
movq $0x19, 0x48(%rsi)
movl %r15d, 0x50(%rsi)
movq -0x88(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, 0x58(%rsi)
movq -0x78(%rbp), %rax
movq 0x58(%rax), %rax
testq %rax, %rax
je 0x6777d
movq -0x40(%rbp), %rcx
movq (%rcx), %rcx
cmpq %rcx, (%rax)
je 0x6777d
movq 0x28(%rax), %rax
testq %rax, %rax
jne 0x6776f
movq 0x10(%rax), %rbx
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
testl %eax, %eax
je 0x677f0
cmpl $0x7, %eax
jne 0x677a0
movq -0x40(%rbp), %rax
movq (%rax), %rax
movb $0x1, 0x51(%rax)
jmp 0x677f0
movq 0x10(%rbx), %rdx
testq %rdx, %rdx
jne 0x677de
leaq 0x19bd6(%rip), %rdx     # 0x81386
cmpl $0x204, %eax            # imm = 0x204
je 0x677de
movzbl %al, %eax
cmpl $0x1b, %eax
setae %cl
cmpl $0x2, %eax
sete %dl
orb %cl, %dl
leaq 0x19ba9(%rip), %rdx     # 0x81378
jne 0x677de
movl %eax, %eax
leaq 0x2b516(%rip), %rcx     # 0x92cf0
movq (%rcx,%rax,8), %rdx
movq -0x40(%rbp), %rdi
leaq 0x15b9a(%rip), %rsi     # 0x7d383
xorl %eax, %eax
callq 0x14804
movq 0x10(%rbx), %rdi
callq 0xa620
movq $0x0, 0x10(%rbx)
movq -0x38(%rbp), %rsi
cmpl $0x0, (%rsi)
jle 0x67853
movl $0x5, %ebx
xorl %r15d, %r15d
movq 0x8(%rsi), %rax
cmpb $0x0, (%rax,%rbx)
jne 0x67844
movq 0x20(%rsi), %rax
cmpl $0x0, (%rax,%r15,8)
jle 0x67844
movq -0x78(%rbp), %rax
movq (%rax), %rdx
movq -0x40(%rbp), %rdi
leaq 0x18201(%rip), %rsi     # 0x7fa3a
xorl %eax, %eax
callq 0x14804
movq -0x38(%rbp), %rsi
incq %r15
movslq (%rsi), %rax
addq $0xc, %rbx
cmpq %rax, %r15
jl 0x67812
movq -0x40(%rbp), %rax
movl 0x4c(%rax), %ebx
testl %ebx, %ebx
jne 0x67ade
movq 0x8(%rsi), %rax
movq -0x80(%rbp), %rcx
movq -0x70(%rbp), %r15
movq %rcx, (%r15)
movq -0x90(%rbp), %rsi
testl %esi, %esi
jle 0x67892
xorl %ecx, %ecx
movq 0x38(%r15), %rdx
movq $0x0, (%rdx,%rcx,8)
incq %rcx
cmpq %rcx, %rsi
jne 0x6787e
movw $0x0, 0x1e(%r15)
testl %esi, %esi
movq -0x58(%rbp), %rbx
jle 0x6798e
addq $0x8, %rax
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x1, %edi
movb -0x29(%rbp), %sil
movl -0x8(%rbx,%rdi,8), %r8d
testl %r8d, %r8d
jle 0x67961
cmpl -0x90(%rbp), %r8d
jg 0x67abc
movl (%rax), %r9d
testl %r9d, %r9d
js 0x67abc
cmpl 0x14(%r14), %r9d
jge 0x67abc
leal -0x1(%r8), %ecx
movq 0x38(%r15), %r10
movl %ecx, %r11d
cmpq $0x0, (%r10,%r11,8)
jne 0x67abc
movq 0x20(%r14), %rbx
imulq $0x38, %r9, %r14
leaq (%rbx,%r14), %r9
movq 0x28(%rbx,%r14), %rbx
orq %rbx, (%r15)
movq -0x58(%rbp), %rbx
movq %r9, (%r10,%r11,8)
cmpl %edx, %ecx
cmovgl %ecx, %edx
cmpl $0x10, %r8d
jg 0x6793a
cmpb $0x0, -0x4(%rbx,%rdi,8)
je 0x6793a
movl $0x1, %r8d
shll %cl, %r8d
orw %r8w, 0x1e(%r15)
testb $0x1, 0x1a(%r9)
jne 0x67947
movq -0x60(%rbp), %r14
jmp 0x67961
cmpb $0x0, -0x4(%rbx,%rdi,8)
movq -0x60(%rbp), %r14
je 0x6798a
movq -0x38(%rbp), %rcx
movl $0x0, 0x3c(%rcx)
andb $-0x2, 0x50(%rcx)
cmpq -0xb0(%rbp), %rdi
setl %sil
movq -0xa8(%rbp), %rcx
addq %rdi, %rcx
incq %rcx
incq %rdi
addq $0xc, %rax
cmpq $0x1, %rcx
jne 0x678b7
incl %edx
jmp 0x67994
xorl %edx, %edx
movb -0x29(%rbp), %sil
testb $0x1, %sil
jne 0x67a96
movw %dx, 0x2c(%r15)
movq -0x38(%rbp), %rcx
movl 0x28(%rcx), %eax
movl %eax, 0x18(%r15)
movb 0x38(%rcx), %al
movb %al, 0x1c(%r15)
movl $0x0, 0x38(%rcx)
movq 0x30(%rcx), %rax
movq %rax, 0x20(%r15)
cmpl $0x0, 0x3c(%rcx)
je 0x679cf
movb 0x10(%rcx), %al
jmp 0x679d1
xorl %eax, %eax
movb %al, 0x1d(%r15)
movw $0x0, 0x12(%r15)
movsd 0x40(%rcx), %xmm0
movsd 0x15527(%rip), %xmm1    # 0x7cf10
ucomisd %xmm0, %xmm1
jae 0x67a12
movsd 0x15529(%rip), %xmm1    # 0x7cf20
ucomisd %xmm0, %xmm1
jae 0x67a16
movq %xmm0, %rax
shrq $0x34, %rax
addl %eax, %eax
leal (%rax,%rax,4), %eax
addl $0xffffd814, %eax       # imm = 0xFFFFD814
jmp 0x67a3e
xorl %eax, %eax
jmp 0x67a3e
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x154b6(%rip), %xmm0    # 0x7cee0
cvttsd2si %xmm0, %rdi
andq %rcx, %rdi
orq %rax, %rdi
callq 0x3d559
movq -0x38(%rbp), %rcx
movw %ax, 0x14(%r15)
movq 0x48(%rcx), %rdi
movq %rcx, %rbx
callq 0x3d559
movw %ax, 0x16(%r15)
movl 0x50(%rbx), %eax
movl 0x28(%r15), %ecx
movl $0xffffefff, %edx       # imm = 0xFFFFEFFF
andl %edx, %ecx
andl $0x1, %eax
shll $0xc, %eax
orl %ecx, %eax
movl %eax, 0x28(%r15)
movq -0xa0(%rbp), %rdi
movq %r15, %rsi
callq 0x686b4
cmpb $0x0, 0x1c(%r15)
movq -0x58(%rbp), %rbx
je 0x67a96
movq 0x20(%r15), %rdi
callq 0xa620
movb $0x0, 0x1c(%r15)
leal 0x1(%r13), %eax
cmpl $0x3, %r13d
movl %eax, %r13d
movq -0x38(%rbp), %rsi
movl $0x0, %r15d
jl 0x67636
xorl %ebx, %ebx
jmp 0x67ade
movl $0x7, %ebx
jmp 0x67afd
movq -0x78(%rbp), %rax
movq (%rax), %rdx
leaq 0x17f54(%rip), %rsi     # 0x7fa1e
movq -0x40(%rbp), %rdi
xorl %eax, %eax
callq 0x14804
movl $0x1, %ebx
movq -0x38(%rbp), %rsi
cmpl $0x0, 0x38(%rsi)
je 0x67af1
movq 0x30(%rsi), %rdi
callq 0xa620
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %r13
movq %r13, %rdi
callq 0xb6df
movl %ebx, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq