// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: pragmaVtabConnect
static int pragmaVtabConnect(
  sqlite3 *db,
  void *pAux,
  int argc, const char *const*argv,
  sqlite3_vtab **ppVtab,
  char **pzErr
){
  const PragmaName *pPragma = (const PragmaName*)pAux;
  PragmaVtab *pTab = 0;
  int rc;
  int i, j;
  char cSep = '(';
  StrAccum acc;
  char zBuf[200];

  UNUSED_PARAMETER(argc);
  UNUSED_PARAMETER(argv);
  sqlite3StrAccumInit(&acc, 0, zBuf, sizeof(zBuf), 0);
  sqlite3_str_appendall(&acc, "CREATE TABLE x");
  for(i=0, j=pPragma->iPragCName; i<pPragma->nPragCName; i++, j++){
    sqlite3_str_appendf(&acc, "%c\"%s\"", cSep, pragCName[j]);
    cSep = ',';
  }
  if( i==0 ){
    sqlite3_str_appendf(&acc, "(\"%s\"", pPragma->zName);
    i++;
  }
  j = 0;
  if( pPragma->mPragFlg & PragFlg_Result1 ){
    sqlite3_str_appendall(&acc, ",arg HIDDEN");
    j++;
  }
  if( pPragma->mPragFlg & (PragFlg_SchemaOpt|PragFlg_SchemaReq) ){
    sqlite3_str_appendall(&acc, ",schema HIDDEN");
    j++;
  }
  sqlite3_str_append(&acc, ")", 1);
  sqlite3StrAccumFinish(&acc);
  assert( strlen(zBuf) < sizeof(zBuf)-1 );
  rc = sqlite3_declare_vtab(db, zBuf);
  if( rc==SQLITE_OK ){
    pTab = (PragmaVtab*)sqlite3_malloc(sizeof(PragmaVtab));
    if( pTab==0 ){
      rc = SQLITE_NOMEM;
    }else{
      memset(pTab, 0, sizeof(PragmaVtab));
      pTab->pName = pPragma;
      pTab->db = db;
      pTab->iHidden = i;
      pTab->nHidden = j;
    }
  }else{
    *pzErr = sqlite3_mprintf("%s", sqlite3_errmsg(db));
  }

  *ppVtab = (sqlite3_vtab*)pTab;
  return rc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r9, 0x38(%rsp)
movq %r8, %r14
movq %rsi, %r15
movq %rdi, %rbp
leaq 0x40(%rsp), %rax
leaq 0x10(%rsp), %rdi
movq %rax, 0x8(%rdi)
xorl %ebx, %ebx
movq %rbx, (%rdi)
movl $0xc8, 0x10(%rdi)
movq %rbx, 0x14(%rdi)
movw $0x0, 0x1c(%rdi)
leaq 0x12e24b(%rip), %rsi    # 0x3e0937
movl $0xe, %edx
callq 0x27e077
cmpb $0x0, 0xb(%r15)
movq %rbp, 0x8(%rsp)
je 0x2b275a
movq %r14, 0x30(%rsp)
movzbl 0xa(%r15), %r12d
shll $0x3, %r12d
movl $0x28, %edx
leaq 0x20fbb4(%rip), %r14    # 0x4c22d0
leaq 0x12e223(%rip), %r13    # 0x3e0946
leaq 0x10(%rsp), %rbp
xorl %ebx, %ebx
leaq (%r12,%rbx,8), %rax
movq (%r14,%rax), %rcx
movq %rbp, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x27e729
movzbl 0xb(%r15), %eax
incq %rbx
movl $0x2c, %edx
cmpl %eax, %ebx
jb 0x2b272a
movq 0x30(%rsp), %r14
movq 0x8(%rsp), %rbp
testl %ebx, %ebx
jne 0x2b2779
movq (%r15), %rdx
leaq 0x12e1e5(%rip), %rsi    # 0x3e094d
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x27e729
movl $0x1, %ebx
xorl %r12d, %r12d
testb $0x20, 0x9(%r15)
je 0x2b279f
leaq 0x12e1c9(%rip), %rsi    # 0x3e0953
leaq 0x10(%rsp), %rdi
movl $0xb, %edx
callq 0x27e077
movl $0x1, %r12d
cmpb $0x40, 0x9(%r15)
jb 0x2b27bf
leaq 0x12e1b2(%rip), %rsi    # 0x3e095f
leaq 0x10(%rsp), %rdi
movl $0xe, %edx
callq 0x27e077
incl %r12d
movl 0x28(%rsp), %eax
leal 0x1(%rax), %ecx
cmpl 0x20(%rsp), %ecx
jae 0x2b27db
movl %ecx, 0x28(%rsp)
movq 0x18(%rsp), %rcx
movb $0x29, (%rcx,%rax)
jmp 0x2b27f1
leaq 0x12f053(%rip), %rsi    # 0x3e1835
leaq 0x10(%rsp), %rdi
movl $0x1, %edx
callq 0x27e2ca
leaq 0x10(%rsp), %rdi
callq 0x27e336
leaq 0x40(%rsp), %rsi
movq %rbp, %rdi
callq 0x28729d
testl %eax, %eax
je 0x2b2834
movl %eax, %r13d
movq %rbp, %rdi
callq 0x286451
leaq 0x11f9b3(%rip), %rdi    # 0x3d21d1
xorl %ebp, %ebp
movq %rax, %rsi
xorl %eax, %eax
callq 0x27e482
movq 0x38(%rsp), %rcx
movq %rax, (%rcx)
jmp 0x2b2883
callq 0x27bed9
testl %eax, %eax
je 0x2b2841
xorl %ebp, %ebp
jmp 0x2b284e
movl $0x30, %edi
callq 0x27c381
movq %rax, %rbp
xorl %r13d, %r13d
testq %rbp, %rbp
je 0x2b287b
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbp)
movups %xmm0, 0x10(%rbp)
movups %xmm0, (%rbp)
movq %r15, 0x20(%rbp)
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rbp)
movb %bl, 0x29(%rbp)
movb %r12b, 0x28(%rbp)
jmp 0x2b2883
movl $0x7, %r13d
xorl %ebp, %ebp
movq %rbp, (%r14)
movl %r13d, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq