LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 0x46235
movb (%rdi), %al
movzbl %al, %ecx
cmpl $0x5a, %ecx
jg 0x461e5
cmpl $0x22, %ecx
je 0x461f1
cmpl $0x27, %ecx
je 0x461f1
jmp 0x46235
cmpl $0x60, %ecx
je 0x461f1
cmpl $0x5b, %ecx
jne 0x46235
movb $0x5d, %al
movb 0x1(%rdi), %sil
testb %sil, %sil
je 0x4622d
movl $0x1, %edx
xorl %ecx, %ecx
cmpb %al, %sil
jne 0x46214
movslq %edx, %rdx
cmpb %al, 0x1(%rdi,%rdx)
jne 0x4622f
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 0x46201
jmp 0x4622f
xorl %ecx, %ecx
movl %ecx, %eax
movb $0x0, (%rdi,%rax)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x46276
cmpl $0x0, 0x8(%rdx)
je 0x46276
cmpb $0x0, 0x99(%rdi)
je 0x46285
leaq 0x34b65(%rip), %rsi     # 0x7adc7
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11842
incl 0x50(%rbx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x46280
movzbl 0x98(%rdi), %eax
movq %r14, (%rcx)
popq %rbx
popq %r14
popq %rbp
retq
movq %rdx, (%rcx)
movq %r14, %rsi
callq 0x464ad
testl %eax, %eax
jns 0x46280
leaq 0x34b3d(%rip), %rsi     # 0x7add8
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x11842
jmp 0x4626c
// File: /workspace/github_c_makefile_star2_O3/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:
movq (%rdi), %rcx
xorl %eax, %eax
cmpb $0x0, 0x99(%rcx)
je 0x462b9
retq
cmpb $0x0, 0x1e(%rdi)
jne 0x462b8
testb $0x8, 0x2d(%rcx)
jne 0x462b8
movq %rsi, %rdx
xorl %ecx, %ecx
leaq 0x2fddf(%rip), %rax     # 0x760b0
leaq 0x34b14(%rip), %rsi     # 0x7adec
movzbl (%rdx,%rcx), %r8d
testq %r8, %r8
je 0x46300
movzbl (%r8,%rax), %r8d
movzbl (%rcx,%rsi), %r9d
movb (%r9,%rax), %r9b
cmpb %r9b, %r8b
jne 0x4630b
incq %rcx
cmpq $0x7, %rcx
jne 0x462d8
jmp 0x46316
movzbl (%rcx,%rsi), %ecx
movb (%rcx,%rax), %r9b
xorl %r8d, %r8d
movzbl %r9b, %ecx
xorl %eax, %eax
cmpl %ecx, %r8d
jne 0x462b8
pushq %rbp
movq %rsp, %rbp
leaq 0x34ad3(%rip), %rsi     # 0x7adf4
xorl %eax, %eax
callq 0x11842
movl $0x1, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x46356
movl $0xffffffff, 0x16c(%rdi) # imm = 0xFFFFFFFF
cmpl $0x0, 0x16c(%rbx)
jne 0x46388
movq %rbx, %rdi
callq 0x45ece
testq %rax, %rax
je 0x463dc
movq %rax, %rdi
movl $0xe, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45f15
incl %eax
movl %eax, 0x16c(%rbx)
testl %r14d, %r14d
js 0x463dc
movl $0x1, %eax
movl %r14d, %ecx
shll %cl, %eax
movl 0x168(%rbx), %ecx
btl %r14d, %ecx
jb 0x463dc
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 0x463dc
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x19559
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x45ece
movq %rax, %r15
cmpl $0x1, %r14d
leaq 0x33ad2(%rip), %rax     # 0x79f19
leaq 0x33ade(%rip), %r8      # 0x79f2c
cmoveq %rax, %r8
movq %rbx, %rdi
movl %r14d, %esi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x46018
movq %r15, %rdi
movl $0x31, %esi
xorl %edx, %edx
movl $0x1, %ecx
movl %r14d, %r8d
callq 0x45f15
movl $0x5, %edx
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0xfffffff2, %ecx       # imm = 0xFFFFFFF2
callq 0x11a9f
cmpl $0x0, 0x54(%rbx)
jne 0x464a2
movl $0x1, 0x54(%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: 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 0x46169
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x158b7
movl %eax, %r15d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9ca4
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: 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 -0x58(%rbp), %rax
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%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 0x46b2f
testq %rbx, %rbx
je 0x465a5
testl %eax, %eax
jne 0x465a5
cmpl $0x0, (%rbx)
jle 0x465a5
xorl %r15d, %r15d
leaq -0x58(%rbp), %r14
xorl %r12d, %r12d
movq 0x8(%rbx), %rax
movq (%rax,%r15), %rsi
movq %r14, %rdi
callq 0x46b2f
testl %eax, %eax
jne 0x465a5
incq %r12
movslq (%rbx), %rax
addq $0x20, %r15
cmpq %rax, %r12
jl 0x46582
addq $0xb0, %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: 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 0x48dde
cmpl $0x0, 0x50(%r14)
jne 0x46697
movq %r12, %rax
movq %r13, %r12
movq 0x50(%r13), %r13
testq %r13, %r13
jne 0x465f6
movq %rax, %r13
movl %ebx, 0x2c(%rax)
movq %rax, %rdi
movl $0x78, %esi
callq 0x11721
testq %rax, %rax
je 0x46694
movq %rax, %r15
leaq 0x8(%rax), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rax)
movups %xmm0, 0x68(%rax)
movups %xmm0, 0x58(%rax)
movups %xmm0, 0x48(%rax)
movups %xmm0, 0x28(%rax)
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x8(%rax)
movw $0x1, 0x44(%rax)
movq $0x0, (%rax)
movl $0xf4240, 0x38(%rax)    # imm = 0xF4240
movq (%r12), %rsi
movq %rax, %rdx
addq $0x42, %rdx
movq (%r14), %rdi
callq 0x4a0da
movswl 0x42(%r15), %esi
movq 0x8(%r15), %rdx
movq %r14, %rdi
movq %r12, %rcx
callq 0x4aeda
movw $0xffff, 0x40(%r15)     # imm = 0xFFFF
cmpb $0x0, 0x50(%r13)
je 0x46697
movq %r13, %rdi
movq %r15, %rsi
callq 0x9975
xorl %r15d, %r15d
movq %r15, %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: sqlite3NestedParse
SQLITE_PRIVATE void sqlite3NestedParse(Parse *pParse, const char *zFormat, ...){
  va_list ap;
  char *zSql;
  char *zErrMsg = 0;
  sqlite3 *db = pParse->db;
# define SAVE_SZ  (sizeof(Parse) - offsetof(Parse,nVar))
  char saveBuf[SAVE_SZ];

  if( pParse->nErr ) return;
  assert( pParse->nested<10 );  /* Nesting should only be of limited depth */
  va_start(ap, zFormat);
  zSql = sqlite3VMPrintf(db, zFormat, ap);
  va_end(ap);
  if( zSql==0 ){
    return;   /* A malloc must have failed */
  }
  pParse->nested++;
  memcpy(saveBuf, &pParse->nVar, SAVE_SZ);
  memset(&pParse->nVar, 0, SAVE_SZ);
  sqlite3RunParser(pParse, zSql, &zErrMsg);
  sqlite3DbFree(db, zErrMsg);
  sqlite3DbFree(db, zSql);
  memcpy(&pParse->nVar, saveBuf, SAVE_SZ);
  pParse->nested--;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %rdx, -0xf0(%rbp)
movq %rcx, -0xe8(%rbp)
movq %r8, -0xe0(%rbp)
movq %r9, -0xd8(%rbp)
testb %al, %al
je 0x46947
movaps %xmm0, -0xd0(%rbp)
movaps %xmm1, -0xc0(%rbp)
movaps %xmm2, -0xb0(%rbp)
movaps %xmm3, -0xa0(%rbp)
movaps %xmm4, -0x90(%rbp)
movaps %xmm5, -0x80(%rbp)
movaps %xmm6, -0x70(%rbp)
movaps %xmm7, -0x60(%rbp)
movq $0x0, -0x30(%rbp)
cmpl $0x0, 0x50(%rdi)
jne 0x46a00
movq %rdi, %rbx
movq (%rdi), %r14
leaq -0x100(%rbp), %rax
leaq -0x50(%rbp), %rdx
movq %rax, 0x10(%rdx)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
movq %r14, %rdi
callq 0x194ed
testq %rax, %rax
je 0x46a00
movq %rax, %r15
incb 0x1e(%rbx)
leaq 0x1f8(%rbx), %r12
leaq -0x1a0(%rbp), %rdi
movl $0xa0, %edx
movq %r12, %rsi
callq 0x82f0
movl $0xa0, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x8200
leaq -0x30(%rbp), %r13
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x1383e
movq (%r13), %rsi
movq %r14, %rdi
callq 0x9ca4
movq %r14, %rdi
movq %r15, %rsi
callq 0x9ca4
movl $0xa0, %edx
movq %r12, %rdi
leaq -0x1a0(%rbp), %rsi
callq 0x82f0
decb 0x1e(%rbx)
addq $0x178, %rsp            # imm = 0x178
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: sqlite3ChangeCookie
SQLITE_PRIVATE void sqlite3ChangeCookie(Parse *pParse, int iDb){
  int r1 = sqlite3GetTempReg(pParse);
  sqlite3 *db = pParse->db;
  Vdbe *v = pParse->pVdbe;
  assert( sqlite3SchemaMutexHeld(db, iDb, 0) );
  sqlite3VdbeAddOp2(v, OP_Integer, db->aDb[iDb].pSchema->schema_cookie+1, r1);
  sqlite3VdbeAddOp3(v, OP_SetCookie, iDb, BTREE_SCHEMA_VERSION, r1);
  sqlite3ReleaseTempReg(pParse, r1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movb 0x1f(%rdi), %al
testb %al, %al
je 0x46a36
decb %al
movb %al, 0x1f(%rbx)
movzbl %al, %eax
movl 0x28(%rbx,%rax,4), %r14d
jmp 0x46a41
movl 0x58(%rbx), %r14d
incl %r14d
movl %r14d, 0x58(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %r15
movq 0x20(%rax), %rax
movslq %esi, %r12
movq %r12, %rcx
shlq $0x5, %rcx
movq 0x18(%rax,%rcx), %rax
movl (%rax), %edx
incl %edx
movq %r15, %rdi
movl $0x15, %esi
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x45f15
movq %r15, %rdi
movl $0x2e, %esi
movl %r12d, %edx
movl $0x1, %ecx
movl %r14d, %r8d
callq 0x45f15
testl %r14d, %r14d
je 0x46ac3
movzbl 0x1f(%rbx), %eax
cmpq $0x7, %rax
ja 0x46ac3
xorl %ecx, %ecx
cmpl %r14d, 0x84(%rbx,%rcx)
je 0x46abe
addq $0x18, %rcx
cmpl $0xf0, %ecx
jne 0x46a9b
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rbx)
movl %r14d, 0x28(%rbx,%rax,4)
jmp 0x46ac3
movb $0x1, 0x7c(%rbx,%rcx)
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: sqlite3VdbeAddParseSchemaOp
SQLITE_PRIVATE void sqlite3VdbeAddParseSchemaOp(Vdbe *p, int iDb, char *zWhere){
  int j;
  int addr = sqlite3VdbeAddOp3(p, OP_ParseSchema, iDb, 0, 0);
  sqlite3VdbeChangeP4(p, addr, zWhere, P4_DYNAMIC);
  for(j=0; j<p->db->nDb; j++) sqlite3VdbeUsesBtree(p, j);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %edx
movq %rdi, %rbx
xorl %r15d, %r15d
movl $0x70, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45f15
movq %rbx, %rdi
movl %eax, %esi
movq %r14, %rdx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x11a9f
movq (%rbx), %rax
movl 0x28(%rax), %eax
testl %eax, %eax
jle 0x46b24
movl 0xa0(%rbx), %ecx
btsl %r15d, %ecx
incl %r15d
cmpl %r15d, %eax
jne 0x46b12
movl %ecx, 0xa0(%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: sqlite3ResolveExprNames
SQLITE_PRIVATE int sqlite3ResolveExprNames( 
  NameContext *pNC,       /* Namespace to resolve expressions in. */
  Expr *pExpr             /* The expression to be analyzed. */
){
  u8 savedHasAgg;
  Walker w;

  if( pExpr==0 ) return 0;
#if SQLITE_MAX_EXPR_DEPTH>0
  {
    Parse *pParse = pNC->pParse;
    if( sqlite3ExprCheckHeight(pParse, pExpr->nHeight+pNC->pParse->nHeight) ){
      return 1;
    }
    pParse->nHeight += pExpr->nHeight;
  }
#endif
  savedHasAgg = pNC->ncFlags & NC_HasAgg;
  pNC->ncFlags &= ~NC_HasAgg;
  memset(&w, 0, sizeof(w));
  w.xExprCallback = resolveExprStep;
  w.xSelectCallback = resolveSelectStep;
  w.pParse = pNC->pParse;
  w.u.pNC = pNC;
  sqlite3WalkExpr(&w, pExpr);
#if SQLITE_MAX_EXPR_DEPTH>0
  pNC->pParse->nHeight -= pExpr->nHeight;
#endif
  if( pNC->nErr>0 || w.pParse->nErr>0 ){
    ExprSetProperty(pExpr, EP_Error);
  }
  if( pNC->ncFlags & NC_HasAgg ){
    ExprSetProperty(pExpr, EP_Agg);
  }else if( savedHasAgg ){
    pNC->ncFlags |= NC_HasAgg;
  }
  return ExprHasProperty(pExpr, EP_Error);
}

// Assembly:
testq %rsi, %rsi
je 0x46b75
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
movl 0x20c(%rdi), %eax
addl 0x28(%rsi), %eax
movq (%rdi), %rcx
movl 0x74(%rcx), %edx
cmpl %eax, %edx
jge 0x46b78
leaq 0x34363(%rip), %rsi     # 0x7aec7
xorl %eax, %eax
callq 0x11842
movl $0x1, %eax
jmp 0x46c04
xorl %eax, %eax
retq
movl %eax, 0x20c(%rdi)
movb 0x30(%r14), %r15b
movl %r15d, %eax
andb $-0x3, %al
movb %al, 0x30(%r14)
leaq -0x40(%rbp), %rax
movq $0x0, 0x18(%rax)
leaq 0x71(%rip), %rcx        # 0x46c0f
movq %rcx, (%rax)
leaq 0x49f(%rip), %rcx       # 0x47047
movq %rcx, 0x8(%rax)
movq %rdi, 0x10(%rax)
movq %r14, 0x20(%rax)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x473bb
movl 0x28(%rbx), %eax
movq (%r14), %rcx
subl %eax, 0x20c(%rcx)
cmpl $0x0, 0x2c(%r14)
jg 0x46bdc
movq -0x30(%rbp), %rax
cmpl $0x0, 0x50(%rax)
jle 0x46be0
orb $0x8, 0x2(%rbx)
movb 0x30(%r14), %al
testb $0x2, %al
jne 0x46bf6
testb $0x2, %r15b
je 0x46bfa
orb $0x2, %al
movb %al, 0x30(%r14)
jmp 0x46bfa
orb $0x2, 0x2(%rbx)
movzwl 0x2(%rbx), %eax
shrl $0x3, %eax
andl $0x1, %eax
addq $0x28, %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: sqlite3WalkExpr
SQLITE_PRIVATE int sqlite3WalkExpr(Walker *pWalker, Expr *pExpr){
  int rc;
  if( pExpr==0 ) return WRC_Continue;
  testcase( ExprHasProperty(pExpr, EP_TokenOnly) );
  testcase( ExprHasProperty(pExpr, EP_Reduced) );
  rc = pWalker->xExprCallback(pWalker, pExpr);
  if( rc==WRC_Continue
              && !ExprHasAnyProperty(pExpr,EP_TokenOnly) ){
    if( sqlite3WalkExpr(pWalker, pExpr->pLeft) ) return WRC_Abort;
    if( sqlite3WalkExpr(pWalker, pExpr->pRight) ) return WRC_Abort;
    if( ExprHasProperty(pExpr, EP_xIsSelect) ){
      if( sqlite3WalkSelect(pWalker, pExpr->x.pSelect) ) return WRC_Abort;
    }else{
      if( sqlite3WalkExprList(pWalker, pExpr->x.pList) ) return WRC_Abort;
    }
  }
  return rc & WRC_Abort;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rsi, %rsi
je 0x47420
movq %rsi, %r12
movq %rdi, %r15
callq *(%rdi)
movl %eax, %ebx
testl %eax, %eax
jne 0x4742e
testb $0x40, 0x3(%r12)
jne 0x4742e
movq 0x10(%r12), %rsi
movq %r15, %rdi
callq 0x473bb
movl $0x2, %r14d
testl %eax, %eax
jne 0x47434
movq 0x18(%r12), %rsi
movq %r15, %rdi
callq 0x473bb
testl %eax, %eax
jne 0x47434
testb $0x8, 0x3(%r12)
movq 0x20(%r12), %rsi
movq %r15, %rdi
jne 0x47425
callq 0x47ec9
jmp 0x4742a
xorl %r14d, %r14d
jmp 0x47434
callq 0x47f1c
testl %eax, %eax
jne 0x47434
andl $0x2, %ebx
movl %ebx, %r14d
movl %r14d, %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: sqlite3WalkExprList
SQLITE_PRIVATE int sqlite3WalkExprList(Walker *pWalker, ExprList *p){
  int i;
  struct ExprList_item *pItem;
  if( p ){
    for(i=p->nExpr, pItem=p->a; i>0; i--, pItem++){
      if( sqlite3WalkExpr(pWalker, pItem->pExpr) ) return WRC_Abort;
    }
  }
  return WRC_Continue;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
xorl %ebx, %ebx
testq %rsi, %rsi
je 0x47f11
movl (%rsi), %r15d
testl %r15d, %r15d
jle 0x47f11
movq %rdi, %r14
movq 0x8(%rsi), %r12
incl %r15d
movq (%r12), %rsi
movq %r14, %rdi
callq 0x473bb
testl %eax, %eax
jne 0x47f0c
addq $0x20, %r12
decl %r15d
cmpl $0x1, %r15d
jg 0x47eed
jmp 0x47f11
movl $0x2, %ebx
movl %ebx, %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: sqlite3WalkSelect
SQLITE_PRIVATE int sqlite3WalkSelect(Walker *pWalker, Select *p){
  int rc;
  if( p==0 || pWalker->xSelectCallback==0 ) return WRC_Continue;
  rc = WRC_Continue;
  pWalker->walkerDepth++;
  while( p ){
    if( !pWalker->bSelectDepthFirst ){
       rc = pWalker->xSelectCallback(pWalker, p);
       if( rc ) break;
    }
    if( sqlite3WalkSelectExpr(pWalker, p)
     || sqlite3WalkSelectFrom(pWalker, p)
    ){
      pWalker->walkerDepth--;
      return WRC_Abort;
    }
    if( pWalker->bSelectDepthFirst ){
      rc = pWalker->xSelectCallback(pWalker, p);
      /* Depth-first search is currently only used for
      ** selectAddSubqueryTypeInfo() and that routine always returns
      ** WRC_Continue (0).  So the following branch is never taken. */
      if( NEVER(rc) ) break;
    }
    p = p->pPrior;
  }
  pWalker->walkerDepth--;
  return rc & WRC_Abort;
}

// Assembly:
xorl %eax, %eax
testq %rsi, %rsi
je 0x4804b
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdi)
je 0x48043
movq %rsi, %r14
incl 0x18(%rbx)
cmpb $0x0, 0x1c(%rbx)
jne 0x47f5d
movq %rbx, %rdi
movq %r14, %rsi
callq *0x8(%rbx)
testl %eax, %eax
jne 0x48033
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x47ec9
testl %eax, %eax
jne 0x4803b
movq 0x30(%r14), %rsi
movq %rbx, %rdi
callq 0x473bb
testl %eax, %eax
jne 0x4803b
movq 0x38(%r14), %rsi
movq %rbx, %rdi
callq 0x47ec9
testl %eax, %eax
jne 0x4803b
movq 0x40(%r14), %rsi
movq %rbx, %rdi
callq 0x473bb
testl %eax, %eax
jne 0x4803b
movq 0x48(%r14), %rsi
movq %rbx, %rdi
callq 0x47ec9
testl %eax, %eax
jne 0x4803b
movq 0x68(%r14), %rsi
movq %rbx, %rdi
callq 0x473bb
testl %eax, %eax
jne 0x4803b
movq 0x70(%r14), %rsi
movq %rbx, %rdi
callq 0x473bb
testl %eax, %eax
jne 0x4803b
movq 0x28(%r14), %r15
testq %r15, %r15
je 0x48011
movzbl (%r15), %r12d
testl %r12d, %r12d
je 0x48011
addq $0x30, %r15
incl %r12d
movq (%r15), %rsi
movq %rbx, %rdi
callq 0x47f1c
testl %eax, %eax
jne 0x4803b
addq $0x68, %r15
decl %r12d
cmpl $0x1, %r12d
jg 0x47ff5
cmpb $0x0, 0x1c(%rbx)
je 0x48024
movq %rbx, %rdi
movq %r14, %rsi
callq *0x8(%rbx)
testl %eax, %eax
jne 0x48033
movq 0x50(%r14), %r14
testq %r14, %r14
jne 0x47f46
xorl %eax, %eax
decl 0x18(%rbx)
andl $0x2, %eax
jmp 0x48043
decl 0x18(%rbx)
movl $0x2, %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: sqlite3MatchSpanName
SQLITE_PRIVATE int sqlite3MatchSpanName(
  const char *zSpan,
  const char *zCol,
  const char *zTab,
  const char *zDb
){
  int n;
  for(n=0; ALWAYS(zSpan[n]) && zSpan[n]!='.'; n++){}
  if( zDb && (sqlite3StrNICmp(zSpan, zDb, n)!=0 || zDb[n]!=0) ){
    return 0;
  }
  zSpan += n+1;
  for(n=0; ALWAYS(zSpan[n]) && zSpan[n]!='.'; n++){}
  if( zTab && (sqlite3StrNICmp(zSpan, zTab, n)!=0 || zTab[n]!=0) ){
    return 0;
  }
  zSpan += n+1;
  if( zCol && sqlite3StrICmp(zSpan, zCol)!=0 ){
    return 0;
  }
  return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0x1(%rdi), %rax
movl $0x1, %r8d
movzbl -0x1(%rax), %r9d
testl %r9d, %r9d
je 0x48075
cmpl $0x2e, %r9d
je 0x48075
incq %r8
incq %rax
jmp 0x4805d
testq %rcx, %rcx
je 0x480d7
cmpq $0x1, %r8
je 0x480cf
xorl %r10d, %r10d
leaq 0x2e026(%rip), %r9      # 0x760b0
movl %r8d, %r11d
movzbl (%rdi,%r10), %ebx
testq %rbx, %rbx
je 0x480b8
movzbl (%rbx,%r9), %ebx
movzbl (%rcx,%r10), %r14d
movb (%r14,%r9), %r14b
cmpb %r14b, %bl
jne 0x480c3
decl %r11d
incq %r10
cmpl $0x1, %r11d
ja 0x4808d
jmp 0x480cf
movzbl (%rcx,%r10), %edi
movb (%rdi,%r9), %r14b
xorl %ebx, %ebx
movzbl %r14b, %edi
cmpl %edi, %ebx
jne 0x48156
cmpb $0x0, -0x1(%rcx,%r8)
jne 0x48156
leaq 0x2(%rax), %rcx
movl $0x1, %edi
movzbl -0x2(%rcx), %r8d
testl %r8d, %r8d
je 0x480f8
cmpl $0x2e, %r8d
je 0x480f8
incq %rcx
incq %rdi
jmp 0x480e0
testq %rdx, %rdx
je 0x4815a
cmpq $0x1, %rdi
je 0x4814f
leaq 0x2dfa6(%rip), %r8      # 0x760b0
movl %edi, %r10d
movq %rdx, %r9
movzbl (%rax), %r11d
testq %r11, %r11
je 0x4813c
movzbl (%r11,%r8), %r11d
movzbl (%r9), %ebx
movb (%rbx,%r8), %bl
cmpb %bl, %r11b
jne 0x48147
incq %rax
incq %r9
decl %r10d
cmpl $0x1, %r10d
ja 0x48110
jmp 0x4814f
movzbl (%r9), %eax
movb (%rax,%r8), %bl
xorl %r11d, %r11d
movzbl %bl, %eax
cmpl %eax, %r11d
jne 0x48156
cmpb $0x0, -0x1(%rdx,%rdi)
je 0x4815a
xorl %eax, %eax
jmp 0x481b3
testq %rsi, %rsi
je 0x481ae
movb -0x1(%rcx), %r8b
xorl %eax, %eax
testb %r8b, %r8b
je 0x48195
leaq 0x2df3f(%rip), %rdi     # 0x760b0
xorl %edx, %edx
movzbl %r8b, %r8d
movb (%r8,%rdi), %r9b
movzbl (%rsi), %r10d
cmpb (%r10,%rdi), %r9b
jne 0x48199
incq %rsi
movb (%rcx), %r8b
incq %rcx
testb %r8b, %r8b
jne 0x48173
jmp 0x4819c
xorl %edx, %edx
jmp 0x4819c
movq %r8, %rdx
leaq 0x2df0d(%rip), %rcx     # 0x760b0
movb (%rdx,%rcx), %dl
movzbl (%rsi), %esi
cmpb (%rsi,%rcx), %dl
jne 0x481b3
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3IsRowid
SQLITE_PRIVATE int sqlite3IsRowid(const char *z){
  if( sqlite3StrICmp(z, "_ROWID_")==0 ) return 1;
  if( sqlite3StrICmp(z, "ROWID")==0 ) return 1;
  if( sqlite3StrICmp(z, "OID")==0 ) return 1;
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movb (%rdi), %sil
leaq 0x32e40(%rip), %rcx     # 0x7b009
testb %sil, %sil
je 0x48299
xorl %eax, %eax
leaq 0x32e20(%rip), %r8      # 0x7affb
leaq 0x2dece(%rip), %rdx     # 0x760b0
movl %esi, %r9d
movzbl %r9b, %r9d
movb (%r9,%rdx), %r9b
movzbl (%rax,%r8), %r10d
movb (%r10,%rdx), %r10b
cmpb %r10b, %r9b
jne 0x48214
movb 0x1(%rdi,%rax), %r9b
incq %rax
testb %r9b, %r9b
jne 0x481e5
movzbl (%rax,%r8), %eax
movb (%rax,%rdx), %r10b
xorl %r9d, %r9d
movl $0x1, %eax
cmpb %r10b, %r9b
je 0x482b2
leaq 0x1(%rdi), %r10
leaq 0x32dd6(%rip), %r8      # 0x7b003
xorl %r9d, %r9d
movl %esi, %r11d
movzbl %r11b, %r11d
movb (%r11,%rdx), %bl
movzbl (%r8), %r14d
cmpb (%r14,%rdx), %bl
jne 0x48255
incq %r8
movb (%r10), %r11b
incq %r10
testb %r11b, %r11b
jne 0x48233
jmp 0x48258
movq %r11, %r9
movb (%r9,%rdx), %r9b
movzbl (%r8), %r8d
cmpb (%r8,%rdx), %r9b
je 0x482b2
testb %sil, %sil
je 0x48299
incq %rdi
leaq 0x32d94(%rip), %rcx     # 0x7b009
xorl %eax, %eax
movzbl %sil, %esi
movb (%rsi,%rdx), %r8b
movzbl (%rcx), %r9d
cmpb (%r9,%rdx), %r8b
jne 0x482b7
incq %rcx
movb (%rdi), %sil
incq %rdi
testb %sil, %sil
jne 0x48277
jmp 0x4829b
xorl %eax, %eax
leaq 0x2de0e(%rip), %rdx     # 0x760b0
movb (%rax,%rdx), %sil
movzbl (%rcx), %ecx
xorl %eax, %eax
cmpb (%rcx,%rdx), %sil
sete %al
popq %rbx
popq %r14
popq %rbp
retq
movq %rsi, %rax
jmp 0x4829b
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprAddCollateString
SQLITE_PRIVATE Expr *sqlite3ExprAddCollateString(Parse *pParse, Expr *pExpr, const char *zC){
  Token s;
  assert( zC!=0 );
  s.z = zC;
  s.n = sqlite3Strlen30(s.z);
  return sqlite3ExprAddCollateToken(pParse, pExpr, &s);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdx, -0x10(%rbp)
testq %rdx, %rdx
je 0x48478
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
incl %eax
cmpb $0x0, (%rdx)
leaq 0x1(%rdx), %rdx
jne 0x48466
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
jmp 0x4847a
xorl %eax, %eax
leaq -0x10(%rbp), %rdx
movl %eax, 0x8(%rdx)
callq 0x40a7d
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: dupedExprSize
static int dupedExprSize(Expr *p, int flags){
  int nByte = 0;
  if( p ){
    nByte = dupedExprNodeSize(p, flags);
    if( flags&EXPRDUP_REDUCE ){
      nByte += dupedExprSize(p->pLeft, flags) + dupedExprSize(p->pRight, flags);
    }
  }
  return nByte;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %r15
xorl %ebx, %ebx
xorl %r13d, %r13d
testq %r15, %r15
je 0x48730
movq %r15, %rdi
movl %r14d, %esi
callq 0x489cb
movl %eax, %r12d
testb $0x1, %r14b
je 0x4872d
movq 0x10(%r15), %rdi
movl %r14d, %esi
callq 0x486e0
movq 0x18(%r15), %r15
addl %r13d, %r12d
addl %eax, %r12d
movl %r12d, %r13d
jmp 0x486f9
movl %r12d, %ebx
addl %r13d, %ebx
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_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3SelectDup
SQLITE_PRIVATE Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){
  Select *pNew, *pPrior;
  if( p==0 ) return 0;
  pNew = sqlite3DbMallocRaw(db, sizeof(*p) );
  if( pNew==0 ) return 0;
  pNew->pEList = sqlite3ExprListDup(db, p->pEList, flags);
  pNew->pSrc = sqlite3SrcListDup(db, p->pSrc, flags);
  pNew->pWhere = sqlite3ExprDup(db, p->pWhere, flags);
  pNew->pGroupBy = sqlite3ExprListDup(db, p->pGroupBy, flags);
  pNew->pHaving = sqlite3ExprDup(db, p->pHaving, flags);
  pNew->pOrderBy = sqlite3ExprListDup(db, p->pOrderBy, flags);
  pNew->op = p->op;
  pNew->pPrior = pPrior = sqlite3SelectDup(db, p->pPrior, flags);
  if( pPrior ) pPrior->pNext = pNew;
  pNew->pNext = 0;
  pNew->pLimit = sqlite3ExprDup(db, p->pLimit, flags);
  pNew->pOffset = sqlite3ExprDup(db, p->pOffset, flags);
  pNew->iLimit = 0;
  pNew->iOffset = 0;
  pNew->selFlags = p->selFlags & ~SF_UsesEphemeral;
  pNew->pRightmost = 0;
  pNew->addrOpenEphm[0] = -1;
  pNew->addrOpenEphm[1] = -1;
  pNew->addrOpenEphm[2] = -1;
  return pNew;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x48867
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %r12
movl $0x78, %esi
callq 0x11721
testq %rax, %rax
je 0x48867
movq %rax, %rbx
movq (%r14), %rsi
movq %r12, %rdi
movl %r15d, %edx
callq 0x4887b
movq %rax, (%rbx)
movq 0x28(%r14), %rsi
movq %r12, %rdi
movl %r15d, %edx
callq 0x48a30
movq %rax, 0x28(%rbx)
movq 0x30(%r14), %rsi
movq %r12, %rdi
movl %r15d, %edx
xorl %ecx, %ecx
callq 0x4848c
movq %rax, 0x30(%rbx)
movq 0x38(%r14), %rsi
movq %r12, %rdi
movl %r15d, %edx
callq 0x4887b
movq %rax, 0x38(%rbx)
movq 0x40(%r14), %rsi
movq %r12, %rdi
movl %r15d, %edx
xorl %ecx, %ecx
callq 0x4848c
movq %rax, 0x40(%rbx)
movq 0x48(%r14), %rsi
movq %r12, %rdi
movl %r15d, %edx
callq 0x4887b
movq %rax, 0x48(%rbx)
movb 0x8(%r14), %al
movb %al, 0x8(%rbx)
movq 0x50(%r14), %rsi
movq %r12, %rdi
movl %r15d, %edx
callq 0x48744
movq %rax, 0x50(%rbx)
testq %rax, %rax
je 0x48811
movq %rbx, 0x58(%rax)
xorl %r13d, %r13d
movq %r13, 0x58(%rbx)
movq 0x68(%r14), %rsi
movq %r12, %rdi
movl %r15d, %edx
xorl %ecx, %ecx
callq 0x4848c
movq %rax, 0x68(%rbx)
movq 0x70(%r14), %rsi
movq %r12, %rdi
movl %r15d, %edx
xorl %ecx, %ecx
callq 0x4848c
movq %rax, 0x70(%rbx)
movq %r13, 0xc(%rbx)
movzwl 0xa(%r14), %eax
andl $-0x9, %eax
movw %ax, 0xa(%rbx)
movq %r13, 0x60(%rbx)
movq $-0x1, 0x14(%rbx)
movl $0xffffffff, 0x1c(%rbx) # imm = 0xFFFFFFFF
jmp 0x48869
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: sqlite3ExprListDup
SQLITE_PRIVATE ExprList *sqlite3ExprListDup(sqlite3 *db, ExprList *p, int flags){
  ExprList *pNew;
  struct ExprList_item *pItem, *pOldItem;
  int i;
  if( p==0 ) return 0;
  pNew = sqlite3DbMallocRaw(db, sizeof(*pNew) );
  if( pNew==0 ) return 0;
  pNew->iECursor = 0;
  pNew->nExpr = i = p->nExpr;
  if( (flags & EXPRDUP_REDUCE)==0 ) for(i=1; i<p->nExpr; i+=i){}
  pNew->a = pItem = sqlite3DbMallocRaw(db,  i*sizeof(p->a[0]) );
  if( pItem==0 ){
    sqlite3DbFree(db, pNew);
    return 0;
  } 
  pOldItem = p->a;
  for(i=0; i<p->nExpr; i++, pItem++, pOldItem++){
    Expr *pOldExpr = pOldItem->pExpr;
    pItem->pExpr = sqlite3ExprDup(db, pOldExpr, flags);
    pItem->zName = sqlite3DbStrDup(db, pOldItem->zName);
    pItem->zSpan = sqlite3DbStrDup(db, pOldItem->zSpan);
    pItem->sortOrder = pOldItem->sortOrder;
    pItem->done = 0;
    pItem->bSpanIsTab = pOldItem->bSpanIsTab;
    pItem->iOrderByCol = pOldItem->iOrderByCol;
    pItem->iAlias = pOldItem->iAlias;
  }
  return pNew;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rsi, %rsi
je 0x489b7
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, %r14
movl $0x10, %esi
callq 0x11721
testq %rax, %rax
je 0x489b7
movq %rax, %rbx
movl $0x0, 0x4(%rax)
movl (%r12), %eax
movl %eax, (%rbx)
testb $0x1, %r15b
jne 0x488d7
movl $0x1, %ecx
movl %ecx, %esi
leal (%rsi,%rsi), %ecx
cmpl %eax, %esi
jl 0x488cc
jmp 0x488d9
movl %eax, %esi
shll $0x5, %esi
movq %r14, %rdi
callq 0x11721
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x489ac
cmpl $0x0, (%r12)
jle 0x489b9
movq %rax, %r13
movq %rbx, -0x38(%rbp)
movq 0x8(%r12), %rbx
movl %r15d, -0x2c(%rbp)
xorl %r15d, %r15d
movq %r12, -0x40(%rbp)
xorl %r12d, %r12d
movq (%rbx,%r15), %rsi
movq %r14, %rdi
movl -0x2c(%rbp), %edx
xorl %ecx, %ecx
callq 0x4848c
movq %rax, (%r13,%r15)
movq 0x8(%rbx,%r15), %rsi
movq %r14, %rdi
callq 0x101fc
movq %rax, 0x8(%r13,%r15)
movq 0x10(%rbx,%r15), %rsi
movq %r14, %rdi
callq 0x101fc
movq %rax, 0x10(%r13,%r15)
movb 0x18(%rbx,%r15), %al
movb %al, 0x18(%r13,%r15)
movb 0x19(%r13,%r15), %al
movl %eax, %ecx
andb $-0x2, %cl
movb %cl, 0x19(%r13,%r15)
movb 0x19(%rbx,%r15), %cl
andb $0x2, %cl
andb $-0x4, %al
orb %cl, %al
movb %al, 0x19(%r13,%r15)
movzwl 0x1a(%rbx,%r15), %eax
movw %ax, 0x1a(%r13,%r15)
movzwl 0x1c(%rbx,%r15), %eax
movw %ax, 0x1c(%r13,%r15)
incl %r12d
addq $0x20, %r15
movq -0x40(%rbp), %rax
cmpl (%rax), %r12d
jl 0x48916
movq -0x38(%rbp), %rbx
jmp 0x489b9
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9ca4
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %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: dupedExprNodeSize
static int dupedExprNodeSize(Expr *p, int flags){
  int nByte = dupedExprStructSize(p, flags) & 0xfff;
  if( !ExprHasProperty(p, EP_IntValue) && p->u.zToken ){
    nByte += sqlite3Strlen30(p->u.zToken)+1;
  }
  return ROUND8(nByte);
}

// Assembly:
movl $0x48, %eax
testb $0x1, %sil
je 0x489fb
movl $0x2c, %eax
cmpq $0x0, 0x10(%rdi)
jne 0x489fb
cmpq $0x0, 0x18(%rdi)
jne 0x489fb
cmpq $0x0, 0x20(%rdi)
movl $0x10, %ecx
movl $0x2c, %eax
cmovel %ecx, %eax
testb $0x4, 0x3(%rdi)
jne 0x48a29
movq 0x8(%rdi), %rdx
testq %rdx, %rdx
je 0x48a29
pushq %rbp
movq %rsp, %rbp
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
incl %ecx
cmpb $0x0, (%rdx)
leaq 0x1(%rdx), %rdx
jne 0x48a13
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
addl %ecx, %eax
incl %eax
popq %rbp
addl $0x7, %eax
andl $-0x8, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3IdListDup
SQLITE_PRIVATE IdList *sqlite3IdListDup(sqlite3 *db, IdList *p){
  IdList *pNew;
  int i;
  if( p==0 ) return 0;
  pNew = sqlite3DbMallocRaw(db, sizeof(*pNew) );
  if( pNew==0 ) return 0;
  pNew->nId = p->nId;
  pNew->a = sqlite3DbMallocRaw(db, p->nId*sizeof(p->a[0]) );
  if( pNew->a==0 ){
    sqlite3DbFree(db, pNew);
    return 0;
  }
  /* Note that because the size of the allocation for p->a[] is not
  ** necessarily a power of two, sqlite3IdListAppend() may not be called
  ** on the duplicate created by this function. */
  for(i=0; i<p->nId; i++){
    struct IdList_item *pNewItem = &pNew->a[i];
    struct IdList_item *pOldItem = &p->a[i];
    pNewItem->zName = sqlite3DbStrDup(db, pOldItem->zName);
    pNewItem->idx = pOldItem->idx;
  }
  return pNew;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rsi, %rsi
je 0x48c95
movq %rsi, %r15
movq %rdi, %r14
movl $0x10, %esi
callq 0x11721
testq %rax, %rax
je 0x48c95
movq %rax, %rbx
movl 0x8(%r15), %esi
movl %esi, 0x8(%rax)
shll $0x4, %esi
movq %r14, %rdi
callq 0x11721
movq %rax, (%rbx)
testq %rax, %rax
je 0x48c8a
cmpl $0x0, 0x8(%r15)
jle 0x48c97
movq %r15, -0x40(%rbp)
movl $0x8, %r12d
xorl %r13d, %r13d
movq %r14, -0x30(%rbp)
movq %rbx, -0x38(%rbp)
movq -0x40(%rbp), %r15
movq (%rbx), %r14
movq (%r15), %rbx
movq -0x8(%rbx,%r12), %rsi
movq -0x30(%rbp), %rdi
callq 0x101fc
movq %rax, -0x8(%r14,%r12)
movl (%rbx,%r12), %eax
movq -0x38(%rbp), %rbx
movl %eax, (%r14,%r12)
incq %r13
movslq 0x8(%r15), %rax
addq $0x10, %r12
cmpq %rax, %r13
jl 0x48c53
jmp 0x48c97
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9ca4
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %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: sqlite3AuthReadCol
SQLITE_PRIVATE int sqlite3AuthReadCol(
  Parse *pParse,                  /* The parser context */
  const char *zTab,               /* Table name */
  const char *zCol,               /* Column name */
  int iDb                         /* Index of containing database. */
){
  sqlite3 *db = pParse->db;       /* Database handle */
  char *zDb = db->aDb[iDb].zName; /* Name of attached database */
  int rc;                         /* Auth callback return code */

  rc = db->xAuth(db->pAuthArg, SQLITE_READ, zTab,zCol,zDb,pParse->zAuthContext);
  if( rc==SQLITE_DENY ){
    if( db->nDb>2 || iDb!=0 ){
      sqlite3ErrorMsg(pParse, "access to %s.%s.%s is prohibited",zDb,zTab,zCol);
    }else{
      sqlite3ErrorMsg(pParse, "access to %s.%s is prohibited", zTab, zCol);
    }
    pParse->rc = SQLITE_AUTH;
  }else if( rc!=SQLITE_IGNORE && rc!=SQLITE_OK ){
    sqliteAuthBadReturnCode(pParse);
  }
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r15d
movq %rdx, %rcx
movq %rsi, %rdx
movq %rdi, %rbx
movq (%rdi), %r12
movslq %r15d, %rax
shlq $0x5, %rax
movq 0x20(%r12), %rsi
movq 0x188(%r12), %rdi
movq (%rsi,%rax), %r13
movq 0x248(%rbx), %r9
movl $0x14, %esi
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq %r13, %r8
callq *0x180(%r12)
movl %eax, %r14d
cmpl $0x1, %eax
jne 0x48d43
testl %r15d, %r15d
jne 0x48d64
cmpl $0x3, 0x28(%r12)
jge 0x48d64
leaq 0x322ff(%rip), %rsi     # 0x7b02e
movq %rbx, %rdi
movq -0x30(%rbp), %rdx
movq -0x38(%rbp), %rcx
xorl %eax, %eax
callq 0x11842
jmp 0x48d80
testl $0xfffffffd, %r14d      # imm = 0xFFFFFFFD
je 0x48d88
leaq 0x31fda(%rip), %rsi     # 0x7ad2d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11842
movl $0x1, %eax
jmp 0x48d85
leaq 0x322a2(%rip), %rsi     # 0x7b00d
movq %rbx, %rdi
movq %r13, %rdx
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %r8
xorl %eax, %eax
callq 0x11842
movl $0x17, %eax
movl %eax, 0x18(%rbx)
movl %r14d, %eax
addq $0x18, %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: exprSrcCount
static int exprSrcCount(Walker *pWalker, Expr *pExpr){
  /* The NEVER() on the second term is because sqlite3FunctionUsesThisSrc()
  ** is always called before sqlite3ExprAnalyzeAggregates() and so the
  ** TK_COLUMNs have not yet been converted into TK_AGG_COLUMN.  If
  ** sqlite3FunctionUsesThisSrc() is used differently in the future, the
  ** NEVER() will need to be removed. */
  if( pExpr->op==TK_COLUMN || NEVER(pExpr->op==TK_AGG_COLUMN) ){
    int i;
    struct SrcCount *p = pWalker->u.pSrcCount;
    SrcList *pSrc = p->pSrc;
    for(i=0; i<pSrc->nSrc; i++){
      if( pExpr->iTable==pSrc->a[i].iCursor ) break;
    }
    if( i<pSrc->nSrc ){
      p->nThis++;
    }else{
      p->nOther++;
    }
  }
  return WRC_Continue;
}

// Assembly:
movzbl (%rsi), %eax
orl $0x2, %eax
cmpl $0x9a, %eax
jne 0x48ddb
pushq %rbp
movq %rsp, %rbp
movq 0x20(%rdi), %rax
movq (%rax), %rcx
movzbl (%rcx), %edi
testq %rdi, %rdi
je 0x48dd2
movl 0x2c(%rsi), %edx
imulq $0x68, %rdi, %rsi
xorl %edi, %edi
cmpl 0x44(%rcx,%rdi), %edx
je 0x48dd7
addq $0x68, %rdi
cmpq %rdi, %rsi
jne 0x48dc3
incl 0xc(%rax)
jmp 0x48dda
incl 0x8(%rax)
popq %rbp
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3SelectPrep
SQLITE_PRIVATE void sqlite3SelectPrep(
  Parse *pParse,         /* The parser context */
  Select *p,             /* The SELECT statement being coded. */
  NameContext *pOuterNC  /* Name context for container */
){
  sqlite3 *db;
  if( NEVER(p==0) ) return;
  db = pParse->db;
  if( db->mallocFailed ) return;
  if( p->selFlags & SF_HasTypeInfo ) return;
  sqlite3SelectExpand(pParse, p);
  if( pParse->nErr || db->mallocFailed ) return;
  sqlite3ResolveSelectNames(pParse, p, pOuterNC);
  if( pParse->nErr || db->mallocFailed ) return;
  sqlite3SelectAddTypeInfo(pParse, p);
}

// Assembly:
testq %rsi, %rsi
je 0x48eef
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movq (%rdi), %r12
cmpb $0x0, 0x50(%r12)
jne 0x48ee1
movq %rsi, %rbx
testb $0x20, 0xa(%rsi)
jne 0x48ee1
movq %rdx, %r15
xorps %xmm0, %xmm0
movups %xmm0, -0x48(%rbp)
movups %xmm0, -0x38(%rbp)
leaq 0x5c1(%rip), %r13       # 0x493ed
movq %r13, -0x50(%rbp)
movq %r14, -0x40(%rbp)
cmpb $0x0, 0x25(%r14)
je 0x48e52
leaq 0x5b3(%rip), %rax       # 0x493f5
leaq -0x50(%rbp), %rdi
movq %rax, 0x8(%rdi)
movq %rbx, %rsi
callq 0x47f1c
leaq 0x6ed(%rip), %rax       # 0x49546
leaq -0x50(%rbp), %rdi
movq %rax, 0x8(%rdi)
movq %rbx, %rsi
callq 0x47f1c
cmpl $0x0, 0x50(%r14)
jne 0x48ee1
cmpb $0x0, 0x50(%r12)
jne 0x48ee1
leaq -0x50(%rbp), %rdi
movq $0x0, 0x18(%rdi)
leaq -0x227c(%rip), %rax     # 0x46c0f
movq %rax, (%rdi)
leaq -0x1e4e(%rip), %rax     # 0x47047
movq %rax, 0x8(%rdi)
movq %r14, 0x10(%rdi)
movq %r15, 0x20(%rdi)
movq %rbx, %rsi
callq 0x47f1c
cmpl $0x0, 0x50(%r14)
jne 0x48ee1
cmpb $0x0, 0x50(%r12)
jne 0x48ee1
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rdi
movups %xmm0, 0x18(%rdi)
leaq 0x1f94(%rip), %rax      # 0x4ae5e
movq %rax, 0x8(%rdi)
movq %r13, (%rdi)
movq %r14, 0x10(%rdi)
movb $0x1, 0x1c(%rdi)
movq %rbx, %rsi
callq 0x47f1c
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: convertCompoundSelectToSubquery
static int convertCompoundSelectToSubquery(Walker *pWalker, Select *p){
  int i;
  Select *pNew;
  Select *pX;
  sqlite3 *db;
  struct ExprList_item *a;
  SrcList *pNewSrc;
  Parse *pParse;
  Token dummy;

  if( p->pPrior==0 ) return WRC_Continue;
  if( p->pOrderBy==0 ) return WRC_Continue;
  for(pX=p; pX && (pX->op==TK_ALL || pX->op==TK_SELECT); pX=pX->pPrior){}
  if( pX==0 ) return WRC_Continue;
  a = p->pOrderBy->a;
  for(i=p->pOrderBy->nExpr-1; i>=0; i--){
    if( a[i].pExpr->flags & EP_Collate ) break;
  }
  if( i<0 ) return WRC_Continue;

  /* If we reach this point, that means the transformation is required. */

  pParse = pWalker->pParse;
  db = pParse->db;
  pNew = sqlite3DbMallocZero(db, sizeof(*pNew) );
  if( pNew==0 ) return WRC_Abort;
  memset(&dummy, 0, sizeof(dummy));
  pNewSrc = sqlite3SrcListAppendFromTerm(pParse,0,0,0,&dummy,pNew,0,0);
  if( pNewSrc==0 ) return WRC_Abort;
  *pNew = *p;
  p->pSrc = pNewSrc;
  p->pEList = sqlite3ExprListAppend(pParse, 0, sqlite3Expr(db, TK_ALL, 0));
  p->op = TK_SELECT;
  p->pWhere = 0;
  pNew->pGroupBy = 0;
  pNew->pHaving = 0;
  pNew->pOrderBy = 0;
  p->pPrior = 0;
  pNew->pLimit = 0;
  pNew->pOffset = 0;
  return WRC_Continue;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
xorl %r14d, %r14d
cmpq $0x0, 0x50(%rsi)
je 0x49436
movq %rsi, %rbx
movq 0x48(%rsi), %rax
testq %rax, %rax
je 0x49436
movq %rbx, %rcx
movzbl 0x8(%rcx), %edx
cmpl $0x74, %edx
je 0x4942d
cmpl $0x71, %edx
jne 0x49448
movq 0x50(%rcx), %rcx
testq %rcx, %rcx
jne 0x4941f
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rax), %rcx
movl (%rax), %edx
leal 0x1(%rdx), %eax
shlq $0x5, %rdx
addq %rdx, %rcx
addq $-0x20, %rcx
decl %eax
testl %eax, %eax
jle 0x49436
movq (%rcx), %rdx
addq $-0x20, %rcx
testb $0x1, 0x3(%rdx)
je 0x4945c
movq 0x10(%rdi), %r12
movq (%r12), %r13
movq %r13, %rdi
movl $0x78, %esi
callq 0x11721
movl $0x2, %r14d
testq %rax, %rax
je 0x49436
movq %rax, %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rax)
movups %xmm0, 0x50(%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq $0x0, 0x70(%rax)
leaq -0x40(%rbp), %r8
movaps %xmm0, (%r8)
movups %xmm0, (%rsp)
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rax, %r9
callq 0x3db60
testq %rax, %rax
je 0x49436
movl $0xf, %ecx
movq %r15, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rax, 0x28(%rbx)
leaq -0x50(%rbp), %rdx
xorl %r14d, %r14d
movq %r14, (%rdx)
movl $0x0, 0x8(%rdx)
movq %r13, %rdi
movl $0x71, %esi
xorl %ecx, %ecx
callq 0x4aaef
movq (%r12), %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x3d962
movq %rax, (%rbx)
movb $0x74, 0x8(%rbx)
movq %r14, 0x30(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%r15)
movq %r14, 0x48(%r15)
movq %r14, 0x50(%rbx)
movups %xmm0, 0x68(%r15)
xorl %r14d, %r14d
jmp 0x49436
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3SrcListAssignCursors
SQLITE_PRIVATE void sqlite3SrcListAssignCursors(Parse *pParse, SrcList *pList){
  int i;
  struct SrcList_item *pItem;
  assert(pList || pParse->db->mallocFailed );
  if( pList ){
    for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){
      if( pItem->iCursor>=0 ) break;
      pItem->iCursor = pParse->nTab++;
      if( pItem->pSelect ){
        sqlite3SrcListAssignCursors(pParse, pItem->pSelect->pSrc);
      }
    }
  }
}

// Assembly:
testq %rsi, %rsi
je 0x4a0d9
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movb (%rsi), %al
testb %al, %al
je 0x4a0d1
movq %rdi, %r14
leaq 0x44(%rbx), %r15
xorl %r12d, %r12d
cmpl $0x0, (%r15)
jns 0x4a0d1
movl 0x54(%r14), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0x54(%r14)
movl %ecx, (%r15)
movq -0x14(%r15), %rcx
testq %rcx, %rcx
je 0x4a0c2
movq 0x28(%rcx), %rsi
movq %r14, %rdi
callq 0x4a074
movb (%rbx), %al
incl %r12d
movzbl %al, %ecx
addq $0x68, %r15
cmpl %ecx, %r12d
jb 0x4a097
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq