LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprListDelete
SQLITE_PRIVATE void sqlite3ExprListDelete(sqlite3 *db, ExprList *pList){
  int i;
  struct ExprList_item *pItem;
  if( pList==0 ) return;
  assert( pList->a!=0 || pList->nExpr==0 );
  for(pItem=pList->a, i=0; i<pList->nExpr; i++, pItem++){
    sqlite3ExprDelete(db, pItem->pExpr);
    sqlite3DbFree(db, pItem->zName);
    sqlite3DbFree(db, pItem->zSpan);
  }
  sqlite3DbFree(db, pList->a);
  sqlite3DbFree(db, pList);
}

// Assembly:
testq %rsi, %rsi
je 0x2f594
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %r15
xorl %r12d, %r12d
cmpl (%rbx), %r12d
jge 0x2f575
movq (%r15), %rsi
movq %r14, %rdi
callq 0x2f476
movq 0x8(%r15), %rsi
movq %r14, %rdi
callq 0x968b
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x968b
incl %r12d
addq $0x20, %r15
jmp 0x2f544
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x968b
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x968b
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: clearSelect
static void clearSelect(sqlite3 *db, Select *p){
  sqlite3ExprListDelete(db, p->pEList);
  sqlite3SrcListDelete(db, p->pSrc);
  sqlite3ExprDelete(db, p->pWhere);
  sqlite3ExprListDelete(db, p->pGroupBy);
  sqlite3ExprDelete(db, p->pHaving);
  sqlite3ExprListDelete(db, p->pOrderBy);
  sqlite3SelectDelete(db, p->pPrior);
  sqlite3ExprDelete(db, p->pLimit);
  sqlite3ExprDelete(db, p->pOffset);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rsi
callq 0x2f527
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x2f60e
movq 0x30(%r14), %rsi
movq %rbx, %rdi
callq 0x2f476
movq 0x38(%r14), %rsi
movq %rbx, %rdi
callq 0x2f527
movq 0x40(%r14), %rsi
movq %rbx, %rdi
callq 0x2f476
movq 0x48(%r14), %rsi
movq %rbx, %rdi
callq 0x2f527
movq 0x50(%r14), %rsi
movq %rbx, %rdi
callq 0x2f500
movq 0x68(%r14), %rsi
movq %rbx, %rdi
callq 0x2f476
movq 0x70(%r14), %rsi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x2f476
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3SrcListDelete
SQLITE_PRIVATE void sqlite3SrcListDelete(sqlite3 *db, SrcList *pList){
  int i;
  struct SrcList_item *pItem;
  if( pList==0 ) return;
  for(pItem=pList->a, i=0; i<pList->nSrc; i++, pItem++){
    sqlite3DbFree(db, pItem->zDatabase);
    sqlite3DbFree(db, pItem->zName);
    sqlite3DbFree(db, pItem->zAlias);
    sqlite3DbFree(db, pItem->zIndex);
    sqlite3DeleteTable(db, pItem->pTab);
    sqlite3SelectDelete(db, pItem->pSelect);
    sqlite3ExprDelete(db, pItem->pOn);
    sqlite3IdListDelete(db, pItem->pUsing);
  }
  sqlite3DbFree(db, pList);
}

// Assembly:
testq %rsi, %rsi
je 0x2f6b2
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10(%rsi), %r15
xorl %r12d, %r12d
movzbl (%rbx), %eax
cmpl %eax, %r12d
jae 0x2f69f
movq (%r15), %rsi
movq %r14, %rdi
callq 0x968b
movq 0x8(%r15), %rsi
movq %r14, %rdi
callq 0x968b
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x968b
movq 0x50(%r15), %rsi
movq %r14, %rdi
callq 0x968b
movq 0x18(%r15), %rsi
movq %r14, %rdi
callq 0x93dc
movq 0x20(%r15), %rsi
movq %r14, %rdi
callq 0x2f500
movq 0x38(%r15), %rsi
movq %r14, %rdi
callq 0x2f476
movq 0x40(%r15), %rsi
movq %r14, %rdi
callq 0x2f6b3
incl %r12d
addq $0x68, %r15
jmp 0x2f62f
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x968b
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3IdListDelete
SQLITE_PRIVATE void sqlite3IdListDelete(sqlite3 *db, IdList *pList){
  int i;
  if( pList==0 ) return;
  for(i=0; i<pList->nId; i++){
    sqlite3DbFree(db, pList->a[i].zName);
  }
  sqlite3DbFree(db, pList->a);
  sqlite3DbFree(db, pList);
}

// Assembly:
testq %rsi, %rsi
je 0x2f70b
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
movslq 0x8(%rbx), %rax
movq (%rbx), %rsi
cmpq %rax, %r12
jge 0x2f6f0
movq (%rsi,%r15), %rsi
movq %r14, %rdi
callq 0x968b
incq %r12
addq $0x10, %r15
jmp 0x2f6cf
movq %r14, %rdi
callq 0x968b
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x968b
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: checkPtrmap
static void checkPtrmap(
  IntegrityCk *pCheck,   /* Integrity check context */
  Pgno iChild,           /* Child page number */
  u8 eType,              /* Expected pointer map type */
  Pgno iParent,          /* Expected pointer map parent page number */
  char *zContext         /* Context description (used for error msg) */
){
  int rc;
  u8 ePtrmapType;
  Pgno iPtrmapParent;

  rc = ptrmapGet(pCheck->pBt, iChild, &ePtrmapType, &iPtrmapParent);
  if( rc!=SQLITE_OK ){
    if( rc==SQLITE_NOMEM || rc==SQLITE_IOERR_NOMEM ) pCheck->mallocFailed = 1;
    checkAppendMsg(pCheck, zContext, "Failed to read ptrmap key=%d", iChild);
    return;
  }

  if( ePtrmapType!=eType || iPtrmapParent!=iParent ){
    checkAppendMsg(pCheck, zContext, 
      "Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)", 
      iChild, eType, iParent, ePtrmapType, iPtrmapParent);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movl %ecx, %r12d
movl %edx, %r13d
movl %esi, %ebx
movq %rdi, %r15
movq (%rdi), %rdi
leaq -0x29(%rbp), %rdx
leaq -0x30(%rbp), %rcx
callq 0x1ebb8
testl %eax, %eax
je 0x2f99e
cmpl $0xc0a, %eax            # imm = 0xC0A
je 0x2f971
cmpl $0x7, %eax
jne 0x2f979
movl $0x1, 0x24(%r15)
leaq 0x3c869(%rip), %rdx     # 0x6c1e9
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %ecx
xorl %eax, %eax
callq 0x3004c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl -0x29(%rbp), %r10d
cmpb %r13b, %r10b
sete %al
movl -0x30(%rbp), %r11d
cmpl %r12d, %r11d
sete %cl
testb %cl, %al
jne 0x2f98f
movzbl %r13b, %r8d
leaq 0x3c844(%rip), %rdx     # 0x6c206
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %ecx
movl %r12d, %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x3004c
popq %rax
popq %rcx
jmp 0x2f98f
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: checkAppendMsg
static void checkAppendMsg(
  IntegrityCk *pCheck,
  char *zMsg1,
  const char *zFormat,
  ...
){
  va_list ap;
  if( !pCheck->mxErr ) return;
  pCheck->mxErr--;
  pCheck->nErr++;
  va_start(ap, zFormat);
  if( pCheck->errMsg.nChar ){
    sqlite3StrAccumAppend(&pCheck->errMsg, "\n", 1);
  }
  if( zMsg1 ){
    sqlite3StrAccumAppend(&pCheck->errMsg, zMsg1, -1);
  }
  sqlite3VXPrintf(&pCheck->errMsg, 1, zFormat, ap);
  va_end(ap);
  if( pCheck->errMsg.accError==STRACCUM_NOMEM ){
    pCheck->mallocFailed = 1;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xd0, %rsp
movq %rcx, -0xd8(%rbp)
movq %r8, -0xd0(%rbp)
movq %r9, -0xc8(%rbp)
testb %al, %al
je 0x300a3
movaps %xmm0, -0xc0(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm2, -0xa0(%rbp)
movaps %xmm3, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm5, -0x70(%rbp)
movaps %xmm6, -0x60(%rbp)
movaps %xmm7, -0x50(%rbp)
movl 0x1c(%rdi), %eax
testl %eax, %eax
je 0x3012e
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
decl %eax
movl %eax, 0x1c(%rdi)
incl 0x20(%rdi)
leaq -0xf0(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movabsq $0x3000000018, %rax     # imm = 0x3000000018
movq %rax, -0x40(%rbp)
leaq 0x28(%rdi), %r12
cmpl $0x0, 0x40(%rdi)
je 0x300fc
leaq 0x40253(%rip), %rsi     # 0x70344
pushq $0x1
popq %rdx
movq %r12, %rdi
callq 0x155e3
testq %r15, %r15
je 0x3010f
pushq $-0x1
popq %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x155e3
pushq $0x1
popq %rsi
leaq -0x40(%rbp), %rcx
movq %r12, %rdi
movq %r14, %rdx
callq 0x9ed1
cmpb $0x1, 0x4d(%rbx)
jne 0x3012e
movl $0x1, 0x24(%rbx)
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: checkRef
static int checkRef(IntegrityCk *pCheck, Pgno iPage, char *zContext){
  if( iPage==0 ) return 1;
  if( iPage>pCheck->nPage ){
    checkAppendMsg(pCheck, zContext, "invalid page number %d", iPage);
    return 1;
  }
  if( getPageReferenced(pCheck, iPage) ){
    checkAppendMsg(pCheck, zContext, "2nd reference to page %d", iPage);
    return 1;
  }
  setPageReferenced(pCheck, iPage);
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
pushq $0x1
popq %rbx
testl %esi, %esi
je 0x30199
movl %esi, %eax
cmpl %esi, 0x18(%rdi)
jae 0x3015b
leaq 0x3c060(%rip), %rcx     # 0x6c1b9
jmp 0x3018a
movq 0x10(%rdi), %rsi
movl %eax, %r8d
shrl $0x3, %r8d
movl %eax, %ecx
andb $0x7, %cl
movl %ebx, %r9d
shll %cl, %r9d
movzbl (%rsi,%r8), %ecx
movl %eax, %r10d
andl $0x7, %r10d
btl %r10d, %ecx
jae 0x301a2
leaq 0x3c046(%rip), %rcx     # 0x6c1d0
movq %rdx, %rsi
movq %rcx, %rdx
movl %eax, %ecx
xorl %eax, %eax
callq 0x3004c
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
orb %cl, %r9b
movb %r9b, (%rsi,%r8)
xorl %ebx, %ebx
jmp 0x30199
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: rowSetEntryAlloc
static struct RowSetEntry *rowSetEntryAlloc(RowSet *p){
  assert( p!=0 );
  if( p->nFresh==0 ){
    struct RowSetChunk *pNew;
    pNew = sqlite3DbMallocRaw(p->db, sizeof(*pNew));
    if( pNew==0 ){
      return 0;
    }
    pNew->pNextChunk = p->pChunk;
    p->pChunk = pNew;
    p->pFresh = pNew->aEntry;
    p->nFresh = ROWSET_ENTRY_PER_CHUNK;
  }
  p->nFresh--;
  return p->pFresh++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzwl 0x30(%rdi), %ecx
testw %cx, %cx
je 0x301c7
movq 0x20(%rbx), %rax
decl %ecx
jmp 0x301eb
movq 0x8(%rbx), %rdi
movl $0x3f8, %esi            # imm = 0x3F8
callq 0x103b4
testq %rax, %rax
je 0x301fe
movq (%rbx), %rcx
movq %rcx, (%rax)
movq %rax, (%rbx)
addq $0x8, %rax
movw $0x29, %cx
movw %cx, 0x30(%rbx)
leaq 0x18(%rax), %rcx
movq %rcx, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
xorl %eax, %eax
jmp 0x301f7
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: rowSetEntrySort
static struct RowSetEntry *rowSetEntrySort(struct RowSetEntry *pIn){
  unsigned int i;
  struct RowSetEntry *pNext, *aBucket[40];

  memset(aBucket, 0, sizeof(aBucket));
  while( pIn ){
    pNext = pIn->pRight;
    pIn->pRight = 0;
    for(i=0; aBucket[i]; i++){
      pIn = rowSetEntryMerge(aBucket[i], pIn);
      aBucket[i] = 0;
    }
    aBucket[i] = pIn;
    pIn = pNext;
  }
  pIn = 0;
  for(i=0; i<sizeof(aBucket)/sizeof(aBucket[0]); i++){
    pIn = rowSetEntryMerge(pIn, aBucket[i]);
  }
  return pIn;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdi, %rbx
leaq -0x160(%rbp), %rdi
movl $0x140, %edx            # imm = 0x140
xorl %esi, %esi
callq 0x81e0
testq %rbx, %rbx
je 0x3026f
movq 0x8(%rbx), %r14
andq $0x0, 0x8(%rbx)
xorl %eax, %eax
movl %eax, %r15d
movq -0x160(%rbp,%r15,8), %rdi
testq %rdi, %rdi
je 0x30262
movq %rbx, %rsi
callq 0x3029c
movq %rax, %rbx
andq $0x0, -0x160(%rbp,%r15,8)
leal 0x1(%r15), %eax
jmp 0x30238
movq %rbx, -0x160(%rbp,%r15,8)
movq %r14, %rbx
jmp 0x30228
xorl %ebx, %ebx
xorl %eax, %eax
cmpq $0x28, %rbx
je 0x3028e
movq -0x160(%rbp,%rbx,8), %rsi
movq %rax, %rdi
callq 0x3029c
incq %rbx
jmp 0x30273
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: rowSetListToTree
static struct RowSetEntry *rowSetListToTree(struct RowSetEntry *pList){
  int iDepth;           /* Depth of the tree so far */
  struct RowSetEntry *p;       /* Current tree root */
  struct RowSetEntry *pLeft;   /* Left subtree */

  assert( pList!=0 );
  p = pList;
  pList = p->pRight;
  p->pLeft = p->pRight = 0;
  for(iDepth=1; pList; iDepth++){
    pLeft = p;
    p = pList;
    pList = p->pRight;
    p->pLeft = pLeft;
    p->pRight = rowSetNDeepTree(&pList, iDepth);
  }
  return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rax
movq 0x8(%rdi), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
pushq $0x1
popq %rbx
leaq -0x20(%rbp), %r14
testq %rcx, %rcx
je 0x30332
movq %rcx, %r15
movq 0x8(%rcx), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, 0x10(%r15)
movq %r14, %rdi
movl %ebx, %esi
callq 0x3038a
movq %rax, 0x8(%r15)
incl %ebx
movq -0x20(%rbp), %rcx
movq %r15, %rax
jmp 0x30305
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: rowSetTreeToList
static void rowSetTreeToList(
  struct RowSetEntry *pIn,         /* Root of the input tree */
  struct RowSetEntry **ppFirst,    /* Write head of the output list here */
  struct RowSetEntry **ppLast      /* Write tail of the output list here */
){
  assert( pIn!=0 );
  if( pIn->pLeft ){
    struct RowSetEntry *p;
    rowSetTreeToList(pIn->pLeft, ppFirst, &p);
    p->pRight = pIn;
  }else{
    *ppFirst = pIn;
  }
  if( pIn->pRight ){
    rowSetTreeToList(pIn->pRight, &pIn->pRight, ppLast);
  }else{
    *ppLast = pIn;
  }
  assert( (*ppLast)->pRight==0 );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
leaq -0x20(%rbp), %r14
movq %rdi, %r15
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x3036c
movq %r14, %rdx
callq 0x3033d
movq -0x20(%rbp), %rax
movq %r15, 0x8(%rax)
jmp 0x3036f
movq %r15, (%rsi)
leaq 0x8(%r15), %rsi
movq 0x8(%r15), %rdi
testq %rdi, %rdi
jne 0x3034e
movq %r15, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: rowSetNDeepTree
static struct RowSetEntry *rowSetNDeepTree(
  struct RowSetEntry **ppList,
  int iDepth
){
  struct RowSetEntry *p;         /* Root of the new tree */
  struct RowSetEntry *pLeft;     /* Left subtree */
  if( *ppList==0 ){
    return 0;
  }
  if( iDepth==1 ){
    p = *ppList;
    *ppList = p->pRight;
    p->pLeft = p->pRight = 0;
    return p;
  }
  pLeft = rowSetNDeepTree(ppList, iDepth-1);
  p = *ppList;
  if( p==0 ){
    return pLeft;
  }
  p->pLeft = pLeft;
  *ppList = p->pRight;
  p->pRight = rowSetNDeepTree(ppList, iDepth-1);
  return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq (%rdi), %rbx
testq %rbx, %rbx
je 0x303b7
movl %esi, %r15d
movq %rdi, %r14
cmpl $0x1, %esi
jne 0x303bb
movq 0x8(%rbx), %rax
movq %rax, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
jmp 0x303f0
xorl %ebx, %ebx
jmp 0x303f0
decl %r15d
movq %r14, %rdi
movl %r15d, %esi
callq 0x3038a
movq (%r14), %rbx
testq %rbx, %rbx
je 0x303ed
movq %rax, 0x10(%rbx)
movq 0x8(%rbx), %rax
movq %rax, (%r14)
movq %r14, %rdi
movl %r15d, %esi
callq 0x3038a
movq %rax, 0x8(%rbx)
jmp 0x303f0
movq %rax, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: execSql
static int execSql(sqlite3 *db, char **pzErrMsg, const char *zSql){
  sqlite3_stmt *pStmt;
  VVA_ONLY( int rc; )
  if( !zSql ){
    return SQLITE_NOMEM;
  }
  if( SQLITE_OK!=sqlite3_prepare(db, zSql, -1, &pStmt, 0) ){
    sqlite3SetString(pzErrMsg, db, sqlite3_errmsg(db));
    return sqlite3_errcode(db);
  }
  VVA_ONLY( rc = ) sqlite3_step(pStmt);
  assert( rc!=SQLITE_ROW || (db->flags&SQLITE_CountRows) );
  return vacuumFinalize(db, pStmt, pzErrMsg);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdx, %rdx
je 0x30455
movq %rsi, %r14
movq %rdi, %rbx
pushq $-0x1
popq %rax
leaq -0x20(%rbp), %rcx
movq %rdx, %rsi
movl %eax, %edx
xorl %r8d, %r8d
callq 0x118d8
testl %eax, %eax
je 0x30463
movq %rbx, %rdi
callq 0x11788
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x20d5f
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x11748
pushq $0x7
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq -0x20(%rbp), %r15
movq %r15, %rdi
callq 0xe65d
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x305b4
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3BtreeCommit
SQLITE_PRIVATE int sqlite3BtreeCommit(Btree *p){
  int rc;
  sqlite3BtreeEnter(p);
  rc = sqlite3BtreeCommitPhaseOne(p, 0);
  if( rc==SQLITE_OK ){
    rc = sqlite3BtreeCommitPhaseTwo(p, 0);
  }
  sqlite3BtreeLeave(p);
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
movq %rax, 0x8(%rcx)
xorl %esi, %esi
callq 0xd695
testl %eax, %eax
je 0x304ad
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xd5eb
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3BtreeSetAutoVacuum
SQLITE_PRIVATE int sqlite3BtreeSetAutoVacuum(Btree *p, int autoVacuum){
#ifdef SQLITE_OMIT_AUTOVACUUM
  return SQLITE_READONLY;
#else
  BtShared *pBt = p->pBt;
  int rc = SQLITE_OK;
  u8 av = (u8)autoVacuum;

  sqlite3BtreeEnter(p);
  if( (pBt->btsFlags & BTS_PAGESIZE_FIXED)!=0 && (av ?1:0)!=pBt->autoVacuum ){
    rc = SQLITE_READONLY;
  }else{
    pBt->autoVacuum = av ?1:0;
    pBt->incrVacuum = av==2 ?1:0;
  }
  sqlite3BtreeLeave(p);
  return rc;
#endif
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movq 0x8(%rdi), %rax
movq %rcx, 0x8(%rax)
testb $0x2, 0x26(%rax)
movzbl %sil, %ecx
je 0x304e0
testl %ecx, %ecx
setne %dl
cmpb %dl, 0x21(%rax)
jne 0x304f1
testl %ecx, %ecx
setne 0x21(%rax)
cmpl $0x2, %ecx
sete 0x22(%rax)
xorl %eax, %eax
jmp 0x304f6
movl $0x8, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3BtreeGetAutoVacuum
SQLITE_PRIVATE int sqlite3BtreeGetAutoVacuum(Btree *p){
#ifdef SQLITE_OMIT_AUTOVACUUM
  return BTREE_AUTOVACUUM_NONE;
#else
  int rc;
  sqlite3BtreeEnter(p);
  rc = (
    (!p->pBt->autoVacuum)?BTREE_AUTOVACUUM_NONE:
    (!p->pBt->incrVacuum)?BTREE_AUTOVACUUM_FULL:
    BTREE_AUTOVACUUM_INCR
  );
  sqlite3BtreeLeave(p);
  return rc;
#endif
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movq 0x8(%rdi), %rax
movq %rcx, 0x8(%rax)
cmpb $0x0, 0x21(%rax)
je 0x3051b
cmpb $0x1, 0x22(%rax)
movl $0x2, %eax
sbbl $0x0, %eax
jmp 0x3051d
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: execExecSql
static int execExecSql(sqlite3 *db, char **pzErrMsg, const char *zSql){
  sqlite3_stmt *pStmt;
  int rc;

  rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0);
  if( rc!=SQLITE_OK ) return rc;

  while( SQLITE_ROW==sqlite3_step(pStmt) ){
    rc = execSql(db, pzErrMsg, (char*)sqlite3_column_text(pStmt, 0));
    if( rc!=SQLITE_OK ){
      vacuumFinalize(db, pStmt, pzErrMsg);
      return rc;
    }
  }

  return vacuumFinalize(db, pStmt, pzErrMsg);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
pushq $-0x1
popq %rax
leaq -0x28(%rbp), %rcx
movq %rdx, %rsi
movl %eax, %edx
xorl %r8d, %r8d
callq 0x118d8
movl %eax, %r12d
testl %eax, %eax
jne 0x3058d
movq -0x28(%rbp), %r15
movq %r15, %rdi
callq 0xe65d
cmpl $0x64, %eax
jne 0x3059d
movq %r15, %rdi
xorl %esi, %esi
callq 0xf68b
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x303fe
testl %eax, %eax
je 0x30553
movl %eax, %r12d
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x305b4
movl %r12d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x305b4
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: vacuumFinalize
static int vacuumFinalize(sqlite3 *db, sqlite3_stmt *pStmt, char **pzErrMsg){
  int rc;
  rc = sqlite3VdbeFinalize((Vdbe*)pStmt);
  if( rc ){
    sqlite3SetString(pzErrMsg, db, sqlite3_errmsg(db));
  }
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0xdc20
movl %eax, %ebx
testl %eax, %eax
je 0x305ea
movq %r15, %rdi
callq 0x11788
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x20d5f
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: growVTrans
static int growVTrans(sqlite3 *db){
  const int ARRAY_INCR = 5;

  /* Grow the sqlite3.aVTrans array if required */
  if( (db->nVTrans%ARRAY_INCR)==0 ){
    VTable **aVTrans;
    int nBytes = sizeof(sqlite3_vtab *) * (db->nVTrans + ARRAY_INCR);
    aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes);
    if( !aVTrans ){
      return SQLITE_NOMEM;
    }
    memset(&aVTrans[db->nVTrans], 0, sizeof(sqlite3_vtab *)*ARRAY_INCR);
    db->aVTrans = aVTrans;
  }

  return SQLITE_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl 0x1a4(%rdi), %ecx
pushq $0x5
popq %rsi
movl %ecx, %eax
cltd
idivl %esi
xorl %ebx, %ebx
testl %edx, %edx
jne 0x30652
movq %rdi, %r14
leal 0x28(,%rcx,8), %edx
movq 0x1c8(%rdi), %rsi
callq 0x157c3
testq %rax, %rax
je 0x3064f
movslq 0x1a4(%r14), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax,%rcx,8)
movups %xmm0, (%rax,%rcx,8)
andq $0x0, 0x20(%rax,%rcx,8)
movq %rax, 0x1c8(%r14)
jmp 0x30652
pushq $0x7
popq %rbx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: growOpArray
static int growOpArray(Vdbe *p){
  VdbeOp *pNew;
  int nNew = (p->nOpAlloc ? p->nOpAlloc*2 : (int)(1024/sizeof(Op)));
  pNew = sqlite3DbRealloc(p->db, p->aOp, nNew*sizeof(Op));
  if( pNew ){
    p->nOpAlloc = sqlite3DbMallocSize(p->db, pNew)/sizeof(Op);
    p->aOp = pNew;
  }
  return (pNew ? SQLITE_OK : SQLITE_NOMEM);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x38(%rdi), %eax
imull $0x30, %eax, %ecx
testl %eax, %eax
movl $0x3f0, %edx            # imm = 0x3F0
cmovnel %ecx, %edx
movq (%rdi), %rdi
movq 0x8(%rbx), %rsi
callq 0x157c3
testq %rax, %rax
je 0x31072
movq %rax, %r14
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x155aa
cltq
xorl %ecx, %ecx
pushq $0x18
popq %rsi
xorl %edx, %edx
divq %rsi
movl %eax, 0x38(%rbx)
movq %r14, 0x8(%rbx)
jmp 0x31075
pushq $0x7
popq %rcx
movl %ecx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3KeyInfoAlloc
SQLITE_PRIVATE KeyInfo *sqlite3KeyInfoAlloc(sqlite3 *db, int N){
  KeyInfo *p = sqlite3DbMallocZero(db, 
                   sizeof(KeyInfo) + (N+1)*(sizeof(CollSeq*)+1));
  if( p ){
    p->aSortOrder = (u8*)&p->aColl[N+1];
    p->nField = (u16)N;
    p->enc = ENC(db);
    p->db = db;
  }
  return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
leal (%r14,%r14,8), %esi
addl $0x29, %esi
callq 0xf4ae
testq %rax, %rax
je 0x310c3
leal 0x1(%r14), %ecx
movslq %ecx, %rcx
leaq (%rax,%rcx,8), %rcx
addq $0x18, %rcx
movq %rcx, 0x10(%rax)
movw %r14w, 0xa(%rax)
movq 0x20(%rbx), %rcx
movq 0x18(%rcx), %rcx
movb 0x71(%rcx), %cl
movb %cl, 0x8(%rax)
movq %rbx, (%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3DbStrNDup
SQLITE_PRIVATE char *sqlite3DbStrNDup(sqlite3 *db, const char *z, int n){
  char *zNew;
  if( z==0 ){
    return 0;
  }
  assert( (n&0x7fffffff)==n );
  zNew = sqlite3DbMallocRaw(db, n+1);
  if( zNew ){
    memcpy(zNew, z, n);
    zNew[n] = 0;
  }
  return zNew;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x31106
movl %edx, %r15d
movq %rsi, %r14
leal 0x1(%r15), %esi
callq 0x103b4
testq %rax, %rax
je 0x31106
movq %rax, %rbx
movslq %r15d, %r15
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x82c0
movb $0x0, (%rbx,%r15)
jmp 0x31108
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ReadSchema
SQLITE_PRIVATE int sqlite3ReadSchema(Parse *pParse){
  int rc = SQLITE_OK;
  sqlite3 *db = pParse->db;
  assert( sqlite3_mutex_held(db->mutex) );
  if( !db->init.busy ){
    rc = sqlite3Init(db, &pParse->zErrMsg);
  }
  if( rc!=SQLITE_OK ){
    pParse->rc = rc;
    pParse->nErr++;
  }
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movq (%rdi), %rdi
xorl %ebx, %ebx
cmpb $0x0, 0x99(%rdi)
jne 0x3126f
leaq 0x8(%r14), %rsi
callq 0x31276
testl %eax, %eax
je 0x3126f
movl %eax, 0x18(%r14)
incl 0x50(%r14)
movl %eax, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3Init
SQLITE_PRIVATE int sqlite3Init(sqlite3 *db, char **pzErrMsg){
  int i, rc;
  int commit_internal = !(db->flags&SQLITE_InternChanges);
  
  assert( sqlite3_mutex_held(db->mutex) );
  rc = SQLITE_OK;
  db->init.busy = 1;
  for(i=0; rc==SQLITE_OK && i<db->nDb; i++){
    if( DbHasProperty(db, i, DB_SchemaLoaded) || i==1 ) continue;
    rc = sqlite3InitOne(db, i, pzErrMsg);
    if( rc ){
      sqlite3ResetOneSchema(db, i);
    }
  }

  /* Once all the other databases have been initialized, load the schema
  ** for the TEMP database. This is loaded last, as the TEMP database
  ** schema may contain references to objects in other databases.
  */
#ifndef SQLITE_OMIT_TEMPDB
  if( rc==SQLITE_OK && ALWAYS(db->nDb>1)
                    && !DbHasProperty(db, 1, DB_SchemaLoaded) ){
    rc = sqlite3InitOne(db, 1, pzErrMsg);
    if( rc ){
      sqlite3ResetOneSchema(db, 1);
    }
  }
#endif

  db->init.busy = 0;
  if( rc==SQLITE_OK && commit_internal ){
    sqlite3CommitInternalChanges(db);
  }

  return rc; 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, -0x38(%rbp)
movq %rdi, %rbx
movl 0x2c(%rdi), %eax
movl %eax, -0x2c(%rbp)
movb $0x1, 0x99(%rdi)
xorl %r12d, %r12d
pushq $0x18
popq %r14
xorl %r15d, %r15d
testl %r15d, %r15d
jne 0x31332
movslq 0x28(%rbx), %rax
cmpq %rax, %r12
jge 0x312fe
movq 0x20(%rbx), %rax
movq (%rax,%r14), %rax
cmpq $0x1, %r12
sete %cl
orb 0x72(%rax), %cl
xorl %r15d, %r15d
testb $0x1, %cl
jne 0x312f5
movq %rbx, %rdi
movl %r12d, %esi
movq -0x38(%rbp), %rdx
callq 0x31361
testl %eax, %eax
je 0x312f5
movl %eax, %r13d
movq %rbx, %rdi
movl %r12d, %esi
callq 0x2a189
movl %r13d, %r15d
incq %r12
addq $0x20, %r14
jmp 0x312a5
cmpl $0x2, %eax
jl 0x3133b
movq 0x20(%rbx), %rax
movq 0x38(%rax), %rax
testb $0x1, 0x72(%rax)
jne 0x3133b
pushq $0x1
popq %rsi
movq %rbx, %rdi
movq -0x38(%rbp), %rdx
callq 0x31361
testl %eax, %eax
je 0x3133b
movl %eax, %r15d
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x2a189
movb $0x0, 0x99(%rbx)
jmp 0x3134f
xorl %r15d, %r15d
movb $0x0, 0x99(%rbx)
testb $0x2, -0x2c(%rbp)
jne 0x3134f
andb $-0x3, 0x2c(%rbx)
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_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3BtreeSetCacheSize
SQLITE_PRIVATE int sqlite3BtreeSetCacheSize(Btree *p, int mxPage){
  BtShared *pBt = p->pBt;
  assert( sqlite3_mutex_held(p->db->mutex) );
  sqlite3BtreeEnter(p);
  sqlite3PagerSetCachesize(pBt->pPager, mxPage);
  sqlite3BtreeLeave(p);
  return SQLITE_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
movq %rax, 0x8(%rcx)
movq (%rcx), %rdi
popq %rbp
jmp 0x182f5
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3VtabUnlockList
SQLITE_PRIVATE void sqlite3VtabUnlockList(sqlite3 *db){
  VTable *p = db->pDisconnect;
  db->pDisconnect = 0;

  assert( sqlite3BtreeHoldsAllMutexes(db) );
  assert( sqlite3_mutex_held(db->mutex) );

  if( p ){
    sqlite3ExpirePreparedStatements(db);
    do {
      VTable *pNext = p->pNext;
      sqlite3VtabUnlock(p);
      p = pNext;
    }while( p );
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x1d0(%rdi), %rbx
andq $0x0, 0x1d0(%rdi)
testq %rbx, %rbx
je 0x316f8
callq 0x1108b
movq 0x28(%rbx), %r14
movq %rbx, %rdi
callq 0x1fc99
movq %r14, %rbx
testq %r14, %r14
jne 0x316e4
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3CollapseDatabaseArray
SQLITE_PRIVATE void sqlite3CollapseDatabaseArray(sqlite3 *db){
  int i, j;
  for(i=j=2; i<db->nDb; i++){
    struct Db *pDb = &db->aDb[i];
    if( pDb->pBt==0 ){
      sqlite3DbFree(db, pDb->zName);
      pDb->zName = 0;
      continue;
    }
    if( j<i ){
      db->aDb[j] = db->aDb[i];
    }
    j++;
  }
  memset(&db->aDb[j], 0, (db->nDb-j)*sizeof(db->aDb[j]));
  db->nDb = j;
  if( db->nDb<=2 && db->aDb!=db->aDbStatic ){
    memcpy(db->aDbStatic, db->aDb, 2*sizeof(db->aDb[0]));
    sqlite3DbFree(db, db->aDb);
    db->aDb = db->aDbStatic;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rax
pushq $0x2
popq %r14
pushq $0x2
popq %r15
pushq $0x40
popq %r12
movq %rdi, -0x30(%rbp)
movslq 0x28(%rax), %rdx
movq 0x20(%rax), %rdi
movslq %r14d, %r13
cmpq %rdx, %r15
jge 0x31776
leaq (%rdi,%r12), %rbx
cmpq $0x0, 0x8(%rdi,%r12)
je 0x3175a
cmpq %r13, %r15
jle 0x31755
shlq $0x5, %r13
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups %xmm1, 0x10(%rdi,%r13)
movups %xmm0, (%rdi,%r13)
incl %r14d
jmp 0x3176d
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x968b
movq -0x30(%rbp), %rax
andq $0x0, (%rbx)
incq %r15
addq $0x20, %r12
jmp 0x3171e
movq %r13, %rax
shlq $0x5, %rax
addq %rax, %rdi
subq %r13, %rdx
shlq $0x5, %rdx
xorl %esi, %esi
callq 0x81e0
movq -0x30(%rbp), %rdi
movl %r13d, 0x28(%rdi)
cmpl $0x2, %r13d
jg 0x317d6
movq 0x20(%rdi), %rsi
leaq 0x2c0(%rdi), %rbx
cmpq %rbx, %rsi
je 0x317d6
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups 0x20(%rsi), %xmm2
movups 0x30(%rsi), %xmm3
movups %xmm3, 0x30(%rbx)
movups %xmm2, 0x20(%rbx)
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
movq %rdi, %r14
callq 0x968b
movq %rbx, 0x20(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqliteDeleteColumnNames
static void sqliteDeleteColumnNames(sqlite3 *db, Table *pTable){
  int i;
  Column *pCol;
  assert( pTable!=0 );
  if( (pCol = pTable->aCol)!=0 ){
    for(i=0; i<pTable->nCol; i++, pCol++){
      sqlite3DbFree(db, pCol->zName);
      sqlite3ExprDelete(db, pCol->pDflt);
      sqlite3DbFree(db, pCol->zDflt);
      sqlite3DbFree(db, pCol->zType);
      sqlite3DbFree(db, pCol->zColl);
    }
    sqlite3DbFree(db, pTable->aCol);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x8(%rsi), %r15
testq %r15, %r15
je 0x31864
movq %rsi, %r14
movq %rdi, %rbx
xorl %r12d, %r12d
movswl 0x42(%r14), %eax
cmpl %eax, %r12d
jge 0x31850
movq (%r15), %rsi
movq %rbx, %rdi
callq 0x968b
movq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0x2f476
movq 0x10(%r15), %rsi
movq %rbx, %rdi
callq 0x968b
movq 0x18(%r15), %rsi
movq %rbx, %rdi
callq 0x968b
movq 0x20(%r15), %rsi
movq %rbx, %rdi
callq 0x968b
incl %r12d
addq $0x30, %r15
jmp 0x31802
movq 0x8(%r14), %rsi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x968b
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: fkTriggerDelete
static void fkTriggerDelete(sqlite3 *dbMem, Trigger *p){
  if( p ){
    TriggerStep *pStep = p->step_list;
    sqlite3ExprDelete(dbMem, pStep->pWhere);
    sqlite3ExprListDelete(dbMem, pStep->pExprList);
    sqlite3SelectDelete(dbMem, pStep->pSelect);
    sqlite3ExprDelete(dbMem, p->pWhen);
    sqlite3DbFree(dbMem, p);
  }
}

// Assembly:
testq %rsi, %rsi
je 0x318c8
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x38(%rsi), %r15
movq 0x28(%r15), %rsi
callq 0x2f476
movq 0x30(%r15), %rsi
movq %r14, %rdi
callq 0x2f527
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x2f500
movq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0x2f476
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x968b
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3Utf8Read
SQLITE_PRIVATE u32 sqlite3Utf8Read(
  const unsigned char **pz    /* Pointer to string from which to read char */
){
  unsigned int c;

  /* Same as READ_UTF8() above but without the zTerm parameter.
  ** For this routine, we assume the UTF8 string is always zero-terminated.
  */
  c = *((*pz)++);
  if( c>=0xc0 ){
    c = sqlite3Utf8Trans1[c-0xc0];
    while( (*(*pz) & 0xc0)==0x80 ){
      c = (c<<6) + (0x3f & *((*pz)++));
    }
    if( c<0x80
        || (c&0xFFFFF800)==0xD800
        || (c&0xFFFFFFFE)==0xFFFE ){  c = 0xFFFD; }
  }
  return c;
}

// Assembly:
movq (%rdi), %rax
leaq 0x1(%rax), %rdx
movq %rdx, (%rdi)
movzbl (%rax), %eax
cmpl $0xc0, %eax
jb 0x3193e
pushq %rbp
movq %rsp, %rbp
addl $0xffffff40, %eax       # imm = 0xFFFFFF40
leaq 0x36ab3(%rip), %rcx     # 0x683a0
movzbl (%rax,%rcx), %ecx
movb (%rdx), %al
andb $-0x40, %al
negb %al
jno 0x31910
shll $0x6, %ecx
leaq 0x1(%rdx), %rax
movq %rax, (%rdi)
movzbl (%rdx), %edx
andl $0x3f, %edx
orl %edx, %ecx
movq %rax, %rdx
jmp 0x318f1
movl %ecx, %eax
andl $0xfffff800, %eax       # imm = 0xFFFFF800
movl %ecx, %edx
andl $-0x2, %edx
cmpl $0xd800, %eax           # imm = 0xD800
movl $0xfffd, %esi           # imm = 0xFFFD
movl %ecx, %eax
cmovel %esi, %eax
cmpl $0x80, %ecx
cmovbl %esi, %eax
cmpl $0xfffe, %edx           # imm = 0xFFFE
cmovel %esi, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3VdbeSetNumCols
SQLITE_PRIVATE void sqlite3VdbeSetNumCols(Vdbe *p, int nResColumn){
  Mem *pColName;
  int n;
  sqlite3 *db = p->db;

  releaseMemArray(p->aColName, p->nResColumn*COLNAME_N);
  sqlite3DbFree(db, p->aColName);
  n = nResColumn*COLNAME_N;
  p->nResColumn = (u16)nResColumn;
  p->aColName = pColName = (Mem*)sqlite3DbMallocZero(db, sizeof(Mem)*n );
  if( p->aColName==0 ) return;
  while( n-- > 0 ){
    pColName->flags = MEM_Null;
    pColName->db = p->db;
    pColName++;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movq (%rdi), %r15
movq 0x20(%rdi), %rdi
movzwl 0x48(%r14), %esi
addl %esi, %esi
callq 0x1fb19
movq 0x20(%r14), %rsi
movq %r15, %rdi
callq 0x968b
movw %bx, 0x48(%r14)
imull $0x70, %ebx, %esi
movq %r15, %rdi
callq 0xf4ae
movq %rax, 0x20(%r14)
testq %rax, %rax
je 0x31df1
addl %ebx, %ebx
testl %ebx, %ebx
jle 0x31df1
decl %ebx
movw $0x1, 0x24(%rax)
movq (%r14), %rcx
movq %rcx, (%rax)
addq $0x38, %rax
jmp 0x31dd9
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3Utf8CharLen
SQLITE_PRIVATE int sqlite3Utf8CharLen(const char *zIn, int nByte){
  int r = 0;
  const u8 *z = (const u8*)zIn;
  const u8 *zTerm;
  if( nByte>=0 ){
    zTerm = &z[nByte];
  }else{
    zTerm = (const u8*)(-1);
  }
  assert( z<=zTerm );
  while( *z!=0 && z<zTerm ){
    SQLITE_SKIP_UTF8(z);
    r++;
  }
  return r;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %esi, %eax
addq %rdi, %rax
testl %esi, %esi
movabsq $-0x1, %rcx
cmovnsq %rax, %rcx
xorl %eax, %eax
movb (%rdi), %dl
testb %dl, %dl
je 0x31e79
cmpq %rcx, %rdi
jae 0x31e79
cmpb $-0x40, %dl
jb 0x31e72
movb 0x1(%rdi), %dl
incq %rdi
andb $-0x40, %dl
negb %dl
jo 0x31e63
jmp 0x31e75
incq %rdi
incl %eax
jmp 0x31e53
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3DeleteTriggerStep
SQLITE_PRIVATE void sqlite3DeleteTriggerStep(sqlite3 *db, TriggerStep *pTriggerStep){
  while( pTriggerStep ){
    TriggerStep * pTmp = pTriggerStep;
    pTriggerStep = pTriggerStep->pNext;

    sqlite3ExprDelete(db, pTmp->pWhere);
    sqlite3ExprListDelete(db, pTmp->pExprList);
    sqlite3SelectDelete(db, pTmp->pSelect);
    sqlite3IdListDelete(db, pTmp->pIdList);

    sqlite3DbFree(db, pTmp);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
testq %r14, %r14
je 0x31ed4
movq 0x28(%r14), %rsi
movq 0x40(%r14), %r15
movq %rbx, %rdi
callq 0x2f476
movq 0x30(%r14), %rsi
movq %rbx, %rdi
callq 0x2f527
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x2f500
movq 0x38(%r14), %rsi
movq %rbx, %rdi
callq 0x2f6b3
movq %rbx, %rdi
movq %r14, %rsi
callq 0x968b
movq %r15, %r14
jmp 0x31e8b
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: yy_pop_parser_stack
static int yy_pop_parser_stack(yyParser *pParser){
  YYCODETYPE yymajor;
  yyStackEntry *yytos = &pParser->yystack[pParser->yyidx];

  /* There is no mechanism by which the parser stack can be popped below
  ** empty in SQLite.  */
  if( NEVER(pParser->yyidx<0) ) return 0;
#ifndef NDEBUG
  if( yyTraceFILE && pParser->yyidx>=0 ){
    fprintf(yyTraceFILE,"%sPopping %s\n",
      yyTracePrompt,
      yyTokenName[yytos->major]);
  }
#endif
  yymajor = yytos->major;
  yy_destructor(pParser, yymajor, &yytos->minor);
  pParser->yyidx--;
  return yymajor;
}

// Assembly:
movslq (%rdi), %rax
testq %rax, %rax
js 0x35f69
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
shlq $0x5, %rax
leaq (%rdi,%rax), %rdx
addq $0x18, %rdx
movzbl -0x6(%rdx), %esi
callq 0x35e92
decl (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3Savepoint
SQLITE_PRIVATE void sqlite3Savepoint(Parse *pParse, int op, Token *pName){
  char *zName = sqlite3NameFromToken(pParse->db, pName);
  if( zName ){
    Vdbe *v = sqlite3GetVdbe(pParse);
#ifndef SQLITE_OMIT_AUTHORIZATION
    static const char * const az[] = { "BEGIN", "RELEASE", "ROLLBACK" };
    assert( !SAVEPOINT_BEGIN && SAVEPOINT_RELEASE==1 && SAVEPOINT_ROLLBACK==2 );
#endif
    if( !v || sqlite3AuthCheck(pParse, SQLITE_SAVEPOINT, az[op], zName, 0) ){
      sqlite3DbFree(pParse->db, zName);
      return;
    }
    sqlite3VdbeAddOp4(v, OP_Savepoint, op, 0, 0, zName, P4_DYNAMIC);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r15
movq (%rdi), %rdi
movq %rdx, %rsi
callq 0x421eb
testq %rax, %rax
je 0x35ff6
movq %rax, %r14
movq %r15, %rdi
callq 0x41ef4
testq %rax, %rax
je 0x35fc6
movq %rax, %r12
movl %ebx, %eax
leaq 0x348c6(%rip), %rcx     # 0x6a870
movslq (%rcx,%rax,4), %rdx
addq %rcx, %rdx
pushq $0x20
popq %rsi
movq %r15, %rdi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x42151
testl %eax, %eax
je 0x35fdd
movq (%r15), %rdi
movq %r14, %rsi
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x968b
orl $-0x1, (%rsp)
pushq $0x2
popq %rsi
movq %r12, %rdi
movl %ebx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %r14, %r9
callq 0x41fd2
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3AddDefaultValue
SQLITE_PRIVATE void sqlite3AddDefaultValue(Parse *pParse, ExprSpan *pSpan){
  Table *p;
  Column *pCol;
  sqlite3 *db = pParse->db;
  p = pParse->pNewTable;
  if( p!=0 ){
    pCol = &(p->aCol[p->nCol-1]);
    if( !sqlite3ExprIsConstantOrFunction(pSpan->pExpr) ){
      sqlite3ErrorMsg(pParse, "default value of column [%s] is not constant",
          pCol->zName);
    }else{
      /* A copy of pExpr is used instead of the original, as pExpr contains
      ** tokens that point to volatile memory. The 'span' of the expression
      ** is required by pragma table_info.
      */
      sqlite3ExprDelete(db, pCol->pDflt);
      pCol->pDflt = sqlite3ExprDup(db, pSpan->pExpr, EXPRDUP_REDUCE);
      sqlite3DbFree(db, pCol->zDflt);
      pCol->zDflt = sqlite3DbStrNDup(db, (char*)pSpan->zStart,
                                     (int)(pSpan->zEnd - pSpan->zStart));
    }
  }
  sqlite3ExprDelete(db, pSpan->pExpr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq (%rdi), %r14
movq 0x238(%rdi), %rax
testq %rax, %rax
je 0x369f6
movq %rdi, %r15
movswq 0x42(%rax), %rcx
imulq $0x30, %rcx, %r12
addq 0x8(%rax), %r12
movq (%rbx), %rdi
pushq $0x2
popq %rsi
callq 0x4705a
testl %eax, %eax
je 0x369e0
movq -0x28(%r12), %rsi
movq %r14, %rdi
callq 0x2f476
movq (%rbx), %rsi
pushq $0x1
popq %rdx
movq %r14, %rdi
callq 0x440d6
movq %rax, -0x28(%r12)
movq -0x20(%r12), %rsi
movq %r14, %rdi
callq 0x968b
movq 0x8(%rbx), %rsi
movl 0x10(%rbx), %edx
subl %esi, %edx
movq %r14, %rdi
callq 0x310c8
movq %rax, -0x20(%r12)
jmp 0x369f6
movq -0x30(%r12), %rdx
leaq 0x369e0(%rip), %rsi     # 0x6d3cc
movq %r15, %rdi
xorl %eax, %eax
callq 0x104d6
movq (%rbx), %rsi
movq %r14, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2f476
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3PExpr
SQLITE_PRIVATE Expr *sqlite3PExpr(
  Parse *pParse,          /* Parsing context */
  int op,                 /* Expression opcode */
  Expr *pLeft,            /* Left operand */
  Expr *pRight,           /* Right operand */
  const Token *pToken     /* Argument token */
){
  Expr *p;
  if( op==TK_AND && pLeft && pRight ){
    /* Take advantage of short-circuit false optimization for AND */
    p = sqlite3ExprAnd(pParse->db, pLeft, pRight);
  }else{
    p = sqlite3ExprAlloc(pParse->db, op, pToken, 1);
    sqlite3ExprAttachSubtrees(pParse->db, p, pLeft, pRight);
  }
  if( p ) {
    sqlite3ExprCheckHeight(pParse, p->nHeight);
  }
  return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rdi, %rbx
cmpl $0x45, %esi
setne %al
testq %rdx, %rdx
sete %cl
testq %r14, %r14
sete %dl
orb %cl, %dl
movq (%rdi), %rdi
orb %al, %dl
jne 0x36a48
movq %r15, %rsi
movq %r14, %rdx
callq 0x45ef0
movq %rax, %r12
jmp 0x36a67
pushq $0x1
popq %rcx
movq %r8, %rdx
callq 0x4606c
movq %rax, %r12
movq (%rbx), %rdi
movq %rax, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x461a6
testq %r12, %r12
je 0x36a79
movl 0x28(%r12), %esi
movq %rbx, %rdi
callq 0x42954
movq %r12, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3AddCheckConstraint
SQLITE_PRIVATE void sqlite3AddCheckConstraint(
  Parse *pParse,    /* Parsing context */
  Expr *pCheckExpr  /* The check expression */
){
#ifndef SQLITE_OMIT_CHECK
  Table *pTab = pParse->pNewTable;
  if( pTab && !IN_DECLARE_VTAB ){
    pTab->pCheck = sqlite3ExprListAppend(pParse, pTab->pCheck, pCheckExpr);
    if( pParse->constraintName.n ){
      sqlite3ExprListSetName(pParse, pTab->pCheck, &pParse->constraintName, 1);
    }
  }else
#endif
  {
    sqlite3ExprDelete(pParse->db, pCheckExpr);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rdx
movq %rdi, %rbx
movq 0x238(%rdi), %r14
testq %r14, %r14
je 0x3779f
cmpb $0x0, 0x201(%rbx)
je 0x377ae
movq (%rbx), %rdi
movq %rdx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x2f476
movq 0x30(%r14), %rsi
movq %rbx, %rdi
callq 0x3b491
movq %rax, 0x30(%r14)
cmpl $0x0, 0x1b8(%rbx)
je 0x377e0
leaq 0x1b0(%rbx), %rdx
pushq $0x1
popq %rcx
movq %rbx, %rdi
movq %rax, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x3b53e
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprListAppend
SQLITE_PRIVATE ExprList *sqlite3ExprListAppend(
  Parse *pParse,          /* Parsing context */
  ExprList *pList,        /* List to which to append. Might be NULL */
  Expr *pExpr             /* Expression to be appended. Might be NULL */
){
  sqlite3 *db = pParse->db;
  if( pList==0 ){
    pList = sqlite3DbMallocZero(db, sizeof(ExprList) );
    if( pList==0 ){
      goto no_mem;
    }
    pList->a = sqlite3DbMallocRaw(db, sizeof(pList->a[0]));
    if( pList->a==0 ) goto no_mem;
  }else if( (pList->nExpr & (pList->nExpr-1))==0 ){
    struct ExprList_item *a;
    assert( pList->nExpr>0 );
    a = sqlite3DbRealloc(db, pList->a, pList->nExpr*2*sizeof(pList->a[0]));
    if( a==0 ){
      goto no_mem;
    }
    pList->a = a;
  }
  assert( pList->a!=0 );
  if( 1 ){
    struct ExprList_item *pItem = &pList->a[pList->nExpr++];
    memset(pItem, 0, sizeof(*pItem));
    pItem->pExpr = pExpr;
  }
  return pList;

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq (%rdi), %r15
testq %rsi, %rsi
je 0x3b4cf
movq %rsi, %rbx
movl (%rsi), %edx
leal -0x1(%rdx), %ecx
movq 0x8(%rsi), %rax
testl %ecx, %edx
jne 0x3b4f6
shll $0x6, %edx
movq %r15, %rdi
movq %rax, %rsi
callq 0x157c3
testq %rax, %rax
je 0x3b518
movq %rax, 0x8(%rbx)
jmp 0x3b4f6
pushq $0x10
popq %rsi
movq %r15, %rdi
callq 0xf4ae
testq %rax, %rax
je 0x3b516
movq %rax, %rbx
pushq $0x20
popq %rsi
movq %r15, %rdi
callq 0x103b4
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x3b518
movslq (%rbx), %rcx
leal 0x1(%rcx), %edx
movl %edx, (%rbx)
shlq $0x5, %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax,%rcx)
andq $0x0, 0x18(%rax,%rcx)
movq %r14, (%rax,%rcx)
jmp 0x3b530
xorl %ebx, %ebx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2f476
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2f527
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ExprListSetName
SQLITE_PRIVATE void sqlite3ExprListSetName(
  Parse *pParse,          /* Parsing context */
  ExprList *pList,        /* List to which to add the span. */
  Token *pName,           /* Name to be added */
  int dequote             /* True to cause the name to be dequoted */
){
  assert( pList!=0 || pParse->db->mallocFailed!=0 );
  if( pList ){
    struct ExprList_item *pItem;
    assert( pList->nExpr>0 );
    pItem = &pList->a[pList->nExpr-1];
    assert( pItem->zName==0 );
    pItem->zName = sqlite3DbStrNDup(pParse->db, pName->z, pName->n);
    if( dequote && pItem->zName ) sqlite3Dequote(pItem->zName);
  }
}

// Assembly:
testq %rsi, %rsi
je 0x3b587
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq 0x8(%rsi), %r14
movslq (%rsi), %r15
shlq $0x5, %r15
movq (%rdi), %rdi
movq (%rdx), %rsi
movl 0x8(%rdx), %edx
callq 0x310c8
movq %rax, -0x18(%r14,%r15)
testl %ebx, %ebx
sete %cl
testq %rax, %rax
sete %dl
orb %cl, %dl
leaq 0x8(%rsp), %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
je 0x3b588
retq
movq %rax, %rdi
jmp 0x4221d
// File: /workspace/github_c_makefile_star2_O2/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3Expr
SQLITE_PRIVATE Expr *sqlite3Expr(
  sqlite3 *db,            /* Handle for sqlite3DbMallocZero() (may be null) */
  int op,                 /* Expression opcode */
  const char *zToken      /* Token argument.  Might be NULL */
){
  Token x;
  x.z = zToken;
  x.n = zToken ? sqlite3Strlen30(zToken) : 0;
  return sqlite3ExprAlloc(db, op, &x, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r14
movq %rdx, -0x20(%rbp)
testq %rdx, %rdx
je 0x3b5b3
movq %rdx, %rdi
callq 0x8f8e
jmp 0x3b5b5
xorl %eax, %eax
leaq -0x20(%rbp), %rdx
movl %eax, 0x8(%rdx)
movq %r14, %rdi
movl %ebx, %esi
xorl %ecx, %ecx
callq 0x4606c
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq