// File: /workspace/github_c_makefile_star2_O2/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, 0x10(%rsp)
movq %r8, 0x18(%rsp)
movq %rsi, %rbx
leaq 0x40(%rsp), %rax
leaq 0x20(%rsp), %r13
movq %rax, 0x8(%r13)
andq $0x0, (%r13)
movl $0xc8, 0x10(%r13)
andq $0x0, 0x14(%r13)
movq %rdi, 0x8(%rsp)
andw $0x0, 0x1c(%r13)
leaq 0x129adf(%rip), %rsi    # 0x377602
movq %r13, %rdi
callq 0x221073
movq %rbx, %rcx
movzbl 0xa(%rbx), %ebx
shll $0x3, %ebx
pushq $0x28
popq %rdx
leaq 0x1e8771(%rip), %r12    # 0x4362b0
leaq 0x129acb(%rip), %rbp    # 0x377611
pushq $0x2c
popq %r15
xorl %r14d, %r14d
movq %rcx, (%rsp)
movzbl 0xb(%rcx), %eax
cmpl %eax, %r14d
jae 0x24db7b
leaq (%rbx,%r14,8), %rax
movq (%r12,%rax), %rcx
movq %r13, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x221594
movq (%rsp), %rcx
incq %r14
movl %r15d, %edx
jmp 0x24db51
testl %r14d, %r14d
jne 0x24db9e
pushq $0x1
popq %r14
movq (%rcx), %rdx
leaq 0x129a8a(%rip), %rsi    # 0x377618
leaq 0x20(%rsp), %rdi
xorl %eax, %eax
callq 0x221594
movq (%rsp), %rcx
movq 0x8(%rsp), %r15
movb 0x9(%rcx), %al
testb $0x20, %al
jne 0x24dbae
xorl %ebx, %ebx
jmp 0x24dbc8
leaq 0x129a69(%rip), %rsi    # 0x37761e
leaq 0x20(%rsp), %rdi
callq 0x221073
movq (%rsp), %rax
movb 0x9(%rax), %al
movb $0x1, %bl
cmpb $0x40, %al
jb 0x24dbdf
leaq 0x129a57(%rip), %rsi    # 0x37762a
leaq 0x20(%rsp), %rdi
callq 0x221073
incb %bl
leaq 0x12a91a(%rip), %rsi    # 0x378500
leaq 0x20(%rsp), %r13
pushq $0x1
popq %rdx
movq %r13, %rdi
callq 0x220f53
movq %r13, %rdi
callq 0x221200
leaq 0x40(%rsp), %rsi
movq %r15, %rdi
callq 0x228c88
testl %eax, %eax
je 0x24dc37
movl %eax, %r13d
movq %r15, %rdi
callq 0x2280b1
leaq 0x11b288(%rip), %rdi    # 0x368ea9
xorl %ebp, %ebp
movq %rax, %rsi
xorl %eax, %eax
callq 0x22132b
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
jmp 0x24dc73
pushq $0x30
popq %rdi
callq 0x21f6c0
xorl %r13d, %r13d
testq %rax, %rax
je 0x24dc6d
movq %rax, %rbp
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq (%rsp), %rax
movq %rax, 0x20(%rbp)
movq %r15, 0x18(%rbp)
movb %r14b, 0x29(%rbp)
movb %bl, 0x28(%rbp)
jmp 0x24dc73
pushq $0x7
popq %r13
xorl %ebp, %ebp
movq 0x18(%rsp), %rax
movq %rbp, (%rax)
movl %r13d, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq