// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: pragmaVtabFilter
static int pragmaVtabFilter(
  sqlite3_vtab_cursor *pVtabCursor,
  int idxNum, const char *idxStr,
  int argc, sqlite3_value **argv
){
  PragmaVtabCursor *pCsr = (PragmaVtabCursor*)pVtabCursor;
  PragmaVtab *pTab = (PragmaVtab*)(pVtabCursor->pVtab);
  int rc;
  int i, j;
  StrAccum acc;
  char *zSql;

  UNUSED_PARAMETER(idxNum);
  UNUSED_PARAMETER(idxStr);
  pragmaVtabCursorClear(pCsr);
  j = (pTab->pName->mPragFlg & PragFlg_Result1)!=0 ? 0 : 1;
  for(i=0; i<argc; i++, j++){
    const char *zText = (const char*)sqlite3_value_text(argv[i]);
    assert( j<ArraySize(pCsr->azArg) );
    assert( pCsr->azArg[j]==0 );
    if( zText ){
      pCsr->azArg[j] = sqlite3_mprintf("%s", zText);
      if( pCsr->azArg[j]==0 ){
        return SQLITE_NOMEM;
      }
    }
  }
  sqlite3StrAccumInit(&acc, 0, 0, 0, pTab->db->aLimit[SQLITE_LIMIT_SQL_LENGTH]);
  sqlite3_str_appendall(&acc, "PRAGMA ");
  if( pCsr->azArg[1] ){
    sqlite3_str_appendf(&acc, "%Q.", pCsr->azArg[1]);
  }
  sqlite3_str_appendall(&acc, pTab->pName->zName);
  if( pCsr->azArg[0] ){
    sqlite3_str_appendf(&acc, "=%Q", pCsr->azArg[0]);
  }
  zSql = sqlite3StrAccumFinish(&acc);
  if( zSql==0 ) return SQLITE_NOMEM;
  rc = sqlite3_prepare_v2(pTab->db, zSql, -1, &pCsr->pPragma, 0);
  sqlite3_free(zSql);
  if( rc!=SQLITE_OK ){
    pTab->base.zErrMsg = sqlite3_mprintf("%s", sqlite3_errmsg(pTab->db));
    return rc;
  }
  return pragmaVtabNext(pVtabCursor);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r14
movl %ecx, %ebp
movq %rdi, %rbx
movq (%rdi), %rax
movq %rax, 0x8(%rsp)
callq 0x2b2c11
testl %ebp, %ebp
jle 0x2b2a5a
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
xorl %ecx, %ecx
testb $0x20, 0x9(%rax)
sete %cl
movl %ebp, %r13d
leaq (%rbx,%rcx,8), %rbp
addq $0x18, %rbp
leaq 0x11f7b0(%rip), %r15    # 0x3d21d1
xorl %r12d, %r12d
movq (%r14,%r12,8), %rdi
movl $0x1, %esi
callq 0x281c96
testq %rax, %rax
je 0x2b2a52
movq %r15, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x27e482
movq %rax, (%rbp,%r12,8)
testq %rax, %rax
je 0x2b2b44
incq %r12
cmpq %r12, %r13
jne 0x2b2a24
movq 0x8(%rsp), %r15
movq 0x18(%r15), %rax
movl 0x80(%rax), %eax
xorl %ecx, %ecx
leaq 0x10(%rsp), %rdi
movl %ecx, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movl %eax, 0x14(%rdi)
movl %ecx, 0x18(%rdi)
movw $0x0, 0x1c(%rdi)
leaq 0x12df58(%rip), %rsi    # 0x3e09e4
movl $0x7, %edx
callq 0x27e077
movq 0x20(%rbx), %rdx
testq %rdx, %rdx
je 0x2b2ab2
leaq 0x12df46(%rip), %rsi    # 0x3e09ec
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x27e729
movq 0x20(%r15), %rax
movq (%rax), %rsi
leaq 0x10(%rsp), %rdi
callq 0x27e15a
movq 0x18(%rbx), %rdx
testq %rdx, %rdx
je 0x2b2adf
leaq 0x12f283(%rip), %rsi    # 0x3e1d56
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x27e729
leaq 0x10(%rsp), %rdi
callq 0x27e336
testq %rax, %rax
je 0x2b2b44
movq %rax, %r14
movq 0x18(%r15), %rdi
leaq 0x8(%rbx), %r9
movq $0x0, (%rsp)
movq %rax, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x80, %ecx
xorl %r8d, %r8d
callq 0x286af6
movl %eax, %ebp
movq %r14, %rdi
callq 0x27c490
testl %ebp, %ebp
je 0x2b2b5a
movq 0x18(%r15), %rdi
callq 0x286451
leaq 0x11f69d(%rip), %rdi    # 0x3d21d1
movq %rax, %rsi
xorl %eax, %eax
callq 0x27e482
movq %rax, 0x10(%r15)
jmp 0x2b2b49
movl $0x7, %ebp
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2b2b6d