LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3VdbeUsesBtree
SQLITE_PRIVATE void sqlite3VdbeUsesBtree(Vdbe *p, int i){
  assert( i>=0 && i<p->db->nDb && i<(int)sizeof(yDbMask)*8 );
  assert( i<(int)sizeof(p->btreeMask)*8 );
  DbMaskSet(p->btreeMask, i);
  if( i!=1 && sqlite3BtreeSharable(p->db->aDb[i].pBt) ){
    DbMaskSet(p->lockMask, i);
  }
}

// Assembly:
movl %esi, %ecx
movl $0x1, %eax
shll %cl, %eax
orl %eax, 0xc8(%rdi)
cmpl $0x1, %esi
je 0x27b777
movq (%rdi), %rdx
movq 0x20(%rdx), %rdx
movslq %ecx, %rcx
shlq $0x5, %rcx
movq 0x8(%rdx,%rcx), %rcx
cmpb $0x0, 0x11(%rcx)
je 0x27b777
orl %eax, 0xcc(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3VdbeChangeP4
SQLITE_PRIVATE void sqlite3VdbeChangeP4(Vdbe *p, int addr, const char *zP4, int n){
  Op *pOp;
  sqlite3 *db;
  assert( p!=0 );
  db = p->db;
  assert( p->magic==VDBE_MAGIC_INIT );
  assert( p->aOp!=0 || db->mallocFailed );
  if( db->mallocFailed ){
    if( n!=P4_VTAB ) freeP4(db, n, (void*)*(char**)&zP4);
    return;
  }
  assert( p->nOp>0 );
  assert( addr<p->nOp );
  if( addr<0 ){
    addr = p->nOp - 1;
  }
  pOp = &p->aOp[addr];
  if( n>=0 || pOp->p4type ){
    vdbeChangeP4Full(p, pOp, zP4, n);
    return;
  }
  if( n==P4_INT32 ){
    /* Note: this cast is safe, because the origin data point was an int
    ** that was cast to a (const char *). */
    pOp->p4.i = SQLITE_PTR_TO_INT(zP4);
    pOp->p4type = P4_INT32;
  }else if( zP4!=0 ){
    assert( n<0 );
    pOp->p4.p = (void*)zP4;
    pOp->p4type = (signed char)n;
    if( n==P4_VTAB ) sqlite3VtabLock((VTable*)zP4);
  }
}

// Assembly:
movq (%rdi), %rax
cmpb $0x0, 0x61(%rax)
je 0x27b787
cmpl $-0xc, %ecx
jne 0x27b7c4
retq
testl %esi, %esi
jns 0x27b793
movl 0x90(%rdi), %esi
decl %esi
movslq %esi, %rax
leaq (%rax,%rax,2), %rsi
shlq $0x3, %rsi
addq 0x88(%rdi), %rsi
testl %ecx, %ecx
jns 0x2a853b
cmpb $0x0, 0x1(%rsi)
jne 0x2a853b
cmpl $-0x3, %ecx
jne 0x27b7ce
movl %edx, 0x10(%rsi)
movb $-0x3, 0x1(%rsi)
retq
movq %rax, %rdi
movl %ecx, %esi
jmp 0x28fb69
testq %rdx, %rdx
je 0x27b786
movq %rdx, 0x10(%rsi)
movb %cl, 0x1(%rsi)
cmpl $-0xc, %ecx
jne 0x27b786
incl 0x18(%rdx)
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3ParserReset
SQLITE_PRIVATE void sqlite3ParserReset(Parse *pParse){
  sqlite3 *db = pParse->db;
  AggInfo *pThis = pParse->pAggList;
  while( pThis ){
    AggInfo *pNext = pThis->pNext;
    agginfoFree(db, pThis);
    pThis = pNext;
  }
  sqlite3DbFree(db, pParse->aLabel);
  sqlite3ExprListDelete(db, pParse->pConstExpr);
  if( db ){
    assert( db->lookaside.bDisable >= pParse->disableLookaside );
    db->lookaside.bDisable -= pParse->disableLookaside;
    db->lookaside.sz = db->lookaside.bDisable ? 0 : db->lookaside.szTrue;
  }
  pParse->disableLookaside = 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
movq 0xb8(%rdi), %r15
testq %r15, %r15
je 0x27bdf0
movq 0x20(%r15), %rsi
movq 0x40(%r15), %r12
testq %rsi, %rsi
je 0x27bdcc
movq %r14, %rdi
callq 0x282904
movq 0x30(%r15), %rsi
testq %rsi, %rsi
je 0x27bddd
movq %r14, %rdi
callq 0x282904
movq %r14, %rdi
movq %r15, %rsi
callq 0x282904
movq %r12, %r15
testq %r12, %r12
jne 0x27bdb7
movq 0x50(%rbx), %rsi
testq %rsi, %rsi
je 0x27be01
movq %r14, %rdi
callq 0x282904
movq 0x58(%rbx), %rsi
testq %rsi, %rsi
je 0x27be12
movq %r14, %rdi
callq 0x2a65a3
testq %r14, %r14
je 0x27be38
movzbl 0x24(%rbx), %eax
subl %eax, 0x170(%r14)
jne 0x27be2e
movzwl 0x176(%r14), %eax
jmp 0x27be30
xorl %eax, %eax
movw %ax, 0x174(%r14)
movb $0x0, 0x24(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3BtreePutData
SQLITE_PRIVATE int sqlite3BtreePutData(BtCursor *pCsr, u32 offset, u32 amt, void *z){
  int rc;
  assert( cursorOwnsBtShared(pCsr) );
  assert( sqlite3_mutex_held(pCsr->pBtree->db->mutex) );
  assert( pCsr->curFlags & BTCF_Incrblob );

  rc = restoreCursorPosition(pCsr);
  if( rc!=SQLITE_OK ){
    return rc;
  }
  assert( pCsr->eState!=CURSOR_REQUIRESEEK );
  if( pCsr->eState!=CURSOR_VALID ){
    return SQLITE_ABORT;
  }

  /* Save the positions of all other cursors open on this table. This is
  ** required in case any of them are holding references to an xFetch
  ** version of the b-tree page modified by the accessPayload call below.
  **
  ** Note that pCsr must be open on a INTKEY table and saveCursorPosition()
  ** and hence saveAllCursors() cannot fail on a BTREE_INTKEY table, hence
  ** saveAllCursors can only return SQLITE_OK.
  */
  VVA_ONLY(rc =) saveAllCursors(pCsr->pBt, pCsr->pgnoRoot, pCsr);
  assert( rc==SQLITE_OK );

  /* Check some assumptions:
  **   (a) the cursor is open for writing,
  **   (b) there is a read/write transaction open,
  **   (c) the connection holds a write-lock on the table (if required),
  **   (d) there are no conflicting read-locks, and
  **   (e) the cursor points at a valid row of an intKey table.
  */
  if( (pCsr->curFlags & BTCF_WriteFlag)==0 ){
    return SQLITE_READONLY;
  }
  assert( (pCsr->pBt->btsFlags & BTS_READ_ONLY)==0
              && pCsr->pBt->inTransaction==TRANS_WRITE );
  assert( hasSharedCacheTableLock(pCsr->pBtree, pCsr->pgnoRoot, 0, 2) );
  assert( !hasReadConflicts(pCsr->pBtree, pCsr->pgnoRoot) );
  assert( pCsr->pPage->intKey );

  return accessPayload(pCsr, offset, amt, (unsigned char *)z, 1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %r15
movb (%rdi), %cl
cmpb $0x3, %cl
jb 0x27bfbb
movq %r15, %rdi
callq 0x29ef8c
testl %eax, %eax
jne 0x27bfe0
movb (%r15), %cl
movl $0x4, %eax
testb %cl, %cl
jne 0x27bfe0
movq 0x20(%r15), %rdi
movl 0x50(%r15), %esi
movq %r15, %rdx
callq 0x28dd69
movl $0x8, %eax
testb $0x1, 0x1(%r15)
jne 0x27bfeb
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
movl %r14d, %esi
movl %ebp, %edx
movq %rbx, %rcx
movl $0x1, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x28e1f6
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_set_authorizer
SQLITE_API int sqlite3_set_authorizer(
  sqlite3 *db,
  int (*xAuth)(void*,int,const char*,const char*,const char*,const char*),
  void *pArg
){
#ifdef SQLITE_ENABLE_API_ARMOR
  if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
#endif
  sqlite3_mutex_enter(db->mutex);
  db->xAuth = (sqlite3_xauth)xAuth;
  db->pAuthArg = pArg;
  if( db->xAuth ) sqlite3ExpirePreparedStatements(db, 1);
  sqlite3_mutex_leave(db->mutex);
  return SQLITE_OK;
}

// Assembly:
movq %rsi, 0x1c8(%rdi)
movq %rdx, 0x1d0(%rdi)
testq %rsi, %rsi
je 0x27c10f
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x27c10f
movzwl 0xc6(%rax), %ecx
andl $-0x4, %ecx
orl $0x2, %ecx
movw %cx, 0xc6(%rax)
movq 0x10(%rax), %rax
jmp 0x27c0f0
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_errmsg
SQLITE_API const char *sqlite3_errmsg(sqlite3 *db){
  const char *z;
  if( !db ){
    return sqlite3ErrStr(SQLITE_NOMEM_BKPT);
  }
  if( !sqlite3SafetyCheckSickOrOk(db) ){
    return sqlite3ErrStr(SQLITE_MISUSE_BKPT);
  }
  sqlite3_mutex_enter(db->mutex);
  if( db->mallocFailed ){
    z = sqlite3ErrStr(SQLITE_NOMEM_BKPT);
  }else{
    testcase( db->pErr==0 );
    z = db->errCode ? (char*)sqlite3_value_text(db->pErr) : 0;
    assert( !db->mallocFailed );
    if( z==0 ){
      z = sqlite3ErrStr(db->errCode);
    }
  }
  sqlite3_mutex_leave(db->mutex);
  return z;
}

// Assembly:
leaq 0xf79b2(%rip), %rax     # 0x374321
testq %rdi, %rdi
je 0x27ca74
pushq %rbx
movq %rdi, %rbx
movl 0x70(%rdi), %ecx
cmpl $0xa029a697, %ecx       # imm = 0xA029A697
je 0x27c997
cmpl $0xf03b7906, %ecx       # imm = 0xF03B7906
je 0x27c997
cmpl $0x4b771290, %ecx       # imm = 0x4B771290
jne 0x27c9ed
cmpb $0x0, 0x61(%rbx)
jne 0x27ca73
cmpl $0x0, 0x50(%rbx)
je 0x27ca36
movq 0x160(%rbx), %rdi
movl $0x1, %esi
callq 0x278305
testq %rax, %rax
jne 0x27ca73
movl 0x50(%rbx), %eax
cmpl $0x204, %eax            # imm = 0x204
je 0x27ca5b
cmpl $0x65, %eax
je 0x27ca52
cmpl $0x64, %eax
jne 0x27ca64
leaq 0x15daf5(%rip), %rax    # 0x3da4dd
jmp 0x27ca73
leaq 0x15a8c7(%rip), %rsi    # 0x3d72bb
leaq 0xd6993(%rip), %rdx     # 0x35338e
movl $0x15, %edi
xorl %eax, %eax
callq 0x274d08
leaq 0x1591bd(%rip), %rsi    # 0x3d5bcb
leaq 0x15da32(%rip), %rdx    # 0x3da447
leaq 0x159015(%rip), %r8     # 0x3d5a31
movl $0x15, %edi
movl $0x27ea7, %ecx          # imm = 0x27EA7
xorl %eax, %eax
callq 0x274d08
leaq 0x15d9f8(%rip), %rax    # 0x3da42c
jmp 0x27ca73
xorl %eax, %eax
movl $0x1410004, %ecx        # imm = 0x1410004
btq %rax, %rcx
jb 0x27ca6c
movl %eax, %eax
leaq 0x23b794(%rip), %rcx    # 0x4b81e0
movq (%rcx,%rax,8), %rax
jmp 0x27ca73
leaq 0x15da9a(%rip), %rax    # 0x3da4f3
jmp 0x27ca73
leaq 0x15da65(%rip), %rax    # 0x3da4c7
jmp 0x27ca73
movzbl %al, %eax
cmpl $0x1c, %eax
jbe 0x27ca38
leaq 0x15da46(%rip), %rax    # 0x3da4b9
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_auto_extension
SQLITE_API int sqlite3_auto_extension(
  void (*xInit)(void)
){
  int rc = SQLITE_OK;
#ifndef SQLITE_OMIT_AUTOINIT
  rc = sqlite3_initialize();
  if( rc ){
    return rc;
  }else
#endif
  {
    u32 i;
#if SQLITE_THREADSAFE
    sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN);
#endif
    wsdAutoextInit;
    sqlite3_mutex_enter(mutex);
    for(i=0; i<wsdAutoext.nExt; i++){
      if( wsdAutoext.aExt[i]==xInit ) break;
    }
    if( i==wsdAutoext.nExt ){
      u64 nByte = (wsdAutoext.nExt+1)*sizeof(wsdAutoext.aExt[0]);
      void (**aNew)(void);
      aNew = sqlite3_realloc64(wsdAutoext.aExt, nByte);
      if( aNew==0 ){
        rc = SQLITE_NOMEM_BKPT;
      }else{
        wsdAutoext.aExt = aNew;
        wsdAutoext.aExt[wsdAutoext.nExt] = xInit;
        wsdAutoext.nExt++;
      }
    }
    sqlite3_mutex_leave(mutex);
    assert( (rc&0xff)==rc );
    return rc;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x2725a7
movl %eax, %ebp
testl %eax, %eax
je 0x27cfb7
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl 0x241d0a(%rip), %r14d   # 0x4becc8
xorl %ebp, %ebp
movl $0x0, %eax
testq %r14, %r14
je 0x27cfe3
movq 0x241cff(%rip), %rcx    # 0x4becd0
xorl %eax, %eax
cmpq %rbx, (%rcx,%rax,8)
je 0x27cfe3
incq %rax
cmpq %rax, %r14
jne 0x27cfd3
jmp 0x27cfe8
cmpl %r14d, %eax
jne 0x27cfaa
movq 0x241ce1(%rip), %r15    # 0x4becd0
callq 0x2725a7
movl $0x7, %ebp
testl %eax, %eax
jne 0x27cfaa
incl %r14d
shlq $0x3, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x272c63
testq %rax, %rax
je 0x27cfaa
movq %rax, 0x241cb5(%rip)    # 0x4becd0
movl 0x241ca7(%rip), %ecx    # 0x4becc8
movq %rbx, (%rax,%rcx,8)
leal 0x1(%rcx), %eax
movl %eax, 0x241c9a(%rip)    # 0x4becc8
xorl %ebp, %ebp
jmp 0x27cfaa
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_free_table
SQLITE_API void sqlite3_free_table(
  char **azResult            /* Result returned from sqlite3_get_table() */
){
  if( azResult ){
    int i, n;
    azResult--;
    assert( azResult!=0 );
    n = SQLITE_PTR_TO_INT(azResult[0]);
    for(i=1; i<n; i++){ if( azResult[i] ) sqlite3_free(azResult[i]); }
    sqlite3_free(azResult);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x27d7a0
movq %rdi, %rbx
movq -0x8(%rdi), %r15
cmpl $0x2, %r15d
jl 0x27d766
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
decq %r15
xorl %r12d, %r12d
movq (%rbx,%r12,8), %r14
testq %r14, %r14
je 0x27d75e
cmpl $0x0, 0x23df26(%rip)    # 0x4bb660
je 0x27d755
movq %r14, %rdi
callq *0x23df53(%rip)         # 0x4bb698
cltq
subq %rax, 0x2413aa(%rip)    # 0x4beaf8
decq 0x2413eb(%rip)          # 0x4beb40
movq %r14, %rdi
callq *0x23df2a(%rip)         # 0x4bb688
incq %r12
cmpq %r12, %r15
jne 0x27d72a
addq $-0x8, %rbx
cmpl $0x0, 0x23deef(%rip)    # 0x4bb660
je 0x27d78c
movq %rbx, %rdi
callq *0x23df1c(%rip)         # 0x4bb698
cltq
subq %rax, 0x241373(%rip)    # 0x4beaf8
decq 0x2413b4(%rip)          # 0x4beb40
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *0x23dee8(%rip)         # 0x4bb688
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: createModule
static int createModule(
  sqlite3 *db,                    /* Database in which module is registered */
  const char *zName,              /* Name assigned to this module */
  const sqlite3_module *pModule,  /* The definition of the module */
  void *pAux,                     /* Context pointer for xCreate/xConnect */
  void (*xDestroy)(void *)        /* Module destructor function */
){
  int rc = SQLITE_OK;

  sqlite3_mutex_enter(db->mutex);
  (void)sqlite3VtabCreateModule(db, zName, pModule, pAux, xDestroy);
  rc = sqlite3ApiExit(db, rc);
  if( rc!=SQLITE_OK && xDestroy ) xDestroy(pAux);
  sqlite3_mutex_leave(db->mutex);
  return rc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
movq %rdi, %r15
callq 0x2a8938
cmpb $0x0, 0x61(%r15)
je 0x27d7e6
movq %r15, %rdi
callq 0x28fd56
movl $0x7, %ebp
testq %rbx, %rbx
je 0x27d7e8
movq %r14, %rdi
callq *%rbx
jmp 0x27d7e8
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_drop_modules
SQLITE_API int sqlite3_drop_modules(sqlite3 *db, const char** azNames){
  HashElem *pThis, *pNext;
#ifdef SQLITE_ENABLE_API_ARMOR
  if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
#endif
  for(pThis=sqliteHashFirst(&db->aModule); pThis; pThis=pNext){
    Module *pMod = (Module*)sqliteHashData(pThis);
    pNext = sqliteHashNext(pThis);
    if( azNames ){
      int ii;
      for(ii=0; azNames[ii]!=0 && strcmp(azNames[ii],pMod->zName)!=0; ii++){}
      if( azNames[ii]!=0 ) continue;
    }
    createModule(db, pMod->zName, 0, 0, 0);
  }
  return SQLITE_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x1f8(%rdi), %r12
testq %r12, %r12
je 0x27d86b
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsi), %rax
movq %rax, (%rsp)
movq 0x10(%r12), %rbp
movq (%r12), %r12
testq %rbx, %rbx
je 0x27d853
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x27d853
movq 0x8(%rbp), %r15
movq (%rsp), %r13
movq %r15, %rsi
callq 0x17a40
testl %eax, %eax
je 0x27d866
movq (%r13), %rdi
addq $0x8, %r13
testq %rdi, %rdi
jne 0x27d83a
movq 0x8(%rbp), %rsi
movq %r14, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x27d7b1
testq %r12, %r12
jne 0x27d81c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_vtab_config
SQLITE_API int sqlite3_vtab_config(sqlite3 *db, int op, ...){
  va_list ap;
  int rc = SQLITE_OK;
  VtabCtx *p;

#ifdef SQLITE_ENABLE_API_ARMOR
  if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
#endif
  sqlite3_mutex_enter(db->mutex);
  p = db->pVtabCtx;
  if( !p ){
    rc = SQLITE_MISUSE_BKPT;
  }else{
    assert( p->pTab==0 || IsVirtual(p->pTab) );
    va_start(ap, op);
    switch( op ){
      case SQLITE_VTAB_CONSTRAINT_SUPPORT: {
        p->pVTable->bConstraint = (u8)va_arg(ap, int);
        break;
      }
      case SQLITE_VTAB_INNOCUOUS: {
        p->pVTable->eVtabRisk = SQLITE_VTABRISK_Low;
        break;
      }
      case SQLITE_VTAB_DIRECTONLY: {
        p->pVTable->eVtabRisk = SQLITE_VTABRISK_High;
        break;
      }
      default: {
        rc = SQLITE_MISUSE_BKPT;
        break;
      }
    }
    va_end(ap);
  }

  if( rc!=SQLITE_OK ) sqlite3Error(db, rc);
  sqlite3_mutex_leave(db->mutex);
  return rc;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0x27e0e4
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq 0x208(%rdi), %rax
testq %rax, %rax
je 0x27e144
leaq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rsp)
leaq 0xf0(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movabsq $0x3000000010, %rcx     # imm = 0x3000000010
movq %rcx, (%rsp)
cmpl $0x3, %esi
je 0x27e16e
cmpl $0x2, %esi
je 0x27e165
cmpl $0x1, %esi
jne 0x27e177
movl (%rsp), %edx
cmpq $0x28, %rdx
ja 0x27e1b8
movq %rdx, %rcx
addq 0x10(%rsp), %rcx
addl $0x8, %edx
movl %edx, (%rsp)
jmp 0x27e1c6
leaq 0x157a80(%rip), %rsi    # 0x3d5bcb
leaq 0x15c2f5(%rip), %rdx    # 0x3da447
leaq 0x1578d8(%rip), %r8     # 0x3d5a31
movl $0x15, %edi
movl $0x22641, %ecx          # imm = 0x22641
jmp 0x27e196
movq (%rax), %rax
movb $0x0, 0x1d(%rax)
jmp 0x27e1ce
movq (%rax), %rax
movb $0x2, 0x1d(%rax)
jmp 0x27e1ce
leaq 0x157a4d(%rip), %rsi    # 0x3d5bcb
leaq 0x15c2c2(%rip), %rdx    # 0x3da447
leaq 0x1578a5(%rip), %r8     # 0x3d5a31
movl $0x15, %edi
movl $0x22653, %ecx          # imm = 0x22653
xorl %eax, %eax
callq 0x274d08
movl $0x15, 0x50(%rbx)
movl $0x15, %ebp
movq %rbx, %rdi
movl $0x15, %esi
callq 0x284b1f
jmp 0x27e1d0
movq 0x8(%rsp), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsp)
movb (%rcx), %cl
movq (%rax), %rax
movb %cl, 0x1c(%rax)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0xd8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_vtab_collation
SQLITE_API const char *sqlite3_vtab_collation(sqlite3_index_info *pIdxInfo, int iCons){
  HiddenIndexInfo *pHidden = (HiddenIndexInfo*)&pIdxInfo[1];
  const char *zRet = 0;
  if( iCons>=0 && iCons<pIdxInfo->nConstraint ){
    CollSeq *pC = 0;
    int iTerm = pIdxInfo->aConstraint[iCons].iTermOffset;
    Expr *pX = pHidden->pWC->a[iTerm].pExpr;
    if( pX->pLeft ){
      pC = sqlite3ExprCompareCollSeq(pHidden->pParse, pX);
    }
    zRet = (pC ? pC->zName : sqlite3StrBINARY);
  }
  return zRet;
}

// Assembly:
pushq %rbx
testl %esi, %esi
js 0x27e23f
cmpl %esi, (%rdi)
jle 0x27e23f
movl %esi, %eax
leaq (%rax,%rax,2), %rax
movq 0x8(%rdi), %rcx
movq 0x60(%rdi), %rdx
movslq 0x8(%rcx,%rax,4), %rax
movq 0x20(%rdx), %rcx
shlq $0x6, %rax
movq (%rcx,%rax), %rax
leaq 0x153955(%rip), %rbx    # 0x3d1b60
cmpq $0x0, 0x10(%rax)
je 0x27e241
movq 0x68(%rdi), %rdi
movl $0x200, %ecx            # imm = 0x200
xorl %edx, %edx
andl 0x4(%rax), %ecx
sete %dl
shrl $0x6, %ecx
movq 0x10(%rax,%rcx), %rsi
movq 0x10(%rax,%rdx,8), %rdx
callq 0x2a9634
testq %rax, %rax
je 0x27e241
movq (%rax), %rbx
jmp 0x27e241
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_keyword_name
SQLITE_API int sqlite3_keyword_name(int i,const char **pzName,int *pnName){
  if( i<0 || i>=SQLITE_N_KEYWORD ) return SQLITE_ERROR;
  *pzName = zKWText + aKWOffset[i];
  *pnName = aKWLen[i];
  return SQLITE_OK;
}

// Assembly:
movl $0x1, %eax
cmpl $0x90, %edi
ja 0x27e27c
movl %edi, %eax
leaq 0x153584(%rip), %rcx    # 0x3d17e0
movzwl (%rcx,%rax,2), %ecx
leaq 0x1532e9(%rip), %rdi    # 0x3d1550
addq %rcx, %rdi
movq %rdi, (%rsi)
leaq 0x15369c(%rip), %rcx    # 0x3d1910
movzbl (%rax,%rcx), %eax
movl %eax, (%rdx)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_complete16
SQLITE_API int sqlite3_complete16(const void *zSql){
  sqlite3_value *pVal;
  char const *zSql8;
  int rc;

#ifndef SQLITE_OMIT_AUTOINIT
  rc = sqlite3_initialize();
  if( rc ) return rc;
#endif
  pVal = sqlite3ValueNew(0);
  sqlite3ValueSetStr(pVal, -1, zSql, SQLITE_UTF16NATIVE, SQLITE_STATIC);
  zSql8 = sqlite3ValueText(pVal, SQLITE_UTF8);
  if( zSql8 ){
    rc = sqlite3_complete(zSql8);
  }else{
    rc = SQLITE_NOMEM_BKPT;
  }
  sqlite3ValueFree(pVal);
  return rc & 0xff;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
callq 0x2725a7
movl %eax, %ebp
testl %eax, %eax
jne 0x27e7b2
movl $0x38, %edi
callq 0x272ae6
movq %rax, %rbx
testq %rax, %rax
je 0x27e786
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movq $0x0, 0x30(%rbx)
movw $0x1, 0x8(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x2, %ecx
xorl %r8d, %r8d
callq 0x278594
movq %rbx, %rdi
movl $0x1, %esi
callq 0x278305
testq %rax, %rax
je 0x27e7a5
movq %rax, %rdi
callq 0x27e2a9
movzbl %al, %ebp
jmp 0x27e7aa
movl $0x7, %ebp
movq %rbx, %rdi
callq 0x278453
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_db_release_memory
SQLITE_API int sqlite3_db_release_memory(sqlite3 *db){
  int i;

#ifdef SQLITE_ENABLE_API_ARMOR
  if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
#endif
  sqlite3_mutex_enter(db->mutex);
  sqlite3BtreeEnterAll(db);
  for(i=0; i<db->nDb; i++){
    Btree *pBt = db->aDb[i].pBt;
    if( pBt ){
      Pager *pPager = sqlite3BtreePager(pBt);
      sqlite3PagerShrink(pPager);
    }
  }
  sqlite3BtreeLeaveAll(db);
  sqlite3_mutex_leave(db->mutex);
  return SQLITE_OK;
}

// Assembly:
movslq 0x28(%rdi), %rax
testq %rax, %rax
jle 0x27ef12
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rcx
movq %rax, %rdx
shlq $0x5, %rdx
xorl %esi, %esi
movq 0x8(%rcx,%rsi), %rdi
testq %rdi, %rdi
je 0x27eec0
movq (%rdi), %r8
movq 0x8(%rdi), %rdi
movq %r8, 0x8(%rdi)
addq $0x20, %rsi
cmpq %rsi, %rdx
jne 0x27eeab
testl %eax, %eax
jle 0x27ef0d
movl $0x8, %r14d
xorl %r15d, %r15d
movq 0x20(%rbx), %rcx
movq (%rcx,%r14), %rcx
testq %rcx, %rcx
je 0x27eefe
movq 0x8(%rcx), %rax
movq (%rax), %rax
movq 0x118(%rax), %rax
movq 0x40(%rax), %rdi
callq *0x23c86d(%rip)         # 0x4bb768
movl 0x28(%rbx), %eax
incq %r15
movslq %eax, %rcx
addq $0x20, %r14
cmpq %rcx, %r15
jl 0x27eed6
popq %rbx
popq %r14
popq %r15
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_db_cacheflush
SQLITE_API int sqlite3_db_cacheflush(sqlite3 *db){
  int i;
  int rc = SQLITE_OK;
  int bSeenBusy = 0;

#ifdef SQLITE_ENABLE_API_ARMOR
  if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
#endif
  sqlite3_mutex_enter(db->mutex);
  sqlite3BtreeEnterAll(db);
  for(i=0; rc==SQLITE_OK && i<db->nDb; i++){
    Btree *pBt = db->aDb[i].pBt;
    if( pBt && sqlite3BtreeIsInTrans(pBt) ){
      Pager *pPager = sqlite3BtreePager(pBt);
      rc = sqlite3PagerFlush(pPager);
      if( rc==SQLITE_BUSY ){
        bSeenBusy = 1;
        rc = SQLITE_OK;
      }
    }
  }
  sqlite3BtreeLeaveAll(db);
  sqlite3_mutex_leave(db->mutex);
  return ((rc==SQLITE_OK && bSeenBusy) ? SQLITE_BUSY : rc);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq 0x28(%rdi), %rax
testq %rax, %rax
jle 0x27ef54
movq 0x20(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
movq 0x8(%rcx,%rdx), %rsi
testq %rsi, %rsi
je 0x27ef4b
movq (%rsi), %rdi
movq 0x8(%rsi), %rsi
movq %rdi, 0x8(%rsi)
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x27ef36
xorl %eax, %eax
xorl %edx, %edx
movq %rax, %r15
movslq 0x28(%rbx), %r13
cmpq %r13, %rax
jge 0x27f004
movq 0x20(%rbx), %rax
movq %r15, %rcx
shlq $0x5, %rcx
movq 0x8(%rax,%rcx), %rax
xorl %ebp, %ebp
testq %rax, %rax
je 0x27eff6
cmpb $0x2, 0x10(%rax)
jne 0x27eff6
movl %edx, 0x4(%rsp)
movq 0x8(%rax), %rax
movq (%rax), %r14
movl 0x2c(%r14), %ebp
cmpb $0x0, 0x13(%r14)
jne 0x27efdf
movq 0x118(%r14), %rdi
callq 0x28a9bb
movq %rax, %rsi
testl %ebp, %ebp
sete %al
testq %rsi, %rsi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x27efdf
movq 0x20(%rsi), %r12
xorl %ebp, %ebp
cmpw $0x0, 0x36(%rsi)
jne 0x27efd3
movq %r14, %rdi
callq 0x285d27
movl %eax, %ebp
testl %ebp, %ebp
jne 0x27efdf
movq %r12, %rsi
testq %r12, %r12
jne 0x27efbc
cmpl $0x5, %ebp
movl 0x4(%rsp), %edx
movl $0x1, %eax
cmovel %eax, %edx
movl $0x0, %eax
cmovel %eax, %ebp
leaq 0x1(%r15), %rax
testl %ebp, %ebp
je 0x27ef58
jmp 0x27f006
xorl %ebp, %ebp
testl %edx, %edx
movl $0x5, %eax
cmovel %ebp, %eax
cmpq %r13, %r15
cmovll %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_busy_timeout
SQLITE_API int sqlite3_busy_timeout(sqlite3 *db, int ms){
#ifdef SQLITE_ENABLE_API_ARMOR
  if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
#endif
  if( ms>0 ){
    sqlite3_busy_handler(db, (int(*)(void*,int))sqliteDefaultBusyCallback,
                             (void*)db);
    db->busyTimeout = ms;
  }else{
    sqlite3_busy_handler(db, 0, 0);
  }
  return SQLITE_OK;
}

// Assembly:
xorl %eax, %eax
testl %esi, %esi
leaq 0x2d(%rip), %rcx        # 0x27f6e9
cmovleq %rax, %rcx
movl $0x0, %edx
cmovgq %rdi, %rdx
cmovlel %eax, %esi
movq %rcx, 0x250(%rdi)
movq %rdx, 0x258(%rdi)
movl %eax, 0x260(%rdi)
movl %esi, 0x2b4(%rdi)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: createFunctionApi
static int createFunctionApi(
  sqlite3 *db,
  const char *zFunc,
  int nArg,
  int enc,
  void *p,
  void (*xSFunc)(sqlite3_context*,int,sqlite3_value**),
  void (*xStep)(sqlite3_context*,int,sqlite3_value**),
  void (*xFinal)(sqlite3_context*),
  void (*xValue)(sqlite3_context*),
  void (*xInverse)(sqlite3_context*,int,sqlite3_value**),
  void(*xDestroy)(void*)
){
  int rc = SQLITE_ERROR;
  FuncDestructor *pArg = 0;

#ifdef SQLITE_ENABLE_API_ARMOR
  if( !sqlite3SafetyCheckOk(db) ){
    return SQLITE_MISUSE_BKPT;
  }
#endif
  sqlite3_mutex_enter(db->mutex);
  if( xDestroy ){
    pArg = (FuncDestructor *)sqlite3Malloc(sizeof(FuncDestructor));
    if( !pArg ){
      sqlite3OomFault(db);
      xDestroy(p);
      goto out;
    }
    pArg->nRef = 0;
    pArg->xDestroy = xDestroy;
    pArg->pUserData = p;
  }
  rc = sqlite3CreateFunc(db, zFunc, nArg, enc, p,
      xSFunc, xStep, xFinal, xValue, xInverse, pArg
  );
  if( pArg && pArg->nRef==0 ){
    assert( rc!=SQLITE_OK );
    xDestroy(p);
    sqlite3_free(pArg);
  }

 out:
  rc = sqlite3ApiExit(db, rc);
  sqlite3_mutex_leave(db->mutex);
  return rc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movl %ecx, %ebp
movl %edx, %r13d
movq %rsi, %r12
movq %rdi, %rbx
cmpq $0x0, 0x60(%rsp)
je 0x27f808
movq %r9, (%rsp)
movl $0x18, %edi
callq 0x272ae6
testq %rax, %rax
je 0x27f839
movq %rax, %r15
movl $0x0, (%rax)
movq 0x60(%rsp), %rax
movq %rax, 0x8(%r15)
movq %r14, 0x10(%r15)
subq $0x8, %rsp
movq %rbx, %rdi
movq %r12, %rsi
movl %r13d, %edx
movl %ebp, %ecx
movq %r14, %r8
movq 0x8(%rsp), %r9
pushq %r15
pushq 0x68(%rsp)
pushq 0x68(%rsp)
pushq 0x68(%rsp)
pushq 0x68(%rsp)
callq 0x27f9de
addq $0x30, %rsp
movl %eax, %ebp
cmpl $0x0, (%r15)
jne 0x27f84d
movq %r14, %rdi
callq *0x60(%rsp)
cmpl $0x0, 0x23be7e(%rip)    # 0x4bb660
je 0x27f7fd
movq %r15, %rdi
callq *0x23beab(%rip)         # 0x4bb698
cltq
subq %rax, 0x23f302(%rip)    # 0x4beaf8
decq 0x23f343(%rip)          # 0x4beb40
movq %r15, %rdi
callq *0x23be82(%rip)         # 0x4bb688
jmp 0x27f84d
subq $0x8, %rsp
movq %rbx, %rdi
movq %r12, %rsi
movl %r13d, %edx
movl %ebp, %ecx
movq %r14, %r8
pushq $0x0
pushq 0x68(%rsp)
pushq 0x68(%rsp)
pushq 0x68(%rsp)
pushq 0x68(%rsp)
callq 0x27f9de
addq $0x30, %rsp
movl %eax, %ebp
jmp 0x27f84d
movq %rbx, %rdi
callq 0x278b1c
movq %r14, %rdi
callq *0x60(%rsp)
movl $0x1, %ebp
cmpb $0x0, 0x61(%rbx)
je 0x27f862
movq %rbx, %rdi
callq 0x28fd56
movl $0x7, %ebp
jmp 0x27f865
andl 0x54(%rbx), %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_create_function16
SQLITE_API int sqlite3_create_function16(
  sqlite3 *db,
  const void *zFunctionName,
  int nArg,
  int eTextRep,
  void *p,
  void (*xSFunc)(sqlite3_context*,int,sqlite3_value**),
  void (*xStep)(sqlite3_context*,int,sqlite3_value**),
  void (*xFinal)(sqlite3_context*)
){
  int rc;
  char *zFunc8;

#ifdef SQLITE_ENABLE_API_ARMOR
  if( !sqlite3SafetyCheckOk(db) || zFunctionName==0 ) return SQLITE_MISUSE_BKPT;
#endif
  sqlite3_mutex_enter(db->mutex);
  assert( !db->mallocFailed );
  zFunc8 = sqlite3Utf16to8(db, zFunctionName, -1, SQLITE_UTF16NATIVE);
  rc = sqlite3CreateFunc(db, zFunc8, nArg, eTextRep, p, xSFunc,xStep,xFinal,0,0,0);
  sqlite3DbFree(db, zFunc8);
  rc = sqlite3ApiExit(db, rc);
  sqlite3_mutex_leave(db->mutex);
  return rc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r15
movq %r8, %r12
movl %ecx, %ebp
movl %edx, %r13d
movq %rdi, %rbx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x27f95c
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movaps 0x60(%rsp), %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x20(%rsp)
movq %rbx, %rdi
movq %rax, %rsi
movl %r13d, %edx
movl %ebp, %ecx
movq %r12, %r8
movq %r15, %r9
callq 0x27f9de
movl %eax, %ebp
testq %r14, %r14
je 0x27f933
movq %rbx, %rdi
movq %r14, %rsi
callq 0x282904
cmpb $0x0, 0x61(%rbx)
je 0x27f948
movq %rbx, %rdi
callq 0x28fd56
movl $0x7, %ebp
jmp 0x27f94b
andl 0x54(%rbx), %ebp
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_overload_function
SQLITE_API int sqlite3_overload_function(
  sqlite3 *db,
  const char *zName,
  int nArg
){
  int rc;
  char *zCopy;

#ifdef SQLITE_ENABLE_API_ARMOR
  if( !sqlite3SafetyCheckOk(db) || zName==0 || nArg<-2 ){
    return SQLITE_MISUSE_BKPT;
  }
#endif
  sqlite3_mutex_enter(db->mutex);
  rc = sqlite3FindFunction(db, zName, nArg, SQLITE_UTF8, 0)!=0;
  sqlite3_mutex_leave(db->mutex);
  if( rc ) return SQLITE_OK;
  zCopy = sqlite3_mprintf(zName);
  if( zCopy==0 ) return SQLITE_NOMEM;
  return sqlite3_create_function_v2(db, zName, nArg, SQLITE_UTF8,
                           zCopy, sqlite3InvalidFunction, 0, 0, sqlite3_free);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
xorl %ebp, %ebp
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x27fcd2
testq %rax, %rax
je 0x27fc7d
movl %ebp, %eax
jmp 0x27fcc0
movq %r14, %rdi
xorl %eax, %eax
callq 0x274b53
testq %rax, %rax
je 0x27fccb
leaq -0xd093(%rip), %rcx     # 0x272c00
movq %rcx, 0x20(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x233(%rip), %r9        # 0x27fede
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
movl $0x1, %ecx
movq %rax, %r8
callq 0x27f748
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x7, %ebp
jmp 0x27fc79
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3InvalidFunction
static void sqlite3InvalidFunction(
  sqlite3_context *context,  /* The function calling context */
  int NotUsed,               /* Number of arguments to the function */
  sqlite3_value **NotUsed2   /* Value of each argument */
){
  const char *zName = (const char*)sqlite3_user_data(context);
  char *zErr;
  UNUSED_PARAMETER2(NotUsed, NotUsed2);
  zErr = sqlite3_mprintf(
      "unable to use function %s in the requested context", zName);
  sqlite3_result_error(context, zErr, -1);
  sqlite3_free(zErr);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x8(%rax), %rsi
leaq 0x15a655(%rip), %rdi    # 0x3da549
xorl %eax, %eax
callq 0x274b53
movq %rax, %r14
movl $0x1, 0x24(%rbx)
movq (%rbx), %rdi
movq %rax, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x1, %ecx
movq $-0x1, %r8
callq 0x278594
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x272c00
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3FindDbName
SQLITE_PRIVATE int sqlite3FindDbName(sqlite3 *db, const char *zName){
  int i = -1;         /* Database number */
  if( zName ){
    Db *pDb;
    for(i=(db->nDb-1), pDb=&db->aDb[i]; i>=0; i--, pDb--){
      if( 0==sqlite3_stricmp(pDb->zDbSName, zName) ) break;
      /* "main" is always an acceptable alias for the primary database
      ** even if it has been renamed using SQLITE_DBCONFIG_MAINDBNAME. */
      if( i==0 && 0==sqlite3_stricmp("main", zName) ) break;
    }
  }
  return i;
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rsi, %rsi
je 0x280219
movl 0x28(%rdi), %edx
leal -0x1(%rdx), %ecx
testl %edx, %edx
jle 0x280217
pushq %rbx
movl %ecx, %edx
shlq $0x5, %rdx
addq 0x20(%rdi), %rdx
leaq 0xdada9(%rip), %rdi     # 0x35af47
leaq 0x15113b(%rip), %r8     # 0x3d12e0
movq (%rdx), %r9
testq %r9, %r9
je 0x2801d5
xorl %r10d, %r10d
movzbl (%r9,%r10), %r11d
movzbl (%rsi,%r10), %ebx
cmpb %bl, %r11b
jne 0x2801c6
testq %r11, %r11
jne 0x2801d0
jmp 0x280213
movb (%r11,%r8), %r11b
cmpb (%rbx,%r8), %r11b
jne 0x2801d5
incq %r10
jmp 0x2801b0
movl %ecx, %r9d
subl $0x1, %r9d
jae 0x280206
xorl %r10d, %r10d
movzbl (%r10,%rdi), %r11d
movzbl (%rsi,%r10), %ebx
cmpb %bl, %r11b
jne 0x2801f7
testq %r11, %r11
jne 0x280201
jmp 0x28021a
movb (%r11,%r8), %r11b
cmpb (%rbx,%r8), %r11b
jne 0x280206
incq %r10
jmp 0x2801e1
addq $-0x20, %rdx
testl %ecx, %ecx
movl %r9d, %ecx
jg 0x2801a5
jmp 0x28021c
movl %ecx, %eax
jmp 0x28021c
movl %ecx, %eax
retq
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_errmsg16
SQLITE_API const void *sqlite3_errmsg16(sqlite3 *db){
  static const u16 outOfMem[] = {
    'o', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0
  };
  static const u16 misuse[] = {
    'b', 'a', 'd', ' ', 'p', 'a', 'r', 'a', 'm', 'e', 't', 'e', 'r', ' ',
    'o', 'r', ' ', 'o', 't', 'h', 'e', 'r', ' ', 'A', 'P', 'I', ' ',
    'm', 'i', 's', 'u', 's', 'e', 0
  };

  const void *z;
  if( !db ){
    return (void *)outOfMem;
  }
  if( !sqlite3SafetyCheckSickOrOk(db) ){
    return (void *)misuse;
  }
  sqlite3_mutex_enter(db->mutex);
  if( db->mallocFailed ){
    z = (void *)outOfMem;
  }else{
    z = sqlite3_value_text16(db->pErr);
    if( z==0 ){
      sqlite3ErrorWithMsg(db, db->errCode, sqlite3ErrStr(db->errCode));
      z = sqlite3_value_text16(db->pErr);
    }
    /* A malloc() may have failed within the call to sqlite3_value_text16()
    ** above. If this is the case, then the db->mallocFailed flag needs to
    ** be cleared before returning. Do this directly, instead of via
    ** sqlite3ApiExit(), to avoid setting the database handle error message.
    */
    sqlite3OomClear(db);
  }
  sqlite3_mutex_leave(db->mutex);
  return z;
}

// Assembly:
leaq 0x1516fc(%rip), %rax    # 0x3d1a70
testq %rdi, %rdi
je 0x280490
pushq %rbx
movq %rdi, %rbx
movl 0x70(%rdi), %ecx
cmpl $0xa029a697, %ecx       # imm = 0xA029A697
je 0x28039c
cmpl $0xf03b7906, %ecx       # imm = 0xF03B7906
je 0x28039c
cmpl $0x4b771290, %ecx       # imm = 0x4B771290
jne 0x2803df
cmpb $0x0, 0x61(%rbx)
jne 0x28048f
movq 0x160(%rbx), %rdi
movl $0x2, %esi
callq 0x278305
testq %rax, %rax
jne 0x280458
movl 0x50(%rbx), %esi
cmpq $0x204, %rsi            # imm = 0x204
je 0x28040e
cmpl $0x65, %esi
je 0x280405
cmpl $0x64, %esi
jne 0x280417
leaq 0x15a100(%rip), %rdx    # 0x3da4dd
jmp 0x28043d
leaq 0x156ed5(%rip), %rsi    # 0x3d72bb
leaq 0xd2fa1(%rip), %rdx     # 0x35338e
movl $0x15, %edi
xorl %eax, %eax
callq 0x274d08
leaq 0x151690(%rip), %rax    # 0x3d1a90
jmp 0x28048f
leaq 0x15a0e7(%rip), %rdx    # 0x3da4f3
jmp 0x28043d
leaq 0x15a0b2(%rip), %rdx    # 0x3da4c7
jmp 0x28043d
movzbl %sil, %eax
leaq 0x15a097(%rip), %rdx    # 0x3da4b9
cmpl $0x1c, %eax
ja 0x28043d
movl $0x1410004, %ecx        # imm = 0x1410004
btq %rax, %rcx
jb 0x28043d
leaq 0x237da7(%rip), %rcx    # 0x4b81e0
movq (%rcx,%rax,8), %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2762da
movq 0x160(%rbx), %rdi
movl $0x2, %esi
callq 0x278305
cmpb $0x0, 0x61(%rbx)
je 0x28048f
cmpl $0x0, 0xcc(%rbx)
jne 0x28048f
movb $0x0, 0x61(%rbx)
movl $0x0, 0x168(%rbx)
decl 0x170(%rbx)
je 0x280481
xorl %ecx, %ecx
jmp 0x280488
movzwl 0x176(%rbx), %ecx
movw %cx, 0x174(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_errcode
SQLITE_API int sqlite3_errcode(sqlite3 *db){
  if( db && !sqlite3SafetyCheckSickOrOk(db) ){
    return SQLITE_MISUSE_BKPT;
  }
  if( !db || db->mallocFailed ){
    return SQLITE_NOMEM_BKPT;
  }
  return db->errCode & db->errMask;
}

// Assembly:
pushq %rbx
movl $0x7, %ebx
testq %rdi, %rdi
je 0x280507
movl 0x70(%rdi), %eax
cmpl $0xa029a697, %eax       # imm = 0xA029A697
je 0x2804b4
cmpl $0xf03b7906, %eax       # imm = 0xF03B7906
je 0x2804b4
cmpl $0x4b771290, %eax       # imm = 0x4B771290
jne 0x2804c2
cmpb $0x0, 0x61(%rdi)
jne 0x280507
movl 0x54(%rdi), %ebx
andl 0x50(%rdi), %ebx
jmp 0x280507
leaq 0x156df2(%rip), %rsi    # 0x3d72bb
leaq 0xd2ebe(%rip), %rdx     # 0x35338e
movl $0x15, %ebx
movl $0x15, %edi
xorl %eax, %eax
callq 0x274d08
leaq 0x1556e3(%rip), %rsi    # 0x3d5bcb
leaq 0x159f58(%rip), %rdx    # 0x3da447
leaq 0x15553b(%rip), %r8     # 0x3d5a31
movl $0x15, %edi
movl $0x27ee9, %ecx          # imm = 0x27EE9
xorl %eax, %eax
callq 0x274d08
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_extended_errcode
SQLITE_API int sqlite3_extended_errcode(sqlite3 *db){
  if( db && !sqlite3SafetyCheckSickOrOk(db) ){
    return SQLITE_MISUSE_BKPT;
  }
  if( !db || db->mallocFailed ){
    return SQLITE_NOMEM_BKPT;
  }
  return db->errCode;
}

// Assembly:
pushq %rbx
movl $0x7, %ebx
testq %rdi, %rdi
je 0x28057e
movl 0x70(%rdi), %eax
cmpl $0xa029a697, %eax       # imm = 0xA029A697
je 0x28052e
cmpl $0xf03b7906, %eax       # imm = 0xF03B7906
je 0x28052e
cmpl $0x4b771290, %eax       # imm = 0x4B771290
jne 0x280539
cmpb $0x0, 0x61(%rdi)
jne 0x28057e
movl 0x50(%rdi), %ebx
jmp 0x28057e
leaq 0x156d7b(%rip), %rsi    # 0x3d72bb
leaq 0xd2e47(%rip), %rdx     # 0x35338e
movl $0x15, %ebx
movl $0x15, %edi
xorl %eax, %eax
callq 0x274d08
leaq 0x15566c(%rip), %rsi    # 0x3d5bcb
leaq 0x159ee1(%rip), %rdx    # 0x3da447
leaq 0x1554c4(%rip), %r8     # 0x3d5a31
movl $0x15, %edi
movl $0x27ef2, %ecx          # imm = 0x27EF2
xorl %eax, %eax
callq 0x274d08
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_open16
SQLITE_API int sqlite3_open16(
  const void *zFilename,
  sqlite3 **ppDb
){
  char const *zFilename8;   /* zFilename encoded in UTF-8 instead of UTF-16 */
  sqlite3_value *pVal;
  int rc;

#ifdef SQLITE_ENABLE_API_ARMOR
  if( ppDb==0 ) return SQLITE_MISUSE_BKPT;
#endif
  *ppDb = 0;
#ifndef SQLITE_OMIT_AUTOINIT
  rc = sqlite3_initialize();
  if( rc ) return rc;
#endif
  if( zFilename==0 ) zFilename = "\000\000";
  pVal = sqlite3ValueNew(0);
  sqlite3ValueSetStr(pVal, -1, zFilename, SQLITE_UTF16NATIVE, SQLITE_STATIC);
  zFilename8 = sqlite3ValueText(pVal, SQLITE_UTF8);
  if( zFilename8 ){
    rc = openDatabase(zFilename8, ppDb,
                      SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, 0);
    assert( *ppDb || rc==SQLITE_NOMEM );
    if( rc==SQLITE_OK && !DbHasProperty(*ppDb, 0, DB_SchemaLoaded) ){
      SCHEMA_ENC(*ppDb) = ENC(*ppDb) = SQLITE_UTF16NATIVE;
    }
  }else{
    rc = SQLITE_NOMEM_BKPT;
  }
  sqlite3ValueFree(pVal);

  return rc & 0xff;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movq $0x0, (%rsi)
callq 0x2725a7
testl %eax, %eax
jne 0x280b9f
movl $0x38, %edi
callq 0x272ae6
movq %rax, %rbx
testq %rax, %rax
je 0x280b47
testq %r15, %r15
leaq 0x150fc2(%rip), %rsi    # 0x3d1ad4
cmovneq %r15, %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movq $0x0, 0x30(%rbx)
movw $0x1, 0x8(%rbx)
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x2, %ecx
xorl %r8d, %r8d
callq 0x278594
movq %rbx, %rdi
movl $0x1, %esi
callq 0x278305
testq %rax, %rax
je 0x280b8e
movq %rax, %rdi
movq %r14, %rsi
movl $0x6, %edx
xorl %ecx, %ecx
callq 0x280612
movl %eax, %ebp
testl %eax, %eax
jne 0x280b93
movq (%r14), %rax
movq 0x20(%rax), %rcx
movq 0x18(%rcx), %rcx
testb $0x1, 0x72(%rcx)
jne 0x280b8a
movb $0x2, %dl
movb %dl, 0x5e(%rax)
movb %dl, 0x71(%rcx)
xorl %ebp, %ebp
jmp 0x280b93
movl $0x7, %ebp
movq %rbx, %rdi
callq 0x278453
movzbl %bpl, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_create_collation16
SQLITE_API int sqlite3_create_collation16(
  sqlite3* db,
  const void *zName,
  int enc,
  void* pCtx,
  int(*xCompare)(void*,int,const void*,int,const void*)
){
  int rc = SQLITE_OK;
  char *zName8;

#ifdef SQLITE_ENABLE_API_ARMOR
  if( !sqlite3SafetyCheckOk(db) || zName==0 ) return SQLITE_MISUSE_BKPT;
#endif
  sqlite3_mutex_enter(db->mutex);
  assert( !db->mallocFailed );
  zName8 = sqlite3Utf16to8(db, zName, -1, SQLITE_UTF16NATIVE);
  if( zName8 ){
    rc = createCollation(db, zName8, (u8)enc, pCtx, xCompare, 0);
    sqlite3DbFree(db, zName8);
  }
  rc = sqlite3ApiExit(db, rc);
  sqlite3_mutex_leave(db->mutex);
  return rc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %rbx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x27f95c
testq %rax, %rax
je 0x280dfc
movq %rax, %r12
movzbl %bpl, %edx
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rcx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x280bd8
movl %eax, %ebp
movq %rbx, %rdi
movq %r12, %rsi
callq 0x282904
jmp 0x280dfe
xorl %ebp, %ebp
cmpb $0x0, 0x61(%rbx)
je 0x280e13
movq %rbx, %rdi
callq 0x28fd56
movl $0x7, %ebp
jmp 0x280e16
andl 0x54(%rbx), %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3Init
SQLITE_PRIVATE int sqlite3Init(sqlite3 *db, char **pzErrMsg){
  int i, rc;
  int commit_internal = !(db->mDbFlags&DBFLAG_SchemaChange);

  assert( sqlite3_mutex_held(db->mutex) );
  assert( sqlite3BtreeHoldsMutex(db->aDb[0].pBt) );
  assert( db->init.busy==0 );
  ENC(db) = SCHEMA_ENC(db);
  assert( db->nDb>0 );
  /* Do the main schema first */
  if( !DbHasProperty(db, 0, DB_SchemaLoaded) ){
    rc = sqlite3InitOne(db, 0, pzErrMsg, 0);
    if( rc ) return rc;
  }
  /* All other schemas after the main schema. The "temp" schema must be last */
  for(i=db->nDb-1; i>0; i--){
    assert( i==1 || sqlite3BtreeHoldsMutex(db->aDb[i].pBt) );
    if( !DbHasProperty(db, i, DB_SchemaLoaded) ){
      rc = sqlite3InitOne(db, i, pzErrMsg, 0);
      if( rc ) return rc;
    }
  }
  if( commit_internal ){
    sqlite3CommitInternalChanges(db);
  }
  return SQLITE_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl 0x2c(%rdi), %ebp
movq 0x20(%rdi), %rax
movq 0x18(%rax), %rax
movb 0x71(%rax), %cl
movb %cl, 0x5e(%rdi)
testb $0x1, 0x72(%rax)
jne 0x28119a
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x29d7ad
testl %eax, %eax
jne 0x2811ef
movslq 0x28(%rbx), %r15
cmpq $0x2, %r15
jl 0x2811e3
movq %r15, %r12
shlq $0x5, %r12
addq $-0x8, %r12
movq 0x20(%rbx), %rax
movq (%rax,%r12), %rax
testb $0x1, 0x72(%rax)
jne 0x2811d2
leal -0x1(%r15), %esi
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x29d7ad
testl %eax, %eax
jne 0x2811ef
decq %r15
leaq 0x1(%r15), %rax
addq $-0x20, %r12
cmpq $0x2, %rax
ja 0x2811af
xorl %eax, %eax
testb $0x1, %bpl
jne 0x2811ef
andb $-0x2, 0x2c(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3_file_control
SQLITE_API int sqlite3_file_control(sqlite3 *db, const char *zDbName, int op, void *pArg){
  int rc = SQLITE_ERROR;
  Btree *pBtree;

#ifdef SQLITE_ENABLE_API_ARMOR
  if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
#endif
  sqlite3_mutex_enter(db->mutex);
  pBtree = sqlite3DbNameToBtree(db, zDbName);
  if( pBtree ){
    Pager *pPager;
    sqlite3_file *fd;
    sqlite3BtreeEnter(pBtree);
    pPager = sqlite3BtreePager(pBtree);
    assert( pPager!=0 );
    fd = sqlite3PagerFile(pPager);
    assert( fd!=0 );
    if( op==SQLITE_FCNTL_FILE_POINTER ){
      *(sqlite3_file**)pArg = fd;
      rc = SQLITE_OK;
    }else if( op==SQLITE_FCNTL_VFS_POINTER ){
      *(sqlite3_vfs**)pArg = sqlite3PagerVfs(pPager);
      rc = SQLITE_OK;
    }else if( op==SQLITE_FCNTL_JOURNAL_POINTER ){
      *(sqlite3_file**)pArg = sqlite3PagerJrnlFile(pPager);
      rc = SQLITE_OK;
    }else if( op==SQLITE_FCNTL_DATA_VERSION ){
      *(unsigned int*)pArg = sqlite3PagerDataVersion(pPager);
      rc = SQLITE_OK;
    }else if( op==SQLITE_FCNTL_RESERVE_BYTES ){
      int iNew = *(int*)pArg;
      *(int*)pArg = sqlite3BtreeGetRequestedReserve(pBtree);
      if( iNew>=0 && iNew<=255 ){
        sqlite3BtreeSetPageSize(pBtree, 0, iNew, 0);
      }
      rc = SQLITE_OK;
    }else{
      rc = sqlite3OsFileControl(fd, op, pArg);
    }
    sqlite3BtreeLeave(pBtree);
  }
  sqlite3_mutex_leave(db->mutex);
  return rc;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rcx, %rbx
movl %edx, %ebp
movq %rdi, %r14
testq %rsi, %rsi
je 0x28167f
movq %r14, %rdi
callq 0x280170
testl %eax, %eax
jns 0x281681
jmp 0x2816e6
xorl %eax, %eax
movq 0x20(%r14), %rcx
movl %eax, %eax
shlq $0x5, %rax
movq 0x8(%rcx,%rax), %rax
testq %rax, %rax
je 0x2816e6
movq (%rax), %rdi
movq 0x8(%rax), %rsi
movq %rdi, 0x8(%rsi)
movq (%rsi), %rcx
movq 0x48(%rcx), %rax
cmpl $0x1b, %ebp
jle 0x2816ed
cmpl $0x1c, %ebp
je 0x281711
cmpl $0x23, %ebp
je 0x28172f
cmpl $0x26, %ebp
jne 0x2816f7
movl 0x34(%rsi), %eax
subl 0x38(%rsi), %eax
movzbl 0x26(%rsi), %ecx
cmpl %ecx, %eax
cmovlel %ecx, %eax
movl (%rbx), %ecx
movl %eax, (%rbx)
xorl %ebx, %ebx
cmpl $0xff, %ecx
ja 0x281739
xorl %ebx, %ebx
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x281747
jmp 0x281739
movl $0x1, %ebx
jmp 0x281739
cmpl $0x7, %ebp
je 0x28172a
cmpl $0x1b, %ebp
je 0x281727
movq (%rax), %rcx
testq %rcx, %rcx
je 0x281740
movq 0x50(%rcx), %rcx
movq %rax, %rdi
movl %ebp, %esi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %rbp
jmpq *%rcx
movq 0x120(%rcx), %rax
leaq 0x10(%rax), %rdx
addq $0x50, %rcx
testq %rax, %rax
cmovneq %rdx, %rcx
movq (%rcx), %rax
movq %rax, (%rbx)
jmp 0x281737
movl 0x84(%rcx), %eax
movl %eax, (%rbx)
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
movl $0xc, %ebx
jmp 0x281739