// File: /workspace/github_c_makefile_star2_O3/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:
testq %rsi, %rsi
je 0x2d95b6
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r15
xorl %ecx, %ecx
movq %rdi, 0x20(%rsp)
movq %rcx, 0x10(%rsp)
movq %rsi, (%rsp)
movq 0x20(%rsi), %rbx
movq 0x28(%rsi), %r13
testq %rbx, %rbx
je 0x2d93a6
movl (%rbx), %ecx
testl %ecx, %ecx
jle 0x2d93a6
leaq 0x8(%rbx), %r12
xorl %r14d, %r14d
xorl %ebp, %ebp
movq (%r12), %rsi
testq %rsi, %rsi
je 0x2d9390
movq %r15, %rdi
callq 0x2d95bc
movl (%rbx), %ecx
jmp 0x2d9392
xorl %eax, %eax
orq %rax, %rbp
incq %r14
movslq %ecx, %rax
addq $0x18, %r12
cmpq %rax, %r14
jl 0x2d937b
jmp 0x2d93a8
xorl %ebp, %ebp
movq (%rsp), %rax
movq 0x38(%rax), %r12
testq %r12, %r12
movq %r13, 0x18(%rsp)
je 0x2d93f9
movl (%r12), %ecx
testl %ecx, %ecx
jle 0x2d93f9
leaq 0x8(%r12), %r13
xorl %r14d, %r14d
xorl %ebx, %ebx
movq (%r13), %rsi
testq %rsi, %rsi
je 0x2d93e3
movq %r15, %rdi
callq 0x2d95bc
movl (%r12), %ecx
jmp 0x2d93e5
xorl %eax, %eax
orq %rax, %rbx
incq %r14
movslq %ecx, %rax
addq $0x18, %r13
cmpq %rax, %r14
jl 0x2d93cc
jmp 0x2d93fb
xorl %ebx, %ebx
movq (%rsp), %rax
movq 0x48(%rax), %rdx
testq %rdx, %rdx
je 0x2d945f
movl (%rdx), %ecx
testl %ecx, %ecx
jle 0x2d945f
leaq 0x8(%rdx), %r12
xorl %r14d, %r14d
xorl %r13d, %r13d
movq %rbp, 0x8(%rsp)
movq (%r12), %rsi
testq %rsi, %rsi
je 0x2d9449
movq %r15, %rdi
movq %rbx, %rbp
movq %r15, %rbx
movq %rdx, %r15
callq 0x2d95bc
movq %r15, %rdx
movq %rbx, %r15
movq %rbp, %rbx
movq 0x8(%rsp), %rbp
movl (%rdx), %ecx
jmp 0x2d944b
xorl %eax, %eax
orq %rax, %r13
incq %r14
movslq %ecx, %rax
addq $0x18, %r12
cmpq %rax, %r14
jl 0x2d941d
jmp 0x2d9462
xorl %r13d, %r13d
movq (%rsp), %r14
movq 0x30(%r14), %rsi
testq %rsi, %rsi
je 0x2d947c
movq %r15, %rdi
callq 0x2d95bc
movq %rax, %r12
jmp 0x2d947f
xorl %r12d, %r12d
movq 0x40(%r14), %rsi
testq %rsi, %rsi
je 0x2d9492
movq %r15, %rdi
callq 0x2d95bc
jmp 0x2d9494
xorl %eax, %eax
orq %rax, %r12
orq 0x10(%rsp), %rbp
orq %rbx, %rbp
orq %r13, %rbp
orq %r12, %rbp
movq 0x18(%rsp), %r13
testq %r13, %r13
je 0x2d9592
cmpl $0x0, (%r13)
jle 0x2d9592
leaq 0x8(%r13), %rax
movq %rax, 0x8(%rsp)
xorl %r12d, %r12d
imulq $0x70, %r12, %r14
movq 0x8(%rsp), %rbx
movq 0x28(%rbx,%r14), %rsi
movq %r15, %rdi
callq 0x2d9335
movq %rax, %rcx
movq 0x48(%rbx,%r14), %rsi
testq %rsi, %rsi
je 0x2d9500
movq %r15, %rbx
movq %r15, %rdi
movq %rcx, %r15
callq 0x2d95bc
movq %r15, %rcx
jmp 0x2d9505
movq %r15, %rbx
xorl %eax, %eax
addq 0x8(%rsp), %r14
orq %rbp, %rcx
orq %rax, %rcx
testb $0x4, 0x3d(%r14)
jne 0x2d951c
movq %rbx, %r15
jmp 0x2d957d
movq %rcx, 0x10(%rsp)
movq 0x60(%r14), %r13
testq %r13, %r13
je 0x2d9569
movl (%r13), %ecx
testl %ecx, %ecx
jle 0x2d9569
leaq 0x8(%r13), %r14
xorl %r15d, %r15d
xorl %ebp, %ebp
movq (%r14), %rsi
testq %rsi, %rsi
je 0x2d9553
movq 0x20(%rsp), %rdi
callq 0x2d95bc
movl (%r13), %ecx
jmp 0x2d9555
xorl %eax, %eax
orq %rax, %rbp
incq %r15
movslq %ecx, %rax
addq $0x18, %r14
cmpq %rax, %r15
jl 0x2d953b
jmp 0x2d956b
xorl %ebp, %ebp
movq 0x10(%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 0x2d94ca
jmp 0x2d9595
movq %rbp, %rcx
movq (%rsp), %rsi
movq 0x50(%rsi), %rsi
testq %rsi, %rsi
jne 0x2d9356
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2d95b8
xorl %ecx, %ecx
movq %rcx, %rax
retq