// File: /workspace/github_c_makefile_star2_O3/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), %cl
movl 0x4(%rsi), %eax
cmpb $-0x5c, %cl
jne 0x2d9607
testb $0x8, %al
jne 0x2d9616
movslq 0x4(%r14), %rax
testq %rax, %rax
jle 0x2d960e
movl 0x2c(%rbx), %edx
xorl %r15d, %r15d
xorl %ecx, %ecx
cmpl %edx, 0x8(%r14,%rcx,4)
je 0x2d96de
incq %rcx
cmpq %rcx, %rax
jne 0x2d95ef
jmp 0x2d9801
testl $0x804000, %eax         # imm = 0x804000
je 0x2d9626
xorl %r15d, %r15d
jmp 0x2d9801
xorl %r15d, %r15d
testl $0x804000, %eax         # imm = 0x804000
jne 0x2d9801
jmp 0x2d9654
cmpb $-0x50, %cl
jne 0x2d9651
movslq 0x4(%r14), %rax
testq %rax, %rax
jle 0x2d9651
movl 0x2c(%rbx), %edx
xorl %r15d, %r15d
xorl %ecx, %ecx
cmpl %edx, 0x8(%r14,%rcx,4)
je 0x2d9813
incq %rcx
cmpq %rcx, %rax
jne 0x2d963c
jmp 0x2d9654
xorl %r15d, %r15d
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x2d9668
movq %r14, %rdi
callq 0x2d95bc
orq %rax, %r15
movq 0x18(%rbx), %rsi
testq %rsi, %rsi
je 0x2d967e
movq %r14, %rdi
callq 0x2d95bc
jmp 0x2d9703
movl 0x4(%rbx), %eax
btl $0xb, %eax
jb 0x2d96ec
movq 0x20(%rbx), %rdx
testq %rdx, %rdx
je 0x2d9706
movq %r15, 0x8(%rsp)
movl (%rdx), %ecx
testl %ecx, %ecx
jle 0x2d9821
leaq 0x8(%rdx), %rbp
xorl %r12d, %r12d
xorl %r13d, %r13d
movq (%rbp), %rsi
testq %rsi, %rsi
je 0x2d96c5
movq %r14, %rdi
movq %rdx, %r15
callq 0x2d95bc
movq %r15, %rdx
movl (%r15), %ecx
jmp 0x2d96c7
xorl %eax, %eax
orq %rax, %r13
incq %r12
movslq %ecx, %rax
addq $0x18, %rbp
cmpq %rax, %r12
jl 0x2d96a9
jmp 0x2d9824
movl $0x1, %r15d
shlq %cl, %r15
jmp 0x2d9801
testb $0x20, %al
je 0x2d96f7
movl $0x1, (%r14)
movq 0x20(%rbx), %rsi
movq %r14, %rdi
callq 0x2d9335
orq %rax, %r15
movzbl (%rbx), %eax
cmpl $0xa9, %eax
je 0x2d971b
cmpl $0xa5, %eax
jne 0x2d9801
movq 0x40(%rbx), %rax
testq %rax, %rax
je 0x2d9801
movq 0x10(%rax), %r13
testq %r13, %r13
je 0x2d977d
movl (%r13), %ecx
testl %ecx, %ecx
jle 0x2d977d
movq %rbx, 0x10(%rsp)
leaq 0x8(%r13), %rbp
xorl %ebx, %ebx
xorl %r12d, %r12d
movq (%rbp), %rsi
testq %rsi, %rsi
je 0x2d975e
movq %r14, %rdi
callq 0x2d95bc
movl (%r13), %ecx
jmp 0x2d9760
xorl %eax, %eax
orq %rax, %r12
incq %rbx
movslq %ecx, %rax
addq $0x18, %rbp
cmpq %rax, %rbx
jl 0x2d9747
movq 0x10(%rsp), %rbx
movq 0x40(%rbx), %rax
jmp 0x2d9780
xorl %r12d, %r12d
movq 0x18(%rax), %rbp
testq %rbp, %rbp
je 0x2d97dd
movl (%rbp), %ecx
testl %ecx, %ecx
jle 0x2d97dd
movq %rbx, 0x10(%rsp)
movq %r15, 0x8(%rsp)
leaq 0x8(%rbp), %rbx
xorl %r15d, %r15d
xorl %r13d, %r13d
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x2d97b9
movq %r14, %rdi
callq 0x2d95bc
movl (%rbp), %ecx
jmp 0x2d97bb
xorl %eax, %eax
orq %rax, %r13
incq %r15
movslq %ecx, %rax
addq $0x18, %rbx
cmpq %rax, %r15
jl 0x2d97a4
movq 0x10(%rsp), %rax
movq 0x40(%rax), %rax
movq 0x8(%rsp), %r15
jmp 0x2d97e0
xorl %r13d, %r13d
movq 0x48(%rax), %rsi
testq %rsi, %rsi
je 0x2d97f3
movq %r14, %rdi
callq 0x2d95bc
jmp 0x2d97f5
xorl %eax, %eax
orq %r13, %r12
orq %r15, %rax
orq %r12, %rax
movq %rax, %r15
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %r15d
shlq %cl, %r15
jmp 0x2d9654
xorl %r13d, %r13d
movq 0x8(%rsp), %r15
orq %r13, %r15
jmp 0x2d9706