// File: /workspace/github_c_makefile_star2_O0/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3_exec
SQLITE_STDCALL sqlite3_exec(
  sqlite3 *db,                /* The database on which the SQL executes */
  const char *zSql,           /* The SQL to be executed */
  sqlite3_callback xCallback, /* Invoke this callback routine */
  void *pArg,                 /* First argument to xCallback() */
  char **pzErrMsg             /* Write error messages here */
){
  int rc = SQLITE_OK;         /* Return code */
  const char *zLeftover;      /* Tail of unprocessed SQL */
  sqlite3_stmt *pStmt = 0;    /* The current SQL statement */
  char **azCols = 0;          /* Names of result columns */
  int callbackIsInit;         /* True if callback data is initialized */

  if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
  if( zSql==0 ) zSql = "";

  sqlite3_mutex_enter(db->mutex);
  sqlite3Error(db, SQLITE_OK);
  while( rc==SQLITE_OK && zSql[0] ){
    int nCol;
    char **azVals = 0;

    pStmt = 0;
    rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, &zLeftover);
    assert( rc==SQLITE_OK || pStmt==0 );
    if( rc!=SQLITE_OK ){
      continue;
    }
    if( !pStmt ){
      /* this happens for a comment or white-space */
      zSql = zLeftover;
      continue;
    }

    callbackIsInit = 0;
    nCol = sqlite3_column_count(pStmt);

    while( 1 ){
      int i;
      rc = sqlite3_step(pStmt);

      /* Invoke the callback function if required */
      if( xCallback && (SQLITE_ROW==rc || 
          (SQLITE_DONE==rc && !callbackIsInit
                           && db->flags&SQLITE_NullCallback)) ){
        if( !callbackIsInit ){
          azCols = sqlite3DbMallocZero(db, 2*nCol*sizeof(const char*) + 1);
          if( azCols==0 ){
            goto exec_out;
          }
          for(i=0; i<nCol; i++){
            azCols[i] = (char *)sqlite3_column_name(pStmt, i);
            /* sqlite3VdbeSetColName() installs column names as UTF8
            ** strings so there is no way for sqlite3_column_name() to fail. */
            assert( azCols[i]!=0 );
          }
          callbackIsInit = 1;
        }
        if( rc==SQLITE_ROW ){
          azVals = &azCols[nCol];
          for(i=0; i<nCol; i++){
            azVals[i] = (char *)sqlite3_column_text(pStmt, i);
            if( !azVals[i] && sqlite3_column_type(pStmt, i)!=SQLITE_NULL ){
              db->mallocFailed = 1;
              goto exec_out;
            }
          }
        }
        if( xCallback(pArg, nCol, azVals, azCols) ){
          /* EVIDENCE-OF: R-38229-40159 If the callback function to
          ** sqlite3_exec() returns non-zero, then sqlite3_exec() will
          ** return SQLITE_ABORT. */
          rc = SQLITE_ABORT;
          sqlite3VdbeFinalize((Vdbe *)pStmt);
          pStmt = 0;
          sqlite3Error(db, SQLITE_ABORT);
          goto exec_out;
        }
      }

      if( rc!=SQLITE_ROW ){
        rc = sqlite3VdbeFinalize((Vdbe *)pStmt);
        pStmt = 0;
        zSql = zLeftover;
        while( sqlite3Isspace(zSql[0]) ) zSql++;
        break;
      }
    }

    sqlite3DbFree(db, azCols);
    azCols = 0;
  }

exec_out:
  if( pStmt ) sqlite3VdbeFinalize((Vdbe *)pStmt);
  sqlite3DbFree(db, azCols);

  rc = sqlite3ApiExit(db, rc);
  if( rc!=SQLITE_OK && pzErrMsg ){
    int nErrMsg = 1 + sqlite3Strlen30(sqlite3_errmsg(db));
    *pzErrMsg = sqlite3Malloc(nErrMsg);
    if( *pzErrMsg ){
      memcpy(*pzErrMsg, sqlite3_errmsg(db), nErrMsg);
    }else{
      rc = SQLITE_NOMEM;
      sqlite3Error(db, SQLITE_NOMEM);
    }
  }else if( pzErrMsg ){
    *pzErrMsg = 0;
  }

  assert( (rc&db->errMask)==rc );
  sqlite3_mutex_leave(db->mutex);
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq $0x0, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
movq -0x10(%rbp), %rdi
callq 0x195c0
cmpl $0x0, %eax
jne 0x19246
movl $0x199c1, %edi          # imm = 0x199C1
callq 0xc850
movl %eax, -0x4(%rbp)
jmp 0x195ac
cmpq $0x0, -0x18(%rbp)
jne 0x19258
leaq 0x8f78b(%rip), %rax     # 0xa89df
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0xb550
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x114f0
xorl %eax, %eax
cmpl $0x0, -0x34(%rbp)
movb %al, -0x69(%rbp)
jne 0x1928b
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x69(%rbp)
movb -0x69(%rbp), %al
testb $0x1, %al
jne 0x19297
jmp 0x194d9
movq $0x0, -0x60(%rbp)
movq $0x0, -0x48(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq -0x48(%rbp), %rcx
leaq -0x40(%rbp), %r8
callq 0xb730
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x34(%rbp)
je 0x192cc
jmp 0x19270
cmpq $0x0, -0x48(%rbp)
jne 0x192dd
movq -0x40(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x19270
movl $0x0, -0x54(%rbp)
movq -0x48(%rbp), %rdi
callq 0xb4a0
movl %eax, -0x58(%rbp)
movq -0x48(%rbp), %rdi
callq 0xb3d0
movl %eax, -0x34(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x1946c
movl $0x64, %eax
cmpl -0x34(%rbp), %eax
je 0x1933e
movl $0x65, %eax
cmpl -0x34(%rbp), %eax
jne 0x1946c
cmpl $0x0, -0x54(%rbp)
jne 0x1946c
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x1946c
cmpl $0x0, -0x54(%rbp)
jne 0x193a9
movq -0x10(%rbp), %rdi
movl -0x58(%rbp), %eax
shll %eax
movslq %eax, %rsi
shlq $0x3, %rsi
addq $0x1, %rsi
callq 0x15b80
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0x1936d
jmp 0x194db
movl $0x0, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x58(%rbp), %eax
jge 0x193a2
movq -0x48(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0xb180
movq %rax, %rdx
movq -0x50(%rbp), %rax
movslq -0x64(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x19374
movl $0x1, -0x54(%rbp)
cmpl $0x64, -0x34(%rbp)
jne 0x19428
movq -0x50(%rbp), %rax
movslq -0x58(%rbp), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movl $0x0, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x58(%rbp), %eax
jge 0x19426
movq -0x48(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0xb4e0
movq %rax, %rdx
movq -0x60(%rbp), %rax
movslq -0x64(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x60(%rbp), %rax
movslq -0x64(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0x19419
movq -0x48(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0xb3c0
cmpl $0x5, %eax
je 0x19419
movq -0x10(%rbp), %rax
movb $0x1, 0x51(%rax)
jmp 0x194db
jmp 0x1941b
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x193c9
jmp 0x19428
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rdi
movl -0x58(%rbp), %esi
movq -0x60(%rbp), %rdx
movq -0x50(%rbp), %rcx
callq *%rax
cmpl $0x0, %eax
je 0x1946a
movl $0x4, -0x34(%rbp)
movq -0x48(%rbp), %rdi
callq 0x13b90
movq $0x0, -0x48(%rbp)
movq -0x10(%rbp), %rdi
movl $0x4, %esi
callq 0x114f0
jmp 0x194db
jmp 0x1946c
cmpl $0x64, -0x34(%rbp)
je 0x194ba
movq -0x48(%rbp), %rdi
callq 0x13b90
movl %eax, -0x34(%rbp)
movq $0x0, -0x48(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x89902(%rip), %rax     # 0xa2da0
movzbl (%rax,%rcx), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x194b8
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x1948e
jmp 0x194bf
jmp 0x192f0
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0xd260
movq $0x0, -0x50(%rbp)
jmp 0x19270
jmp 0x194db
cmpq $0x0, -0x48(%rbp)
je 0x194eb
movq -0x48(%rbp), %rdi
callq 0x13b90
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0xd260
movq -0x10(%rbp), %rdi
movl -0x34(%rbp), %esi
callq 0x13be0
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x34(%rbp)
je 0x19585
cmpq $0x0, -0x30(%rbp)
je 0x19585
movq -0x10(%rbp), %rdi
callq 0xb380
movq %rax, %rdi
callq 0xc6c0
addl $0x1, %eax
movl %eax, -0x68(%rbp)
movslq -0x68(%rbp), %rdi
callq 0xdba0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x30(%rbp), %rax
cmpq $0x0, (%rax)
je 0x1956e
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb380
movq -0x78(%rbp), %rdi
movq %rax, %rsi
movslq -0x68(%rbp), %rdx
callq 0xb420
jmp 0x19583
movl $0x7, -0x34(%rbp)
movq -0x10(%rbp), %rdi
movl $0x7, %esi
callq 0x114f0
jmp 0x19599
cmpq $0x0, -0x30(%rbp)
je 0x19597
movq -0x30(%rbp), %rax
movq $0x0, (%rax)
jmp 0x19599
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0xb4f0
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax,%rax)