LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3FixSelect
SQLITE_PRIVATE int sqlite3FixSelect(
  DbFixer *pFix,       /* Context of the fixation */
  Select *pSelect      /* The SELECT statement to be fixed to one database */
){
  while( pSelect ){
    if( sqlite3FixExprList(pFix, pSelect->pEList) ){
      return 1;
    }
    if( sqlite3FixSrcList(pFix, pSelect->pSrc) ){
      return 1;
    }
    if( sqlite3FixExpr(pFix, pSelect->pWhere) ){
      return 1;
    }
    if( sqlite3FixExpr(pFix, pSelect->pHaving) ){
      return 1;
    }
    pSelect = pSelect->pPrior;
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x4c22c
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %r15d
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x4c2a9
testl %eax, %eax
jne 0x4c22f
movq 0x28(%rbx), %rsi
movq %r14, %rdi
callq 0x4bc65
testl %eax, %eax
jne 0x4c22f
movq 0x30(%rbx), %rsi
movq %r14, %rdi
callq 0x4c23d
testl %eax, %eax
jne 0x4c22f
movq 0x40(%rbx), %rsi
movq %r14, %rdi
callq 0x4c23d
testl %eax, %eax
jne 0x4c22f
movq 0x50(%rbx), %rbx
testq %rbx, %rbx
jne 0x4c1e4
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3FixExpr
SQLITE_PRIVATE int sqlite3FixExpr(
  DbFixer *pFix,     /* Context of the fixation */
  Expr *pExpr        /* The expression to be fixed to one database */
){
  while( pExpr ){
    if( ExprHasAnyProperty(pExpr, EP_TokenOnly) ) break;
    if( ExprHasProperty(pExpr, EP_xIsSelect) ){
      if( sqlite3FixSelect(pFix, pExpr->x.pSelect) ) return 1;
    }else{
      if( sqlite3FixExprList(pFix, pExpr->x.pList) ) return 1;
    }
    if( sqlite3FixExpr(pFix, pExpr->pRight) ){
      return 1;
    }
    pExpr = pExpr->pLeft;
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorl %ebx, %ebx
testq %rsi, %rsi
je 0x4c29c
movq %rsi, %r14
movq %rdi, %r15
movzwl 0x2(%r14), %eax
btl $0xe, %eax
jb 0x4c29c
btl $0xb, %eax
movq 0x20(%r14), %rsi
movq %r15, %rdi
jb 0x4c273
callq 0x4c2a9
jmp 0x4c278
callq 0x4c1c9
testl %eax, %eax
jne 0x4c297
movq 0x18(%r14), %rsi
movq %r15, %rdi
callq 0x4c23d
testl %eax, %eax
jne 0x4c297
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x4c254
jmp 0x4c29c
movl $0x1, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3FixExprList
SQLITE_PRIVATE int sqlite3FixExprList(
  DbFixer *pFix,     /* Context of the fixation */
  ExprList *pList    /* The expression to be fixed to one database */
){
  int i;
  struct ExprList_item *pItem;
  if( pList==0 ) return 0;
  for(i=0, pItem=pList->a; i<pList->nExpr; i++, pItem++){
    if( sqlite3FixExpr(pFix, pItem->pExpr) ){
      return 1;
    }
  }
  return 0;
}

// Assembly:
xorl %eax, %eax
testq %rsi, %rsi
je 0x4c2f9
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
cmpl $0x0, (%rsi)
jle 0x4c2f1
movq %rdi, %r14
movq 0x8(%rbx), %r15
xorl %r12d, %r12d
movq (%r15), %rsi
movq %r14, %rdi
callq 0x4c23d
testl %eax, %eax
jne 0x4c2ec
incl %r12d
addq $0x20, %r15
cmpl (%rbx), %r12d
jl 0x4c2cd
xorl %eax, %eax
jmp 0x4c2f1
movl $0x1, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3IndexKeyinfo
SQLITE_PRIVATE KeyInfo *sqlite3IndexKeyinfo(Parse *pParse, Index *pIdx){
  int i;
  int nCol = pIdx->nColumn;
  KeyInfo *pKey;

  pKey = sqlite3KeyInfoAlloc(pParse->db, nCol);
  if( pKey ){
    for(i=0; i<nCol; i++){
      char *zColl = pIdx->azColl[i];
      assert( zColl );
      pKey->aColl[i] = sqlite3LocateCollSeq(pParse, zColl);
      pKey->aSortOrder[i] = pIdx->aSortOrder[i];
    }
  }

  if( pParse->nErr ){
    sqlite3DbFree(pParse->db, pKey);
    pKey = 0;
  }
  return pKey;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movzwl 0x54(%rsi), %r12d
testl %r12d, %r12d
sete %r13b
movq (%rdi), %rdi
movl %r12d, %esi
callq 0x366de
movq %rax, %rbx
testq %rax, %rax
sete %al
orb %r13b, %al
jne 0x4c363
xorl %r13d, %r13d
movq 0x40(%r15), %rax
movq (%rax,%r13,8), %rsi
movq %r14, %rdi
callq 0x4bd86
movq %rax, 0x18(%rbx,%r13,8)
movq 0x38(%r15), %rax
movb (%rax,%r13), %al
movq 0x10(%rbx), %rcx
movb %al, (%rcx,%r13)
incq %r13
cmpq %r13, %r12
jne 0x4c336
cmpl $0x0, 0x50(%r14)
je 0x4c377
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x9ca4
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3HaltConstraint
SQLITE_PRIVATE void sqlite3HaltConstraint(
  Parse *pParse,    /* Parsing context */
  int errCode,      /* extended error code */
  int onError,      /* Constraint type */
  char *p4,         /* Error message */
  int p4type        /* P4_STATIC or P4_TRANSIENT */
){
  Vdbe *v = sqlite3GetVdbe(pParse);
  assert( (errCode&0xff)==SQLITE_CONSTRAINT );
  if( onError==OE_Abort ){
    sqlite3MayAbort(pParse);
  }
  sqlite3VdbeAddOp4(v, OP_Halt, errCode, onError, 0, p4, p4type);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, -0x2c(%rbp)
movq %rcx, %r14
movl %edx, %r13d
movl %esi, %r12d
movq %rdi, %rbx
callq 0x45ece
movq %rax, %r15
cmpl $0x2, %r13d
jne 0x4c5b7
movq 0x1d8(%rbx), %rax
testq %rax, %rax
cmoveq %rbx, %rax
movb $0x1, 0x24(%rax)
movl $0x2, %r13d
movq %r15, %rdi
movl $0x14, %esi
movl %r12d, %edx
movl %r13d, %ecx
xorl %r8d, %r8d
callq 0x45f15
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rdx
movl -0x2c(%rbp), %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11a9f
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3VdbeMakeLabel
SQLITE_PRIVATE int sqlite3VdbeMakeLabel(Vdbe *p){
  int i = p->nLabel++;
  assert( p->magic==VDBE_MAGIC_INIT );
  if( (i & (i-1))==0 ){
    p->aLabel = sqlite3DbReallocOrFree(p->db, p->aLabel, 
                                       (i*2+1)*sizeof(p->aLabel[0]));
  }
  if( p->aLabel ){
    p->aLabel[i] = -1;
  }
  return -1-i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movslq 0x3c(%rdi), %rbx
leal 0x1(%rbx), %eax
movl %eax, 0x3c(%rdi)
leal -0x1(%rbx), %eax
testl %eax, %ebx
jne 0x4c61f
movq (%r14), %rdi
movq 0x40(%r14), %rsi
leal 0x4(,%rbx,8), %edx
callq 0x33c1f
movq %rax, 0x40(%r14)
jmp 0x4c623
movq 0x40(%r14), %rax
testq %rax, %rax
je 0x4c62f
movl $0xffffffff, (%rax,%rbx,4) # imm = 0xFFFFFFFF
notl %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ColumnDefault
SQLITE_PRIVATE void sqlite3ColumnDefault(Vdbe *v, Table *pTab, int i, int iReg){
  assert( pTab!=0 );
  if( !pTab->pSelect ){
    sqlite3_value *pValue;
    u8 enc = ENC(sqlite3VdbeDb(v));
    Column *pCol = &pTab->aCol[i];
    VdbeComment((v, "%s.%s", pTab->zName, pCol->zName));
    assert( i<pTab->nCol );
    sqlite3ValueFromExpr(sqlite3VdbeDb(v), pCol->pDflt, enc, 
                         pCol->affinity, &pValue);
    if( pValue ){
      sqlite3VdbeChangeP4(v, -1, (const char *)pValue, P4_MEM);
    }
#ifndef SQLITE_OMIT_FLOATING_POINT
    if( iReg>=0 && pTab->aCol[i].affinity==SQLITE_AFF_REAL ){
      sqlite3VdbeAddOp1(v, OP_RealAffinity, iReg);
    }
#endif
  }
}

// Assembly:
cmpq $0x0, 0x18(%rsi)
je 0x4c945
retq
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rsi, %r15
movq %rdi, %r14
movq (%rdi), %rdi
movq 0x20(%rdi), %rax
movq 0x18(%rax), %rax
movzbl 0x71(%rax), %eax
movq 0x8(%rsi), %rcx
movslq %edx, %rdx
leaq (%rdx,%rdx,2), %r13
shlq $0x4, %r13
movq 0x8(%rcx,%r13), %rsi
movzbl 0x29(%rcx,%r13), %ecx
leaq -0x30(%rbp), %r12
movl %eax, %edx
movq %r12, %r8
callq 0x4f449
movq (%r12), %rdx
testq %rdx, %rdx
je 0x4c9ad
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0xfffffff8, %ecx       # imm = 0xFFFFFFF8
callq 0x11a9f
testl %ebx, %ebx
js 0x4c9d1
movq 0x8(%r15), %rax
cmpb $0x65, 0x29(%rax,%r13)
jne 0x4c9d1
movq %r14, %rdi
movl $0x22, %esi
movl %ebx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45f15
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3IndexAffinityStr
SQLITE_PRIVATE const char *sqlite3IndexAffinityStr(Vdbe *v, Index *pIdx){
  if( !pIdx->zColAff ){
    /* The first time a column affinity string for a particular index is
    ** required, it is allocated and populated here. It is then stored as
    ** a member of the Index structure for subsequent use.
    **
    ** The column affinity string will eventually be deleted by
    ** sqliteDeleteIndex() when the Index structure itself is cleaned
    ** up.
    */
    int n;
    Table *pTab = pIdx->pTable;
    sqlite3 *db = sqlite3VdbeDb(v);
    pIdx->zColAff = (char *)sqlite3DbMallocRaw(0, pIdx->nColumn+2);
    if( !pIdx->zColAff ){
      db->mallocFailed = 1;
      return 0;
    }
    for(n=0; n<pIdx->nColumn; n++){
      pIdx->zColAff[n] = pTab->aCol[pIdx->aiColumn[n]].affinity;
    }
    pIdx->zColAff[n++] = SQLITE_AFF_INTEGER;
    pIdx->zColAff[n] = 0;
  }
 
  return pIdx->zColAff;
}

// Assembly:
movq 0x20(%rsi), %rax
testq %rax, %rax
je 0x4c9ea
retq
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x18(%rsi), %r14
movq (%rdi), %r15
movzwl 0x54(%rsi), %edi
addl $0x2, %edi
callq 0xa38c
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x4ca4d
cmpw $0x0, 0x54(%rbx)
je 0x4ca56
xorl %ecx, %ecx
movq 0x8(%r14), %rax
movq 0x8(%rbx), %rdx
movq 0x20(%rbx), %rsi
movslq (%rdx,%rcx,4), %rdx
leaq (%rdx,%rdx,2), %rdx
shlq $0x4, %rdx
movb 0x29(%rax,%rdx), %al
movb %al, (%rsi,%rcx)
incq %rcx
movzwl 0x54(%rbx), %eax
cmpq %rax, %rcx
jb 0x4ca1c
movq 0x20(%rbx), %rax
jmp 0x4ca58
movb $0x1, 0x50(%r15)
xorl %eax, %eax
jmp 0x4ca69
xorl %ecx, %ecx
movb $0x64, (%rax,%rcx)
movq 0x20(%rbx), %rax
movb $0x0, 0x1(%rax,%rcx)
movq 0x20(%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprCachePop
SQLITE_PRIVATE void sqlite3ExprCachePop(Parse *pParse, int N){
  int i;
  struct yColCache *p;
  assert( N>0 );
  assert( pParse->iCacheLevel>=N );
  pParse->iCacheLevel -= N;
  for(i=0, p=pParse->aColCache; i<SQLITE_N_COLCACHE; i++, p++){
    if( p->iReg && p->iLevel>pParse->iCacheLevel ){
      cacheEntryClear(pParse, p);
      p->iReg = 0;
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
decl 0x6c(%rdi)
xorl %eax, %eax
movl 0x84(%rdi,%rax), %ecx
testl %ecx, %ecx
je 0x4cdb0
movl 0x80(%rdi,%rax), %edx
cmpl 0x6c(%rdi), %edx
jle 0x4cdb0
cmpb $0x0, 0x7c(%rdi,%rax)
je 0x4cda5
movzbl 0x1f(%rdi), %edx
cmpq $0x7, %rdx
ja 0x4cda0
leal 0x1(%rdx), %esi
movb %sil, 0x1f(%rdi)
movl %ecx, 0x28(%rdi,%rdx,4)
movb $0x0, 0x7c(%rdi,%rax)
movl $0x0, 0x84(%rdi,%rax)
addq $0x18, %rax
cmpl $0xf0, %eax
jne 0x4cd6d
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprCodeTemp
SQLITE_PRIVATE int sqlite3ExprCodeTemp(Parse *pParse, Expr *pExpr, int *pReg){
  int r1 = sqlite3GetTempReg(pParse);
  int r2 = sqlite3ExprCodeTarget(pParse, pExpr, r1);
  if( r2==r1 ){
    *pReg = r1;
  }else{
    sqlite3ReleaseTempReg(pParse, r1);
    *pReg = 0;
  }
  return r2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movb 0x1f(%rdi), %al
testb %al, %al
je 0x4cde4
decb %al
movb %al, 0x1f(%r14)
movzbl %al, %eax
movl 0x28(%r14,%rax,4), %r15d
jmp 0x4cdef
movl 0x58(%r14), %r15d
incl %r15d
movl %r15d, 0x58(%r14)
movq %r14, %rdi
movl %r15d, %edx
callq 0x4d33b
cmpl %r15d, %eax
jne 0x4ce04
movl %r15d, %edx
jmp 0x4ce44
xorl %edx, %edx
testl %r15d, %r15d
je 0x4ce44
movzbl 0x1f(%r14), %ecx
cmpq $0x7, %rcx
ja 0x4ce44
xorl %edx, %edx
cmpl %r15d, 0x84(%r14,%rdx)
je 0x4ce3c
addq $0x18, %rdx
cmpl $0xf0, %edx
jne 0x4ce18
leal 0x1(%rcx), %edx
movb %dl, 0x1f(%r14)
movl %r15d, 0x28(%r14,%rcx,4)
jmp 0x4ce42
movb $0x1, 0x7c(%r14,%rdx)
xorl %edx, %edx
movl %edx, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: codeCompare
static int codeCompare(
  Parse *pParse,    /* The parsing (and code generating) context */
  Expr *pLeft,      /* The left operand */
  Expr *pRight,     /* The right operand */
  int opcode,       /* The comparison opcode */
  int in1, int in2, /* Register holding operands */
  int dest,         /* Jump here if true.  */
  int jumpIfNull    /* If true, jump if either operand is NULL */
){
  int p5;
  int addr;
  CollSeq *p4;

  p4 = sqlite3BinaryCompareCollSeq(pParse, pLeft, pRight);
  p5 = binaryCompareP5(pLeft, pRight, jumpIfNull);
  addr = sqlite3VdbeAddOp4(pParse->pVdbe, opcode, in2, dest, in1,
                           (void*)p4, P4_COLLSEQ);
  sqlite3VdbeChangeP5(pParse->pVdbe, (u8)p5);
  return addr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, -0x2c(%rbp)
movl %r8d, -0x30(%rbp)
movl %ecx, %r13d
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
callq 0x4ef2c
movq %rax, %r15
movq %r12, %rdi
callq 0x4b192
movsbl %al, %esi
movq %r14, %rdi
callq 0x4ef70
movl %eax, %r12d
movq 0x10(%rbx), %r14
movq %r14, %rdi
movl %r13d, %esi
movl -0x2c(%rbp), %edx
movl 0x10(%rbp), %ecx
movl -0x30(%rbp), %r8d
callq 0x45f15
movq %r14, %rdi
movl %eax, %esi
movq %r15, %rdx
movl $0xfffffffc, %ecx       # imm = 0xFFFFFFFC
callq 0x11a9f
movq 0x10(%rbx), %rcx
movq 0x8(%rcx), %rax
testq %rax, %rax
je 0x4cedc
movl 0x18(%rbp), %edx
orb %dl, %r12b
movslq 0x34(%rcx), %rcx
leaq (%rcx,%rcx,2), %rcx
movb %r12b, -0x15(%rax,%rcx,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprCodeGetColumn
SQLITE_PRIVATE int sqlite3ExprCodeGetColumn(
  Parse *pParse,   /* Parsing and code generating context */
  Table *pTab,     /* Description of the table we are reading from */
  int iColumn,     /* Index of the table column */
  int iTable,      /* The cursor pointing to the table */
  int iReg,        /* Store results here */
  u8 p5            /* P5 value for OP_Column */
){
  Vdbe *v = pParse->pVdbe;
  int i;
  struct yColCache *p;

  for(i=0, p=pParse->aColCache; i<SQLITE_N_COLCACHE; i++, p++){
    if( p->iReg>0 && p->iTable==iTable && p->iColumn==iColumn ){
      p->lru = pParse->iCacheCnt++;
      sqlite3ExprCachePinRegister(pParse, p->iReg);
      return p->iReg;
    }
  }  
  assert( v!=0 );
  sqlite3ExprCodeGetColumnOfTable(v, pTab, iTable, iColumn, iReg);
  if( p5 ){
    sqlite3VdbeChangeP5(v, p5);
  }else{   
    sqlite3ExprCacheStore(pParse, iTable, iColumn, iReg);
  }
  return iReg;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r13d
movl %edx, %r12d
movq %rdi, %r14
movq 0x10(%rdi), %rbx
movl $0x88, %ecx
movl -0x4(%r14,%rcx), %eax
testl %eax, %eax
jle 0x4e22f
cmpl %r13d, -0x14(%r14,%rcx)
jne 0x4e22f
cmpl %r12d, -0x10(%r14,%rcx)
je 0x4e28c
addq $0x18, %rcx
cmpl $0x178, %ecx            # imm = 0x178
jne 0x4e218
movq %rbx, %rdi
movl %r13d, %edx
movl %r12d, %ecx
movl %r8d, -0x2c(%rbp)
movl %r9d, %r15d
callq 0x4ede2
movl %r15d, %edx
testb %dl, %dl
je 0x4e275
movl -0x2c(%rbp), %r15d
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x4e270
movslq 0x34(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movb %dl, -0x15(%rax,%rcx,8)
movl %r15d, %eax
jmp 0x4e2b9
movq %r14, %rdi
movl %r13d, %esi
movl %r12d, %edx
movl -0x2c(%rbp), %ebx
movl %ebx, %ecx
callq 0x4ee66
movl %ebx, %eax
jmp 0x4e2b9
movl 0x70(%r14), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x70(%r14)
movl %edx, (%r14,%rcx)
xorl %ecx, %ecx
cmpl %eax, 0x84(%r14,%rcx)
jne 0x4e2ad
movb $0x0, 0x7c(%r14,%rcx)
addq $0x18, %rcx
cmpl $0xf0, %ecx
jne 0x4e29d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: codeInteger
static void codeInteger(Parse *pParse, Expr *pExpr, int negFlag, int iMem){
  Vdbe *v = pParse->pVdbe;
  if( pExpr->flags & EP_IntValue ){
    int i = pExpr->u.iValue;
    assert( i>=0 );
    if( negFlag ) i = -i;
    sqlite3VdbeAddOp2(v, OP_Integer, i, iMem);
  }else{
    int c;
    i64 value;
    const char *z = pExpr->u.zToken;
    assert( z!=0 );
    c = sqlite3Atoi64(z, &value, sqlite3Strlen30(z), SQLITE_UTF8);
    if( c==0 || (c==2 && negFlag) ){
      char *zV;
      if( negFlag ){ value = c==2 ? SMALLEST_INT64 : -value; }
      zV = dup8bytes(v, (char*)&value);
      sqlite3VdbeAddOp4(v, OP_Int64, 0, iMem, 0, zV, P4_INT64);
    }else{
#ifdef SQLITE_OMIT_FLOATING_POINT
      sqlite3ErrorMsg(pParse, "oversized integer: %s%s", negFlag ? "-" : "", z);
#else
      codeReal(v, z, negFlag, iMem);
#endif
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebx
movl %edx, %r15d
movq %rdi, %r14
testb $0x4, 0x3(%rsi)
jne 0x4e309
movq 0x8(%rsi), %r12
testq %r12, %r12
je 0x4e334
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rax
incl %edx
cmpb $0x0, (%rax)
leaq 0x1(%rax), %rax
jne 0x4e2f6
andl $0x3fffffff, %edx       # imm = 0x3FFFFFFF
jmp 0x4e336
movl 0x8(%rsi), %eax
movl %eax, %edx
negl %edx
testl %r15d, %r15d
cmovel %eax, %edx
movq %r14, %rdi
movl $0x15, %esi
movl %ebx, %ecx
xorl %r8d, %r8d
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x45f15
xorl %edx, %edx
leaq -0x28(%rbp), %rsi
movq %r12, %rdi
movl $0x1, %ecx
callq 0x16fda
testl %eax, %eax
je 0x4e36e
testl %r15d, %r15d
je 0x4e355
cmpl $0x2, %eax
je 0x4e373
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
movl %ebx, %ecx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4e3dc
testl %r15d, %r15d
je 0x4e38e
xorl %ecx, %ecx
subq -0x28(%rbp), %rcx
cmpl $0x2, %eax
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
cmovneq %rcx, %rax
movq %rax, -0x28(%rbp)
movq (%r14), %rdi
movl $0x8, %esi
callq 0x11721
movq %rax, %r15
testq %rax, %rax
je 0x4e3aa
movq -0x28(%rbp), %rax
movq %rax, (%r15)
movq %r14, %rdi
movl $0x16, %esi
xorl %edx, %edx
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x45f15
movq %r14, %rdi
movl %eax, %esi
movq %r15, %rdx
movl $0xfffffff3, %ecx       # imm = 0xFFFFFFF3
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x11a9f
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: codeReal
static void codeReal(Vdbe *v, const char *z, int negateFlag, int iMem){
  if( ALWAYS(z!=0) ){
    double value;
    char *zV;
    sqlite3AtoF(z, &value, sqlite3Strlen30(z), SQLITE_UTF8);
    assert( !sqlite3IsNaN(value) ); /* The new AtoF never returns NaN */
    if( negateFlag ) value = -value;
    zV = dup8bytes(v, (char*)&value);
    sqlite3VdbeAddOp4(v, OP_Real, 0, iMem, 0, zV, P4_REAL);
  }
}

// Assembly:
testq %rsi, %rsi
je 0x4e482
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %r14d
movl %edx, %r15d
movq %rdi, %rbx
xorl %edx, %edx
cmpb $0x0, (%rsi,%rdx)
leaq 0x1(%rdx), %rdx
jne 0x4e3fa
decl %edx
andl $0x3fffffff, %edx       # imm = 0x3FFFFFFF
leaq -0x20(%rbp), %rax
movq %rsi, %rdi
movq %rax, %rsi
movl $0x1, %ecx
callq 0x243b1
testl %r15d, %r15d
je 0x4e435
movsd -0x20(%rbp), %xmm0
xorps 0x2af7f(%rip), %xmm0    # 0x793b0
movlps %xmm0, -0x20(%rbp)
movq (%rbx), %rdi
movl $0x8, %esi
callq 0x11721
movq %rax, %r15
testq %rax, %rax
je 0x4e451
movq -0x20(%rbp), %rax
movq %rax, (%r15)
movq %rbx, %rdi
movl $0x82, %esi
xorl %edx, %edx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x45f15
movq %rbx, %rdi
movl %eax, %esi
movq %r15, %rdx
movl $0xfffffff4, %ecx       # imm = 0xFFFFFFF4
callq 0x11a9f
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3HexToBlob
SQLITE_PRIVATE void *sqlite3HexToBlob(sqlite3 *db, const char *z, int n){
  char *zBlob;
  int i;

  zBlob = (char *)sqlite3DbMallocRaw(db, n/2 + 1);
  n--;
  if( zBlob ){
    for(i=0; i<n; i+=2){
      zBlob[i/2] = (sqlite3HexToInt(z[i])<<4) | sqlite3HexToInt(z[i+1]);
    }
    zBlob[i/2] = 0;
  }
  return zBlob;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edx, %r14d
movq %rsi, %rbx
movl %edx, %esi
shrl $0x1f, %esi
addl %edx, %esi
sarl %esi
incl %esi
callq 0x11721
testq %rax, %rax
je 0x4e505
cmpl $0x2, %r14d
jl 0x4e4ff
decl %r14d
movl %r14d, %edx
xorl %ecx, %ecx
xorl %esi, %esi
movb (%rbx,%rsi), %dil
movb 0x1(%rbx,%rsi), %r8b
leal (%rdi,%rdi), %r9d
sarb $0x7, %r9b
andb $0x9, %r9b
addb %dil, %r9b
shlb $0x4, %r9b
leal (%r8,%r8), %edi
sarb $0x7, %dil
andb $0x9, %dil
addb %r8b, %dil
andb $0xf, %dil
orb %r9b, %dil
movb %dil, (%rax,%rcx)
addq $0x2, %rsi
incq %rcx
cmpq %rdx, %rsi
jb 0x4e4b5
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0x4e501
xorl %ecx, %ecx
movb $0x0, (%rax,%rcx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprCode
SQLITE_PRIVATE int sqlite3ExprCode(Parse *pParse, Expr *pExpr, int target){
  int inReg;

  assert( target>0 && target<=pParse->nMem );
  if( pExpr && pExpr->op==TK_REGISTER ){
    sqlite3VdbeAddOp2(pParse->pVdbe, OP_Copy, pExpr->iTable, target);
  }else{
    inReg = sqlite3ExprCodeTarget(pParse, pExpr, target);
    assert( pParse->pVdbe || pParse->db->mallocFailed );
    if( inReg!=target && pParse->pVdbe ){
      sqlite3VdbeAddOp2(pParse->pVdbe, OP_SCopy, inReg, target);
    }
  }
  return target;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rdi, %r14
testq %rsi, %rsi
je 0x4e52e
cmpb $-0x7c, (%rsi)
jne 0x4e535
movq 0x10(%r14), %rdi
movl 0x2c(%rsi), %edx
movl $0x1c, %esi
jmp 0x4e553
movq %r14, %rdi
xorl %esi, %esi
jmp 0x4e538
movq %r14, %rdi
movl %ebx, %edx
callq 0x4d33b
cmpl %ebx, %eax
je 0x4e55d
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x4e55d
movl $0x1d, %esi
movl %eax, %edx
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x45f15
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprCacheRemove
SQLITE_PRIVATE void sqlite3ExprCacheRemove(Parse *pParse, int iReg, int nReg){
  int i;
  int iLast = iReg + nReg - 1;
  struct yColCache *p;
  for(i=0, p=pParse->aColCache; i<SQLITE_N_COLCACHE; i++, p++){
    int r = p->iReg;
    if( r>=iReg && r<=iLast ){
      cacheEntryClear(pParse, p);
      p->iReg = 0;
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
addl %esi, %edx
xorl %eax, %eax
movl 0x84(%rdi,%rax), %ecx
cmpl %esi, %ecx
setge %r8b
cmpl %edx, %ecx
setl %r9b
andb %r8b, %r9b
cmpb $0x1, %r9b
jne 0x4e5b7
cmpb $0x0, 0x7c(%rdi,%rax)
je 0x4e5ac
movzbl 0x1f(%rdi), %r8d
cmpq $0x7, %r8
ja 0x4e5a7
leal 0x1(%r8), %r9d
movb %r9b, 0x1f(%rdi)
movl %ecx, 0x28(%rdi,%r8,4)
movb $0x0, 0x7c(%rdi,%rax)
movl $0x0, 0x84(%rdi,%rax)
addq $0x18, %rax
cmpl $0xf0, %eax
jne 0x4e56c
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprCodeExprList
SQLITE_PRIVATE int sqlite3ExprCodeExprList(
  Parse *pParse,     /* Parsing context */
  ExprList *pList,   /* The expression list to be coded */
  int target,        /* Where to write results */
  int doHardCopy     /* Make a hard copy of every element */
){
  struct ExprList_item *pItem;
  int i, n;
  assert( pList!=0 );
  assert( target>0 );
  assert( pParse->pVdbe!=0 );  /* Never gets this far otherwise */
  n = pList->nExpr;
  for(pItem=pList->a, i=0; i<n; i++, pItem++){
    Expr *pExpr = pItem->pExpr;
    int inReg = sqlite3ExprCodeTarget(pParse, pExpr, target+i);
    if( inReg!=target+i ){
      sqlite3VdbeAddOp2(pParse->pVdbe, doHardCopy ? OP_Copy : OP_SCopy,
                        inReg, target+i);
    }
  }
  return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl (%rsi), %r12d
testl %r12d, %r12d
jle 0x4e61d
movl %edx, %ebx
movq %rdi, %r14
movq 0x8(%rsi), %r13
xorl %r15d, %r15d
cmpl $0x1, %ecx
adcl $0x1c, %r15d
movq (%r13), %rsi
movq %r14, %rdi
movl %ebx, %edx
callq 0x4d33b
cmpl %eax, %ebx
je 0x4e612
movq 0x10(%r14), %rdi
movl %r15d, %esi
movl %eax, %edx
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x45f15
addq $0x20, %r13
incl %ebx
decl %r12d
jne 0x4e5ed
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprCodeGetColumnOfTable
SQLITE_PRIVATE void sqlite3ExprCodeGetColumnOfTable(
  Vdbe *v,        /* The VDBE under construction */
  Table *pTab,    /* The table containing the value */
  int iTabCur,    /* The cursor for this table */
  int iCol,       /* Index of the column to extract */
  int regOut      /* Extract the valud into this register */
){
  if( iCol<0 || iCol==pTab->iPKey ){
    sqlite3VdbeAddOp2(v, OP_Rowid, iTabCur, regOut);
  }else{
    int op = IsVirtual(pTab) ? OP_VColumn : OP_Column;
    sqlite3VdbeAddOp3(v, op, iTabCur, iCol, regOut);
  }
  if( iCol>=0 ){
    sqlite3ColumnDefault(v, pTab, iCol, regOut);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebx
movq %rdi, %r12
testl %ecx, %ecx
js 0x4ee14
movl %ecx, %r14d
movq %rsi, %r15
movswl 0x40(%rsi), %eax
cmpl %ecx, %eax
jne 0x4ee2e
movq %r12, %rdi
movl $0x60, %esi
movl %ebx, %ecx
xorl %r8d, %r8d
jmp 0x4ee49
movq %r12, %rdi
movl $0x60, %esi
movl %ebx, %ecx
xorl %r8d, %r8d
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x45f15
testb $0x10, 0x46(%r15)
movl $0x29, %eax
movl $0x8a, %esi
cmovel %eax, %esi
movq %r12, %rdi
movl %r14d, %ecx
movl %ebx, %r8d
callq 0x45f15
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebx, %ecx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4c93d
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3BinaryCompareCollSeq
SQLITE_PRIVATE CollSeq *sqlite3BinaryCompareCollSeq(
  Parse *pParse, 
  Expr *pLeft, 
  Expr *pRight
){
  CollSeq *pColl;
  assert( pLeft );
  if( pLeft->flags & EP_Collate ){
    pColl = sqlite3ExprCollSeq(pParse, pLeft);
  }else if( pRight && (pRight->flags & EP_Collate)!=0 ){
    pColl = sqlite3ExprCollSeq(pParse, pRight);
  }else{
    pColl = sqlite3ExprCollSeq(pParse, pLeft);
    if( !pColl ){
      pColl = sqlite3ExprCollSeq(pParse, pRight);
    }
  }
  return pColl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
testb $0x1, 0x3(%rsi)
jne 0x4ef5c
movq %rdx, %rbx
testq %rdx, %rdx
je 0x4ef4a
testb $0x1, 0x3(%rbx)
jne 0x4ef61
movq %r14, %rdi
callq 0x4b225
testq %rax, %rax
je 0x4ef61
popq %rbx
popq %r14
popq %rbp
retq
movq %r14, %rdi
jmp 0x4ef67
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x4b225
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3CompareAffinity
SQLITE_PRIVATE char sqlite3CompareAffinity(Expr *pExpr, char aff2){
  char aff1 = sqlite3ExprAffinity(pExpr);
  if( aff1 && aff2 ){
    /* Both sides of the comparison are columns. If one has numeric
    ** affinity, use that. Otherwise use no affinity.
    */
    if( sqlite3IsNumericAffinity(aff1) || sqlite3IsNumericAffinity(aff2) ){
      return SQLITE_AFF_NUMERIC;
    }else{
      return SQLITE_AFF_NONE;
    }
  }else if( !aff1 && !aff2 ){
    /* Neither side of the comparison is a column.  Compare the
    ** results directly.
    */
    return SQLITE_AFF_NONE;
  }else{
    /* One side is a column, the other is not. Use the columns affinity. */
    assert( aff1==0 || aff2==0 );
    return (aff1 + aff2);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %esi, %ebx
callq 0x4b192
testb %al, %al
sete %cl
testb %bl, %bl
sete %dl
orb %cl, %dl
jne 0x4ef9c
cmpb $0x63, %al
setge %cl
cmpb $0x63, %bl
setge %al
orb %cl, %al
orb $0x62, %al
jmp 0x4efac
leal (%rax,%rbx), %ecx
orb %bl, %al
movzbl %cl, %ecx
movl $0x62, %eax
cmovnel %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: comparisonAffinity
static char comparisonAffinity(Expr *pExpr){
  char aff;
  assert( pExpr->op==TK_EQ || pExpr->op==TK_IN || pExpr->op==TK_LT ||
          pExpr->op==TK_GT || pExpr->op==TK_GE || pExpr->op==TK_LE ||
          pExpr->op==TK_NE || pExpr->op==TK_IS || pExpr->op==TK_ISNOT );
  assert( pExpr->pLeft );
  aff = sqlite3ExprAffinity(pExpr->pLeft);
  if( pExpr->pRight ){
    aff = sqlite3CompareAffinity(pExpr->pRight, aff);
  }else if( ExprHasProperty(pExpr, EP_xIsSelect) ){
    aff = sqlite3CompareAffinity(pExpr->x.pSelect->pEList->a[0].pExpr, aff);
  }else if( !aff ){
    aff = SQLITE_AFF_NONE;
  }
  return aff;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0x4b192
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
jne 0x4f403
testb $0x8, 0x3(%rbx)
jne 0x4f3f5
testb %al, %al
movzbl %al, %ecx
movl $0x62, %eax
cmovnel %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x20(%rbx), %rcx
movq (%rcx), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx), %rdi
movsbl %al, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4ef70
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3CodeVerifyNamedSchema
SQLITE_PRIVATE void sqlite3CodeVerifyNamedSchema(Parse *pParse, const char *zDb){
  sqlite3 *db = pParse->db;
  int i;
  for(i=0; i<db->nDb; i++){
    Db *pDb = &db->aDb[i];
    if( pDb->pBt && (!zDb || 0==sqlite3StrICmp(zDb, pDb->zName)) ){
      sqlite3CodeVerifySchema(pParse, i);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r12
movl 0x28(%r12), %eax
testl %eax, %eax
jle 0x4f860
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1(%rsi), %rcx
movq %rcx, -0x30(%rbp)
xorl %r15d, %r15d
leaq 0x268c5(%rip), %r13     # 0x760b0
movq 0x20(%r12), %rcx
movq %r15, %rdx
shlq $0x5, %rdx
cmpq $0x0, 0x8(%rcx,%rdx)
je 0x4f855
testq %rbx, %rbx
je 0x4f845
addq %rdx, %rcx
movq (%rcx), %rcx
movb (%rbx), %sil
testb %sil, %sil
je 0x4f836
movq -0x30(%rbp), %rdx
movzbl %sil, %esi
movb (%rsi,%r13), %dil
movzbl (%rcx), %r8d
cmpb (%r8,%r13), %dil
jne 0x4f838
incq %rcx
movb (%rdx), %sil
incq %rdx
testb %sil, %sil
jne 0x4f816
xorl %esi, %esi
movb (%rsi,%r13), %dl
movzbl (%rcx), %ecx
cmpb (%rcx,%r13), %dl
jne 0x4f855
movq %r14, %rdi
movl %r15d, %esi
callq 0x4632f
movl 0x28(%r12), %eax
incq %r15
movslq %eax, %rcx
cmpq %rcx, %r15
jl 0x4f7eb
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ClearStatTables
static void sqlite3ClearStatTables(
  Parse *pParse,         /* The parsing context */
  int iDb,               /* The database number */
  const char *zType,     /* "idx" or "tbl" */
  const char *zName      /* Name of index or table */
){
  int i;
  const char *zDbName = pParse->db->aDb[iDb].zName;
  for(i=1; i<=3; i++){
    char zTab[24];
    sqlite3_snprintf(sizeof(zTab),zTab,"sqlite_stat%d",i);
    if( sqlite3FindTable(pParse->db, zTab, zDbName) ){
      sqlite3NestedParse(pParse,
        "DELETE FROM %Q.%s WHERE %s=%Q",
        zDbName, zTab, zType, zName
      );
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, -0x30(%rbp)
movq %rdx, %r14
movq %rdi, %r15
movq (%rdi), %rax
movq 0x20(%rax), %rax
movslq %esi, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %r12
movl $0x1, %r13d
leaq -0x50(%rbp), %rbx
movl $0x18, %edi
movq %rbx, %rsi
leaq 0x2bf3d(%rip), %rdx     # 0x7b7f2
movl %r13d, %ecx
xorl %eax, %eax
callq 0xb954
movq (%r15), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x341ce
testq %rax, %rax
je 0x4f8f0
movq %r15, %rdi
leaq 0x2bf24(%rip), %rsi     # 0x7b800
movq %r12, %rdx
movq %rbx, %rcx
movq %r14, %r8
movq -0x30(%rbp), %r9
xorl %eax, %eax
callq 0x468e4
incl %r13d
cmpl $0x4, %r13d
jne 0x4f8a6
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3FkDropTable
SQLITE_PRIVATE void sqlite3FkDropTable(Parse *pParse, SrcList *pName, Table *pTab){
  sqlite3 *db = pParse->db;
  if( (db->flags&SQLITE_ForeignKeys) && !IsVirtual(pTab) && !pTab->pSelect ){
    int iSkip = 0;
    Vdbe *v = sqlite3GetVdbe(pParse);

    assert( v );                  /* VDBE has already been allocated */
    if( sqlite3FkReferences(pTab)==0 ){
      /* Search for a deferred foreign key constraint for which this table
      ** is the child table. If one cannot be found, return without 
      ** generating any VDBE code. If one can be found, then jump over
      ** the entire DELETE if there are no outstanding deferred constraints
      ** when this statement is run.  */
      FKey *p;
      for(p=pTab->pFKey; p; p=p->pNextFrom){
        if( p->isDeferred ) break;
      }
      if( !p ) return;
      iSkip = sqlite3VdbeMakeLabel(v);
      sqlite3VdbeAddOp2(v, OP_FkIfZero, 1, iSkip);
    }

    pParse->disableTriggers = 1;
    sqlite3DeleteFrom(pParse, sqlite3SrcListDup(db, pName, 0), 0);
    pParse->disableTriggers = 0;

    /* If the DELETE has generated immediate foreign key constraint 
    ** violations, halt the VDBE and return an error at this point, before
    ** any modifications to the schema are made. This is because statement
    ** transactions are not able to rollback schema changes.  */
    sqlite3VdbeAddOp2(v, OP_FkIfZero, 0, sqlite3VdbeCurrentAddr(v)+2);
    sqlite3HaltConstraint(pParse, SQLITE_CONSTRAINT_FOREIGNKEY,
        OE_Abort, "foreign key constraint failed", P4_STATIC
    );

    if( iSkip ){
      sqlite3VdbeResolveLabel(v, iSkip);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r13
testb $0x8, 0x2e(%r13)
je 0x4f930
movq %rdx, %rbx
testb $0x10, 0x46(%rdx)
jne 0x4f930
cmpq $0x0, 0x18(%rbx)
je 0x4f93f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %r15
movq %rdi, %r14
callq 0x45ece
movq %rax, %r12
movq %rbx, %rdi
callq 0x4fce3
xorl %ecx, %ecx
testq %rax, %rax
je 0x4f9f2
movb $0x1, 0x1f6(%r14)
movq %r13, %rdi
movq %r15, %rsi
movl %ecx, %ebx
xorl %edx, %edx
callq 0x48a30
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x3df0a
movb $0x0, 0x1f6(%r14)
movl 0x34(%r12), %ecx
addl $0x2, %ecx
movq %r12, %rdi
movl $0x7c, %esi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x45f15
leaq 0x29edd(%rip), %rcx     # 0x7988a
movq %r14, %rdi
movl $0x313, %esi            # imm = 0x313
movl $0x2, %edx
movl $0xfffffffe, %r8d       # imm = 0xFFFFFFFE
callq 0x4c573
testl %ebx, %ebx
je 0x4f930
jns 0x4f930
movq 0x40(%r12), %rax
testq %rax, %rax
je 0x4f930
notl %ebx
movl 0x34(%r12), %ecx
movl %ebx, %edx
movl %ecx, (%rax,%rdx,4)
jmp 0x4f930
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x4f930
cmpb $0x0, 0x2c(%rax)
jne 0x4fa0b
movq 0x8(%rax), %rax
jmp 0x4f9f6
movq %r12, %rdi
callq 0x4c5eb
movl %eax, %ebx
movq %r12, %rdi
movl $0x7c, %esi
movl $0x1, %edx
movl %eax, %ecx
xorl %r8d, %r8d
callq 0x45f15
movl %ebx, %ecx
jmp 0x4f960
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3TriggerList
SQLITE_PRIVATE Trigger *sqlite3TriggerList(Parse *pParse, Table *pTab){
  Schema * const pTmpSchema = pParse->db->aDb[1].pSchema;
  Trigger *pList = 0;                  /* List of triggers to return */

  if( pParse->disableTriggers ){
    return 0;
  }

  if( pTmpSchema!=pTab->pSchema ){
    HashElem *p;
    assert( sqlite3SchemaMutexHeld(pParse->db, 0, pTmpSchema) );
    for(p=sqliteHashFirst(&pTmpSchema->trigHash); p; p=sqliteHashNext(p)){
      Trigger *pTrig = (Trigger *)sqliteHashData(p);
      if( pTrig->pTabSchema==pTab->pSchema
       && 0==sqlite3StrICmp(pTrig->table, pTab->zName) 
      ){
        pTrig->pNext = (pList ? pList : pTab->pTrigger);
        pList = pTrig;
      }
    }
  }

  return (pList ? pList : pTab->pTrigger);
}

// Assembly:
testb %sil, %sil
je 0x4fd22
xorl %eax, %eax
retq
movq 0x68(%rdx), %rcx
cmpq %rdi, %rcx
je 0x4fdb7
movq 0x40(%rdi), %rsi
testq %rsi, %rsi
je 0x4fdb7
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
xorl %eax, %eax
leaq 0x26368(%rip), %rdi     # 0x760b0
movq 0x10(%rsi), %r8
cmpq %rcx, 0x30(%r8)
jne 0x4fda5
movq 0x8(%r8), %r10
movq (%rdx), %r9
movb (%r10), %r11b
testb %r11b, %r11b
je 0x4fd84
incq %r10
movzbl %r11b, %r11d
movb (%r11,%rdi), %bl
movzbl (%r9), %r14d
cmpb (%r14,%rdi), %bl
jne 0x4fd87
incq %r9
movb (%r10), %r11b
incq %r10
testb %r11b, %r11b
jne 0x4fd64
xorl %r11d, %r11d
movb (%r11,%rdi), %r10b
movzbl (%r9), %r9d
cmpb (%r9,%rdi), %r10b
jne 0x4fda5
testq %rax, %rax
jne 0x4fd9e
movq 0x60(%rdx), %rax
movq %rax, 0x40(%r8)
movq %r8, %rax
movq (%rsi), %rsi
testq %rsi, %rsi
jne 0x4fd48
testq %rax, %rax
popq %rbx
popq %r14
popq %rbp
je 0x4fdb7
retq
movq 0x60(%rdx), %rax
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: destroyRootPage
static void destroyRootPage(Parse *pParse, int iTable, int iDb){
  Vdbe *v = sqlite3GetVdbe(pParse);
  int r1 = sqlite3GetTempReg(pParse);
  sqlite3VdbeAddOp3(v, OP_Destroy, iTable, r1, iDb);
  sqlite3MayAbort(pParse);
#ifndef SQLITE_OMIT_AUTOVACUUM
  /* OP_Destroy stores an in integer r1. If this integer
  ** is non-zero, then it is the root page number of a table moved to
  ** location iTable. The following code modifies the sqlite_master table to
  ** reflect this.
  **
  ** The "#NNN" in the SQL is a special constant that means whatever value
  ** is in register NNN.  See grammar rules associated with the TK_REGISTER
  ** token for additional information.
  */
  sqlite3NestedParse(pParse, 
     "UPDATE %Q.%s SET rootpage=%d WHERE #%d AND rootpage=#%d",
     pParse->db->aDb[iDb].zName, SCHEMA_TABLE(iDb), iTable, r1, r1);
#endif
  sqlite3ReleaseTempReg(pParse, r1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %r12d
movl %esi, %r15d
movq %rdi, %rbx
callq 0x45ece
movb 0x1f(%rbx), %cl
testb %cl, %cl
je 0x4ffa3
decb %cl
movb %cl, 0x1f(%rbx)
movzbl %cl, %ecx
movl 0x28(%rbx,%rcx,4), %r14d
jmp 0x4ffae
movl 0x58(%rbx), %r14d
incl %r14d
movl %r14d, 0x58(%rbx)
movq %rax, %rdi
movl $0x6c, %esi
movl %r15d, %edx
movl %r14d, %ecx
movl %r12d, %r8d
callq 0x45f15
movq 0x1d8(%rbx), %rax
testq %rax, %rax
cmoveq %rbx, %rax
movb $0x1, 0x24(%rax)
movq (%rbx), %rax
movq 0x20(%rax), %rax
movslq %r12d, %rcx
movq %rcx, %rdx
shlq $0x5, %rdx
movq (%rax,%rdx), %rdx
cmpl $0x1, %ecx
leaq 0x29f24(%rip), %rax     # 0x79f19
leaq 0x29f30(%rip), %rcx     # 0x79f2c
cmoveq %rax, %rcx
movl %r14d, (%rsp)
leaq 0x2b878(%rip), %rsi     # 0x7b883
movq %rbx, %rdi
movl %r15d, %r8d
movl %r14d, %r9d
xorl %eax, %eax
callq 0x468e4
testl %r14d, %r14d
je 0x50054
movzbl 0x1f(%rbx), %eax
cmpq $0x7, %rax
ja 0x50054
xorl %ecx, %ecx
cmpl %r14d, 0x84(%rbx,%rcx)
je 0x5004f
addq $0x18, %rcx
cmpl $0xf0, %ecx
jne 0x5002c
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rbx)
movl %r14d, 0x28(%rbx,%rax,4)
jmp 0x50054
movb $0x1, 0x7c(%rbx,%rcx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: keyInfoFromExprList
static KeyInfo *keyInfoFromExprList(Parse *pParse, ExprList *pList){
  int nExpr;
  KeyInfo *pInfo;
  struct ExprList_item *pItem;
  sqlite3 *db = pParse->db;
  int i;

  nExpr = pList->nExpr;
  pInfo = sqlite3KeyInfoAlloc(db, nExpr);
  if( pInfo ){
    for(i=0, pItem=pList->a; i<nExpr; i++, pItem++){
      CollSeq *pColl;
      pColl = sqlite3ExprCollSeq(pParse, pItem->pExpr);
      if( !pColl ) pColl = db->pDfltColl;
      pInfo->aColl[i] = pColl;
      pInfo->aSortOrder[i] = pItem->sortOrder;
    }
  }
  return pInfo;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r13
movq %rdi, %rbx
movq (%rdi), %rdi
movslq (%rsi), %r15
testq %r15, %r15
setle %r14b
movq %rdi, -0x30(%rbp)
movl %r15d, %esi
callq 0x366de
movq %rax, %r12
testq %rax, %rax
sete %al
orb %r14b, %al
jne 0x51c98
movq 0x8(%r13), %r13
xorl %r14d, %r14d
movq (%r13), %rsi
movq %rbx, %rdi
callq 0x4b225
testq %rax, %rax
jne 0x51c7a
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x18(%r12,%r14,8)
movb 0x18(%r13), %al
movq 0x10(%r12), %rcx
movb %al, (%rcx,%r14)
incq %r14
addq $0x20, %r13
cmpq %r14, %r15
jne 0x51c61
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_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprAnalyzeAggList
SQLITE_PRIVATE void sqlite3ExprAnalyzeAggList(NameContext *pNC, ExprList *pList){
  struct ExprList_item *pItem;
  int i;
  if( pList ){
    for(pItem=pList->a, i=0; i<pList->nExpr; i++, pItem++){
      sqlite3ExprAnalyzeAggregates(pNC, pItem->pExpr);
    }
  }
}

// Assembly:
testq %rsi, %rsi
je 0x55248
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
cmpl $0x0, (%rsi)
jle 0x5523a
movq %rdi, %r14
movq 0x8(%rbx), %r12
xorl %r13d, %r13d
leaq -0x50(%rbp), %r15
movq (%r12), %rsi
leaq -0x40(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0x6911(%rip), %rax      # 0x5bb24
movq %rax, -0x50(%rbp)
leaq 0x6bb0(%rip), %rax      # 0x5bdce
movq %rax, -0x48(%rbp)
movq %r14, -0x30(%rbp)
movq %r15, %rdi
callq 0x473bb
incl %r13d
addq $0x20, %r12
cmpl (%rbx), %r13d
jl 0x551fe
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprCacheClear
SQLITE_PRIVATE void sqlite3ExprCacheClear(Parse *pParse){
  int i;
  struct yColCache *p;

  for(i=0, p=pParse->aColCache; i<SQLITE_N_COLCACHE; i++, p++){
    if( p->iReg ){
      cacheEntryClear(pParse, p);
      p->iReg = 0;
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movl 0x84(%rdi,%rax), %ecx
testl %ecx, %ecx
je 0x552ec
cmpb $0x0, 0x7c(%rdi,%rax)
je 0x552e1
movzbl 0x1f(%rdi), %edx
cmpq $0x7, %rdx
ja 0x552dc
leal 0x1(%rdx), %esi
movb %sil, 0x1f(%rdi)
movl %ecx, 0x28(%rdi,%rdx,4)
movb $0x0, 0x7c(%rdi,%rax)
movl $0x0, 0x84(%rdi,%rax)
addq $0x18, %rax
cmpl $0xf0, %eax
jne 0x552b5
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprCodeMove
SQLITE_PRIVATE void sqlite3ExprCodeMove(Parse *pParse, int iFrom, int iTo, int nReg){
  int i;
  struct yColCache *p;
  assert( iFrom>=iTo+nReg || iFrom+nReg<=iTo );
  sqlite3VdbeAddOp3(pParse->pVdbe, OP_Move, iFrom, iTo, nReg-1);
  for(i=0, p=pParse->aColCache; i<SQLITE_N_COLCACHE; i++, p++){
    int x = p->iReg;
    if( x>=iFrom && x<iFrom+nReg ){
      p->iReg += iTo-iFrom;
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebx
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %r12
movq 0x10(%rdi), %rdi
leal -0x1(%rbx), %r8d
movl $0x1b, %esi
movl %r15d, %edx
movl %r14d, %ecx
callq 0x45f15
addl %r15d, %ebx
subl %r15d, %r14d
xorl %eax, %eax
movl 0x84(%r12,%rax), %ecx
cmpl %r15d, %ecx
setge %dl
cmpl %ebx, %ecx
setl %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x55357
addl %r14d, %ecx
movl %ecx, 0x84(%r12,%rax)
addq $0x18, %rax
cmpl $0xf0, %eax
jne 0x5532f
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: finalizeAggFunctions
static void finalizeAggFunctions(Parse *pParse, AggInfo *pAggInfo){
  Vdbe *v = pParse->pVdbe;
  int i;
  struct AggInfo_func *pF;
  for(i=0, pF=pAggInfo->aFunc; i<pAggInfo->nFunc; i++, pF++){
    ExprList *pList = pF->pExpr->x.pList;
    assert( !ExprHasProperty(pF->pExpr, EP_xIsSelect) );
    sqlite3VdbeAddOp4(v, OP_AggFinal, pF->iMem, pList ? pList->nExpr : 0, 0,
                      (void*)pF->pFunc, P4_FUNCDEF);
  }
}

// Assembly:
cmpl $0x0, 0x30(%rsi)
jle 0x556a5
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x28(%rsi), %r12
xorl %r13d, %r13d
movq (%r12), %rax
movq 0x20(%rax), %rax
movl $0x0, %ecx
testq %rax, %rax
je 0x5565e
movl (%rax), %ecx
movl 0x10(%r12), %edx
movq 0x8(%r12), %r15
movq %r14, %rdi
movl $0x81, %esi
xorl %r8d, %r8d
callq 0x45f15
movq %r14, %rdi
movl %eax, %esi
movq %r15, %rdx
movl $0xfffffffb, %ecx       # imm = 0xFFFFFFFB
callq 0x11a9f
incl %r13d
addq $0x18, %r12
cmpl 0x30(%rbx), %r13d
jl 0x5564a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: resetAccumulator
static void resetAccumulator(Parse *pParse, AggInfo *pAggInfo){
  Vdbe *v = pParse->pVdbe;
  int i;
  struct AggInfo_func *pFunc;
  if( pAggInfo->nFunc+pAggInfo->nColumn==0 ){
    return;
  }
  for(i=0; i<pAggInfo->nColumn; i++){
    sqlite3VdbeAddOp2(v, OP_Null, 0, pAggInfo->aCol[i].iMem);
  }
  for(pFunc=pAggInfo->aFunc, i=0; i<pAggInfo->nFunc; i++, pFunc++){
    sqlite3VdbeAddOp2(v, OP_Null, 0, pFunc->iMem);
    if( pFunc->iDistinct>=0 ){
      Expr *pE = pFunc->pExpr;
      assert( !ExprHasProperty(pE, EP_xIsSelect) );
      if( pE->x.pList==0 || pE->x.pList->nExpr!=1 ){
        sqlite3ErrorMsg(pParse, "DISTINCT aggregates must have exactly one "
           "argument");
        pFunc->iDistinct = -1;
      }else{
        KeyInfo *pKeyInfo = keyInfoFromExprList(pParse, pE->x.pList);
        sqlite3VdbeAddOp4(v, OP_OpenEphemeral, pFunc->iDistinct, 0, 0,
                          (char*)pKeyInfo, P4_KEYINFO_HANDOFF);
      }
    }
  }
}

// Assembly:
movl 0x20(%rsi), %ecx
movl 0x30(%rsi), %eax
movl %eax, %edx
addl %ecx, %edx
je 0x557c1
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r13
movq 0x10(%rdi), %r15
testl %ecx, %ecx
jle 0x55708
movl $0x14, %r14d
xorl %r12d, %r12d
movq 0x18(%rbx), %rax
movl (%rax,%r14), %ecx
movq %r15, %rdi
movl $0x18, %esi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x45f15
incq %r12
movslq 0x20(%rbx), %rax
addq $0x20, %r14
cmpq %rax, %r12
jl 0x556db
movl 0x30(%rbx), %eax
testl %eax, %eax
jle 0x557b3
movq 0x28(%rbx), %r12
addq $0x14, %r12
xorl %r14d, %r14d
movq %r13, -0x30(%rbp)
movl -0x4(%r12), %ecx
movq %r15, %rdi
movl $0x18, %esi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x45f15
cmpl $0x0, (%r12)
js 0x557a2
movq -0x14(%r12), %rax
movq 0x20(%rax), %rsi
testq %rsi, %rsi
je 0x55789
cmpl $0x1, (%rsi)
jne 0x55789
movq %r13, %rdi
callq 0x51c1f
movq %rax, %r13
movl (%r12), %edx
movq %r15, %rdi
movl $0x33, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45f15
movq %r15, %rdi
movl %eax, %esi
movq %r13, %rdx
movq -0x30(%rbp), %r13
movl $0xfffffff0, %ecx       # imm = 0xFFFFFFF0
callq 0x11a9f
jmp 0x557a2
movq %r13, %rdi
leaq 0x264a8(%rip), %rsi     # 0x7bc3b
xorl %eax, %eax
callq 0x11842
movl $0xffffffff, (%r12)     # imm = 0xFFFFFFFF
incl %r14d
addq $0x18, %r12
cmpl 0x30(%rbx), %r14d
jl 0x5571f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq