// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: exprSelectUsage
static Bitmask exprSelectUsage(WhereMaskSet *pMaskSet, Select *pS){
  Bitmask mask = 0;
  while( pS ){
    SrcList *pSrc = pS->pSrc;
    mask |= sqlite3WhereExprListUsage(pMaskSet, pS->pEList);
    mask |= sqlite3WhereExprListUsage(pMaskSet, pS->pGroupBy);
    mask |= sqlite3WhereExprListUsage(pMaskSet, pS->pOrderBy);
    mask |= sqlite3WhereExprUsage(pMaskSet, pS->pWhere);
    mask |= sqlite3WhereExprUsage(pMaskSet, pS->pHaving);
    if( ALWAYS(pSrc!=0) ){
      int i;
      for(i=0; i<pSrc->nSrc; i++){
        mask |= exprSelectUsage(pMaskSet, pSrc->a[i].pSelect);
        mask |= sqlite3WhereExprUsage(pMaskSet, pSrc->a[i].pOn);
        if( pSrc->a[i].fg.isTabFunc ){
          mask |= sqlite3WhereExprListUsage(pMaskSet, pSrc->a[i].u1.pFuncArg);
        }
      }
    }
    pS = pS->pPrior;
  }
  return mask;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rsi, %rsi
je 0x2e2a31
movq %rdi, %r15
movq $0x0, (%rsp)
movq %rdi, 0x20(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x20(%rsi), %rbx
movq 0x28(%rsi), %r13
testq %rbx, %rbx
je 0x2e2838
cmpl $0x0, (%rbx)
jle 0x2e2838
leaq 0x8(%rbx), %r12
xorl %r14d, %r14d
xorl %ebp, %ebp
movq (%r12), %rsi
testq %rsi, %rsi
je 0x2e2822
movq %r15, %rdi
callq 0x2e2a4c
jmp 0x2e2824
xorl %eax, %eax
orq %rax, %rbp
incq %r14
movslq (%rbx), %rax
addq $0x18, %r12
cmpq %rax, %r14
jl 0x2e280f
jmp 0x2e283a
xorl %ebp, %ebp
movq 0x8(%rsp), %rax
movq 0x38(%rax), %r12
testq %r12, %r12
movq %r13, 0x18(%rsp)
je 0x2e2888
cmpl $0x0, (%r12)
jle 0x2e2888
leaq 0x8(%r12), %r13
xorl %r14d, %r14d
xorl %ebx, %ebx
movq (%r13), %rsi
testq %rsi, %rsi
je 0x2e2871
movq %r15, %rdi
callq 0x2e2a4c
jmp 0x2e2873
xorl %eax, %eax
orq %rax, %rbx
incq %r14
movslq (%r12), %rax
addq $0x18, %r13
cmpq %rax, %r14
jl 0x2e285e
jmp 0x2e288a
xorl %ebx, %ebx
movq 0x8(%rsp), %rax
movq 0x48(%rax), %rcx
testq %rcx, %rcx
je 0x2e28ec
cmpl $0x0, (%rcx)
jle 0x2e28ec
leaq 0x8(%rcx), %r12
xorl %r14d, %r14d
xorl %r13d, %r13d
movq %rbp, 0x10(%rsp)
movq (%r12), %rsi
testq %rsi, %rsi
je 0x2e28d6
movq %r15, %rdi
movq %rbx, %rbp
movq %r15, %rbx
movq %rcx, %r15
callq 0x2e2a4c
movq %r15, %rcx
movq %rbx, %r15
movq %rbp, %rbx
movq 0x10(%rsp), %rbp
jmp 0x2e28d8
xorl %eax, %eax
orq %rax, %r13
incq %r14
movslq (%rcx), %rax
addq $0x18, %r12
cmpq %rax, %r14
jl 0x2e28ac
jmp 0x2e28ef
xorl %r13d, %r13d
movq 0x8(%rsp), %r14
movq 0x30(%r14), %rsi
testq %rsi, %rsi
je 0x2e290a
movq %r15, %rdi
callq 0x2e2a4c
movq %rax, %r12
jmp 0x2e290d
xorl %r12d, %r12d
movq 0x40(%r14), %rsi
testq %rsi, %rsi
je 0x2e2920
movq %r15, %rdi
callq 0x2e2a4c
jmp 0x2e2922
xorl %eax, %eax
orq %rax, %r12
orq (%rsp), %rbp
orq %rbx, %rbp
orq %r13, %rbp
orq %r12, %rbp
movq 0x18(%rsp), %r13
testq %r13, %r13
je 0x2e2a16
cmpl $0x0, (%r13)
jle 0x2e2a16
leaq 0x8(%r13), %rax
movq %rax, 0x10(%rsp)
xorl %r12d, %r12d
imulq $0x70, %r12, %r14
movq 0x10(%rsp), %rbx
movq 0x28(%rbx,%r14), %rsi
movq %r15, %rdi
callq 0x2e27c8
movq %r15, %rdi
movq %rax, %r15
movq 0x48(%rbx,%r14), %rsi
testq %rsi, %rsi
je 0x2e2987
movq %rdi, %rbx
callq 0x2e2a4c
jmp 0x2e298c
movq %rdi, %rbx
xorl %eax, %eax
addq 0x10(%rsp), %r14
movq %r15, %rcx
orq %rbp, %rcx
orq %rax, %rcx
testb $0x4, 0x3d(%r14)
jne 0x2e29a6
movq %rbx, %r15
jmp 0x2e2a01
movq 0x60(%r14), %r13
testq %r13, %r13
movq %rcx, (%rsp)
je 0x2e29ee
cmpl $0x0, (%r13)
jle 0x2e29ee
leaq 0x8(%r13), %r14
xorl %r15d, %r15d
xorl %ebp, %ebp
movq (%r14), %rsi
testq %rsi, %rsi
je 0x2e29d7
movq 0x20(%rsp), %rdi
callq 0x2e2a4c
jmp 0x2e29d9
xorl %eax, %eax
orq %rax, %rbp
incq %r15
movslq (%r13), %rax
addq $0x18, %r14
cmpq %rax, %r15
jl 0x2e29c3
jmp 0x2e29f0
xorl %ebp, %ebp
movq (%rsp), %rcx
orq %rbp, %rcx
movq 0x20(%rsp), %r15
movq 0x18(%rsp), %r13
incq %r12
movslq (%r13), %rax
movq %rcx, %rbp
cmpq %rax, %r12
jl 0x2e2957
jmp 0x2e2a19
movq %rbp, %rcx
movq %rcx, (%rsp)
movq 0x8(%rsp), %rsi
movq 0x50(%rsi), %rsi
testq %rsi, %rsi
jne 0x2e27ef
jmp 0x2e2a39
movq $0x0, (%rsp)
movq (%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq