// File: /workspace/github_c_makefile_star2_O3/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, %rbx
leaq 0x40(%rsp), %rax
leaq 0x10(%rsp), %rdi
movq %rax, 0x8(%rdi)
xorl %eax, %eax
movq %rax, (%rdi)
movl $0xc8, 0x10(%rdi)
movq %rax, 0x14(%rdi)
movw $0x0, 0x1c(%rdi)
leaq 0x12e741(%rip), %rsi    # 0x3d71e2
movl $0xe, %edx
callq 0x274722
cmpb $0x0, 0xb(%r15)
je 0x2a8b12
movq %rbx, 0x8(%rsp)
movq %r14, 0x30(%rsp)
movzbl 0xa(%r15), %ebx
shll $0x3, %ebx
movl $0x28, %edx
leaq 0x20e7f0(%rip), %r14    # 0x4b72c0
leaq 0x12e71a(%rip), %r13    # 0x3d71f1
leaq 0x10(%rsp), %rbp
xorl %r12d, %r12d
leaq (%rbx,%r12,8), %rax
movq (%r14,%rax), %rcx
movq %rbp, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x274dfa
movzbl 0xb(%r15), %eax
incq %r12
movl $0x2c, %edx
cmpl %eax, %r12d
jb 0x2a8adf
movq 0x30(%rsp), %r14
movq 0x8(%rsp), %rbx
jmp 0x2a8b2b
movq (%r15), %rdx
leaq 0x12e6dc(%rip), %rsi    # 0x3d71f8
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x274dfa
movb $0x1, %r12b
movb 0x9(%r15), %al
testb $0x20, %al
jne 0x2a8b38
xorl %r13d, %r13d
jmp 0x2a8b55
leaq 0x12e6bf(%rip), %rsi    # 0x3d71fe
leaq 0x10(%rsp), %rdi
movl $0xb, %edx
callq 0x274722
movb 0x9(%r15), %al
movb $0x1, %r13b
cmpb $0x40, %al
jb 0x2a8b72
leaq 0x12e6aa(%rip), %rsi    # 0x3d720a
leaq 0x10(%rsp), %rdi
movl $0xe, %edx
callq 0x274722
incb %r13b
movl 0x28(%rsp), %eax
leal 0x1(%rax), %ecx
cmpl 0x20(%rsp), %ecx
jae 0x2a8b8e
movl %ecx, 0x28(%rsp)
movq 0x18(%rsp), %rcx
movb $0x29, (%rcx,%rax)
jmp 0x2a8ba4
leaq 0x12f54b(%rip), %rsi    # 0x3d80e0
leaq 0x10(%rsp), %rdi
movl $0x1, %edx
callq 0x274968
leaq 0x10(%rsp), %rdi
callq 0x2749f9
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
callq 0x27d87c
testl %eax, %eax
je 0x2a8be6
movl %eax, %ebp
movq %rbx, %rdi
callq 0x27c968
leaq 0x11fed9(%rip), %rdi    # 0x3c8aa9
xorl %ebx, %ebx
movq %rax, %rsi
xorl %eax, %eax
callq 0x274b53
movq 0x38(%rsp), %rcx
movq %rax, (%rcx)
jmp 0x2a8c36
callq 0x2725a7
movl $0x7, %ebp
testl %eax, %eax
je 0x2a8bf8
xorl %ebx, %ebx
jmp 0x2a8c36
movq %rbx, 0x8(%rsp)
movl $0x30, %edi
callq 0x272ae6
xorl %ebx, %ebx
testq %rax, %rax
je 0x2a8c36
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq %r15, 0x20(%rax)
movq 0x8(%rsp), %rcx
movq %rcx, 0x18(%rax)
movb %r12b, 0x29(%rax)
movb %r13b, 0x28(%rax)
movq %rax, %rbx
xorl %ebp, %ebp
movq %rbx, (%r14)
movl %ebp, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq