// File: /workspace/github_c_makefile_star2_O1/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 $0x48, %rsp
movq %rcx, %r12
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r14
callq 0x3fd1e
testl %eax, %eax
je 0x145bc
xorl %ebx, %ebx
jmp 0x147ee
movq (%r14), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1abce
testq %rax, %rax
jne 0x147eb
movq %rax, -0x68(%rbp)
testl %ebx, %ebx
leaq 0x6a114(%rip), %rax     # 0x7e6f4
leaq 0x6a100(%rip), %rcx     # 0x7e6e7
cmoveq %rax, %rcx
movq %rcx, -0x40(%rbp)
movq (%r14), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x19988
testl %eax, %eax
jg 0x147a2
leaq 0x1a8(%r13), %rdi
leaq -0x6c(%rbp), %rdx
movq %r15, %rsi
callq 0x3d198
testq %rax, %rax
je 0x14623
movq 0x10(%rax), %rdx
jmp 0x14625
xorl %edx, %edx
movb $0x1, %cl
testq %rdx, %rdx
je 0x1479e
movq (%rdx), %rsi
movq $0x0, -0x48(%rbp)
cmpq $0x0, 0x20(%rdx)
je 0x1464d
movq 0x20(%rdx), %rbx
xorl %ecx, %ecx
jmp 0x1479e
movq %r13, -0x38(%rbp)
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x14664
cmpq 0x10(%rsi), %rax
jne 0x1479e
movq %rsi, -0x60(%rbp)
movq %rdx, -0x30(%rbp)
movq 0x8(%rdx), %rdi
testq %rdi, %rdi
je 0x14684
callq 0xa190
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
incq %rax
jmp 0x14689
movl $0x1, %eax
movq -0x38(%rbp), %rdi
movq %rax, -0x58(%rbp)
leaq 0x78(%rax), %rsi
movq %rsi, %r13
callq 0x144ee
testq %rax, %rax
movb $0x1, %cl
je 0x1479e
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0xa210
movq -0x30(%rbp), %rax
movq %rbx, 0x20(%rax)
movq %rbx, %rdi
addq $0x78, %rdi
movq %rdi, -0x50(%rbp)
movq %rdi, (%rbx)
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x58(%rbp), %rdx
callq 0xa310
movw $0x1, 0x40(%rbx)
movq -0x38(%rbp), %r13
movq 0x20(%r13), %rax
movq 0x18(%rax), %rax
movq %rax, 0x68(%rbx)
orb $0x10, 0x46(%rbx)
movl $0x0, 0x4c(%rbx)
movw $0xffff, 0x3c(%rbx)     # imm = 0xFFFF
movq %r13, %rdi
movq -0x50(%rbp), %rsi
callq 0x12d08
movq %r13, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x3fd4f
movq %r13, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3fd4f
movq (%rbx), %rsi
movq %r13, %rdi
callq 0x12d08
movq %r13, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x3fd4f
movq -0x60(%rbp), %rax
movq 0x10(%rax), %rcx
leaq -0x48(%rbp), %r8
movq %r13, %rdi
movq %rbx, %rsi
movq -0x30(%rbp), %rdx
callq 0x3efd7
movq -0x30(%rbp), %rdx
testl %eax, %eax
je 0x14642
movq -0x48(%rbp), %rbx
leaq 0x68c0b(%rip), %rsi     # 0x7d383
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x14804
movq %r13, %rdi
movq %rbx, %rsi
callq 0xb6df
movq %r13, %rdi
movq -0x30(%rbp), %rsi
callq 0x3fdba
movb $0x1, %cl
testb %cl, %cl
je 0x14800
testq %r12, %r12
je 0x147c4
leaq 0x69f54(%rip), %rsi     # 0x7e702
movq %r14, %rdi
movq -0x40(%rbp), %rdx
movq %r12, %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x14804
jmp 0x147dc
leaq 0x69f41(%rip), %rsi     # 0x7e70c
movq %r14, %rdi
movq -0x40(%rbp), %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x14804
movb $0x1, 0x1d(%r14)
movb $0x1, %al
testb %al, %al
movq -0x68(%rbp), %rax
je 0x147ee
movq %rax, %rbx
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x147e3