LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: exprListTableUsage
static Bitmask exprListTableUsage(WhereMaskSet *pMaskSet, ExprList *pList){
  int i;
  Bitmask mask = 0;
  if( pList ){
    for(i=0; i<pList->nExpr; i++){
      mask |= exprTableUsage(pMaskSet, pList->a[i].pExpr);
    }
  }
  return mask;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x57020
movslq (%rsi), %r15
testq %r15, %r15
jle 0x57020
movq %rdi, %rbx
movq 0x8(%rsi), %r12
shlq $0x5, %r15
xorl %r13d, %r13d
xorl %r14d, %r14d
movq (%r12,%r13), %rsi
movq %rbx, %rdi
callq 0x58ed0
orq %rax, %r14
addq $0x20, %r13
cmpq %r13, %r15
jne 0x57006
jmp 0x57023
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: whereInfoFree
static void whereInfoFree(sqlite3 *db, WhereInfo *pWInfo){
  if( ALWAYS(pWInfo) ){
    whereClauseClear(&pWInfo->sWC);
    while( pWInfo->pLoops ){
      WhereLoop *p = pWInfo->pLoops;
      pWInfo->pLoops = p->pNextLoop;
      whereLoopDelete(db, p);
    }
    sqlite3DbFree(db, pWInfo);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x150(%rsi), %rdi
callq 0x5b816
movq 0x20(%rbx), %r15
testq %r15, %r15
je 0x57a05
movq 0x38(%r15), %rax
movq %rax, 0x20(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x5a07e
movq %r14, %rdi
movq %r15, %rsi
callq 0x9c3a
jmp 0x579dc
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x9c3a
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: evalConstExpr
static int evalConstExpr(Walker *pWalker, Expr *pExpr){
  Parse *pParse = pWalker->pParse;
  switch( pExpr->op ){
    case TK_IN:
    case TK_REGISTER: {
      return WRC_Prune;
    }
    case TK_COLLATE: {
      return WRC_Continue;
    }
    case TK_FUNCTION:
    case TK_AGG_FUNCTION:
    case TK_CONST_FUNC: {
      /* The arguments to a function have a fixed destination.
      ** Mark them this way to avoid generated unneeded OP_SCopy
      ** instructions. 
      */
      ExprList *pList = pExpr->x.pList;
      assert( !ExprHasProperty(pExpr, EP_xIsSelect) );
      if( pList ){
        int i = pList->nExpr;
        struct ExprList_item *pItem = pList->a;
        for(; i>0; i--, pItem++){
          if( ALWAYS(pItem->pExpr) ) pItem->pExpr->flags |= EP_FixedDest;
        }
      }
      break;
    }
  }
  if( isAppropriateForFactoring(pExpr) ){
    int r1 = ++pParse->nMem;
    int r2 = sqlite3ExprCodeTarget(pParse, pExpr, r1);
    /* If r2!=r1, it means that register r1 is never used.  That is harmless
    ** but suboptimal, so we want to know about the situation to fix it.
    ** Hence the following assert: */
    assert( r2==r1 );
    pExpr->op2 = pExpr->op;
    pExpr->op = TK_REGISTER;
    pExpr->iTable = r2;
    return WRC_Prune;
  }
  return WRC_Continue;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq 0x10(%rdi), %r14
movzbl (%rsi), %ecx
movl $0x1, %eax
cmpl $0x96, %ecx
jg 0x57a5e
cmpl $0x48, %ecx
je 0x57b5c
cmpl $0x5c, %ecx
je 0x57b5a
cmpl $0x84, %ecx
je 0x57b5c
jmp 0x57aa2
cmpl $0x97, %ecx
je 0x57a76
cmpl $0x99, %ecx
je 0x57a76
cmpl $0x9b, %ecx
jne 0x57aa2
movq 0x20(%rbx), %rcx
testq %rcx, %rcx
je 0x57aa2
movl (%rcx), %eax
testl %eax, %eax
jle 0x57aa2
movq 0x8(%rcx), %rcx
incl %eax
movq (%rcx), %rdx
testq %rdx, %rdx
je 0x57a97
orb $0x2, 0x3(%rdx)
addq $0x20, %rcx
decl %eax
cmpl $0x1, %eax
jg 0x57a8b
xorps %xmm0, %xmm0
leaq -0x40(%rbp), %r15
movaps %xmm0, (%r15)
movaps %xmm0, 0x10(%r15)
movq $0x0, 0x20(%r15)
movl $0x3, 0x20(%r15)
leaq -0xc031(%rip), %rax     # 0x4ba98
movq %rax, (%r15)
leaq -0xbff9(%rip), %rax     # 0x4bada
movq %rax, 0x8(%r15)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x470d7
xorl %eax, %eax
cmpl $0x0, 0x20(%r15)
je 0x57b5c
testb $0x2, 0x3(%rbx)
jne 0x57b18
movl 0x58(%r14), %edx
incl %edx
movl %edx, 0x58(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4d211
movb (%rbx), %cl
movb %cl, 0x37(%rbx)
movb $-0x7c, (%rbx)
movl %eax, 0x2c(%rbx)
movl $0x1, %eax
jmp 0x57b5c
movq %rbx, %rcx
movzbl (%rcx), %edx
cmpl $0x9d, %edx
jne 0x57b2c
movq 0x10(%rcx), %rcx
jmp 0x57b1b
addl $-0x5e, %edx
cmpl $0x3e, %edx
ja 0x57af1
movabsq $0xb800000011, %rsi     # imm = 0xB800000011
btq %rdx, %rsi
jb 0x57b5c
cmpq $0x3e, %rdx
jne 0x57af1
movq 0x10(%rcx), %rcx
movb (%rcx), %cl
addb $0x7f, %cl
cmpb $0x2, %cl
jae 0x57af1
jmp 0x57b5c
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: whereClauseInsert
static int whereClauseInsert(WhereClause *pWC, Expr *p, u8 wtFlags){
  WhereTerm *pTerm;
  int idx;
  testcase( wtFlags & TERM_VIRTUAL );
  if( pWC->nTerm>=pWC->nSlot ){
    WhereTerm *pOld = pWC->a;
    sqlite3 *db = pWC->pWInfo->pParse->db;
    pWC->a = sqlite3DbMallocRaw(db, sizeof(pWC->a[0])*pWC->nSlot*2 );
    if( pWC->a==0 ){
      if( wtFlags & TERM_DYNAMIC ){
        sqlite3ExprDelete(db, p);
      }
      pWC->a = pOld;
      return 0;
    }
    memcpy(pWC->a, pOld, sizeof(pWC->a[0])*pWC->nTerm);
    if( pOld!=pWC->aStatic ){
      sqlite3DbFree(db, pOld);
    }
    pWC->nSlot = sqlite3DbMallocSize(db, pWC->a)/sizeof(pWC->a[0]);
  }
  pTerm = &pWC->a[idx = pWC->nTerm++];
  pTerm->pExpr = sqlite3ExprSkipCollate(p);
  pTerm->wtFlags = wtFlags;
  pTerm->pWC = pWC;
  pTerm->iParent = -1;
  return idx;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r8d
movq %rsi, %r15
movq %rdi, %r14
movl 0x18(%rdi), %eax
cmpl %eax, 0x14(%rdi)
jl 0x57c4e
movl %r8d, -0x2c(%rbp)
movq (%r14), %rcx
movq 0x20(%r14), %rbx
movq (%rcx), %rcx
movq (%rcx), %r13
imull $0x70, %eax, %esi
movq %r13, %rdi
callq 0x115e9
movq %rax, %r12
movq %rax, 0x20(%r14)
testq %rax, %rax
je 0x57c2c
movslq 0x14(%r14), %rax
imulq $0x38, %rax, %rdx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x82f0
leaq 0x28(%r14), %rax
cmpq %rax, %rbx
je 0x57bd9
movq %r13, %rdi
movq %rbx, %rsi
callq 0x9c3a
movq 0x20(%r14), %rdi
testq %r13, %r13
sete %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x57c09
cmpq %rdi, 0x170(%r13)
ja 0x57c09
cmpq %rdi, 0x178(%r13)
jbe 0x57c09
movzwl 0x150(%r13), %eax
jmp 0x57c0f
callq *0x3c829(%rip)          # 0x94438
movl -0x2c(%rbp), %r8d
cltq
shrq $0x3, %rax
movabsq $0x2492492492492493, %rcx # imm = 0x2492492492492493
mulq %rcx
movl %edx, 0x18(%r14)
jmp 0x57c49
movl -0x2c(%rbp), %r8d
testb $0x1, %r8b
je 0x57c45
movq %r13, %rdi
movq %r15, %rsi
callq 0x34068
movl -0x2c(%rbp), %r8d
movq %rbx, 0x20(%r14)
testq %r12, %r12
je 0x57c9b
movslq 0x14(%r14), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x14(%r14)
imulq $0x38, %rax, %rcx
addq 0x20(%r14), %rcx
testq %r15, %r15
je 0x57c7a
movzbl (%r15), %edx
cmpl $0x5c, %edx
je 0x57c74
cmpl $0x18, %edx
jne 0x57c7a
movq 0x10(%r15), %r15
jmp 0x57c61
movq %r15, (%rcx)
movb %r8b, 0x1a(%rcx)
movq %r14, 0x20(%rcx)
movl $0xffffffff, 0x8(%rcx)  # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x57c8c
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: exprTableUsage
static Bitmask exprTableUsage(WhereMaskSet *pMaskSet, Expr *p){
  Bitmask mask = 0;
  if( p==0 ) return 0;
  if( p->op==TK_COLUMN ){
    mask = getMask(pMaskSet, p->iTable);
    return mask;
  }
  mask = exprTableUsage(pMaskSet, p->pRight);
  mask |= exprTableUsage(pMaskSet, p->pLeft);
  if( ExprHasProperty(p, EP_xIsSelect) ){
    mask |= exprSelectTableUsage(pMaskSet, p->x.pSelect);
  }else{
    mask |= exprListTableUsage(pMaskSet, p->x.pList);
  }
  return mask;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rsi, %rsi
je 0x58f0c
movq %rsi, %r15
movq %rdi, %r14
cmpb $-0x68, (%rsi)
jne 0x58f10
movslq (%r14), %rax
testq %rax, %rax
jle 0x58f0c
movl 0x2c(%r15), %edx
xorl %ebx, %ebx
xorl %ecx, %ecx
cmpl %edx, 0x4(%r14,%rcx,4)
je 0x58f50
incq %rcx
cmpq %rcx, %rax
jne 0x58efb
jmp 0x58f58
xorl %ebx, %ebx
jmp 0x58f58
movq 0x18(%r15), %rsi
movq %r14, %rdi
callq 0x58ed0
movq %rax, %r12
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x58ed0
movq %rax, %rbx
orq %r12, %rbx
testb $0x8, 0x3(%r15)
movq 0x20(%r15), %rsi
movq %r14, %rdi
jne 0x58f46
callq 0x56fda
jmp 0x58f4b
callq 0x58f64
orq %rax, %rbx
jmp 0x58f58
movl $0x1, %ebx
shlq %cl, %rbx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: exprSelectTableUsage
static Bitmask exprSelectTableUsage(WhereMaskSet *pMaskSet, Select *pS){
  Bitmask mask = 0;
  while( pS ){
    SrcList *pSrc = pS->pSrc;
    mask |= exprListTableUsage(pMaskSet, pS->pEList);
    mask |= exprListTableUsage(pMaskSet, pS->pGroupBy);
    mask |= exprListTableUsage(pMaskSet, pS->pOrderBy);
    mask |= exprTableUsage(pMaskSet, pS->pWhere);
    mask |= exprTableUsage(pMaskSet, pS->pHaving);
    if( ALWAYS(pSrc!=0) ){
      int i;
      for(i=0; i<pSrc->nSrc; i++){
        mask |= exprSelectTableUsage(pMaskSet, pSrc->a[i].pSelect);
        mask |= exprTableUsage(pMaskSet, pSrc->a[i].pOn);
      }
    }
    pS = pS->pPrior;
  }
  return mask;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rsi, %rsi
je 0x59060
movq %rsi, %r14
movq %rdi, %r12
xorl %r15d, %r15d
movq %rdi, -0x30(%rbp)
movq (%r14), %rsi
movq 0x28(%r14), %rbx
movq %r12, %rdi
callq 0x56fda
movq %rax, -0x38(%rbp)
movq 0x38(%r14), %rsi
movq %r12, %rdi
callq 0x56fda
movq %rax, -0x48(%rbp)
movq 0x48(%r14), %rsi
movq %r12, %rdi
callq 0x56fda
movq %rax, %r13
movq 0x30(%r14), %rsi
movq %r12, %rdi
callq 0x58ed0
movq %rax, -0x40(%rbp)
movq 0x40(%r14), %rsi
movq %r12, %rdi
callq 0x58ed0
movq %rax, %r12
movq -0x38(%rbp), %rax
orq %r15, %rax
orq -0x48(%rbp), %r13
orq %rax, %r13
orq -0x40(%rbp), %r12
orq %r13, %r12
testq %rbx, %rbx
movq %r14, -0x50(%rbp)
je 0x59043
movzbl (%rbx), %eax
testq %rax, %rax
je 0x59043
imulq $0x68, %rax, %rax
movq %rax, -0x38(%rbp)
xorl %r14d, %r14d
movq -0x30(%rbp), %r13
movq 0x30(%rbx,%r14), %rsi
movq %r13, %rdi
callq 0x58f64
movq %rax, %r15
movq 0x48(%rbx,%r14), %rsi
movq %r13, %rdi
callq 0x58ed0
orq %r12, %r15
orq %rax, %r15
addq $0x68, %r14
movq %r15, %r12
cmpq %r14, -0x38(%rbp)
jne 0x59011
jmp 0x5904a
movq %r12, %r15
movq -0x30(%rbp), %r13
movq -0x50(%rbp), %r14
movq 0x50(%r14), %r14
testq %r14, %r14
movq %r13, %r12
jne 0x58f8b
jmp 0x59063
xorl %r15d, %r15d
movq %r15, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3VdbeGetBoundValue
SQLITE_PRIVATE sqlite3_value *sqlite3VdbeGetBoundValue(Vdbe *v, int iVar, u8 aff){
  assert( iVar>0 );
  if( v ){
    Mem *pMem = &v->aVar[iVar-1];
    if( 0==(pMem->flags & MEM_Null) ){
      sqlite3_value *pRet = sqlite3ValueNew(v->db);
      if( pRet ){
        sqlite3VdbeMemCopy((Mem *)pRet, pMem);
        sqlite3ValueApplyAffinity(pRet, aff, SQLITE_UTF8);
        sqlite3VdbeMemStoreType((Mem *)pRet);
      }
      return pRet;
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x590f8
movq 0x78(%rdi), %r12
movslq %esi, %rax
imulq $0x38, %rax, %r13
movzwl -0x14(%r12,%r13), %r15d
testb $0x1, %r15b
jne 0x590f2
movq (%rdi), %r14
movq %r14, %rdi
movl $0x38, %esi
callq 0x115e9
movq %rax, %rbx
testq %rax, %rax
je 0x590f2
leaq (%r12,%r13), %rsi
addq $-0x38, %rsi
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movups %xmm0, (%rbx)
movups %xmm0, 0x10(%rbx)
movq $0x0, 0x30(%rbx)
movw $0x1, 0x24(%rbx)
movb $0x5, 0x26(%rbx)
movq %r14, (%rbx)
movq %rbx, %rdi
callq 0xf373
movq %rbx, %rdi
callq 0x10fc1
testb $0x1, %r15b
je 0x590fa
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: findTerm
static WhereTerm *findTerm(
  WhereClause *pWC,     /* The WHERE clause to be searched */
  int iCur,             /* Cursor number of LHS */
  int iColumn,          /* Column number of LHS */
  Bitmask notReady,     /* RHS must not overlap with this mask */
  u32 op,               /* Mask of WO_xx values describing operator */
  Index *pIdx           /* Must be compatible with this index, if not NULL */
){
  WhereTerm *pResult = 0;
  WhereTerm *p;
  WhereScan scan;

  p = whereScanInit(&scan, pWC, iCur, iColumn, op, pIdx);
  while( p ){
    if( (p->prereqRight & notReady)==0 ){
      if( p->prereqRight==0 && (p->eOperator&WO_EQ)!=0 ){
        return p;
      }
      if( pResult==0 ) pResult = p;
    }
    p = whereScanNext(&scan);
  }
  return pResult;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rcx, %rbx
movl %edx, %ecx
movl %esi, %edx
movq %rdi, %rsi
leaq -0x98(%rbp), %rdi
callq 0x5917f
xorl %r14d, %r14d
testq %rax, %rax
je 0x59169
leaq -0x98(%rbp), %r15
movq 0x28(%rax), %rcx
testq %rbx, %rcx
jne 0x5915c
testq %rcx, %rcx
jne 0x59155
testb $0x2, 0x18(%rax)
jne 0x5917a
testq %r14, %r14
cmoveq %rax, %r14
movq %r15, %rdi
callq 0x5920e
testq %rax, %rax
jne 0x59141
movq %r14, %rax
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x59169
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: whereScanInit
static WhereTerm *whereScanInit(
  WhereScan *pScan,       /* The WhereScan object being initialized */
  WhereClause *pWC,       /* The WHERE clause to be scanned */
  int iCur,               /* Cursor to scan for */
  int iColumn,            /* Column to scan for */
  u32 opMask,             /* Operator(s) to scan for */
  Index *pIdx             /* Must be compatible with this index */
){
  int j;

  /* memset(pScan, 0, sizeof(*pScan)); */
  pScan->pOrigWC = pWC;
  pScan->pWC = pWC;
  if( pIdx && iColumn>=0 ){
    pScan->idxaff = pIdx->pTable->aCol[iColumn].affinity;
    for(j=0; pIdx->aiColumn[j]!=iColumn; j++){
      if( NEVER(j>=pIdx->nColumn) ) return 0;
    }
    pScan->zCollName = pIdx->azColl[j];
  }else{
    pScan->idxaff = 0;
    pScan->zCollName = 0;
  }
  pScan->opMask = opMask;
  pScan->k = 0;
  pScan->aEquiv[0] = iCur;
  pScan->aEquiv[1] = iColumn;
  pScan->nEquiv = 2;
  pScan->iEquiv = 2;
  return whereScanNext(pScan);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rsi, (%rdi)
movq %rsi, 0x8(%rdi)
testq %r9, %r9
sete %al
testl %ecx, %ecx
sets %sil
orb %al, %sil
jne 0x591c1
movq 0x18(%r9), %rax
movq 0x8(%rax), %rax
movl %ecx, %esi
leaq (%rsi,%rsi,2), %rsi
shlq $0x4, %rsi
movb 0x29(%rax,%rsi), %al
movb %al, 0x18(%rdi)
movq 0x8(%r9), %rax
cmpl %ecx, (%rax)
jne 0x591c9
xorl %r11d, %r11d
jmp 0x591e4
movb $0x0, 0x18(%rdi)
xorl %eax, %eax
jmp 0x591ec
movzwl 0x54(%r9), %esi
xorl %r10d, %r10d
cmpq %r10, %rsi
je 0x5920a
leaq 0x1(%r10), %r11
cmpl %ecx, 0x4(%rax,%r10,4)
movq %r11, %r10
jne 0x591d1
movq 0x40(%r9), %rax
movq (%rax,%r11,8), %rax
movq %rax, 0x10(%rdi)
movl %r8d, 0x1c(%rdi)
movl $0x0, 0x20(%rdi)
movl %edx, 0x24(%rdi)
movl %ecx, 0x28(%rdi)
movw $0x202, 0x19(%rdi)      # imm = 0x202
popq %rbp
jmp 0x5920e
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: whereLoopResize
static int whereLoopResize(sqlite3 *db, WhereLoop *p, int n){
  WhereTerm **paNew;
  if( p->nLSlot>=n ) return SQLITE_OK;
  n = (n+7)&~7;
  paNew = sqlite3DbMallocRaw(db, sizeof(p->aLTerm[0])*n);
  if( paNew==0 ) return SQLITE_NOMEM;
  memcpy(paNew, p->aLTerm, sizeof(p->aLTerm[0])*p->nLSlot);
  if( p->aLTerm!=p->aLTermSpace ) sqlite3DbFree(db, p->aLTerm);
  p->aLTerm = paNew;
  p->nLSlot = n;
  return SQLITE_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movzwl 0x2e(%rsi), %eax
xorl %ebx, %ebx
cmpl %edx, %eax
jge 0x5a142
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %r12
addl $0x7, %r14d
andl $-0x8, %r14d
leal (,%r14,8), %esi
callq 0x115e9
testq %rax, %rax
je 0x5a13d
movq %rax, %r13
movq 0x30(%r15), %rsi
movzwl 0x2e(%r15), %edx
shll $0x3, %edx
movq %rax, %rdi
callq 0x82f0
movq 0x30(%r15), %rsi
leaq 0x40(%r15), %rax
cmpq %rax, %rsi
je 0x5a132
movq %r12, %rdi
callq 0x9c3a
movq %r13, 0x30(%r15)
movw %r14w, 0x2e(%r15)
jmp 0x5a142
movl $0x7, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: whereCost
static WhereCost whereCost(tRowcnt x){
  static WhereCost a[] = { 0, 2, 3, 5, 6, 7, 8, 9 };
  WhereCost y = 40;
  if( x<8 ){
    if( x<2 ) return 0;
    while( x<8 ){  y -= 10; x <<= 1; }
  }else{
    while( x>255 ){ y += 40; x >>= 4; }
    while( x>15 ){  y += 10; x >>= 1; }
  }
  return a[x&7] + y - 10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl $0x8, %edi
jae 0x5a36b
cmpl $0x2, %edi
jae 0x5a38f
xorl %eax, %eax
jmp 0x5a3cc
movw $0x28, %ax
cmpl $0x100, %edi            # imm = 0x100
jb 0x5a3a2
movw $0x28, %ax
movl %edi, %ecx
addl $0x28, %eax
shrl $0x4, %ecx
cmpl $0xfff, %edi            # imm = 0xFFF
movl %ecx, %edi
ja 0x5a37d
jmp 0x5a3a4
movw $0x28, %ax
addl $-0xa, %eax
leal (%rdi,%rdi), %edx
cmpl $0x4, %edi
movl %edx, %edi
jb 0x5a393
jmp 0x5a3bb
movl %edi, %ecx
cmpl $0x10, %ecx
jb 0x5a3b9
movl %ecx, %edx
addl $0xa, %eax
shrl %edx
cmpl $0x1f, %ecx
movl %edx, %ecx
ja 0x5a3ab
jmp 0x5a3bb
movl %ecx, %edx
andl $0x7, %edx
leaq 0x1f03b(%rip), %rcx     # 0x79400
addw (%rcx,%rdx,2), %ax
addl $-0xa, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: whereOrInsert
static int whereOrInsert(
  WhereOrSet *pSet,      /* The WhereOrSet to be updated */
  Bitmask prereq,        /* Prerequisites of the new entry */
  WhereCost rRun,        /* Run-cost of the new entry */
  WhereCost nOut         /* Number of outputs for the new entry */
){
  u16 i;
  WhereOrCost *p;
  for(i=pSet->n, p=pSet->a; i>0; i--, p++){
    if( rRun<=p->rRun && (prereq & p->prereq)==prereq ){
      goto whereOrInsert_done;
    }
    if( p->rRun<=rRun && (p->prereq & prereq)==p->prereq ){
      return 0;
    }
  }
  if( pSet->n<N_OR_COST ){
    p = &pSet->a[pSet->n++];
    p->nOut = nOut;
  }else{
    p = pSet->a;
    for(i=1; i<pSet->n; i++){
      if( p->rRun>pSet->a[i].rRun ) p = pSet->a + i;
    }
    if( p->rRun<=rRun ) return 0;
  }
whereOrInsert_done:
  p->prereq = prereq;
  p->rRun = rRun;
  if( p->nOut>nOut ) p->nOut = nOut;
  return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movzwl (%rdi), %eax
leaq 0x8(%rdi), %r8
testq %rax, %rax
je 0x5a416
movq %rsi, %r10
notq %r10
movq %r8, %r9
movl %eax, %r11d
movzwl 0x8(%r9), %ebx
cmpw %dx, %bx
jb 0x5a402
movq (%r9), %r14
notq %r14
testq %r14, %rsi
je 0x5a45f
cmpw %dx, %bx
ja 0x5a40c
testq %r10, (%r9)
je 0x5a473
addq $0x10, %r9
decw %r11w
jne 0x5a3ed
cmpw $0x3, %ax
jae 0x5a433
leal 0x1(%rax), %r9d
movw %r9w, (%rdi)
shll $0x4, %eax
leaq (%r8,%rax), %r9
movw %cx, 0xa(%r8,%rax)
jmp 0x5a45f
addq $0x18, %rdi
decq %rax
movzwl 0x8(%r8), %r10d
movq %rdi, %r9
cmpw 0x8(%rdi), %r10w
ja 0x5a44c
movq %r8, %r9
addq $0x10, %rdi
movq %r9, %r8
decq %rax
jne 0x5a43a
cmpw %dx, 0x8(%r9)
jbe 0x5a473
movq %rsi, (%r9)
movw %dx, 0x8(%r9)
cmpw %cx, 0xa(%r9)
jbe 0x5a473
movw %cx, 0xa(%r9)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: whereLoopClearUnion
static void whereLoopClearUnion(sqlite3 *db, WhereLoop *p){
  if( p->wsFlags & (WHERE_VIRTUALTABLE|WHERE_AUTO_INDEX) ){
    if( (p->wsFlags & WHERE_VIRTUALTABLE)!=0 && p->u.vtab.needFree ){
      sqlite3_free(p->u.vtab.idxStr);
      p->u.vtab.needFree = 0;
      p->u.vtab.idxStr = 0;
    }else if( (p->wsFlags & WHERE_AUTO_INDEX)!=0 && p->u.btree.pIndex!=0 ){
      sqlite3DbFree(db, p->u.btree.pIndex->zColAff);
      sqlite3DbFree(db, p->u.btree.pIndex);
      p->u.btree.pIndex = 0;
    }
  }
}

// Assembly:
movl 0x28(%rsi), %eax
testl $0x4400, %eax           # imm = 0x4400
je 0x5a4e6
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
btl $0xa, %eax
jae 0x5a4ae
cmpb $0x0, 0x1c(%rbx)
je 0x5a4ae
leaq 0x20(%rbx), %r14
movq 0x20(%rbx), %rdi
callq 0xa2e8
movb $0x0, 0x1c(%rbx)
jmp 0x5a4db
btl $0xe, %eax
jae 0x5a4e2
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x5a4e2
addq $0x20, %rbx
movq 0x20(%rax), %rsi
movq %r14, %rdi
callq 0x9c3a
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x9c3a
movq %rbx, %r14
movq $0x0, (%r14)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: termCanDriveIndex
static int termCanDriveIndex(
  WhereTerm *pTerm,              /* WHERE clause term to check */
  struct SrcList_item *pSrc,     /* Table we are trying to access */
  Bitmask notReady               /* Tables in outer loops of the join */
){
  char aff;
  if( pTerm->leftCursor!=pSrc->iCursor ) return 0;
  if( (pTerm->eOperator & WO_EQ)==0 ) return 0;
  if( (pTerm->prereqRight & notReady)!=0 ) return 0;
  if( pTerm->u.leftColumn<0 ) return 0;
  aff = pSrc->pTab->aCol[pTerm->u.leftColumn].affinity;
  if( !sqlite3IndexAffinityOk(pTerm->pExpr, aff) ) return 0;
  return 1;
}

// Assembly:
movl 0xc(%rdi), %ecx
xorl %eax, %eax
cmpl 0x3c(%rsi), %ecx
jne 0x5a4fd
testb $0x2, 0x18(%rdi)
je 0x5a4fd
testq %rdx, 0x28(%rdi)
je 0x5a4fe
retq
movslq 0x10(%rdi), %rcx
testq %rcx, %rcx
js 0x5a4fd
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x20(%rsi), %rax
movq 0x8(%rax), %rax
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movb 0x29(%rax,%rcx), %bl
movq (%rdi), %rdi
callq 0x4f3ae
cmpb $0x62, %al
je 0x5a53d
movzbl %al, %eax
cmpl $0x61, %eax
jne 0x5a541
cmpb $0x61, %bl
sete %al
jmp 0x5a547
movb $0x1, %al
jmp 0x5a547
cmpb $0x63, %bl
setge %al
movzbl %al, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: whereCostAdd
static WhereCost whereCostAdd(WhereCost a, WhereCost b){
  static const unsigned char x[] = {
     10, 10,                         /* 0,1 */
      9, 9,                          /* 2,3 */
      8, 8,                          /* 4,5 */
      7, 7, 7,                       /* 6,7,8 */
      6, 6, 6,                       /* 9,10,11 */
      5, 5, 5,                       /* 12-14 */
      4, 4, 4, 4,                    /* 15-18 */
      3, 3, 3, 3, 3, 3,              /* 19-24 */
      2, 2, 2, 2, 2, 2, 2,           /* 25-31 */
  };
  if( a>=b ){
    if( a>b+49 ) return a;
    if( a>b+31 ) return a+1;
    return a+x[a-b];
  }else{
    if( b>a+49 ) return b;
    if( b>a+31 ) return b+1;
    return b+x[b-a];
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, %eax
cmpw %si, %ax
jae 0x5a567
leal 0x31(%rax), %ecx
cmpl %esi, %ecx
jae 0x5a579
movl %esi, %eax
jmp 0x5a5af
leal 0x31(%rsi), %ecx
cmpl %eax, %ecx
jb 0x5a5af
leal 0x1f(%rsi), %ecx
cmpl %eax, %ecx
jae 0x5a585
incl %eax
jmp 0x5a5af
leal 0x1f(%rax), %ecx
cmpl %esi, %ecx
jae 0x5a59b
leal 0x1(%rsi), %eax
jmp 0x5a5af
movl %eax, %ecx
subl %esi, %ecx
movslq %ecx, %rcx
leaq 0x22efd(%rip), %rdx     # 0x7d490
movzbl (%rcx,%rdx), %ecx
addl %ecx, %eax
jmp 0x5a5af
movl %esi, %ecx
subl %eax, %ecx
movslq %ecx, %rax
leaq 0x22ee7(%rip), %rcx     # 0x7d490
movzbl (%rax,%rcx), %eax
addl %esi, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprImpliesExpr
SQLITE_PRIVATE int sqlite3ExprImpliesExpr(Expr *pE1, Expr *pE2, int iTab){
  if( sqlite3ExprCompare(pE1, pE2, iTab)==0 ){
    return 1;
  }
  if( pE2->op==TK_OR
   && (sqlite3ExprImpliesExpr(pE1, pE2->pLeft, iTab)
             || sqlite3ExprImpliesExpr(pE1, pE2->pRight, iTab) )
  ){
    return 1;
  }
  if( pE2->op==TK_NOTNULL
   && sqlite3ExprCompare(pE1->pLeft, pE2->pLeft, iTab)==0
   && (pE1->op!=TK_ISNULL && pE1->op!=TK_IS)
  ){
    return 1;
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movq %rsi, %r12
movq %rdi, %rbx
callq 0x4b67e
movl $0x1, %r15d
testl %eax, %eax
je 0x5aae9
movzbl (%r12), %r13d
cmpl $0x4a, %r13d
je 0x5aab7
cmpl $0x44, %r13d
jne 0x5aae6
movq 0x10(%r12), %rsi
movq %rbx, %rdi
movl %r14d, %edx
callq 0x5aa52
testl %eax, %eax
jne 0x5aae9
movq 0x18(%r12), %rsi
movq %rbx, %rdi
movl %r14d, %edx
callq 0x5aa52
testl %eax, %eax
jne 0x5aae9
cmpb $0x4a, %r13b
jne 0x5aae6
movq 0x10(%rbx), %rdi
movq 0x10(%r12), %rsi
movl %r14d, %edx
callq 0x4b67e
movl $0x0, %r15d
testl %eax, %eax
jne 0x5aae9
movb (%rbx), %al
cmpb $0x49, %al
setne %cl
cmpb $0x46, %al
setne %al
andb %cl, %al
movzbl %al, %r15d
jmp 0x5aae9
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: explainAppendTerm
static void explainAppendTerm(
  StrAccum *pStr,             /* The text expression being built */
  int iTerm,                  /* Index of this term.  First is zero */
  const char *zColumn,        /* Name of the column */
  const char *zOp             /* Name of the operator */
){
  if( iTerm ) sqlite3StrAccumAppend(pStr, " AND ", 5);
  sqlite3StrAccumAppend(pStr, zColumn, -1);
  sqlite3StrAccumAppend(pStr, zOp, 1);
  sqlite3StrAccumAppend(pStr, "?", 1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rdi, %rbx
testl %esi, %esi
je 0x5b212
leaq 0x20a19(%rip), %rsi     # 0x7bc1e
movq %rbx, %rdi
movl $0x5, %edx
callq 0x172ee
movq %rbx, %rdi
movq %r15, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x172ee
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x172ee
leaq 0x1e6dd(%rip), %rsi     # 0x79916
movq %rbx, %rdi
movl $0x1, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x172ee
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: disableTerm
static void disableTerm(WhereLevel *pLevel, WhereTerm *pTerm){
  if( pTerm
      && (pTerm->wtFlags & TERM_CODED)==0
      && (pLevel->iLeftJoin==0 || ExprHasProperty(pTerm->pExpr, EP_FromJoin))
  ){
    pTerm->wtFlags |= TERM_CODED;
    if( pTerm->iParent>=0 ){
      WhereTerm *pOther = &pTerm->pWC->a[pTerm->iParent];
      if( (--pOther->nChild)==0 ){
        disableTerm(pLevel, pOther);
      }
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rsi, %rsi
je 0x5b461
movb 0x1a(%rsi), %al
testb $0x4, %al
jne 0x5b461
cmpl $0x0, (%rdi)
je 0x5b43d
movq (%rsi), %rcx
testb $0x1, 0x2(%rcx)
je 0x5b461
orb $0x4, %al
movb %al, 0x1a(%rsi)
movslq 0x8(%rsi), %rax
testq %rax, %rax
js 0x5b461
movq 0x20(%rsi), %rcx
movq 0x20(%rcx), %rcx
imulq $0x38, %rax, %rax
leaq (%rcx,%rax), %rsi
decb 0x1b(%rcx,%rax)
je 0x5b423
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprNeedsNoAffinityChange
SQLITE_PRIVATE int sqlite3ExprNeedsNoAffinityChange(const Expr *p, char aff){
  u8 op;
  if( aff==SQLITE_AFF_NONE ) return 1;
  while( p->op==TK_UPLUS || p->op==TK_UMINUS ){ p = p->pLeft; }
  op = p->op;
  if( op==TK_REGISTER ) op = p->op2;
  switch( op ){
    case TK_INTEGER: {
      return aff==SQLITE_AFF_INTEGER || aff==SQLITE_AFF_NUMERIC;
    }
    case TK_FLOAT: {
      return aff==SQLITE_AFF_REAL || aff==SQLITE_AFF_NUMERIC;
    }
    case TK_STRING: {
      return aff==SQLITE_AFF_TEXT;
    }
    case TK_BLOB: {
      return 1;
    }
    case TK_COLUMN: {
      assert( p->iTable>=0 );  /* p cannot be part of a CHECK constraint */
      return p->iColumn<0
          && (aff==SQLITE_AFF_INTEGER || aff==SQLITE_AFF_NUMERIC);
    }
    default: {
      return 0;
    }
  }
}

// Assembly:
movb $0x1, %al
cmpb $0x62, %sil
je 0x5b73d
pushq %rbp
movq %rsp, %rbp
movb (%rdi), %cl
movzbl %cl, %edx
leal -0x9c(%rdx), %r8d
cmpl $0x2, %r8d
jae 0x5b6c8
movq 0x10(%rdi), %rdi
jmp 0x5b6b0
cmpl $0x84, %edx
jne 0x5b6d3
movb 0x37(%rdi), %cl
movzbl %cl, %ecx
cmpl $0x81, %ecx
jle 0x5b70d
cmpl $0x82, %ecx
je 0x5b727
cmpl $0x83, %ecx
je 0x5b73c
cmpl $0x98, %ecx
jne 0x5b73a
cmpw $0x0, 0x30(%rdi)
sets %cl
addb $-0x63, %sil
cmpb $0x2, %sil
setb %al
andb %cl, %al
jmp 0x5b73c
cmpl $0x5e, %ecx
je 0x5b731
cmpl $0x81, %ecx
jne 0x5b73a
addb $-0x63, %sil
cmpb $0x2, %sil
setb %al
jmp 0x5b73c
addb $-0x63, %sil
testb $-0x3, %sil
jmp 0x5b735
cmpb $0x61, %sil
sete %al
jmp 0x5b73c
xorl %eax, %eax
popq %rbp
movzbl %al, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: codeApplyAffinity
static void codeApplyAffinity(Parse *pParse, int base, int n, char *zAff){
  Vdbe *v = pParse->pVdbe;
  if( zAff==0 ){
    assert( pParse->db->mallocFailed );
    return;
  }
  assert( v!=0 );

  /* Adjust base and n to skip over SQLITE_AFF_NONE entries at the beginning
  ** and end of the affinity string.
  */
  while( n>0 && zAff[0]==SQLITE_AFF_NONE ){
    n--;
    base++;
    zAff++;
  }
  while( n>1 && zAff[n-1]==SQLITE_AFF_NONE ){
    n--;
  }

  /* Code the OP_Affinity opcode if there is anything left to do. */
  if( n>0 ){
    sqlite3VdbeAddOp2(v, OP_Affinity, base, n);
    sqlite3VdbeChangeP4(v, -1, zAff, n);
    sqlite3ExprCacheAffinityChange(pParse, base, n);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rcx, %rcx
je 0x5b807
movl %edx, %r14d
movq %rdi, %rbx
testl %edx, %edx
jle 0x5b788
movl %r14d, %r15d
addq %rcx, %r15
leal (%r14,%rsi), %r12d
cmpb $0x62, (%rcx)
jne 0x5b788
leal -0x1(%r14), %eax
incl %esi
incq %rcx
cmpl $0x1, %r14d
movl %eax, %r14d
jg 0x5b76c
xorl %r14d, %r14d
jmp 0x5b78e
movq %rcx, %r15
movl %esi, %r12d
movq 0x10(%rbx), %r13
movl %r14d, %ecx
testl %r14d, %r14d
movl $0x1, %eax
cmovlel %r14d, %eax
incl %r14d
cmpl $0x2, %ecx
jl 0x5b7ba
decl %r14d
cmpb $0x62, -0x1(%r15,%rcx)
leaq -0x1(%rcx), %rcx
je 0x5b7a4
jmp 0x5b7bd
movl %eax, %r14d
testl %r14d, %r14d
jle 0x5b807
movq %r13, %rdi
movl $0x2a, %esi
movl %r12d, %edx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x45b9e
movq %r13, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r15, %rdx
movl %r14d, %ecx
callq 0x11975
movq %rbx, %rdi
movl %r12d, %esi
movl %r14d, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4e50d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: whereClauseClear
static void whereClauseClear(WhereClause *pWC){
  int i;
  WhereTerm *a;
  sqlite3 *db = pWC->pWInfo->pParse->db;
  for(i=pWC->nTerm-1, a=pWC->a; i>=0; i--, a++){
    if( a->wtFlags & TERM_DYNAMIC ){
      sqlite3ExprDelete(db, a->pExpr);
    }
    if( a->wtFlags & TERM_ORINFO ){
      whereOrInfoDelete(db, a->u.pOrInfo);
    }else if( a->wtFlags & TERM_ANDINFO ){
      whereAndInfoDelete(db, a->u.pAndInfo);
    }
  }
  if( pWC->a!=pWC->aStatic ){
    sqlite3DbFree(db, pWC->a);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq (%rdi), %rax
movq (%rax), %rax
movq (%rax), %rbx
movl 0x14(%rdi), %r12d
testl %r12d, %r12d
jle 0x5b882
movq 0x20(%r14), %r13
incl %r12d
addq $0x1a, %r13
testb $0x1, (%r13)
je 0x5b857
movq -0x1a(%r13), %rsi
movq %rbx, %rdi
callq 0x34068
testb $0x30, (%r13)
je 0x5b875
movq -0xa(%r13), %r15
movq %r15, %rdi
callq 0x5b816
movq %rbx, %rdi
movq %r15, %rsi
callq 0x9c3a
decl %r12d
addq $0x38, %r13
cmpl $0x1, %r12d
jg 0x5b844
movq 0x20(%r14), %rsi
addq $0x28, %r14
cmpq %r14, %rsi
je 0x5b8a5
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9c3a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: codeDistinct
static void codeDistinct(
  Parse *pParse,     /* Parsing and code generating context */
  int iTab,          /* A sorting index used to test for distinctness */
  int addrRepeat,    /* Jump to here if not distinct */
  int N,             /* Number of elements */
  int iMem           /* First element */
){
  Vdbe *v;
  int r1;

  v = pParse->pVdbe;
  r1 = sqlite3GetTempReg(pParse);
  sqlite3VdbeAddOp4Int(v, OP_Found, iTab, addrRepeat, iMem, N);
  sqlite3VdbeAddOp3(v, OP_MakeRecord, iMem, N, r1);
  sqlite3VdbeAddOp2(v, OP_IdxInsert, iTab, r1);
  sqlite3ReleaseTempReg(pParse, r1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %r13d
movl %ecx, %r15d
movl %edx, %ecx
movl %esi, %edx
movq %rdi, %rbx
movq 0x10(%rdi), %r12
movb 0x1f(%rdi), %al
testb %al, %al
je 0x5b8e9
decb %al
movb %al, 0x1f(%rbx)
movzbl %al, %eax
movl 0x28(%rbx,%rax,4), %r14d
jmp 0x5b8f4
movl 0x58(%rbx), %r14d
incl %r14d
movl %r14d, 0x58(%rbx)
movq %r12, %rdi
movl $0x3d, %esi
movl %edx, -0x2c(%rbp)
movl %r13d, %r8d
callq 0x45b9e
movslq %r15d, %r15
movq %r12, %rdi
movl %eax, %esi
movq %r15, %rdx
movl $0xfffffff2, %ecx       # imm = 0xFFFFFFF2
callq 0x11975
movq %r12, %rdi
movl $0x2b, %esi
movl %r13d, %edx
movl %r15d, %ecx
movl %r14d, %r8d
callq 0x45b9e
movq %r12, %rdi
movl $0x67, %esi
movl -0x2c(%rbp), %edx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x45b9e
testl %r14d, %r14d
je 0x5b981
movzbl 0x1f(%rbx), %eax
cmpq $0x7, %rax
ja 0x5b981
xorl %ecx, %ecx
cmpl %r14d, 0x84(%rbx,%rcx)
je 0x5b97c
addq $0x18, %rcx
cmpl $0xf0, %ecx
jne 0x5b959
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rbx)
movl %r14d, 0x28(%rbx,%rax,4)
jmp 0x5b981
movb $0x1, 0x7c(%rbx,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ArrayAllocate
SQLITE_PRIVATE void *sqlite3ArrayAllocate(
  sqlite3 *db,      /* Connection to notify of malloc failures */
  void *pArray,     /* Array of objects.  Might be reallocated */
  int szEntry,      /* Size of each object in the array */
  int *pnEntry,     /* Number of objects currently in use */
  int *pIdx         /* Write the index of a new slot here */
){
  char *z;
  int n = *pnEntry;
  if( (n & (n-1))==0 ){
    int sz = (n==0) ? 1 : 2*n;
    void *pNew = sqlite3DbRealloc(db, pArray, sz*szEntry);
    if( pNew==0 ){
      *pIdx = -1;
      return pArray;
    }
    pArray = pNew;
  }
  z = (char*)pArray;
  memset(&z[n * szEntry], 0, szEntry);
  *pIdx = n;
  ++*pnEntry;
  return pArray;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, -0x30(%rbp)
movq %rcx, %rbx
movl %edx, %r15d
movq %rsi, %r12
movl (%rcx), %r13d
leal -0x1(%r13), %eax
testl %eax, %r13d
jne 0x5bf8d
leal (,%r13,2), %eax
testl %r13d, %r13d
movl $0x1, %edx
cmovnel %eax, %edx
imull %r15d, %edx
movq %r12, %rsi
callq 0x174d4
movq %rax, %r14
testq %rax, %rax
jne 0x5bf86
movq -0x30(%rbp), %rcx
movl $0xffffffff, (%rcx)     # imm = 0xFFFFFFFF
movq %r12, %r14
testq %rax, %rax
jne 0x5bf90
jmp 0x5bfb3
movq %r12, %r14
movl %r13d, %eax
imull %r15d, %eax
movslq %eax, %rdi
addq %r14, %rdi
movl %r15d, %edx
xorl %esi, %esi
callq 0x8200
movq -0x30(%rbp), %rax
movl %r13d, (%rax)
incl (%rbx)
movq %r14, %r12
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3TriggersExist
SQLITE_PRIVATE Trigger *sqlite3TriggersExist(
  Parse *pParse,          /* Parse context */
  Table *pTab,            /* The table the contains the triggers */
  int op,                 /* one of TK_DELETE, TK_INSERT, TK_UPDATE */
  ExprList *pChanges,     /* Columns that change in an UPDATE statement */
  int *pMask              /* OUT: Mask of TRIGGER_BEFORE|TRIGGER_AFTER */
){
  int mask = 0;
  Trigger *pList = 0;
  Trigger *p;

  if( (pParse->db->flags & SQLITE_EnableTrigger)!=0 ){
    pList = sqlite3TriggerList(pParse, pTab);
  }
  assert( pList==0 || IsVirtual(pTab)==0 );
  for(p=pList; p; p=p->pNext){
    if( p->op==op && checkColumnOverlap(p->pColumns, pChanges) ){
      mask |= p->tr_tm;
    }
  }
  if( pMask ){
    *pMask = mask;
  }
  return (mask ? pList : 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %r15d
movq (%rdi), %rax
xorl %r13d, %r13d
testb $-0x80, 0x2e(%rax)
movq %r8, -0x30(%rbp)
jne 0x5bfed
xorl %ebx, %ebx
jmp 0x5bff5
callq 0x4fd20
movq %rax, %rbx
testq %rbx, %rbx
je 0x5c02f
xorl %r13d, %r13d
movq %rbx, %r12
movzbl 0x10(%r12), %eax
cmpl %r15d, %eax
jne 0x5c025
movq 0x20(%r12), %rdi
movq %r14, %rsi
callq 0x5ca34
testl %eax, %eax
je 0x5c025
movzbl 0x11(%r12), %eax
orl %eax, %r13d
movq 0x40(%r12), %r12
testq %r12, %r12
jne 0x5c000
movq -0x30(%rbp), %rax
testq %rax, %rax
je 0x5c03b
movl %r13d, (%rax)
xorl %eax, %eax
testl %r13d, %r13d
cmoveq %rax, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3IsReadOnly
SQLITE_PRIVATE int sqlite3IsReadOnly(Parse *pParse, Table *pTab, int viewOk){
  /* A table is not writable under the following circumstances:
  **
  **   1) It is a virtual table and no implementation of the xUpdate method
  **      has been provided, or
  **   2) It is a system table (i.e. sqlite_master), this call is not
  **      part of a nested parse and writable_schema pragma has not 
  **      been specified.
  **
  ** In either case leave an error message in pParse and return non-zero.
  */
  if( ( IsVirtual(pTab) 
     && sqlite3GetVTable(pParse->db, pTab)->pMod->pModule->xUpdate==0 )
   || ( (pTab->tabFlags & TF_Readonly)!=0
     && (pParse->db->flags & SQLITE_WriteSchema)==0
     && pParse->nested==0 )
  ){
    sqlite3ErrorMsg(pParse, "table %s may not be modified", pTab->zName);
    return 1;
  }

#ifndef SQLITE_OMIT_VIEW
  if( !viewOk && pTab->pSelect ){
    sqlite3ErrorMsg(pParse,"cannot modify %s because it is a view",pTab->zName);
    return 1;
  }
#endif
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb 0x46(%rsi), %al
testb $0x10, %al
je 0x5c089
movq 0x58(%rsi), %rcx
testq %rcx, %rcx
je 0x5c07b
movq (%rdi), %r8
cmpq %r8, (%rcx)
je 0x5c07b
movq 0x28(%rcx), %rcx
testq %rcx, %rcx
jne 0x5c06d
movq 0x8(%rcx), %rcx
movq (%rcx), %rcx
cmpq $0x0, 0x68(%rcx)
je 0x5c0b2
testb $0x1, %al
je 0x5c09c
movq (%rdi), %rax
testb $0x8, 0x2d(%rax)
jne 0x5c09c
cmpb $0x0, 0x1e(%rdi)
je 0x5c0b2
xorl %eax, %eax
testl %edx, %edx
jne 0x5c0cb
cmpq $0x0, 0x18(%rsi)
je 0x5c0cb
leaq 0x1fca6(%rip), %rax     # 0x7bd56
jmp 0x5c0b9
leaq 0x1fc80(%rip), %rax     # 0x7bd39
movq (%rsi), %rdx
movq %rax, %rsi
xorl %eax, %eax
callq 0x11724
movl $0x1, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3MaterializeView
SQLITE_PRIVATE void sqlite3MaterializeView(
  Parse *pParse,       /* Parsing context */
  Table *pView,        /* View definition */
  Expr *pWhere,        /* Optional WHERE clause to be added */
  int iCur             /* Cursor number for ephemerial table */
){
  SelectDest dest;
  Select *pSel;
  SrcList *pFrom;
  sqlite3 *db = pParse->db;
  int iDb = sqlite3SchemaToIndex(db, pView->pSchema);

  pWhere = sqlite3ExprDup(db, pWhere, 0);
  pFrom = sqlite3SrcListAppend(db, 0, 0, 0);

  if( pFrom ){
    assert( pFrom->nSrc==1 );
    pFrom->a[0].zName = sqlite3DbStrDup(db, pView->zName);
    pFrom->a[0].zDatabase = sqlite3DbStrDup(db, db->aDb[iDb].zName);
    assert( pFrom->a[0].pOn==0 );
    assert( pFrom->a[0].pUsing==0 );
  }

  pSel = sqlite3SelectNew(pParse, 0, pFrom, pWhere, 0, 0, 0, 0, 0, 0);
  if( pSel ) pSel->selFlags |= SF_Materialize;

  sqlite3SelectDestInit(&dest, SRT_EphemTab, iCur);
  sqlite3Select(pParse, pSel, &dest);
  sqlite3SelectDelete(db, pSel);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
movq (%rdi), %rbx
movq 0x68(%rsi), %rax
testq %rax, %rax
movl %ecx, -0x2c(%rbp)
movq %rsi, -0x38(%rbp)
je 0x5c11c
movl 0x28(%rbx), %edi
testl %edi, %edi
jle 0x5c124
movq 0x20(%rbx), %rsi
addq $0x18, %rsi
xorl %r12d, %r12d
cmpq %rax, (%rsi)
je 0x5c127
incq %r12
addq $0x20, %rsi
cmpq %r12, %rdi
jne 0x5c106
movl %edi, %r12d
jmp 0x5c127
movl $0xfff0bdc0, %r12d      # imm = 0xFFF0BDC0
jmp 0x5c127
xorl %r12d, %r12d
movq %rbx, %rdi
movq %rdx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x48163
movq %rax, %r13
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x3d75b
movq %rax, %r15
testq %rax, %rax
je 0x5c17d
movq -0x38(%rbp), %rax
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x1010d
movq %rax, 0x18(%r15)
movq 0x20(%rbx), %rax
movslq %r12d, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
movq %rbx, %rdi
callq 0x1010d
movq %rax, 0x10(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r13, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x3d28c
movq %rax, %r15
testq %rax, %rax
je 0x5c1b8
orb $0x1, 0xb(%r15)
leaq -0x48(%rbp), %rdx
movw $0x9, (%rdx)
movl -0x2c(%rbp), %eax
movl %eax, 0x4(%rdx)
movq $0x0, 0x8(%rdx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3ba12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x340e4
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3OpenTableAndIndices
SQLITE_PRIVATE int sqlite3OpenTableAndIndices(
  Parse *pParse,   /* Parsing context */
  Table *pTab,     /* Table to be opened */
  int baseCur,     /* Cursor number assigned to the table */
  int op           /* OP_OpenRead or OP_OpenWrite */
){
  int i;
  int iDb;
  Index *pIdx;
  Vdbe *v;

  if( IsVirtual(pTab) ) return 0;
  iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema);
  v = sqlite3GetVdbe(pParse);
  assert( v!=0 );
  sqlite3OpenTable(pParse, baseCur, iDb, pTab, op);
  for(i=1, pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext, i++){
    KeyInfo *pKey = sqlite3IndexKeyinfo(pParse, pIdx);
    assert( pIdx->pSchema==pTab->pSchema );
    sqlite3VdbeAddOp4(v, op, i+baseCur, pIdx->tnum, iDb,
                      (char*)pKey, P4_KEYINFO_HANDOFF);
    VdbeComment((v, "%s", pIdx->zName));
  }
  if( pParse->nTab<baseCur+i ){
    pParse->nTab = baseCur+i;
  }
  return i-1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
xorl %r13d, %r13d
testb $0x10, 0x46(%rsi)
jne 0x5c4c7
movl %edx, %r14d
movq %rdi, %rbx
movl %ecx, -0x2c(%rbp)
movq 0x68(%rsi), %rax
testq %rax, %rax
je 0x5c41a
movq (%rbx), %rdx
movl 0x28(%rdx), %ecx
testl %ecx, %ecx
jle 0x5c425
movq 0x20(%rdx), %rdx
addq $0x18, %rdx
xorl %r12d, %r12d
cmpq %rax, (%rdx)
je 0x5c42d
incq %r12
addq $0x20, %rdx
cmpq %r12, %rcx
jne 0x5c401
movq %rsi, %r13
movl %ecx, %r12d
jmp 0x5c430
movq %rsi, %r13
movl $0xfff0bdc0, %r12d      # imm = 0xFFF0BDC0
jmp 0x5c430
movq %rsi, %r13
xorl %r12d, %r12d
jmp 0x5c430
movq %rsi, %r13
movq %rbx, %rdi
callq 0x45b57
movq %rax, %r15
movq %rbx, -0x40(%rbp)
movq %rbx, %rdi
movq %r14, %rbx
movl %r14d, %esi
movl %r12d, %edx
movq %r13, %rcx
movl -0x2c(%rbp), %r8d
callq 0x45c23
movq 0x10(%r13), %r14
testq %r14, %r14
movq %rbx, -0x38(%rbp)
movl $0x1, %r13d
je 0x5c4b1
movq -0x40(%rbp), %rdi
movq %r14, %rsi
callq 0x4c1d4
movq %rax, %rbx
movq -0x38(%rbp), %rax
leal (%rax,%r13), %edx
movl 0x50(%r14), %ecx
movq %r15, %rdi
movl -0x2c(%rbp), %esi
movl %r12d, %r8d
callq 0x45b9e
movq %r15, %rdi
movl %eax, %esi
movq %rbx, %rdx
movl $0xfffffff0, %ecx       # imm = 0xFFFFFFF0
callq 0x11975
incl %r13d
movq 0x28(%r14), %r14
testq %r14, %r14
jne 0x5c46a
movq -0x38(%rbp), %rax
addl %r13d, %eax
movq -0x40(%rbp), %rcx
cmpl %eax, 0x54(%rcx)
jge 0x5c4c4
movl %eax, 0x54(%rcx)
decl %r13d
movl %r13d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3VtabMakeWritable
SQLITE_PRIVATE void sqlite3VtabMakeWritable(Parse *pParse, Table *pTab){
  Parse *pToplevel = sqlite3ParseToplevel(pParse);
  int i, n;
  Table **apVtabLock;

  assert( IsVirtual(pTab) );
  for(i=0; i<pToplevel->nVtabLock; i++){
    if( pTab==pToplevel->apVtabLock[i] ) return;
  }
  n = (pToplevel->nVtabLock+1)*sizeof(pToplevel->apVtabLock[0]);
  apVtabLock = sqlite3_realloc(pToplevel->apVtabLock, n);
  if( apVtabLock ){
    pToplevel->apVtabLock = apVtabLock;
    pToplevel->apVtabLock[pToplevel->nVtabLock++] = pTab;
  }else{
    pToplevel->db->mallocFailed = 1;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq 0x1d8(%rdi), %r15
testq %r15, %r15
cmoveq %rdi, %r15
movslq 0x204(%r15), %r12
testq %r12, %r12
jle 0x5c518
movq 0x280(%r15), %rax
xorl %ecx, %ecx
cmpq %rbx, (%rax,%rcx,8)
je 0x5c566
incq %rcx
cmpq %rcx, %r12
jne 0x5c50a
movq 0x280(%r15), %r14
callq 0x9d1f
testl %eax, %eax
je 0x5c52c
xorl %eax, %eax
jmp 0x5c53c
leal 0x8(,%r12,8), %esi
movq %r14, %rdi
callq 0xa37d
testq %rax, %rax
je 0x5c55f
movq %rax, 0x280(%r15)
movslq 0x204(%r15), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x204(%r15)
movq %rbx, (%rax,%rcx,8)
jmp 0x5c566
movq (%r15), %rax
movb $0x1, 0x50(%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: checkColumnOverlap
static int checkColumnOverlap(IdList *pIdList, ExprList *pEList){
  int e;
  if( pIdList==0 || NEVER(pEList==0) ) return 1;
  for(e=0; e<pEList->nExpr; e++){
    if( sqlite3IdListIndex(pIdList, pEList->a[e].zName)>=0 ) return 1;
  }
  return 0; 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
movl $0x1, %ebx
jne 0x5ca89
movslq (%rsi), %r15
testq %r15, %r15
jle 0x5ca87
movq %rdi, %r14
movq 0x8(%rsi), %r12
shlq $0x5, %r15
xorl %r13d, %r13d
movq 0x8(%r12,%r13), %rsi
movq %r14, %rdi
callq 0x4a5f0
testl %eax, %eax
jns 0x5ca89
addq $0x20, %r13
cmpq %r13, %r15
jne 0x5ca6d
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3TriggerColmask
SQLITE_PRIVATE u32 sqlite3TriggerColmask(
  Parse *pParse,       /* Parse context */
  Trigger *pTrigger,   /* List of triggers on table pTab */
  ExprList *pChanges,  /* Changes list for any UPDATE OF triggers */
  int isNew,           /* 1 for new.* ref mask, 0 for old.* ref mask */
  int tr_tm,           /* Mask of TRIGGER_BEFORE|TRIGGER_AFTER */
  Table *pTab,         /* The table to code triggers from */
  int orconf           /* Default ON CONFLICT policy for trigger steps */
){
  const int op = pChanges ? TK_UPDATE : TK_DELETE;
  u32 mask = 0;
  Trigger *p;

  assert( isNew==1 || isNew==0 );
  for(p=pTrigger; p; p=p->pNext){
    if( p->op==op && (tr_tm&p->tr_tm)
     && checkColumnOverlap(p->pColumns,pChanges)
    ){
      TriggerPrg *pPrg;
      pPrg = getRowTrigger(pParse, p, pTab, orconf);
      if( pPrg ){
        mask |= pPrg->aColmask[isNew];
      }
    }
  }

  return mask;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, -0x40(%rbp)
movq %rdi, -0x38(%rbp)
cmpq $0x1, %rdx
movl $0x6b, %r13d
sbbl $0x0, %r13d
testq %rsi, %rsi
je 0x5cb2a
movl %r8d, %r14d
movq %rdx, %r15
movq %rsi, %r12
movl %ecx, %eax
movq %rax, -0x30(%rbp)
xorl %ebx, %ebx
movzbl 0x10(%r12), %eax
cmpl %eax, %r13d
jne 0x5cb1e
movzbl 0x11(%r12), %eax
testl %r14d, %eax
je 0x5cb1e
movq 0x20(%r12), %rdi
movq %r15, %rsi
callq 0x5ca34
testl %eax, %eax
je 0x5cb1e
movq -0x38(%rbp), %rdi
movq %r12, %rsi
movq -0x40(%rbp), %rdx
movl 0x10(%rbp), %ecx
callq 0x5d94f
testq %rax, %rax
je 0x5cb1e
movq -0x30(%rbp), %rcx
orl 0x1c(%rax,%rcx,4), %ebx
movq 0x40(%r12), %r12
testq %r12, %r12
jne 0x5cad7
jmp 0x5cb2c
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq