// File: /workspace/github_c_makefile_star2_O3/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 $0x78, %rsp
movq %rdx, %r15
movq %rsi, -0x60(%rbp)
movq (%rdi), %rax
movq 0x8(%rdi), %r10
movq (%rax), %rcx
movq %rcx, -0x38(%rbp)
movq 0x8(%rax), %rax
movq 0x18(%rdi), %r11
movzbl 0x10(%r11), %ecx
imulq $0x70, %rcx, %rcx
leaq (%rax,%rcx), %r12
addq $0x8, %r12
movq %rdi, -0x98(%rbp)
movq 0x10(%rdi), %r14
movl 0x14(%r10), %esi
xorl %ebx, %ebx
movl $0x0, %edx
testl %esi, %esi
jle 0x65ee9
movq 0x20(%r10), %rdi
movl 0x44(%r12), %r8d
addq $0x28, %rdi
xorl %edx, %edx
cmpl %r8d, -0x1c(%rdi)
jne 0x65ee1
testq %r15, (%rdi)
jne 0x65ee1
movzwl -0xe(%rdi), %r9d
andl $0xf67f, %r9d           # imm = 0xF67F
cmpw $0x1, %r9w
sbbl $-0x1, %edx
addq $0x38, %rdi
decl %esi
jne 0x65ec2
movq -0x38(%rbp), %rsi
movq (%rsi), %rsi
movq %rsi, -0x68(%rbp)
testq %r14, %r14
je 0x65f34
movl (%r14), %esi
xorl %ebx, %ebx
movl $0x0, %edi
testl %esi, %esi
jle 0x65f2f
movq 0x8(%r14), %r8
xorl %edi, %edi
movq (%r8), %r9
cmpb $-0x68, (%r9)
jne 0x65f2f
movl 0x2c(%r9), %r9d
cmpl 0x44(%r12), %r9d
jne 0x65f2f
incq %rdi
addq $0x20, %r8
cmpq %rdi, %rsi
jne 0x65f0d
movl %esi, %edi
cmpl %esi, %edi
cmovel %esi, %ebx
movq %r11, -0x48(%rbp)
movq %r10, -0x78(%rbp)
movq 0x28(%rax,%rcx), %rax
movq %rax, -0x80(%rbp)
movslq %edx, %rax
movq %rax, -0x30(%rbp)
leaq (%rax,%rax,4), %rax
movl %ebx, -0x50(%rbp)
movslq %ebx, %r13
leaq (,%r13,8), %rcx
leaq (%rcx,%rax,4), %rbx
addq $0x60, %rbx
movq -0x68(%rbp), %rdi
movq %rbx, %rsi
callq 0x145aa
testq %rax, %rax
je 0x6605b
movq %r14, -0x40(%rbp)
movq %r12, -0x88(%rbp)
xorl %r12d, %r12d
movq %rax, %rdi
movq %rax, %r14
xorl %esi, %esi
movq %rbx, %rdx
callq 0xa220
leaq 0x60(%r14), %rcx
movq -0x30(%rbp), %rdi
leaq (%rdi,%rdi,2), %rax
leaq (%r14,%rax,4), %rdx
addq $0x60, %rdx
leaq (%rdx,%r13,8), %rsi
movl %edi, (%r14)
movl %r13d, 0x10(%r14)
movq %rcx, 0x8(%r14)
movq %rdx, 0x18(%r14)
movq %r14, -0x30(%rbp)
movq %rsi, 0x20(%r14)
movq -0x78(%rbp), %r14
movl 0x14(%r14), %edx
testl %edx, %edx
jle 0x66072
movq 0x20(%r14), %r13
movq -0x88(%rbp), %rsi
movl 0x44(%rsi), %edi
addq $0xc, %r13
movl $0x2, %r8d
xorl %r9d, %r9d
movq -0x48(%rbp), %rsi
cmpl %edi, (%r13)
jne 0x66046
testq %r15, 0x1c(%r13)
jne 0x66046
movzwl 0xe(%r13), %r10d
testl $0xf67f, %r10d          # imm = 0xF67F
je 0x66046
movl 0x4(%r13), %ebx
movslq %r9d, %r11
leaq (%r11,%r11,2), %r11
movl %ebx, (%rcx,%r11,4)
movl %r12d, 0x8(%rcx,%r11,4)
cmpb $0x1, %r10b
cmovel %r8d, %r10d
cmpb $0x40, %r10b
jne 0x66037
movb 0x13(%r13), %r10b
leaq (%rcx,%r11,4), %r11
movb %r10b, 0x4(%r11)
incl %r9d
movq -0x48(%rbp), %rsi
incl %r12d
addq $0x38, %r13
cmpl %r12d, %edx
jne 0x65ff7
movl -0x50(%rbp), %edx
testl %edx, %edx
jg 0x6607d
jmp 0x660b6
leaq 0x153c5(%rip), %rsi     # 0x7b427
movq -0x38(%rbp), %rdi
xorl %eax, %eax
callq 0x14890
jmp 0x660fb
movl -0x50(%rbp), %edx
testl %edx, %edx
movq -0x48(%rbp), %rsi
jle 0x660b6
movq -0x40(%rbp), %rcx
movq 0x8(%rcx), %rcx
movl %edx, %edx
movq -0x30(%rbp), %rdi
leaq (%rdi,%rax,4), %rax
addq $0x64, %rax
xorl %r8d, %r8d
movq (%rcx), %rdi
movswl 0x30(%rdi), %edi
movl %edi, -0x4(%rax,%r8,8)
movb 0x18(%rcx), %dil
movb %dil, (%rax,%r8,8)
incq %r8
addq $0x20, %rcx
cmpq %r8, %rdx
jne 0x66096
movq $0x0, (%rsi)
xorl %eax, %eax
movw %ax, 0x12(%rsi)
movl $0x400, 0x28(%rsi)      # imm = 0x400
movw %ax, 0x2c(%rsi)
movb $0x0, 0x1c(%rsi)
movq -0x30(%rbp), %r14
movq 0x20(%r14), %r15
movl (%r14), %r12d
movq -0x68(%rbp), %rbx
movq %rbx, %rdi
movl %r12d, %edx
callq 0x6712f
testl %eax, %eax
je 0x66105
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb752
movl $0x7, %ebx
jmp 0x6661a
movq -0x60(%rbp), %rax
notq %rax
movq %rax, -0x50(%rbp)
movq %r14, %rax
addq $0x30, %rax
movq %rax, -0x58(%rbp)
movq -0x80(%rbp), %rax
addq $0x58, %rax
movq %rax, -0x90(%rbp)
xorl %r13d, %r13d
movq %r12, %rcx
xorl %r12d, %r12d
movq %r15, %rax
xorl %r15d, %r15d
movq %r14, %rsi
movq %rax, %r14
movq %rcx, -0x40(%rbp)
movq %rax, -0x70(%rbp)
testl %r15d, %r15d
jne 0x66161
movl %r13d, %eax
andl $0x1, %eax
je 0x66161
cmpl $0x3, %r13d
je 0x6662b
incl %r13d
testl %r12d, %r12d
sete %al
cmpl $0x2, %r13d
setge %cl
xorl %ebx, %ebx
testb %cl, %al
jne 0x665fb
movslq (%rsi), %rdx
testq %rdx, %rdx
jle 0x66242
movq 0x8(%rsi), %rax
movq -0x78(%rbp), %rcx
movq 0x20(%rcx), %rcx
addq $0x5, %rax
movl %edx, %esi
movl %r12d, %edi
movl %r15d, %r8d
movq -0x58(%rbp), %rbx
movslq 0x3(%rax), %r9
imulq $0x38, %r9, %r9
addq %rcx, %r9
cmpl $0x2, %r13d
je 0x6621a
cmpl $0x1, %r13d
je 0x6620d
testl %r13d, %r13d
jne 0x66208
movb $0x0, (%rax)
movb 0x1a(%r9), %r10b
testb $0x1, %r10b
movl %r8d, %r15d
movq %r13, %r12
movq %r14, %r13
movq %rbx, %r14
movl $0x1, %ebx
cmovnel %ebx, %r15d
movq -0x50(%rbp), %r11
testq %r11, 0x28(%r9)
setne %r9b
cmovel %ebx, %r15d
movl %edi, %r11d
cmovnel %ebx, %r11d
movq %r14, %rbx
movq %r13, %r14
movq %r12, %r13
movl %r11d, %r12d
orb %r10b, %r9b
testb $0x1, %r9b
jne 0x6622e
movb $0x1, (%rax)
jmp 0x66228
movq -0x50(%rbp), %r10
testq %r10, 0x28(%r9)
sete (%rax)
jmp 0x66228
movb 0x1a(%r9), %r9b
notb %r9b
andb $0x1, %r9b
movb %r9b, (%rax)
movl %r8d, %r15d
movl %edi, %r12d
addq $0xc, %rax
movl %r12d, %edi
movl %r15d, %r8d
decl %esi
jne 0x661a0
jmp 0x66246
movq -0x58(%rbp), %rbx
shlq $0x3, %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0xa220
movq -0x30(%rbp), %rsi
cmpl $0x0, 0x38(%rsi)
je 0x6626a
movq (%rbx), %rdi
callq 0xa630
movq -0x30(%rbp), %rsi
xorl %eax, %eax
movl %eax, 0x28(%rsi)
xorpd %xmm0, %xmm0
movupd %xmm0, (%rbx)
movabsq $0x546d42aea2879f2e, %rcx # imm = 0x546D42AEA2879F2E
movq %rcx, 0x40(%rsi)
movq $0x19, 0x48(%rsi)
movl %eax, 0x50(%rsi)
movq -0x88(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, 0x58(%rsi)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x90(%rbp), %rcx
movq (%rcx), %rdx
leaq 0x28(%rdx), %rcx
cmpq %rax, (%rdx)
jne 0x662ad
movq 0x10(%rdx), %rbx
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
testl %eax, %eax
je 0x6632c
cmpl $0x7, %eax
jne 0x662dc
movq -0x38(%rbp), %rax
movq (%rax), %rax
movb $0x1, 0x51(%rax)
jmp 0x6632c
movq 0x10(%rbx), %rdx
testq %rdx, %rdx
jne 0x6631a
leaq 0x190aa(%rip), %rdx     # 0x7f396
cmpl $0x204, %eax            # imm = 0x204
je 0x6631a
movzbl %al, %eax
cmpl $0x1b, %eax
setae %cl
cmpl $0x2, %eax
sete %dl
orb %cl, %dl
leaq 0x1907d(%rip), %rdx     # 0x7f388
jne 0x6631a
movl %eax, %eax
leaq 0x2a9da(%rip), %rcx     # 0x90cf0
movq (%rcx,%rax,8), %rdx
movq -0x38(%rbp), %rdi
leaq 0x1506e(%rip), %rsi     # 0x7b393
xorl %eax, %eax
callq 0x14890
movq 0x10(%rbx), %rdi
callq 0xa630
movq $0x0, 0x10(%rbx)
movq -0x30(%rbp), %rsi
movl (%rsi), %eax
testl %eax, %eax
movq -0x40(%rbp), %r9
jle 0x6639a
movl $0x5, %ebx
xorl %r14d, %r14d
movq 0x8(%rsi), %rcx
cmpb $0x0, (%rcx,%rbx)
jne 0x6638b
movq 0x20(%rsi), %rcx
cmpl $0x0, (%rcx,%r14,8)
jle 0x6638b
movq -0x80(%rbp), %rax
movq (%rax), %rdx
movq -0x38(%rbp), %rdi
leaq 0x176d0(%rip), %rsi     # 0x7da4a
xorl %eax, %eax
callq 0x14890
movq -0x40(%rbp), %r9
movq -0x30(%rbp), %rsi
movl (%rsi), %eax
incq %r14
movslq %eax, %rcx
addq $0xc, %rbx
cmpq %rcx, %r14
jl 0x66353
movq -0x38(%rbp), %rax
movl 0x4c(%rax), %ebx
testl %ebx, %ebx
movq -0x70(%rbp), %r14
jne 0x665fb
movq 0x8(%rsi), %rax
movq -0x60(%rbp), %rcx
movq -0x48(%rbp), %rbx
movq %rcx, (%rbx)
testl %r9d, %r9d
jle 0x664c4
xorl %ecx, %ecx
movq 0x38(%rbx), %rdx
movq $0x0, (%rdx,%rcx,8)
incq %rcx
cmpq %rcx, %r9
jne 0x663c7
movw $0x0, 0x1e(%rbx)
testl %r9d, %r9d
jle 0x664ca
addq $0x8, %rax
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq -0x60(%rbp), %rsi
xorl %edi, %edi
movl (%r14,%rdi,8), %r8d
testl %r8d, %r8d
jle 0x664ac
cmpl %r9d, %r8d
movq -0x78(%rbp), %r14
jg 0x665d9
movl (%rax), %r9d
testl %r9d, %r9d
js 0x665d9
cmpl 0x14(%r14), %r9d
jge 0x665d9
leal -0x1(%r8), %ecx
movq 0x38(%rbx), %r10
movl %ecx, %r11d
cmpq $0x0, (%r10,%r11,8)
jne 0x665d9
movq 0x20(%r14), %rbx
imulq $0x38, %r9, %r14
leaq (%rbx,%r14), %r9
orq 0x28(%rbx,%r14), %rsi
movq -0x70(%rbp), %r14
movq -0x48(%rbp), %rbx
movq %rsi, (%rbx)
movq %r9, (%r10,%r11,8)
cmpl %edx, %ecx
cmovgl %ecx, %edx
cmpl $0x10, %r8d
ja 0x66480
cmpb $0x0, 0x4(%r14,%rdi,8)
je 0x66480
movl $0x1, %r8d
shll %cl, %r8d
orw %r8w, 0x1e(%rbx)
testb $0x1, 0x1a(%r9)
jne 0x6648d
movq -0x40(%rbp), %r9
jmp 0x664ac
cmpb $0x0, 0x4(%r14,%rdi,8)
movq -0x40(%rbp), %r9
je 0x665bd
movq -0x30(%rbp), %rcx
movl $0x0, 0x3c(%rcx)
andb $-0x2, 0x50(%rcx)
incq %rdi
addq $0xc, %rax
cmpq %rdi, %r9
jne 0x663f9
incl %edx
movq -0x30(%rbp), %rsi
jmp 0x664cc
movw $0x0, 0x1e(%rbx)
xorl %edx, %edx
movw %dx, 0x2c(%rbx)
movl 0x28(%rsi), %eax
movl %eax, 0x18(%rbx)
movb 0x38(%rsi), %al
movb %al, 0x1c(%rbx)
movl $0x0, 0x38(%rsi)
movq 0x30(%rsi), %rax
movq %rax, 0x20(%rbx)
cmpl $0x0, 0x3c(%rsi)
je 0x664f6
movb 0x10(%rsi), %al
jmp 0x664f8
xorl %eax, %eax
movb %al, 0x1d(%rbx)
movw $0x0, 0x12(%rbx)
movsd 0x40(%rsi), %xmm0
movsd 0x14a02(%rip), %xmm1    # 0x7af10
ucomisd %xmm0, %xmm1
jae 0x66537
movsd 0x14a04(%rip), %xmm1    # 0x7af20
ucomisd %xmm0, %xmm1
jae 0x6653b
movq %xmm0, %rax
shrq $0x34, %rax
addl %eax, %eax
leal (%rax,%rax,4), %eax
addl $0xffffd814, %eax       # imm = 0xFFFFD814
jmp 0x66563
xorl %eax, %eax
jmp 0x66563
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x14991(%rip), %xmm0    # 0x7aee0
cvttsd2si %xmm0, %rdi
andq %rcx, %rdi
orq %rax, %rdi
callq 0x3c565
movq -0x30(%rbp), %rsi
movw %ax, 0x14(%rbx)
movq 0x48(%rsi), %rdi
movq %rsi, %r14
callq 0x3c565
movw %ax, 0x16(%rbx)
movl 0x50(%r14), %eax
movl 0x28(%rbx), %ecx
movl $0xffffefff, %edx       # imm = 0xFFFFEFFF
andl %edx, %ecx
andl $0x1, %eax
shll $0xc, %eax
orl %ecx, %eax
movl %eax, 0x28(%rbx)
movq -0x98(%rbp), %rax
movq (%rax), %rdi
movq 0x20(%rax), %rsi
movq %rbx, %rdx
callq 0x671b7
cmpb $0x0, 0x1c(%rbx)
movq -0x70(%rbp), %r14
je 0x665bd
movq 0x20(%rbx), %rdi
callq 0xa630
movb $0x0, 0x1c(%rbx)
leal 0x1(%r13), %eax
movl $0x0, %ebx
cmpl $0x3, %r13d
movl %eax, %r13d
movq -0x30(%rbp), %rsi
jl 0x66147
jmp 0x665fb
movq -0x80(%rbp), %rax
movq (%rax), %rdx
leaq 0x17447(%rip), %rsi     # 0x7da2e
movq -0x38(%rbp), %rdi
xorl %eax, %eax
callq 0x14890
movl $0x1, %ebx
movq -0x30(%rbp), %rsi
cmpl $0x0, 0x38(%rsi)
je 0x66611
movq -0x58(%rbp), %rax
movq (%rax), %rdi
callq 0xa630
movq -0x30(%rbp), %rsi
movq -0x68(%rbp), %rdi
callq 0xb752
movl %ebx, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebx, %ebx
jmp 0x665fb