LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0x4ab38
movzbl (%rdi), %eax
cmpl $0x9d, %eax
jne 0x4ab15
movq 0x10(%rdi), %rdi
jmp 0x4aaff
cmpl $0x9c, %eax
jne 0x4ab34
movq 0x10(%rdi), %rdi
leaq -0xc(%rbp), %rsi
callq 0x4aaf6
testl %eax, %eax
je 0x4ab34
xorl %eax, %eax
subl -0xc(%rbp), %eax
jmp 0x4ab3b
xorl %eax, %eax
jmp 0x4ab42
movl 0x8(%rdi), %eax
movl %eax, (%rbx)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
pushq %rax
movq %rdi, %rbx
movl $0x0, -0xc(%rbp)
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x4ab6c
movl 0x28(%rax), %eax
testl %eax, %eax
jle 0x4ab6c
movl %eax, -0xc(%rbp)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x4ab83
movl 0x28(%rax), %eax
movl -0xc(%rbp), %ecx
cmpl %ecx, %eax
cmovgl %eax, %ecx
movl %ecx, -0xc(%rbp)
testb $0x8, 0x3(%rbx)
movq 0x20(%rbx), %rdi
jne 0x4abc6
testq %rdi, %rdi
je 0x4abcf
movslq (%rdi), %rax
testq %rax, %rax
jle 0x4abcf
movq 0x8(%rdi), %rdx
movl -0xc(%rbp), %ecx
shlq $0x5, %rax
xorl %esi, %esi
movq (%rdx,%rsi), %rdi
testq %rdi, %rdi
je 0x4abb8
movl 0x28(%rdi), %edi
cmpl %ecx, %edi
cmovgl %edi, %ecx
addq $0x20, %rsi
cmpq %rsi, %rax
jne 0x4aba7
movl %ecx, -0xc(%rbp)
jmp 0x4abcf
leaq -0xc(%rbp), %rsi
callq 0x4abde
movl -0xc(%rbp), %eax
incl %eax
movl %eax, 0x28(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: 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:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
testq %r14, %r14
je 0x4ac61
movq 0x30(%r14), %rax
testq %rax, %rax
je 0x4ac02
movl 0x28(%rax), %eax
cmpl (%rbx), %eax
jle 0x4ac02
movl %eax, (%rbx)
movq 0x40(%r14), %rax
testq %rax, %rax
je 0x4ac14
movl 0x28(%rax), %eax
cmpl (%rbx), %eax
jle 0x4ac14
movl %eax, (%rbx)
movq 0x68(%r14), %rax
testq %rax, %rax
je 0x4ac26
movl 0x28(%rax), %eax
cmpl (%rbx), %eax
jle 0x4ac26
movl %eax, (%rbx)
movq 0x70(%r14), %rax
testq %rax, %rax
je 0x4ac38
movl 0x28(%rax), %eax
cmpl (%rbx), %eax
jle 0x4ac38
movl %eax, (%rbx)
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x4ac66
movq 0x38(%r14), %rdi
movq %rbx, %rsi
callq 0x4ac66
movq 0x48(%r14), %rdi
movq %rbx, %rsi
callq 0x4ac66
movq 0x50(%r14), %r14
jmp 0x4abeb
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4ac9b
cmpl $0x0, (%rdi)
jle 0x4ac9b
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rdi), %rax
xorl %ecx, %ecx
movq (%rax), %rdx
testq %rdx, %rdx
je 0x4ac8b
movl 0x28(%rdx), %edx
cmpl (%rsi), %edx
jle 0x4ac8b
movl %edx, (%rsi)
incq %rcx
movslq (%rdi), %rdx
addq $0x20, %rax
cmpq %rdx, %rcx
jl 0x4ac7a
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4ad12
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
orl $0x20, %eax
movw %ax, 0xa(%rsi)
movq 0x28(%rsi), %r14
cmpb $0x0, (%r14)
je 0x4ad0a
movq 0x10(%rdi), %rbx
leaq 0x8(%r14), %r15
xorl %r12d, %r12d
movq 0x20(%r15), %rax
testq %rax, %rax
je 0x4acfa
testb $0x2, 0x46(%rax)
je 0x4acfa
movq 0x28(%r15), %rdx
movq %rdx, %rcx
movq 0x50(%rdx), %rdx
testq %rdx, %rdx
jne 0x4acde
movswl 0x42(%rax), %esi
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0x4ad15
incl %r12d
addq $0x68, %r15
movzbl (%r14), %eax
cmpl %eax, %r12d
jb 0x4accb
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4adea
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 0x4adea
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 0x4adf9
movq %r15, %rdi
movq %rax, %rsi
callq 0x1010d
movq %rax, 0x18(%rbx,%r14)
movq %r13, %rdi
callq 0x4b00f
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 0x4b095
testq %rax, %rax
je 0x4addc
movq (%rax), %rsi
movq %r15, %rdi
callq 0x1010d
movq %rax, 0x20(%rbx,%r14)
addq $0x20, %r12
addq $0x30, %r14
cmpq %r14, -0x30(%rbp)
jne 0x4ad7a
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: 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
testq %rdi, %rdi
je 0x4b02b
movzbl (%rdi), %eax
cmpl $0x5c, %eax
je 0x4b025
cmpl $0x18, %eax
jne 0x4b02b
movq 0x10(%rdi), %rdi
jmp 0x4b013
movzbl (%rdi), %eax
cmpl $0x74, %eax
jne 0x4b043
movq 0x20(%rdi), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
jmp 0x4b013
leal -0x84(%rax), %ecx
cmpl $0x16, %ecx
ja 0x4b07d
movl $0x500001, %edx         # imm = 0x500001
btl %ecx, %edx
jae 0x4b07d
movq 0x40(%rdi), %rax
testq %rax, %rax
je 0x4b08c
movswq 0x30(%rdi), %rcx
testq %rcx, %rcx
js 0x4b091
movq 0x8(%rax), %rax
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movb 0x29(%rax,%rcx), %al
jmp 0x4b093
cmpl $0x25, %eax
jne 0x4b08c
movq 0x8(%rdi), %rdi
popq %rbp
jmp 0x4b1e7
movb 0x1(%rdi), %al
jmp 0x4b093
movb $0x64, %al
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, %rbx
movq (%rdi), %r15
xorl %r14d, %r14d
testq %r12, %r12
je 0x4b1ab
movzbl (%r12), %eax
cmpl $0x83, %eax
jg 0x4b0d0
cmpl $0x25, %eax
je 0x4b0de
cmpl $0x5c, %eax
je 0x4b0f3
jmp 0x4b119
cmpl $0x84, %eax
je 0x4b0eb
cmpl $0x9d, %eax
jne 0x4b119
movq 0x10(%r12), %r12
xorl %r13d, %r13d
jmp 0x4b1a2
cmpb $0x5c, 0x37(%r12)
jne 0x4b119
movq 0x20(%r15), %rax
movq 0x18(%rax), %rax
movzbl 0x71(%rax), %esi
movq 0x8(%r12), %rcx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x4b2be
movq %rax, %r14
movb $0x1, %r13b
jmp 0x4b1a2
movq 0x40(%r12), %rcx
testq %rcx, %rcx
je 0x4b177
leal -0x84(%rax), %edx
cmpl $0x16, %edx
ja 0x4b138
movl $0x500001, %esi         # imm = 0x500001
btl %edx, %esi
jb 0x4b13d
cmpl $0x3c, %eax
jne 0x4b177
movswq 0x30(%r12), %rax
movb $0x1, %r13b
testq %rax, %rax
js 0x4b1a2
movq 0x8(%rcx), %rcx
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
movq 0x20(%rcx,%rax), %rdx
movq 0x20(%r15), %rax
movq 0x18(%rax), %rax
movzbl 0x71(%rax), %esi
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x4b4a6
movq %rax, %r14
jmp 0x4b1a2
movb $0x1, %r13b
testb $0x1, 0x3(%r12)
je 0x4b1a2
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x4b192
testb $0x1, 0x3(%rax)
jne 0x4b19c
movq 0x18(%r12), %r12
jmp 0x4b0e3
xorl %r13d, %r13d
movq %rax, %r12
testb %r13b, %r13b
je 0x4b0af
testq %r14, %r14
je 0x4b1d5
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 0x4b2be
testq %rax, %rax
jne 0x4b1d5
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: 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 0x4b2b9
movb (%rdi), %r8b
testb %r8b, %r8b
je 0x4b2b9
pushq %rbp
movq %rsp, %rbp
incq %rdi
xorl %edx, %edx
movb $0x63, %sil
leaq 0x2ae4f(%rip), %rcx     # 0x76060
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 0x4b23c
cmpl $0x626c6f62, %edx       # imm = 0x626C6F62
je 0x4b24e
cmpl $0x63686172, %edx       # imm = 0x63686172
je 0x4b2a7
jmp 0x4b260
cmpl $0x636c6f62, %edx       # imm = 0x636C6F62
je 0x4b2a7
cmpl $0x74657874, %edx       # imm = 0x74657874
je 0x4b2a7
jmp 0x4b260
movb $0x62, %al
cmpb $0x63, %sil
je 0x4b2a7
movzbl %sil, %r8d
cmpl $0x65, %r8d
je 0x4b2a7
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 0x4b2a7
movl %edx, %r8d
andl $0xffffff, %r8d         # imm = 0xFFFFFF
movl %esi, %eax
cmpl $0x696e74, %r8d         # imm = 0x696E74
je 0x4b2ba
movb (%rdi), %r8b
incq %rdi
movl %eax, %esi
testb %r8b, %r8b
jne 0x4b211
popq %rbp
retq
movb $0x64, %al
jmp 0x4b2b8
// File: /workspace/github_c_makefile_star2_O1/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 0x4b59f
movl %ecx, %r14d
movq %rdx, %r12
movq $-0x1, %r13
cmpb $0x0, 0x1(%r12,%r13)
leaq 0x1(%r13), %r13
jne 0x4b4d0
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 0x3396f
movq %rax, %r15
testl %r14d, %r14d
je 0x4b5a3
testq %r15, %r15
jne 0x4b5a3
leal 0x79(%rbx), %r14d
movq -0x38(%rbp), %rdi
movl %r14d, %esi
callq 0x115e9
testq %rax, %rax
je 0x4b59a
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 0x33cea
testq %rax, %rax
je 0x4b5a3
movq -0x38(%rbp), %rdi
movb $0x1, 0x50(%rdi)
movq %rax, %rsi
callq 0x9c3a
xorl %r15d, %r15d
jmp 0x4b5a3
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_O1/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:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
cmpb $0x1a, (%rsi)
jne 0x4b675
movslq (%rdi), %rdx
testq %rdx, %rdx
setg %cl
jle 0x4b670
movq 0x8(%rsi), %rsi
movq 0x8(%rdi), %rdi
xorl %r8d, %r8d
leaq 0x2aa67(%rip), %r9      # 0x76060
movq %r8, %r10
shlq $0x5, %r10
movq 0x8(%rdi,%r10), %rbx
testq %rbx, %rbx
je 0x4b63a
movb (%rbx), %r10b
testb %r10b, %r10b
je 0x4b63f
incq %rbx
movq %rsi, %r11
movzbl %r10b, %r14d
movb (%r14,%r9), %r14b
movzbl (%r11), %r15d
cmpb (%r15,%r9), %r14b
jne 0x4b642
incq %r11
movb (%rbx), %r10b
incq %rbx
testb %r10b, %r10b
jne 0x4b618
jmp 0x4b642
movb $0x1, %r10b
jmp 0x4b65e
movq %rsi, %r11
movzbl %r10b, %r10d
movb (%r10,%r9), %r10b
movzbl (%r11), %r11d
cmpb (%r11,%r9), %r10b
leal 0x1(%r8), %r11d
setne %r10b
cmovel %r11d, %eax
testb %r10b, %r10b
je 0x4b670
incq %r8
cmpq %rdx, %r8
setb %cl
jne 0x4b5f9
jmp 0x4b670
testb $0x1, %cl
jne 0x4b677
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: 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 0x4b90e
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r9
movq %rdi, %r13
movq (%rdi), %rcx
cmpb $0x0, 0x50(%rcx)
jne 0x4b900
movq %rdx, %r14
movl (%rdx), %edx
cmpl 0x70(%rcx), %edx
jle 0x4b8ac
leaq 0x2fa37(%rip), %rsi     # 0x7b2cf
movq %r13, %rdi
movq %r9, %rdx
xorl %eax, %eax
callq 0x11724
movl $0x1, %eax
jmp 0x4b900
cmpl $0x0, (%r14)
jle 0x4b900
movq (%rsi), %r15
movq 0x8(%r14), %rbx
movl $0x1, %r12d
movq %r9, -0x30(%rbp)
movzwl 0x1a(%rbx), %edx
testl %edx, %edx
je 0x4b8ed
movl (%r15), %r8d
cmpl %edx, %r8d
jl 0x4b90f
decl %edx
movq (%rbx), %rcx
movq %r13, %rdi
movq %r15, %rsi
movq %r9, %r8
xorl %r9d, %r9d
callq 0x47f91
movq -0x30(%rbp), %r9
addq $0x20, %rbx
leal 0x1(%r12), %eax
cmpl (%r14), %r12d
movl %eax, %r12d
jl 0x4b8c3
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2f981(%rip), %rsi     # 0x7b297
movq %r13, %rdi
movl %r12d, %edx
movq %r9, %rcx
xorl %eax, %eax
callq 0x11724
jmp 0x4b8a5
// File: /workspace/github_c_makefile_star2_O1/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 0x4b9b0
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 0x4b99d
movl (%rdi), %r14d
cmpl (%rsi), %r14d
jne 0x4b99d
testl %r14d, %r14d
jle 0x4b9a2
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 0x4b99d
movq (%r12,%r13), %rsi
movq (%r15,%r13), %rdi
movl %ebx, %edx
callq 0x4b67e
testl %eax, %eax
jne 0x4b99d
addq $0x20, %r13
xorl %eax, %eax
cmpq %r13, %r14
jne 0x4b971
jmp 0x4b9a2
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_O1/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 %rsi, %rbx
movq %rdi, %r14
movb (%rdx), %cl
testb %cl, %cl
je 0x4b9ff
xorl %esi, %esi
leaq 0x2a589(%rip), %rax     # 0x75f60
movzbl %cl, %ecx
testb $0x6, (%rcx,%rax)
setne %dl
cmpb $0x5f, %cl
sete %r12b
orb %dl, %r12b
cmpb $0x1, %r12b
jne 0x4ba04
movb 0x1(%r15,%rsi), %cl
incq %rsi
testb %cl, %cl
jne 0x4b9d7
jmp 0x4ba04
movb $0x1, %r12b
xorl %esi, %esi
movl (%rbx), %r13d
movzbl (%r15), %eax
addq $-0x3a, %rax
cmpq $-0xb, %rax
ja 0x4ba25
movq %r15, %rdi
callq 0x35e68
cmpl $0x1a, %eax
sete %al
jmp 0x4ba27
xorl %eax, %eax
andb %al, %r12b
jne 0x4ba38
movslq %r13d, %rax
leal 0x1(%rax), %r13d
movb $0x22, (%r14,%rax)
movb (%r15), %cl
testb %cl, %cl
je 0x4ba6e
incq %r15
movslq %r13d, %rax
movb %cl, (%r14,%rax)
incq %rax
cmpb $0x22, -0x1(%r15)
jne 0x4ba5f
addl $0x2, %r13d
movb $0x22, (%r14,%rax)
movl %r13d, %eax
movb (%r15), %cl
incq %r15
movl %eax, %r13d
testb %cl, %cl
jne 0x4ba42
jmp 0x4ba71
movl %r13d, %eax
testb %r12b, %r12b
jne 0x4ba80
movslq %eax, %rcx
incl %eax
movb $0x22, (%r14,%rcx)
cltq
movb $0x0, (%r14,%rax)
movl %eax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: 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 0x4a2cc
movq %rax, %rbx
movq (%r15), %rdi
movq 0x28(%r12), %rsi
callq 0x9939
movq %rbx, 0x28(%r12)
testq %rbx, %rbx
je 0x4bb29
incw 0x44(%rbx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x4a534
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_O1/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 0x4bc58
movq %rsi, %rbx
cmpb $0x0, (%rsi)
je 0x4bc58
movq -0x38(%rbp), %r15
movq 0x10(%r15), %rax
movq %rax, -0x30(%rbp)
leaq 0x8(%rbx), %r13
xorl %r12d, %r12d
leaq 0x2a4d1(%rip), %r14     # 0x76060
movq 0x8(%r13), %r8
testq %r8, %r8
je 0x4bbd9
movb (%r8), %al
testb %al, %al
je 0x4bbc5
leaq 0x1(%r8), %rdx
movq -0x30(%rbp), %rcx
movzbl %al, %edi
movb (%rdi,%r14), %r9b
movzbl (%rcx), %edi
cmpb (%rdi,%r14), %r9b
jne 0x4bbc9
incq %rcx
movb (%rdx), %al
incq %rdx
testb %al, %al
jne 0x4bba7
jmp 0x4bbc9
movq -0x30(%rbp), %rcx
movzbl %al, %eax
movb (%rax,%r14), %al
movzbl (%rcx), %ecx
cmpb (%rcx,%r14), %al
jne 0x4bc39
movq (%r15), %rax
movq (%rax), %rdi
movq %r8, %rsi
callq 0x9c3a
movq $0x0, 0x8(%r13)
movq 0x8(%r15), %rax
movq %rax, (%r13)
movq 0x28(%r13), %rsi
movq %r15, %rdi
callq 0x4c0a3
movq %r15, %rdi
movl $0x1, %r15d
testl %eax, %eax
jne 0x4bc58
movq 0x40(%r13), %rsi
callq 0x4c117
testl %eax, %eax
jne 0x4bc58
incl %r12d
addq $0x68, %r13
movzbl (%rbx), %eax
cmpl %eax, %r12d
movq -0x38(%rbp), %r15
jb 0x4bb8f
xorl %r15d, %r15d
jmp 0x4bc58
movq (%r15), %rdi
movq 0x18(%r15), %rdx
movq 0x20(%r15), %rcx
leaq 0x2f98b(%rip), %rsi     # 0x7b5d6
xorl %eax, %eax
callq 0x11724
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_O1/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 0x4b4a6
testl %r12d, %r12d
je 0x4bcaf
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
testq %rax, %rax
je 0x4bcbb
cmpq $0x0, 0x18(%rax)
jne 0x4bca6
movq %r14, %rdi
movl %r15d, %esi
movq %rax, %rdx
movq %rbx, %rcx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4b2be
// File: /workspace/github_c_makefile_star2_O1/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3FixSelect
SQLITE_PRIVATE int sqlite3FixSelect(
  DbFixer *pFix,       /* Context of the fixation */
  Select *pSelect      /* The SELECT statement to be fixed to one database */
){
  while( pSelect ){
    if( sqlite3FixExprList(pFix, pSelect->pEList) ){
      return 1;
    }
    if( sqlite3FixSrcList(pFix, pSelect->pSrc) ){
      return 1;
    }
    if( sqlite3FixExpr(pFix, pSelect->pWhere) ){
      return 1;
    }
    if( sqlite3FixExpr(pFix, pSelect->pHaving) ){
      return 1;
    }
    pSelect = pSelect->pPrior;
  }
  return 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebx
movl %edx, %r15d
movq 0x10(%rdi), %r14
testb $0x4, 0x3(%rsi)
jne 0x4e2bf
movq 0x8(%rsi), %r12
testq %r12, %r12
je 0x4e2ea
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rax
incl %edx
cmpb $0x0, (%rax)
leaq 0x1(%rax), %rax
jne 0x4e2ac
andl $0x3fffffff, %edx       # imm = 0x3FFFFFFF
jmp 0x4e2ec
movl 0x8(%rsi), %eax
movl %eax, %edx
negl %edx
testl %r15d, %r15d
cmovel %eax, %edx
movq %r14, %rdi
movl $0x15, %esi
movl %ebx, %ecx
xorl %r8d, %r8d
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x45b9e
xorl %edx, %edx
leaq -0x28(%rbp), %rsi
movq %r12, %rdi
movl $0x1, %ecx
callq 0x16f9b
testl %eax, %eax
je 0x4e30b
testl %r15d, %r15d
je 0x4e379
cmpl $0x2, %eax
jne 0x4e379
testl %r15d, %r15d
je 0x4e32b
xorl %ecx, %ecx
subq -0x28(%rbp), %rcx
cmpl $0x2, %eax
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
cmovneq %rcx, %rax
movq %rax, -0x28(%rbp)
movq (%r14), %rdi
movl $0x8, %esi
callq 0x115e9
movq %rax, %r15
testq %rax, %rax
je 0x4e347
movq -0x28(%rbp), %rax
movq %rax, (%r15)
movq %r14, %rdi
movl $0x16, %esi
xorl %edx, %edx
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x45b9e
movq %r14, %rdi
movl %eax, %esi
movq %r15, %rdx
movl $0xfffffff3, %ecx       # imm = 0xFFFFFFF3
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x11975
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
movl %ebx, %ecx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4e392