LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: whereLoopCheaperProperSubset
static int whereLoopCheaperProperSubset(
  const WhereLoop *pX,       /* First WhereLoop to compare */
  const WhereLoop *pY        /* Compare against this WhereLoop */
){
  int i, j;
  if( pX->nLTerm-pX->nSkip >= pY->nLTerm-pY->nSkip ){
    return 0; /* X is not a subset of Y */
  }
  if( pY->nSkip > pX->nSkip ) return 0;
  if( pX->rRun >= pY->rRun ){
    if( pX->rRun > pY->rRun ) return 0;    /* X costs more than Y */
    if( pX->nOut > pY->nOut ) return 0;    /* X costs more than Y */
  }
  for(i=pX->nLTerm-1; i>=0; i--){
    if( pX->aLTerm[i]==0 ) continue;
    for(j=pY->nLTerm-1; j>=0; j--){
      if( pY->aLTerm[j]==pX->aLTerm[i] ) break;
    }
    if( j<0 ) return 0;  /* X not a subset of Y since term X[i] not used by Y */
  }
  return 1;  /* All conditions meet */
}

// Assembly:
movzwl 0x2e(%rdi), %edx
movzwl 0x2e(%rsi), %r8d
xorl %eax, %eax
cmpw %dx, %r8w
ja 0x675c9
movzwl 0x2c(%rdi), %ecx
movl %ecx, %r9d
subl %edx, %r9d
movzwl 0x2c(%rsi), %edx
movl %edx, %r10d
subl %r8d, %r10d
cmpl %r10d, %r9d
jge 0x675c9
movzwl 0x14(%rsi), %r8d
cmpw %r8w, 0x14(%rdi)
jge 0x675bb
testq %rcx, %rcx
je 0x675ca
pushq %rbp
movq %rsp, %rbp
movq 0x38(%rdi), %rdi
movq -0x8(%rdi,%rcx,8), %r8
testq %r8, %r8
je 0x675a7
movq %rdx, %r9
testq %r9, %r9
jle 0x675b9
leaq -0x1(%r9), %r10
movq 0x38(%rsi), %r11
cmpq %r8, -0x8(%r11,%r9,8)
movq %r10, %r9
jne 0x67590
leaq -0x1(%rcx), %r8
cmpq $0x1, %rcx
movq %r8, %rcx
jg 0x67583
movl $0x1, %eax
popq %rbp
retq
jg 0x675c9
movzwl 0x16(%rdi), %r8d
cmpw 0x16(%rsi), %r8w
jle 0x67576
retq
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: termCanDriveIndex
static int termCanDriveIndex(
  WhereTerm *pTerm,              /* WHERE clause term to check */
  struct SrcList_item *pSrc,     /* Table we are trying to access */
  Bitmask notReady               /* Tables in outer loops of the join */
){
  char aff;
  if( pTerm->leftCursor!=pSrc->iCursor ) return 0;
  if( (pTerm->eOperator & (WO_EQ|WO_IS))==0 ) return 0;
  if( (pTerm->prereqRight & notReady)!=0 ) return 0;
  if( pTerm->u.leftColumn<0 ) return 0;
  aff = pSrc->pTab->aCol[pTerm->u.leftColumn].affinity;
  if( !sqlite3IndexAffinityOk(pTerm->pExpr, aff) ) return 0;
  testcase( pTerm->pExpr->op==TK_IS );
  return 1;
}

// Assembly:
movl 0xc(%rdi), %ecx
xorl %eax, %eax
cmpl 0x44(%rsi), %ecx
jne 0x67655
testb $-0x7e, 0x1a(%rdi)
je 0x67655
testq %rdx, 0x28(%rdi)
je 0x67656
retq
movslq 0x10(%rdi), %rcx
testq %rcx, %rcx
js 0x67655
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x20(%rsi), %rax
movq 0x8(%rax), %rax
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movb 0x29(%rax,%rcx), %bl
movq (%rdi), %rdi
callq 0x547f7
cmpb $0x41, %al
je 0x67695
movzbl %al, %eax
cmpl $0x42, %eax
jne 0x67699
cmpb $0x42, %bl
sete %al
jmp 0x6769f
movb $0x1, %al
jmp 0x6769f
cmpb $0x43, %bl
setge %al
movzbl %al, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: whereUsablePartialIndex
static int whereUsablePartialIndex(int iTab, WhereClause *pWC, Expr *pWhere){
  int i;
  WhereTerm *pTerm;
  while( pWhere->op==TK_AND ){
    if( !whereUsablePartialIndex(iTab,pWC,pWhere->pLeft) ) return 0;
    pWhere = pWhere->pRight;
  }
  for(i=0, pTerm=pWC->a; i<pWC->nTerm; i++, pTerm++){
    Expr *pExpr = pTerm->pExpr;
    if( sqlite3ExprImpliesExpr(pExpr, pWhere, iTab) 
     && (!ExprHasProperty(pExpr, EP_FromJoin) || pExpr->iRightJoinTable==iTab)
    ){
      return 1;
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movl %edi, %r14d
cmpb $0x48, (%rdx)
jne 0x67741
movq 0x10(%rbx), %rdx
movl %r14d, %edi
movq %r15, %rsi
callq 0x67709
testl %eax, %eax
je 0x67783
movq 0x18(%rbx), %rbx
cmpb $0x48, (%rbx)
je 0x67725
movl 0x14(%r15), %r12d
testl %r12d, %r12d
jle 0x67783
movq 0x20(%r15), %r13
movq (%r13), %r15
movq %r15, %rdi
movq %rbx, %rsi
movl %r14d, %edx
callq 0x67fdb
testl %eax, %eax
je 0x6777a
movl $0x1, %eax
testb $0x1, 0x4(%r15)
je 0x67785
movswl 0x34(%r15), %ecx
cmpl %r14d, %ecx
je 0x67785
addq $0x38, %r13
decl %r12d
jne 0x6774e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: translateColumnToCopy
static void translateColumnToCopy(
  Vdbe *v,            /* The VDBE containing code to translate */
  int iStart,         /* Translate from this opcode to the end */
  int iTabCur,        /* OP_Column/OP_Rowid references to this table */
  int iRegister,      /* The first column is in this register */
  int bIncrRowid      /* If non-zero, transform OP_rowid to OP_AddImm(1) */
){
  VdbeOp *pOp = sqlite3VdbeGetOp(v, iStart);
  int iEnd = sqlite3VdbeCurrentAddr(v);
  for(; iStart<iEnd; iStart++, pOp++){
    if( pOp->p1!=iTabCur ) continue;
    if( pOp->opcode==OP_Column ){
      pOp->opcode = OP_Copy;
      pOp->p1 = pOp->p2 + iRegister;
      pOp->p2 = pOp->p3;
      pOp->p3 = 0;
    }else if( pOp->opcode==OP_Rowid ){
      if( bIncrRowid ){
        /* Increment the value stored in the P2 operand of the OP_Rowid. */
        pOp->opcode = OP_AddImm;
        pOp->p1 = pOp->p2;
        pOp->p2 = 1;
      }else{
        pOp->opcode = OP_Null;
        pOp->p1 = 0;
        pOp->p3 = 0;
      }
    }
  }
}

// Assembly:
movl %esi, %eax
testl %esi, %esi
jns 0x687e2
movl 0x3c(%rdi), %eax
decl %eax
movq (%rdi), %r9
cmpb $0x0, 0x51(%r9)
je 0x687f5
leaq 0x2ad05(%rip), %rax     # 0x934f8
jmp 0x68803
cltq
leaq (%rax,%rax,2), %rax
shlq $0x3, %rax
addq 0x8(%rdi), %rax
pushq %rbp
movq %rsp, %rbp
movl 0x3c(%rdi), %edi
subl %esi, %edi
jle 0x68873
addq $0xc, %rax
xorl %esi, %esi
cmpl %edx, -0x8(%rax)
jne 0x6886b
movzbl -0xc(%rax), %r9d
cmpl $0x69, %r9d
je 0x68848
cmpl $0x30, %r9d
jne 0x6886b
movb $0x1f, -0xc(%rax)
movl -0x4(%rax), %r9d
addl %ecx, %r9d
movl %r9d, -0x8(%rax)
movl (%rax), %r9d
movl %r9d, -0x4(%rax)
movl $0x0, (%rax)
jmp 0x6886b
testl %r8d, %r8d
je 0x68862
movb $0x26, -0xc(%rax)
movl -0x4(%rax), %r9d
movl %r9d, -0x8(%rax)
movl $0x1, -0x4(%rax)
jmp 0x6886b
movb $0x1a, -0xc(%rax)
movl %esi, -0x8(%rax)
movl %esi, (%rax)
addq $0x18, %rax
decl %edi
jne 0x68814
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: explainAppendTerm
static void explainAppendTerm(
  StrAccum *pStr,             /* The text expression being built */
  int iTerm,                  /* Index of this term.  First is zero */
  const char *zColumn,        /* Name of the column */
  const char *zOp             /* Name of the operator */
){
  if( iTerm ) sqlite3StrAccumAppend(pStr, " AND ", 5);
  sqlite3StrAccumAppendAll(pStr, zColumn);
  sqlite3StrAccumAppend(pStr, zOp, 1);
  sqlite3StrAccumAppend(pStr, "?", 1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rdi, %rbx
testl %esi, %esi
je 0x688c0
movl 0x18(%rbx), %eax
leal 0x5(%rax), %ecx
cmpl 0x1c(%rbx), %ecx
jae 0x688ac
movl %ecx, 0x18(%rbx)
movq 0x10(%rbx), %rcx
movb $0x20, 0x4(%rcx,%rax)
movl $0x444e4120, (%rcx,%rax) # imm = 0x444E4120
jmp 0x688c0
leaq 0x152c1(%rip), %rsi     # 0x7db74
movq %rbx, %rdi
movl $0x5, %edx
callq 0x1be51
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1bdfd
movl 0x18(%rbx), %eax
leal 0x1(%rax), %ecx
cmpl 0x1c(%rbx), %ecx
jae 0x688e5
movl %ecx, 0x18(%rbx)
movq 0x10(%rbx), %rcx
movb (%r14), %dl
movb %dl, (%rcx,%rax)
jmp 0x688f5
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x1be51
movl 0x18(%rbx), %eax
leal 0x1(%rax), %ecx
cmpl 0x1c(%rbx), %ecx
jae 0x68916
movl %ecx, 0x18(%rbx)
movq 0x10(%rbx), %rcx
movb $0x3f, (%rcx,%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x15260(%rip), %rsi     # 0x7db7d
movq %rbx, %rdi
movl $0x1, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1be51
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: disableTerm
static void disableTerm(WhereLevel *pLevel, WhereTerm *pTerm){
  int nLoop = 0;
  while( pTerm
      && (pTerm->wtFlags & TERM_CODED)==0
      && (pLevel->iLeftJoin==0 || ExprHasProperty(pTerm->pExpr, EP_FromJoin))
      && (pLevel->notReady & pTerm->prereqAll)==0
  ){
    if( nLoop && (pTerm->wtFlags & TERM_LIKE)!=0 ){
      pTerm->wtFlags |= TERM_LIKECOND;
    }else{
      pTerm->wtFlags |= TERM_CODED;
    }
    if( pTerm->iParent<0 ) break;
    pTerm = &pTerm->pWC->a[pTerm->iParent];
    pTerm->nChild--;
    if( pTerm->nChild!=0 ) break;
    nLoop++;
  }
}

// Assembly:
testq %rsi, %rsi
je 0x68b76
movzwl 0x1c(%rsi), %r8d
testb $0x4, %r8b
jne 0x68b76
pushq %rbp
movq %rsp, %rbp
leaq 0x1c(%rsi), %r9
movl (%rdi), %eax
xorl %ecx, %ecx
movl $0x4, %edx
testl %eax, %eax
je 0x68b20
movq (%rsi), %r10
testb $0x1, 0x4(%r10)
je 0x68b75
movq 0x30(%rsi), %r10
testq %r10, 0x50(%rdi)
jne 0x68b75
btl $0xa, %r8d
movl $0x200, %r10d           # imm = 0x200
cmovael %edx, %r10d
subl $0x1, %ecx
cmovbl %edx, %r10d
orl %r8d, %r10d
movw %r10w, (%r9)
movslq 0x8(%rsi), %r8
testq %r8, %r8
js 0x68b75
movq 0x20(%rsi), %rsi
movq 0x20(%rsi), %rsi
imulq $0x38, %r8, %r8
decb 0x1e(%rsi,%r8)
jne 0x68b75
addq %r8, %rsi
leaq 0x1c(%rsi), %r9
movzwl 0x1c(%rsi), %r8d
testb $0x4, %r8b
je 0x68b12
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: codeApplyAffinity
static void codeApplyAffinity(Parse *pParse, int base, int n, char *zAff){
  Vdbe *v = pParse->pVdbe;
  if( zAff==0 ){
    assert( pParse->db->mallocFailed );
    return;
  }
  assert( v!=0 );

  /* Adjust base and n to skip over SQLITE_AFF_BLOB entries at the beginning
  ** and end of the affinity string.
  */
  while( n>0 && zAff[0]==SQLITE_AFF_BLOB ){
    n--;
    base++;
    zAff++;
  }
  while( n>1 && zAff[n-1]==SQLITE_AFF_BLOB ){
    n--;
  }

  /* Code the OP_Affinity opcode if there is anything left to do. */
  if( n>0 ){
    sqlite3VdbeAddOp2(v, OP_Affinity, base, n);
    sqlite3VdbeChangeP4(v, -1, zAff, n);
    sqlite3ExprCacheAffinityChange(pParse, base, n);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rcx, %rcx
je 0x68cc7
movq %rdi, %rbx
testl %edx, %edx
jle 0x68c58
movl %edx, %r14d
addq %rcx, %r14
leal (%rdx,%rsi), %r15d
cmpb $0x41, (%rcx)
jne 0x68c58
leal -0x1(%rdx), %eax
incl %esi
incq %rcx
cmpl $0x1, %edx
movl %eax, %edx
jg 0x68c40
xorl %edx, %edx
jmp 0x68c5e
movq %rcx, %r14
movl %esi, %r15d
movq 0x10(%rbx), %r13
movl %edx, %eax
movq %rax, %r12
cmpl $0x2, %r12d
jl 0x68c7c
leaq -0x1(%r12), %rax
cmpb $0x41, -0x1(%r14,%r12)
je 0x68c64
jmp 0x68c82
cmpq $0x1, %r12
jne 0x68cc7
movq %r13, %rdi
movl $0x31, %esi
movl %r15d, %edx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movq %r13, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r14, %rdx
movl %r12d, %ecx
callq 0x14b4f
movq %rbx, %rdi
movl %r15d, %esi
movl %r12d, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x51780
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3IndexAffinityStr
SQLITE_PRIVATE const char *sqlite3IndexAffinityStr(sqlite3 *db, 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;
    pIdx->zColAff = (char *)sqlite3DbMallocRaw(0, pIdx->nColumn+1);
    if( !pIdx->zColAff ){
      db->mallocFailed = 1;
      return 0;
    }
    for(n=0; n<pIdx->nColumn; n++){
      i16 x = pIdx->aiColumn[n];
      if( x>=0 ){
        pIdx->zColAff[n] = pTab->aCol[x].affinity;
      }else if( x==XN_ROWID ){
        pIdx->zColAff[n] = SQLITE_AFF_INTEGER;
      }else{
        char aff;
        assert( x==XN_EXPR );
        assert( pIdx->aColExpr!=0 );
        aff = sqlite3ExprAffinity(pIdx->aColExpr->a[n].pExpr);
        if( aff==0 ) aff = SQLITE_AFF_BLOB;
        pIdx->zColAff[n] = aff;
      }
    }
    pIdx->zColAff[n] = 0;
  }
 
  return pIdx->zColAff;
}

// Assembly:
movq 0x20(%rsi), %rax
testq %rax, %rax
je 0x68ce0
retq
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rsi), %r15
movzwl 0x60(%rsi), %edi
incq %rdi
callq 0xc0e2
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x68d7e
cmpw $0x0, 0x60(%rbx)
je 0x68d87
xorl %r12d, %r12d
xorl %r14d, %r14d
movq 0x8(%rbx), %rax
movswq (%rax,%r14,2), %rax
testq %rax, %rax
js 0x68d4f
movq 0x8(%r15), %rcx
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
movb 0x29(%rcx,%rax), %cl
movq 0x20(%rbx), %rax
movb %cl, (%rax,%r14)
incq %r14
movzwl 0x60(%rbx), %eax
addq $0x20, %r12
cmpq %rax, %r14
jb 0x68d17
jmp 0x68d78
cmpw $-0x1, %ax
je 0x68d74
movq 0x50(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax,%r12), %rdi
callq 0x54166
movl $0x41, %ecx
testb %al, %al
je 0x68d35
movzbl %al, %ecx
jmp 0x68d35
movb $0x44, %cl
jmp 0x68d35
movq 0x20(%rbx), %rax
jmp 0x68d8a
movb $0x1, 0x51(%r14)
xorl %eax, %eax
jmp 0x68d93
xorl %r14d, %r14d
movb $0x0, (%rax,%r14)
movq 0x20(%rbx), %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3MaterializeView
SQLITE_PRIVATE void sqlite3MaterializeView(
  Parse *pParse,       /* Parsing context */
  Table *pView,        /* View definition */
  Expr *pWhere,        /* Optional WHERE clause to be added */
  int iCur             /* Cursor number for ephemeral table */
){
  SelectDest dest;
  Select *pSel;
  SrcList *pFrom;
  sqlite3 *db = pParse->db;
  int iDb = sqlite3SchemaToIndex(db, pView->pSchema);
  pWhere = sqlite3ExprDup(db, pWhere, 0);
  pFrom = sqlite3SrcListAppend(db, 0, 0, 0);
  if( pFrom ){
    assert( pFrom->nSrc==1 );
    pFrom->a[0].zName = sqlite3DbStrDup(db, pView->zName);
    pFrom->a[0].zDatabase = sqlite3DbStrDup(db, db->aDb[iDb].zName);
    assert( pFrom->a[0].pOn==0 );
    assert( pFrom->a[0].pUsing==0 );
  }
  pSel = sqlite3SelectNew(pParse, 0, pFrom, pWhere, 0, 0, 0, 
                          SF_IncludeHidden, 0, 0);
  sqlite3SelectDestInit(&dest, SRT_EphemTab, iCur);
  sqlite3Select(pParse, pSel, &dest);
  sqlite3SelectDelete(db, pSel);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r12
movq (%rdi), %rbx
movq 0x68(%rsi), %rax
testq %rax, %rax
movq %rdi, -0x38(%rbp)
movl %ecx, -0x2c(%rbp)
je 0x69959
movl 0x28(%rbx), %edi
testl %edi, %edi
jle 0x69961
movq 0x20(%rbx), %rsi
addq $0x18, %rsi
xorl %r14d, %r14d
cmpq %rax, (%rsi)
je 0x69964
incq %r14
addq $0x20, %rsi
cmpq %r14, %rdi
jne 0x69943
movl %edi, %r14d
jmp 0x69964
movl $0xfff0bdc0, %r14d      # imm = 0xFFF0BDC0
jmp 0x69964
xorl %r14d, %r14d
movq %rbx, %rdi
movq %rdx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x5388d
movq %rax, %r13
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x468fe
testq %rax, %rax
je 0x699dd
movq %rax, %r15
movq (%r12), %rsi
movq %rbx, %rdi
callq 0x12d65
movq %rax, 0x18(%r15)
movq 0x20(%rbx), %rax
movslq %r14d, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rsi
movq %rbx, %rdi
callq 0x12d65
movq %rax, 0x10(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movl $0x8000, 0x8(%rsp)      # imm = 0x8000
movq $0x0, (%rsp)
movq -0x38(%rbp), %r14
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
jmp 0x69a00
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movl $0x8000, 0x8(%rsp)      # imm = 0x8000
movq $0x0, (%rsp)
movq -0x38(%rbp), %r14
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r13, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x464d1
movq %rax, %r15
leaq -0x50(%rbp), %rdx
movw $0xc, (%rdx)
movl -0x2c(%rbp), %eax
movl %eax, 0x4(%rdx)
movq $0x0, 0x8(%rdx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x44acb
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x3c9f2
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3VtabMakeWritable
SQLITE_PRIVATE void sqlite3VtabMakeWritable(Parse *pParse, Table *pTab){
  Parse *pToplevel = sqlite3ParseToplevel(pParse);
  int i, n;
  Table **apVtabLock;

  assert( IsVirtual(pTab) );
  for(i=0; i<pToplevel->nVtabLock; i++){
    if( pTab==pToplevel->apVtabLock[i] ) return;
  }
  n = (pToplevel->nVtabLock+1)*sizeof(pToplevel->apVtabLock[0]);
  apVtabLock = sqlite3_realloc64(pToplevel->apVtabLock, n);
  if( apVtabLock ){
    pToplevel->apVtabLock = apVtabLock;
    pToplevel->apVtabLock[pToplevel->nVtabLock++] = pTab;
  }else{
    pToplevel->db->mallocFailed = 1;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x1c0(%rdi), %r15
testq %r15, %r15
cmoveq %rdi, %r15
movq %rsi, %rbx
movslq 0x1f0(%r15), %r12
movq 0x268(%r15), %r14
testq %r12, %r12
jle 0x69c85
xorl %eax, %eax
cmpq %rbx, (%r14,%rax,8)
je 0x69ccb
incq %rax
cmpq %rax, %r12
jne 0x69c77
callq 0xa080
testl %eax, %eax
je 0x69c97
movq (%r15), %rax
movb $0x1, 0x51(%rax)
jmp 0x69ccb
leal 0x8(,%r12,8), %eax
movslq %eax, %rsi
movq %r14, %rdi
callq 0xc2eb
testq %rax, %rax
je 0x69c8e
movq %rax, 0x268(%r15)
movslq 0x1f0(%r15), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x1f0(%r15)
movq %rbx, (%rax,%rcx,8)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: targetSrcList
static SrcList *targetSrcList(
  Parse *pParse,       /* The parsing context */
  TriggerStep *pStep   /* The trigger containing the target token */
){
  sqlite3 *db = pParse->db;
  int iDb;             /* Index of the database to use */
  SrcList *pSrc;       /* SrcList to be returned */

  pSrc = sqlite3SrcListAppend(db, 0, 0, 0);
  if( pSrc ){
    assert( pSrc->nSrc>0 );
    pSrc->a[pSrc->nSrc-1].zName = sqlite3DbStrDup(db, pStep->zTarget);
    iDb = sqlite3SchemaToIndex(db, pStep->pTrig->pSchema);
    if( iDb==0 || iDb>=2 ){
      assert( iDb<db->nDb );
      pSrc->a[pSrc->nSrc-1].zDatabase = sqlite3DbStrDup(db, db->aDb[iDb].zName);
    }
  }
  return pSrc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x468fe
movq %rax, %r14
testq %rax, %rax
je 0x6b9db
movq 0x18(%r15), %rsi
movq %rbx, %rdi
callq 0x12d65
movslq (%r14), %rcx
imulq $0x70, %rcx, %rcx
movq %rax, -0x58(%rcx,%r14)
movq 0x8(%r15), %rax
movq 0x28(%rax), %rcx
testq %rcx, %rcx
je 0x6b99a
movl 0x28(%rbx), %edx
testl %edx, %edx
jle 0x6b9b0
movq 0x20(%rbx), %rsi
addq $0x18, %rsi
xorl %eax, %eax
cmpq %rcx, (%rsi)
je 0x6b99f
incq %rax
addq $0x20, %rsi
cmpq %rax, %rdx
jne 0x6b985
movl %edx, %eax
jmp 0x6b99f
movl $0xfff0bdc0, %eax       # imm = 0xFFF0BDC0
testl %eax, %eax
setne %cl
cmpl $0x2, %eax
setl %dl
testb %dl, %cl
je 0x6b9b2
jmp 0x6b9db
xorl %eax, %eax
movq %r14, %r15
addq $0x8, %r15
movq 0x20(%rbx), %rcx
movl %eax, %eax
shlq $0x5, %rax
movq (%rcx,%rax), %rsi
movq %rbx, %rdi
callq 0x12d65
movslq (%r14), %rcx
imulq $0x70, %rcx, %rcx
movq %rax, -0x68(%rcx,%r15)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3ExprCodeAndCache
SQLITE_PRIVATE void sqlite3ExprCodeAndCache(Parse *pParse, Expr *pExpr, int target){
  Vdbe *v = pParse->pVdbe;
  int iMem;

  assert( target>0 );
  assert( pExpr->op!=TK_REGISTER );
  sqlite3ExprCode(pParse, pExpr, target);
  iMem = ++pParse->nMem;
  sqlite3VdbeAddOp2(v, OP_Copy, target, iMem);
  exprToRegister(pExpr, iMem);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq 0x10(%rdi), %r12
callq 0x4f909
movl 0x54(%r15), %r13d
incl %r13d
movl %r13d, 0x54(%r15)
movq %r12, %rdi
movl $0x1f, %esi
movl %ebx, %edx
movl %r13d, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movb (%r14), %al
movb %al, 0x36(%r14)
movb $-0x63, (%r14)
movl %r13d, 0x2c(%r14)
andb $-0x11, 0x5(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3ExprCodeFactorable
SQLITE_PRIVATE void sqlite3ExprCodeFactorable(Parse *pParse, Expr *pExpr, int target){
  if( pParse->okConstFactor && sqlite3ExprIsConstant(pExpr) ){
    sqlite3ExprCodeAtInit(pParse, pExpr, target, 0);
  }else{
    sqlite3ExprCode(pParse, pExpr, target);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
cmpb $0x0, 0x23(%rdi)
je 0x6e9e6
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %r12
movups %xmm0, 0x20(%r12)
movups %xmm0, 0x10(%r12)
movb $0x1, 0x24(%r12)
leaq -0x1b45d(%rip), %rax    # 0x53555
movq %rax, (%r12)
leaq -0x1b3f2(%rip), %rax    # 0x535cb
movq %rax, 0x8(%r12)
movq %r12, %rdi
movq %r14, %rsi
callq 0x535da
cmpb $0x0, 0x24(%r12)
je 0x6e9e6
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0x534e2
jmp 0x6e9f3
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x4f909
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: returnSingleText
static void returnSingleText(
  Vdbe *v,                /* Prepared statement under construction */
  const char *zLabel,     /* Name of the result column */
  const char *zValue      /* Value to be returned */
){
  if( zValue ){
    sqlite3VdbeLoadString(v, 1, (const char*)zValue);
    setOneColumnName(v, zLabel);
    sqlite3VdbeAddOp2(v, OP_ResultRow, 1, 1);
  }
}

// Assembly:
testq %rdx, %rdx
je 0x6eb6a
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movl $0x61, %esi
xorl %edx, %edx
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movq %rbx, %rdi
movl %eax, %esi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x14b4f
leaq -0x20(%rbp), %rdx
movq %r14, (%rdx)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x6f1d2
movq %rbx, %rdi
movl $0x22, %esi
movl $0x1, %edx
movl $0x1, %ecx
xorl %r8d, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3ea9f
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3BtreeSetSpillSize
SQLITE_PRIVATE int sqlite3BtreeSetSpillSize(Btree *p, int mxPage){
  BtShared *pBt = p->pBt;
  int res;
  assert( sqlite3_mutex_held(p->db->mutex) );
  sqlite3BtreeEnter(p);
  res = sqlite3PagerSetSpillsize(pBt->pPager, mxPage);
  sqlite3BtreeLeave(p);
  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
movq 0x8(%rdi), %r15
cmpb $0x0, 0x11(%rdi)
je 0x6ee63
incl 0x14(%rbx)
cmpb $0x0, 0x12(%rbx)
jne 0x6ee63
movq %rbx, %rdi
callq 0x2520c
movq (%r15), %rax
movq 0x110(%rax), %rcx
testl %r14d, %r14d
je 0x6ee95
jns 0x6ee91
movslq %r14d, %rax
shlq $0xa, %rax
negq %rax
movslq 0x24(%rcx), %rdx
movslq 0x28(%rcx), %rsi
addq %rdx, %rsi
cqto
idivq %rsi
movq %rax, %r14
movl %r14d, 0x20(%rcx)
movslq 0x1c(%rcx), %r14
testq %r14, %r14
jns 0x6eebb
shlq $0xa, %r14
negq %r14
movslq 0x24(%rcx), %rax
movslq 0x28(%rcx), %rsi
addq %rax, %rsi
movq %r14, %rax
cqto
idivq %rsi
movq %rax, %r14
movl 0x20(%rcx), %r15d
cmpb $0x0, 0x11(%rbx)
je 0x6eed2
decl 0x14(%rbx)
jne 0x6eed2
movq %rbx, %rdi
callq 0x25292
cmpl %r15d, %r14d
cmovgl %r14d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: setAllColumnNames
static void setAllColumnNames(
  Vdbe *v,               /* The query under construction */
  int N,                 /* Number of columns */
  const char **azCol     /* Names of columns */
){
  int i;
  sqlite3VdbeSetNumCols(v, N);
  for(i=0; i<N; i++){
    sqlite3VdbeSetColName(v, i, COLNAME_NAME, azCol[i], SQLITE_STATIC);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r14
callq 0x3f6b1
testl %r15d, %r15d
jle 0x6f22c
movl %r15d, %eax
imulq $0x38, %rax, %r15
xorl %r12d, %r12d
movq (%r14), %rax
cmpb $0x0, 0x51(%rax)
jne 0x6f21f
movq (%rbx), %rsi
movq 0x20(%r14), %rdi
addq %r12, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x11bc0
addq $0x8, %rbx
addq $0x38, %r12
cmpq %r12, %r15
jne 0x6f1fa
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3VdbeMultiLoad
SQLITE_PRIVATE void sqlite3VdbeMultiLoad(Vdbe *p, int iDest, const char *zTypes, ...){
  va_list ap;
  int i;
  char c;
  va_start(ap, zTypes);
  for(i=0; (c = zTypes[i])!=0; i++){
    if( c=='s' ){
      const char *z = va_arg(ap, const char*);
      int addr = sqlite3VdbeAddOp2(p, z==0 ? OP_Null : OP_String8, 0, iDest++);
      if( z ) sqlite3VdbeChangeP4(p, addr, z, 0);
    }else{
      assert( c=='i' );
      sqlite3VdbeAddOp2(p, OP_Integer, va_arg(ap, int), iDest++);
    }
  }
  va_end(ap);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xd0, %rsp
movq %rdx, %rbx
movl %esi, %r14d
movq %rdi, %r15
leaq -0xf0(%rbp), %rdx
movq %rcx, 0x18(%rdx)
movq %r8, 0x20(%rdx)
movq %r9, 0x28(%rdx)
testb %al, %al
je 0x6f293
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)
movq %rdx, -0x30(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movabsq $0x3000000018, %rax     # imm = 0x3000000018
movq %rax, -0x40(%rbp)
movzbl (%rbx), %eax
cmpl $0x73, %eax
je 0x6f2d5
testl %eax, %eax
je 0x6f35d
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x6f331
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x6f33d
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x6f2ed
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x6f2f9
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %r12
movl $0x1a, %esi
testq %r12, %r12
je 0x6f30b
movl $0x61, %esi
movq %r15, %rdi
xorl %edx, %edx
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
testq %r12, %r12
je 0x6f352
movq %r15, %rdi
movl %eax, %esi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x14b4f
jmp 0x6f352
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movl (%rax), %edx
movq %r15, %rdi
movl $0x17, %esi
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
incl %r14d
incq %rbx
jmp 0x6f2ad
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: triggerStepAllocate
static TriggerStep *triggerStepAllocate(
  sqlite3 *db,                /* Database connection */
  u8 op,                      /* Trigger opcode */
  Token *pName                /* The target name */
){
  TriggerStep *pTriggerStep;

  pTriggerStep = sqlite3DbMallocZero(db, sizeof(TriggerStep) + pName->n + 1);
  if( pTriggerStep ){
    char *z = (char*)&pTriggerStep[1];
    memcpy(z, pName->z, pName->n);
    sqlite3Dequote(z);
    pTriggerStep->zTarget = z;
    pTriggerStep->op = op;
  }
  return pTriggerStep;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movl %esi, %ebx
movl 0x8(%rdx), %r12d
addq $0x49, %r12
movq %r12, %rsi
callq 0x145aa
movq %rax, %r14
testq %rax, %rax
je 0x6f788
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0xa220
movq %r14, %r12
addq $0x48, %r12
movq (%r15), %rsi
movl 0x8(%r15), %edx
movq %r12, %rdi
callq 0xa320
movq %r12, %rdi
callq 0x54ebe
movq %r12, 0x18(%r14)
movb %bl, (%r14)
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: printfFunc
static void printfFunc(
  sqlite3_context *context,
  int argc,
  sqlite3_value **argv
){
  PrintfArguments x;
  StrAccum str;
  const char *zFormat;
  int n;
  sqlite3 *db = sqlite3_context_db_handle(context);

  if( argc>=1 && (zFormat = (const char*)sqlite3_value_text(argv[0]))!=0 ){
    x.nArg = argc-1;
    x.nUsed = 0;
    x.apArg = argv+1;
    sqlite3StrAccumInit(&str, db, 0, 0, db->aLimit[SQLITE_LIMIT_LENGTH]);
    sqlite3XPrintf(&str, SQLITE_PRINTF_SQLFUNC, zFormat, &x);
    n = str.nChar;
    sqlite3_result_text(context, sqlite3StrAccumFinish(&str), n,
                        SQLITE_DYNAMIC);
  }
}

// Assembly:
testl %esi, %esi
jle 0x72644
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x28(%rax), %r12
movq (%rdx), %rdi
movl $0x1, %esi
callq 0x118a2
testq %rax, %rax
je 0x72638
decl %r15d
leaq -0x30(%rbp), %rcx
movl %r15d, (%rcx)
movl $0x0, 0x4(%rcx)
addq $0x8, %r14
movq %r14, 0x8(%rcx)
movl 0x68(%r12), %edx
xorps %xmm0, %xmm0
leaq -0x58(%rbp), %r14
movups %xmm0, 0x8(%r14)
movq %r12, (%r14)
movq $0x0, 0x18(%r14)
movl %edx, 0x20(%r14)
movw $0x0, 0x24(%r14)
movq %r14, %rdi
movl $0x2, %esi
movq %rax, %rdx
xorl %eax, %eax
callq 0x3d84d
movl 0x18(%r14), %r15d
movq %r14, %rdi
callq 0xdbce
leaq -0x66374(%rip), %r8     # 0xc2b1
movq %rbx, %rdi
movq %rax, %rsi
movl %r15d, %edx
movl $0x1, %ecx
callq 0x11a77
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: groupConcatStep
static void groupConcatStep(
  sqlite3_context *context,
  int argc,
  sqlite3_value **argv
){
  const char *zVal;
  StrAccum *pAccum;
  const char *zSep;
  int nVal, nSep;
  assert( argc==1 || argc==2 );
  if( sqlite3_value_type(argv[0])==SQLITE_NULL ) return;
  pAccum = (StrAccum*)sqlite3_aggregate_context(context, sizeof(*pAccum));

  if( pAccum ){
    sqlite3 *db = sqlite3_context_db_handle(context);
    int firstTerm = pAccum->mxAlloc==0;
    pAccum->mxAlloc = db->aLimit[SQLITE_LIMIT_LENGTH];
    if( !firstTerm ){
      if( argc==2 ){
        zSep = (char*)sqlite3_value_text(argv[1]);
        nSep = sqlite3_value_bytes(argv[1]);
      }else{
        zSep = ",";
        nSep = 1;
      }
      if( nSep ) sqlite3StrAccumAppend(pAccum, zSep, nSep);
    }
    zVal = (char*)sqlite3_value_text(argv[0]);
    nVal = sqlite3_value_bytes(argv[0]);
    if( zVal ) sqlite3StrAccumAppend(pAccum, zVal, nVal);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq (%rdx), %rax
movl 0x8(%rax), %eax
movl $0xaaaaaaaa, %ecx       # imm = 0xAAAAAAAA
btl %eax, %ecx
jb 0x738b3
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %r12
movq 0x10(%rdi), %rax
testb $0x20, 0x9(%rax)
jne 0x737e8
movq %r12, %rdi
movl $0x28, %esi
callq 0x12df6
movq %rax, %rbx
jmp 0x737ec
movq 0x10(%rax), %rbx
testq %rbx, %rbx
je 0x738b3
movq (%r12), %rax
movq 0x28(%rax), %rax
cmpl $0x0, 0x20(%rbx)
movl 0x68(%rax), %eax
movl %eax, 0x20(%rbx)
je 0x7386c
cmpl $0x2, %r15d
jne 0x73834
movq 0x8(%r14), %rdi
movl $0x1, %esi
callq 0x118a2
movq %rax, %r15
movq 0x8(%r14), %rdi
movl $0x1, %esi
callq 0x11773
testl %eax, %eax
jne 0x73840
jmp 0x7386c
movl $0x1, %eax
leaq 0x9af7(%rip), %r15      # 0x7d337
movl 0x18(%rbx), %edi
leal (%rdi,%rax), %ecx
cmpl 0x1c(%rbx), %ecx
jae 0x7385f
movl %ecx, 0x18(%rbx)
addq 0x10(%rbx), %rdi
movslq %eax, %rdx
movq %r15, %rsi
callq 0xa320
jmp 0x7386c
movq %rbx, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x1be51
movq (%r14), %rdi
movl $0x1, %esi
callq 0x118a2
movq %rax, %r15
movq (%r14), %rdi
movl $0x1, %esi
callq 0x11773
testq %r15, %r15
je 0x738b3
movl 0x18(%rbx), %edi
leal (%rdi,%rax), %ecx
cmpl 0x1c(%rbx), %ecx
jae 0x738bc
movl %ecx, 0x18(%rbx)
addq 0x10(%rbx), %rdi
movslq %eax, %rdx
movq %r15, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xa320
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r15, %rsi
movl %eax, %edx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1be51
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: pcache1Init
static int pcache1Init(void *NotUsed){
  UNUSED_PARAMETER(NotUsed);
  assert( pcache1.isInit==0 );
  memset(&pcache1, 0, sizeof(pcache1));


  /*
  ** The pcache1.separateCache variable is true if each PCache has its own
  ** private PGroup (mode-1).  pcache1.separateCache is false if the single
  ** PGroup in pcache1.grp is used for all page caches (mode-2).
  **
  **   *  Always use a unified cache (mode-2) if ENABLE_MEMORY_MANAGEMENT
  **
  **   *  Use a unified cache in single-threaded applications that have
  **      configured a start-time buffer for use as page-cache memory using
  **      sqlite3_config(SQLITE_CONFIG_PAGECACHE, pBuf, sz, N) with non-NULL 
  **      pBuf argument.
  **
  **   *  Otherwise use separate caches (mode-1)
  */
#if defined(SQLITE_ENABLE_MEMORY_MANAGEMENT)
  pcache1.separateCache = 0;
#elif SQLITE_THREADSAFE
  pcache1.separateCache = sqlite3GlobalConfig.pPage==0
                          || sqlite3GlobalConfig.bCoreMutex>0;
#else
  pcache1.separateCache = sqlite3GlobalConfig.pPage==0;
#endif

#if SQLITE_THREADSAFE
  if( sqlite3GlobalConfig.bCoreMutex ){
    pcache1.grp.mutex = sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_LRU);
    pcache1.mutex = sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_PMEM);
  }
#endif
  if( pcache1.separateCache
   && sqlite3GlobalConfig.nPage!=0
   && sqlite3GlobalConfig.pPage==0
  ){
    pcache1.nInitPage = sqlite3GlobalConfig.nPage;
  }else{
    pcache1.nInitPage = 0;
  }
  pcache1.grp.mxPinned = 10;
  pcache1.isInit = 1;
  return SQLITE_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x1d977(%rip), %rdi     # 0x93450
xorl %ebx, %ebx
movl $0x90, %edx
xorl %esi, %esi
callq 0xa220
movq 0x1b992(%rip), %rax     # 0x91480
testq %rax, %rax
sete %dl
movl 0x1b83a(%rip), %esi     # 0x91334
testl %esi, %esi
setg %cl
orb %dl, %cl
movzbl %cl, %edx
movl %edx, 0x1d99a(%rip)     # 0x934a4
testl %esi, %esi
je 0x75b5d
callq 0xbe5f
testl %eax, %eax
je 0x75b1b
xorl %eax, %eax
jmp 0x75b26
movl $0x6, %edi
callq *0x1b882(%rip)          # 0x913a8
movq %rax, 0x1d923(%rip)     # 0x93450
callq 0xbe5f
testl %eax, %eax
je 0x75b3a
xorl %eax, %eax
jmp 0x75b45
movl $0x7, %edi
callq *0x1b863(%rip)          # 0x913a8
movq %rax, 0x1d97c(%rip)     # 0x934c8
movq 0x1b92d(%rip), %rax     # 0x91480
cmpl $0x0, 0x1d94a(%rip)     # 0x934a4
setne %cl
movl 0x1b929(%rip), %edx     # 0x9148c
testq %rax, %rax
movl $0x0, %eax
cmovel %edx, %eax
testl %edx, %edx
cmovel %edx, %eax
testb %cl, %cl
cmovel %ebx, %eax
movl %eax, 0x1d92a(%rip)     # 0x934a8
movl $0xa, 0x1d8d8(%rip)     # 0x93460
movl $0x1, 0x1d90e(%rip)     # 0x934a0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: pcache1EnforceMaxPage
static void pcache1EnforceMaxPage(PCache1 *pCache){
  PGroup *pGroup = pCache->pGroup;
  PgHdr1 *p;
  assert( sqlite3_mutex_held(pGroup->mutex) );
  while( pGroup->nCurrentPage>pGroup->nMaxPage
      && (p=pGroup->lru.pLruPrev)->isAnchor==0
  ){
    assert( p->pCache->pGroup==pGroup );
    assert( p->isPinned==0 );
    pcache1PinPage(p);
    pcache1RemoveFromHash(p, 1);
  }
  if( pCache->nPage==0 && pCache->pBulk ){
    sqlite3_free(pCache->pBulk);
    pCache->pBulk = pCache->pFree = 0;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %r14
movl 0x14(%r14), %eax
cmpl 0x8(%r14), %eax
jbe 0x75f98
movq 0x48(%r14), %rdi
cmpb $0x0, 0x16(%rdi)
jne 0x75f98
movq 0x20(%rdi), %rax
movq 0x28(%rdi), %rcx
movq 0x30(%rdi), %rdx
movq %rcx, 0x28(%rdx)
movq %rdx, 0x30(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movb $0x1, 0x14(%rdi)
decl 0x28(%rax)
movl $0x1, %esi
callq 0x75fb8
jmp 0x75f56
cmpl $0x0, 0x2c(%rbx)
jne 0x75fb3
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x75fb3
callq 0xa630
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: pcache1FreePage
static void pcache1FreePage(PgHdr1 *p){
  PCache1 *pCache;
  assert( p!=0 );
  pCache = p->pCache;
  assert( sqlite3_mutex_held(p->pCache->pGroup->mutex) );
  if( p->isBulkLocal ){
    p->pNext = pCache->pFree;
    pCache->pFree = p;
  }else{
    pcache1Free(p->page.pBuf);
#ifdef SQLITE_PCACHE_SEPARATE_HEADER
    sqlite3_free(p);
#endif
  }
  if( pCache->bPurgeable ){
    pCache->pGroup->nCurrentPage--;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x20(%rdi), %rbx
cmpb $0x0, 0x15(%rdi)
je 0x7600f
movq 0x40(%rbx), %rax
movq %rax, 0x18(%rdi)
movq %rdi, 0x40(%rbx)
jmp 0x76017
movq (%rdi), %rdi
callq 0x21bb2
cmpl $0x0, 0x14(%rbx)
je 0x76023
movq (%rbx), %rax
decl 0x14(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: binCollFunc
static int binCollFunc(
  void *padFlag,
  int nKey1, const void *pKey1,
  int nKey2, const void *pKey2
){
  int rc, n;
  n = nKey1<nKey2 ? nKey1 : nKey2;
  /* EVIDENCE-OF: R-65033-28449 The built-in BINARY collation compares
  ** strings byte by byte using the memcmp() function from the standard C
  ** library. */
  rc = memcmp(pKey1, pKey2, n);
  if( rc==0 ){
    if( padFlag
     && allSpaces(((char*)pKey1)+n, nKey1-n)
     && allSpaces(((char*)pKey2)+n, nKey2-n)
    ){
      /* EVIDENCE-OF: R-31624-24737 RTRIM is like BINARY except that extra
      ** spaces at the end of either string do not change the result. In other
      ** words, strings will compare equal to one another as long as they
      ** differ only in the number of spaces at the end.
      */
    }else{
      rc = nKey1 - nKey2;
    }
  }
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %ebx
movl %esi, %r12d
movq %rdi, -0x30(%rbp)
movl %esi, %r13d
subl %ecx, %r13d
movl %ecx, %r14d
cmovll %esi, %r14d
movslq %r14d, %r15
movq %rdx, -0x38(%rbp)
movq %rdx, %rdi
movq %r8, -0x40(%rbp)
movq %r8, %rsi
movq %r15, %rdx
callq 0xa270
testl %eax, %eax
jne 0x765ca
movq -0x38(%rbp), %rax
cmpq $0x0, -0x30(%rbp)
movq -0x40(%rbp), %rsi
je 0x765c7
subl %r14d, %r12d
jle 0x765a3
addq %r15, %rax
decq %rax
movl %r12d, %ecx
cmpb $0x20, (%rax,%rcx)
jne 0x765c7
leal -0x1(%r12), %ecx
cmpl $0x1, %r12d
movl %ecx, %r12d
jg 0x7658a
jmp 0x765a5
jne 0x765c7
subl %r14d, %ebx
jle 0x765c5
leaq (%rsi,%r15), %rax
decq %rax
movl %ebx, %ecx
cmpb $0x20, (%rax,%rcx)
jne 0x765c7
leal -0x1(%rbx), %ecx
cmpl $0x1, %ebx
movl %ecx, %ebx
jg 0x765b1
jmp 0x765d9
je 0x765d9
movl %r13d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x765ca
// File: /workspace/github_c_makefile_star2_O3/antonblanchard[P]will-it-scale/tests/lseek1.c
// Function: testcase
void testcase(unsigned long long *iterations, unsigned long nr)
{
	char buf[BUFLEN];
	char tmpfile[] = "/tmp/willitscale.XXXXXX";
	int fd = mkstemp(tmpfile);

	assert(fd >= 0);
	unlink(tmpfile);

	assert(write(fd, buf, sizeof(buf)) == sizeof(buf));

	while (1) {
		lseek(fd, 0, SEEK_SET);

		(*iterations)++;
	}
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x1028, %rsp           # imm = 0x1028
movq %rdi, %rbx
movaps 0x6b9(%rip), %xmm0      # 0x3340
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movabsq $0x5858585858582e, %rax # imm = 0x5858585858582E
movq %rax, 0x10(%rdi)
callq 0x21d0
testl %eax, %eax
js 0x2cd7
movl %eax, %ebp
movq %rsp, %rdi
callq 0x2080
leaq 0x20(%rsp), %rsi
movl $0x1000, %edx           # imm = 0x1000
movl %ebp, %edi
callq 0x20d0
cmpq $0x1000, %rax           # imm = 0x1000
jne 0x2cf6
movl %ebp, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2120
incq (%rbx)
jmp 0x2cc7
leaq 0x5de(%rip), %rdi       # 0x32bc
leaq 0x5df(%rip), %rsi       # 0x32c4
leaq 0x5e7(%rip), %rcx       # 0x32d3
movl $0x10, %edx
callq 0x2130
leaq 0x609(%rip), %rdi       # 0x3306
leaq 0x5c0(%rip), %rsi       # 0x32c4
leaq 0x5c8(%rip), %rcx       # 0x32d3
movl $0x13, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O3/mloar[P]charset/fromucs.c
// Function: charset_from_unicode
int charset_from_unicode(const wchar_t **input, int *inlen,
			 char *output, int outlen,
			 int charset, charset_state *state, int *error)
{
    charset_spec const *spec = charset_find_spec(charset);
    charset_state localstate = CHARSET_INIT_STATE;
    struct charset_emit_param param;
    int locallen;

    if (!input) {
	locallen = 1;
	inlen = &locallen;
    }

    param.output = output;
    param.outlen = outlen;
    param.writtenlen = 0;
    param.stopped = 0;

    if (state)
	localstate = *state;	       /* structure copy */
    if (error)
	*error = FALSE;

    while (*inlen > 0) {
	int lenbefore = param.writtenlen;
	int ret;

	if (input)
	    ret = spec->write(spec, **input, &localstate,
			      charset_emit, &param);
	else
	    ret = spec->write(spec, -1, &localstate, charset_emit, &param);
	if (error && !ret) {
	    /*
	     * We have hit a difficult character, which the user
	     * wants to know about. Leave now.
	     */
	    *error = TRUE;
	    return lenbefore;
	}
	if (param.stopped) {
	    /*
	     * The emit function has _tried_ to output some
	     * characters, but ran up against the end of the
	     * buffer. Leave immediately, and return what happened
	     * _before_ attempting to process this character.
	     */
	    return lenbefore;
	}
	if (state)
	    *state = localstate;       /* structure copy */
	if (input)
	    (*input)++;
	(*inlen)--;
    }
    return param.writtenlen;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %rbx
movl %ecx, %ebp
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r14
movl %r8d, %edi
callq 0x69f8
movq %rax, %r12
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
testq %r14, %r14
jne 0x66f0
leaq 0x34(%rsp), %r15
movl $0x1, (%r15)
movq 0x70(%rsp), %rax
movq %r13, 0x8(%rsp)
movl %ebp, 0x10(%rsp)
movq $0x0, 0x14(%rsp)
testq %rbx, %rbx
je 0x6714
movups (%rbx), %xmm0
movaps %xmm0, 0x20(%rsp)
testq %rax, %rax
je 0x671f
movl $0x0, (%rax)
cmpl $0x0, (%r15)
jle 0x6793
movq %rax, %r13
testq %r14, %r14
je 0x6735
movq (%r14), %rax
movslq (%rax), %rsi
jmp 0x673c
movq $-0x1, %rsi
movl 0x14(%rsp), %ebp
movq %r12, %rdi
leaq 0x20(%rsp), %rdx
leaq 0x61(%rip), %rcx        # 0x67b0
leaq 0x8(%rsp), %r8
callq *0x10(%r12)
testq %r13, %r13
je 0x6762
testl %eax, %eax
je 0x6797
cmpl $0x0, 0x18(%rsp)
jne 0x679f
testq %rbx, %rbx
je 0x6776
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rbx)
testq %r14, %r14
je 0x677f
addq $0x4, (%r14)
movl (%r15), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%r15)
cmpl $0x1, %eax
jg 0x6728
movl 0x14(%rsp), %ebp
jmp 0x679f
xorl %ebp, %ebp
jmp 0x679f
movl $0x1, (%r13)
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mloar[P]charset/fromucs.c
// Function: charset_emit
static void charset_emit(void *ctx, long int output)
{
    struct charset_emit_param *param = (struct charset_emit_param *)ctx;

    if (param->outlen != 0) {
	if (param->output)
	    *param->output++ = output;
	if (param->outlen > 0)
	    param->outlen--;
	param->writtenlen++;
    } else {
	param->stopped = 1;
    }
}

// Assembly:
movl 0x8(%rdi), %eax
testl %eax, %eax
je 0x67d9
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x67cc
leaq 0x1(%rcx), %rax
movq %rax, (%rdi)
movb %sil, (%rcx)
movl 0x8(%rdi), %eax
testl %eax, %eax
jle 0x67d5
decl %eax
movl %eax, 0x8(%rdi)
incl 0xc(%rdi)
retq
movl $0x1, 0x10(%rdi)
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/eiselekd[P]MinimalLisp/./lf1.c
// Function: lf_eval
v *
lf_eval(lfctx *lfctx) 
{
    fctx *cctx = (fctx *)lfctx;
    v *r = 0, *f; v *e = POP;
    switch(e->tag) {
    case INT: case STR:
        PUSH(e);
        PUSH(mkInt(0));
        break;
    case SYM:
        if ((r = assq(e, TOSE))) {
            r = cdr(r);
        } else {
            fprintf(stderr, "Undefined symbol \"%s\"\n", str(e));
        }
        PUSH(r);
        PUSH(mkInt(0));
        break;
    case FUNC:
        break;
    case CONS:
        PUSH(cdr(e));
        PUSH(car(e));
        PUSH(mkInt(1));
        break;
    }
    return r;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r15
movq 0x120(%rdi), %rax
testq %rax, %rax
je 0xd531
movq 0x10(%rax), %r13
movq %r13, 0x120(%r15)
movq 0x8(%rax), %r12
jmp 0xd537
xorl %r13d, %r13d
xorl %r12d, %r12d
movl (%r12), %eax
andl $0xf, %eax
xorl %r14d, %r14d
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jb 0xd58c
testl %eax, %eax
je 0xd59c
cmpl $0x3, %eax
jne 0xd638
movq 0x178(%r15), %rax
testq %rax, %rax
movq %r15, -0x38(%rbp)
je 0xd64a
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xd64a
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0xd586
cmpq %r12, 0x8(%rcx)
je 0xd5db
movq 0x10(%rax), %rax
jmp 0xd56e
movq %r15, -0x38(%rbp)
xorl %ebx, %ebx
movq $0x0, -0x30(%rbp)
jmp 0xd5e5
movq 0x10(%r12), %rbx
movl $0x18, %edi
callq 0x2100
movl $0x0, (%rax)
movq %rbx, 0x8(%rax)
movq %r13, 0x10(%rax)
movq %r15, -0x38(%rbp)
movq %rax, 0x120(%r15)
movq 0x8(%r12), %r12
movl $0x1, %ebx
movq $0x0, -0x30(%rbp)
movq %rax, %r13
jmp 0xd5e5
movq 0x10(%rcx), %r12
xorl %ebx, %ebx
movq %r12, -0x30(%rbp)
movl $0x18, %edi
callq 0x2100
movq %rax, %r15
movl %r14d, (%rax)
movq %r12, 0x8(%rax)
movq %r13, 0x10(%rax)
movl $0x18, %edi
callq 0x2100
movq %rax, %r12
movl $0x1, (%rax)
movq %rbx, 0x8(%rax)
movl $0x18, %edi
callq 0x2100
movl %r14d, (%rax)
movq %r12, 0x8(%rax)
movq %r15, 0x10(%rax)
movq -0x38(%rbp), %rcx
movq %rax, 0x120(%rcx)
movq -0x30(%rbp), %r14
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x59a7(%rip), %rax      # 0x12ff8
movq (%rax), %rdi
movq 0x8(%r12), %rdx
leaq 0x1afd(%rip), %rsi      # 0xf15d
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x20c0
movq 0x120(%r15), %r13
jmp 0xd590