// File: /workspace/github_c_makefile_star2_O0/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: whereLoopAddBtree
static int whereLoopAddBtree(
  WhereLoopBuilder *pBuilder, /* WHERE clause information */
  Bitmask mExtra              /* Extra prerequesites for using this table */
){
  WhereInfo *pWInfo;          /* WHERE analysis context */
  Index *pProbe;              /* An index we are evaluating */
  Index sPk;                  /* A fake index object for the primary key */
  LogEst aiRowEstPk[2];       /* The aiRowLogEst[] value for the sPk index */
  i16 aiColumnPk = -1;        /* The aColumn[] value for the sPk index */
  SrcList *pTabList;          /* The FROM clause */
  struct SrcList_item *pSrc;  /* The FROM clause btree term to add */
  WhereLoop *pNew;            /* Template WhereLoop object */
  int rc = SQLITE_OK;         /* Return code */
  int iSortIdx = 1;           /* Index number */
  int b;                      /* A boolean value */
  LogEst rSize;               /* number of rows in the table */
  LogEst rLogSize;            /* Logarithm of the number of rows in the table */
  WhereClause *pWC;           /* The parsed WHERE clause */
  Table *pTab;                /* Table being queried */
  
  pNew = pBuilder->pNew;
  pWInfo = pBuilder->pWInfo;
  pTabList = pWInfo->pTabList;
  pSrc = pTabList->a + pNew->iTab;
  pTab = pSrc->pTab;
  pWC = pBuilder->pWC;
  assert( !IsVirtual(pSrc->pTab) );

  if( pSrc->pIBIndex ){
    /* An INDEXED BY clause specifies a particular index to use */
    pProbe = pSrc->pIBIndex;
  }else if( !HasRowid(pTab) ){
    pProbe = pTab->pIndex;
  }else{
    /* There is no INDEXED BY clause.  Create a fake Index object in local
    ** variable sPk to represent the rowid primary key index.  Make this
    ** fake index the first in a chain of Index objects with all of the real
    ** indices to follow */
    Index *pFirst;                  /* First of real indices on the table */
    memset(&sPk, 0, sizeof(Index));
    sPk.nKeyCol = 1;
    sPk.nColumn = 1;
    sPk.aiColumn = &aiColumnPk;
    sPk.aiRowLogEst = aiRowEstPk;
    sPk.onError = OE_Replace;
    sPk.pTable = pTab;
    sPk.szIdxRow = pTab->szTabRow;
    aiRowEstPk[0] = pTab->nRowLogEst;
    aiRowEstPk[1] = 0;
    pFirst = pSrc->pTab->pIndex;
    if( pSrc->fg.notIndexed==0 ){
      /* The real indices of the table are only considered if the
      ** NOT INDEXED qualifier is omitted from the FROM clause */
      sPk.pNext = pFirst;
    }
    pProbe = &sPk;
  }
  rSize = pTab->nRowLogEst;
  rLogSize = estLog(rSize);

#ifndef SQLITE_OMIT_AUTOMATIC_INDEX
  /* Automatic indexes */
  if( !pBuilder->pOrSet      /* Not part of an OR optimization */
   && (pWInfo->wctrlFlags & WHERE_NO_AUTOINDEX)==0
   && (pWInfo->pParse->db->flags & SQLITE_AutoIndex)!=0
   && pSrc->pIBIndex==0      /* Has no INDEXED BY clause */
   && !pSrc->fg.notIndexed   /* Has no NOT INDEXED clause */
   && HasRowid(pTab)         /* Not WITHOUT ROWID table. (FIXME: Why not?) */
   && !pSrc->fg.isCorrelated /* Not a correlated subquery */
   && !pSrc->fg.isRecursive  /* Not a recursive common table expression. */
  ){
    /* Generate auto-index WhereLoops */
    WhereTerm *pTerm;
    WhereTerm *pWCEnd = pWC->a + pWC->nTerm;
    for(pTerm=pWC->a; rc==SQLITE_OK && pTerm<pWCEnd; pTerm++){
      if( pTerm->prereqRight & pNew->maskSelf ) continue;
      if( termCanDriveIndex(pTerm, pSrc, 0) ){
        pNew->u.btree.nEq = 1;
        pNew->nSkip = 0;
        pNew->u.btree.pIndex = 0;
        pNew->nLTerm = 1;
        pNew->aLTerm[0] = pTerm;
        /* TUNING: One-time cost for computing the automatic index is
        ** estimated to be X*N*log2(N) where N is the number of rows in
        ** the table being indexed and where X is 7 (LogEst=28) for normal
        ** tables or 1.375 (LogEst=4) for views and subqueries.  The value
        ** of X is smaller for views and subqueries so that the query planner
        ** will be more aggressive about generating automatic indexes for
        ** those objects, since there is no opportunity to add schema
        ** indexes on subqueries and views. */
        pNew->rSetup = rLogSize + rSize + 4;
        if( pTab->pSelect==0 && (pTab->tabFlags & TF_Ephemeral)==0 ){
          pNew->rSetup += 24;
        }
        ApplyCostMultiplier(pNew->rSetup, pTab->costMult);
        /* TUNING: Each index lookup yields 20 rows in the table.  This
        ** is more than the usual guess of 10 rows, since we have no way
        ** of knowing how selective the index will ultimately be.  It would
        ** not be unreasonable to make this value much larger. */
        pNew->nOut = 43;  assert( 43==sqlite3LogEst(20) );
        pNew->rRun = sqlite3LogEstAdd(rLogSize,pNew->nOut);
        pNew->wsFlags = WHERE_AUTO_INDEX;
        pNew->prereq = mExtra | pTerm->prereqRight;
        rc = whereLoopInsert(pBuilder, pNew);
      }
    }
  }
#endif /* SQLITE_OMIT_AUTOMATIC_INDEX */

  /* Loop over all indices
  */
  for(; rc==SQLITE_OK && pProbe; pProbe=pProbe->pNext, iSortIdx++){
    if( pProbe->pPartIdxWhere!=0
     && !whereUsablePartialIndex(pSrc->iCursor, pWC, pProbe->pPartIdxWhere) ){
      testcase( pNew->iTab!=pSrc->iCursor );  /* See ticket [98d973b8f5] */
      continue;  /* Partial index inappropriate for this query */
    }
    rSize = pProbe->aiRowLogEst[0];
    pNew->u.btree.nEq = 0;
    pNew->nSkip = 0;
    pNew->nLTerm = 0;
    pNew->iSortIdx = 0;
    pNew->rSetup = 0;
    pNew->prereq = mExtra;
    pNew->nOut = rSize;
    pNew->u.btree.pIndex = pProbe;
    b = indexMightHelpWithOrderBy(pBuilder, pProbe, pSrc->iCursor);
    /* The ONEPASS_DESIRED flags never occurs together with ORDER BY */
    assert( (pWInfo->wctrlFlags & WHERE_ONEPASS_DESIRED)==0 || b==0 );
    if( pProbe->tnum<=0 ){
      /* Integer primary key index */
      pNew->wsFlags = WHERE_IPK;

      /* Full table scan */
      pNew->iSortIdx = b ? iSortIdx : 0;
      /* TUNING: Cost of full table scan is (N*3.0). */
      pNew->rRun = rSize + 16;
      ApplyCostMultiplier(pNew->rRun, pTab->costMult);
      whereLoopOutputAdjust(pWC, pNew, rSize);
      rc = whereLoopInsert(pBuilder, pNew);
      pNew->nOut = rSize;
      if( rc ) break;
    }else{
      Bitmask m;
      if( pProbe->isCovering ){
        pNew->wsFlags = WHERE_IDX_ONLY | WHERE_INDEXED;
        m = 0;
      }else{
        m = pSrc->colUsed & ~columnsInIndex(pProbe);
        pNew->wsFlags = (m==0) ? (WHERE_IDX_ONLY|WHERE_INDEXED) : WHERE_INDEXED;
      }

      /* Full scan via index */
      if( b
       || !HasRowid(pTab)
       || ( m==0
         && pProbe->bUnordered==0
         && (pProbe->szIdxRow<pTab->szTabRow)
         && (pWInfo->wctrlFlags & WHERE_ONEPASS_DESIRED)==0
         && sqlite3GlobalConfig.bUseCis
         && OptimizationEnabled(pWInfo->pParse->db, SQLITE_CoverIdxScan)
          )
      ){
        pNew->iSortIdx = b ? iSortIdx : 0;

        /* The cost of visiting the index rows is N*K, where K is
        ** between 1.1 and 3.0, depending on the relative sizes of the
        ** index and table rows. If this is a non-covering index scan,
        ** also add the cost of visiting table rows (N*3.0).  */
        pNew->rRun = rSize + 1 + (15*pProbe->szIdxRow)/pTab->szTabRow;
        if( m!=0 ){
          pNew->rRun = sqlite3LogEstAdd(pNew->rRun, rSize+16);
        }
        ApplyCostMultiplier(pNew->rRun, pTab->costMult);
        whereLoopOutputAdjust(pWC, pNew, rSize);
        rc = whereLoopInsert(pBuilder, pNew);
        pNew->nOut = rSize;
        if( rc ) break;
      }
    }

    rc = whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, 0);
#ifdef SQLITE_ENABLE_STAT3_OR_STAT4
    sqlite3Stat4ProbeFree(pBuilder->pRec);
    pBuilder->nRecValid = 0;
    pBuilder->pRec = 0;
#endif

    /* If there was an INDEXED BY clause, then only that one index is
    ** considered. */
    if( pSrc->pIBIndex ) break;
  }
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movw $0xffff, -0x8e(%rbp)    # imm = 0xFFFF
movl $0x0, -0xac(%rbp)
movl $0x1, -0xb0(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0xa8(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
addq $0x8, %rax
movq -0xa8(%rbp), %rcx
movzbl 0x10(%rcx), %ecx
movslq %ecx, %rcx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0xc8(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xc0(%rbp)
movq -0xa0(%rbp), %rax
cmpq $0x0, 0x68(%rax)
je 0x8a3c3
movq -0xa0(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x8a49a
movq -0xc8(%rbp), %rax
movzbl 0x46(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x8a3ea
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x8a498
leaq -0x88(%rbp), %rdi
xorl %esi, %esi
movl $0x68, %edx
callq 0xb2b0
movw $0x1, -0x2a(%rbp)
movw $0x1, -0x28(%rbp)
leaq -0x8e(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq -0x8c(%rbp), %rax
movq %rax, -0x78(%rbp)
movb $0x5, -0x26(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0xc8(%rbp), %rax
movw 0x44(%rax), %ax
movw %ax, -0x2c(%rbp)
movq -0xc8(%rbp), %rax
movw 0x42(%rax), %ax
movw %ax, -0x8c(%rbp)
movw $0x0, -0x8a(%rbp)
movq -0xa0(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, -0xd0(%rbp)
movq -0xa0(%rbp), %rax
movb 0x3d(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x8a48d
movq -0xd0(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq -0x88(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0x8a49a
movq -0xc8(%rbp), %rax
movw 0x42(%rax), %ax
movw %ax, -0xb6(%rbp)
movswl -0xb6(%rbp), %edi
callq 0x8c110
movw %ax, -0xb8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x20(%rax)
jne 0x8a750
movq -0x18(%rbp), %rax
movzwl 0x32(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
jne 0x8a750
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
movl 0x2c(%rax), %eax
andl $0x100000, %eax         # imm = 0x100000
cmpl $0x0, %eax
je 0x8a750
movq -0xa0(%rbp), %rax
cmpq $0x0, 0x68(%rax)
jne 0x8a750
movq -0xa0(%rbp), %rax
movb 0x3d(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x8a750
movq -0xc8(%rbp), %rax
movzbl 0x46(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
jne 0x8a750
movq -0xa0(%rbp), %rax
movb 0x3d(%rax), %al
shrb $0x3, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x8a750
movq -0xa0(%rbp), %rax
movb 0x3d(%rax), %al
shrb $0x5, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x8a750
movq -0xc0(%rbp), %rax
movq 0x20(%rax), %rax
movq -0xc0(%rbp), %rcx
movslq 0x14(%rcx), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xe0(%rbp)
movq -0xc0(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0xd8(%rbp)
xorl %eax, %eax
cmpl $0x0, -0xac(%rbp)
movb %al, -0xe9(%rbp)
jne 0x8a5d4
movq -0xd8(%rbp), %rax
cmpq -0xe0(%rbp), %rax
setb %al
movb %al, -0xe9(%rbp)
movb -0xe9(%rbp), %al
testb $0x1, %al
jne 0x8a5e3
jmp 0x8a74e
movq -0xd8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xa8(%rbp), %rcx
andq 0x8(%rcx), %rax
cmpq $0x0, %rax
je 0x8a604
jmp 0x8a737
movq -0xd8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x8c150
cmpl $0x0, %eax
je 0x8a735
movq -0xa8(%rbp), %rax
movw $0x1, 0x18(%rax)
movq -0xa8(%rbp), %rax
movw $0x0, 0x2e(%rax)
movq -0xa8(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0xa8(%rbp), %rax
movw $0x1, 0x2c(%rax)
movq -0xd8(%rbp), %rcx
movq -0xa8(%rbp), %rax
movq 0x38(%rax), %rax
movq %rcx, (%rax)
movswl -0xb8(%rbp), %eax
movswl -0xb6(%rbp), %ecx
addl %ecx, %eax
addl $0x4, %eax
movw %ax, %cx
movq -0xa8(%rbp), %rax
movw %cx, 0x12(%rax)
movq -0xc8(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x8a6c3
movq -0xc8(%rbp), %rax
movzbl 0x46(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0x8a6c3
movq -0xa8(%rbp), %rax
movswl 0x12(%rax), %ecx
addl $0x18, %ecx
movw %cx, 0x12(%rax)
movq -0xa8(%rbp), %rax
movw $0x2b, 0x16(%rax)
movw -0xb8(%rbp), %cx
movq -0xa8(%rbp), %rax
movswl %cx, %edi
movswl 0x16(%rax), %esi
callq 0x8c220
movw %ax, %cx
movq -0xa8(%rbp), %rax
movw %cx, 0x14(%rax)
movq -0xa8(%rbp), %rax
movl $0x4000, 0x28(%rax)     # imm = 0x4000
movq -0x10(%rbp), %rcx
movq -0xd8(%rbp), %rax
orq 0x28(%rax), %rcx
movq -0xa8(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x8b7f0
movl %eax, -0xac(%rbp)
jmp 0x8a737
movq -0xd8(%rbp), %rax
addq $0x38, %rax
movq %rax, -0xd8(%rbp)
jmp 0x8a5ac
jmp 0x8a750
jmp 0x8a752
xorl %eax, %eax
cmpl $0x0, -0xac(%rbp)
movb %al, -0xea(%rbp)
jne 0x8a771
cmpq $0x0, -0x20(%rbp)
setne %al
movb %al, -0xea(%rbp)
movb -0xea(%rbp), %al
testb $0x1, %al
jne 0x8a780
jmp 0x8ab77
movq -0x20(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x8a7b3
movq -0xa0(%rbp), %rax
movl 0x44(%rax), %edi
movq -0xc0(%rbp), %rsi
movq -0x20(%rbp), %rax
movq 0x48(%rax), %rdx
callq 0x8c300
cmpl $0x0, %eax
jne 0x8a7b3
jmp 0x8ab57
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movw (%rax), %ax
movw %ax, -0xb6(%rbp)
movq -0xa8(%rbp), %rax
movw $0x0, 0x18(%rax)
movq -0xa8(%rbp), %rax
movw $0x0, 0x2e(%rax)
movq -0xa8(%rbp), %rax
movw $0x0, 0x2c(%rax)
movq -0xa8(%rbp), %rax
movb $0x0, 0x11(%rax)
movq -0xa8(%rbp), %rax
movw $0x0, 0x12(%rax)
movq -0x10(%rbp), %rcx
movq -0xa8(%rbp), %rax
movq %rcx, (%rax)
movw -0xb6(%rbp), %cx
movq -0xa8(%rbp), %rax
movw %cx, 0x16(%rax)
movq -0x20(%rbp), %rcx
movq -0xa8(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0xa0(%rbp), %rax
movl 0x44(%rax), %edx
callq 0x8c3e0
movl %eax, -0xb4(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x58(%rax)
jg 0x8a90c
movq -0xa8(%rbp), %rax
movl $0x100, 0x28(%rax)      # imm = 0x100
cmpl $0x0, -0xb4(%rbp)
je 0x8a883
movl -0xb0(%rbp), %eax
movl %eax, -0xf0(%rbp)
jmp 0x8a88d
xorl %eax, %eax
movl %eax, -0xf0(%rbp)
jmp 0x8a88d
movl -0xf0(%rbp), %eax
movb %al, %cl
movq -0xa8(%rbp), %rax
movb %cl, 0x11(%rax)
movswl -0xb6(%rbp), %eax
addl $0x10, %eax
movw %ax, %cx
movq -0xa8(%rbp), %rax
movw %cx, 0x14(%rax)
movq -0xc0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
movswl -0xb6(%rbp), %edx
callq 0x8c590
movq -0x8(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x8b7f0
movl %eax, -0xac(%rbp)
movw -0xb6(%rbp), %cx
movq -0xa8(%rbp), %rax
movw %cx, 0x16(%rax)
cmpl $0x0, -0xac(%rbp)
je 0x8a907
jmp 0x8ab77
jmp 0x8ab29
movq -0x20(%rbp), %rax
movb 0x63(%rax), %al
shrb $0x5, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x8a93b
movq -0xa8(%rbp), %rax
movl $0x240, 0x28(%rax)      # imm = 0x240
movq $0x0, -0xe8(%rbp)
jmp 0x8a990
movq -0xa0(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0xf8(%rbp)
movq -0x20(%rbp), %rdi
callq 0x89b50
movq %rax, %rcx
movq -0xf8(%rbp), %rax
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rdx
movl $0x200, %ecx            # imm = 0x200
movl $0x240, %eax            # imm = 0x240
cmpq $0x0, %rdx
cmovel %eax, %ecx
movq -0xa8(%rbp), %rax
movl %ecx, 0x28(%rax)
cmpl $0x0, -0xb4(%rbp)
jne 0x8aa2c
movq -0xc8(%rbp), %rax
movzbl 0x46(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
jne 0x8aa2c
cmpq $0x0, -0xe8(%rbp)
jne 0x8ab27
movq -0x20(%rbp), %rax
movb 0x63(%rax), %al
shrb $0x2, %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x8ab27
movq -0x20(%rbp), %rax
movswl 0x5c(%rax), %eax
movq -0xc8(%rbp), %rcx
movswl 0x44(%rcx), %ecx
cmpl %ecx, %eax
jge 0x8ab27
movq -0x18(%rbp), %rax
movzwl 0x32(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
jne 0x8ab27
cmpl $0x0, 0x34ac4(%rip)     # 0xbf4d0
je 0x8ab27
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
movzwl 0x4c(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
jne 0x8ab27
cmpl $0x0, -0xb4(%rbp)
je 0x8aa43
movl -0xb0(%rbp), %eax
movl %eax, -0xfc(%rbp)
jmp 0x8aa4d
xorl %eax, %eax
movl %eax, -0xfc(%rbp)
jmp 0x8aa4d
movl -0xfc(%rbp), %eax
movb %al, %cl
movq -0xa8(%rbp), %rax
movb %cl, 0x11(%rax)
movswl -0xb6(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x100(%rbp)
movq -0x20(%rbp), %rax
movswl 0x5c(%rax), %eax
imull $0xf, %eax, %eax
movq -0xc8(%rbp), %rcx
movswl 0x44(%rcx), %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x100(%rbp), %eax
addl %ecx, %eax
movw %ax, %cx
movq -0xa8(%rbp), %rax
movw %cx, 0x14(%rax)
cmpq $0x0, -0xe8(%rbp)
je 0x8aad8
movq -0xa8(%rbp), %rax
movw 0x14(%rax), %cx
movswl -0xb6(%rbp), %eax
addl $0x10, %eax
movswl %cx, %edi
movswl %ax, %esi
callq 0x8c220
movw %ax, %cx
movq -0xa8(%rbp), %rax
movw %cx, 0x14(%rax)
movq -0xc0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
movswl -0xb6(%rbp), %edx
callq 0x8c590
movq -0x8(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x8b7f0
movl %eax, -0xac(%rbp)
movw -0xb6(%rbp), %cx
movq -0xa8(%rbp), %rax
movw %cx, 0x16(%rax)
cmpl $0x0, -0xac(%rbp)
je 0x8ab25
jmp 0x8ab77
jmp 0x8ab27
jmp 0x8ab29
movq -0x8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
movq -0x20(%rbp), %rdx
xorl %ecx, %ecx
callq 0x8c790
movl %eax, -0xac(%rbp)
movq -0xa0(%rbp), %rax
cmpq $0x0, 0x68(%rax)
je 0x8ab55
jmp 0x8ab77
jmp 0x8ab57
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movl -0xb0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xb0(%rbp)
jmp 0x8a752
movl -0xac(%rbp), %eax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopw %cs:(%rax,%rax)