LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3ExprAffinity
SQLITE_PRIVATE char sqlite3ExprAffinity(Expr *pExpr){
  int op;
  pExpr = sqlite3ExprSkipCollate(pExpr);
  if( pExpr->flags & EP_Generic ) return 0;
  op = pExpr->op;
  if( op==TK_SELECT ){
    assert( pExpr->flags&EP_xIsSelect );
    return sqlite3ExprAffinity(pExpr->x.pSelect->pEList->a[0].pExpr);
  }
  if( op==TK_REGISTER ) op = pExpr->op2;
#ifndef SQLITE_OMIT_CAST
  if( op==TK_CAST ){
    assert( !ExprHasProperty(pExpr, EP_IntValue) );
    return sqlite3AffinityType(pExpr->u.zToken, 0);
  }
#endif
  if( (op==TK_AGG_COLUMN || op==TK_COLUMN) && pExpr->pTab ){
    return sqlite3TableColumnAffinity(pExpr->pTab, pExpr->iColumn);
  }
  if( op==TK_SELECT_COLUMN ){
    assert( pExpr->pLeft->flags&EP_xIsSelect );
    return sqlite3ExprAffinity(
        pExpr->pLeft->x.pSelect->pEList->a[pExpr->iColumn].pExpr
    );
  }
  return pExpr->affinity;
}

// Assembly:
pushq %rax
callq 0x44b988
testb $0x2, 0x5(%rax)
jne 0x44ba72
movzbl (%rax), %ecx
cmpl $0xa4, %ecx
je 0x44ba00
cmpl $0x7f, %ecx
jne 0x44ba03
movq 0x20(%rax), %rax
movq (%rax), %rax
addq $0x8, %rax
jmp 0x44ba23
movb 0x36(%rax), %cl
cmpb $-0x5a, %cl
jne 0x44ba28
movq 0x10(%rax), %rcx
movq 0x20(%rcx), %rcx
movq (%rcx), %rcx
movswq 0x30(%rax), %rax
shlq $0x5, %rax
addq %rcx, %rax
addq $0x8, %rax
movq (%rax), %rdi
jmp 0x44b9d4
movzbl %cl, %ecx
cmpl $0xa0, %ecx
je 0x44ba4c
cmpl $0x9e, %ecx
je 0x44ba4c
cmpl $0x24, %ecx
jne 0x44ba6d
movq 0x8(%rax), %rdi
xorl %esi, %esi
popq %rax
jmp 0x449d32
movq 0x40(%rax), %rcx
testq %rcx, %rcx
je 0x44ba6d
movswq 0x30(%rax), %rax
testq %rax, %rax
js 0x44ba76
movq 0x8(%rcx), %rcx
shlq $0x5, %rax
movb 0x19(%rcx,%rax), %al
jmp 0x44ba78
movb 0x1(%rax), %al
jmp 0x44ba78
xorl %eax, %eax
jmp 0x44ba78
movb $0x44, %al
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: walkExpr
static SQLITE_NOINLINE int walkExpr(Walker *pWalker, Expr *pExpr){
  int rc;
  testcase( ExprHasProperty(pExpr, EP_TokenOnly) );
  testcase( ExprHasProperty(pExpr, EP_Reduced) );
  while(1){
    rc = pWalker->xExprCallback(pWalker, pExpr);
    if( rc ) return rc & WRC_Abort;
    if( !ExprHasProperty(pExpr,(EP_TokenOnly|EP_Leaf)) ){
      if( pExpr->pLeft && walkExpr(pWalker, pExpr->pLeft) ) return WRC_Abort;
       assert( pExpr->x.pList==0 || pExpr->pRight==0 );
      if( pExpr->pRight ){
        pExpr = pExpr->pRight;
        continue;
      }else if( ExprHasProperty(pExpr, EP_xIsSelect) ){
        if( sqlite3WalkSelect(pWalker, pExpr->x.pSelect) ) return WRC_Abort;
      }else if( pExpr->x.pList ){
        if( sqlite3WalkExprList(pWalker, pExpr->x.pList) ) return WRC_Abort;
      }
#ifndef SQLITE_OMIT_WINDOWFUNC
      if( !ExprHasProperty(pExpr, EP_Reduced) && pExpr->pWin ){
        Window *pWin = pExpr->pWin;
        if( sqlite3WalkExprList(pWalker, pWin->pPartition) ) return WRC_Abort;
        if( sqlite3WalkExprList(pWalker, pWin->pOrderBy) ) return WRC_Abort;
        if( sqlite3WalkExpr(pWalker, pWin->pFilter) ) return WRC_Abort;
      }
#endif
    }
    break;
  }
  return WRC_Continue;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
pushq $0x2
popq %rbx
movq %rsi, %r15
movq %r14, %rdi
callq *0x8(%r14)
testl %eax, %eax
jne 0x44bc09
movzwl 0x5(%r15), %eax
testw $0x8040, %ax            # imm = 0x8040
jne 0x44bc5c
movq 0x10(%r15), %rsi
testq %rsi, %rsi
je 0x44bbe6
movq %r14, %rdi
callq 0x44bba9
testl %eax, %eax
jne 0x44bc5e
movq 0x18(%r15), %rsi
testq %rsi, %rsi
jne 0x44bbb4
testb $0x8, 0x5(%r15)
movq 0x20(%r15), %rsi
jne 0x44bc10
testq %rsi, %rsi
je 0x44bc1c
movq %r14, %rdi
callq 0x44bd93
jmp 0x44bc18
andl $0x2, %eax
movl %eax, %ebx
jmp 0x44bc5e
movq %r14, %rdi
callq 0x44bc66
testl %eax, %eax
jne 0x44bc5e
testb $0x20, 0x5(%r15)
jne 0x44bc5c
movq 0x48(%r15), %r15
testq %r15, %r15
je 0x44bc5c
movq 0x8(%r15), %rsi
movq %r14, %rdi
callq 0x44bd93
testl %eax, %eax
jne 0x44bc5e
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x44bd93
testl %eax, %eax
jne 0x44bc5e
movq 0x38(%r15), %rsi
movq %r14, %rdi
callq 0x44bba1
testl %eax, %eax
jne 0x44bc5e
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3ExprListCompare
SQLITE_PRIVATE int sqlite3ExprListCompare(ExprList *pA, ExprList *pB, int iTab){
  int i;
  if( pA==0 && pB==0 ) return 0;
  if( pA==0 || pB==0 ) return 1;
  if( pA->nExpr!=pB->nExpr ) return 1;
  for(i=0; i<pA->nExpr; i++){
    Expr *pExprA = pA->a[i].pExpr;
    Expr *pExprB = pB->a[i].pExpr;
    if( pA->a[i].sortOrder!=pB->a[i].sortOrder ) return 1;
    if( sqlite3ExprCompare(0, pExprA, pExprB, iTab) ) return 1;
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %ebx, %ebx
movq %rdi, %rax
orq %rsi, %rax
je 0x44c137
movq %rsi, %r14
movq %rdi, %r15
testq %rsi, %rsi
sete %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
pushq $0x1
popq %rbx
jne 0x44c137
movl (%r15), %eax
cmpl (%r14), %eax
jne 0x44c137
movl %edx, %ebp
pushq $0x20
popq %rcx
pushq $-0x1
popq %r12
movslq (%r15), %rax
incq %r12
cmpq %rax, %r12
jge 0x44c135
movb (%r15,%rcx), %al
cmpb (%r14,%rcx), %al
jne 0x44c137
leaq 0x20(%rcx), %r13
movq -0x18(%r14,%rcx), %rdx
movq -0x18(%r15,%rcx), %rsi
xorl %edi, %edi
movl %ebp, %ecx
callq 0x44bddb
movq %r13, %rcx
testl %eax, %eax
je 0x44c100
jmp 0x44c137
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_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3WindowCompare
SQLITE_PRIVATE int sqlite3WindowCompare(Parse *pParse, Window *p1, Window *p2){
  if( p1->eType!=p2->eType ) return 1;
  if( p1->eStart!=p2->eStart ) return 1;
  if( p1->eEnd!=p2->eEnd ) return 1;
  if( sqlite3ExprCompare(pParse, p1->pStart, p2->pStart, -1) ) return 1;
  if( sqlite3ExprCompare(pParse, p1->pEnd, p2->pEnd, -1) ) return 1;
  if( sqlite3ExprListCompare(p1->pPartition, p2->pPartition, -1) ) return 1;
  if( sqlite3ExprListCompare(p1->pOrderBy, p2->pOrderBy, -1) ) return 1;
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movb 0x18(%rsi), %al
pushq $0x1
popq %rbx
cmpb 0x18(%rdx), %al
jne 0x44c1cc
movq %rdx, %r14
movq %rsi, %r15
movb 0x19(%rsi), %al
cmpb 0x19(%rdx), %al
jne 0x44c1cc
movb 0x1a(%r15), %al
cmpb 0x1a(%r14), %al
jne 0x44c1cc
movq %rdi, %r12
movq 0x20(%r15), %rsi
movq 0x20(%r14), %rdx
pushq $-0x1
popq %rcx
callq 0x44bddb
testl %eax, %eax
jne 0x44c1cc
movq 0x28(%r15), %rsi
movq 0x28(%r14), %rdx
pushq $-0x1
popq %rcx
movq %r12, %rdi
callq 0x44bddb
testl %eax, %eax
jne 0x44c1cc
movq 0x8(%r15), %rdi
movq 0x8(%r14), %rsi
pushq $-0x1
popq %rdx
callq 0x44c0c1
testl %eax, %eax
jne 0x44c1cc
movq 0x10(%r15), %rdi
movq 0x10(%r14), %rsi
pushq $-0x1
popq %rdx
callq 0x44c0c1
xorl %ebx, %ebx
testl %eax, %eax
setne %bl
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3ExprListDup
SQLITE_PRIVATE ExprList *sqlite3ExprListDup(sqlite3 *db, ExprList *p, int flags){
  ExprList *pNew;
  struct ExprList_item *pItem, *pOldItem;
  int i;
  Expr *pPriorSelectCol = 0;
  assert( db!=0 );
  if( p==0 ) return 0;
  pNew = sqlite3DbMallocRawNN(db, sqlite3DbMallocSize(db, p));
  if( pNew==0 ) return 0;
  pNew->nExpr = p->nExpr;
  pItem = pNew->a;
  pOldItem = p->a;
  for(i=0; i<p->nExpr; i++, pItem++, pOldItem++){
    Expr *pOldExpr = pOldItem->pExpr;
    Expr *pNewExpr;
    pItem->pExpr = sqlite3ExprDup(db, pOldExpr, flags);
    if( pOldExpr 
     && pOldExpr->op==TK_SELECT_COLUMN
     && (pNewExpr = pItem->pExpr)!=0 
    ){
      assert( pNewExpr->iColumn==0 || i>0 );
      if( pNewExpr->iColumn==0 ){
        assert( pOldExpr->pLeft==pOldExpr->pRight );
        pPriorSelectCol = pNewExpr->pLeft = pNewExpr->pRight;
      }else{
        assert( i>0 );
        assert( pItem[-1].pExpr!=0 );
        assert( pNewExpr->iColumn==pItem[-1].pExpr->iColumn+1 );
        assert( pPriorSelectCol==pItem[-1].pExpr->pLeft );
        pNewExpr->pLeft = pPriorSelectCol;
      }
    }
    pItem->zName = sqlite3DbStrDup(db, pOldItem->zName);
    pItem->zSpan = sqlite3DbStrDup(db, pOldItem->zSpan);
    pItem->sortOrder = pOldItem->sortOrder;
    pItem->done = 0;
    pItem->bSpanIsTab = pOldItem->bSpanIsTab;
    pItem->bSorterRef = pOldItem->bSorterRef;
    pItem->u = pOldItem->u;
  }
  return pNew;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, 0xc(%rsp)
testq %rsi, %rsi
je 0x44c831
movq %rsi, %r14
movq %rdi, %r15
callq 0x40654b
movslq %eax, %rsi
movq %r15, %rdi
callq 0x412fd6
xorl %ebp, %ebp
testq %rax, %rax
je 0x44c831
movq %rax, %r12
movl (%r14), %eax
movl %eax, (%r12)
pushq $0x8
popq %rbx
movq $0x0, 0x10(%rsp)
cmpl %eax, %ebp
jge 0x44c834
movq (%r14,%rbx), %r13
movq %r15, %rdi
movq %r13, %rsi
movl 0xc(%rsp), %edx
callq 0x44c0b2
movq %rax, (%r12,%rbx)
testq %r13, %r13
je 0x44c7ba
cmpb $-0x5a, (%r13)
setne %cl
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0x44c7ba
cmpw $0x0, 0x30(%rax)
jne 0x44c7b1
movq 0x18(%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x10(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq 0x8(%r14,%rbx), %rsi
movq %r15, %rdi
callq 0x40ad83
movq %rax, 0x8(%r12,%rbx)
movq 0x10(%r14,%rbx), %rsi
movq %r15, %rdi
callq 0x40ad83
movq %rax, 0x10(%r12,%rbx)
movb 0x18(%r14,%rbx), %al
movb %al, 0x18(%r12,%rbx)
movb 0x19(%r12,%rbx), %al
movl %eax, %ecx
andb $-0x2, %cl
movb %cl, 0x19(%r12,%rbx)
movb 0x19(%r14,%rbx), %cl
andb $0x2, %cl
andb $-0x4, %al
orb %cl, %al
movb %al, 0x19(%r12,%rbx)
movb 0x19(%r14,%rbx), %cl
andb $0x8, %cl
andb $-0xa, %al
orb %cl, %al
movb %al, 0x19(%r12,%rbx)
movl 0x1c(%r14,%rbx), %eax
movl %eax, 0x1c(%r12,%rbx)
incl %ebp
movl (%r14), %eax
addq $0x20, %rbx
jmp 0x44c76b
xorl %r12d, %r12d
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3WindowDup
SQLITE_PRIVATE Window *sqlite3WindowDup(sqlite3 *db, Expr *pOwner, Window *p){
  Window *pNew = 0;
  if( p ){
    pNew = sqlite3DbMallocZero(db, sizeof(Window));
    if( pNew ){
      pNew->zName = sqlite3DbStrDup(db, p->zName);
      pNew->pFilter = sqlite3ExprDup(db, p->pFilter, 0);
      pNew->pPartition = sqlite3ExprListDup(db, p->pPartition, 0);
      pNew->pOrderBy = sqlite3ExprListDup(db, p->pOrderBy, 0);
      pNew->eType = p->eType;
      pNew->eEnd = p->eEnd;
      pNew->eStart = p->eStart;
      pNew->pStart = sqlite3ExprDup(db, p->pStart, 0);
      pNew->pEnd = sqlite3ExprDup(db, p->pEnd, 0);
      pNew->pOwner = pOwner;
    }
  }
  return pNew;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdx, %rdx
je 0x44c93d
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
pushq $0x70
popq %rsi
callq 0x40af46
testq %rax, %rax
je 0x44c93d
movq %rax, %rbx
movq (%r12), %rsi
movq %r15, %rdi
callq 0x40ad83
movq %rax, (%rbx)
movq 0x38(%r12), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x44c0b2
movq %rax, 0x38(%rbx)
movq 0x8(%r12), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x44c719
movq %rax, 0x8(%rbx)
movq 0x10(%r12), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x44c719
movq %rax, 0x10(%rbx)
movb 0x18(%r12), %al
movb %al, 0x18(%rbx)
movb 0x1a(%r12), %al
movb %al, 0x1a(%rbx)
movb 0x19(%r12), %al
movb %al, 0x19(%rbx)
movq 0x20(%r12), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x44c0b2
movq %rax, 0x20(%rbx)
movq 0x28(%r12), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x44c0b2
movq %rax, 0x28(%rbx)
movq %r14, 0x60(%rbx)
jmp 0x44c93f
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3VdbeExplain
SQLITE_PRIVATE void sqlite3VdbeExplain(Parse *pParse, u8 bPush, const char *zFmt, ...){
  if( pParse->explain==2 ){
    char *zMsg;
    Vdbe *v;
    va_list ap;
    int iThis;
    va_start(ap, zFmt);
    zMsg = sqlite3VMPrintf(pParse->db, zFmt, ap);
    va_end(ap);
    v = pParse->pVdbe;
    iThis = v->nOp;
    sqlite3VdbeAddOp4(v, OP_Explain, iThis, pParse->addrExplain, 0,
                      zMsg, P4_DYNAMIC);
    if( bPush) pParse->addrExplain = iThis;
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0xe0, %rsp
movq %r9, 0x58(%rsp)
testb %al, %al
je 0x44cbae
movaps %xmm0, 0x60(%rsp)
movaps %xmm1, 0x70(%rsp)
movaps %xmm2, 0x80(%rsp)
movaps %xmm3, 0x90(%rsp)
movaps %xmm4, 0xa0(%rsp)
movaps %xmm5, 0xb0(%rsp)
movaps %xmm6, 0xc0(%rsp)
movaps %xmm7, 0xd0(%rsp)
movq %r8, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
cmpb $0x2, 0x10b(%rdi)
jne 0x44cc32
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x30(%rsp), %rcx
leaq 0x10(%rsp), %rax
movq %rcx, 0x10(%rax)
leaq 0x100(%rsp), %rcx
movq %rcx, 0x8(%rax)
movabsq $0x3000000018, %rcx     # imm = 0x3000000018
movq %rcx, (%rax)
movq (%rdi), %rdi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x415024
movq 0x10(%rbx), %rdi
movl 0xb8(%rdi), %r14d
movl 0x118(%rbx), %ecx
movl $0xfffffff9, (%rsp)     # imm = 0xFFFFFFF9
movl $0xac, %esi
movl %r14d, %edx
xorl %r8d, %r8d
movq %rax, %r9
callq 0x4485b6
testb %bpl, %bpl
je 0x44cc32
movl %r14d, 0x118(%rbx)
addq $0xe0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3ExprIsInteger
SQLITE_PRIVATE int sqlite3ExprIsInteger(Expr *p, int *pValue){
  int rc = 0;
  if( p==0 ) return 0;  /* Can only happen following on OOM */

  /* If an expression is an integer literal that fits in a signed 32-bit
  ** integer, then the EP_IntValue flag will have already been set */
  assert( p->op!=TK_INTEGER || (p->flags & EP_IntValue)!=0
           || sqlite3GetInt32(p->u.zToken, &rc)==0 );

  if( p->flags & EP_IntValue ){
    *pValue = p->u.iValue;
    return 1;
  }
  switch( p->op ){
    case TK_UPLUS: {
      rc = sqlite3ExprIsInteger(p->pLeft, pValue);
      break;
    }
    case TK_UMINUS: {
      int v;
      if( sqlite3ExprIsInteger(p->pLeft, &v) ){
        assert( v!=(-2147483647-1) );
        *pValue = -v;
        rc = 1;
      }
      break;
    }
    default: break;
  }
  return rc;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
xorl %eax, %eax
testq %rdi, %rdi
je 0x44cd84
testb $0x4, 0x5(%rdi)
jne 0x44cd7c
movzbl (%rdi), %ecx
cmpl $0xa2, %ecx
jne 0x44cd5a
movq 0x10(%rdi), %rdi
jmp 0x44cd3e
cmpl $0xa1, %ecx
jne 0x44cd84
movq 0x10(%rdi), %rdi
leaq 0xc(%rsp), %rsi
callq 0x44cd34
testl %eax, %eax
je 0x44cd8a
xorl %eax, %eax
subl 0xc(%rsp), %eax
jmp 0x44cd7f
movl 0x8(%rdi), %eax
movl %eax, (%rbx)
pushq $0x1
popq %rax
addq $0x10, %rsp
popq %rbx
retq
xorl %eax, %eax
jmp 0x44cd84
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3ExprCanBeNull
SQLITE_PRIVATE int sqlite3ExprCanBeNull(const Expr *p){
  u8 op;
  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:
    case TK_STRING:
    case TK_FLOAT:
    case TK_BLOB:
      return 0;
    case TK_COLUMN:
      return ExprHasProperty(p, EP_CanBeNull) ||
             p->pTab==0 ||  /* Reference to column of index on expression */
             (p->iColumn>=0 && p->pTab->aCol[p->iColumn].notNull==0);
    default:
      return 1;
  }
}

// Assembly:
movb (%rdi), %al
movzbl %al, %ecx
leal -0xa1(%rcx), %edx
cmpl $0x2, %edx
jae 0x44d450
movq 0x10(%rdi), %rdi
jmp 0x44d43a
cmpl $0xa4, %ecx
jne 0x44d45b
movb 0x36(%rdi), %al
movzbl %al, %ecx
xorl %eax, %eax
leal -0x8d(%rcx), %edx
cmpl $0x3, %edx
jb 0x44d4ab
cmpl $0x6a, %ecx
je 0x44d4ab
pushq $0x1
popq %rax
cmpl $0x9e, %ecx
jne 0x44d4ab
testb $0x10, 0x6(%rdi)
jne 0x44d4ab
movq 0x40(%rdi), %rcx
testq %rcx, %rcx
je 0x44d4ab
movswq 0x30(%rdi), %rdx
movl $0x0, %eax
testq %rdx, %rdx
js 0x44d4ab
movq 0x8(%rcx), %rcx
shlq $0x5, %rdx
xorl %eax, %eax
cmpb $0x0, 0x18(%rcx,%rdx)
sete %al
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3ExprCodeFactorable
SQLITE_PRIVATE void sqlite3ExprCodeFactorable(Parse *pParse, Expr *pExpr, int target){
  if( pParse->okConstFactor && sqlite3ExprIsConstantNotJoin(pExpr) ){
    sqlite3ExprCodeAtInit(pParse, pExpr, target);
  }else{
    sqlite3ExprCode(pParse, pExpr, target);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
cmpb $0x0, 0x23(%rdi)
je 0x44d531
movq %r14, %rdi
callq 0x449fd6
testl %eax, %eax
je 0x44d531
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
popq %rbx
popq %r14
popq %r15
jmp 0x449fe0
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
popq %rbx
popq %r14
popq %r15
jmp 0x4485ec
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3NestedParse
SQLITE_PRIVATE void sqlite3NestedParse(Parse *pParse, const char *zFormat, ...){
  va_list ap;
  char *zSql;
  char *zErrMsg = 0;
  sqlite3 *db = pParse->db;
  char saveBuf[PARSE_TAIL_SZ];

  if( pParse->nErr ) return;
  assert( pParse->nested<10 );  /* Nesting should only be of limited depth */
  va_start(ap, zFormat);
  zSql = sqlite3VMPrintf(db, zFormat, ap);
  va_end(ap);
  if( zSql==0 ){
    return;   /* A malloc must have failed */
  }
  pParse->nested++;
  memcpy(saveBuf, PARSE_TAIL(pParse), PARSE_TAIL_SZ);
  memset(PARSE_TAIL(pParse), 0, PARSE_TAIL_SZ);
  sqlite3RunParser(pParse, zSql, &zErrMsg);
  sqlite3DbFree(db, zErrMsg);
  sqlite3DbFree(db, zSql);
  memcpy(PARSE_TAIL(pParse), saveBuf, PARSE_TAIL_SZ);
  pParse->nested--;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rdx, 0x40(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x50(%rsp)
movq %r9, 0x58(%rsp)
testb %al, %al
je 0x44dd16
movaps %xmm0, 0x60(%rsp)
movaps %xmm1, 0x70(%rsp)
movaps %xmm2, 0x80(%rsp)
movaps %xmm3, 0x90(%rsp)
movaps %xmm4, 0xa0(%rsp)
movaps %xmm5, 0xb0(%rsp)
movaps %xmm6, 0xc0(%rsp)
movaps %xmm7, 0xd0(%rsp)
andq $0x0, 0x8(%rsp)
cmpl $0x0, 0x30(%rdi)
jne 0x44ddd1
movq %rdi, %rbx
movq (%rdi), %r14
leaq 0x30(%rsp), %rax
leaq 0x10(%rsp), %rdx
movq %rax, 0x10(%rdx)
leaq 0x1c0(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
movq %r14, %rdi
callq 0x415024
testq %rax, %rax
je 0x44ddd1
movq %rax, %r15
incb 0x1e(%rbx)
leaq 0xf8(%rbx), %r12
leaq 0xe0(%rsp), %r13
movl $0xa0, %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x401048
movl $0xa0, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x4010b8
leaq 0x8(%rsp), %rbp
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x40eb8d
movq (%rbp), %rsi
movq %r14, %rdi
callq 0x4043ed
movq %r14, %rdi
movq %r15, %rsi
callq 0x412f53
movl $0xa0, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x401048
decb 0x1e(%rbx)
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: recomputeColumnsNotIndexed
static void recomputeColumnsNotIndexed(Index *pIdx){
  Bitmask m = 0;
  int j;
  for(j=pIdx->nColumn-1; j>=0; j--){
    int x = pIdx->aiColumn[j];
    if( x>=0 ){
      testcase( x==BMS-1 );
      testcase( x==BMS-2 );
      if( x<BMS-1 ) m |= MASKBIT(x);
    }
  }
  pIdx->colNotIdxed = ~m;
  assert( (pIdx->colNotIdxed>>63)==1 );
}

// Assembly:
movzwl 0x60(%rdi), %eax
xorl %edx, %edx
pushq $0x1
popq %r8
xorl %esi, %esi
testq %rax, %rax
jle 0x44df29
movq 0x8(%rdi), %rcx
movzwl -0x2(%rcx,%rax,2), %ecx
decq %rax
movq %r8, %r9
shlq %cl, %r9
cmpw $0x3f, %cx
cmovaeq %rdx, %r9
orq %r9, %rsi
jmp 0x44df05
notq %rsi
movq %rsi, 0x68(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3ResolveExprNames
SQLITE_PRIVATE int sqlite3ResolveExprNames( 
  NameContext *pNC,       /* Namespace to resolve expressions in. */
  Expr *pExpr             /* The expression to be analyzed. */
){
  u16 savedHasAgg;
  Walker w;

  if( pExpr==0 ) return SQLITE_OK;
  savedHasAgg = pNC->ncFlags & (NC_HasAgg|NC_MinMaxAgg);
  pNC->ncFlags &= ~(NC_HasAgg|NC_MinMaxAgg);
  w.pParse = pNC->pParse;
  w.xExprCallback = resolveExprStep;
  w.xSelectCallback = resolveSelectStep;
  w.xSelectCallback2 = 0;
  w.u.pNC = pNC;
#if SQLITE_MAX_EXPR_DEPTH>0
  w.pParse->nHeight += pExpr->nHeight;
  if( sqlite3ExprCheckHeight(w.pParse, w.pParse->nHeight) ){
    return SQLITE_ERROR;
  }
#endif
  sqlite3WalkExpr(&w, pExpr);
#if SQLITE_MAX_EXPR_DEPTH>0
  w.pParse->nHeight -= pExpr->nHeight;
#endif
  if( pNC->ncFlags & NC_HasAgg ){
    ExprSetProperty(pExpr, EP_Agg);
  }
  pNC->ncFlags |= savedHasAgg;
  return pNC->nErr>0 || w.pParse->nErr>0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
testq %rsi, %rsi
je 0x44dfef
movq %rsi, %r14
movq %rdi, %rbx
movzwl 0x28(%rdi), %r12d
movl %r12d, %eax
andl $0xefef, %eax           # imm = 0xEFEF
movw %ax, 0x28(%rdi)
movq (%rdi), %rdi
movq %rdi, (%rsp)
leaq 0xea(%rip), %rax        # 0x44e055
movq %rax, 0x8(%rsp)
leaq 0x1341(%rip), %rax      # 0x44f2b8
movq %rax, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movq %rbx, 0x28(%rsp)
movl 0x114(%rdi), %esi
addl 0x28(%r14), %esi
movl %esi, 0x114(%rdi)
callq 0x44fa15
pushq $0x1
popq %rbp
testl %eax, %eax
jne 0x44dff1
andl $0x1010, %r12d          # imm = 0x1010
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x44bba9
movl 0x28(%r14), %ecx
movq (%r15), %rax
subl %ecx, 0x114(%rax)
movzwl 0x28(%rbx), %ecx
testb $0x10, %cl
je 0x44dfd3
orb $0x2, 0x4(%r14)
movzwl %r12w, %edx
orl %ecx, %edx
movw %dx, 0x28(%rbx)
cmpl $0x0, 0x24(%rbx)
jg 0x44dff1
xorl %ebp, %ebp
cmpl $0x0, 0x30(%rax)
setg %bpl
jmp 0x44dff1
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3ExpandSubquery
SQLITE_PRIVATE int sqlite3ExpandSubquery(Parse *pParse, struct SrcList_item *pFrom){
  Select *pSel = pFrom->pSelect;
  Table *pTab;

  assert( pSel );
  pFrom->pTab = pTab = sqlite3DbMallocZero(pParse->db, sizeof(Table));
  if( pTab==0 ) return SQLITE_NOMEM;
  pTab->nTabRef = 1;
  if( pFrom->zAlias ){
    pTab->zName = sqlite3DbStrDup(pParse->db, pFrom->zAlias);
  }else{
    pTab->zName = sqlite3MPrintf(pParse->db, "subquery_%u", pSel->selId);
  }
  while( pSel->pPrior ){ pSel = pSel->pPrior; }
  sqlite3ColumnsFromExprList(pParse, pSel->pEList,&pTab->nCol,&pTab->aCol);
  pTab->iPKey = -1;
  pTab->nRowLogEst = 200; assert( 200==sqlite3LogEst(1048576) );
  pTab->tabFlags |= TF_Ephemeral;

  return SQLITE_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movq 0x28(%rsi), %r12
movq (%rdi), %rdi
movl $0x80, %esi
callq 0x40af46
movq %rax, 0x20(%r15)
testq %rax, %rax
je 0x450ecd
movq %rax, %r14
movl $0x1, 0x3c(%rax)
movq 0x18(%r15), %rsi
movq (%rbx), %rdi
testq %rsi, %rsi
je 0x450ed2
callq 0x40ad83
jmp 0x450ee5
pushq $0x7
popq %rax
jmp 0x450f1f
movl 0x18(%r12), %edx
leaq 0xefaac(%rip), %rsi     # 0x54098a
xorl %eax, %eax
callq 0x40c75f
movq %rax, (%r14)
movq %r12, %rax
movq 0x50(%r12), %r12
testq %r12, %r12
jne 0x450ee8
movq (%rax), %rsi
leaq 0x46(%r14), %rdx
movq %r14, %rcx
addq $0x8, %rcx
movq %rbx, %rdi
callq 0x451355
orw $-0x1, 0x44(%r14)
movw $0xc8, 0x48(%r14)
orb $0x2, 0x40(%r14)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3DropTriggerPtr
SQLITE_PRIVATE void sqlite3DropTriggerPtr(Parse *pParse, Trigger *pTrigger){
  Table   *pTable;
  Vdbe *v;
  sqlite3 *db = pParse->db;
  int iDb;

  iDb = sqlite3SchemaToIndex(pParse->db, pTrigger->pSchema);
  assert( iDb>=0 && iDb<db->nDb );
  pTable = tableOfTrigger(pTrigger);
  assert( pTable );
  assert( pTable->pSchema==pTrigger->pSchema || iDb==1 );
#ifndef SQLITE_OMIT_AUTHORIZATION
  {
    int code = SQLITE_DROP_TRIGGER;
    const char *zDb = db->aDb[iDb].zDbSName;
    const char *zTab = SCHEMA_TABLE(iDb);
    if( iDb==1 ) code = SQLITE_DROP_TEMP_TRIGGER;
    if( sqlite3AuthCheck(pParse, code, pTrigger->zName, pTable->zName, zDb) ||
      sqlite3AuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb) ){
      return;
    }
  }
#endif

  /* Generate code to destroy the database record of the trigger.
  */
  assert( pTable!=0 );
  if( (v = sqlite3GetVdbe(pParse))!=0 ){
    sqlite3NestedParse(pParse,
       "DELETE FROM %Q.%s WHERE name=%Q AND type='trigger'",
       db->aDb[iDb].zDbSName, MASTER_NAME, pTrigger->zName
    );
    sqlite3ChangeCookie(pParse, iDb);
    sqlite3VdbeAddOp4(v, OP_DropTrigger, iDb, 0, 0, pTrigger->zName, 0);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %r15
movq 0x28(%rsi), %rsi
movq %r15, %rdi
callq 0x40c73a
movl %eax, %ebp
movq %rbx, %rdi
callq 0x430f51
movq 0x20(%r15), %rcx
movslq %ebp, %rdx
movq %rdx, %r13
shlq $0x5, %r13
movq (%rcx,%r13), %r12
xorl %ecx, %ecx
cmpl $0x1, %edx
setne %cl
leal 0xe(,%rcx,2), %esi
movq (%rbx), %rdx
movq (%rax), %rcx
movq %r14, %rdi
movq %r12, %r8
callq 0x44d86d
testl %eax, %eax
jne 0x452b64
cmpl $0x1, %ebp
leaq 0xec833(%rip), %rax     # 0x53f320
leaq 0xec728(%rip), %rdx     # 0x53f21c
cmoveq %rax, %rdx
pushq $0x9
popq %rsi
movq %r14, %rdi
xorl %ecx, %ecx
movq %r12, %r8
callq 0x44d86d
testl %eax, %eax
jne 0x452b64
movq %r14, %rdi
callq 0x44856b
testq %rax, %rax
je 0x452b64
movq %rax, %r12
movq 0x20(%r15), %rax
movq (%rax,%r13), %rdx
movq (%rbx), %r8
leaq 0xee5a1(%rip), %rsi     # 0x5410cf
leaq 0xec6e7(%rip), %rcx     # 0x53f21c
movq %r14, %rdi
xorl %eax, %eax
callq 0x44dcb3
movq %r14, %rdi
movl %ebp, %esi
callq 0x44dde3
movq (%rbx), %r9
andl $0x0, (%rsp)
movq %r12, %rdi
movl $0x93, %esi
movl %ebp, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x4485b6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: destroyRootPage
static void destroyRootPage(Parse *pParse, int iTable, int iDb){
  Vdbe *v = sqlite3GetVdbe(pParse);
  int r1 = sqlite3GetTempReg(pParse);
  assert( iTable>1 );
  sqlite3VdbeAddOp3(v, OP_Destroy, iTable, r1, iDb);
  sqlite3MayAbort(pParse);
#ifndef SQLITE_OMIT_AUTOVACUUM
  /* OP_Destroy stores an in integer r1. If this integer
  ** is non-zero, then it is the root page number of a table moved to
  ** location iTable. The following code modifies the sqlite_master table to
  ** reflect this.
  **
  ** The "#NNN" in the SQL is a special constant that means whatever value
  ** is in register NNN.  See grammar rules associated with the TK_REGISTER
  ** token for additional information.
  */
  sqlite3NestedParse(pParse, 
     "UPDATE %Q.%s SET rootpage=%d WHERE #%d AND rootpage=#%d",
     pParse->db->aDb[iDb].zDbSName, MASTER_NAME, iTable, r1, r1);
#endif
  sqlite3ReleaseTempReg(pParse, r1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %r15d
movl %esi, %r14d
movq %rdi, %rbx
callq 0x44856b
movq %rax, %r12
movq %rbx, %rdi
callq 0x44b9b3
movl %eax, %ebp
movq %r12, %rdi
movl $0x89, %esi
movl %r14d, %edx
movl %eax, %ecx
movl %r15d, %r8d
callq 0x432a44
movq 0xa0(%rbx), %rax
testq %rax, %rax
cmoveq %rbx, %rax
movb $0x1, 0x21(%rax)
movq (%rbx), %rax
movq 0x20(%rax), %rax
movslq %r15d, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rdx
movl %ebp, (%rsp)
leaq 0xee525(%rip), %rsi     # 0x541102
leaq 0xec638(%rip), %rcx     # 0x53f21c
movq %rbx, %rdi
movl %r14d, %r8d
movl %ebp, %r9d
xorl %eax, %eax
callq 0x44dcb3
testl %ebp, %ebp
je 0x452c0f
movzbl 0x1f(%rbx), %eax
cmpq $0x7, %rax
ja 0x452c0f
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rbx)
movl %ebp, 0xc4(%rbx,%rax,4)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3ExprAnalyzeAggregates
SQLITE_PRIVATE void sqlite3ExprAnalyzeAggregates(NameContext *pNC, Expr *pExpr){
  Walker w;
  w.xExprCallback = analyzeAggregate;
  w.xSelectCallback = analyzeAggregatesInSelect;
  w.xSelectCallback2 = analyzeAggregatesInSelectEnd;
  w.walkerDepth = 0;
  w.u.pNC = pNC;
  assert( pNC->pSrcList!=0 );
  sqlite3WalkExpr(&w, pExpr);
}

// Assembly:
subq $0x38, %rsp
leaq 0x86b7(%rip), %rcx      # 0x45f844
leaq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
leaq 0x8915(%rip), %rcx      # 0x45fab2
movq %rcx, 0x10(%rax)
leaq 0x8910(%rip), %rcx      # 0x45fab8
movq %rcx, 0x18(%rax)
andl $0x0, 0x20(%rax)
movq %rdi, 0x28(%rax)
movq %rax, %rdi
callq 0x44bba1
addq $0x38, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: finalizeAggFunctions
static void finalizeAggFunctions(Parse *pParse, AggInfo *pAggInfo){
  Vdbe *v = pParse->pVdbe;
  int i;
  struct AggInfo_func *pF;
  for(i=0, pF=pAggInfo->aFunc; i<pAggInfo->nFunc; i++, pF++){
    ExprList *pList = pF->pExpr->x.pList;
    assert( !ExprHasProperty(pF->pExpr, EP_xIsSelect) );
    sqlite3VdbeAddOp2(v, OP_AggFinal, pF->iMem, pList ? pList->nExpr : 0);
    sqlite3VdbeAppendP4(v, pF->pFunc, P4_FUNCDEF);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq 0x10(%rdi), %r14
movq 0x30(%rsi), %r15
xorl %r12d, %r12d
pushq $-0x8
popq %rbp
cmpl 0x38(%rbx), %r12d
jge 0x45748f
movq (%r15), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x457465
movl (%rax), %ecx
jmp 0x457467
xorl %ecx, %ecx
movl 0x10(%r15), %edx
movq %r14, %rdi
movl $0x9e, %esi
callq 0x432a3f
movq 0x8(%r15), %rsi
movq %r14, %rdi
movl %ebp, %edx
callq 0x448919
incl %r12d
addq $0x18, %r15
jmp 0x45744f
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: exprListAppendList
static ExprList *exprListAppendList(
  Parse *pParse,          /* Parsing context */
  ExprList *pList,        /* List to which to append. Might be NULL */
  ExprList *pAppend       /* List of values to append. Might be NULL */
){
  if( pAppend ){
    int i;
    int nInit = pList ? pList->nExpr : 0;
    for(i=0; i<pAppend->nExpr; i++){
      Expr *pDup = sqlite3ExprDup(pParse->db, pAppend->a[i].pExpr, 0);
      pList = sqlite3ExprListAppend(pParse, pList, pDup);
      if( pList ) pList->a[nInit+i].sortOrder = pAppend->a[i].sortOrder;
    }
  }
  return pList;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
testq %rdx, %rdx
je 0x4575c4
movq %rdx, %r14
movq %rdi, %r15
testq %rbx, %rbx
je 0x457574
movslq (%rbx), %r12
jmp 0x457577
xorl %r12d, %r12d
shlq $0x5, %r12
pushq $0x20
popq %r13
xorl %ebp, %ebp
movslq (%r14), %rax
cmpq %rax, %rbp
jge 0x4575c4
movq (%r15), %rdi
movq -0x18(%r14,%r13), %rsi
xorl %edx, %edx
callq 0x44c0b2
movq %r15, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x440a42
movq %rax, %rbx
testq %rax, %rax
je 0x4575bb
movb (%r14,%r13), %al
leaq (%rbx,%r12), %rcx
movb %al, (%r13,%rcx)
incq %rbp
addq $0x20, %r13
jmp 0x457581
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_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: selectWindowRewriteEList
static void selectWindowRewriteEList(
  Parse *pParse, 
  Window *pWin,
  SrcList *pSrc,
  ExprList *pEList,               /* Rewrite expressions in this list */
  ExprList **ppSub                /* IN/OUT: Sub-select expression-list */
){
  Walker sWalker;
  WindowRewrite sRewrite;

  memset(&sWalker, 0, sizeof(Walker));
  memset(&sRewrite, 0, sizeof(WindowRewrite));

  sRewrite.pSub = *ppSub;
  sRewrite.pWin = pWin;
  sRewrite.pSrc = pSrc;

  sWalker.pParse = pParse;
  sWalker.xExprCallback = selectWindowRewriteExprCb;
  sWalker.xSelectCallback = selectWindowRewriteSelectCb;
  sWalker.u.pRewrite = &sRewrite;

  (void)sqlite3WalkExprList(&sWalker, pEList);

  *ppSub = sRewrite.pSub;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %r8, %rbx
xorps %xmm0, %xmm0
leaq 0x8(%rsp), %r14
andq $0x0, 0x18(%r14)
leaq 0x28(%rsp), %rax
movups %xmm0, 0x18(%rax)
movq (%r8), %r8
movq %r8, 0x10(%r14)
movq %rsi, (%r14)
movq %rdx, 0x8(%r14)
movq %rdi, (%rax)
leaq 0x2d(%rip), %rdx        # 0x45763b
movq %rdx, 0x8(%rax)
leaq 0x129(%rip), %rdx       # 0x457742
movq %rdx, 0x10(%rax)
movq %r14, 0x28(%rax)
movq %rax, %rdi
movq %rcx, %rsi
callq 0x44bd93
movq 0x10(%r14), %rax
movq %rax, (%rbx)
addq $0x58, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: findConstInWhere
static void findConstInWhere(WhereConst *pConst, Expr *pExpr){
  Expr *pRight, *pLeft;
  if( pExpr==0 ) return;
  if( ExprHasProperty(pExpr, EP_FromJoin) ) return;
  if( pExpr->op==TK_AND ){
    findConstInWhere(pConst, pExpr->pRight);
    findConstInWhere(pConst, pExpr->pLeft);
    return;
  }
  if( pExpr->op!=TK_EQ ) return;
  pRight = pExpr->pRight;
  pLeft = pExpr->pLeft;
  assert( pRight!=0 );
  assert( pLeft!=0 );
  if( pRight->op==TK_COLUMN
   && !ExprHasProperty(pRight, EP_FixedCol)
   && sqlite3ExprIsConstant(pLeft)
   && sqlite3IsBinary(sqlite3BinaryCompareCollSeq(pConst->pParse,pLeft,pRight))
  ){
    constInsert(pConst, pRight, pLeft);
  }else
  if( pLeft->op==TK_COLUMN
   && !ExprHasProperty(pLeft, EP_FixedCol)
   && sqlite3ExprIsConstant(pRight)
   && sqlite3IsBinary(sqlite3BinaryCompareCollSeq(pConst->pParse,pLeft,pRight))
  ){
    constInsert(pConst, pLeft, pRight);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
testq %r15, %r15
je 0x4580d0
testb $0x1, 0x4(%r15)
jne 0x4580d0
movzbl (%r15), %eax
cmpl $0x2c, %eax
jne 0x45803b
movq 0x18(%r15), %rsi
movq %rbx, %rdi
callq 0x458001
movq 0x10(%r15), %r15
jmp 0x45800c
cmpl $0x35, %eax
jne 0x4580d0
movq 0x10(%r15), %r14
movq 0x18(%r15), %r15
cmpb $-0x62, (%r15)
jne 0x45808a
testb $0x8, 0x4(%r15)
jne 0x45808a
movq %r14, %rdi
callq 0x44a105
testl %eax, %eax
je 0x45808a
movq (%rbx), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x40f27c
movq %rax, %rdi
callq 0x458158
testl %eax, %eax
je 0x45808a
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
jmp 0x4580c6
cmpb $-0x62, (%r14)
jne 0x4580d0
testb $0x8, 0x4(%r14)
jne 0x4580d0
movq %r15, %rdi
callq 0x44a105
testl %eax, %eax
je 0x4580d0
movq (%rbx), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x40f27c
movq %rax, %rdi
callq 0x458158
testl %eax, %eax
je 0x4580d0
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x45817c
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: constInsert
static void constInsert(
  WhereConst *pConst,
  Expr *pColumn,
  Expr *pValue
){

  pConst->nConst++;
  pConst->apExpr = sqlite3DbReallocOrFree(pConst->pParse->db, pConst->apExpr,
                         pConst->nConst*2*sizeof(Expr*));
  if( pConst->apExpr==0 ){
    pConst->nConst = 0;
  }else{
    if( ExprHasProperty(pValue, EP_FixedCol) ) pValue = pValue->pLeft;
    pConst->apExpr[pConst->nConst*2-2] = pColumn;
    pConst->apExpr[pConst->nConst*2-1] = pValue;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movslq 0x8(%rdi), %rdx
incq %rdx
movl %edx, 0x8(%rdi)
movq (%rdi), %rax
movq 0x10(%rdi), %rsi
movq (%rax), %rdi
shlq $0x4, %rdx
callq 0x420153
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x4581d2
testb $0x8, 0x4(%rbx)
je 0x4581ba
movq 0x10(%rbx), %rbx
movslq 0x8(%r14), %rcx
shlq $0x4, %rcx
movq %r15, -0x10(%rax,%rcx)
movq 0x10(%r14), %rax
movq %rbx, -0x8(%rax,%rcx)
jmp 0x4581d7
andl $0x0, 0x8(%r14)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3ExprNNCollSeq
SQLITE_PRIVATE CollSeq *sqlite3ExprNNCollSeq(Parse *pParse, Expr *pExpr){
  CollSeq *p = sqlite3ExprCollSeq(pParse, pExpr);
  if( p==0 ) p = pParse->db->pDfltColl;
  assert( p!=0 );
  return p;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x433a1a
testq %rax, %rax
jne 0x458343
movq (%rbx), %rax
movq 0x10(%rax), %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3WhereExprUsageNN
SQLITE_PRIVATE Bitmask sqlite3WhereExprUsageNN(WhereMaskSet *pMaskSet, Expr *p){
  Bitmask mask;
  if( p->op==TK_COLUMN && !ExprHasProperty(p, EP_FixedCol) ){
    return sqlite3WhereGetMask(pMaskSet, p->iTable);
  }else if( ExprHasProperty(p, EP_TokenOnly|EP_Leaf) ){
    assert( p->op!=TK_IF_NULL_ROW );
    return 0;
  }
  mask = (p->op==TK_IF_NULL_ROW) ? sqlite3WhereGetMask(pMaskSet, p->iTable) : 0;
  if( p->pLeft ) mask |= sqlite3WhereExprUsageNN(pMaskSet, p->pLeft);
  if( p->pRight ){
    mask |= sqlite3WhereExprUsageNN(pMaskSet, p->pRight);
    assert( p->x.pList==0 );
  }else if( ExprHasProperty(p, EP_xIsSelect) ){
    if( ExprHasProperty(p, EP_VarSelect) ) pMaskSet->bVarSelect = 1;
    mask |= exprSelectUsage(pMaskSet, p->x.pSelect);
  }else if( p->x.pList ){
    mask |= sqlite3WhereExprListUsage(pMaskSet, p->x.pList);
  }
  return mask;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %r13d, %r13d
movb (%r15), %cl
movl 0x4(%r15), %eax
cmpb $-0x62, %cl
jne 0x45a891
testb $0x8, %al
je 0x45a8f7
movl $0x0, %r12d
testl $0x804000, %eax         # imm = 0x804000
je 0x45a8b5
jmp 0x45a924
testl $0x804000, %eax         # imm = 0x804000
jne 0x45a924
cmpb $-0x59, %cl
jne 0x45a8b2
movl 0x2c(%r15), %esi
movq %rbx, %rdi
callq 0x45a939
movq %rax, %r12
jmp 0x45a8b5
xorl %r12d, %r12d
movq 0x10(%r15), %rsi
testq %rsi, %rsi
je 0x45a8c9
movq %rbx, %rdi
callq 0x45a85a
orq %rax, %r12
movq 0x18(%r15), %rax
testq %rax, %rax
je 0x45a8da
orq %r12, %r13
movq %rax, %r15
jmp 0x45a86f
movl 0x4(%r15), %eax
btl $0xb, %eax
jb 0x45a908
movq 0x20(%r15), %rsi
testq %rsi, %rsi
je 0x45a934
movq %rbx, %rdi
callq 0x458b95
jmp 0x45a91e
movl 0x2c(%r15), %esi
movq %rbx, %rdi
callq 0x45a939
movq %rax, %r14
jmp 0x45a924
testb $0x20, %al
je 0x45a912
movl $0x1, (%rbx)
movq 0x20(%r15), %rsi
movq %rbx, %rdi
callq 0x45a745
movq %rax, %r14
orq %r12, %r14
orq %r13, %r14
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %r12, %r14
jmp 0x45a924
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3ExprCompareSkip
SQLITE_PRIVATE int sqlite3ExprCompareSkip(Expr *pA, Expr *pB, int iTab){
  return sqlite3ExprCompare(0,
             sqlite3ExprSkipCollate(pA),
             sqlite3ExprSkipCollate(pB),
             iTab);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
callq 0x44b988
movq %rax, %r15
movq %r14, %rdi
callq 0x44b988
xorl %edi, %edi
movq %r15, %rsi
movq %rax, %rdx
movl %ebx, %ecx
popq %rbx
popq %r14
popq %r15
jmp 0x44bddb
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: whereUsablePartialIndex
static int whereUsablePartialIndex(int iTab, WhereClause *pWC, Expr *pWhere){
  int i;
  WhereTerm *pTerm;
  Parse *pParse = pWC->pWInfo->pParse;
  while( pWhere->op==TK_AND ){
    if( !whereUsablePartialIndex(iTab,pWC,pWhere->pLeft) ) return 0;
    pWhere = pWhere->pRight;
  }
  if( pParse->db->flags & SQLITE_EnableQPSG ) pParse = 0;
  for(i=0, pTerm=pWC->a; i<pWC->nTerm; i++, pTerm++){
    Expr *pExpr = pTerm->pExpr;
    if( (!ExprHasProperty(pExpr, EP_FromJoin) || pExpr->iRightJoinTable==iTab)
     && sqlite3ExprImpliesExpr(pParse, pExpr, pWhere, iTab) 
    ){
      return 1;
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
movq (%rsi), %rax
movq (%rax), %r15
cmpb $0x2c, (%rbx)
jne 0x45c8b6
movq 0x10(%rbx), %rdx
movl %ebp, %edi
movq %r14, %rsi
callq 0x45c880
testl %eax, %eax
je 0x45c8fc
movq 0x18(%rbx), %rbx
jmp 0x45c899
movq (%r15), %rax
xorl %ecx, %ecx
testb $-0x80, 0x32(%rax)
cmovneq %rcx, %r15
movq 0x20(%r14), %r13
xorl %r12d, %r12d
cmpl 0x14(%r14), %r12d
jge 0x45c8fc
movq (%r13), %rsi
testb $0x1, 0x4(%rsi)
je 0x45c8e2
movswl 0x34(%rsi), %eax
cmpl %ebp, %eax
jne 0x45c8f3
movq %r15, %rdi
movq %rbx, %rdx
movl %ebp, %ecx
callq 0x45d1fb
testl %eax, %eax
jne 0x45c900
incl %r12d
addq $0x40, %r13
jmp 0x45c8ca
xorl %eax, %eax
jmp 0x45c903
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3ExprImpliesExpr
SQLITE_PRIVATE int sqlite3ExprImpliesExpr(Parse *pParse, Expr *pE1, Expr *pE2, int iTab){
  if( sqlite3ExprCompare(pParse, pE1, pE2, iTab)==0 ){
    return 1;
  }
  if( pE2->op==TK_OR
   && (sqlite3ExprImpliesExpr(pParse, pE1, pE2->pLeft, iTab)
             || sqlite3ExprImpliesExpr(pParse, pE1, pE2->pRight, iTab) )
  ){
    return 1;
  }
  if( pE2->op==TK_NOTNULL && pE1->op!=TK_ISNULL && pE1->op!=TK_IS ){
    Expr *pX = sqlite3ExprSkipCollate(pE1->pLeft);
    testcase( pX!=pE1->pLeft );
    if( sqlite3ExprCompare(pParse, pX, pE2->pLeft, iTab)==0 ) return 1;
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
callq 0x44bddb
pushq $0x1
popq %rbx
testl %eax, %eax
je 0x45d282
movb (%r15), %al
cmpb $0x2b, %al
jne 0x45d24e
movq 0x10(%r15), %rdx
movq %r14, %rdi
movq %r12, %rsi
movl %ebp, %ecx
callq 0x45d1fb
testl %eax, %eax
jne 0x45d282
movq 0x18(%r15), %rdx
movq %r14, %rdi
movq %r12, %rsi
movl %ebp, %ecx
callq 0x45d1fb
testl %eax, %eax
jne 0x45d282
movb (%r15), %al
cmpb $0x33, %al
jne 0x45d280
movzbl (%r12), %eax
cmpl $0x2d, %eax
je 0x45d280
cmpl $0x32, %eax
je 0x45d280
movq 0x10(%r12), %rdi
callq 0x44b988
movq 0x10(%r15), %rdx
movq %r14, %rdi
movq %rax, %rsi
movl %ebp, %ecx
callq 0x44bddb
testl %eax, %eax
je 0x45d282
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: exprIdxCover
static int exprIdxCover(Walker *pWalker, Expr *pExpr){
  if( pExpr->op==TK_COLUMN
   && pExpr->iTable==pWalker->u.pIdxCover->iCur
   && sqlite3ColumnOfIndex(pWalker->u.pIdxCover->pIdx, pExpr->iColumn)<0
  ){
    pWalker->eCode = 1;
    return WRC_Abort;
  }
  return WRC_Continue;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
xorl %ebx, %ebx
cmpb $-0x62, (%rsi)
jne 0x45d2c0
movq %rdi, %r14
movl 0x2c(%rsi), %ecx
movq 0x28(%rdi), %rax
cmpl 0x8(%rax), %ecx
jne 0x45d2c0
movq (%rax), %rdi
movswl 0x30(%rsi), %esi
callq 0x44b4cd
testw %ax, %ax
jns 0x45d2c0
movb $0x1, 0x24(%r14)
pushq $0x2
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: translateColumnToCopy
static void translateColumnToCopy(
  Parse *pParse,      /* Parsing context */
  int iStart,         /* Translate from this opcode to the end */
  int iTabCur,        /* OP_Column/OP_Rowid references to this table */
  int iRegister,      /* The first column is in this register */
  int bIncrRowid      /* If non-zero, transform OP_rowid to OP_AddImm(1) */
){
  Vdbe *v = pParse->pVdbe;
  VdbeOp *pOp = sqlite3VdbeGetOp(v, iStart);
  int iEnd = sqlite3VdbeCurrentAddr(v);
  if( pParse->db->mallocFailed ) return;
  for(; iStart<iEnd; iStart++, pOp++){
    if( pOp->p1!=iTabCur ) continue;
    if( pOp->opcode==OP_Column ){
      pOp->opcode = OP_Copy;
      pOp->p1 = pOp->p2 + iRegister;
      pOp->p2 = pOp->p3;
      pOp->p3 = 0;
    }else if( pOp->opcode==OP_Rowid ){
      if( bIncrRowid ){
        /* Increment the value stored in the P2 operand of the OP_Rowid. */
        pOp->opcode = OP_AddImm;
        pOp->p1 = pOp->p2;
        pOp->p2 = 1;
      }else{
        pOp->opcode = OP_Null;
        pOp->p1 = 0;
        pOp->p3 = 0;
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq (%rdi), %rax
cmpb $0x0, 0x61(%rax)
je 0x45db85
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl %r8d, %ebx
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, %r15d
movq 0x10(%rdi), %rdi
movl 0xb8(%rdi), %r12d
callq 0x44864c
addq $0xc, %rax
cmpl %r12d, %r15d
jge 0x45db7c
cmpl %r14d, -0x8(%rax)
jne 0x45dbf5
movzbl -0xc(%rax), %ecx
cmpl $0x81, %ecx
je 0x45dbd3
cmpl $0x5a, %ecx
jne 0x45dbf5
movb $0x4e, -0xc(%rax)
movl -0x4(%rax), %ecx
addl %ebp, %ecx
movl %ecx, -0x8(%rax)
movl (%rax), %ecx
movl %ecx, -0x4(%rax)
jmp 0x45dbf2
testl %ebx, %ebx
je 0x45dbea
movb $0x53, -0xc(%rax)
movl -0x4(%rax), %ecx
movl %ecx, -0x8(%rax)
movl $0x1, -0x4(%rax)
jmp 0x45dbf5
movb $0x49, -0xc(%rax)
andl $0x0, -0x8(%rax)
andl $0x0, (%rax)
incl %r15d
addq $0x18, %rax
jmp 0x45dba4
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/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_BLOB entries at the beginning
  ** and end of the affinity string.
  */
  while( n>0 && zAff[0]==SQLITE_AFF_BLOB ){
    n--;
    base++;
    zAff++;
  }
  while( n>1 && zAff[n-1]==SQLITE_AFF_BLOB ){
    n--;
  }

  /* Code the OP_Affinity opcode if there is anything left to do. */
  if( n>0 ){
    sqlite3VdbeAddOp4(v, OP_Affinity, base, n, 0, zAff, n);
  }
}

// Assembly:
pushq %rax
testq %rcx, %rcx
je 0x45e4b8
movq %rcx, %r9
movl %esi, %eax
movq 0x10(%rdi), %rdi
movl %edx, %ecx
sarl $0x1f, %ecx
andl %edx, %ecx
testl %edx, %edx
jle 0x45e48a
cmpb $0x41, (%r9)
jne 0x45e488
decl %edx
incl %eax
incq %r9
jmp 0x45e475
movl %edx, %ecx
movl %ecx, %edx
movq %rdx, %rcx
cmpl $0x2, %ecx
jl 0x45e4a2
leaq -0x1(%rcx), %rdx
cmpb $0x41, -0x1(%r9,%rcx)
je 0x45e48c
jmp 0x45e4a8
cmpq $0x1, %rcx
jne 0x45e4b8
movl %ecx, (%rsp)
pushq $0x5b
popq %rsi
movl %eax, %edx
xorl %r8d, %r8d
callq 0x4485b6
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: whereIndexExprTransNode
static int whereIndexExprTransNode(Walker *p, Expr *pExpr){
  IdxExprTrans *pX = p->u.pIdxTrans;
  if( sqlite3ExprCompare(0, pExpr, pX->pIdxExpr, pX->iTabCur)==0 ){
    pExpr->op = TK_COLUMN;
    pExpr->iTable = pX->iIdxCur;
    pExpr->iColumn = pX->iIdxCol;
    pExpr->pTab = 0;
    return WRC_Prune;
  }else{
    return WRC_Continue;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq 0x28(%rdi), %r15
movq (%r15), %rdx
movl 0x8(%r15), %ecx
xorl %r14d, %r14d
xorl %edi, %edi
callq 0x44bddb
testl %eax, %eax
jne 0x45e58b
movb $-0x62, (%rbx)
movl 0xc(%r15), %eax
movl %eax, 0x2c(%rbx)
movzwl 0x10(%r15), %eax
movw %ax, 0x30(%rbx)
andq $0x0, 0x40(%rbx)
pushq $0x1
popq %r14
movl %r14d, %eax
popq %rbx
popq %r14
popq %r15
retq