// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3LocateTable
SQLITE_PRIVATE Table *sqlite3LocateTable(
  Parse *pParse,         /* context in which to report errors */
  int isView,            /* True if looking for a VIEW rather than a TABLE */
  const char *zName,     /* Name of the table we are looking for */
  const char *zDbase     /* Name of the database.  Might be NULL */
){
  Table *p;

  /* Read the database schema. If an error occurs, leave an error message
  ** and code in pParse and return NULL. */
  if( SQLITE_OK!=sqlite3ReadSchema(pParse) ){
    return 0;
  }

  p = sqlite3FindTable(pParse->db, zName, zDbase);
  if( p==0 ){
    const char *zMsg = isView ? "no such view" : "no such table";
#ifndef SQLITE_OMIT_VIRTUALTABLE
    if( sqlite3FindDbName(pParse->db, zDbase)<1 ){
      /* If zName is the not the name of a table in the schema created using
      ** CREATE, then check to see if it is the name of an virtual table that
      ** can be an eponymous virtual table. */
      Module *pMod = (Module*)sqlite3HashFind(&pParse->db->aModule, zName);
      if( pMod && sqlite3VtabEponymousTableInit(pParse, pMod) ){
        return pMod->pEpoTab;
      }
    }
#endif
    if( zDbase ){
      sqlite3ErrorMsg(pParse, "%s: %s.%s", zMsg, zDbase, zName);
    }else{
      sqlite3ErrorMsg(pParse, "%s: %s", zMsg, zName);
    }
    pParse->checkSchema = 1;
  }

  return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %r12d
movq %rdi, %rbx
callq 0x3ed1f
testl %eax, %eax
je 0x1466e
xorl %eax, %eax
jmp 0x14681
movq (%rbx), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1abc5
testq %rax, %rax
je 0x14690
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %r12d, %r12d
leaq 0x6806a(%rip), %rax     # 0x7c704
leaq 0x68056(%rip), %r12     # 0x7c6f7
cmoveq %rax, %r12
movq (%rbx), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x19897
testl %eax, %eax
jle 0x146dc
testq %r15, %r15
je 0x14744
leaq 0x6804b(%rip), %rsi     # 0x7c712
movq %rbx, %rdi
movq %r12, %rdx
movq %r15, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x14890
jmp 0x1475b
leaq 0x1a8(%r13), %rdi
leaq -0x5c(%rbp), %rdx
movq %r14, %rsi
callq 0x3c196
testq %rax, %rax
je 0x146b7
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x146b7
movq (%rcx), %rdx
movq $0x0, -0x48(%rbp)
movq 0x20(%rcx), %rax
testq %rax, %rax
jne 0x14681
movq 0x8(%rdx), %rax
testq %rax, %rax
je 0x14724
cmpq 0x10(%rdx), %rax
jne 0x146b7
movq %rdx, -0x58(%rbp)
movq %rcx, -0x38(%rbp)
movq 0x8(%rcx), %rdi
testq %rdi, %rdi
je 0x14764
callq 0xa190
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
incq %rax
jmp 0x14769
leaq 0x67fd1(%rip), %rsi     # 0x7c71c
movq %rbx, %rdi
movq %r12, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x14890
movb $0x1, 0x1d(%rbx)
jmp 0x1466a
movl $0x1, %eax
movq %rax, -0x50(%rbp)
leaq 0x78(%rax), %rsi
movq %r13, %rdi
movq %rsi, -0x40(%rbp)
callq 0x145aa
testq %rax, %rax
je 0x146b7
movq %rax, %rdi
movq %rax, -0x30(%rbp)
xorl %esi, %esi
movq -0x40(%rbp), %rdx
callq 0xa220
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, 0x20(%rax)
movq %rcx, %rdi
addq $0x78, %rdi
movq %rdi, -0x40(%rbp)
movq %rdi, (%rcx)
movq 0x8(%rax), %rsi
movq -0x50(%rbp), %rdx
callq 0xa320
movq -0x30(%rbp), %rcx
movw $0x1, 0x40(%rcx)
movq 0x20(%r13), %rax
movq 0x18(%rax), %rax
movq %rax, 0x68(%rcx)
orb $0x10, 0x46(%rcx)
movl $0x0, 0x4c(%rcx)
movw $0xffff, 0x3c(%rcx)     # imm = 0xFFFF
movq %r13, %rdi
movq -0x40(%rbp), %rsi
callq 0x12d65
movq %r13, %rdi
movq -0x30(%rbp), %rsi
movq %rax, %rdx
callq 0x3ed55
movq %r13, %rdi
movq -0x30(%rbp), %rsi
xorl %edx, %edx
callq 0x3ed55
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movq %r13, %rdi
callq 0x12d65
movq %r13, %rdi
movq -0x30(%rbp), %rsi
movq %rax, %rdx
callq 0x3ed55
movq -0x58(%rbp), %rax
movq 0x10(%rax), %rcx
leaq -0x48(%rbp), %r8
movq %r13, %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x3dfe5
testl %eax, %eax
je 0x14883
movq -0x48(%rbp), %rdx
movq %rdx, -0x30(%rbp)
leaq 0x66b37(%rip), %rsi     # 0x7b393
movq %rbx, %rdi
xorl %eax, %eax
callq 0x14890
movq %r13, %rdi
movq -0x30(%rbp), %rsi
callq 0xb752
movq %r13, %rdi
movq -0x38(%rbp), %rsi
callq 0x3edc0
jmp 0x146b7
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
jmp 0x14681