// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
movb $0x28, -0x4d(%rbp)
leaq -0x140(%rbp), %rdx
leaq -0x70(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0xc8, %ecx
xorl %r8d, %r8d
callq 0x3c36a0
leaq -0x70(%rbp), %rdi
leaq 0x19b706(%rip), %rsi    # 0x5ac673
callq 0x3c3170
movl $0x0, -0x48(%rbp)
movq -0x38(%rbp), %rax
movzbl 0xa(%rax), %eax
movl %eax, -0x4c(%rbp)
movl -0x48(%rbp), %eax
movq -0x38(%rbp), %rcx
movzbl 0xb(%rcx), %ecx
cmpl %ecx, %eax
jge 0x410fd0
movsbl -0x4d(%rbp), %edx
movslq -0x4c(%rbp), %rcx
leaq 0x22941e(%rip), %rax    # 0x63a3c0
movq (%rax,%rcx,8), %rcx
leaq -0x70(%rbp), %rdi
leaq 0x19b6d1(%rip), %rsi    # 0x5ac682
movb $0x0, %al
callq 0x3c3ac0
movb $0x2c, -0x4d(%rbp)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x410f84
cmpl $0x0, -0x48(%rbp)
jne 0x410ff8
movq -0x38(%rbp), %rax
movq (%rax), %rdx
leaq -0x70(%rbp), %rdi
leaq 0x19b6a1(%rip), %rsi    # 0x5ac689
movb $0x0, %al
callq 0x3c3ac0
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
movl $0x0, -0x4c(%rbp)
movq -0x38(%rbp), %rax
movzbl 0x9(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x411028
leaq -0x70(%rbp), %rdi
leaq 0x19b675(%rip), %rsi    # 0x5ac68f
callq 0x3c3170
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
movq -0x38(%rbp), %rax
movzbl 0x9(%rax), %eax
andl $0xc0, %eax
cmpl $0x0, %eax
je 0x411053
leaq -0x70(%rbp), %rdi
leaq 0x19b656(%rip), %rsi    # 0x5ac69b
callq 0x3c3170
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
leaq -0x70(%rbp), %rdi
leaq 0x19c51c(%rip), %rsi    # 0x5ad57a
movl $0x1, %edx
callq 0x3c2d40
leaq -0x70(%rbp), %rdi
callq 0x3c3490
movq -0x8(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x3ce770
movl %eax, -0x44(%rbp)
cmpl $0x0, -0x44(%rbp)
jne 0x4110ea
movl $0x30, %edi
callq 0x3c0710
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x4110a8
movl $0x7, -0x44(%rbp)
jmp 0x4110e8
movq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x30, %edx
callq 0x19360
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x18(%rax)
movl -0x48(%rbp), %eax
movb %al, %cl
movq -0x40(%rbp), %rax
movb %cl, 0x29(%rax)
movl -0x4c(%rbp), %eax
movb %al, %cl
movq -0x40(%rbp), %rax
movb %cl, 0x28(%rax)
jmp 0x41110e
movq -0x8(%rbp), %rdi
callq 0x3cd3f0
movq %rax, %rsi
leaq 0x18af24(%rip), %rdi    # 0x59c021
movb $0x0, %al
callq 0x3c3780
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movl -0x44(%rbp), %eax
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
nopw %cs:(%rax,%rax)