// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/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);
  }
#ifndef SQLITE_OMIT_WINDOWFUNC
  if( (p->op==TK_FUNCTION || p->op==TK_AGG_FUNCTION) && p->y.pWin ){
    mask |= sqlite3WhereExprListUsage(pMaskSet, p->y.pWin->pPartition);
    mask |= sqlite3WhereExprListUsage(pMaskSet, p->y.pWin->pOrderBy);
    mask |= sqlite3WhereExprUsage(pMaskSet, p->y.pWin->pFilter);
  }
#endif
  return mask;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movb (%rsi), %al
cmpb $-0x5c, %al
jne 0x2e2a92
testb $0x8, 0x4(%rbx)
jne 0x2e2a92
movslq 0x4(%r14), %rax
testq %rax, %rax
jle 0x2e2a9e
movl 0x2c(%rbx), %edx
xorl %r15d, %r15d
xorl %ecx, %ecx
cmpl %edx, 0x8(%r14,%rcx,4)
je 0x2e2b60
incq %rcx
cmpq %rcx, %rax
jne 0x2e2a7d
jmp 0x2e2aa1
movzwl 0x5(%rbx), %ecx
testl $0x8040, %ecx           # imm = 0x8040
je 0x2e2ab3
xorl %r15d, %r15d
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpb $-0x50, %al
jne 0x2e2add
movslq 0x4(%r14), %rax
testq %rax, %rax
jle 0x2e2add
movl 0x2c(%rbx), %edx
xorl %r15d, %r15d
xorl %ecx, %ecx
cmpl %edx, 0x8(%r14,%rcx,4)
je 0x2e2c67
incq %rcx
cmpq %rcx, %rax
jne 0x2e2ac8
jmp 0x2e2ae0
xorl %r15d, %r15d
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x2e2af4
movq %r14, %rdi
callq 0x2e2a4c
orq %rax, %r15
movq 0x18(%rbx), %rsi
testq %rsi, %rsi
je 0x2e2b07
movq %r14, %rdi
callq 0x2e2a4c
jmp 0x2e2b85
movl 0x4(%rbx), %eax
btl $0xb, %eax
jb 0x2e2b6e
movq 0x20(%rbx), %r12
testq %r12, %r12
je 0x2e2b88
movq %rbx, 0x8(%rsp)
cmpl $0x0, (%r12)
jle 0x2e2c8b
leaq 0x8(%r12), %rbp
xorl %ebx, %ebx
xorl %r13d, %r13d
movq (%rbp), %rsi
testq %rsi, %rsi
je 0x2e2b46
movq %r14, %rdi
callq 0x2e2a4c
jmp 0x2e2b48
xorl %eax, %eax
orq %rax, %r13
incq %rbx
movslq (%r12), %rax
addq $0x18, %rbp
cmpq %rax, %rbx
jl 0x2e2b33
jmp 0x2e2c8e
movl $0x1, %r15d
shlq %cl, %r15
jmp 0x2e2aa1
testb $0x20, %al
je 0x2e2b79
movl $0x1, (%r14)
movq 0x20(%rbx), %rsi
movq %r14, %rdi
callq 0x2e27c8
orq %rax, %r15
movzbl (%rbx), %eax
cmpl $0xa9, %eax
je 0x2e2b9d
cmpl $0xa5, %eax
jne 0x2e2aa1
movq 0x40(%rbx), %rax
testq %rax, %rax
je 0x2e2aa1
movq 0x10(%rax), %r13
testq %r13, %r13
movq %rbx, 0x8(%rsp)
je 0x2e2bf2
cmpl $0x0, (%r13)
jle 0x2e2bf2
leaq 0x8(%r13), %rbp
xorl %ebx, %ebx
xorl %r12d, %r12d
movq (%rbp), %rsi
testq %rsi, %rsi
je 0x2e2bdb
movq %r14, %rdi
callq 0x2e2a4c
jmp 0x2e2bdd
xorl %eax, %eax
orq %rax, %r12
incq %rbx
movslq (%r13), %rax
addq $0x18, %rbp
cmpq %rax, %rbx
jl 0x2e2bc8
jmp 0x2e2bf5
xorl %r12d, %r12d
movq %r15, 0x10(%rsp)
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rax
movq 0x18(%rax), %rbp
testq %rbp, %rbp
je 0x2e2c45
cmpl $0x0, (%rbp)
jle 0x2e2c45
leaq 0x8(%rbp), %rbx
xorl %r15d, %r15d
xorl %r13d, %r13d
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x2e2c2e
movq %r14, %rdi
callq 0x2e2a4c
jmp 0x2e2c30
xorl %eax, %eax
orq %rax, %r13
incq %r15
movslq (%rbp), %rax
addq $0x18, %rbx
cmpq %rax, %r15
jl 0x2e2c1c
jmp 0x2e2c48
xorl %r13d, %r13d
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rax
movq 0x48(%rax), %rsi
testq %rsi, %rsi
je 0x2e2c75
movq %r14, %rdi
callq 0x2e2a4c
movq %rax, %r15
jmp 0x2e2c78
movl $0x1, %r15d
shlq %cl, %r15
jmp 0x2e2ae0
xorl %r15d, %r15d
movq 0x10(%rsp), %rcx
orq %r13, %r12
orq %rcx, %r15
orq %r12, %r15
jmp 0x2e2aa1
xorl %r13d, %r13d
orq %r13, %r15
movq 0x8(%rsp), %rbx
jmp 0x2e2b88