LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3LocateTableItem
SQLITE_PRIVATE Table *sqlite3LocateTableItem(
  Parse *pParse, 
  int isView, 
  struct SrcList_item *p
){
  const char *zDb;
  assert( p->pSchema==0 || p->zDatabase==0 );
  if( p->pSchema ){
    int iDb = sqlite3SchemaToIndex(pParse->db, p->pSchema);
    zDb = pParse->db->aDb[iDb].zName;
  }else{
    zDb = p->zDatabase;
  }
  return sqlite3LocateTable(pParse, isView, p->zName, zDb);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdx), %rcx
testq %rcx, %rcx
je 0x4a4b2
movq (%rdi), %rax
movl 0x28(%rax), %r8d
movq 0x20(%rax), %rax
testl %r8d, %r8d
jle 0x4a4b8
leaq 0x18(%rax), %r10
xorl %r9d, %r9d
cmpq %rcx, (%r10)
je 0x4a4bb
incq %r9
addq $0x20, %r10
cmpq %r9, %r8
jne 0x4a49c
movl %r8d, %r9d
jmp 0x4a4bb
leaq 0x8(%rdx), %rax
jmp 0x4a4c5
xorl %r9d, %r9d
movslq %r9d, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq 0x10(%rdx), %rdx
popq %rbp
jmp 0x117b5
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3IndexedByLookup
SQLITE_PRIVATE int sqlite3IndexedByLookup(Parse *pParse, struct SrcList_item *pFrom){
  if( pFrom->pTab && pFrom->zIndex ){
    Table *pTab = pFrom->pTab;
    char *zIndex = pFrom->zIndex;
    Index *pIdx;
    for(pIdx=pTab->pIndex; 
        pIdx && sqlite3StrICmp(pIdx->zName, zIndex); 
        pIdx=pIdx->pNext
    );
    if( !pIdx ){
      sqlite3ErrorMsg(pParse, "no such index: %s", zIndex, 0);
      pParse->checkSchema = 1;
      return SQLITE_ERROR;
    }
    pFrom->pIndex = pIdx;
  }
  return SQLITE_OK;
}

// Assembly:
movq 0x20(%rsi), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x4a795
movq 0x58(%rsi), %rdx
testq %rdx, %rdx
je 0x4a795
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rcx), %rax
testq %rax, %rax
je 0x4a76b
leaq 0x2b994(%rip), %rcx     # 0x760b0
movq (%rax), %r8
movb (%r8), %r9b
testb %r9b, %r9b
je 0x4a74f
incq %r8
movq %rdx, %rdi
movzbl %r9b, %r9d
movb (%r9,%rcx), %r10b
movzbl (%rdi), %r11d
cmpb (%r11,%rcx), %r10b
jne 0x4a755
incq %rdi
movb (%r8), %r9b
incq %r8
testb %r9b, %r9b
jne 0x4a72d
jmp 0x4a752
movq %rdx, %rdi
xorl %r9d, %r9d
movb (%r9,%rcx), %r8b
movzbl (%rdi), %edi
cmpb (%rdi,%rcx), %r8b
je 0x4a789
movq 0x28(%rax), %rax
testq %rax, %rax
jne 0x4a71c
leaq 0x30a43(%rip), %rsi     # 0x7b1b5
movq %rbx, %rdi
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x11842
movb $0x1, 0x1d(%rbx)
movl $0x1, %eax
jmp 0x4a78f
movq %rax, 0x60(%rsi)
xorl %eax, %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: sqlite3IdListIndex
SQLITE_PRIVATE int sqlite3IdListIndex(IdList *pList, const char *zName){
  int i;
  if( pList==0 ) return -1;
  for(i=0; i<pList->nId; i++){
    if( sqlite3StrICmp(pList->a[i].zName, zName)==0 ) return i;
  }
  return -1;
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rdi, %rdi
je 0x4a81b
movslq 0x8(%rdi), %rcx
testq %rcx, %rcx
jle 0x4a81b
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq (%rdi), %rdi
xorl %edx, %edx
leaq 0x2b8f4(%rip), %r8      # 0x760b0
movq %rdx, %r9
shlq $0x4, %r9
movq (%rdi,%r9), %r10
movb (%r10), %r11b
testb %r11b, %r11b
je 0x4a7f7
incq %r10
movq %rsi, %r9
movzbl %r11b, %r11d
movb (%r11,%r8), %bl
movzbl (%r9), %r14d
cmpb (%r14,%r8), %bl
jne 0x4a7fd
incq %r9
movb (%r10), %r11b
incq %r10
testb %r11b, %r11b
jne 0x4a7d5
jmp 0x4a7fa
movq %rsi, %r9
xorl %r11d, %r11d
movb (%r11,%r8), %r10b
movzbl (%r9), %r9d
cmpb (%r9,%r8), %r10b
je 0x4a815
incq %rdx
cmpq %rcx, %rdx
jne 0x4a7bc
jmp 0x4a817
movl %edx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: addWhereTerm
static void addWhereTerm(
  Parse *pParse,                  /* Parsing context */
  SrcList *pSrc,                  /* List of tables in FROM clause */
  int iLeft,                      /* Index of first table to join in pSrc */
  int iColLeft,                   /* Index of column in first table */
  int iRight,                     /* Index of second table in pSrc */
  int iColRight,                  /* Index of column in second table */
  int isOuterJoin,                /* True if this is an OUTER join */
  Expr **ppWhere                  /* IN/OUT: The WHERE clause to add to */
){
  sqlite3 *db = pParse->db;
  Expr *pE1;
  Expr *pE2;
  Expr *pEq;

  assert( iLeft<iRight );
  assert( pSrc->nSrc>iRight );
  assert( pSrc->a[iLeft].pTab );
  assert( pSrc->a[iRight].pTab );

  pE1 = sqlite3CreateColumnExpr(db, pSrc, iLeft, iColLeft);
  pE2 = sqlite3CreateColumnExpr(db, pSrc, iRight, iColRight);

  pEq = sqlite3PExpr(pParse, TK_EQ, pE1, pE2, 0);
  if( pEq && isOuterJoin ){
    ExprSetProperty(pEq, EP_FromJoin);
    assert( !ExprHasAnyProperty(pEq, EP_TokenOnly|EP_Reduced) );
    ExprSetIrreducible(pEq);
    pEq->iRightJoinTable = (i16)pE2->iTable;
  }
  *ppWhere = sqlite3ExprAnd(db, *ppWhere, pEq);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, -0x2c(%rbp)
movl %r8d, %r14d
movq %rsi, %r12
movq %rdi, %r13
movq (%rdi), %rbx
movq %rbx, %rdi
callq 0x4aa49
movq %rax, %r15
movq %rbx, %rdi
movq %r12, %rsi
movl %r14d, %edx
movl -0x2c(%rbp), %ecx
callq 0x4aa49
movq %rax, %r14
movq %r13, %rdi
movl $0x4c, %esi
movq %r15, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x3a637
testq %rax, %rax
sete %cl
cmpl $0x0, 0x10(%rbp)
sete %dl
orb %cl, %dl
jne 0x4a88d
orb $0x1, 0x2(%rax)
movzwl 0x2c(%r14), %ecx
movw %cx, 0x34(%rax)
movq 0x18(%rbp), %r14
movq (%r14), %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x4a8e5
movq %rax, (%r14)
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: setJoinExpr
static void setJoinExpr(Expr *p, int iTable){
  while( p ){
    ExprSetProperty(p, EP_FromJoin);
    assert( !ExprHasAnyProperty(p, EP_TokenOnly|EP_Reduced) );
    ExprSetIrreducible(p);
    p->iRightJoinTable = (i16)iTable;
    setJoinExpr(p->pLeft, iTable);
    p = p->pRight;
  } 
}

// Assembly:
testq %rdi, %rdi
je 0x4a8e4
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
orb $0x1, 0x2(%r14)
movw %bx, 0x34(%r14)
movq 0x10(%r14), %rdi
movl %ebx, %esi
callq 0x4a8b1
movq 0x18(%r14), %r14
testq %r14, %r14
jne 0x4a8c2
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprAnd
SQLITE_PRIVATE Expr *sqlite3ExprAnd(sqlite3 *db, Expr *pLeft, Expr *pRight){
  if( pLeft==0 ){
    return pRight;
  }else if( pRight==0 ){
    return pLeft;
  }else if( exprAlwaysFalse(pLeft) || exprAlwaysFalse(pRight) ){
    sqlite3ExprDelete(db, pLeft);
    sqlite3ExprDelete(db, pRight);
    return sqlite3ExprAlloc(db, TK_INTEGER, &sqlite3IntTokens[0], 0);
  }else{
    Expr *pNew = sqlite3ExprAlloc(db, TK_AND, 0, 0);
    sqlite3ExprAttachSubtrees(db, pNew, pLeft, pRight);
    return pNew;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
testq %rsi, %rsi
je 0x4a94f
movq %rsi, %r15
testq %rbx, %rbx
je 0x4a954
movq %rdi, %r14
movq %r15, %rdi
callq 0x4ac0d
testl %eax, %eax
jne 0x4a91b
movq %rbx, %rdi
callq 0x4ac0d
testl %eax, %eax
je 0x4a963
movq %r14, %rdi
movq %r15, %rsi
callq 0x3479d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3479d
leaq 0x48ae8(%rip), %rdx     # 0x93420
movq %r14, %rdi
movl $0x81, %esi
xorl %ecx, %ecx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4aaef
movq %rbx, %r12
jmp 0x4a957
movq %r15, %r12
movq %r12, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movl $0x48, %esi
callq 0x11721
movq %rax, %r12
testq %rax, %rax
je 0x4a9b2
xorps %xmm0, %xmm0
movups %xmm0, 0x31(%r12)
movups %xmm0, 0x21(%r12)
movups %xmm0, 0x11(%r12)
movups %xmm0, 0x1(%r12)
movq $0x0, 0x40(%r12)
movb $0x45, (%r12)
movw $0xffff, 0x32(%r12)     # imm = 0xFFFF
movl $0x1, 0x28(%r12)
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x4ac41
jmp 0x4a957
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: columnIndex
static int columnIndex(Table *pTab, const char *zCol){
  int i;
  for(i=0; i<pTab->nCol; i++){
    if( sqlite3StrICmp(pTab->aCol[i].zName, zCol)==0 ) return i;
  }
  return -1;
}

// Assembly:
movswq 0x42(%rdi), %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rcx, %rcx
jle 0x4aa48
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x8(%rdi), %rdi
xorl %edx, %edx
leaq 0x2b6c8(%rip), %r8      # 0x760b0
leaq (%rdx,%rdx,2), %r9
shlq $0x4, %r9
movq (%rdi,%r9), %r10
movb (%r10), %r11b
testb %r11b, %r11b
je 0x4aa24
incq %r10
movq %rsi, %r9
movzbl %r11b, %r11d
movb (%r11,%r8), %bl
movzbl (%r9), %r14d
cmpb (%r14,%r8), %bl
jne 0x4aa2a
incq %r9
movb (%r10), %r11b
incq %r10
testb %r11b, %r11b
jne 0x4aa02
jmp 0x4aa27
movq %rsi, %r9
xorl %r11d, %r11d
movb (%r11,%r8), %r10b
movzbl (%r9), %r9d
cmpb (%r9,%r8), %r10b
je 0x4aa42
incq %rdx
cmpq %rcx, %rdx
jne 0x4a9e8
jmp 0x4aa44
movl %edx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3CreateColumnExpr
SQLITE_PRIVATE Expr *sqlite3CreateColumnExpr(sqlite3 *db, SrcList *pSrc, int iSrc, int iCol){
  Expr *p = sqlite3ExprAlloc(db, TK_COLUMN, 0, 0);
  if( p ){
    struct SrcList_item *pItem = &pSrc->a[iSrc];
    p->pTab = pItem->pTab;
    p->iTable = pItem->iCursor;
    if( p->pTab->iPKey==iCol ){
      p->iColumn = -1;
    }else{
      p->iColumn = (ynVar)iCol;
      testcase( iCol==BMS );
      testcase( iCol==BMS-1 );
      pItem->colUsed |= ((Bitmask)1)<<(iCol>=BMS ? BMS-1 : iCol);
    }
    ExprSetProperty(p, EP_Resolved);
  }
  return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %r15d
movq %rsi, %r14
movl $0x48, %esi
callq 0x11721
testq %rax, %rax
je 0x4aae4
xorps %xmm0, %xmm0
movups %xmm0, 0x31(%rax)
movups %xmm0, 0x21(%rax)
movups %xmm0, 0x11(%rax)
movups %xmm0, 0x1(%rax)
movq $0x0, 0x40(%rax)
movb $-0x68, (%rax)
movw $0xffff, 0x32(%rax)     # imm = 0xFFFF
movl $0x1, 0x28(%rax)
movslq %r15d, %rcx
imulq $0x68, %rcx, %rcx
movq 0x28(%r14,%rcx), %rdx
movq %rdx, 0x40(%rax)
movl 0x44(%r14,%rcx), %esi
movl %esi, 0x2c(%rax)
movswl 0x40(%rdx), %esi
movw $0xffff, %dx            # imm = 0xFFFF
cmpl %ebx, %esi
je 0x4aada
leaq (%r14,%rcx), %rdx
addq $0x8, %rdx
cmpl $0x3f, %ebx
movl $0x3f, %ecx
cmovll %ebx, %ecx
movl $0x1, %esi
shlq %cl, %rsi
orq %rsi, 0x50(%rdx)
movl %ebx, %edx
movw %dx, 0x30(%rax)
movw $0x4, 0x2(%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: sqlite3ExprAlloc
SQLITE_PRIVATE Expr *sqlite3ExprAlloc(
  sqlite3 *db,            /* Handle for sqlite3DbMallocZero() (may be null) */
  int op,                 /* Expression opcode */
  const Token *pToken,    /* Token argument.  Might be NULL */
  int dequote             /* True to dequote */
){
  Expr *pNew;
  int nExtra = 0;
  int iValue = 0;

  if( pToken ){
    if( op!=TK_INTEGER || pToken->z==0
          || sqlite3GetInt32(pToken->z, &iValue)==0 ){
      nExtra = pToken->n+1;
      assert( iValue>=0 );
    }
  }
  pNew = sqlite3DbMallocZero(db, sizeof(Expr)+nExtra);
  if( pNew ){
    pNew->op = (u8)op;
    pNew->iAgg = -1;
    if( pToken ){
      if( nExtra==0 ){
        pNew->flags |= EP_IntValue;
        pNew->u.iValue = iValue;
      }else{
        int c;
        pNew->u.zToken = (char*)&pNew[1];
        assert( pToken->z!=0 || pToken->n==0 );
        if( pToken->n ) memcpy(pNew->u.zToken, pToken->z, pToken->n);
        pNew->u.zToken[pToken->n] = 0;
        if( dequote && nExtra>=3 
             && ((c = pToken->z[0])=='\'' || c=='"' || c=='[' || c=='`') ){
          sqlite3Dequote(pNew->u.zToken);
          if( c=='"' ) pNew->flags |= EP_DblQuoted;
        }
      }
    }
#if SQLITE_MAX_EXPR_DEPTH>0
    pNew->nHeight = 1;
#endif  
  }
  return pNew;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, -0x30(%rbp)
movq %rdx, %rbx
movl %esi, %r12d
movq %rdi, %r15
movl $0x0, -0x2c(%rbp)
xorl %r14d, %r14d
testq %rdx, %rdx
je 0x4ab3d
cmpl $0x81, %r12d
jne 0x4ab36
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4ab36
leaq -0x2c(%rbp), %rsi
callq 0x33f5b
testl %eax, %eax
jne 0x4ab3d
movl 0x8(%rbx), %r14d
incl %r14d
leal 0x48(%r14), %r13d
movq %r15, %rdi
movl %r13d, %esi
callq 0x11721
movq %rax, %r15
testq %rax, %rax
je 0x4abfb
movslq %r13d, %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x8200
movb %r12b, (%r15)
movw $0xffff, 0x32(%r15)     # imm = 0xFFFF
testq %rbx, %rbx
je 0x4abf3
testl %r14d, %r14d
je 0x4ab9c
movq %r15, %r12
addq $0x48, %r12
movq %r12, 0x8(%r15)
movl 0x8(%rbx), %edx
testq %rdx, %rdx
je 0x4abaa
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x82f0
movl 0x8(%rbx), %eax
jmp 0x4abac
orb $0x4, 0x3(%r15)
movl -0x2c(%rbp), %eax
movl %eax, 0x8(%r15)
jmp 0x4abf3
xorl %eax, %eax
movb $0x0, (%r12,%rax)
cmpl $0x0, -0x30(%rbp)
sete %al
cmpl $0x3, %r14d
setl %cl
orb %al, %cl
jne 0x4abf3
movq (%rbx), %rax
movzbl (%rax), %ebx
leal -0x22(%rbx), %eax
cmpl $0x3e, %eax
ja 0x4abf3
movabsq $0x4200000000000021, %rcx # imm = 0x4200000000000021
btq %rax, %rcx
jae 0x4abf3
movq %r12, %rdi
callq 0x461c6
cmpb $0x22, %bl
jne 0x4abf3
orb $0x40, 0x2(%r15)
movl $0x1, 0x28(%r15)
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: exprAlwaysFalse
static int exprAlwaysFalse(Expr *p){
  int v = 0;
  if( ExprHasProperty(p, EP_FromJoin) ) return 0;
  if( !sqlite3ExprIsInteger(p, &v) ) return 0;
  return v==0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl $0x0, -0xc(%rbp)
xorl %ebx, %ebx
testb $0x1, 0x2(%rdi)
jne 0x4ac38
leaq -0xc(%rbp), %rsi
callq 0x4ac9f
testl %eax, %eax
je 0x4ac38
xorl %ebx, %ebx
cmpl $0x0, -0xc(%rbp)
sete %bl
movl %ebx, %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: sqlite3ExprAttachSubtrees
SQLITE_PRIVATE void sqlite3ExprAttachSubtrees(
  sqlite3 *db,
  Expr *pRoot,
  Expr *pLeft,
  Expr *pRight
){
  if( pRoot==0 ){
    assert( db->mallocFailed );
    sqlite3ExprDelete(db, pLeft);
    sqlite3ExprDelete(db, pRight);
  }else{
    if( pRight ){
      pRoot->pRight = pRight;
      pRoot->flags |= EP_Collate & pRight->flags;
    }
    if( pLeft ){
      pRoot->pLeft = pLeft;
      pRoot->flags |= EP_Collate & pLeft->flags;
    }
    exprSetHeight(pRoot);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rcx, %rbx
testq %rsi, %rsi
je 0x4ac85
testq %rbx, %rbx
je 0x4ac66
movq %rbx, 0x18(%rsi)
movzwl 0x2(%rbx), %eax
andl $0x100, %eax            # imm = 0x100
orw %ax, 0x2(%rsi)
testq %rdx, %rdx
je 0x4ac7c
movq %rdx, 0x10(%rsi)
movzwl 0x2(%rdx), %eax
andl $0x100, %eax            # imm = 0x100
orw %ax, 0x2(%rsi)
movq %rsi, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x4acf2
movq %rdi, %r14
movq %rdx, %rsi
callq 0x3479d
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x3479d
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprIsInteger
SQLITE_PRIVATE int sqlite3ExprIsInteger(Expr *p, int *pValue){
  int rc = 0;

  /* If an expression is an integer literal that fits in a signed 32-bit
  ** integer, then the EP_IntValue flag will have already been set */
  assert( p->op!=TK_INTEGER || (p->flags & EP_IntValue)!=0
           || sqlite3GetInt32(p->u.zToken, &rc)==0 );

  if( p->flags & EP_IntValue ){
    *pValue = p->u.iValue;
    return 1;
  }
  switch( p->op ){
    case TK_UPLUS: {
      rc = sqlite3ExprIsInteger(p->pLeft, pValue);
      break;
    }
    case TK_UMINUS: {
      int v;
      if( sqlite3ExprIsInteger(p->pLeft, &v) ){
        assert( v!=-2147483648 );
        *pValue = -v;
        rc = 1;
      }
      break;
    }
    default: break;
  }
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
testb $0x4, 0x3(%rdi)
jne 0x4acbe
movzbl (%rdi), %eax
cmpl $0x9d, %eax
jne 0x4acca
movq 0x10(%rdi), %rdi
jmp 0x4aca8
movl 0x8(%rdi), %eax
movl %eax, (%rbx)
movl $0x1, %eax
jmp 0x4aceb
cmpl $0x9c, %eax
jne 0x4ace9
movq 0x10(%rdi), %rdi
leaq -0xc(%rbp), %rsi
callq 0x4ac9f
testl %eax, %eax
je 0x4ace9
xorl %eax, %eax
subl -0xc(%rbp), %eax
jmp 0x4acc1
xorl %eax, %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: exprSetHeight
static void exprSetHeight(Expr *p){
  int nHeight = 0;
  heightOfExpr(p->pLeft, &nHeight);
  heightOfExpr(p->pRight, &nHeight);
  if( ExprHasProperty(p, EP_xIsSelect) ){
    heightOfSelect(p->x.pSelect, &nHeight);
  }else{
    heightOfExprList(p->x.pList, &nHeight);
  }
  p->nHeight = nHeight + 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x0, -0x14(%rbp)
movq 0x10(%rdi), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x4ad1e
movl 0x28(%rcx), %ecx
testl %ecx, %ecx
jle 0x4ad1e
movl %ecx, -0x14(%rbp)
movl %ecx, %eax
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x4ad32
movl 0x28(%rcx), %ecx
cmpl %eax, %ecx
cmovgl %ecx, %eax
movl %eax, -0x14(%rbp)
testb $0x8, 0x3(%rbx)
movq 0x20(%rbx), %rdi
jne 0x4ad76
testq %rdi, %rdi
je 0x4ad85
movl (%rdi), %ecx
testl %ecx, %ecx
jle 0x4ad85
movq 0x8(%rdi), %rdx
xorl %esi, %esi
movl %ecx, %edi
movq (%rdx), %r8
testq %r8, %r8
je 0x4ad65
movl 0x28(%r8), %r8d
cmpl %eax, %r8d
cmovgl %r8d, %eax
cmovgl %ecx, %edi
incq %rsi
movslq %edi, %r8
addq $0x20, %rdx
cmpq %r8, %rsi
jl 0x4ad4f
jmp 0x4ad85
leaq -0x14(%rbp), %r14
movq %r14, %rsi
callq 0x4ad93
movl (%r14), %eax
incl %eax
movl %eax, 0x28(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: heightOfSelect
static void heightOfSelect(Select *p, int *pnHeight){
  if( p ){
    heightOfExpr(p->pWhere, pnHeight);
    heightOfExpr(p->pHaving, pnHeight);
    heightOfExpr(p->pLimit, pnHeight);
    heightOfExpr(p->pOffset, pnHeight);
    heightOfExprList(p->pEList, pnHeight);
    heightOfExprList(p->pGroupBy, pnHeight);
    heightOfExprList(p->pOrderBy, pnHeight);
    heightOfSelect(p->pPrior, pnHeight);
  }
}

// Assembly:
testq %rdi, %rdi
je 0x4ae21
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x30(%r14), %rax
testq %rax, %rax
je 0x4adbb
movl 0x28(%rax), %eax
cmpl (%rbx), %eax
jle 0x4adbb
movl %eax, (%rbx)
movq 0x40(%r14), %rax
testq %rax, %rax
je 0x4adcd
movl 0x28(%rax), %eax
cmpl (%rbx), %eax
jle 0x4adcd
movl %eax, (%rbx)
movq 0x68(%r14), %rax
testq %rax, %rax
je 0x4addf
movl 0x28(%rax), %eax
cmpl (%rbx), %eax
jle 0x4addf
movl %eax, (%rbx)
movq 0x70(%r14), %rax
testq %rax, %rax
je 0x4adf1
movl 0x28(%rax), %eax
cmpl (%rbx), %eax
jle 0x4adf1
movl %eax, (%rbx)
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x4ae22
movq 0x38(%r14), %rdi
movq %rbx, %rsi
callq 0x4ae22
movq 0x48(%r14), %rdi
movq %rbx, %rsi
callq 0x4ae22
movq 0x50(%r14), %r14
testq %r14, %r14
jne 0x4ada9
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: heightOfExprList
static void heightOfExprList(ExprList *p, int *pnHeight){
  if( p ){
    int i;
    for(i=0; i<p->nExpr; i++){
      heightOfExpr(p->a[i].pExpr, pnHeight);
    }
  }
}

// Assembly:
testq %rdi, %rdi
je 0x4ae5d
movl (%rdi), %eax
testl %eax, %eax
jle 0x4ae5d
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rdi), %rcx
xorl %edx, %edx
movq (%rcx), %r8
testq %r8, %r8
je 0x4ae4d
movl 0x28(%r8), %r8d
cmpl (%rsi), %r8d
jle 0x4ae4d
movl %r8d, (%rsi)
movl (%rdi), %eax
incq %rdx
movslq %eax, %r8
addq $0x20, %rcx
cmpq %r8, %rdx
jl 0x4ae37
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: selectAddSubqueryTypeInfo
static int selectAddSubqueryTypeInfo(Walker *pWalker, Select *p){
  Parse *pParse;
  int i;
  SrcList *pTabList;
  struct SrcList_item *pFrom;

  assert( p->selFlags & SF_Resolved );
  if( (p->selFlags & SF_HasTypeInfo)==0 ){
    p->selFlags |= SF_HasTypeInfo;
    pParse = pWalker->pParse;
    pTabList = p->pSrc;
    for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
      Table *pTab = pFrom->pTab;
      if( ALWAYS(pTab!=0) && (pTab->tabFlags & TF_Ephemeral)!=0 ){
        /* A sub-query in the FROM clause of a SELECT */
        Select *pSel = pFrom->pSelect;
        assert( pSel );
        while( pSel->pPrior ) pSel = pSel->pPrior;
        selectAddColumnTypeAndCollation(pParse, pTab->nCol, pTab->aCol, pSel);
      }
    }
  }
  return WRC_Continue;
}

// Assembly:
movzwl 0xa(%rsi), %eax
testb $0x20, %al
jne 0x4aed7
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
orl $0x20, %eax
movw %ax, 0xa(%rsi)
movq 0x28(%rsi), %r14
movb (%r14), %al
testb %al, %al
je 0x4aecf
movq 0x10(%rdi), %rbx
leaq 0x8(%r14), %r15
xorl %r12d, %r12d
movq 0x20(%r15), %rdx
testq %rdx, %rdx
je 0x4aec0
testb $0x2, 0x46(%rdx)
je 0x4aec0
movq 0x28(%r15), %rax
movq %rax, %rcx
movq 0x50(%rax), %rax
testq %rax, %rax
jne 0x4aea1
movswl 0x42(%rdx), %esi
movq 0x8(%rdx), %rdx
movq %rbx, %rdi
callq 0x4aeda
movb (%r14), %al
incl %r12d
addq $0x68, %r15
movzbl %al, %ecx
cmpl %ecx, %r12d
jb 0x4ae8e
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: selectAddColumnTypeAndCollation
static void selectAddColumnTypeAndCollation(
  Parse *pParse,        /* Parsing contexts */
  int nCol,             /* Number of columns */
  Column *aCol,         /* List of columns */
  Select *pSelect       /* SELECT used to determine types and collations */
){
  sqlite3 *db = pParse->db;
  NameContext sNC;
  Column *pCol;
  CollSeq *pColl;
  int i;
  Expr *p;
  struct ExprList_item *a;

  assert( pSelect!=0 );
  assert( (pSelect->selFlags & SF_Resolved)!=0 );
  assert( nCol==pSelect->pEList->nExpr || db->mallocFailed );
  if( db->mallocFailed ) return;
  memset(&sNC, 0, sizeof(sNC));
  sNC.pSrcList = pSelect->pSrc;
  a = pSelect->pEList->a;
  for(i=0, pCol=aCol; i<nCol; i++, pCol++){
    p = a[i].pExpr;
    pCol->zType = sqlite3DbStrDup(db, columnType(&sNC, p, 0, 0, 0));
    pCol->affinity = sqlite3ExprAffinity(p);
    if( pCol->affinity==0 ) pCol->affinity = SQLITE_AFF_NONE;
    pColl = sqlite3ExprCollSeq(pParse, p);
    if( pColl ){
      pCol->zColl = sqlite3DbStrDup(db, pColl->zName);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, -0x38(%rbp)
movq (%rdi), %r15
cmpb $0x0, 0x50(%r15)
jne 0x4afaf
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
movaps %xmm0, -0x70(%rbp)
movq $0x0, -0x40(%rbp)
movq 0x28(%rcx), %rax
movq %rax, -0x68(%rbp)
testl %esi, %esi
jle 0x4afaf
movq %rdx, %rbx
movq (%rcx), %rax
movq 0x8(%rax), %r12
movl %esi, %eax
shlq $0x4, %rax
leaq (%rax,%rax,2), %rax
movq %rax, -0x30(%rbp)
xorl %r14d, %r14d
movq (%r12), %r13
leaq -0x70(%rbp), %rdi
movq %r13, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x4afbe
movq %r15, %rdi
movq %rax, %rsi
callq 0x101fc
movq %rax, 0x18(%rbx,%r14)
movq %r13, %rdi
callq 0x4b192
testb %al, %al
movzbl %al, %eax
movl $0x62, %ecx
cmovel %ecx, %eax
movb %al, 0x29(%rbx,%r14)
movq -0x38(%rbp), %rdi
movq %r13, %rsi
callq 0x4b225
testq %rax, %rax
je 0x4afa1
movq (%rax), %rsi
movq %r15, %rdi
callq 0x101fc
movq %rax, 0x20(%rbx,%r14)
addq $0x20, %r12
addq $0x30, %r14
cmpq %r14, -0x30(%rbp)
jne 0x4af3f
addq $0x48, %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: sqlite3ExprAffinity
SQLITE_PRIVATE char sqlite3ExprAffinity(Expr *pExpr){
  int op;
  pExpr = sqlite3ExprSkipCollate(pExpr);
  op = pExpr->op;
  if( op==TK_SELECT ){
    assert( pExpr->flags&EP_xIsSelect );
    return sqlite3ExprAffinity(pExpr->x.pSelect->pEList->a[0].pExpr);
  }
#ifndef SQLITE_OMIT_CAST
  if( op==TK_CAST ){
    assert( !ExprHasProperty(pExpr, EP_IntValue) );
    return sqlite3AffinityType(pExpr->u.zToken);
  }
#endif
  if( (op==TK_AGG_COLUMN || op==TK_COLUMN || op==TK_REGISTER) 
   && pExpr->pTab!=0
  ){
    /* op==TK_REGISTER && pExpr->pTab!=0 happens when pExpr was originally
    ** a TK_COLUMN but was previously evaluated and cached in a register */
    int j = pExpr->iColumn;
    if( j<0 ) return SQLITE_AFF_INTEGER;
    assert( pExpr->pTab && j<pExpr->pTab->nCol );
    return pExpr->pTab->aCol[j].affinity;
  }
  return pExpr->affinity;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movzbl (%rdi), %eax
cmpl $0x5b, %eax
jle 0x4b1aa
cmpl $0x73, %eax
jg 0x4b1b5
cmpl $0x5c, %eax
je 0x4b1af
jmp 0x4b21c
cmpl $0x18, %eax
jne 0x4b1e1
movq 0x10(%rdi), %rdi
jmp 0x4b196
cmpl $0x97, %eax
jg 0x4b1d1
cmpl $0x74, %eax
jne 0x4b1f0
movq 0x20(%rdi), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
jmp 0x4b196
cmpl $0x98, %eax
je 0x4b1f7
cmpl $0x9a, %eax
je 0x4b1f7
jmp 0x4b21c
cmpl $0x25, %eax
jne 0x4b21c
movq 0x8(%rdi), %rdi
popq %rbp
jmp 0x4b34a
cmpl $0x84, %eax
jne 0x4b21c
movq 0x40(%rdi), %rax
testq %rax, %rax
je 0x4b21c
movswq 0x30(%rdi), %rcx
testq %rcx, %rcx
js 0x4b221
movq 0x8(%rax), %rax
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movb 0x29(%rax,%rcx), %al
jmp 0x4b223
movb 0x1(%rdi), %al
jmp 0x4b223
movb $0x64, %al
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprCollSeq
SQLITE_PRIVATE CollSeq *sqlite3ExprCollSeq(Parse *pParse, Expr *pExpr){
  sqlite3 *db = pParse->db;
  CollSeq *pColl = 0;
  Expr *p = pExpr;
  while( p ){
    int op = p->op;
    if( op==TK_CAST || op==TK_UPLUS ){
      p = p->pLeft;
      continue;
    }
    if( op==TK_COLLATE || (op==TK_REGISTER && p->op2==TK_COLLATE) ){
      pColl = sqlite3GetCollSeq(pParse, ENC(db), 0, p->u.zToken);
      break;
    }
    if( p->pTab!=0
     && (op==TK_AGG_COLUMN || op==TK_COLUMN
          || op==TK_REGISTER || op==TK_TRIGGER)
    ){
      /* op==TK_REGISTER && p->pTab!=0 happens when pExpr was originally
      ** a TK_COLUMN but was previously evaluated and cached in a register */
      int j = p->iColumn;
      if( j>=0 ){
        const char *zColl = p->pTab->aCol[j].zColl;
        pColl = sqlite3FindCollSeq(db, ENC(db), zColl, 0);
      }
      break;
    }
    if( p->flags & EP_Collate ){
      if( ALWAYS(p->pLeft) && (p->pLeft->flags & EP_Collate)!=0 ){
        p = p->pLeft;
      }else{
        p = p->pRight;
      }
    }else{
      break;
    }
  }
  if( sqlite3CheckCollSeq(pParse, pColl) ){ 
    pColl = 0;
  }
  return pColl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rsi, %rsi
je 0x4b33f
movq %rdi, %rbx
movq (%rdi), %rdi
xorl %r14d, %r14d
movl $0x500001, %eax         # imm = 0x500001
movzbl (%rsi), %ecx
movl $0x10, %edx
cmpl $0x83, %ecx
jle 0x4b26e
cmpl $0x9d, %ecx
je 0x4b2b7
cmpl $0x84, %ecx
jne 0x4b278
cmpb $0x5c, 0x37(%rsi)
jne 0x4b278
jmp 0x4b2f5
cmpl $0x25, %ecx
je 0x4b2b7
cmpl $0x5c, %ecx
je 0x4b2f5
movq 0x40(%rsi), %rdx
testq %rdx, %rdx
je 0x4b299
leal -0x84(%rcx), %r8d
cmpl $0x16, %r8d
ja 0x4b294
btl %r8d, %eax
jb 0x4b2c5
cmpl $0x3c, %ecx
je 0x4b2c5
testb $0x1, 0x3(%rsi)
je 0x4b342
movq 0x10(%rsi), %rcx
movl $0x18, %edx
testq %rcx, %rcx
je 0x4b2b7
testb $0x1, 0x3(%rcx)
jne 0x4b2bb
movq (%rsi,%rdx), %rcx
movq %rcx, %rsi
testq %rcx, %rcx
jne 0x4b243
jmp 0x4b342
movswq 0x30(%rsi), %rax
testq %rax, %rax
js 0x4b33f
movq 0x8(%rdx), %rcx
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
movq 0x20(%rcx,%rax), %rdx
movq 0x20(%rdi), %rax
movq 0x18(%rax), %rax
movzbl 0x71(%rax), %esi
xorl %ecx, %ecx
callq 0x4b5e8
jmp 0x4b311
movq 0x20(%rdi), %rax
movq 0x18(%rax), %rax
movzbl 0x71(%rax), %eax
movq 0x8(%rsi), %rcx
movq %rbx, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0x4b421
movq %rax, %r14
testq %rax, %rax
je 0x4b33f
movq (%r14), %rcx
movq (%rbx), %rax
movq 0x20(%rax), %rax
movq 0x18(%rax), %rax
movzbl 0x71(%rax), %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4b421
testq %rax, %rax
cmoveq %rax, %r14
jmp 0x4b342
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3AffinityType
SQLITE_PRIVATE char sqlite3AffinityType(const char *zIn){
  u32 h = 0;
  char aff = SQLITE_AFF_NUMERIC;

  if( zIn ) while( zIn[0] ){
    h = (h<<8) + sqlite3UpperToLower[(*zIn)&0xff];
    zIn++;
    if( h==(('c'<<24)+('h'<<16)+('a'<<8)+'r') ){             /* CHAR */
      aff = SQLITE_AFF_TEXT; 
    }else if( h==(('c'<<24)+('l'<<16)+('o'<<8)+'b') ){       /* CLOB */
      aff = SQLITE_AFF_TEXT;
    }else if( h==(('t'<<24)+('e'<<16)+('x'<<8)+'t') ){       /* TEXT */
      aff = SQLITE_AFF_TEXT;
    }else if( h==(('b'<<24)+('l'<<16)+('o'<<8)+'b')          /* BLOB */
        && (aff==SQLITE_AFF_NUMERIC || aff==SQLITE_AFF_REAL) ){
      aff = SQLITE_AFF_NONE;
#ifndef SQLITE_OMIT_FLOATING_POINT
    }else if( h==(('r'<<24)+('e'<<16)+('a'<<8)+'l')          /* REAL */
        && aff==SQLITE_AFF_NUMERIC ){
      aff = SQLITE_AFF_REAL;
    }else if( h==(('f'<<24)+('l'<<16)+('o'<<8)+'a')          /* FLOA */
        && aff==SQLITE_AFF_NUMERIC ){
      aff = SQLITE_AFF_REAL;
    }else if( h==(('d'<<24)+('o'<<16)+('u'<<8)+'b')          /* DOUB */
        && aff==SQLITE_AFF_NUMERIC ){
      aff = SQLITE_AFF_REAL;
#endif
    }else if( (h&0x00FFFFFF)==(('i'<<16)+('n'<<8)+'t') ){    /* INT */
      aff = SQLITE_AFF_INTEGER;
      break;
    }
  }

  return aff;
}

// Assembly:
movb $0x63, %al
testq %rdi, %rdi
je 0x4b41c
movb (%rdi), %r8b
testb %r8b, %r8b
je 0x4b41c
pushq %rbp
movq %rsp, %rbp
incq %rdi
xorl %edx, %edx
movb $0x63, %sil
leaq 0x2ad3c(%rip), %rcx     # 0x760b0
movl %edx, %eax
shll $0x8, %eax
movzbl %r8b, %edx
movzbl (%rdx,%rcx), %edx
orl %eax, %edx
movb $0x61, %al
cmpl $0x636c6f61, %edx       # imm = 0x636C6F61
jg 0x4b39f
cmpl $0x626c6f62, %edx       # imm = 0x626C6F62
je 0x4b3b1
cmpl $0x63686172, %edx       # imm = 0x63686172
je 0x4b40a
jmp 0x4b3c3
cmpl $0x636c6f62, %edx       # imm = 0x636C6F62
je 0x4b40a
cmpl $0x74657874, %edx       # imm = 0x74657874
je 0x4b40a
jmp 0x4b3c3
movb $0x62, %al
cmpb $0x63, %sil
je 0x4b40a
movzbl %sil, %r8d
cmpl $0x65, %r8d
je 0x4b40a
cmpl $0x7265616c, %edx       # imm = 0x7265616C
sete %al
cmpb $0x63, %sil
sete %r8b
cmpl $0x666c6f61, %edx       # imm = 0x666C6F61
sete %r9b
orb %al, %r9b
cmpl $0x646f7562, %edx       # imm = 0x646F7562
sete %r10b
orb %r9b, %r10b
movb $0x65, %al
testb %r8b, %r10b
jne 0x4b40a
movl %edx, %r8d
andl $0xffffff, %r8d         # imm = 0xFFFFFF
movl %esi, %eax
cmpl $0x696e74, %r8d         # imm = 0x696E74
je 0x4b41d
movb (%rdi), %r8b
incq %rdi
movl %eax, %esi
testb %r8b, %r8b
jne 0x4b374
popq %rbp
retq
movb $0x64, %al
jmp 0x4b41b
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3GetCollSeq
SQLITE_PRIVATE CollSeq *sqlite3GetCollSeq(
  Parse *pParse,        /* Parsing context */
  u8 enc,               /* The desired encoding for the collating sequence */
  CollSeq *pColl,       /* Collating sequence with native encoding, or NULL */
  const char *zName     /* Collating sequence name */
){
  CollSeq *p;
  sqlite3 *db = pParse->db;

  p = pColl;
  if( !p ){
    p = sqlite3FindCollSeq(db, enc, zName, 0);
  }
  if( !p || !p->xCmp ){
    /* No collation sequence of this type for this encoding is registered.
    ** Call the collation factory to see if it can supply us with one.
    */
    callCollNeeded(db, enc, zName);
    p = sqlite3FindCollSeq(db, enc, zName, 0);
  }
  if( p && !p->xCmp && synthCollSeq(db, p) ){
    p = 0;
  }
  assert( !p || p->xCmp );
  if( p==0 ){
    sqlite3ErrorMsg(pParse, "no such collation sequence: %s", zName);
  }
  return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r12
movl %esi, %r13d
movq %rdi, %r14
movq (%rdi), %r15
testq %rdx, %rdx
jne 0x4b45f
movzbl %r13b, %esi
movq %r15, %rdi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x4b5e8
movq %rax, %r12
testq %rax, %rax
je 0x4b46b
cmpq $0x0, 0x18(%r12)
jne 0x4b5b9
movq %r14, -0x30(%rbp)
movzbl %r13b, %r12d
cmpq $0x0, 0x118(%r15)
je 0x4b4b6
movq %r15, %rdi
movq %rbx, %rsi
callq 0x101fc
testq %rax, %rax
je 0x4b54d
movq %rax, %r13
movq 0x128(%r15), %rdi
movq %r15, %rsi
movl %r12d, %edx
movq %rax, %rcx
callq *0x118(%r15)
movq %r15, %rdi
movq %r13, %rsi
callq 0x9ca4
cmpq $0x0, 0x120(%r15)
je 0x4b54d
movq %r15, %rdi
movl $0x38, %esi
callq 0x11721
movq %rax, %r13
testq %rax, %rax
je 0x4b513
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r13)
movups %xmm0, 0x28(%r13)
movups %xmm0, 0x8(%r13)
movw $0x1, 0x24(%r13)
movb $0x5, 0x26(%r13)
movq %r15, (%r13)
movq %r13, %rdi
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0xf0d7
movq %r13, %rdi
movl $0x2, %esi
callq 0xef29
testq %rax, %rax
je 0x4b545
movq 0x20(%r15), %rcx
movq 0x128(%r15), %rdi
movq 0x18(%rcx), %rcx
movzbl 0x71(%rcx), %edx
movq %r15, %rsi
movq %rax, %rcx
callq *0x120(%r15)
movq %r13, %rdi
callq 0x142f2
movq %r15, %rdi
movl %r12d, %esi
movq %rbx, -0x38(%rbp)
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x4b5e8
testq %rax, %rax
je 0x4b5a0
movq %rax, %r12
cmpq $0x0, 0x18(%rax)
jne 0x4b5b9
movq (%r12), %r13
xorl %r14d, %r14d
leaq 0x2d33e(%rip), %rbx     # 0x788bc
movzbl (%r14,%rbx), %esi
movq %r15, %rdi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0x4b5e8
cmpq $0x0, 0x18(%rax)
jne 0x4b5cb
incq %r14
cmpq $0x3, %r14
jne 0x4b57e
leaq 0x2fcd1(%rip), %rsi     # 0x7b278
xorl %r12d, %r12d
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rdx
xorl %eax, %eax
callq 0x11842
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x10(%r12)
movups %xmm0, (%r12)
movq $0x0, 0x20(%r12)
jmp 0x4b5b9
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3FindCollSeq
SQLITE_PRIVATE CollSeq *sqlite3FindCollSeq(
  sqlite3 *db,
  u8 enc,
  const char *zName,
  int create
){
  CollSeq *pColl;
  if( zName ){
    pColl = findCollSeqEntry(db, zName, create);
  }else{
    pColl = db->pDfltColl;
  }
  assert( SQLITE_UTF8==1 && SQLITE_UTF16LE==2 && SQLITE_UTF16BE==3 );
  assert( enc>=SQLITE_UTF8 && enc<=SQLITE_UTF16BE );
  if( pColl ) pColl += enc-1;
  return pColl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, -0x2c(%rbp)
testq %rdx, %rdx
je 0x4b6e1
movl %ecx, %r14d
movq %rdx, %r12
movq $-0x1, %r13
cmpb $0x0, 0x1(%r12,%r13)
leaq 0x1(%r13), %r13
jne 0x4b612
movl %r13d, %ebx
andl $0x3fffffff, %ebx       # imm = 0x3FFFFFFF
movq %rdi, -0x38(%rbp)
addq $0x290, %rdi            # imm = 0x290
movq %rdi, -0x40(%rbp)
movq %r12, %rsi
movl %ebx, %edx
callq 0x3406c
movq %rax, %r15
testl %r14d, %r14d
je 0x4b6e5
testq %r15, %r15
jne 0x4b6e5
leal 0x79(%rbx), %r14d
movq -0x38(%rbp), %rdi
movl %r14d, %esi
callq 0x11721
testq %rax, %rax
je 0x4b6dc
movq %rax, %r15
movl %r14d, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0x8200
andl $0x3fffffff, %r13d      # imm = 0x3FFFFFFF
movq %r15, %r14
addq $0x78, %r14
movq %r14, (%r15)
movb $0x1, 0x8(%r15)
movq %r14, 0x28(%r15)
movb $0x2, 0x30(%r15)
movq %r14, 0x50(%r15)
movb $0x3, 0x58(%r15)
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x82f0
movb $0x0, 0x78(%r15,%r13)
movq -0x40(%rbp), %rdi
movq %r14, %rsi
movl %ebx, %edx
movq %r15, %rcx
callq 0x34400
testq %rax, %rax
je 0x4b6e5
movq -0x38(%rbp), %rdi
movb $0x1, 0x50(%rdi)
movq %rax, %rsi
callq 0x9ca4
xorl %r15d, %r15d
jmp 0x4b6e5
movq 0x10(%rdi), %r15
testq %r15, %r15
movzbl -0x2c(%rbp), %eax
leaq (%rax,%rax,4), %rax
leaq -0x28(%r15,%rax,8), %rax
cmoveq %r15, %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: resolveAsName
static int resolveAsName(
  Parse *pParse,     /* Parsing context for error messages */
  ExprList *pEList,  /* List of expressions to scan */
  Expr *pE           /* Expression we are trying to match */
){
  int i;             /* Loop counter */

  UNUSED_PARAMETER(pParse);

  if( pE->op==TK_ID ){
    char *zCol = pE->u.zToken;
    for(i=0; i<pEList->nExpr; i++){
      char *zAs = pEList->a[i].zName;
      if( zAs!=0 && sqlite3StrICmp(zAs, zCol)==0 ){
        return i+1;
      }
    }
  }
  return 0;
}

// Assembly:
xorl %eax, %eax
cmpb $0x1a, (%rsi)
jne 0x4b797
movslq (%rdi), %rcx
testq %rcx, %rcx
jle 0x4b797
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movq 0x8(%rsi), %rdx
movq 0x8(%rdi), %rsi
xorl %eax, %eax
leaq 0x2a97f(%rip), %rdi     # 0x760b0
movq %rax, %r8
shlq $0x5, %r8
movq 0x8(%rsi,%r8), %r9
testq %r9, %r9
je 0x4b772
movb (%r9), %r10b
testb %r10b, %r10b
je 0x4b777
incq %r9
movq %rdx, %r8
movzbl %r10b, %r10d
movb (%r10,%rdi), %r11b
movzbl (%r8), %ebx
cmpb (%rbx,%rdi), %r11b
jne 0x4b77d
incq %r8
movb (%r9), %r10b
incq %r9
testb %r10b, %r10b
jne 0x4b750
jmp 0x4b77a
incq %rax
jmp 0x4b78e
movq %rdx, %r8
xorl %r10d, %r10d
movb (%r10,%rdi), %r9b
movzbl (%r8), %r8d
incq %rax
cmpb (%r8,%rdi), %r9b
je 0x4b795
cmpq %rcx, %rax
jne 0x4b731
xorl %eax, %eax
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ResolveOrderGroupBy
SQLITE_PRIVATE int sqlite3ResolveOrderGroupBy(
  Parse *pParse,        /* Parsing context.  Leave error messages here */
  Select *pSelect,      /* The SELECT statement containing the clause */
  ExprList *pOrderBy,   /* The ORDER BY or GROUP BY clause to be processed */
  const char *zType     /* "ORDER" or "GROUP" */
){
  int i;
  sqlite3 *db = pParse->db;
  ExprList *pEList;
  struct ExprList_item *pItem;

  if( pOrderBy==0 || pParse->db->mallocFailed ) return 0;
#if SQLITE_MAX_COLUMN
  if( pOrderBy->nExpr>db->aLimit[SQLITE_LIMIT_COLUMN] ){
    sqlite3ErrorMsg(pParse, "too many terms in %s BY clause", zType);
    return 1;
  }
#endif
  pEList = pSelect->pEList;
  assert( pEList!=0 );  /* sqlite3SelectNew() guarantees this */
  for(i=0, pItem=pOrderBy->a; i<pOrderBy->nExpr; i++, pItem++){
    if( pItem->iOrderByCol ){
      if( pItem->iOrderByCol>pEList->nExpr ){
        resolveOutOfRangeError(pParse, zType, i+1, pEList->nExpr);
        return 1;
      }
      resolveAlias(pParse, pEList, pItem->iOrderByCol-1, pItem->pExpr, zType,0);
    }
  }
  return 0;
}

// Assembly:
xorl %eax, %eax
testq %rdx, %rdx
je 0x4ba25
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r13
movq %rdi, %r15
movq (%rdi), %rdx
cmpb $0x0, 0x50(%rdx)
jne 0x4ba17
movq %rcx, %r9
movl (%r13), %ecx
cmpl 0x70(%rdx), %ecx
jle 0x4b9c1
leaq 0x2f922(%rip), %rsi     # 0x7b2cf
movq %r15, %rdi
movq %r9, %rdx
xorl %eax, %eax
callq 0x11842
movl $0x1, %eax
jmp 0x4ba17
testl %ecx, %ecx
jle 0x4ba17
movq (%rsi), %r14
movq 0x8(%r13), %rbx
movl $0x1, %r12d
movq %r9, -0x30(%rbp)
movzwl 0x1a(%rbx), %edx
testl %edx, %edx
je 0x4ba04
movl (%r14), %r8d
cmpl %edx, %r8d
jl 0x4ba26
decl %edx
movq (%rbx), %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %r9, %r8
xorl %r9d, %r9d
callq 0x482bc
movq -0x30(%rbp), %r9
movl (%r13), %ecx
addq $0x20, %rbx
leal 0x1(%r12), %eax
cmpl %ecx, %r12d
movl %eax, %r12d
jl 0x4b9d6
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2f86a(%rip), %rsi     # 0x7b297
movq %r15, %rdi
movl %r12d, %edx
movq %r9, %rcx
xorl %eax, %eax
callq 0x11842
jmp 0x4b9ba
// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprListCompare
SQLITE_PRIVATE int sqlite3ExprListCompare(ExprList *pA, ExprList *pB, int iTab){
  int i;
  if( pA==0 && pB==0 ) return 0;
  if( pA==0 || pB==0 ) return 1;
  if( pA->nExpr!=pB->nExpr ) return 1;
  for(i=0; i<pA->nExpr; i++){
    Expr *pExprA = pA->a[i].pExpr;
    Expr *pExprB = pB->a[i].pExpr;
    if( pA->a[i].sortOrder!=pB->a[i].sortOrder ) return 1;
    if( sqlite3ExprCompare(pExprA, pExprB, iTab) ) return 1;
  }
  return 0;
}

// Assembly:
xorl %eax, %eax
movq %rdi, %rcx
orq %rsi, %rcx
je 0x4bac7
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
testq %rsi, %rsi
sete %cl
testq %rdi, %rdi
sete %dl
orb %cl, %dl
jne 0x4bab4
movl (%rdi), %r14d
cmpl (%rsi), %r14d
jne 0x4bab4
testl %r14d, %r14d
jle 0x4bab9
movq 0x8(%rdi), %r15
movq 0x8(%rsi), %r12
shlq $0x5, %r14
xorl %r13d, %r13d
movb 0x18(%r15,%r13), %al
cmpb 0x18(%r12,%r13), %al
jne 0x4bab4
movq (%r12,%r13), %rsi
movq (%r15,%r13), %rdi
movl %ebx, %edx
callq 0x4b798
testl %eax, %eax
jne 0x4bab4
addq $0x20, %r13
xorl %eax, %eax
cmpq %r13, %r14
jne 0x4ba88
jmp 0x4bab9
movl $0x1, %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: identPut
static void identPut(char *z, int *pIdx, char *zSignedIdent){
  unsigned char *zIdent = (unsigned char*)zSignedIdent;
  int i, j, needQuote;
  i = *pIdx;

  for(j=0; zIdent[j]; j++){
    if( !sqlite3Isalnum(zIdent[j]) && zIdent[j]!='_' ) break;
  }
  needQuote = sqlite3Isdigit(zIdent[0]) || sqlite3KeywordCode(zIdent, j)!=TK_ID;
  if( !needQuote ){
    needQuote = zIdent[j];
  }

  if( needQuote ) z[i++] = '"';
  for(j=0; zIdent[j]; j++){
    z[i++] = zIdent[j];
    if( zIdent[j]=='"' ) z[i++] = '"';
  }
  if( needQuote ) z[i++] = '"';
  z[i] = 0;
  *pIdx = i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rdi, %r14
movq %rsi, -0x30(%rbp)
movl (%rsi), %r13d
movzbl (%rdx), %ebx
xorl %esi, %esi
testq %rbx, %rbx
je 0x4bb2b
leaq 0x2a4bc(%rip), %rax     # 0x75fb0
movl %ebx, %ecx
movzbl %cl, %ecx
testb $0x6, (%rcx,%rax)
setne %dl
cmpb $0x5f, %cl
sete %r12b
orb %dl, %r12b
cmpb $0x1, %r12b
jne 0x4bb1c
movb 0x1(%r15,%rsi), %cl
incq %rsi
testb %cl, %cl
jne 0x4baf6
movq %rbx, %rax
addq $-0x3a, %rax
cmpq $-0xb, %rax
jbe 0x4bb2e
jmp 0x4bb44
movb $0x1, %r12b
movq %r15, %rdi
callq 0x3653c
testb %r12b, %r12b
je 0x4bb44
cmpl $0x1a, %eax
jne 0x4bb44
movb $0x1, %cl
jmp 0x4bb55
movslq %r13d, %rax
leal 0x1(%rax), %r13d
movb $0x22, (%r14,%rax)
movb (%r15), %bl
xorl %ecx, %ecx
testb %bl, %bl
je 0x4bb88
incq %r15
movslq %r13d, %rax
movb %bl, (%r14,%rax)
incq %rax
cmpb $0x22, -0x1(%r15)
jne 0x4bb79
addl $0x2, %r13d
movb $0x22, (%r14,%rax)
movl %r13d, %eax
movb (%r15), %bl
incq %r15
movl %eax, %r13d
testb %bl, %bl
jne 0x4bb5c
jmp 0x4bb8b
movl %r13d, %eax
testb %cl, %cl
jne 0x4bb99
movslq %eax, %rcx
incl %eax
movb $0x22, (%r14,%rcx)
movq -0x30(%rbp), %rcx
cltq
movb $0x0, (%r14,%rax)
movl %eax, (%rcx)
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: sqlite3SrcListLookup
SQLITE_PRIVATE Table *sqlite3SrcListLookup(Parse *pParse, SrcList *pSrc){
  struct SrcList_item *pItem = pSrc->a;
  Table *pTab;
  assert( pItem && pSrc->nSrc==1 );
  pTab = sqlite3LocateTableItem(pParse, 0, pItem);
  sqlite3DeleteTable(pParse->db, pItem->pTab);
  pItem->pTab = pTab;
  if( pTab ){
    pTab->nRef++;
  }
  if( sqlite3IndexedByLookup(pParse, pItem) ){
    pTab = 0;
  }
  return pTab;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r12
movq %rdi, %r15
leaq 0x8(%rsi), %r14
xorl %esi, %esi
movq %r14, %rdx
callq 0x4a479
movq %rax, %rbx
movq (%r15), %rdi
movq 0x28(%r12), %rsi
callq 0x9975
movq %rbx, 0x28(%r12)
testq %rbx, %rbx
je 0x4bc46
incw 0x44(%rbx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x4a6e7
xorl %ecx, %ecx
testl %eax, %eax
cmoveq %rbx, %rcx
movq %rcx, %rax
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: sqlite3FixSrcList
SQLITE_PRIVATE int sqlite3FixSrcList(
  DbFixer *pFix,       /* Context of the fixation */
  SrcList *pList       /* The Source list to check and modify */
){
  int i;
  const char *zDb;
  struct SrcList_item *pItem;

  if( NEVER(pList==0) ) return 0;
  zDb = pFix->zDb;
  for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){
    if( pItem->zDatabase && sqlite3StrICmp(pItem->zDatabase, zDb) ){
      sqlite3ErrorMsg(pFix->pParse,
         "%s %T cannot reference objects in database %s",
         pFix->zType, pFix->pName, pItem->zDatabase);
      return 1;
    }
    sqlite3DbFree(pFix->pParse->db, pItem->zDatabase);
    pItem->zDatabase = 0;
    pItem->pSchema = pFix->pSchema;
#if !defined(SQLITE_OMIT_VIEW) || !defined(SQLITE_OMIT_TRIGGER)
    if( sqlite3FixSelect(pFix, pItem->pSelect) ) return 1;
    if( sqlite3FixExpr(pFix, pItem->pOn) ) return 1;
#endif
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, -0x38(%rbp)
xorl %r15d, %r15d
testq %rsi, %rsi
je 0x4bd74
movq %rsi, %rbx
cmpb $0x0, (%rsi)
je 0x4bd74
movq -0x38(%rbp), %r15
movq 0x10(%r15), %rax
movq %rax, -0x30(%rbp)
leaq 0x8(%rbx), %r13
xorl %r12d, %r12d
leaq 0x2a404(%rip), %r14     # 0x760b0
movq 0x8(%r13), %r8
testq %r8, %r8
je 0x4bcf5
movb (%r8), %dl
testb %dl, %dl
je 0x4bce2
leaq 0x1(%r8), %rcx
movq -0x30(%rbp), %rax
movzbl %dl, %edx
movb (%rdx,%r14), %r9b
movzbl (%rax), %edi
cmpb (%rdi,%r14), %r9b
jne 0x4bce8
incq %rax
movb (%rcx), %dl
incq %rcx
testb %dl, %dl
jne 0x4bcc4
jmp 0x4bce6
movq -0x30(%rbp), %rax
xorl %edx, %edx
movb (%rdx,%r14), %cl
movzbl (%rax), %eax
cmpb (%rax,%r14), %cl
jne 0x4bd55
movq (%r15), %rax
movq (%rax), %rdi
movq %r8, %rsi
callq 0x9ca4
movq $0x0, 0x8(%r13)
movq 0x8(%r15), %rax
movq %rax, (%r13)
movq 0x28(%r13), %rsi
movq %r15, %rdi
callq 0x4c1c9
movq %r15, %rdi
movl $0x1, %r15d
testl %eax, %eax
jne 0x4bd74
movq 0x40(%r13), %rsi
callq 0x4c23d
testl %eax, %eax
jne 0x4bd74
incl %r12d
addq $0x68, %r13
movzbl (%rbx), %eax
cmpl %eax, %r12d
movq -0x38(%rbp), %r15
jb 0x4bcac
xorl %r15d, %r15d
jmp 0x4bd74
movq (%r15), %rdi
movq 0x18(%r15), %rdx
movq 0x20(%r15), %rcx
leaq 0x2f86f(%rip), %rsi     # 0x7b5d6
xorl %eax, %eax
callq 0x11842
movl $0x1, %r15d
movl %r15d, %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: sqlite3LocateCollSeq
SQLITE_PRIVATE CollSeq *sqlite3LocateCollSeq(Parse *pParse, const char *zName){
  sqlite3 *db = pParse->db;
  u8 enc = ENC(db);
  u8 initbusy = db->init.busy;
  CollSeq *pColl;

  pColl = sqlite3FindCollSeq(db, enc, zName, initbusy);
  if( !initbusy && (!pColl || !pColl->xCmp) ){
    pColl = sqlite3GetCollSeq(pParse, enc, pColl, zName);
  }

  return pColl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
movq 0x20(%rdi), %rax
movq 0x18(%rax), %rax
movzbl 0x99(%rdi), %r12d
movzbl 0x71(%rax), %r15d
movl %r15d, %esi
movq %rbx, %rdx
movl %r12d, %ecx
callq 0x4b5e8
testl %r12d, %r12d
je 0x4bdcb
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
testq %rax, %rax
je 0x4bde2
cmpq $0x0, 0x18(%rax)
jne 0x4bdc2
movq %r14, %rdi
movl %r15d, %esi
movq %rax, %rdx
jmp 0x4bdea
movq %r14, %rdi
movl %r15d, %esi
xorl %edx, %edx
movq %rbx, %rcx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4b421