LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: windowCheckIntValue
static void windowCheckIntValue(Parse *pParse, int reg, int eCond){
  static const char *azErr[] = {
    "frame starting offset must be a non-negative integer",
    "frame ending offset must be a non-negative integer",
    "second argument to nth_value must be a positive integer"
  };
  static int aOp[] = { OP_Ge, OP_Ge, OP_Gt };
  Vdbe *v = sqlite3GetVdbe(pParse);
  int regZero = sqlite3GetTempReg(pParse);
  assert( eCond==0 || eCond==1 || eCond==2 );
  sqlite3VdbeAddOp2(v, OP_Integer, 0, regZero);
  sqlite3VdbeAddOp2(v, OP_MustBeInt, reg, sqlite3VdbeCurrentAddr(v)+2);
  VdbeCoverageIf(v, eCond==0);
  VdbeCoverageIf(v, eCond==1);
  VdbeCoverageIf(v, eCond==2);
  sqlite3VdbeAddOp3(v, aOp[eCond], regZero, sqlite3VdbeCurrentAddr(v)+2, reg);
  VdbeCoverageNeverNullIf(v, eCond==0);
  VdbeCoverageNeverNullIf(v, eCond==1);
  VdbeCoverageNeverNullIf(v, eCond==2);
  sqlite3VdbeAddOp2(v, OP_Halt, SQLITE_ERROR, OE_Abort);
  sqlite3VdbeAppendP4(v, (void*)azErr[eCond], P4_STATIC);
  sqlite3ReleaseTempReg(pParse, regZero);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r12d
movl %esi, %r15d
movq %rdi, %rbx
callq 0x44856b
movq %rax, %r14
movq %rbx, %rdi
callq 0x44b9b3
movl %eax, %ebp
pushq $0x46
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
movl %eax, %ecx
callq 0x432a3f
movl 0xb8(%r14), %ecx
addl $0x2, %ecx
pushq $0xf
popq %rsi
movq %r14, %rdi
movl %r15d, %edx
callq 0x432a3f
movl %r12d, %r12d
leaq 0xdf727(%rip), %rax     # 0x53df54
movl (%rax,%r12,4), %esi
movl 0xb8(%r14), %ecx
addl $0x2, %ecx
movq %r14, %rdi
movl %ebp, %edx
movl %r15d, %r8d
callq 0x432a44
pushq $0x45
popq %rsi
pushq $0x1
popq %rdx
pushq $0x2
popq %rcx
movq %r14, %rdi
callq 0x432a3f
leaq 0xdf6e8(%rip), %rax     # 0x53df48
movslq (%rax,%r12,4), %rsi
addq %rax, %rsi
pushq $-0x1
popq %rdx
movq %r14, %rdi
callq 0x448919
testl %ebp, %ebp
je 0x45e88d
movzbl 0x1f(%rbx), %eax
cmpq $0x7, %rax
ja 0x45e88d
leal 0x1(%rax), %ecx
movb %cl, 0x1f(%rbx)
movl %ebp, 0xc4(%rbx,%rax,4)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: windowInitAccum
static int windowInitAccum(Parse *pParse, Window *pMWin){
  Vdbe *v = sqlite3GetVdbe(pParse);
  int regArg;
  int nArg = 0;
  Window *pWin;
  for(pWin=pMWin; pWin; pWin=pWin->pNextWin){
    FuncDef *pFunc = pWin->pFunc;
    sqlite3VdbeAddOp2(v, OP_Null, 0, pWin->regAccum);
    nArg = MAX(nArg, windowArgCount(pWin));
    if( pFunc->zName==nth_valueName
     || pFunc->zName==first_valueName
    ){
      sqlite3VdbeAddOp2(v, OP_Integer, 0, pWin->regApp);
      sqlite3VdbeAddOp2(v, OP_Integer, 0, pWin->regApp+1);
    }

    if( (pFunc->funcFlags & SQLITE_FUNC_MINMAX) && pWin->csrApp ){
      assert( pWin->eStart!=TK_UNBOUNDED );
      sqlite3VdbeAddOp1(v, OP_ResetSorter, pWin->csrApp);
      sqlite3VdbeAddOp2(v, OP_Integer, 0, pWin->regApp+1);
    }
  }
  regArg = pParse->nMem+1;
  pParse->nMem += nArg;
  return regArg;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, (%rsp)
callq 0x44856b
movq %rax, %r15
leaq 0xdf675(%rip), %r13     # 0x53df2c
pushq $0x46
popq %r12
xorl %ebx, %ebx
testq %r14, %r14
je 0x45e96e
movq 0x40(%r14), %rbp
movl 0x4c(%r14), %ecx
movq %r15, %rdi
pushq $0x49
popq %rsi
xorl %edx, %edx
callq 0x432a3f
movq 0x60(%r14), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x45e8ee
movl (%rax), %eax
cmpl %eax, %ebx
jmp 0x45e8f5
testl %ebx, %ebx
movl $0x0, %eax
cmovlel %eax, %ebx
movq 0x38(%rbp), %rax
leaq 0xdf61f(%rip), %rcx     # 0x53df22
cmpq %rcx, %rax
setne %cl
cmpq %r13, %rax
setne %al
testb %al, %cl
jne 0x45e937
movl 0x58(%r14), %ecx
movq %r15, %rdi
movl %r12d, %esi
xorl %edx, %edx
callq 0x432a3f
movl 0x58(%r14), %ecx
incl %ecx
movq %r15, %rdi
movl %r12d, %esi
xorl %edx, %edx
callq 0x432a3f
testb $0x10, 0x5(%rbp)
je 0x45e965
movl 0x54(%r14), %edx
testl %edx, %edx
je 0x45e965
movq %r15, %rdi
movl $0x8b, %esi
callq 0x449fcc
movl 0x58(%r14), %ecx
incl %ecx
movq %r15, %rdi
movl %r12d, %esi
xorl %edx, %edx
callq 0x432a3f
movq 0x30(%r14), %r14
jmp 0x45e8bd
movq (%rsp), %rdx
movl 0x38(%rdx), %ecx
leal 0x1(%rcx), %eax
addl %ecx, %ebx
movl %ebx, 0x38(%rdx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: windowAggFinal
static void windowAggFinal(Parse *pParse, Window *pMWin, int bFinal){
  Vdbe *v = sqlite3GetVdbe(pParse);
  Window *pWin;

  for(pWin=pMWin; pWin; pWin=pWin->pNextWin){
    if( (pWin->pFunc->funcFlags & SQLITE_FUNC_MINMAX) 
     && pWin->eStart!=TK_UNBOUNDED 
    ){
      sqlite3VdbeAddOp2(v, OP_Null, 0, pWin->regResult);
      sqlite3VdbeAddOp1(v, OP_Last, pWin->csrApp);
      VdbeCoverage(v);
      sqlite3VdbeAddOp3(v, OP_Column, pWin->csrApp, 0, pWin->regResult);
      sqlite3VdbeJumpHere(v, sqlite3VdbeCurrentAddr(v)-2);
      if( bFinal ){
        sqlite3VdbeAddOp1(v, OP_ResetSorter, pWin->csrApp);
      }
    }else if( pWin->regApp ){
    }else{
      if( bFinal ){
        sqlite3VdbeAddOp2(v, OP_AggFinal, pWin->regAccum, windowArgCount(pWin));
        sqlite3VdbeAppendP4(v, pWin->pFunc, P4_FUNCDEF);
        sqlite3VdbeAddOp2(v, OP_Copy, pWin->regAccum, pWin->regResult);
        sqlite3VdbeAddOp2(v, OP_Null, 0, pWin->regAccum);
      }else{
        sqlite3VdbeAddOp3(v, OP_AggValue, pWin->regAccum, windowArgCount(pWin),
                             pWin->regResult);
        sqlite3VdbeAppendP4(v, pWin->pFunc, P4_FUNCDEF);
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
callq 0x44856b
movq %rax, %r15
pushq $-0x8
popq %rbp
pushq $0x49
popq %r13
pushq $0x5a
popq %r12
testq %r14, %r14
je 0x45edf5
movq 0x40(%r14), %rax
testb $0x10, 0x5(%rax)
je 0x45ecf9
cmpb $0x57, 0x19(%r14)
jne 0x45ed1d
cmpl $0x0, 0x58(%r14)
jne 0x45edec
movl 0x4c(%r14), %edx
movq 0x60(%r14), %rax
movq 0x20(%rax), %rax
testl %ebx, %ebx
je 0x45ed7f
testq %rax, %rax
je 0x45ed88
movl (%rax), %ecx
jmp 0x45ed8a
movl 0x50(%r14), %ecx
movq %r15, %rdi
movl %r13d, %esi
xorl %edx, %edx
callq 0x432a3f
movl 0x54(%r14), %edx
movq %r15, %rdi
pushq $0x20
popq %rsi
callq 0x449fcc
movl 0x50(%r14), %r8d
movl 0x54(%r14), %edx
movq %r15, %rdi
movl %r12d, %esi
xorl %ecx, %ecx
callq 0x432a44
movl 0xb8(%r15), %esi
addl $-0x2, %esi
movq %r15, %rdi
callq 0x4485a5
testl %ebx, %ebx
je 0x45edec
movl 0x54(%r14), %edx
movq %r15, %rdi
movl $0x8b, %esi
callq 0x449fcc
jmp 0x45edec
testq %rax, %rax
je 0x45edcb
movl (%rax), %ecx
jmp 0x45edcd
xorl %ecx, %ecx
movq %r15, %rdi
movl $0x9e, %esi
callq 0x432a3f
movq 0x40(%r14), %rsi
movq %r15, %rdi
movl %ebp, %edx
callq 0x448919
movl 0x4c(%r14), %edx
movl 0x50(%r14), %ecx
movq %r15, %rdi
pushq $0x4e
popq %rsi
callq 0x432a3f
movl 0x4c(%r14), %ecx
movq %r15, %rdi
movl %r13d, %esi
xorl %edx, %edx
callq 0x432a3f
jmp 0x45edec
xorl %ecx, %ecx
movl 0x50(%r14), %r8d
movq %r15, %rdi
movl $0x9d, %esi
callq 0x432a44
movq 0x40(%r14), %rsi
movq %r15, %rdi
movl %ebp, %edx
callq 0x448919
movq 0x30(%r14), %r14
jmp 0x45ecdf
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: windowReturnRows
static void windowReturnRows(
  Parse *pParse,
  Window *pMWin,                  /* List of window functions */
  int regCtr,                     /* Register containing number of rows */
  int regGosub,                   /* Register for Gosub addrGosub */
  int addrGosub,                  /* Address of sub-routine for ReturnOneRow */
  int regInvArg,                  /* Array of registers for xInverse args */
  int regInvSize                  /* Register containing size of partition */
){
  int addr;
  Vdbe *v = sqlite3GetVdbe(pParse);
  windowAggFinal(pParse, pMWin, 0);
  addr = sqlite3VdbeAddOp3(v, OP_IfPos, regCtr, sqlite3VdbeCurrentAddr(v)+2 ,1);
  VdbeCoverage(v);
  sqlite3VdbeAddOp2(v, OP_Goto, 0, 0);
  windowReturnOneRow(pParse, pMWin, regGosub, addrGosub);
  if( regInvArg ){
    windowAggStep(pParse, pMWin, pMWin->iEphCsr, 1, regInvArg, regInvSize);
  }
  sqlite3VdbeAddOp2(v, OP_Next, pMWin->iEphCsr, addr);
  VdbeCoverage(v);
  sqlite3VdbeJumpHere(v, addr+1);   /* The OP_Goto */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebp
movl %r8d, 0x4(%rsp)
movl %ecx, %r13d
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %r12
movl 0x40(%rsp), %eax
movl %eax, (%rsp)
callq 0x44856b
movq %rax, %rbx
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x45ecbc
movl 0xb8(%rbx), %ecx
addl $0x2, %ecx
pushq $0x2f
popq %rsi
pushq $0x1
popq %r8
movq %rbx, %rdi
movl %r15d, %edx
callq 0x432a44
movl %eax, %r15d
pushq $0xb
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x432a3f
movq %r12, %rdi
movq %r14, %rsi
movl %r13d, %edx
movl 0x4(%rsp), %ecx
callq 0x45ee04
testl %ebp, %ebp
je 0x45f1fa
movl 0x48(%r14), %edx
pushq $0x1
popq %rcx
movq %r12, %rdi
movq %r14, %rsi
movl %ebp, %r8d
movl (%rsp), %r9d
callq 0x45e98c
movl 0x48(%r14), %edx
pushq $0x5
popq %rsi
movq %rbx, %rdi
movl %r15d, %ecx
callq 0x432a3f
incl %r15d
movq %rbx, %rdi
movl %r15d, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4485a5
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: havingToWhereExprCb
static int havingToWhereExprCb(Walker *pWalker, Expr *pExpr){
  if( pExpr->op!=TK_AND ){
    Select *pS = pWalker->u.pSelect;
    if( sqlite3ExprIsConstantOrGroupBy(pWalker->pParse, pExpr, pS->pGroupBy) ){
      sqlite3 *db = pWalker->pParse->db;
      Expr *pNew = sqlite3ExprAlloc(db, TK_INTEGER, &sqlite3IntTokens[1], 0);
      if( pNew ){
        Expr *pWhere = pS->pWhere;
        SWAP(Expr, *pNew, *pExpr);
        pNew = sqlite3ExprAnd(db, pWhere, pNew);
        pS->pWhere = pNew;
        pWalker->eCode = 1;
      }
    }
    return WRC_Prune;
  }
  return WRC_Continue;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
xorl %ebp, %ebp
cmpb $0x2c, (%rsi)
je 0x45f79d
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x28(%rdi), %r12
movq 0x38(%r12), %rcx
movq %rsp, %r15
movb $0x1, 0x24(%r15)
leaq 0x99(%rip), %rdx        # 0x45f7ac
movq %rdx, 0x8(%r15)
andq $0x0, 0x10(%r15)
movq %rcx, 0x28(%r15)
movq %rax, (%r15)
movq %r15, %rdi
callq 0x44bba1
cmpb $0x0, 0x24(%r15)
pushq $0x1
popq %rbp
je 0x45f79d
movq (%rbx), %rax
movq (%rax), %r15
leaq 0x131c7e(%rip), %rdx    # 0x5913c0
movq %r15, %rdi
movl $0x8f, %esi
xorl %ecx, %ecx
callq 0x440b7f
testq %rax, %rax
je 0x45f79d
movq 0x30(%r12), %rdx
pushq $0xa
popq %r8
movq %rsp, %r9
movq %r8, %rcx
movq %r9, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r8, %rcx
movq %rax, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r8, %rcx
movq %r14, %rdi
movq %r9, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r15, %rdi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x451924
movq %rax, 0x30(%r12)
movb $0x1, 0x24(%rbx)
movl %ebp, %eax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/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 ){
      const char *zDb;
      assert( iDb<db->nDb );
      zDb = db->aDb[iDb].zDbSName;
      pSrc->a[pSrc->nSrc-1].zDatabase =  sqlite3DbStrDup(db, zDb);
    }
  }
  return pSrc;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq (%rdi), %rbx
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x440d1c
movq %rax, %r14
testq %rax, %rax
je 0x4619c1
movq 0x18(%r15), %rsi
movq %rbx, %rdi
callq 0x40ad83
movslq (%r14), %rcx
imulq $0x70, %rcx, %rcx
movq %rax, -0x58(%rcx,%r14)
movq 0x8(%r15), %rax
movq 0x28(%rax), %rsi
movq %rbx, %rdi
callq 0x40c73a
testl %eax, %eax
setne %cl
cmpl $0x2, %eax
setl %dl
testb %dl, %cl
jne 0x4619c1
movq %r14, %r15
addq $0x8, %r15
movq 0x20(%rbx), %rcx
movl %eax, %eax
shlq $0x5, %rax
movq (%rcx,%rax), %rsi
movq %rbx, %rdi
callq 0x40ad83
movslq (%r14), %rcx
imulq $0x70, %rcx, %rcx
movq %rax, -0x68(%rcx,%r15)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: setLikeOptFlag
static void setLikeOptFlag(sqlite3 *db, const char *zName, u8 flagVal){
  FuncDef *pDef;
  pDef = sqlite3FindFunction(db, zName, 2, SQLITE_UTF8, 0);
  if( ALWAYS(pDef) ){
    pDef->funcFlags |= flagVal;
  }
}

// Assembly:
pushq %rbx
movl %edx, %ebx
pushq $0x2
popq %rdx
pushq $0x1
popq %rcx
xorl %r8d, %r8d
callq 0x410b99
testq %rax, %rax
je 0x46413e
movzbl %bl, %ecx
orl %ecx, 0x4(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: detachFunc
static void detachFunc(
  sqlite3_context *context,
  int NotUsed,
  sqlite3_value **argv
){
  const char *zName = (const char *)sqlite3_value_text(argv[0]);
  sqlite3 *db = sqlite3_context_db_handle(context);
  int i;
  Db *pDb = 0;
  char zErr[128];

  UNUSED_PARAMETER(NotUsed);

  if( zName==0 ) zName = "";
  for(i=0; i<db->nDb; i++){
    pDb = &db->aDb[i];
    if( pDb->pBt==0 ) continue;
    if( sqlite3StrICmp(pDb->zDbSName, zName)==0 ) break;
  }

  if( i>=db->nDb ){
    sqlite3_snprintf(sizeof(zErr),zErr, "no such database: %s", zName);
    goto detach_error;
  }
  if( i<2 ){
    sqlite3_snprintf(sizeof(zErr),zErr, "cannot detach database %s", zName);
    goto detach_error;
  }
  if( sqlite3BtreeIsInReadTrans(pDb->pBt) || sqlite3BtreeIsInBackup(pDb->pBt) ){
    sqlite3_snprintf(sizeof(zErr),zErr, "database %s is locked", zName);
    goto detach_error;
  }

  sqlite3BtreeClose(pDb->pBt);
  pDb->pBt = 0;
  pDb->pSchema = 0;
  sqlite3CollapseDatabaseArray(db);
  return;

detach_error:
  sqlite3_result_error(context, zErr, -1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
movq (%rdx), %rdi
callq 0x409a69
movq %rbx, 0x8(%rsp)
movq (%rbx), %rcx
testq %rax, %rax
leaq 0xfb537(%rip), %rdx     # 0x56028d
cmovneq %rax, %rdx
movq %rdx, (%rsp)
movq 0x28(%rcx), %r15
movl 0x28(%r15), %ebx
xorl %ebp, %ebp
testl %ebx, %ebx
cmovlel %ebp, %ebx
xorl %r14d, %r14d
cmpq %r14, %rbx
je 0x464d9d
movq 0x20(%r15), %r12
movq 0x8(%r12,%rbp), %r13
testq %r13, %r13
je 0x464d94
movq (%r12,%rbp), %rdi
movq (%rsp), %rsi
callq 0x406caf
testl %eax, %eax
je 0x464da6
incq %r14
addq $0x20, %rbp
jmp 0x464d70
leaq 0xdd039(%rip), %rdx     # 0x541ddd
jmp 0x464dca
cmpq $0x2, %r14
jae 0x464db5
leaq 0xdd03f(%rip), %rdx     # 0x541df2
jmp 0x464dca
leaq 0xdd050(%rip), %rdx     # 0x541e0c
cmpb $0x0, 0x10(%r13)
jne 0x464dca
cmpl $0x0, 0x18(%r13)
je 0x464e04
leaq 0x10(%rsp), %r15
movl $0x80, %edi
movq %r15, %rsi
movq (%rsp), %rcx
xorl %eax, %eax
callq 0x406914
pushq $-0x1
popq %rdx
movq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x409d30
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %rdi
callq 0x41f6a7
andq $0x0, 0x8(%r12,%rbp)
andq $0x0, 0x18(%r12,%rbp)
movq %r15, %rdi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4334ef
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: renameTestSchema
static void renameTestSchema(Parse *pParse, const char *zDb, int bTemp){
  sqlite3NestedParse(pParse, 
      "SELECT 1 "
      "FROM \"%w\".%s "
      "WHERE name NOT LIKE 'sqlite_%%'"
      " AND sql NOT LIKE 'create virtual%%'"
      " AND sqlite_rename_test(%Q, sql, type, name, %d)=NULL ",
      zDb, MASTER_NAME, 
      zDb, bTemp
  );

  if( bTemp==0 ){
    sqlite3NestedParse(pParse, 
        "SELECT 1 "
        "FROM temp.%s "
        "WHERE name NOT LIKE 'sqlite_%%'"
        " AND sql NOT LIKE 'create virtual%%'"
        " AND sqlite_rename_test(%Q, sql, type, name, 1)=NULL ",
        MASTER_NAME, zDb 
    );
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xdc6c5(%rip), %rsi     # 0x54221f
leaq 0xd96bb(%rip), %rcx     # 0x53f21c
movq %rbx, %rdx
movq %rbx, %r8
movl %ebp, %r9d
xorl %eax, %eax
callq 0x44dcb3
testl %ebp, %ebp
je 0x465b7a
popq %rbx
popq %r14
popq %rbp
retq
leaq 0xdc72e(%rip), %rsi     # 0x5422af
leaq 0xd9694(%rip), %rdx     # 0x53f21c
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x44dcb3
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3InsertBuiltinFuncs
SQLITE_PRIVATE void sqlite3InsertBuiltinFuncs(
  FuncDef *aDef,      /* List of global functions to be inserted */
  int nDef            /* Length of the apDef[] list */
){
  int i;
  for(i=0; i<nDef; i++){
    FuncDef *pOther;
    const char *zName = aDef[i].zName;
    int nName = sqlite3Strlen30(zName);
    int h = (zName[0] + nName) % SQLITE_FUNC_HASH_SZ;
    assert( zName[0]>='a' && zName[0]<='z' );
    pOther = functionSearch(h, zName);
    if( pOther ){
      assert( pOther!=&aDef[i] && pOther->pNext!=&aDef[i] );
      aDef[i].pNext = pOther->pNext;
      pOther->pNext = &aDef[i];
    }else{
      aDef[i].pNext = 0;
      aDef[i].u.pHash = sqlite3BuiltinFunctions.a[h];
      sqlite3BuiltinFunctions.a[h] = &aDef[i];
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r15d, %r15d
testl %esi, %esi
cmovgl %esi, %r15d
pushq $0x17
popq %r12
pushq $0x10
popq %r13
subq $0x1, %r15
jb 0x46756b
movq 0x38(%rbx), %r14
movq %r14, %rdi
callq 0x4066a8
movsbl (%r14), %ecx
addl %ecx, %eax
cltd
idivl %r12d
movl %edx, %ebp
movl %edx, %edi
movq %r14, %rsi
callq 0x46a334
testq %rax, %rax
je 0x467545
addq $0x10, %rax
movq %r13, %rcx
jmp 0x46755b
andq $0x0, 0x10(%rbx)
movslq %ebp, %rax
leaq 0x13051c(%rip), %rcx    # 0x597a70
leaq (%rcx,%rax,8), %rax
pushq $0x40
popq %rcx
movq (%rax), %rdx
movq %rdx, (%rbx,%rcx)
movq %rbx, (%rax)
addq $0x48, %rbx
jmp 0x46750f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: renameParseSql
static int renameParseSql(
  Parse *p,                       /* Memory to use for Parse object */
  const char *zDb,                /* Name of schema SQL belongs to */
  int bTable,                     /* 1 -> RENAME TABLE, 0 -> RENAME COLUMN */
  sqlite3 *db,                    /* Database handle */
  const char *zSql,               /* SQL to parse */
  int bTemp                       /* True if SQL is from temp schema */
){
  int rc;
  char *zErr = 0;

  db->init.iDb = bTemp ? 1 : sqlite3FindDbName(db, zDb);

  /* Parse the SQL statement passed as the first argument. If no error
  ** occurs and the parse does not result in a new table, index or
  ** trigger object, the database must be corrupt. */
  memset(p, 0, sizeof(Parse));
  p->eParseMode = (bTable ? PARSE_MODE_RENAME_TABLE : PARSE_MODE_RENAME_COLUMN);
  p->db = db;
  p->nQueryLoop = 1;
  rc = sqlite3RunParser(p, zSql, &zErr);
  assert( p->zErrMsg==0 );
  assert( rc!=SQLITE_OK || zErr==0 );
  assert( (0!=p->pNewTable) + (0!=p->pNewIndex) + (0!=p->pNewTrigger)<2 );
  p->zErrMsg = zErr;
  if( db->mallocFailed ) rc = SQLITE_NOMEM;
  if( rc==SQLITE_OK 
   && p->pNewTable==0 && p->pNewIndex==0 && p->pNewTrigger==0 
  ){
    rc = SQLITE_CORRUPT_BKPT;
  }

#ifdef SQLITE_DEBUG
  /* Ensure that all mappings in the Parse.pRename list really do map to
  ** a part of the input string.  */
  if( rc==SQLITE_OK ){
    int nSql = sqlite3Strlen30(zSql);
    RenameToken *pToken;
    for(pToken=p->pRename; pToken; pToken=pToken->pNext){
      assert( pToken->t.z>=zSql && &pToken->t.z[pToken->t.n]<=&zSql[nSql] );
    }
  }
#endif

  db->init.iDb = 0;
  return rc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %r15
movq %rcx, %rbx
movl %edx, %ebp
andq $0x0, 0x8(%rsp)
movq %rdi, %r14
movb $0x1, %al
testl %r9d, %r9d
jne 0x468121
movq %rbx, %rdi
callq 0x411129
movb %al, 0xb4(%rbx)
leaq 0x8(%r14), %rdi
movl $0x190, %edx            # imm = 0x190
xorl %esi, %esi
callq 0x4010b8
testl %ebp, %ebp
sete %al
xorb $0x3, %al
movb %al, 0x10c(%r14)
movq %rbx, (%r14)
movl $0x1, 0xb4(%r14)
leaq 0x8(%rsp), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x40eb8d
movl %eax, %ecx
movq (%r12), %rax
movq %rax, 0x8(%r14)
cmpb $0x0, 0x61(%rbx)
pushq $0x7
popq %rax
cmovel %ecx, %eax
testl %eax, %eax
jne 0x468194
cmpq $0x0, 0x138(%r14)
jne 0x468192
cmpq $0x0, 0x140(%r14)
je 0x4681a8
xorl %eax, %eax
movb $0x0, 0xb4(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x148(%r14)
movl $0x0, %eax
jne 0x468194
movl $0x18ebb, %edi          # imm = 0x18EBB
callq 0x418527
jmp 0x468194
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: renameColumnElistNames
static void renameColumnElistNames(
  Parse *pParse, 
  RenameCtx *pCtx, 
  ExprList *pEList, 
  const char *zOld
){
  if( pEList ){
    int i;
    for(i=0; i<pEList->nExpr; i++){
      char *zName = pEList->a[i].zName;
      if( 0==sqlite3_stricmp(zName, zOld) ){
        renameTokenFind(pParse, pCtx, (void*)zName);
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, (%rsp)
testq %rdx, %rdx
je 0x4684b4
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r12
leaq 0x10(%rdx), %rbp
xorl %r15d, %r15d
movslq (%r14), %rax
cmpq %rax, %r15
jge 0x4684b4
movq (%rbp), %r13
movq %r13, %rdi
movq %rbx, %rsi
callq 0x406c99
testl %eax, %eax
jne 0x4684ab
movq %r12, %rdi
movq (%rsp), %rsi
movq %r13, %rdx
callq 0x468217
incq %r15
addq $0x20, %rbp
jmp 0x468481
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: renameParseCleanup
static void renameParseCleanup(Parse *pParse){
  sqlite3 *db = pParse->db;
  if( pParse->pVdbe ){
    sqlite3VdbeFinalize(pParse->pVdbe);
  }
  sqlite3DeleteTable(db, pParse->pNewTable);
  if( pParse->pNewIndex ) sqlite3FreeIndex(db, pParse->pNewIndex);
  sqlite3DeleteTrigger(db, pParse->pNewTrigger);
  sqlite3DbFree(db, pParse->zErrMsg);
  renameTokenFree(db, pParse->pRename);
  sqlite3ParserReset(pParse);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x468845
callq 0x4097b2
movq 0x138(%rbx), %rsi
movq %r14, %rdi
callq 0x404307
movq 0x140(%rbx), %rsi
testq %rsi, %rsi
je 0x468868
movq %r14, %rdi
callq 0x430b21
movq 0x148(%rbx), %rsi
movq %r14, %rdi
callq 0x4042ad
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4043ed
movq 0x190(%rbx), %rsi
movq %r14, %rdi
callq 0x4688a1
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x40cde0
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: renameTableExprCb
static int renameTableExprCb(Walker *pWalker, Expr *pExpr){
  RenameCtx *p = pWalker->u.pRename;
  if( pExpr->op==TK_COLUMN && p->pTab==pExpr->pTab ){
    renameTokenFind(pWalker->pParse, p, (void*)&pExpr->pTab);
  }
  return WRC_Continue;
}

// Assembly:
cmpb $-0x62, (%rsi)
jne 0x4688ed
movq %rsi, %rdx
movq 0x28(%rdi), %rsi
movq 0x10(%rsi), %rax
cmpq 0x40(%rdx), %rax
jne 0x4688ed
pushq %rax
addq $0x40, %rdx
movq (%rdi), %rdi
callq 0x468217
addq $0x8, %rsp
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: renameTableSelectCb
static int renameTableSelectCb(Walker *pWalker, Select *pSelect){
  int i;
  RenameCtx *p = pWalker->u.pRename;
  SrcList *pSrc = pSelect->pSrc;
  for(i=0; i<pSrc->nSrc; i++){
    struct SrcList_item *pItem = &pSrc->a[i];
    if( pItem->pTab==p->pTab ){
      renameTokenFind(pWalker->pParse, p, pItem->zName);
    }
  }

  return WRC_Continue;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x28(%rdi), %r14
movq 0x28(%rsi), %r15
leaq 0x28(%r15), %r12
xorl %r13d, %r13d
movslq (%r15), %rax
cmpq %rax, %r13
jge 0x468936
movq (%r12), %rax
cmpq 0x10(%r14), %rax
jne 0x46892d
movq (%rbx), %rdi
movq -0x10(%r12), %rdx
movq %r14, %rsi
callq 0x468217
incq %r13
addq $0x70, %r12
jmp 0x46890b
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: percent_rankStepFunc
static void percent_rankStepFunc(
  sqlite3_context *pCtx, 
  int nArg,
  sqlite3_value **apArg
){
  struct CallCount *p;
  UNUSED_PARAMETER(nArg); assert( nArg==1 );

  p = (struct CallCount*)sqlite3_aggregate_context(pCtx, sizeof(*p));
  if( p ){
    if( p->nTotal==0 ){
      p->nTotal = sqlite3_value_int64(apArg[0]);
    }
    p->nStep++;
    if( p->nValue==0 ){
      p->nValue = p->nStep;
    }
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
pushq $0x18
popq %rsi
callq 0x40adf0
testq %rax, %rax
je 0x468a50
movq %rax, %rbx
cmpq $0x0, 0x10(%rax)
jne 0x468a3c
movq (%r14), %rdi
callq 0x409ad7
movq %rax, 0x10(%rbx)
movq 0x8(%rbx), %rax
incq %rax
movq %rax, 0x8(%rbx)
cmpq $0x0, (%rbx)
jne 0x468a50
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: percent_rankValueFunc
static void percent_rankValueFunc(sqlite3_context *pCtx){
  struct CallCount *p;
  p = (struct CallCount*)sqlite3_aggregate_context(pCtx, sizeof(*p));
  if( p ){
    if( p->nTotal>1 ){
      double r = (double)(p->nValue-1) / (double)(p->nTotal-1);
      sqlite3_result_double(pCtx, r);
    }else{
      sqlite3_result_double(pCtx, 0.0);
    }
    p->nValue = 0;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x18
popq %rsi
callq 0x40adf0
testq %rax, %rax
je 0x468aa0
movq %rax, %r14
movq 0x10(%rax), %rax
xorpd %xmm0, %xmm0
cmpq $0x2, %rax
jl 0x468a94
movq (%r14), %rcx
decq %rcx
cvtsi2sd %rcx, %xmm0
decq %rax
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
movq %rbx, %rdi
callq 0x409cf3
andq $0x0, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: cume_distStepFunc
static void cume_distStepFunc(
  sqlite3_context *pCtx, 
  int nArg,
  sqlite3_value **apArg
){
  struct CallCount *p;
  assert( nArg==1 ); UNUSED_PARAMETER(nArg);

  p = (struct CallCount*)sqlite3_aggregate_context(pCtx, sizeof(*p));
  if( p ){
    if( p->nTotal==0 ){
      p->nTotal = sqlite3_value_int64(apArg[0]);
    }
    p->nStep++;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
pushq $0x18
popq %rsi
callq 0x40adf0
testq %rax, %rax
je 0x468ad6
movq %rax, %rbx
cmpq $0x0, 0x10(%rax)
jne 0x468ad2
movq (%r14), %rdi
callq 0x409ad7
movq %rax, 0x10(%rbx)
incq 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: cume_distValueFunc
static void cume_distValueFunc(sqlite3_context *pCtx){
  struct CallCount *p;
  p = (struct CallCount*)sqlite3_aggregate_context(pCtx, sizeof(*p));
  if( p && p->nTotal ){
    double r = (double)(p->nStep) / (double)(p->nTotal);
    sqlite3_result_double(pCtx, r);
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x18
popq %rsi
callq 0x40adf0
testq %rax, %rax
je 0x468b10
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x468b10
cvtsi2sdq 0x8(%rax), %xmm0
cvtsi2sd %rcx, %xmm1
divsd %xmm1, %xmm0
movq %rbx, %rdi
popq %rbx
jmp 0x409cf3
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: ntileStepFunc
static void ntileStepFunc(
  sqlite3_context *pCtx, 
  int nArg,
  sqlite3_value **apArg
){
  struct NtileCtx *p;
  assert( nArg==2 ); UNUSED_PARAMETER(nArg);
  p = (struct NtileCtx*)sqlite3_aggregate_context(pCtx, sizeof(*p));
  if( p ){
    if( p->nTotal==0 ){
      p->nParam = sqlite3_value_int64(apArg[0]);
      p->nTotal = sqlite3_value_int64(apArg[1]);
      if( p->nParam<=0 ){
        sqlite3_result_error(
            pCtx, "argument of ntile must be a positive integer", -1
        );
      }
    }
    p->iRow++;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rdi, %rbx
pushq $0x18
popq %rsi
callq 0x40adf0
testq %rax, %rax
je 0x468b68
movq %rax, %r14
cmpq $0x0, (%rax)
jne 0x468b64
movq (%r15), %rdi
callq 0x409ad7
movq %rax, 0x8(%r14)
movq 0x8(%r15), %rdi
callq 0x409ad7
movq %rax, (%r14)
cmpq $0x0, 0x8(%r14)
jg 0x468b64
leaq 0xd9db2(%rip), %rsi     # 0x54290b
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x409d30
incq 0x10(%r14)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: last_valueValueFunc
static void last_valueValueFunc(sqlite3_context *pCtx){
  struct LastValueCtx *p;
  p = (struct LastValueCtx*)sqlite3_aggregate_context(pCtx, sizeof(*p));
  if( p && p->pVal ){
    sqlite3_result_value(pCtx, p->pVal);
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x10
popq %rsi
callq 0x40adf0
testq %rax, %rax
je 0x468c93
movq (%rax), %rsi
testq %rsi, %rsi
je 0x468c93
movq %rbx, %rdi
popq %rbx
jmp 0x40a076
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/util.c
// Function: trim_space
char* trim_space(const char* s) {
  size_t start = 0;
  while (start < strlen(s) && isspace(s[start])) {
    start++;
  }
  size_t limit = strlen(s);
  while (limit > start && isspace(s[limit - 1])) {
    limit--;
  }

  char* res = calloc(sizeof(char), limit - start + 1);
  for (size_t i = 0; i < limit - start; i++)
    res[i] = s[start + i];
  res[limit - start] = '\0';

  return res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x401100
movq %rax, %r14
xorl %r15d, %r15d
movq %rax, %r12
cmpq %r15, %r14
je 0x46adee
callq 0x46db90
movq (%rax), %rax
movsbq (%rbx,%r15), %rcx
testb $0x20, 0x1(%rax,%rcx,2)
je 0x46adf1
incq %r15
jmp 0x46add0
movq %r12, %r15
cmpq %r15, %r14
cmovaeq %r15, %r14
cmpq %r15, %r12
jbe 0x46ae1a
callq 0x46db90
movq (%rax), %rax
movsbq -0x1(%rbx,%r12), %rcx
testb $0x20, 0x1(%rax,%rcx,2)
je 0x46ae17
decq %r12
jmp 0x46adf8
movq %r12, %r14
subq %r15, %r14
leaq 0x1(%r14), %rsi
pushq $0x1
popq %rdi
callq 0x496c80
addq %r15, %rbx
xorl %ecx, %ecx
cmpq %rcx, %r14
je 0x46ae3e
movb (%rbx,%rcx), %dl
movb %dl, (%rax,%rcx)
incq %rcx
jmp 0x46ae2e
movb $0x0, (%rax,%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/veltzer[P]xmeltdown/src/grid.c
// Function: Initialize
void Initialize(int argc, char** argv)
{
	XSizeHints size_hints;
	if (!(dpy=XOpenDisplay(""))) {
		printf ("Error: Can't open display.");
		exit(-1);
	}
	screen=DefaultScreen(dpy);

	size_hints.width=400;
	size_hints.height=400;
	size_hints.flags=PSize;

	win=XCreateSimpleWindow(dpy,
		DefaultRootWindow(dpy),
		0, 0,
		size_hints.width,
		size_hints.height,
		4,
		BlackPixel(dpy, screen),
		WhitePixel(dpy, screen));

	XSetStandardProperties (dpy, win, "GC demo",
		"stickman",
		None, argv, argc, &size_hints);

	XMapWindow(dpy, win);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movl %edi, %ebx
leaq 0xe2d(%rip), %rdi       # 0x201e
callq 0x1060
movq %rax, 0x2e93(%rip)      # 0x4090
testq %rax, %rax
je 0x12ad
movslq 0xe0(%rax), %r10
movabsq $0x19000000190, %rcx    # imm = 0x19000000190
movq %rsp, %r15
movq %rcx, 0x10(%r15)
movq $0x8, (%r15)
movq 0xe8(%rax), %r11
shlq $0x7, %r10
movq 0x10(%r11,%r10), %rsi
subq $0x8, %rsp
movq %rax, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x190, %r8d            # imm = 0x190
movl $0x190, %r9d            # imm = 0x190
pushq 0x58(%r11,%r10)
pushq 0x60(%r11,%r10)
pushq $0x4
callq 0x1050
addq $0x20, %rsp
movq %rax, 0x2e30(%rip)      # 0x4098
movq 0x2e21(%rip), %rdi      # 0x4090
leaq 0xda9(%rip), %rdx       # 0x201f
leaq 0xdaa(%rip), %rcx       # 0x2027
movq %rax, %rsi
xorl %r8d, %r8d
movq %r14, %r9
pushq %r15
pushq %rbx
callq 0x10d0
popq %rcx
popq %rdx
movq 0x2df9(%rip), %rdi      # 0x4090
movq 0x2dfa(%rip), %rsi      # 0x4098
callq 0x10a0
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0xd50(%rip), %rdi       # 0x2004
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rdi
callq 0x1040
// File: /workspace/github_c_makefile_star2_O2/veltzer[P]xmeltdown/src/grid.c
// Function: DrawGrid
void DrawGrid(void) {
	int fromx, fromy, tox, toy;
	int counter;
	for (counter=0; counter < 16; counter++) {
		fromx=counter*10;
		fromy=0;
		tox=counter*10;
		toy=400;
		XDrawLine(dpy, win,
			gc_list[counter],
			fromx, fromy, tox, toy);

		fromx=0;
		fromy=counter*10;
		tox=400;
		toy=counter*10;
		XDrawLine(dpy, win,
			gc_list[counter],
			fromx, fromy, tox, toy);
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x2dd2(%rip), %r14      # 0x40a0
xorl %ebx, %ebx
cmpq $0xa0, %rbx
je 0x132c
movq 0x2db0(%rip), %rdi      # 0x4090
movq 0x2db1(%rip), %rsi      # 0x4098
movq (%r14), %rdx
movl $0x190, (%rsp)          # imm = 0x190
movl %ebx, %ecx
xorl %r8d, %r8d
movl %ebx, %r9d
callq 0x1070
movq 0x2d8b(%rip), %rdi      # 0x4090
movq 0x2d8c(%rip), %rsi      # 0x4098
movq (%r14), %rdx
movl %ebx, (%rsp)
xorl %ecx, %ecx
movl %ebx, %r8d
movl $0x190, %r9d            # imm = 0x190
callq 0x1070
addq $0xa, %rbx
addq $0x8, %r14
jmp 0x12d0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/veltzer[P]xmeltdown/src/grid.c
// Function: main
int main(int argc, char** argv) {
	XGCValues my_gcvalues;
	XEvent my_event;
	int counter;

	Initialize(argc, argv);

	XSelectInput(dpy, win,
		ExposureMask|ButtonPressMask|ButtonReleaseMask|
		ButtonMotionMask|KeyPressMask);

	my_gcvalues.line_width=5;
	my_gcvalues.line_style=LineSolid;
	for (counter=0; counter < 16; counter++) {
		my_gcvalues.function=counter;

		gc_list[counter]=XCreateGC(dpy, win,
			GCFunction|GCLineWidth|GCLineStyle,
			&my_gcvalues);
	}
	while (1) {
		XNextEvent (dpy, &my_event);
		if (my_event.type == Expose)
			DrawGrid();
		if (my_event.type == ButtonPress)
			DrawGrid();
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
callq 0x11dc
movq 0x2d26(%rip), %rdi      # 0x4090
movq 0x2d27(%rip), %rsi      # 0x4098
movl $0xa00d, %edx           # imm = 0xA00D
callq 0x10c0
leaq 0xc8(%rsp), %rbx
movq $0x5, 0x20(%rbx)
leaq 0x2d0e(%rip), %r15      # 0x40a0
xorl %r12d, %r12d
pushq $0x31
popq %r14
cmpq $0x10, %r12
je 0x13cc
movl %r12d, 0xc8(%rsp)
movq 0x2ce2(%rip), %rdi      # 0x4090
movq 0x2ce3(%rip), %rsi      # 0x4098
movq %r14, %rdx
movq %rbx, %rcx
callq 0x10b0
movq %rax, (%r15)
incq %r12
addq $0x8, %r15
jmp 0x1399
leaq 0x8(%rsp), %rbx
movq 0x2cb8(%rip), %rdi      # 0x4090
movq %rbx, %rsi
callq 0x1090
movl 0x8(%rsp), %eax
cmpl $0xc, %eax
jne 0x13f2
callq 0x12c3
movl 0x8(%rsp), %eax
cmpl $0x4, %eax
jne 0x13d1
callq 0x12c3
jmp 0x13d1
// File: /workspace/github_c_makefile_star2_O2/fabiovila[P]fs2ch/fs2ch.cpp
// Function: listfolder(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void listfolder(const std::string& path)
{
	
    if (!path.empty())
    {
        namespace fs = boost::filesystem;

        fs::path apk_path(path);
        fs::recursive_directory_iterator end;

        for (fs::recursive_directory_iterator i(apk_path); i != end; ++i)
        {
            const fs::path cp = (*i);
            List.push_back(cp.string());
        }
    }
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
cmpq $0x0, 0x8(%rdi)
je 0x4805
movq %rdi, %rsi
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
callq 0x2240
andq $0x0, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
movq %rbx, %rsi
callq 0x837a
leaq -0x28(%rbp), %rbx
leaq -0x30(%rbp), %r14
leaq -0x70(%rbp), %r15
leaq 0xda0d(%rip), %r12      # 0x121b8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x83a9
testb %al, %al
je 0x47ea
movq %rbx, %rdi
callq 0xa3a4
movq %r15, %rdi
movq %rax, %rsi
callq 0x2240
movq %r12, %rdi
movq %r15, %rsi
callq 0x83b6
movq %r15, %rdi
callq 0x20e0
movq %rbx, %rdi
callq 0xa398
jmp 0x47ab
leaq -0x28(%rbp), %rdi
callq 0x9ca0
leaq -0x30(%rbp), %rdi
callq 0x9ca0
leaq -0x50(%rbp), %rdi
callq 0x20e0
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x4833
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x20e0
jmp 0x482a
jmp 0x4827
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x9ca0
leaq -0x30(%rbp), %rdi
callq 0x9ca0
leaq -0x50(%rbp), %rdi
callq 0x20e0
movq %rbx, %rdi
callq 0x22e0
// File: /workspace/github_c_makefile_star2_O2/kyz[P]amostools/unlockamos.c
// Function: AMOS_decrypt_procedure
void AMOS_decrypt_procedure(uint8_t *src, size_t len) {
    uint8_t *line, *next, *endline;
    uint32_t key, key2, key3, size;

    /* do not operate on compiled procedures */
    if (len < 12 || src[10] & 0x10) return;

    size = amos_leek(&src[4]);
    if (len < (size + 8 + 6)) return;
    line = next = &src[src[0] * 2]; /* the line after PROCEDURE */
    endline = &src[size + 8 + 6]; /* the start of the line after END PROC */

    /* initialise keys */
    key = (size << 8) | src[11];
    key2 = 1;
    key3 = amos_deek(&src[8]);

    while (line < endline) {
        line = next; next = &line[line[0] * 2];
        if (!line[0]) return; /* avoid infinite loop on bad data */
        for (line += 4; line < next;) {
            *line++ ^= (key >> 8) & 0xFF;
            *line++ ^=  key       & 0xFF;
            key = (key & 0xFFFF0000) | ((key + key2) & 0xFFFF);
            key2 = (key2 + key3) & 0xFFFF;
            key = (key >> 1) | (key << 31); /* rotate right one bit */
        }
    }
    src[10] ^= 0x20; /* toggle "is encrypted" bit */
}

// Assembly:
cmpq $0xc, %rsi
jb 0x13ae
testb $0x10, 0xa(%rdi)
jne 0x13ae
movl 0x4(%rdi), %edx
bswapl %edx
leal 0xe(%rdx), %eax
cmpq %rsi, %rax
ja 0x13ae
movzbl (%rdi), %ecx
leaq (%rdi,%rcx,2), %r9
addq %rdi, %rax
shll $0x8, %edx
movzbl 0xb(%rdi), %ecx
movzwl 0x8(%rdi), %esi
rolw $0x8, %si
orl %edx, %ecx
movzwl %si, %edx
pushq $0x1
popq %rsi
movq %r9, %r8
cmpq %rax, %r8
jae 0x13aa
movzbl (%r9), %r8d
testl %r8d, %r8d
je 0x13ae
leaq (%r9,%r8,2), %r10
addq $0x4, %r9
movq %r9, %r8
cmpq %r10, %r8
jae 0x13a5
movl %ecx, %r9d
shrl $0x8, %r9d
xorb %r9b, (%r8)
xorb %cl, 0x1(%r8)
addq $0x2, %r8
movl %ecx, %r9d
andl $0xffff0000, %r9d       # imm = 0xFFFF0000
addl %esi, %ecx
movzwl %cx, %ecx
orl %r9d, %ecx
addl %edx, %esi
rorl %ecx
jmp 0x1376
movq %r10, %r9
jmp 0x135d
xorb $0x20, 0xa(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/kyz[P]amostools/unlockamos.c
// Function: unlock_source
int unlock_source(uint8_t *src, size_t len) {
    int locked_procs_found = 0;
    uint32_t x;

    /* go through the lines of source code */
    len = amos_leek(&src[16]);
    for (src += 20; len > 0; src += x, len -= x) {
        x = src[0] * 2;
        if (x > len) {
            printf("line length error\n");
            return 0;
        }

        /* does this a line begin with "PROCEDURE" ? */
        if (amos_deek(&src[2]) == 0x0376) {
            /* decrypt and remove the "is encrypted" flag */
            if (src[10] & 0x20) {
                if ((size_t)(amos_leek(&src[4]) + 8 + 6) < len) {
                    AMOS_decrypt_procedure(src, len);
                    locked_procs_found++;
                }
                else {
                    printf("WARNING: locked procedure with bad length found\n");
                }
            }
            /* always remove "is locked" flag */
            if (src[10] & 0x40) {
                src[10] ^= 0x040;
                locked_procs_found++;
            }
        }
    }
    return locked_procs_found;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movzbl 0x10(%rdi), %eax
shll $0x18, %eax
movzbl 0x11(%rdi), %ecx
shll $0x10, %ecx
cltq
orq %rcx, %rax
movzbl 0x12(%rdi), %ecx
shll $0x8, %ecx
orq %rax, %rcx
movzbl 0x13(%rdi), %esi
orq %rcx, %rsi
addq $0x14, %rbx
xorl %ebp, %ebp
leaq 0xc9b(%rip), %r14       # 0x2086
testq %rsi, %rsi
je 0x147f
movzbl (%rbx), %r15d
addl %r15d, %r15d
movq %rsi, %r12
subq %r15, %r12
jb 0x1471
movzwl 0x2(%rbx), %eax
rolw $0x8, %ax
cmpw $0x376, %ax             # imm = 0x376
jne 0x1466
testb $0x20, 0xa(%rbx)
je 0x1458
movzbl 0x4(%rbx), %eax
shll $0x18, %eax
movzbl 0x5(%rbx), %ecx
shll $0x10, %ecx
cltq
orq %rcx, %rax
movzbl 0x6(%rbx), %ecx
shll $0x8, %ecx
orq %rax, %rcx
movzbl 0x7(%rbx), %eax
addq %rcx, %rax
addq $0xe, %rax
cmpq %rax, %rsi
jbe 0x1450
movq %rbx, %rdi
callq 0x1318
incl %ebp
jmp 0x1458
movq %r14, %rdi
callq 0x1050
movb 0xa(%rbx), %al
testb $0x40, %al
je 0x1466
andb $-0x41, %al
movb %al, 0xa(%rbx)
incl %ebp
addq %r15, %rbx
movq %r12, %rsi
jmp 0x13eb
leaq 0xc3e(%rip), %rdi       # 0x20b6
callq 0x1050
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/kyz[P]amostools/unlockamos.c
// Function: main
int main(int argc, char *argv[]) {
    char *fname;
    uint8_t *buf;
    size_t len;

    if (argc <= 1) {
        printf("Unlock \"locked\" procedures in AMOS source code.\n");
        printf("Usage: %s <file(s).amos>\n", argv[0]);
        return 1;
    }

    for (argv++; (fname = *argv); argv++) {
        if ((buf = read_file(fname, &len))) {
            if (!memcmp(buf, "AMOS Basic", 10)) {
                if (unlock_source(buf, len)) {
                    printf("%s: unlocked procedures, saving\n", fname);
                    write_file(fname, buf, len);
                }
                else {
                    printf("%s: no locked procedures\n", fname);
                }
            }
            else {
                printf("%s: not an AMOS Basic file\n", fname);
            }
            free(buf);
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpl $0x2, %edi
jge 0x14c2
leaq 0xc24(%rip), %rdi       # 0x20c8
callq 0x1050
movq (%rbx), %rsi
leaq 0xb57(%rip), %rdi       # 0x200a
xorl %eax, %eax
callq 0x1080
pushq $0x1
popq %rax
jmp 0x1559
addq $0x8, %rbx
movq %rsp, %r14
leaq 0xb54(%rip), %r15       # 0x2024
pushq $0xa
popq %r12
movq (%rbx), %r13
testq %r13, %r13
je 0x1557
movq %r13, %rdi
movq %r14, %rsi
callq 0x11ec
testq %rax, %rax
je 0x1548
movq %rax, %rbp
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x10b0
testl %eax, %eax
je 0x1514
leaq 0xb62(%rip), %rdi       # 0x206a
movq %r13, %rsi
xorl %eax, %eax
callq 0x1080
jmp 0x1540
movq %rbp, %rdi
callq 0x13af
testl %eax, %eax
je 0x154e
leaq 0xb08(%rip), %rdi       # 0x202f
movq %r13, %rsi
xorl %eax, %eax
callq 0x1080
movq (%rsp), %rdx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x12b7
movq %rbp, %rdi
callq 0x1030
addq $0x8, %rbx
jmp 0x14d4
leaq 0xafb(%rip), %rdi       # 0x2050
jmp 0x1508
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_O2/mulle-nat[P]long-long-double-trouble/long.c
// Function: fits_long
int   fits_long( double value)
{
   long   l_val;
   int    fits;

   if( value < (double) LONG_MIN || value > (double) LONG_MAX)
      return( 0);

   l_val = (long) value;
   fits  = (double) l_val == value;
   if( ! fits)
      fprintf( stderr, "Mismatch %f with %ld\n", value, l_val);

   return( fits);
}

// Assembly:
pushq %rbx
movapd 0xeab(%rip), %xmm1      # 0x2010
andpd %xmm0, %xmm1
xorl %ebx, %ebx
ucomisd 0xead(%rip), %xmm1      # 0x2020
ja 0x118a
cvttsd2si %xmm0, %rdx
cvtsi2sd %rdx, %xmm1
ucomisd %xmm0, %xmm1
jne 0x118e
jp 0x118e
pushq $0x1
popq %rbx
movl %ebx, %eax
popq %rbx
retq
movq 0x2e63(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0xe99(%rip), %rsi       # 0x2038
movb $0x1, %al
callq 0x1040
jmp 0x118a
// File: /workspace/github_c_makefile_star2_O2/mulle-nat[P]long-long-double-trouble/long.c
// Function: main
int   main( int argc, char *argv[])
{
   double  value;

   fprintf( stderr, "long (%d bytes): %ld - %ld\n", (int) sizeof( long), LONG_MIN, LONG_MAX);
   fprintf( stderr, "double (%d bytes): %g - %g\n", (int) sizeof( double), DBL_MIN, DBL_MAX);

   assert( (double) LONG_MAX <= DBL_MAX);

   // keep my code optimiza
   if( argc == 1)
      value = (double) LONG_MAX;
   else
      value = (double) (LONG_MAX - atoi( argv[ 1]));

   if( fits_long( value))
      printf( "FITS\n");
   else
      printf( "NOPE\n");
   return( 0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movl %edi, %ebp
movabsq $0x7fffffffffffffff, %rbx # imm = 0x7FFFFFFFFFFFFFFF
movq 0x2e32(%rip), %r12      # 0x3ff8
movq (%r12), %rdi
leaq 0x1(%rbx), %rcx
leaq 0xe79(%rip), %rsi       # 0x204e
pushq $0x8
popq %r15
movl %r15d, %edx
movq %rbx, %r8
xorl %eax, %eax
callq 0x1040
movq (%r12), %rdi
leaq 0xe79(%rip), %rsi       # 0x206a
movsd 0xe2f(%rip), %xmm0      # 0x2028
movsd 0xe2f(%rip), %xmm1      # 0x2030
movl %r15d, %edx
movb $0x2, %al
callq 0x1040
cmpl $0x1, %ebp
jne 0x121a
movsd 0xe08(%rip), %xmm0      # 0x2020
jmp 0x122d
movq 0x8(%r14), %rdi
callq 0x1050
cltq
subq %rax, %rbx
cvtsi2sd %rbx, %xmm0
callq 0x115c
testl %eax, %eax
leaq 0xe4b(%rip), %rax       # 0x2086
leaq 0xe49(%rip), %rdi       # 0x208b
cmoveq %rax, %rdi
callq 0x1030
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/soso7885[P]OPCUA_example/demo_src/server_mainloop.c
// Function: main
int main(int argc, char** argv) {
    signal(SIGINT, stopHandler); /* catches ctrl-c */

    UA_ServerConfig config = UA_ServerConfig_standard;
    UA_ServerNetworkLayer nl = UA_ServerNetworkLayerTCP(UA_ConnectionConfig_standard, 16664);
    config.networkLayers = &nl;
    config.networkLayersSize = 1;
    UA_Server *server = UA_Server_new(config);

    UA_StatusCode retval = UA_Server_run_startup(server);
    if(retval != UA_STATUSCODE_GOOD)
        goto cleanup;

    /* Should the server networklayer block (with a timeout) until a message
       arrives or should it return immediately? */
    UA_Boolean waitInternal = false;

    while(running) {
        /* timeout is the maximum possible delay (in millisec) until the next
           _iterate call. Otherwise, the server might miss an internal timeout
           or cannot react to messages with the promised responsiveness. */
        UA_UInt16 timeout = UA_Server_run_iterate(server, waitInternal);

        /* Now we can use the max timeout to do something else. In this case, we
           just sleep. (select is used as a platform-independent sleep
           function.) */
        struct timeval tv;
        tv.tv_sec = 0;
        tv.tv_usec = timeout * 1000;
        select(0, NULL, NULL, NULL, &tv);
    }
    retval = UA_Server_run_shutdown(server);

 cleanup:
    UA_Server_delete(server);
    nl.deleteMembers(&nl);
    return (int)retval;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x320, %rsp            # imm = 0x320
leaq 0xf1(%rip), %rsi        # 0x12c2
pushq $0x2
popq %rdi
callq 0x1080
movq 0x2e00(%rip), %rsi      # 0x3fe0
leaq -0x1c8(%rbp), %rbx
movl $0x160, %edx            # imm = 0x160
movq %rbx, %rdi
callq 0x1070
movq 0x2df5(%rip), %rax      # 0x3ff0
movl 0x10(%rax), %ecx
movl %ecx, -0x20(%rbp)
movups (%rax), %xmm0
movaps %xmm0, -0x30(%rbp)
movl -0x20(%rbp), %eax
movl %eax, 0x10(%rsp)
movaps -0x30(%rbp), %xmm0
movups %xmm0, (%rsp)
leaq -0x68(%rbp), %r14
movq %r14, %rdi
movl $0x4118, %esi           # imm = 0x4118
callq 0x1050
movq %r14, 0xf8(%rbx)
movq $0x1, 0xf0(%rbx)
pushq $0x2c
popq %rcx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x1030
movq %rax, %rbx
movq %rax, %rdi
callq 0x1060
movl %eax, %r14d
testl %eax, %eax
jne 0x12a4
leaq -0x30(%rbp), %r14
cmpb $0x1, 0x2e08(%rip)      # 0x4070
jne 0x1299
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10a0
andq $0x0, -0x30(%rbp)
movzwl %ax, %eax
imulq $0x3e8, %rax, %rax      # imm = 0x3E8
movq %rax, -0x28(%rbp)
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r14, %r8
callq 0x1090
jmp 0x1261
movq %rbx, %rdi
callq 0x1040
movl %eax, %r14d
movq %rbx, %rdi
callq 0x10b0
leaq -0x68(%rbp), %rdi
callq *0x30(%rdi)
movl %r14d, %eax
addq $0x320, %rsp            # imm = 0x320
popq %rbx
popq %r14
popq %rbp
retq