LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: pragmaVtabBestIndex
static int pragmaVtabBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){
  PragmaVtab *pTab = (PragmaVtab*)tab;
  const struct sqlite3_index_constraint *pConstraint;
  int i, j;
  int seen[2];

  pIdxInfo->estimatedCost = (double)1;
  if( pTab->nHidden==0 ){ return SQLITE_OK; }
  pConstraint = pIdxInfo->aConstraint;
  seen[0] = 0;
  seen[1] = 0;
  for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){
    if( pConstraint->usable==0 ) continue;
    if( pConstraint->op!=SQLITE_INDEX_CONSTRAINT_EQ ) continue;
    if( pConstraint->iColumn < pTab->iHidden ) continue;
    j = pConstraint->iColumn - pTab->iHidden;
    assert( j < 2 );
    seen[j] = i+1;
  }
  if( seen[0]==0 ){
    pIdxInfo->estimatedCost = (double)2147483647;
    pIdxInfo->estimatedRows = 2147483647;
    return SQLITE_OK;
  }
  j = seen[0]-1;
  pIdxInfo->aConstraintUsage[j].argvIndex = 1;
  pIdxInfo->aConstraintUsage[j].omit = 1;
  if( seen[1]==0 ) return SQLITE_OK;
  pIdxInfo->estimatedCost = (double)20;
  pIdxInfo->estimatedRows = 20;
  j = seen[1]-1;
  pIdxInfo->aConstraintUsage[j].argvIndex = 2;
  pIdxInfo->aConstraintUsage[j].omit = 1;
  return SQLITE_OK;
}

// Assembly:
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x40(%rsi)
cmpb $0x0, 0x28(%rdi)
je 0x2b2965
movq 0x8(%rsi), %rax
movq $0x0, -0x8(%rsp)
movl (%rsi), %ecx
testl %ecx, %ecx
jle 0x2b2905
negl %ecx
addq $0x5, %rax
movl $0x1, %edx
cmpb $0x0, (%rax)
je 0x2b28f2
cmpb $0x2, -0x1(%rax)
jne 0x2b28f2
movslq -0x5(%rax), %r8
movzbl 0x29(%rdi), %r9d
cmpl %r9d, %r8d
jl 0x2b28f2
subq %r9, %r8
movl %edx, -0x8(%rsp,%r8,4)
leal (%rcx,%rdx), %r8d
incl %r8d
incl %edx
addq $0xc, %rax
cmpl $0x1, %r8d
jne 0x2b28d1
movslq -0x8(%rsp), %rcx
testq %rcx, %rcx
je 0x2b294f
movq 0x20(%rsi), %rax
movl $0x1, -0x8(%rax,%rcx,8)
movb $0x1, -0x4(%rax,%rcx,8)
movslq -0x4(%rsp), %rcx
testq %rcx, %rcx
je 0x2b2965
movabsq $0x4034000000000000, %rdx # imm = 0x4034000000000000
movq %rdx, 0x40(%rsi)
movq $0x14, 0x48(%rsi)
movl $0x2, -0x8(%rax,%rcx,8)
movb $0x1, -0x4(%rax,%rcx,8)
jmp 0x2b2965
movabsq $0x41dfffffffc00000, %rax # imm = 0x41DFFFFFFFC00000
movq %rax, 0x40(%rsi)
movq $0x7fffffff, 0x48(%rsi) # imm = 0x7FFFFFFF
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: pragmaVtabOpen
static int pragmaVtabOpen(sqlite3_vtab *pVtab, sqlite3_vtab_cursor **ppCursor){
  PragmaVtabCursor *pCsr;
  pCsr = (PragmaVtabCursor*)sqlite3_malloc(sizeof(*pCsr));
  if( pCsr==0 ) return SQLITE_NOMEM;
  memset(pCsr, 0, sizeof(PragmaVtabCursor));
  pCsr->base.pVtab = pVtab;
  *ppCursor = &pCsr->base;
  return SQLITE_OK;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x27bed9
testl %eax, %eax
je 0x2b2989
xorl %eax, %eax
jmp 0x2b2993
movl $0x28, %edi
callq 0x27c381
testq %rax, %rax
je 0x2b29b4
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movq %r14, (%rax)
movq %rax, (%rbx)
xorl %eax, %eax
jmp 0x2b29b9
movl $0x7, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: pragmaVtabClose
static int pragmaVtabClose(sqlite3_vtab_cursor *cur){
  PragmaVtabCursor *pCsr = (PragmaVtabCursor*)cur;
  pragmaVtabCursorClear(pCsr);
  sqlite3_free(pCsr);
  return SQLITE_OK;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x2b2c11
movq %rbx, %rdi
callq 0x27c490
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: pragmaVtabNext
static int pragmaVtabNext(sqlite3_vtab_cursor *pVtabCursor){
  PragmaVtabCursor *pCsr = (PragmaVtabCursor*)pVtabCursor;
  int rc = SQLITE_OK;

  /* Increment the xRowid value */
  pCsr->iRowid++;
  assert( pCsr->pPragma );
  if( SQLITE_ROW!=sqlite3_step(pCsr->pPragma) ){
    rc = sqlite3_finalize(pCsr->pPragma);
    pCsr->pPragma = 0;
    pragmaVtabCursorClear(pCsr);
  }
  return rc;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
incq 0x10(%rdi)
movq 0x8(%rdi), %rdi
callq 0x282502
cmpl $0x64, %eax
jne 0x2b2b89
xorl %eax, %eax
jmp 0x2b2ba6
movq 0x8(%rbx), %rdi
callq 0x2817e7
movl %eax, %ebp
movq $0x0, 0x8(%rbx)
movq %rbx, %rdi
callq 0x2b2c11
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: pragmaVtabColumn
static int pragmaVtabColumn(
  sqlite3_vtab_cursor *pVtabCursor,
  sqlite3_context *ctx,
  int i
){
  PragmaVtabCursor *pCsr = (PragmaVtabCursor*)pVtabCursor;
  PragmaVtab *pTab = (PragmaVtab*)(pVtabCursor->pVtab);
  if( i<pTab->iHidden ){
    sqlite3_result_value(ctx, sqlite3_column_value(pCsr->pPragma, i));
  }else{
    sqlite3_result_text(ctx, pCsr->azArg[i-pTab->iHidden],-1,SQLITE_TRANSIENT);
  }
  return SQLITE_OK;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movq (%rdi), %rax
movzbl 0x29(%rax), %eax
cmpl %eax, %edx
jge 0x2b2bdf
movq 0x8(%rdi), %rdi
movl %edx, %esi
callq 0x283785
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x282324
jmp 0x2b2c03
movslq %edx, %rcx
subq %rax, %rcx
movq 0x18(%rdi,%rcx,8), %rsi
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x1, %ecx
movq $-0x1, %r8
callq 0x281e1a
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: pragmaVtabCursorClear
static void pragmaVtabCursorClear(PragmaVtabCursor *pCsr){
  int i;
  sqlite3_finalize(pCsr->pPragma);
  pCsr->pPragma = 0;
  for(i=0; i<ArraySize(pCsr->azArg); i++){
    sqlite3_free(pCsr->azArg[i]);
    pCsr->azArg[i] = 0;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x2817e7
movq $0x0, 0x8(%rbx)
xorl %r14d, %r14d
movq 0x18(%rbx,%r14,8), %rdi
callq 0x27c490
movq $0x0, 0x18(%rbx,%r14,8)
incq %r14
cmpq $0x1, %r14
je 0x2b2c2c
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: addModuleArgument
static void addModuleArgument(Parse *pParse, Table *pTable, char *zArg){
  sqlite3_int64 nBytes = sizeof(char *)*(2+pTable->nModuleArg);
  char **azModuleArg;
  sqlite3 *db = pParse->db;
  if( pTable->nModuleArg+3>=db->aLimit[SQLITE_LIMIT_COLUMN] ){
    sqlite3ErrorMsg(pParse, "too many columns on %s", pTable->zName);
  }
  azModuleArg = sqlite3DbRealloc(db, pTable->azModuleArg, nBytes);
  if( azModuleArg==0 ){
    sqlite3DbFree(db, zArg);
  }else{
    int i = pTable->nModuleArg++;
    azModuleArg[i] = zArg;
    azModuleArg[i+1] = 0;
    pTable->azModuleArg = azModuleArg;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movslq 0x54(%rsi), %rax
leaq 0x10(,%rax,8), %r12
movq (%rdi), %r15
addl $0x3, %eax
cmpl 0x84(%r15), %eax
jl 0x2b2c8a
movq (%r14), %rdx
leaq 0x12dd6d(%rip), %rsi    # 0x3e09f0
xorl %eax, %eax
callq 0x284eb8
movq 0x58(%r14), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x28c4c8
testq %rax, %rax
je 0x2b2cc7
movslq 0x54(%r14), %rcx
leaq 0x1(%rcx), %rdx
movl %edx, 0x54(%r14)
movq %rbx, (%rax,%rcx,8)
movq $0x0, 0x8(%rax,%rcx,8)
movq %rax, 0x58(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
testq %rbx, %rbx
je 0x2b2cbb
movq %r15, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x28c3e7
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3CollapseDatabaseArray
SQLITE_PRIVATE void sqlite3CollapseDatabaseArray(sqlite3 *db){
  int i, j;
  for(i=j=2; i<db->nDb; i++){
    struct Db *pDb = &db->aDb[i];
    if( pDb->pBt==0 ){
      sqlite3DbFree(db, pDb->zDbSName);
      pDb->zDbSName = 0;
      continue;
    }
    if( j<i ){
      db->aDb[j] = db->aDb[i];
    }
    j++;
  }
  db->nDb = j;
  if( db->nDb<=2 && db->aDb!=db->aDbStatic ){
    memcpy(db->aDbStatic, db->aDb, 2*sizeof(db->aDb[0]));
    sqlite3DbFree(db, db->aDb);
    db->aDb = db->aDbStatic;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl $0x2, %ebp
cmpl $0x3, 0x28(%rdi)
jl 0x2b2d61
movl $0x2, %r14d
movl $0x40, %r15d
movq 0x20(%rbx), %rax
leaq (%rax,%r15), %r12
cmpq $0x0, 0x8(%rax,%r15)
je 0x2b2d38
movslq %ebp, %rcx
cmpq %rcx, %r14
jle 0x2b2d34
shlq $0x5, %rcx
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups %xmm1, 0x10(%rax,%rcx)
movups %xmm0, (%rax,%rcx)
incl %ebp
jmp 0x2b2d51
movq (%r12), %rsi
testq %rsi, %rsi
je 0x2b2d49
movq %rbx, %rdi
callq 0x28c3e7
movq $0x0, (%r12)
incq %r14
movslq 0x28(%rbx), %rax
addq $0x20, %r15
cmpq %rax, %r14
jl 0x2b2d04
movl %ebp, 0x28(%rbx)
cmpl $0x2, %ebp
jg 0x2b2dac
movq 0x20(%rbx), %rsi
leaq 0x268(%rbx), %r14
cmpq %r14, %rsi
je 0x2b2dac
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups 0x20(%rsi), %xmm2
movups 0x30(%rsi), %xmm3
movups %xmm3, 0x30(%r14)
movups %xmm2, 0x20(%r14)
movups %xmm1, 0x10(%r14)
movups %xmm0, (%r14)
testq %rsi, %rsi
je 0x2b2da8
movq %rbx, %rdi
callq 0x28c3e7
movq %r14, 0x20(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3DeleteColumnNames
SQLITE_PRIVATE void sqlite3DeleteColumnNames(sqlite3 *db, Table *pTable){
  int i;
  Column *pCol;
  assert( pTable!=0 );
  if( (pCol = pTable->aCol)!=0 ){
    for(i=0; i<pTable->nCol; i++, pCol++){
      assert( pCol->zName==0 || pCol->hName==sqlite3StrIHash(pCol->zName) );
      sqlite3DbFree(db, pCol->zName);
      sqlite3ExprDelete(db, pCol->pDflt);
      sqlite3DbFree(db, pCol->zColl);
    }
    sqlite3DbFree(db, pTable->aCol);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x8(%rsi), %r15
testq %r15, %r15
je 0x2b300e
movq %rsi, %r14
movq %rdi, %rbx
cmpw $0x0, 0x46(%rsi)
jle 0x2b2ff3
xorl %ebp, %ebp
movq (%r15), %rsi
testq %rsi, %rsi
je 0x2b2fc2
movq %rbx, %rdi
callq 0x28c3e7
movq 0x8(%r15), %rsi
testq %rsi, %rsi
je 0x2b2fd3
movq %rbx, %rdi
callq 0x2afd54
movq 0x10(%r15), %rsi
testq %rsi, %rsi
je 0x2b2fe4
movq %rbx, %rdi
callq 0x28c3e7
incl %ebp
addq $0x20, %r15
movswl 0x46(%r14), %eax
cmpl %eax, %ebp
jl 0x2b2fb2
movq 0x8(%r14), %rsi
testq %rsi, %rsi
je 0x2b300e
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x28c3e7
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3DeleteTriggerStep
SQLITE_PRIVATE void sqlite3DeleteTriggerStep(sqlite3 *db, TriggerStep *pTriggerStep){
  while( pTriggerStep ){
    TriggerStep * pTmp = pTriggerStep;
    pTriggerStep = pTriggerStep->pNext;

    sqlite3ExprDelete(db, pTmp->pWhere);
    sqlite3ExprListDelete(db, pTmp->pExprList);
    sqlite3SelectDelete(db, pTmp->pSelect);
    sqlite3IdListDelete(db, pTmp->pIdList);
    sqlite3UpsertDelete(db, pTmp->pUpsert);
    sqlite3SrcListDelete(db, pTmp->pFrom);
    sqlite3DbFree(db, pTmp->zSpan);

    sqlite3DbFree(db, pTmp);
  }
}

// Assembly:
testq %rsi, %rsi
je 0x2b31f6
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x28(%r14), %rsi
movq 0x50(%r14), %r15
testq %rsi, %rsi
je 0x2b317e
movq %rbx, %rdi
callq 0x2afd54
movq 0x30(%r14), %rsi
testq %rsi, %rsi
je 0x2b318f
movq %rbx, %rdi
callq 0x2b0183
movq 0x10(%r14), %rsi
testq %rsi, %rsi
je 0x2b31a5
movq %rbx, %rdi
movl $0x1, %edx
callq 0x2afecb
movq 0x38(%r14), %rsi
movq %rbx, %rdi
callq 0x2b0119
movq 0x40(%r14), %rsi
movq %rbx, %rdi
callq 0x2b31f7
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2affb4
movq 0x48(%r14), %rsi
testq %rsi, %rsi
je 0x2b31da
movq %rbx, %rdi
callq 0x28c3e7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x28c3e7
movq %r15, %r14
testq %r15, %r15
jne 0x2b3169
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3UpsertDelete
SQLITE_PRIVATE void sqlite3UpsertDelete(sqlite3 *db, Upsert *p){
  if( p ){
    sqlite3ExprListDelete(db, p->pUpsertTarget);
    sqlite3ExprDelete(db, p->pUpsertTargetWhere);
    sqlite3ExprListDelete(db, p->pUpsertSet);
    sqlite3ExprDelete(db, p->pUpsertWhere);
    sqlite3DbFree(db, p);
  }
}

// Assembly:
testq %rsi, %rsi
je 0x2b325b
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rsi
testq %rsi, %rsi
je 0x2b3216
movq %r14, %rdi
callq 0x2b0183
movq 0x8(%rbx), %rsi
testq %rsi, %rsi
je 0x2b3227
movq %r14, %rdi
callq 0x2afd54
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x2b3238
movq %r14, %rdi
callq 0x2b0183
movq 0x18(%rbx), %rsi
testq %rsi, %rsi
je 0x2b3249
movq %r14, %rdi
callq 0x2afd54
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x28c3e7
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: getToken
static int getToken(const unsigned char **pz){
  const unsigned char *z = *pz;
  int t;                          /* Token type to return */
  do {
    z += sqlite3GetToken(z, &t);
  }while( t==TK_SPACE );
  if( t==TK_ID
   || t==TK_STRING
   || t==TK_JOIN_KW
   || t==TK_WINDOW
   || t==TK_OVER
   || sqlite3ParserFallback(t)==TK_ID
  ){
    t = TK_ID;
  }
  *pz = z;
  return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
leaq 0xc(%rsp), %r14
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x2b1955
cltq
addq %r15, %rax
movslq 0xc(%rsp), %rcx
cmpq $0xb3, %rcx
je 0x2b36f3
leal -0x73(%rcx), %edx
cmpl $0x2f, %edx
ja 0x2b3745
movabsq $0xc00000000003, %rsi   # imm = 0xC00000000003
btq %rdx, %rsi
jae 0x2b3745
movl $0x3b, 0xc(%rsp)
movq %rax, (%rbx)
movl 0xc(%rsp), %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
cmpl $0x3b, %ecx
je 0x2b372c
leaq 0x12832f(%rip), %rdx    # 0x3dba80
cmpw $0x3b, (%rdx,%rcx,2)
je 0x2b372c
jmp 0x2b3734
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: yyStackOverflow
static void yyStackOverflow(yyParser *yypParser){
   sqlite3ParserARG_FETCH
   sqlite3ParserCTX_FETCH
#ifndef NDEBUG
   if( yyTraceFILE ){
     fprintf(yyTraceFILE,"%sStack Overflow!\n",yyTracePrompt);
   }
#endif
   while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
   /* Here code is inserted which will execute if the parser
   ** stack every overflows */
/******** Begin %stack_overflow code ******************************************/

  sqlite3ErrorMsg(pParse, "parser stack overflow");
/******** End %stack_overflow code ********************************************/
   sqlite3ParserARG_STORE /* Suppress warning about unused %extra_argument var */
   sqlite3ParserCTX_STORE
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdx
movq 0x8(%rdi), %r14
leaq 0x10(%rdi), %r15
cmpq %r15, %rdx
jbe 0x2b5ab4
leaq -0x18(%rdx), %rax
movq %rax, (%rbx)
movzwl 0x2(%rdx), %esi
addq $0x8, %rdx
movq %rbx, %rdi
callq 0x2b597b
movq (%rbx), %rdx
jmp 0x2b5a93
leaq 0x12b1e0(%rip), %rsi    # 0x3e0c9b
movq %r14, %rdi
xorl %eax, %eax
callq 0x284eb8
movq %r14, 0x8(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3BeginTransaction
SQLITE_PRIVATE void sqlite3BeginTransaction(Parse *pParse, int type){
  sqlite3 *db;
  Vdbe *v;
  int i;

  assert( pParse!=0 );
  db = pParse->db;
  assert( db!=0 );
  if( sqlite3AuthCheck(pParse, SQLITE_TRANSACTION, "BEGIN", 0, 0) ){
    return;
  }
  v = sqlite3GetVdbe(pParse);
  if( !v ) return;
  if( type!=TK_DEFERRED ){
    for(i=0; i<db->nDb; i++){
      sqlite3VdbeAddOp2(v, OP_Transaction, i, (type==TK_EXCLUSIVE)+1);
      sqlite3VdbeUsesBtree(v, i);
    }
  }
  sqlite3VdbeAddOp0(v, OP_AutoCommit);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
movq (%rdi), %r15
leaq 0x12a543(%rip), %rdx    # 0x3e02a2
movl $0x16, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2cceea
testl %eax, %eax
je 0x2b5d7b
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x2c5ddf
testq %rax, %rax
je 0x2b5d72
movq %rax, %rbx
cmpl $0x7, %r14d
je 0x2b5dff
cmpl $0x0, 0x28(%r15)
jle 0x2b5dff
xorl %ebp, %ebp
cmpl $0x9, %r14d
sete %bpl
incl %ebp
movl $0x8, %r12d
xorl %r14d, %r14d
movq %rbx, %rdi
movl $0x2, %esi
movl %r14d, %edx
movl %ebp, %ecx
xorl %r8d, %r8d
callq 0x2b200c
movl $0x1, %eax
movl %r14d, %ecx
shll %cl, %eax
orl %eax, 0xc8(%rbx)
cmpq $0x1, %r14
je 0x2b5def
movq (%rbx), %rcx
movq 0x20(%rcx), %rcx
movq (%rcx,%r12), %rcx
cmpb $0x0, 0x11(%rcx)
je 0x2b5def
orl %eax, 0xcc(%rbx)
incq %r14
movslq 0x28(%r15), %rax
addq $0x20, %r12
cmpq %rax, %r14
jl 0x2b5dad
movq %rbx, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2b200c
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3EndTransaction
SQLITE_PRIVATE void sqlite3EndTransaction(Parse *pParse, int eType){
  Vdbe *v;
  int isRollback;

  assert( pParse!=0 );
  assert( pParse->db!=0 );
  assert( eType==TK_COMMIT || eType==TK_END || eType==TK_ROLLBACK );
  isRollback = eType==TK_ROLLBACK;
  if( sqlite3AuthCheck(pParse, SQLITE_TRANSACTION,
       isRollback ? "ROLLBACK" : "COMMIT", 0, 0) ){
    return;
  }
  v = sqlite3GetVdbe(pParse);
  if( v ){
    sqlite3VdbeAddOp2(v, OP_AutoCommit, 1, isRollback);
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
xorl %ebx, %ebx
cmpl $0xc, %esi
sete %bpl
leaq 0x12ddf7(%rip), %rax    # 0x3e3c29
leaq 0x12b047(%rip), %rdx    # 0x3e0e80
cmoveq %rax, %rdx
movl $0x16, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2cceea
testl %eax, %eax
je 0x2b5e55
popq %rbx
popq %r14
popq %rbp
retq
movq %r14, %rdi
callq 0x2c5ddf
testq %rax, %rax
je 0x2b5e50
movb %bpl, %bl
movq %rax, %rdi
movl $0x1, %esi
movl $0x1, %edx
movl %ebx, %ecx
xorl %r8d, %r8d
popq %rbx
popq %r14
popq %rbp
jmp 0x2b200c
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3PExpr
SQLITE_PRIVATE Expr *sqlite3PExpr(
  Parse *pParse,          /* Parsing context */
  int op,                 /* Expression opcode */
  Expr *pLeft,            /* Left operand */
  Expr *pRight            /* Right operand */
){
  Expr *p;
  p = sqlite3DbMallocRawNN(pParse->db, sizeof(Expr));
  if( p ){
    memset(p, 0, sizeof(Expr));
    p->op = op & 0xff;
    p->iAgg = -1;
    sqlite3ExprAttachSubtrees(pParse->db, p, pLeft, pRight);
    sqlite3ExprCheckHeight(pParse, p->nHeight);
  }else{
    sqlite3ExprDelete(pParse->db, pLeft);
    sqlite3ExprDelete(pParse->db, pRight);
  }
  return p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %r14
movq (%rdi), %rdi
movl $0x48, %esi
callq 0x28c518
movq %rax, %rbx
testq %rax, %rax
je 0x2b701d
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movq $0x0, 0x40(%rbx)
movb %bpl, (%rbx)
movw $0xffff, 0x32(%rbx)     # imm = 0xFFFF
movq (%r14), %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x2c01a0
movq (%r14), %rax
movl 0x88(%rax), %edx
cmpl 0x28(%rbx), %edx
jge 0x2b703d
leaq 0x12a7ee(%rip), %rsi    # 0x3e17ff
movq %r14, %rdi
xorl %eax, %eax
callq 0x284eb8
jmp 0x2b703d
testq %r12, %r12
je 0x2b702d
movq (%r14), %rdi
movq %r12, %rsi
callq 0x2afd54
testq %r15, %r15
je 0x2b703d
movq (%r14), %rdi
movq %r15, %rsi
callq 0x2afd54
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: tokenExpr
static Expr *tokenExpr(Parse *pParse, int op, Token t){
    Expr *p = sqlite3DbMallocRawNN(pParse->db, sizeof(Expr)+t.n+1);
    if( p ){
      /* memset(p, 0, sizeof(Expr)); */
      p->op = (u8)op;
      p->affExpr = 0;
      p->flags = EP_Leaf;
      ExprClearVVAProperties(p);
      p->iAgg = -1;
      p->pLeft = p->pRight = 0;
      p->x.pList = 0;
      p->pAggInfo = 0;
      p->y.pTab = 0;
      p->op2 = 0;
      p->iTable = 0;
      p->iColumn = 0;
      p->u.zToken = (char*)&p[1];
      memcpy(p->u.zToken, t.z, t.n);
      p->u.zToken[t.n] = 0;
      if( sqlite3Isquote(p->u.zToken[0]) ){
        sqlite3DequoteExpr(p);
      }
#if SQLITE_MAX_EXPR_DEPTH>0
      p->nHeight = 1;
#endif
      if( IN_RENAME_OBJECT ){
        return (Expr*)sqlite3RenameTokenMap(pParse, (void*)p, &t);
      }
    }
    return p;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %rbx
movq %rdx, 0x8(%rsp)
movl %ecx, 0x10(%rsp)
movq (%rdi), %rdi
movl %ecx, %r13d
leaq 0x49(%r13), %rsi
callq 0x28c518
movq %rax, %r14
testq %rax, %rax
je 0x2b7126
movq %rax, %r15
movb %bpl, (%r14)
movw $0x0, 0x1(%r14)
movl $0x800000, 0x4(%r14)    # imm = 0x800000
movabsq $-0x1000000000000, %rax # imm = 0xFFFF000000000000
movq %rax, 0x2c(%r14)
addq $0x48, %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
movq $0x0, 0x20(%r14)
movups %xmm0, 0x38(%r14)
movq %r15, 0x8(%r14)
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x17660
movb $0x0, 0x48(%r14,%r13)
movzbl 0x48(%r14), %eax
leaq 0x123add(%rip), %rcx    # 0x3dabc0
cmpb $0x0, (%rax,%rcx)
jns 0x2b7105
xorl %ecx, %ecx
cmpb $0x22, %al
sete %cl
shll $0x6, %ecx
orl $0x4800000, %ecx        # imm = 0x4800000
movl %ecx, 0x4(%r14)
movq %r15, %rdi
callq 0x2d30c7
movl $0x1, 0x28(%r14)
cmpb $0x2, 0x11c(%rbx)
jb 0x2b7126
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2bb62e
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3ExprIdToTrueFalse
SQLITE_PRIVATE int sqlite3ExprIdToTrueFalse(Expr *pExpr){
  u32 v;
  assert( pExpr->op==TK_ID || pExpr->op==TK_STRING );
  if( !ExprHasProperty(pExpr, EP_Quoted)
   && (v = sqlite3IsTrueOrFalse(pExpr->u.zToken))!=0
  ){
    pExpr->op = TK_TRUEFALSE;
    ExprSetProperty(pExpr, v);
    return 1;
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl 0x4(%rdi), %ebp
xorl %ebx, %ebx
btl $0x1a, %ebp
jb 0x2b7166
movq %rdi, %r14
movq 0x8(%rdi), %rdi
callq 0x2d27c2
testl %eax, %eax
je 0x2b7166
movb $-0x59, (%r14)
orl %ebp, %eax
movl %eax, 0x4(%r14)
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3AddNotNull
SQLITE_PRIVATE void sqlite3AddNotNull(Parse *pParse, int onError){
  Table *p;
  Column *pCol;
  p = pParse->pNewTable;
  if( p==0 || NEVER(p->nCol<1) ) return;
  pCol = &p->aCol[p->nCol-1];
  pCol->notNull = (u8)onError;
  p->tabFlags |= TF_HasNotNull;

  /* Set the uniqNotNull flag on any UNIQUE or PK indexes already created
  ** on this column.  */
  if( pCol->colFlags & COLFLAG_UNIQUE ){
    Index *pIdx;
    for(pIdx=p->pIndex; pIdx; pIdx=pIdx->pNext){
      assert( pIdx->nKeyCol==1 && pIdx->onError!=OE_None );
      if( pIdx->aiColumn[0]==p->nCol-1 ){
        pIdx->uniqNotNull = 1;
      }
    }
  }
}

// Assembly:
movq 0x148(%rdi), %rax
testq %rax, %rax
je 0x2b719d
movswq 0x46(%rax), %rcx
testq %rcx, %rcx
jle 0x2b719d
movq 0x8(%rax), %rdx
decl %ecx
shlq $0x5, %rcx
movb %sil, 0x18(%rdx,%rcx)
orb $0x8, 0x41(%rax)
testb $0x8, 0x1c(%rdx,%rcx)
jne 0x2b719e
retq
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x2b719d
movq 0x8(%rcx), %rdx
movswl (%rdx), %edx
movswl 0x46(%rax), %esi
decl %esi
cmpl %edx, %esi
jne 0x2b71bc
orb $0x8, 0x63(%rcx)
movq 0x28(%rcx), %rcx
jmp 0x2b71a2
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3AddCheckConstraint
SQLITE_PRIVATE void sqlite3AddCheckConstraint(
  Parse *pParse,    /* Parsing context */
  Expr *pCheckExpr  /* The check expression */
){
#ifndef SQLITE_OMIT_CHECK
  Table *pTab = pParse->pNewTable;
  sqlite3 *db = pParse->db;
  if( pTab && !IN_DECLARE_VTAB
   && !sqlite3BtreeIsReadonly(db->aDb[db->init.iDb].pBt)
  ){
    pTab->pCheck = sqlite3ExprListAppend(pParse, pTab->pCheck, pCheckExpr);
    if( pParse->constraintName.n ){
      sqlite3ExprListSetName(pParse, pTab->pCheck, &pParse->constraintName, 1);
    }
  }else
#endif
  {
    sqlite3ExprDelete(pParse->db, pCheckExpr);
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rdx
movq %rdi, %rbx
movq (%rdi), %rdi
movq 0x148(%rbx), %r14
testq %r14, %r14
je 0x2b85b8
cmpb $0x1, 0x11c(%rbx)
je 0x2b85b8
movq 0x20(%rdi), %rax
movzbl 0xb4(%rdi), %ecx
shll $0x5, %ecx
movq 0x8(%rax,%rcx), %rax
movq 0x8(%rax), %rax
testb $0x1, 0x28(%rax)
jne 0x2b85b8
movq 0x30(%r14), %rsi
movq %rbx, %rdi
callq 0x2bb1a3
movq %rax, 0x30(%r14)
cmpl $0x0, 0x68(%rbx)
je 0x2b85cc
leaq 0x60(%rbx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
movl $0x1, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2bb245
testq %rdx, %rdx
je 0x2b85cc
movq %rdx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2afd54
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: parserDoubleLinkSelect
static void parserDoubleLinkSelect(Parse *pParse, Select *p){
    assert( p!=0 );
    if( p->pPrior ){
      Select *pNext = 0, *pLoop;
      int mxSelect, cnt = 0;
      for(pLoop=p; pLoop; pNext=pLoop, pLoop=pLoop->pPrior, cnt++){
        pLoop->pNext = pNext;
        pLoop->selFlags |= SF_Compound;
      }
      if( (p->selFlags & SF_MultiValue)==0 &&
        (mxSelect = pParse->db->aLimit[SQLITE_LIMIT_COMPOUND_SELECT])>0 &&
        cnt>mxSelect
      ){
        sqlite3ErrorMsg(pParse, "too many terms in compound SELECT");
      }
    }
  }

// Assembly:
cmpq $0x0, 0x50(%rsi)
je 0x2baf07
xorl %eax, %eax
testq %rsi, %rsi
je 0x2baeda
xorl %edx, %edx
movq %rsi, %rcx
movq %rdx, 0x58(%rcx)
orb $0x1, 0x5(%rcx)
movq %rcx, %rdx
movq 0x50(%rcx), %r8
incl %eax
movq %r8, %rcx
testq %r8, %r8
jne 0x2baec1
testb $0x4, 0x5(%rsi)
jne 0x2baf07
movq (%rdi), %rcx
movl 0x8c(%rcx), %ecx
testl %ecx, %ecx
setg %dl
cmpl %ecx, %eax
setg %al
andb %dl, %al
cmpb $0x1, %al
jne 0x2baf07
leaq 0x12748a(%rip), %rsi    # 0x3e238a
xorl %eax, %eax
jmp 0x284eb8
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3ExprListAppend
SQLITE_PRIVATE ExprList *sqlite3ExprListAppend(
  Parse *pParse,          /* Parsing context */
  ExprList *pList,        /* List to which to append. Might be NULL */
  Expr *pExpr             /* Expression to be appended. Might be NULL */
){
  struct ExprList_item *pItem;
  sqlite3 *db = pParse->db;
  assert( db!=0 );
  if( pList==0 ){
    pList = sqlite3DbMallocRawNN(db, sizeof(ExprList) );
    if( pList==0 ){
      goto no_mem;
    }
    pList->nExpr = 0;
  }else if( (pList->nExpr & (pList->nExpr-1))==0 ){
    ExprList *pNew;
    pNew = sqlite3DbRealloc(db, pList,
         sizeof(*pList)+(2*(sqlite3_int64)pList->nExpr-1)*sizeof(pList->a[0]));
    if( pNew==0 ){
      goto no_mem;
    }
    pList = pNew;
  }
  pItem = &pList->a[pList->nExpr++];
  assert( offsetof(struct ExprList_item,zEName)==sizeof(pItem->pExpr) );
  assert( offsetof(struct ExprList_item,pExpr)==0 );
  memset(&pItem->zEName,0,sizeof(*pItem)-offsetof(struct ExprList_item,zEName));
  pItem->pExpr = pExpr;
  return pList;

no_mem:
  /* Avoid leaking memory if malloc has failed. */
  sqlite3ExprDelete(db, pExpr);
  sqlite3ExprListDelete(db, pList);
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq (%rdi), %r15
testq %rsi, %rsi
je 0x2bb1e2
movq %rsi, %rbx
movslq (%rsi), %rax
leal -0x1(%rax), %ecx
testl %ecx, %eax
jne 0x2bb1fd
shlq $0x4, %rax
leaq (%rax,%rax,2), %rdx
addq $0x8, %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x28c4c8
testq %rax, %rax
cmovneq %rax, %rbx
jne 0x2bb1fd
jmp 0x2bb21a
movl $0x20, %esi
movq %r15, %rdi
callq 0x28c518
testq %rax, %rax
je 0x2bb218
movq %rax, %rbx
movl $0x0, (%rax)
movslq (%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%rbx)
leaq (%rax,%rax,2), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx,%rax,8)
movq %r14, 0x8(%rbx,%rax,8)
jmp 0x2bb23c
xorl %ebx, %ebx
testq %r14, %r14
je 0x2bb22a
movq %r15, %rdi
movq %r14, %rsi
callq 0x2afd54
testq %rbx, %rbx
je 0x2bb23a
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2b0183
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3ExprListSetName
SQLITE_PRIVATE void sqlite3ExprListSetName(
  Parse *pParse,          /* Parsing context */
  ExprList *pList,        /* List to which to add the span. */
  Token *pName,           /* Name to be added */
  int dequote             /* True to cause the name to be dequoted */
){
  assert( pList!=0 || pParse->db->mallocFailed!=0 );
  assert( pParse->eParseMode!=PARSE_MODE_UNMAP || dequote==0 );
  if( pList ){
    struct ExprList_item *pItem;
    assert( pList->nExpr>0 );
    pItem = &pList->a[pList->nExpr-1];
    assert( pItem->zEName==0 );
    assert( pItem->eEName==ENAME_NAME );
    pItem->zEName = sqlite3DbStrNDup(pParse->db, pName->z, pName->n);
    if( dequote ){
      /* If dequote==0, then pName->z does not point to part of a DDL
      ** statement handled by the parser. And so no token need be added
      ** to the token-map.  */
      sqlite3Dequote(pItem->zEName);
      if( IN_RENAME_OBJECT ){
        sqlite3RenameTokenMap(pParse, (void*)pItem->zEName, pName);
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
testq %rsi, %rsi
je 0x2bb2ff
movq %rdx, %rbx
movq %rsi, %r15
movl %ecx, 0x14(%rsp)
movslq (%rsi), %r14
movq (%rdx), %r13
movl 0x8(%rdx), %r12d
testq %r13, %r13
je 0x2bb291
movq 0x8(%rsp), %rax
movq (%rax), %rdi
leaq 0x1(%r12), %rsi
callq 0x28c518
movq %rax, %rbp
jmp 0x2bb293
xorl %ebp, %ebp
addq $0x8, %r15
decq %r14
testq %rbp, %rbp
je 0x2bb2b3
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x17660
movb $0x0, (%rbp,%r12)
leaq (%r14,%r14,2), %r14
movq %rbp, 0x8(%r15,%r14,8)
cmpl $0x0, 0x14(%rsp)
je 0x2bb2ff
movq %rbp, %rdi
callq 0x2d30c7
movq 0x8(%rsp), %rax
cmpb $0x2, 0x11c(%rax)
jb 0x2bb2ff
leaq (%r15,%r14,8), %rax
addq $0x8, %rax
movq (%rax), %rsi
movq 0x8(%rsp), %rdi
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2bb62e
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3ExprListSetSpan
SQLITE_PRIVATE void sqlite3ExprListSetSpan(
  Parse *pParse,          /* Parsing context */
  ExprList *pList,        /* List to which to add the span. */
  const char *zStart,     /* Start of the span */
  const char *zEnd        /* End of the span */
){
  sqlite3 *db = pParse->db;
  assert( pList!=0 || db->mallocFailed!=0 );
  if( pList ){
    struct ExprList_item *pItem = &pList->a[pList->nExpr-1];
    assert( pList->nExpr>0 );
    if( pItem->zEName==0 ){
      pItem->zEName = sqlite3DbSpanDup(db, zStart, zEnd);
      pItem->eEName = ENAME_SPAN;
    }
  }
}

// Assembly:
testq %rsi, %rsi
je 0x2bb322
movslq (%rsi), %rax
leaq (%rax,%rax,2), %rax
cmpq $0x0, -0x8(%rsi,%rax,8)
je 0x2bb323
retq
pushq %rbx
movq (%rdi), %rdi
leaq (%rsi,%rax,8), %rbx
addq $-0x10, %rbx
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x2d311d
movq %rax, 0x8(%rbx)
movb 0x11(%rbx), %al
andb $-0x4, %al
incb %al
movb %al, 0x11(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3Expr
SQLITE_PRIVATE Expr *sqlite3Expr(
  sqlite3 *db,            /* Handle for sqlite3DbMallocZero() (may be null) */
  int op,                 /* Expression opcode */
  const char *zToken      /* Token argument.  Might be NULL */
){
  Token x;
  x.z = zToken;
  x.n = sqlite3Strlen30(zToken);
  return sqlite3ExprAlloc(db, op, &x, 0);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebx
movq %rdi, %r14
movq %rdx, 0x8(%rsp)
testq %rdx, %rdx
je 0x2bb36f
movq %rdx, %rdi
callq 0x172f0
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
jmp 0x2bb371
xorl %eax, %eax
leaq 0x8(%rsp), %rdx
movl %eax, 0x8(%rdx)
movq %r14, %rdi
movl %ebx, %esi
xorl %ecx, %ecx
callq 0x2bb38d
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3ExprAlloc
SQLITE_PRIVATE Expr *sqlite3ExprAlloc(
  sqlite3 *db,            /* Handle for sqlite3DbMallocRawNN() */
  int op,                 /* Expression opcode */
  const Token *pToken,    /* Token argument.  Might be NULL */
  int dequote             /* True to dequote */
){
  Expr *pNew;
  int nExtra = 0;
  int iValue = 0;

  assert( db!=0 );
  if( pToken ){
    if( op!=TK_INTEGER || pToken->z==0
          || sqlite3GetInt32(pToken->z, &iValue)==0 ){
      nExtra = pToken->n+1;
      assert( iValue>=0 );
    }
  }
  pNew = sqlite3DbMallocRawNN(db, sizeof(Expr)+nExtra);
  if( pNew ){
    memset(pNew, 0, sizeof(Expr));
    pNew->op = (u8)op;
    pNew->iAgg = -1;
    if( pToken ){
      if( nExtra==0 ){
        pNew->flags |= EP_IntValue|EP_Leaf|(iValue?EP_IsTrue:EP_IsFalse);
        pNew->u.iValue = iValue;
      }else{
        pNew->u.zToken = (char*)&pNew[1];
        assert( pToken->z!=0 || pToken->n==0 );
        if( pToken->n ) memcpy(pNew->u.zToken, pToken->z, pToken->n);
        pNew->u.zToken[pToken->n] = 0;
        if( dequote && sqlite3Isquote(pNew->u.zToken[0]) ){
          sqlite3DequoteExpr(pNew);
        }
      }
    }
#if SQLITE_MAX_EXPR_DEPTH>0
    pNew->nHeight = 1;
#endif
  }
  return pNew;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebx
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r14
movl $0x0, 0xc(%rsp)
xorl %r12d, %r12d
testq %rdx, %rdx
je 0x2bb3d8
cmpl $0x98, %ebp
jne 0x2bb3d1
movq (%r15), %rdi
testq %rdi, %rdi
je 0x2bb3d1
leaq 0xc(%rsp), %rsi
callq 0x2afbb4
testl %eax, %eax
jne 0x2bb3d8
movl 0x8(%r15), %r12d
incl %r12d
movslq %r12d, %rsi
addq $0x48, %rsi
movq %r14, %rdi
callq 0x28c518
movq %rax, %r14
testq %rax, %rax
je 0x2bb4ac
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movups %xmm0, 0x30(%r14)
movups %xmm0, 0x20(%r14)
movups %xmm0, 0x10(%r14)
movq $0x0, 0x40(%r14)
movb %bpl, (%r14)
movw $0xffff, 0x32(%r14)     # imm = 0xFFFF
testq %r15, %r15
je 0x2bb4a4
testl %r12d, %r12d
je 0x2bb488
movq %r14, %rdi
addq $0x48, %rdi
movq %rdi, 0x8(%r14)
movl 0x8(%r15), %edx
testq %rdx, %rdx
je 0x2bb445
movq (%r15), %rsi
callq 0x17660
movq 0x8(%r14), %rax
movl 0x8(%r15), %ecx
movb $0x0, (%rax,%rcx)
testl %ebx, %ebx
je 0x2bb4a4
movq 0x8(%r14), %rdi
movzbl (%rdi), %eax
leaq 0x11f75d(%rip), %rcx    # 0x3dabc0
cmpb $0x0, (%rax,%rcx)
jns 0x2bb4a4
xorl %ecx, %ecx
cmpb $0x22, %al
sete %cl
shll $0x6, %ecx
orl 0x4(%r14), %ecx
orl $0x4000000, %ecx        # imm = 0x4000000
movl %ecx, 0x4(%r14)
callq 0x2d30c7
jmp 0x2bb4a4
movl 0xc(%rsp), %eax
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
shll $0x1c, %ecx
addl $0x10800400, %ecx       # imm = 0x10800400
orl %ecx, 0x4(%r14)
movl %eax, 0x8(%r14)
movl $0x1, 0x28(%r14)
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3SrcListIndexedBy
SQLITE_PRIVATE void sqlite3SrcListIndexedBy(Parse *pParse, SrcList *p, Token *pIndexedBy){
  assert( pIndexedBy!=0 );
  if( p && pIndexedBy->n>0 ){
    struct SrcList_item *pItem;
    assert( p->nSrc>0 );
    pItem = &p->a[p->nSrc-1];
    assert( pItem->fg.notIndexed==0 );
    assert( pItem->fg.isIndexedBy==0 );
    assert( pItem->fg.isTabFunc==0 );
    if( pIndexedBy->n==1 && !pIndexedBy->z ){
      /* A "NOT INDEXED" clause was supplied. See parse.y
      ** construct "indexed_opt" for details. */
      pItem->fg.notIndexed = 1;
    }else{
      pItem->u1.zIndexedBy = sqlite3NameFromToken(pParse->db, pIndexedBy);
      pItem->fg.isIndexedBy = 1;
    }
  }
}

// Assembly:
testq %rsi, %rsi
je 0x2bb4f8
movl 0x8(%rdx), %eax
testl %eax, %eax
je 0x2bb4f8
pushq %rbx
movslq (%rsi), %rcx
imulq $0x70, %rcx, %rcx
leaq (%rcx,%rsi), %rbx
addq $-0x68, %rbx
cmpl $0x1, %eax
jne 0x2bb4e3
cmpq $0x0, (%rdx)
je 0x2bb4f9
movq (%rdi), %rdi
movq %rdx, %rsi
callq 0x2bb67d
movq %rax, 0x60(%rbx)
movb $0x2, %al
orb %al, 0x3d(%rbx)
popq %rbx
retq
movb $0x1, %al
jmp 0x2bb4f4
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3SrcListFuncArgs
SQLITE_PRIVATE void sqlite3SrcListFuncArgs(Parse *pParse, SrcList *p, ExprList *pList){
  if( p ){
    struct SrcList_item *pItem = &p->a[p->nSrc-1];
    assert( pItem->fg.notIndexed==0 );
    assert( pItem->fg.isIndexedBy==0 );
    assert( pItem->fg.isTabFunc==0 );
    pItem->u1.pFuncArg = pList;
    pItem->fg.isTabFunc = 1;
  }else{
    sqlite3ExprListDelete(pParse->db, pList);
  }
}

// Assembly:
testq %rsi, %rsi
je 0x2bb514
movslq (%rsi), %rax
imulq $0x70, %rax, %rax
movq %rdx, -0x8(%rax,%rsi)
orb $0x4, -0x2b(%rax,%rsi)
retq
testq %rdx, %rdx
je 0x2bb524
movq (%rdi), %rdi
movq %rdx, %rsi
jmp 0x2b0183
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3SrcListAppend
SQLITE_PRIVATE SrcList *sqlite3SrcListAppend(
  Parse *pParse,      /* Parsing context, in which errors are reported */
  SrcList *pList,     /* Append to this SrcList. NULL creates a new SrcList */
  Token *pTable,      /* Table to append */
  Token *pDatabase    /* Database of the table */
){
  struct SrcList_item *pItem;
  sqlite3 *db;
  assert( pDatabase==0 || pTable!=0 );  /* Cannot have C without B */
  assert( pParse!=0 );
  assert( pParse->db!=0 );
  db = pParse->db;
  if( pList==0 ){
    pList = sqlite3DbMallocRawNN(pParse->db, sizeof(SrcList) );
    if( pList==0 ) return 0;
    pList->nAlloc = 1;
    pList->nSrc = 1;
    memset(&pList->a[0], 0, sizeof(pList->a[0]));
    pList->a[0].iCursor = -1;
  }else{
    SrcList *pNew = sqlite3SrcListEnlarge(pParse, pList, 1, pList->nSrc);
    if( pNew==0 ){
      sqlite3SrcListDelete(db, pList);
      return 0;
    }else{
      pList = pNew;
    }
  }
  pItem = &pList->a[pList->nSrc-1];
  if( pDatabase && pDatabase->z==0 ){
    pDatabase = 0;
  }
  if( pDatabase ){
    pItem->zName = sqlite3NameFromToken(db, pDatabase);
    pItem->zDatabase = sqlite3NameFromToken(db, pTable);
  }else{
    pItem->zName = sqlite3NameFromToken(db, pTable);
    pItem->zDatabase = 0;
  }
  return pList;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rdx, %rbx
movq (%rdi), %r15
testq %rsi, %rsi
je 0x2bb56d
movq %rsi, %r13
movl (%rsi), %ecx
movl $0x1, %edx
callq 0x2dc324
movq %rax, %rbp
movq %rax, %r14
testq %rax, %rax
jne 0x2bb566
movq %r15, %rdi
movq %r13, %rsi
callq 0x2affb4
movq %r13, %r14
testq %rbp, %rbp
jne 0x2bb5bd
jmp 0x2bb5d6
movl $0x78, %esi
movq %r15, %rdi
callq 0x28c518
testq %rax, %rax
je 0x2bb5d6
movq %rax, %r14
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%r14)
movups %xmm0, 0x8(%r14)
movups %xmm0, 0x18(%r14)
movups %xmm0, 0x28(%r14)
movups %xmm0, 0x38(%r14)
movups %xmm0, 0x58(%r14)
movups %xmm0, 0x68(%r14)
movl $0xffffffff, 0x48(%r14) # imm = 0xFFFFFFFF
movslq (%r14), %rax
imulq $0x70, %rax, %rax
testq %r12, %r12
je 0x2bb5db
movq (%r12), %rcx
testq %rcx, %rcx
cmoveq %rcx, %r12
jmp 0x2bb5de
xorl %r14d, %r14d
jmp 0x2bb61c
xorl %r12d, %r12d
leaq (%rax,%r14), %r13
addq $-0x68, %r13
testq %r12, %r12
je 0x2bb607
movq %r15, %rdi
movq %r12, %rsi
callq 0x2bb67d
movq %rax, 0x10(%r13)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2bb67d
jmp 0x2bb618
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2bb67d
movq %rax, 0x10(%r13)
xorl %eax, %eax
movq %rax, 0x8(%r13)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3RenameTokenMap
SQLITE_PRIVATE void *sqlite3RenameTokenMap(Parse *pParse, void *pPtr, Token *pToken){
  RenameToken *pNew;
  assert( pPtr || pParse->db->mallocFailed );
  renameTokenCheckAll(pParse, pPtr);
  if( ALWAYS(pParse->eParseMode!=PARSE_MODE_UNMAP) ){
    pNew = sqlite3DbMallocZero(pParse->db, sizeof(RenameToken));
    if( pNew ){
      pNew->p = pPtr;
      pNew->t = *pToken;
      pNew->pNext = pParse->pRename;
      pParse->pRename = pNew;
    }
  }

  return pPtr;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
cmpb $0x3, 0x11c(%rdi)
je 0x2bb674
movq %rdx, %r15
movq %rdi, %r14
movq (%rdi), %rdi
movl $0x20, %esi
callq 0x283569
testq %rax, %rax
je 0x2bb674
movq %rbx, (%rax)
movups (%r15), %xmm0
movups %xmm0, 0x8(%rax)
movq 0x1a0(%r14), %rcx
movq %rcx, 0x18(%rax)
movq %rax, 0x1a0(%r14)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3SrcListAppendList
SQLITE_PRIVATE SrcList *sqlite3SrcListAppendList(Parse *pParse, SrcList *p1, SrcList *p2){
  assert( p1 && p1->nSrc==1 );
  if( p2 ){
    SrcList *pNew = sqlite3SrcListEnlarge(pParse, p1, p2->nSrc, 1);
    if( pNew==0 ){
      sqlite3SrcListDelete(pParse->db, p2);
    }else{
      p1 = pNew;
      memcpy(&p1->a[1], p2->a, p2->nSrc*sizeof(struct SrcList_item));
      sqlite3DbFree(pParse->db, p2);
    }
  }
  return p1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
testq %rdx, %rdx
je 0x2bc4e3
movq %rdx, %rbx
movq %rdi, %r15
movl (%rdx), %edx
movq %r14, %rsi
movl $0x1, %ecx
callq 0x2dc324
testq %rax, %rax
je 0x2bc4d8
movq %rax, %r12
movq %rax, %rdi
addq $0x78, %rdi
leaq 0x8(%rbx), %rsi
movslq (%rbx), %rax
imulq $0x70, %rax, %rdx
callq 0x17660
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x28c3e7
movq %r12, %r14
jmp 0x2bc4e3
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x2affb4
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3UpsertNew
SQLITE_PRIVATE Upsert *sqlite3UpsertNew(
  sqlite3 *db,           /* Determines which memory allocator to use */
  ExprList *pTarget,     /* Target argument to ON CONFLICT, or NULL */
  Expr *pTargetWhere,    /* Optional WHERE clause on the target */
  ExprList *pSet,        /* UPDATE columns, or NULL for a DO NOTHING */
  Expr *pWhere           /* WHERE clause for the ON CONFLICT UPDATE */
){
  Upsert *pNew;
  pNew = sqlite3DbMallocRaw(db, sizeof(Upsert));
  if( pNew==0 ){
    sqlite3ExprListDelete(db, pTarget);
    sqlite3ExprDelete(db, pTargetWhere);
    sqlite3ExprListDelete(db, pSet);
    sqlite3ExprDelete(db, pWhere);
    return 0;
  }else{
    pNew->pUpsertTarget = pTarget;
    pNew->pUpsertTargetWhere = pTargetWhere;
    pNew->pUpsertSet = pSet;
    pNew->pUpsertWhere = pWhere;
    pNew->pUpsertIdx = 0;
  }
  return pNew;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r14
testq %rdi, %rdi
je 0x2bfdcf
movl $0x40, %esi
movq %r14, %rdi
callq 0x28c518
jmp 0x2bfdd9
movl $0x40, %edi
callq 0x27c381
testq %rax, %rax
je 0x2bfdf7
movq %r13, (%rax)
movq %r12, 0x8(%rax)
movq %r15, 0x10(%rax)
movq %rbx, 0x18(%rax)
movq $0x0, 0x20(%rax)
jmp 0x2bfe39
testq %r13, %r13
je 0x2bfe07
movq %r14, %rdi
movq %r13, %rsi
callq 0x2b0183
testq %r12, %r12
je 0x2bfe17
movq %r14, %rdi
movq %r12, %rsi
callq 0x2afd54
testq %r15, %r15
je 0x2bfe27
movq %r14, %rdi
movq %r15, %rsi
callq 0x2b0183
testq %rbx, %rbx
je 0x2bfe37
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2afd54
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3IdListAppend
SQLITE_PRIVATE IdList *sqlite3IdListAppend(Parse *pParse, IdList *pList, Token *pToken){
  sqlite3 *db = pParse->db;
  int i;
  if( pList==0 ){
    pList = sqlite3DbMallocZero(db, sizeof(IdList) );
    if( pList==0 ) return 0;
  }
  pList->a = sqlite3ArrayAllocate(
      db,
      pList->a,
      sizeof(pList->a[0]),
      &pList->nId,
      &i
  );
  if( i<0 ){
    sqlite3IdListDelete(db, pList);
    return 0;
  }
  pList->a[i].zName = sqlite3NameFromToken(db, pToken);
  if( IN_RENAME_OBJECT && pList->a[i].zName ){
    sqlite3RenameTokenMap(pParse, (void*)pList->a[i].zName, pToken);
  }
  return pList;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %r12
testq %rsi, %rsi
jne 0x2bfe76
movl $0x10, %esi
movq %r12, %rdi
callq 0x283569
movq %rax, %rbx
testq %rax, %rax
je 0x2bfee1
movq (%rbx), %rsi
leaq 0x8(%rbx), %rcx
leaq 0xc(%rsp), %r13
movq %r12, %rdi
movl $0x10, %edx
movq %r13, %r8
callq 0x2e9a7b
movq %rax, (%rbx)
movslq (%r13), %r13
movq %r12, %rdi
testq %r13, %r13
js 0x2bfed9
movq %r14, %rsi
callq 0x2bb67d
movq (%rbx), %rcx
shlq $0x4, %r13
movq %rax, (%rcx,%r13)
cmpb $0x2, 0x11c(%r15)
setb %cl
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0x2bfee3
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x2bb62e
jmp 0x2bfee3
movq %rbx, %rsi
callq 0x2b0119
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3ExprAddCollateToken
SQLITE_PRIVATE Expr *sqlite3ExprAddCollateToken(
  Parse *pParse,           /* Parsing context */
  Expr *pExpr,             /* Add the "COLLATE" clause to this expression */
  const Token *pCollName,  /* Name of collating sequence */
  int dequote              /* True to dequote pCollName */
){
  if( pCollName->n>0 ){
    Expr *pNew = sqlite3ExprAlloc(pParse->db, TK_COLLATE, pCollName, dequote);
    if( pNew ){
      pNew->pLeft = pExpr;
      pNew->flags |= EP_Collate|EP_Skip;
      pExpr = pNew;
    }
  }
  return pExpr;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
cmpl $0x0, 0x8(%rdx)
je 0x2c019b
movq (%rdi), %rdi
movl $0x6f, %esi
callq 0x2bb38d
testq %rax, %rax
je 0x2c019b
movq %rbx, 0x10(%rax)
orb $0x11, 0x5(%rax)
movq %rax, %rbx
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3ExprAttachSubtrees
SQLITE_PRIVATE void sqlite3ExprAttachSubtrees(
  sqlite3 *db,
  Expr *pRoot,
  Expr *pLeft,
  Expr *pRight
){
  if( pRoot==0 ){
    assert( db->mallocFailed );
    sqlite3ExprDelete(db, pLeft);
    sqlite3ExprDelete(db, pRight);
  }else{
    if( pRight ){
      pRoot->pRight = pRight;
      pRoot->flags |= EP_Propagate & pRight->flags;
    }
    if( pLeft ){
      pRoot->pLeft = pLeft;
      pRoot->flags |= EP_Propagate & pLeft->flags;
    }
    exprSetHeight(pRoot);
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
testq %rsi, %rsi
je 0x2c01e3
testq %rbx, %rbx
je 0x2c01c0
movq %rbx, 0x18(%rsi)
movl $0x200104, %eax         # imm = 0x200104
andl 0x4(%rbx), %eax
orl %eax, 0x4(%rsi)
testq %rdx, %rdx
je 0x2c01d4
movq %rdx, 0x10(%rsi)
movl $0x200104, %eax         # imm = 0x200104
andl 0x4(%rdx), %eax
orl %eax, 0x4(%rsi)
movq %rsi, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2f05c2
movq %rdi, %r14
testq %rdx, %rdx
je 0x2c01f6
movq %r14, %rdi
movq %rdx, %rsi
callq 0x2afd54
testq %rbx, %rbx
je 0x2c020d
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2afd54
addq $0x8, %rsp
popq %rbx
popq %r14
retq