LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/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;
  if( pTab && !IN_DECLARE_VTAB ){
    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 %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rdx
movq %rdi, %rbx
movq 0x238(%rdi), %r14
testq %r14, %r14
je 0x3af6c
cmpb $0x0, 0x201(%rbx)
je 0x3af7b
movq (%rbx), %rdi
movq %rdx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x34068
movq 0x30(%r14), %rsi
movq %rbx, %rdi
callq 0x3d42f
movq %rax, 0x30(%r14)
cmpl $0x0, 0x1b8(%rbx)
je 0x3afaf
leaq 0x1b0(%rbx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
movl $0x1, %ecx
popq %rbx
popq %r14
popq %rbp
jmp 0x3d4e5
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3AddCollateType
SQLITE_PRIVATE void sqlite3AddCollateType(Parse *pParse, Token *pToken){
  Table *p;
  int i;
  char *zColl;              /* Dequoted name of collation sequence */
  sqlite3 *db;

  if( (p = pParse->pNewTable)==0 ) return;
  i = p->nCol-1;
  db = pParse->db;
  zColl = sqlite3NameFromToken(db, pToken);
  if( !zColl ) return;

  if( sqlite3LocateCollSeq(pParse, zColl) ){
    Index *pIdx;
    sqlite3DbFree(db, p->aCol[i].zColl);
    p->aCol[i].zColl = zColl;
  
    /* If the column is declared as "<name> PRIMARY KEY COLLATE <type>",
    ** then an index may have been created on this column before the
    ** collation type was added. Correct this if it is the case.
    */
    for(pIdx=p->pIndex; pIdx; pIdx=pIdx->pNext){
      assert( pIdx->nColumn==1 );
      if( pIdx->aiColumn[0]==i ){
        pIdx->azColl[0] = p->aCol[i].zColl;
      }
    }
  }else{
    sqlite3DbFree(db, zColl);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x238(%rdi), %r12
testq %r12, %r12
je 0x3b49e
movq %rdi, %r15
movswq 0x42(%r12), %r13
movq (%rdi), %rbx
movq %rbx, %rdi
callq 0x45df3
testq %rax, %rax
je 0x3b49e
movq %rax, %r14
movq %r15, %rdi
movq %rax, %rsi
callq 0x4bc6a
testq %rax, %rax
je 0x3b4ad
decq %r13
movq 0x8(%r12), %rax
movq %r13, %rcx
shlq $0x4, %rcx
leaq (%rcx,%rcx,2), %r15
movq 0x20(%rax,%r15), %rsi
movq %rbx, %rdi
callq 0x9c3a
movq 0x8(%r12), %rax
movq %r14, 0x20(%rax,%r15)
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x3b49e
leaq (,%r13,2), %rcx
addq %r13, %rcx
shlq $0x4, %rcx
movq 0x8(%rax), %rdx
cmpl %r13d, (%rdx)
jne 0x3b495
movq 0x8(%r12), %rdx
movq 0x20(%rdx,%rcx), %rdx
movq 0x40(%rax), %rsi
movq %rdx, (%rsi)
movq 0x28(%rax), %rax
testq %rax, %rax
jne 0x3b47b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9c3a
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/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 */
){
  sqlite3 *db = pParse->db;
  if( pList==0 ){
    pList = sqlite3DbMallocZero(db, sizeof(ExprList) );
    if( pList==0 ){
      goto no_mem;
    }
    pList->a = sqlite3DbMallocRaw(db, sizeof(pList->a[0]));
    if( pList->a==0 ) goto no_mem;
  }else if( (pList->nExpr & (pList->nExpr-1))==0 ){
    struct ExprList_item *a;
    assert( pList->nExpr>0 );
    a = sqlite3DbRealloc(db, pList->a, pList->nExpr*2*sizeof(pList->a[0]));
    if( a==0 ){
      goto no_mem;
    }
    pList->a = a;
  }
  assert( pList->a!=0 );
  if( 1 ){
    struct ExprList_item *pItem = &pList->a[pList->nExpr++];
    memset(pItem, 0, sizeof(*pItem));
    pItem->pExpr = pExpr;
  }
  return pList;

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq (%rdi), %r15
testq %rsi, %rsi
je 0x3d46a
movq %rsi, %rbx
movl (%rsi), %edx
leal -0x1(%rdx), %eax
testl %eax, %edx
jne 0x3d49b
movq 0x8(%rbx), %rsi
shll $0x6, %edx
movq %r15, %rdi
callq 0x174d4
testq %rax, %rax
je 0x3d4bf
movq %rax, 0x8(%rbx)
jmp 0x3d49b
movq %r15, %rdi
movl $0x10, %esi
callq 0x115e9
testq %rax, %rax
je 0x3d4bd
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %r15, %rdi
movl $0x20, %esi
callq 0x115e9
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x3d4bf
movq 0x8(%rbx), %rax
movslq (%rbx), %rcx
leal 0x1(%rcx), %edx
movl %edx, (%rbx)
shlq $0x5, %rcx
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%rcx)
movups %xmm0, 0x10(%rax,%rcx)
movq %r14, (%rax,%rcx)
jmp 0x3d4d7
xorl %ebx, %ebx
movq %r15, %rdi
movq %r14, %rsi
callq 0x34068
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3410b
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/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 );
  if( pList ){
    struct ExprList_item *pItem;
    assert( pList->nExpr>0 );
    pItem = &pList->a[pList->nExpr-1];
    assert( pItem->zName==0 );
    pItem->zName = sqlite3DbStrNDup(pParse->db, pName->z, pName->n);
    if( dequote && pItem->zName ) sqlite3Dequote(pItem->zName);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x3d561
movl %ecx, %ebx
movslq (%rsi), %r13
shlq $0x5, %r13
addq 0x8(%rsi), %r13
movq (%rdx), %r15
testq %r15, %r15
je 0x3d53b
movslq 0x8(%rdx), %r12
movq (%rdi), %rdi
leal 0x1(%r12), %esi
callq 0x115e9
movq %rax, %r14
testq %rax, %rax
je 0x3d53e
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x82f0
movb $0x0, (%r14,%r12)
jmp 0x3d53e
xorl %r14d, %r14d
movq %r14, -0x18(%r13)
testl %ebx, %ebx
je 0x3d561
testq %r14, %r14
je 0x3d561
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x45e50
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprListSetSpan
SQLITE_PRIVATE void sqlite3ExprListSetSpan(
  Parse *pParse,          /* Parsing context */
  ExprList *pList,        /* List to which to add the span. */
  ExprSpan *pSpan         /* The span to be added */
){
  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 );
    assert( db->mallocFailed || pItem->pExpr==pSpan->pExpr );
    sqlite3DbFree(db, pItem->zSpan);
    pItem->zSpan = sqlite3DbStrNDup(db, (char*)pSpan->zStart,
                                    (int)(pSpan->zEnd - pSpan->zStart));
  }
}

// Assembly:
testq %rsi, %rsi
je 0x3d5ee
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq (%rdi), %r14
movq 0x8(%rsi), %rax
movslq (%rsi), %rcx
shlq $0x5, %rcx
leaq (%rax,%rcx), %r12
movq -0x10(%rax,%rcx), %rsi
movq %r14, %rdi
callq 0x9c3a
movq 0x8(%r15), %rbx
testq %rbx, %rbx
je 0x3d5de
movq 0x10(%r15), %r15
subq %rbx, %r15
leal 0x1(%r15), %esi
movq %r14, %rdi
callq 0x115e9
movq %rax, %r14
testq %rax, %rax
je 0x3d5e1
movslq %r15d, %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x82f0
movb $0x0, (%r14,%r15)
jmp 0x3d5e1
xorl %r14d, %r14d
movq %r14, -0x10(%r12)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/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 = zToken ? sqlite3Strlen30(zToken) : 0;
  return sqlite3ExprAlloc(db, op, &x, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdx, -0x10(%rbp)
testq %rdx, %rdx
je 0x3d617
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
incl %eax
cmpb $0x0, (%rdx)
leaq 0x1(%rdx), %rdx
jne 0x3d605
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
jmp 0x3d619
xorl %eax, %eax
leaq -0x10(%rbp), %rdx
movl %eax, 0x8(%rdx)
xorl %ecx, %ecx
callq 0x4a949
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3SrcListAppendFromTerm
SQLITE_PRIVATE SrcList *sqlite3SrcListAppendFromTerm(
  Parse *pParse,          /* Parsing context */
  SrcList *p,             /* The left part of the FROM clause already seen */
  Token *pTable,          /* Name of the table to add to the FROM clause */
  Token *pDatabase,       /* Name of the database containing pTable */
  Token *pAlias,          /* The right-hand side of the AS subexpression */
  Select *pSubquery,      /* A subquery used in place of a table name */
  Expr *pOn,              /* The ON clause of a join */
  IdList *pUsing          /* The USING clause of a join */
){
  struct SrcList_item *pItem;
  sqlite3 *db = pParse->db;
  if( !p && (pOn || pUsing) ){
    sqlite3ErrorMsg(pParse, "a JOIN clause is required before %s", 
      (pOn ? "ON" : "USING")
    );
    goto append_from_error;
  }
  p = sqlite3SrcListAppend(db, p, pTable, pDatabase);
  if( p==0 || NEVER(p->nSrc==0) ){
    goto append_from_error;
  }
  pItem = &p->a[p->nSrc-1];
  assert( pAlias!=0 );
  if( pAlias->n ){
    pItem->zAlias = sqlite3NameFromToken(db, pAlias);
  }
  pItem->pSelect = pSubquery;
  pItem->pOn = pOn;
  pItem->pUsing = pUsing;
  return p;

 append_from_error:
  assert( p==0 );
  sqlite3ExprDelete(db, pOn);
  sqlite3IdListDelete(db, pUsing);
  sqlite3SelectDelete(db, pSubquery);
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, -0x30(%rbp)
movq %r8, %r13
movq 0x18(%rbp), %r12
movq 0x10(%rbp), %r8
movq (%rdi), %r15
testq %rsi, %rsi
jne 0x3d682
movq %r8, %rax
orq %r12, %rax
je 0x3d682
movq %r8, %rbx
testq %r8, %r8
leaq 0x3e3f8(%rip), %rax     # 0x7ba5f
leaq 0x3e655(%rip), %rdx     # 0x7bcc3
cmovneq %rax, %rdx
leaq 0x3e626(%rip), %rsi     # 0x7bc9f
xorl %eax, %eax
callq 0x11724
jmp 0x3d6db
movq %r8, %rbx
movq %r15, %rdi
callq 0x3d75b
testq %rax, %rax
je 0x3d6db
movq %rax, %r14
movzbl (%rax), %eax
testq %rax, %rax
je 0x3d6db
decl %eax
imulq $0x68, %rax, %rax
leaq (%r14,%rax), %r12
addq $0x8, %r12
cmpl $0x0, 0x8(%r13)
je 0x3d6c2
movq %r15, %rdi
movq %r13, %rsi
callq 0x45df3
movq %rax, 0x18(%r12)
movq -0x30(%rbp), %rax
movq %rax, 0x28(%r12)
movq %rbx, 0x40(%r12)
movq 0x18(%rbp), %rax
movq %rax, 0x48(%r12)
jmp 0x3d700
movq %r15, %rdi
movq %rbx, %rsi
callq 0x34068
movq %r15, %rdi
movq %r12, %rsi
callq 0x3429d
movq %r15, %rdi
movq -0x30(%rbp), %rsi
callq 0x340e4
xorl %r14d, %r14d
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/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3SrcListIndexedBy
SQLITE_PRIVATE void sqlite3SrcListIndexedBy(Parse *pParse, SrcList *p, Token *pIndexedBy){
  assert( pIndexedBy!=0 );
  if( p && ALWAYS(p->nSrc>0) ){
    struct SrcList_item *pItem = &p->a[p->nSrc-1];
    assert( pItem->notIndexed==0 && pItem->zIndex==0 );
    if( pIndexedBy->n==1 && !pIndexedBy->z ){
      /* A "NOT INDEXED" clause was supplied. See parse.y 
      ** construct "indexed_opt" for details. */
      pItem->notIndexed = 1;
    }else{
      pItem->zIndex = sqlite3NameFromToken(pParse->db, pIndexedBy);
    }
  }
}

// Assembly:
testq %rsi, %rsi
je 0x3d754
movzbl (%rsi), %eax
testq %rax, %rax
je 0x3d754
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
decl %eax
imulq $0x68, %rax, %rax
leaq (%rsi,%rax), %rbx
addq $0x8, %rbx
cmpl $0x1, 0x8(%rdx)
jne 0x3d73f
cmpq $0x0, (%rdx)
je 0x3d755
movq (%rdi), %rdi
movq %rdx, %rsi
callq 0x45df3
movq %rax, 0x58(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
orb $0x1, 0x39(%rbx)
jmp 0x3d74e
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3SrcListAppend
SQLITE_PRIVATE SrcList *sqlite3SrcListAppend(
  sqlite3 *db,        /* Connection to notify of malloc failures */
  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;
  assert( pDatabase==0 || pTable!=0 );  /* Cannot have C without B */
  if( pList==0 ){
    pList = sqlite3DbMallocZero(db, sizeof(SrcList) );
    if( pList==0 ) return 0;
    pList->nAlloc = 1;
  }
  pList = sqlite3SrcListEnlarge(db, pList, 1, pList->nSrc);
  if( db->mallocFailed ){
    sqlite3SrcListDelete(db, pList);
    return 0;
  }
  pItem = &pList->a[pList->nSrc-1];
  if( pDatabase && pDatabase->z==0 ){
    pDatabase = 0;
  }
  if( pDatabase ){
    Token *pTemp = pDatabase;
    pDatabase = pTable;
    pTable = pTemp;
  }
  pItem->zName = sqlite3NameFromToken(db, pTable);
  pItem->zDatabase = sqlite3NameFromToken(db, pDatabase);
  return pList;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %rbx
movq %rdi, %r14
testq %rsi, %rsi
jne 0x3d7ae
movq %r14, %rdi
movl $0x70, %esi
callq 0x115e9
testq %rax, %rax
je 0x3d7d3
movq %rax, %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x60(%rax)
movups %xmm0, 0x50(%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movb $0x1, 0x1(%rax)
movzbl (%rsi), %ecx
movq %r14, %rdi
movl $0x1, %edx
callq 0x56081
movq %rax, %r12
cmpb $0x0, 0x50(%r14)
je 0x3d7d8
movq %r14, %rdi
movq %r12, %rsi
callq 0x341f5
xorl %r12d, %r12d
jmp 0x3d826
movzbl (%r12), %eax
imulq $0x68, %rax, %rax
leaq (%rax,%r12), %r13
addq $-0x60, %r13
testq %r15, %r15
je 0x3d7fa
movq (%r15), %rax
testq %rax, %rax
cmoveq %rax, %r15
jmp 0x3d7fd
xorl %r15d, %r15d
testq %r15, %r15
movq %r15, %rsi
cmoveq %rbx, %rsi
cmoveq %r15, %rbx
movq %r14, %rdi
callq 0x45df3
movq %rax, 0x10(%r13)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x45df3
movq %rax, 0x8(%r13)
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3IdListAppend
SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3 *db, IdList *pList, Token *pToken){
  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);
  return pList;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
testq %rsi, %rsi
jne 0x403ab
movq %r15, %rdi
movl $0x10, %esi
callq 0x115e9
testq %rax, %rax
je 0x403f2
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq (%rbx), %rsi
leaq 0x8(%rbx), %rcx
leaq -0x24(%rbp), %r12
movq %r15, %rdi
movl $0x10, %edx
movq %r12, %r8
callq 0x5bf2b
movq %rax, (%rbx)
movslq (%r12), %r12
movq %r15, %rdi
testq %r12, %r12
js 0x403ea
movq %r14, %rsi
callq 0x45df3
movq (%rbx), %rcx
shlq $0x4, %r12
movq %rax, (%rcx,%r12)
jmp 0x403f4
movq %rbx, %rsi
callq 0x3429d
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprAddCollateToken
SQLITE_PRIVATE Expr *sqlite3ExprAddCollateToken(Parse *pParse, Expr *pExpr, Token *pCollName){
  if( pCollName->n>0 ){
    Expr *pNew = sqlite3ExprAlloc(pParse->db, TK_COLLATE, pCollName, 1);
    if( pNew ){
      pNew->pLeft = pExpr;
      pNew->flags |= EP_Collate;
      pExpr = pNew;
    }
  }
  return pExpr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpl $0x0, 0x8(%rdx)
je 0x406c5
movq (%rdi), %rdi
movl $0x5c, %esi
movl $0x1, %ecx
callq 0x4a949
testq %rax, %rax
je 0x406c5
movq %rbx, 0x10(%rax)
orb $0x1, 0x3(%rax)
movq %rax, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprFunction
SQLITE_PRIVATE Expr *sqlite3ExprFunction(Parse *pParse, ExprList *pList, Token *pToken){
  Expr *pNew;
  sqlite3 *db = pParse->db;
  assert( pToken );
  pNew = sqlite3ExprAlloc(db, TK_FUNCTION, pToken, 1);
  if( pNew==0 ){
    sqlite3ExprListDelete(db, pList); /* Avoid memory leak when malloc fails */
    return 0;
  }
  pNew->x.pList = pList;
  assert( !ExprHasProperty(pNew, EP_xIsSelect) );
  sqlite3ExprSetHeight(pParse, pNew);
  return pNew;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %r12
movq %r12, %rdi
movl $0x97, %esi
movl $0x1, %ecx
callq 0x4a949
testq %rax, %rax
je 0x4070e
movq %rax, %r14
movq %rbx, 0x20(%rax)
movq %r15, %rdi
movq %rax, %rsi
callq 0x40728
jmp 0x4071c
movq %r12, %rdi
movq %rbx, %rsi
callq 0x3410b
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3Vacuum
SQLITE_PRIVATE void sqlite3Vacuum(Parse *pParse){
  Vdbe *v = sqlite3GetVdbe(pParse);
  if( v ){
    sqlite3VdbeAddOp2(v, OP_Vacuum, 0, 0);
    sqlite3VdbeUsesBtree(v, 0);
  }
  return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
callq 0x45b57
testq %rax, %rax
je 0x409a8
movq %rax, %rbx
movq %rax, %rdi
movl $0xb, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45b9e
orb $0x1, 0xa0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3TriggerUpdateStep
SQLITE_PRIVATE TriggerStep *sqlite3TriggerUpdateStep(
  sqlite3 *db,         /* The database connection */
  Token *pTableName,   /* Name of the table to be updated */
  ExprList *pEList,    /* The SET clause: list of column and new values */
  Expr *pWhere,        /* The WHERE clause */
  u8 orconf            /* The conflict algorithm. (OE_Abort, OE_Ignore, etc) */
){
  TriggerStep *pTriggerStep;

  pTriggerStep = triggerStepAllocate(db, TK_UPDATE, pTableName);
  if( pTriggerStep ){
    pTriggerStep->pExprList = sqlite3ExprListDup(db, pEList, EXPRDUP_REDUCE);
    pTriggerStep->pWhere = sqlite3ExprDup(db, pWhere, EXPRDUP_REDUCE);
    pTriggerStep->orconf = orconf;
  }
  sqlite3ExprListDelete(db, pEList);
  sqlite3ExprDelete(db, pWhere);
  return pTriggerStep;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %r13d
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %rdx
movq %rdi, %r14
movl $0x6b, %esi
callq 0x61274
movq %rax, %r12
testq %rax, %rax
je 0x44828
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x48556
movq %rax, 0x30(%r12)
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x48163
movq %rax, 0x28(%r12)
movb %r13b, 0x1(%r12)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3410b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x34068
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3TriggerInsertStep
SQLITE_PRIVATE TriggerStep *sqlite3TriggerInsertStep(
  sqlite3 *db,        /* The database connection */
  Token *pTableName,  /* Name of the table into which we insert */
  IdList *pColumn,    /* List of columns in pTableName to insert into */
  ExprList *pEList,   /* The VALUE clause: a list of values to be inserted */
  Select *pSelect,    /* A SELECT statement that supplies values */
  u8 orconf           /* The conflict algorithm (OE_Abort, OE_Replace, etc.) */
){
  TriggerStep *pTriggerStep;

  assert(pEList == 0 || pSelect == 0);
  assert(pEList != 0 || pSelect != 0 || db->mallocFailed);

  pTriggerStep = triggerStepAllocate(db, TK_INSERT, pTableName);
  if( pTriggerStep ){
    pTriggerStep->pSelect = sqlite3SelectDup(db, pSelect, EXPRDUP_REDUCE);
    pTriggerStep->pIdList = pColumn;
    pTriggerStep->pExprList = sqlite3ExprListDup(db, pEList, EXPRDUP_REDUCE);
    pTriggerStep->orconf = orconf;
  }else{
    sqlite3IdListDelete(db, pColumn);
  }
  sqlite3ExprListDelete(db, pEList);
  sqlite3SelectDelete(db, pSelect);

  return pTriggerStep;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, -0x2c(%rbp)
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r13
movq %rsi, %rdx
movq %rdi, %r14
movl $0x69, %esi
callq 0x61274
movq %rax, %r12
movq %r14, %rdi
testq %rax, %rax
je 0x448bc
movq %rbx, %rsi
movl $0x1, %edx
callq 0x4841f
movq %rax, 0x10(%r12)
movq %r13, 0x38(%r12)
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x48556
movq %rax, 0x30(%r12)
movl -0x2c(%rbp), %eax
movb %al, 0x1(%r12)
jmp 0x448c4
movq %r13, %rsi
callq 0x3429d
movq %r14, %rdi
movq %r15, %rsi
callq 0x3410b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x340e4
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3TriggerDeleteStep
SQLITE_PRIVATE TriggerStep *sqlite3TriggerDeleteStep(
  sqlite3 *db,            /* Database connection */
  Token *pTableName,      /* The table from which rows are deleted */
  Expr *pWhere            /* The WHERE clause */
){
  TriggerStep *pTriggerStep;

  pTriggerStep = triggerStepAllocate(db, TK_DELETE, pTableName);
  if( pTriggerStep ){
    pTriggerStep->pWhere = sqlite3ExprDup(db, pWhere, EXPRDUP_REDUCE);
    pTriggerStep->orconf = OE_Default;
  }
  sqlite3ExprDelete(db, pWhere);
  return pTriggerStep;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %rdx
movq %rdi, %r14
movl $0x6a, %esi
callq 0x61274
movq %rax, %r15
testq %rax, %rax
je 0x4492c
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x48163
movq %rax, 0x28(%r15)
movb $0x63, 0x1(%r15)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x34068
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3TriggerSelectStep
SQLITE_PRIVATE TriggerStep *sqlite3TriggerSelectStep(sqlite3 *db, Select *pSelect){
  TriggerStep *pTriggerStep = sqlite3DbMallocZero(db, sizeof(TriggerStep));
  if( pTriggerStep==0 ) {
    sqlite3SelectDelete(db, pSelect);
    return 0;
  }
  pTriggerStep->op = TK_SELECT;
  pTriggerStep->pSelect = pSelect;
  pTriggerStep->orconf = OE_Default;
  return pTriggerStep;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x50, %esi
callq 0x115e9
testq %rax, %rax
je 0x44982
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movw $0x6374, (%rax)         # imm = 0x6374
movq %rbx, 0x10(%rax)
jmp 0x4498f
movq %r14, %rdi
movq %rbx, %rsi
callq 0x340e4
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3GetVdbe
SQLITE_PRIVATE Vdbe *sqlite3GetVdbe(Parse *pParse){
  Vdbe *v = pParse->pVdbe;
  if( v==0 ){
    v = pParse->pVdbe = sqlite3VdbeCreate(pParse->db);
#ifndef SQLITE_OMIT_TRACE
    if( v ){
      sqlite3VdbeAddOp0(v, OP_Trace);
    }
#endif
  }
  return v;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x10(%rdi), %rbx
testq %rbx, %rbx
jne 0x45b96
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x11859
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x45b94
movq %rax, %rbx
movq %rax, %rdi
movl $0x94, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45b9e
jmp 0x45b96
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3VdbeAddOp3
SQLITE_PRIVATE int sqlite3VdbeAddOp3(Vdbe *p, int op, int p1, int p2, int p3){
  int i;
  VdbeOp *pOp;

  i = p->nOp;
  assert( p->magic==VDBE_MAGIC_INIT );
  assert( op>0 && op<0xff );
  if( p->nOpAlloc<=i ){
    if( growOpArray(p) ){
      return 1;
    }
  }
  p->nOp++;
  pOp = &p->aOp[i];
  pOp->opcode = (u8)op;
  pOp->p5 = 0;
  pOp->p1 = p1;
  pOp->p2 = p2;
  pOp->p3 = p3;
  pOp->p4.p = 0;
  pOp->p4type = P4_NOTUSED;
#ifdef SQLITE_DEBUG
  pOp->zComment = 0;
  if( p->db->flags & SQLITE_VdbeAddopTrace ){
    sqlite3VdbePrintOp(0, i, &p->aOp[i]);
  }
#endif
#ifdef VDBE_PROFILE
  pOp->cycles = 0;
  pOp->cnt = 0;
#endif
  return i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %edx, %r12d
movl %esi, %r14d
movq %rdi, %r13
movl 0x34(%rdi), %ebx
cmpl %ebx, 0x38(%rdi)
jg 0x45bdb
movq %r13, %rdi
movl %r8d, -0x2c(%rbp)
callq 0x35f46
movl -0x2c(%rbp), %r8d
movl %eax, %edi
movl $0x1, %eax
testl %edi, %edi
jne 0x45c14
incl 0x34(%r13)
movslq %ebx, %rax
movq 0x8(%r13), %r9
leaq (%rax,%rax,2), %rax
movb %r14b, (%r9,%rax,8)
xorl %edi, %edi
movb %dil, 0x3(%r9,%rax,8)
movl %r12d, 0x4(%r9,%rax,8)
movl %r15d, 0x8(%r9,%rax,8)
movl %r8d, 0xc(%r9,%rax,8)
movq $0x0, 0x10(%r9,%rax,8)
movb %dil, 0x1(%r9,%rax,8)
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3OpenTable
SQLITE_PRIVATE void sqlite3OpenTable(
  Parse *p,       /* Generate code into this VDBE */
  int iCur,       /* The cursor number of the table */
  int iDb,        /* The database index in sqlite3.aDb[] */
  Table *pTab,    /* The table to be opened */
  int opcode      /* OP_OpenRead or OP_OpenWrite */
){
  Vdbe *v;
  assert( !IsVirtual(pTab) );
  v = sqlite3GetVdbe(p);
  assert( opcode==OP_OpenWrite || opcode==OP_OpenRead );
  sqlite3TableLock(p, iDb, pTab->tnum, (opcode==OP_OpenWrite)?1:0, pTab->zName);
  sqlite3VdbeAddOp3(v, opcode, iCur, pTab->tnum, iDb);
  sqlite3VdbeChangeP4(v, -1, SQLITE_INT_TO_PTR(pTab->nCol), P4_INT32);
  VdbeComment((v, "%s", pTab->zName));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %r15d
movq %rcx, %rbx
movl %edx, %r14d
movl %esi, -0x2c(%rbp)
movq %rdi, %r13
callq 0x45b57
movq %rax, %r12
movl 0x3c(%rbx), %edx
xorl %ecx, %ecx
cmpl $0x31, %r15d
sete %cl
movq (%rbx), %r8
movq %r13, %rdi
movl %r14d, %esi
callq 0x45c9b
movl 0x3c(%rbx), %ecx
movq %r12, %rdi
movl %r15d, %esi
movl -0x2c(%rbp), %edx
movl %r14d, %r8d
callq 0x45b9e
movswq 0x42(%rbx), %rdx
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0xfffffff2, %ecx       # imm = 0xFFFFFFF2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11975
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3TableLock
SQLITE_PRIVATE void sqlite3TableLock(
  Parse *pParse,     /* Parsing context */
  int iDb,           /* Index of the database containing the table to lock */
  int iTab,          /* Root page number of the table to be locked */
  u8 isWriteLock,    /* True for a write lock */
  const char *zName  /* Name of the table to be locked */
){
  Parse *pToplevel = sqlite3ParseToplevel(pParse);
  int i;
  int nBytes;
  TableLock *p;
  assert( iDb>=0 );

  for(i=0; i<pToplevel->nTableLock; i++){
    p = &pToplevel->aTableLock[i];
    if( p->iDb==iDb && p->iTab==iTab ){
      p->isWriteLock = (p->isWriteLock || isWriteLock);
      return;
    }
  }

  nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1);
  pToplevel->aTableLock =
      sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes);
  if( pToplevel->aTableLock ){
    p = &pToplevel->aTableLock[pToplevel->nTableLock++];
    p->iDb = iDb;
    p->iTab = iTab;
    p->isWriteLock = isWriteLock;
    p->zName = zName;
  }else{
    pToplevel->nTableLock = 0;
    pToplevel->db->mallocFailed = 1;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movl %ecx, %ebx
movl %edx, %r15d
movl %esi, %r12d
movq 0x1d8(%rdi), %r13
testq %r13, %r13
cmoveq %rdi, %r13
movslq 0x1c0(%r13), %rax
testq %rax, %rax
jle 0x45cf9
movq 0x1c8(%r13), %rcx
leaq (,%rax,8), %rdx
leaq (%rdx,%rdx,2), %rsi
xorl %edx, %edx
cmpl %r12d, (%rcx,%rdx)
jne 0x45cf0
cmpl %r15d, 0x4(%rcx,%rdx)
je 0x45d5d
addq $0x18, %rdx
cmpq %rdx, %rsi
jne 0x45ce3
leal (%rax,%rax,2), %eax
leal 0x18(,%rax,8), %edx
movq (%r13), %rdi
movq 0x1c8(%r13), %rsi
callq 0x33504
movq %rax, 0x1c8(%r13)
testq %rax, %rax
je 0x45d48
movslq 0x1c0(%r13), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x1c0(%r13)
leaq (%rcx,%rcx,2), %rcx
movl %r12d, (%rax,%rcx,8)
movl %r15d, 0x4(%rax,%rcx,8)
movb %bl, 0x8(%rax,%rcx,8)
movq %r14, 0x10(%rax,%rcx,8)
jmp 0x45d66
movl $0x0, 0x1c0(%r13)
movq (%r13), %rax
movb $0x1, 0x50(%rax)
jmp 0x45d66
orb 0x8(%rcx,%rdx), %bl
setne 0x8(%rcx,%rdx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3AuthCheck
SQLITE_PRIVATE int sqlite3AuthCheck(
  Parse *pParse,
  int code,
  const char *zArg1,
  const char *zArg2,
  const char *zArg3
){
  sqlite3 *db = pParse->db;
  int rc;

  /* Don't do any authorization checks if the database is initialising
  ** or if the parser is being invoked from within sqlite3_declare_vtab.
  */
  if( db->init.busy || IN_DECLARE_VTAB ){
    return SQLITE_OK;
  }

  if( db->xAuth==0 ){
    return SQLITE_OK;
  }
  rc = db->xAuth(db->pAuthArg, code, zArg1, zArg2, zArg3, pParse->zAuthContext);
  if( rc==SQLITE_DENY ){
    sqlite3ErrorMsg(pParse, "not authorized");
    pParse->rc = SQLITE_AUTH;
  }else if( rc!=SQLITE_OK && rc!=SQLITE_IGNORE ){
    rc = SQLITE_DENY;
    sqliteAuthBadReturnCode(pParse);
  }
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
xorl %eax, %eax
cmpb $0x0, 0x99(%rdi)
jne 0x45dee
cmpb $0x0, 0x201(%rbx)
jne 0x45dee
movq 0x180(%rdi), %r10
testq %r10, %r10
je 0x45dee
movq 0x188(%rdi), %rdi
movq 0x248(%rbx), %r9
callq *%r10
cmpl $0x1, %eax
jne 0x45dc7
movl $0x17, %r14d
leaq 0x34f59(%rip), %rsi     # 0x7ad1e
jmp 0x45ddb
testl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
je 0x45dee
movl $0x1, %r14d
leaq 0x34f52(%rip), %rsi     # 0x7ad2d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11724
movl %r14d, 0x18(%rbx)
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3NameFromToken
SQLITE_PRIVATE char *sqlite3NameFromToken(sqlite3 *db, Token *pName){
  char *zName;
  if( pName ){
    zName = sqlite3DbStrNDup(db, (char*)pName->z, pName->n);
    sqlite3Dequote(zName);
  }else{
    zName = 0;
  }
  return zName;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x45e34
movq (%rsi), %r14
testq %r14, %r14
je 0x45e38
movslq 0x8(%rsi), %r15
leal 0x1(%r15), %esi
callq 0x115e9
movq %rax, %rbx
testq %rax, %rax
je 0x45e3a
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x82f0
movb $0x0, (%rbx,%r15)
jmp 0x45e3a
xorl %ebx, %ebx
jmp 0x45e42
xorl %ebx, %ebx
movq %rbx, %rdi
callq 0x45e50
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3Dequote
SQLITE_PRIVATE int sqlite3Dequote(char *z){
  char quote;
  int i, j;
  if( z==0 ) return -1;
  quote = z[0];
  switch( quote ){
    case '\'':  break;
    case '"':   break;
    case '`':   break;                /* For MySQL compatibility */
    case '[':   quote = ']';  break;  /* For MS SqlServer compatibility */
    default:    return -1;
  }
  for(i=1, j=0; ALWAYS(z[i]); i++){
    if( z[i]==quote ){
      if( z[i+1]==quote ){
        z[j++] = quote;
        i++;
      }else{
        break;
      }
    }else{
      z[j++] = z[i];
    }
  }
  z[j] = 0;
  return j;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x45ebf
movb (%rdi), %al
movzbl %al, %ecx
cmpl $0x5a, %ecx
jg 0x45e6f
cmpl $0x22, %ecx
je 0x45e7b
cmpl $0x27, %ecx
je 0x45e7b
jmp 0x45ebf
cmpl $0x60, %ecx
je 0x45e7b
cmpl $0x5b, %ecx
jne 0x45ebf
movb $0x5d, %al
movb 0x1(%rdi), %sil
testb %sil, %sil
je 0x45eb9
movl $0x1, %edx
xorl %ecx, %ecx
cmpb %al, %sil
jne 0x45e9e
movslq %edx, %rdx
cmpb %al, 0x1(%rdi,%rdx)
jne 0x45eb5
incq %rdx
movl %eax, %esi
movb %sil, (%rdi,%rcx)
incq %rcx
movslq %edx, %rdx
movb 0x1(%rdi,%rdx), %sil
incq %rdx
testb %sil, %sil
jne 0x45e8b
movl %ecx, %eax
jmp 0x45ebb
xorl %eax, %eax
movb $0x0, (%rdi,%rax)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3TwoPartName
SQLITE_PRIVATE int sqlite3TwoPartName(
  Parse *pParse,      /* Parsing and code generating context */
  Token *pName1,      /* The "xxx" in the name "xxx.yyy" or "xxx" */
  Token *pName2,      /* The "yyy" in the name "xxx.yyy" */
  Token **pUnqual     /* Write the unqualified object name here */
){
  int iDb;                    /* Database holding the object */
  sqlite3 *db = pParse->db;

  if( ALWAYS(pName2!=0) && pName2->n>0 ){
    if( db->init.busy ) {
      sqlite3ErrorMsg(pParse, "corrupt database");
      pParse->nErr++;
      return -1;
    }
    *pUnqual = pName2;
    iDb = sqlite3FindDb(db, pName1);
    if( iDb<0 ){
      sqlite3ErrorMsg(pParse, "unknown database %T", pName1);
      pParse->nErr++;
      return -1;
    }
  }else{
    assert( db->init.iDb==0 || db->init.busy );
    iDb = db->init.iDb;
    *pUnqual = pName1;
  }
  return iDb;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdx, %rdx
je 0x45f00
cmpl $0x0, 0x8(%rdx)
je 0x45f00
cmpb $0x0, 0x99(%rdi)
je 0x45f0f
leaq 0x34edb(%rip), %rsi     # 0x7adc7
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11724
incl 0x50(%rbx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x45f0a
movzbl 0x98(%rdi), %eax
movq %r14, (%rcx)
popq %rbx
popq %r14
popq %rbp
retq
movq %rdx, (%rcx)
movq %r14, %rsi
callq 0x46175
testl %eax, %eax
jns 0x45f0a
leaq 0x34eb3(%rip), %rsi     # 0x7add8
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x11724
jmp 0x45ef6
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3CheckObjectName
SQLITE_PRIVATE int sqlite3CheckObjectName(Parse *pParse, const char *zName){
  if( !pParse->db->init.busy && pParse->nested==0 
          && (pParse->db->flags & SQLITE_WriteSchema)==0
          && 0==sqlite3StrNICmp(zName, "sqlite_", 7) ){
    sqlite3ErrorMsg(pParse, "object name reserved for internal use: %s", zName);
    return SQLITE_ERROR;
  }
  return SQLITE_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq (%rdi), %rcx
xorl %eax, %eax
cmpb $0x0, 0x99(%rcx)
jne 0x45fec
cmpb $0x0, 0x1e(%rdi)
jne 0x45fec
testb $0x8, 0x2d(%rcx)
jne 0x45fec
movq %rsi, %rdx
leaq 0x7(%rsi), %r10
movl $0x7, %eax
leaq 0x34e75(%rip), %r9      # 0x7adec
xorl %r11d, %r11d
leaq 0x300df(%rip), %rcx     # 0x76060
leaq 0x34e6b(%rip), %r8      # 0x7adf3
movq %r9, %rbx
movzbl (%rsi), %r14d
testq %r14, %r14
je 0x45fb7
movb (%r14,%rcx), %r14b
movzbl (%rbx), %r15d
cmpb (%r15,%rcx), %r14b
jne 0x45fbf
incq %rsi
incq %r11
incq %rbx
decq %rax
jne 0x45f8b
xorl %eax, %eax
movq %r10, %rsi
jmp 0x45fc2
addq %r11, %r9
movq %r9, %r8
jmp 0x45fc2
movq %rbx, %r8
testl %eax, %eax
jle 0x45fd9
movzbl (%rsi), %eax
movb (%rax,%rcx), %sil
movzbl (%r8), %r8d
xorl %eax, %eax
cmpb (%r8,%rcx), %sil
jne 0x45fec
leaq 0x34e14(%rip), %rsi     # 0x7adf4
xorl %eax, %eax
callq 0x11724
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3CodeVerifySchema
SQLITE_PRIVATE void sqlite3CodeVerifySchema(Parse *pParse, int iDb){
  Parse *pToplevel = sqlite3ParseToplevel(pParse);

#ifndef SQLITE_OMIT_TRIGGER
  if( pToplevel!=pParse ){
    /* This branch is taken if a trigger is currently being coded. In this
    ** case, set cookieGoto to a non-zero value to show that this function
    ** has been called. This is used by the sqlite3ExprCodeConstants()
    ** function. */
    pParse->cookieGoto = -1;
  }
#endif
  if( pToplevel->cookieGoto==0 ){
    Vdbe *v = sqlite3GetVdbe(pToplevel);
    if( v==0 ) return;  /* This only happens if there was a prior error */
    pToplevel->cookieGoto = sqlite3VdbeAddOp2(v, OP_Goto, 0, 0)+1;
  }
  if( iDb>=0 ){
    sqlite3 *db = pToplevel->db;
    yDbMask mask;

    assert( iDb<db->nDb );
    assert( db->aDb[iDb].pBt!=0 || iDb==1 );
    assert( iDb<SQLITE_MAX_ATTACHED+2 );
    assert( sqlite3SchemaMutexHeld(db, iDb, 0) );
    mask = ((yDbMask)1)<<iDb;
    if( (pToplevel->cookieMask & mask)==0 ){
      pToplevel->cookieMask |= mask;
      pToplevel->cookieValue[iDb] = db->aDb[iDb].pSchema->schema_cookie;
      if( !OMIT_TEMPDB && iDb==1 ){
        sqlite3OpenTempDatabase(pToplevel);
      }
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq 0x1d8(%rdi), %rbx
testq %rbx, %rbx
cmoveq %rdi, %rbx
cmpq %rdi, %rbx
je 0x4601e
movl $0xffffffff, 0x16c(%rdi) # imm = 0xFFFFFFFF
cmpl $0x0, 0x16c(%rbx)
jne 0x46050
movq %rbx, %rdi
callq 0x45b57
testq %rax, %rax
je 0x460a4
movq %rax, %rdi
movl $0xe, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45b9e
incl %eax
movl %eax, 0x16c(%rbx)
testl %r14d, %r14d
js 0x460a4
movl $0x1, %eax
movl %r14d, %ecx
shll %cl, %eax
movl 0x168(%rbx), %ecx
btl %r14d, %ecx
jb 0x460a4
movq (%rbx), %rdx
orl %eax, %ecx
movl %ecx, 0x168(%rbx)
movq 0x20(%rdx), %rax
movl %r14d, %ecx
movq %rcx, %rdx
shlq $0x5, %rdx
movq 0x18(%rax,%rdx), %rax
movl (%rax), %eax
movl %eax, 0x170(%rbx,%rcx,4)
cmpl $0x1, %r14d
jne 0x460a4
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x196d4
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3BeginWriteOperation
SQLITE_PRIVATE void sqlite3BeginWriteOperation(Parse *pParse, int setStatement, int iDb){
  Parse *pToplevel = sqlite3ParseToplevel(pParse);
  sqlite3CodeVerifySchema(pParse, iDb);
  pToplevel->writeMask |= ((yDbMask)1)<<iDb;
  pToplevel->isMultiWrite |= setStatement;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %r14d
movq 0x1d8(%rdi), %r15
testq %r15, %r15
cmoveq %rdi, %r15
movl %edx, %esi
callq 0x45ff7
movl $0x1, %eax
movl %ebx, %ecx
shll %cl, %eax
orl %eax, 0x164(%r15)
orb %r14b, 0x23(%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3OpenMasterTable
SQLITE_PRIVATE void sqlite3OpenMasterTable(Parse *p, int iDb){
  Vdbe *v = sqlite3GetVdbe(p);
  sqlite3TableLock(p, iDb, MASTER_ROOT, 1, SCHEMA_TABLE(iDb));
  sqlite3VdbeAddOp3(v, OP_OpenWrite, 0, MASTER_ROOT, iDb);
  sqlite3VdbeChangeP4(v, -1, (char *)5, P4_INT32);  /* 5 column table */
  if( p->nTab==0 ){
    p->nTab = 1;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
callq 0x45b57
movq %rax, %r15
cmpl $0x1, %r14d
leaq 0x33e0a(%rip), %rax     # 0x79f19
leaq 0x33e16(%rip), %r8      # 0x79f2c
cmoveq %rax, %r8
movq %rbx, %rdi
movl %r14d, %esi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x45c9b
movq %r15, %rdi
movl $0x31, %esi
xorl %edx, %edx
movl $0x1, %ecx
movl %r14d, %r8d
callq 0x45b9e
movl $0x5, %edx
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0xfffffff2, %ecx       # imm = 0xFFFFFFF2
callq 0x11975
cmpl $0x0, 0x54(%rbx)
jne 0x4616a
movl $0x1, 0x54(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3FindDb
SQLITE_PRIVATE int sqlite3FindDb(sqlite3 *db, Token *pName){
  int i;                               /* Database number */
  char *zName;                         /* Name we are searching for */
  zName = sqlite3NameFromToken(db, pName);
  i = sqlite3FindDbName(db, zName);
  sqlite3DbFree(db, zName);
  return i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x45df3
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x158a4
movl %eax, %r15d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9c3a
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ResolveSelfReference
SQLITE_PRIVATE void sqlite3ResolveSelfReference(
  Parse *pParse,      /* Parsing context */
  Table *pTab,        /* The table being referenced */
  int type,           /* NC_IsCheck or NC_PartIdx */
  Expr *pExpr,        /* Expression to resolve.  May be NULL. */
  ExprList *pList     /* Expression list to resolve.  May be NUL. */
){
  SrcList sSrc;                   /* Fake SrcList for pParse->pNewTable */
  NameContext sNC;                /* Name context for pParse->pNewTable */
  int i;                          /* Loop counter */

  assert( type==NC_IsCheck || type==NC_PartIdx );
  memset(&sNC, 0, sizeof(sNC));
  memset(&sSrc, 0, sizeof(sSrc));
  sSrc.nSrc = 1;
  sSrc.a[0].zName = pTab->zName;
  sSrc.a[0].pTab = pTab;
  sSrc.a[0].iCursor = -1;
  sNC.pParse = pParse;
  sNC.pSrcList = &sSrc;
  sNC.ncFlags = type;
  if( sqlite3ResolveExprNames(&sNC, pExpr) ) return;
  if( pList ){
    for(i=0; i<pList->nExpr; i++){
      if( sqlite3ResolveExprNames(&sNC, pList->a[i].pExpr) ){
        return;
      }
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xb0, %rsp
movq %r8, %rbx
xorps %xmm0, %xmm0
leaq -0x60(%rbp), %rax
movaps %xmm0, 0x20(%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movq $0x0, 0x30(%rax)
leaq -0xd0(%rbp), %r8
movaps %xmm0, (%r8)
movaps %xmm0, 0x10(%r8)
movaps %xmm0, 0x20(%r8)
movaps %xmm0, 0x30(%r8)
movaps %xmm0, 0x40(%r8)
movaps %xmm0, 0x50(%r8)
movaps %xmm0, 0x60(%r8)
movb $0x1, (%r8)
movq (%rsi), %r9
movq %r9, 0x18(%r8)
movq %rsi, 0x28(%r8)
movl $0xffffffff, 0x44(%r8)  # imm = 0xFFFFFFFF
movq %rdi, (%rax)
movq %r8, 0x8(%rax)
movb %dl, 0x30(%rax)
movq %rax, %rdi
movq %rcx, %rsi
callq 0x467fe
testq %rbx, %rbx
je 0x46270
testl %eax, %eax
jne 0x46270
cmpl $0x0, (%rbx)
jle 0x46270
xorl %r15d, %r15d
leaq -0x60(%rbp), %r14
xorl %r12d, %r12d
movq 0x8(%rbx), %rax
movq (%rax,%r15), %rsi
movq %r14, %rdi
callq 0x467fe
testl %eax, %eax
jne 0x46270
incq %r12
movslq (%rbx), %rax
addq $0x20, %r15
cmpq %rax, %r12
jl 0x4624d
addq $0xb0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ResultSetOfSelect
SQLITE_PRIVATE Table *sqlite3ResultSetOfSelect(Parse *pParse, Select *pSelect){
  Table *pTab;
  sqlite3 *db = pParse->db;
  int savedFlags;

  savedFlags = db->flags;
  db->flags &= ~SQLITE_FullColNames;
  db->flags |= SQLITE_ShortColNames;
  sqlite3SelectPrep(pParse, pSelect, 0);
  if( pParse->nErr ) return 0;
  while( pSelect->pPrior ) pSelect = pSelect->pPrior;
  db->flags = savedFlags;
  pTab = sqlite3DbMallocZero(db, sizeof(Table) );
  if( pTab==0 ){
    return 0;
  }
  /* The sqlite3ResultSetOfSelect() is only used n contexts where lookaside
  ** is disabled */
  assert( db->lookaside.bEnabled==0 );
  pTab->nRef = 1;
  pTab->zName = 0;
  pTab->nRowEst = 1000000;
  selectColumnsFromExprList(pParse, pSelect->pEList, &pTab->nCol, &pTab->aCol);
  selectAddColumnTypeAndCollation(pParse, pTab->nCol, pTab->aCol, pSelect);
  pTab->iPKey = -1;
  if( db->mallocFailed ){
    sqlite3DeleteTable(db, pTab);
    return 0;
  }
  return pTab;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r13
movq %rdi, %r14
movq (%rdi), %r12
movl 0x2c(%r12), %ebx
movl %ebx, %eax
andl $-0x61, %eax
orl $0x40, %eax
movl %eax, 0x2c(%r12)
xorl %r15d, %r15d
xorl %edx, %edx
callq 0x48ae3
cmpl $0x0, 0x50(%r14)
jne 0x46365
movq %r12, %rax
movq %r13, %r12
movq 0x50(%r13), %r13
testq %r13, %r13
jne 0x462c1
movq %rax, %r13
movl %ebx, 0x2c(%rax)
movq %rax, %rdi
movl $0x78, %esi
callq 0x115e9
testq %rax, %rax
je 0x46362
movq %rax, %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rax)
movups %xmm0, (%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x60(%rax)
movups %xmm0, 0x50(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
xorl %eax, %eax
movq %rax, 0x70(%r15)
movw $0x1, 0x44(%r15)
movq %rax, (%r15)
movl $0xf4240, 0x38(%r15)    # imm = 0xF4240
movq (%r12), %rsi
leaq 0x42(%r15), %rdx
movq %r15, %rcx
addq $0x8, %rcx
movq %r14, %rdi
callq 0x49f5b
movswl 0x42(%r15), %esi
movq 0x8(%r15), %rdx
movq %r14, %rdi
movq %r12, %rcx
callq 0x4ad15
movw $0xffff, 0x40(%r15)     # imm = 0xFFFF
cmpb $0x0, 0x50(%r13)
je 0x46365
movq %r13, %rdi
movq %r15, %rsi
callq 0x9939
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq