// File: /workspace/github_c_makefile_star2_O0/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3RunParser
SQLITE_PRIVATE int sqlite3RunParser(Parse *pParse, const char *zSql, char **pzErrMsg){
  int nErr = 0;                   /* Number of errors encountered */
  int i;                          /* Loop counter */
  void *pEngine;                  /* The LEMON-generated LALR(1) parser */
  int tokenType;                  /* type of the next token */
  int lastTokenParsed = -1;       /* type of the previous token */
  u8 enableLookaside;             /* Saved value of db->lookaside.bEnabled */
  sqlite3 *db = pParse->db;       /* The database connection */
  int mxSqlLen;                   /* Max length of an SQL string */

  assert( zSql!=0 );
  mxSqlLen = db->aLimit[SQLITE_LIMIT_SQL_LENGTH];
  if( db->nVdbeActive==0 ){
    db->u1.isInterrupted = 0;
  }
  pParse->rc = SQLITE_OK;
  pParse->zTail = zSql;
  i = 0;
  assert( pzErrMsg!=0 );
  /* sqlite3ParserTrace(stdout, "parser: "); */
  pEngine = sqlite3ParserAlloc(sqlite3Malloc);
  if( pEngine==0 ){
    db->mallocFailed = 1;
    return SQLITE_NOMEM;
  }
  assert( pParse->pNewTable==0 );
  assert( pParse->pNewTrigger==0 );
  assert( pParse->nVar==0 );
  assert( pParse->nzVar==0 );
  assert( pParse->azVar==0 );
  enableLookaside = db->lookaside.bEnabled;
  if( db->lookaside.pStart ) db->lookaside.bEnabled = 1;
  while( zSql[i]!=0 ){
    assert( i>=0 );
    pParse->sLastToken.z = &zSql[i];
    pParse->sLastToken.n = sqlite3GetToken((unsigned char*)&zSql[i],&tokenType);
    i += pParse->sLastToken.n;
    if( i>mxSqlLen ){
      pParse->rc = SQLITE_TOOBIG;
      break;
    }
    if( tokenType>=TK_SPACE ){
      assert( tokenType==TK_SPACE || tokenType==TK_ILLEGAL );
      if( db->u1.isInterrupted ){
        sqlite3ErrorMsg(pParse, "interrupt");
        pParse->rc = SQLITE_INTERRUPT;
        break;
      }
      if( tokenType==TK_ILLEGAL ){
        sqlite3ErrorMsg(pParse, "unrecognized token: \"%T\"",
                        &pParse->sLastToken);
        break;
      }
    }else{
      if( tokenType==TK_SEMI ) pParse->zTail = &zSql[i];
      sqlite3Parser(pEngine, tokenType, pParse->sLastToken, pParse);
      lastTokenParsed = tokenType;
      if( pParse->rc!=SQLITE_OK || db->mallocFailed ) break;
    }
  }
  assert( nErr==0 );
  if( pParse->rc==SQLITE_OK && db->mallocFailed==0 ){
    assert( zSql[i]==0 );
    if( lastTokenParsed!=TK_SEMI ){
      sqlite3Parser(pEngine, TK_SEMI, pParse->sLastToken, pParse);
      pParse->zTail = &zSql[i];
    }
    if( pParse->rc==SQLITE_OK && db->mallocFailed==0 ){
      sqlite3Parser(pEngine, 0, pParse->sLastToken, pParse);
    }
  }
#ifdef YYTRACKMAXSTACKDEPTH
  sqlite3_mutex_enter(sqlite3MallocMutex());
  sqlite3StatusHighwater(SQLITE_STATUS_PARSER_STACK,
      sqlite3ParserStackPeak(pEngine)
  );
  sqlite3_mutex_leave(sqlite3MallocMutex());
#endif /* YYDEBUG */
  sqlite3ParserFree(pEngine, sqlite3_free);
  db->lookaside.bEnabled = enableLookaside;
  if( db->mallocFailed ){
    pParse->rc = SQLITE_NOMEM;
  }
  if( pParse->rc!=SQLITE_OK && pParse->rc!=SQLITE_DONE && pParse->zErrMsg==0 ){
    pParse->zErrMsg = sqlite3MPrintf(db, "%s", sqlite3ErrStr(pParse->rc));
  }
  assert( pzErrMsg!=0 );
  if( pParse->zErrMsg ){
    *pzErrMsg = pParse->zErrMsg;
    sqlite3_log(pParse->rc, "%s", *pzErrMsg);
    pParse->zErrMsg = 0;
    nErr++;
  }
  if( pParse->pVdbe && pParse->nErr>0 && pParse->nested==0 ){
    sqlite3VdbeDelete(pParse->pVdbe);
    pParse->pVdbe = 0;
  }
#ifndef SQLITE_OMIT_SHARED_CACHE
  if( pParse->nested==0 ){
    sqlite3DbFree(db, pParse->aTableLock);
    pParse->aTableLock = 0;
    pParse->nTableLock = 0;
  }
#endif
#ifndef SQLITE_OMIT_VIRTUALTABLE
  sqlite3_free(pParse->apVtabLock);
#endif

  if( !IN_DECLARE_VTAB ){
    /* If the pParse->declareVtab flag is set, do not delete any table 
    ** structure built up in pParse->pNewTable. The calling code (see vtab.c)
    ** will take responsibility for freeing the Table structure.
    */
    sqlite3DeleteTable(db, pParse->pNewTable);
  }

  sqlite3WithDelete(db, pParse->pWithToFree);
  sqlite3DeleteTrigger(db, pParse->pNewTrigger);
  for(i=pParse->nzVar-1; i>=0; i--) sqlite3DbFree(db, pParse->azVar[i]);
  sqlite3DbFree(db, pParse->azVar);
  while( pParse->pAinc ){
    AutoincInfo *p = pParse->pAinc;
    pParse->pAinc = p->pNext;
    sqlite3DbFree(db, p);
  }
  while( pParse->pZombieTab ){
    Table *p = pParse->pZombieTab;
    pParse->pZombieTab = p->pNextZombie;
    sqlite3DeleteTable(db, p);
  }
  assert( nErr==0 || pParse->rc!=SQLITE_OK );
  return nErr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl $0xffffffff, -0x38(%rbp) # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movl 0x6c(%rax), %eax
movl %eax, -0x4c(%rbp)
movq -0x48(%rbp), %rax
cmpl $0x0, 0xa4(%rax)
jne 0x1acb2
movq -0x48(%rbp), %rax
movl $0x0, 0x148(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x18(%rax)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x218(%rax)
movl $0x0, -0x28(%rbp)
leaq -0xd13a(%rip), %rdi     # 0xdba0
callq 0x58780
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0x1acfe
movq -0x48(%rbp), %rax
movb $0x1, 0x51(%rax)
movl $0x7, -0x4(%rbp)
jmp 0x1b16b
movq -0x48(%rbp), %rax
movb 0x152(%rax), %al
movb %al, -0x39(%rbp)
movq -0x48(%rbp), %rax
cmpq $0x0, 0x170(%rax)
je 0x1ad24
movq -0x48(%rbp), %rax
movb $0x1, 0x152(%rax)
jmp 0x1ad26
movq -0x18(%rbp), %rax
movslq -0x28(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x1ae60
movq -0x18(%rbp), %rcx
movslq -0x28(%rbp), %rax
addq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x248(%rax)
movq -0x18(%rbp), %rdi
movslq -0x28(%rbp), %rax
addq %rax, %rdi
leaq -0x34(%rbp), %rsi
callq 0x56050
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x250(%rax)
movq -0x10(%rbp), %rax
movl 0x250(%rax), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jle 0x1ad99
movq -0x10(%rbp), %rax
movl $0x12, 0x18(%rax)
jmp 0x1ae60
cmpl $0x9f, -0x34(%rbp)
jl 0x1adfd
movq -0x48(%rbp), %rax
movl 0x148(%rax), %eax
cmpl $0x0, %eax
je 0x1add3
movq -0x10(%rbp), %rdi
leaq 0x8c420(%rip), %rsi     # 0xa71dc
movb $0x0, %al
callq 0x17840
movq -0x10(%rbp), %rax
movl $0x9, 0x18(%rax)
jmp 0x1ae60
cmpl $0xa0, -0x34(%rbp)
jne 0x1adfb
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rdx
addq $0x248, %rdx            # imm = 0x248
leaq 0x8c3f4(%rip), %rsi     # 0xa71e6
movb $0x0, %al
callq 0x17840
jmp 0x1ae60
jmp 0x1ae5b
cmpl $0x1, -0x34(%rbp)
jne 0x1ae19
movq -0x18(%rbp), %rcx
movslq -0x28(%rbp), %rax
addq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x218(%rax)
movq -0x30(%rbp), %rdi
movl -0x34(%rbp), %esi
movq -0x10(%rbp), %rax
movq -0x10(%rbp), %r8
movq 0x248(%rax), %rdx
movl 0x250(%rax), %ecx
callq 0x587c0
movl -0x34(%rbp), %eax
movl %eax, -0x38(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x18(%rax)
jne 0x1ae57
movq -0x48(%rbp), %rax
movzbl 0x51(%rax), %eax
cmpl $0x0, %eax
je 0x1ae59
jmp 0x1ae60
jmp 0x1ae5b
jmp 0x1ad26
movq -0x10(%rbp), %rax
cmpl $0x0, 0x18(%rax)
jne 0x1aef3
movq -0x48(%rbp), %rax
movzbl 0x51(%rax), %eax
cmpl $0x0, %eax
jne 0x1aef3
cmpl $0x1, -0x38(%rbp)
je 0x1aeba
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rax
movq -0x10(%rbp), %r8
movq 0x248(%rax), %rdx
movl 0x250(%rax), %ecx
movl $0x1, %esi
callq 0x587c0
movq -0x18(%rbp), %rcx
movslq -0x28(%rbp), %rax
addq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x218(%rax)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x18(%rax)
jne 0x1aef1
movq -0x48(%rbp), %rax
movzbl 0x51(%rax), %eax
cmpl $0x0, %eax
jne 0x1aef1
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rax
movq -0x10(%rbp), %r8
movq 0x248(%rax), %rdx
movl 0x250(%rax), %ecx
xorl %esi, %esi
callq 0x587c0
jmp 0x1aef3
movq -0x30(%rbp), %rdi
movq 0xa40e2(%rip), %rsi     # 0xbefe0
callq 0x58920
movb -0x39(%rbp), %cl
movq -0x48(%rbp), %rax
movb %cl, 0x152(%rax)
movq -0x48(%rbp), %rax
cmpb $0x0, 0x51(%rax)
je 0x1af25
movq -0x10(%rbp), %rax
movl $0x7, 0x18(%rax)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x18(%rax)
je 0x1af78
movq -0x10(%rbp), %rax
cmpl $0x65, 0x18(%rax)
je 0x1af78
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x1af78
movq -0x48(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %edi
callq 0x151a0
movq -0x68(%rbp), %rdi
movq %rax, %rdx
leaq 0x8ad56(%rip), %rsi     # 0xa5cbc
movb $0x0, %al
callq 0x17940
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x1afc3
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %edi
movq -0x20(%rbp), %rax
movq (%rax), %rdx
leaq 0x8ad15(%rip), %rsi     # 0xa5cbc
movb $0x0, %al
callq 0xb710
movq -0x10(%rbp), %rax
movq $0x0, 0x8(%rax)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x1affe
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4c(%rax)
jle 0x1affe
movq -0x10(%rbp), %rax
movzbl 0x1e(%rax), %eax
cmpl $0x0, %eax
jne 0x1affe
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x356e0
movq -0x10(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x10(%rbp), %rax
movzbl 0x1e(%rax), %eax
cmpl $0x0, %eax
jne 0x1b03c
movq -0x48(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x1b0(%rax), %rsi
callq 0xd260
movq -0x10(%rbp), %rax
movq $0x0, 0x1b0(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x1ac(%rax)
movq -0x10(%rbp), %rax
movq 0x268(%rax), %rdi
callq 0xb958
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1ee(%rax)
jne 0x1b06d
movq -0x48(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x220(%rax), %rsi
callq 0xd000
movq -0x48(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x288(%rax), %rsi
callq 0x53a90
movq -0x48(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x228(%rax), %rsi
callq 0xcf80
movq -0x10(%rbp), %rax
movl 0x1e8(%rax), %eax
subl $0x1, %eax
movl %eax, -0x28(%rbp)
cmpl $0x0, -0x28(%rbp)
jl 0x1b0d2
movq -0x48(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x208(%rax), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0xd260
movl -0x28(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x1b0a5
movq -0x48(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x208(%rax), %rsi
callq 0xd260
movq -0x10(%rbp), %rax
cmpq $0x0, 0x1b8(%rax)
je 0x1b124
movq -0x10(%rbp), %rax
movq 0x1b8(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x1b8(%rax)
movq -0x48(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0xd260
jmp 0x1b0e6
jmp 0x1b126
movq -0x10(%rbp), %rax
cmpq $0x0, 0x270(%rax)
je 0x1b165
movq -0x10(%rbp), %rax
movq 0x270(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq 0x70(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x270(%rax)
movq -0x48(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0xd000
jmp 0x1b126
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)