// File: /workspace/github_c_makefile_star2_O2/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, %r15d
movq %rdi, %rbx
movq (%rdi), %r12
callq 0x24dfbd
movq %r12, 0x8(%rsp)
movq 0x20(%r12), %rax
xorl %ecx, %ecx
testb $0x20, 0x9(%rax)
sete %cl
xorl %eax, %eax
testl %r15d, %r15d
cmovlel %eax, %r15d
leaq (%rbx,%rcx,8), %rbp
addq $0x18, %rbp
leaq 0x11b0b7(%rip), %r12    # 0x368ea9
xorl %r13d, %r13d
cmpq %r13, %r15
je 0x24de28
movq (%r14,%r13,8), %rdi
callq 0x2243e3
testq %rax, %rax
je 0x24de23
movq %r12, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x22132b
movq %rax, (%rbp,%r13,8)
testq %rax, %rax
je 0x24df00
incq %r13
jmp 0x24ddf5
movq 0x8(%rsp), %r15
movq 0x18(%r15), %rax
movl 0x80(%rax), %eax
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
andl $0x0, 0x10(%rdi)
movl %eax, 0x14(%rdi)
andl $0x0, 0x18(%rdi)
andw $0x0, 0x1c(%rdi)
leaq 0x129856(%rip), %rsi    # 0x3776af
callq 0x221073
movq 0x20(%rbx), %rdx
testq %rdx, %rdx
je 0x24de7a
leaq 0x129849(%rip), %rsi    # 0x3776b7
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x221594
movq 0x20(%r15), %rax
movq (%rax), %rsi
leaq 0x10(%rsp), %rdi
callq 0x221073
movq 0x18(%rbx), %rdx
testq %rdx, %rdx
pushq $0x7
popq %rbp
je 0x24deaa
leaq 0x12ab83(%rip), %rsi    # 0x378a21
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x221594
leaq 0x10(%rsp), %rdi
callq 0x221200
testq %rax, %rax
je 0x24df03
movq %rax, %r14
movq 0x18(%r15), %rdi
leaq 0x8(%rbx), %rcx
pushq $-0x1
popq %rdx
movq %rax, %rsi
xorl %r8d, %r8d
callq 0x228088
movl %eax, %ebp
movq %r14, %rdi
callq 0x21f7f9
testl %ebp, %ebp
je 0x24df14
movq 0x18(%r15), %rdi
callq 0x2280b1
leaq 0x11afb9(%rip), %rdi    # 0x368ea9
movq %rax, %rsi
xorl %eax, %eax
callq 0x22132b
movq %rax, 0x10(%r15)
jmp 0x24df03
pushq $0x7
popq %rbp
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 0x24df27