// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: deleteTable
static void SQLITE_NOINLINE deleteTable(sqlite3 *db, Table *pTable){
  Index *pIndex, *pNext;

#ifdef SQLITE_DEBUG
  /* Record the number of outstanding lookaside allocations in schema Tables
  ** prior to doing any free() operations.  Since schema Tables do not use
  ** lookaside, this number should not change. */
  int nLookaside = 0;
  if( db && (pTable->tabFlags & TF_Ephemeral)==0 ){
    nLookaside = sqlite3LookasideUsed(db, 0);
  }
#endif

  /* Delete all indices associated with this table. */
  for(pIndex = pTable->pIndex; pIndex; pIndex=pNext){
    pNext = pIndex->pNext;
    assert( pIndex->pSchema==pTable->pSchema
         || (IsVirtual(pTable) && pIndex->idxType!=SQLITE_IDXTYPE_APPDEF) );
    if( (db==0 || db->pnBytesFreed==0) && !IsVirtual(pTable) ){
      char *zName = pIndex->zName; 
      TESTONLY ( Index *pOld = ) sqlite3HashInsert(
         &pIndex->pSchema->idxHash, zName, 0
      );
      assert( db==0 || sqlite3SchemaMutexHeld(db, 0, pIndex->pSchema) );
      assert( pOld==pIndex || pOld==0 );
    }
    sqlite3FreeIndex(db, pIndex);
  }

  /* Delete any foreign keys attached to this table. */
  sqlite3FkDelete(db, pTable);

  /* Delete the Table structure itself.
  */
  sqlite3DeleteColumnNames(db, pTable);
  sqlite3DbFree(db, pTable->zName);
  sqlite3DbFree(db, pTable->zColAff);
  sqlite3SelectDelete(db, pTable->pSelect);
  sqlite3ExprListDelete(db, pTable->pCheck);
#ifndef SQLITE_OMIT_VIRTUALTABLE
  sqlite3VtabClear(db, pTable);
#endif
  sqlite3DbFree(db, pTable);

  /* Verify that no lookaside memory was used by schema tables */
  assert( nLookaside==0 || nLookaside==sqlite3LookasideUsed(db,0) );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rsi), %r15
testq %r15, %r15
je 0x4335fd
movq 0x28(%r15), %r12
testq %r14, %r14
je 0x4335d5
cmpq $0x0, 0x2a0(%r14)
jne 0x4335ed
cmpl $0x0, 0x54(%rbx)
jne 0x4335ed
movq (%r15), %rsi
movq 0x30(%r15), %rdi
addq $0x20, %rdi
xorl %edx, %edx
callq 0x4308d9
movq %r14, %rdi
movq %r15, %rsi
callq 0x430b21
movq %r12, %r15
jmp 0x4335bd
movq 0x20(%rbx), %r15
testq %r15, %r15
je 0x433680
testq %r14, %r14
je 0x433615
cmpq $0x0, 0x2a0(%r14)
jne 0x433654
movq 0x18(%r15), %rdx
movq 0x20(%r15), %rax
testq %rax, %rax
je 0x433628
movq %rdx, 0x18(%rax)
jmp 0x433647
testq %rdx, %rdx
movq %rdx, %rax
cmoveq %r15, %rax
movq 0x10(%rax), %rsi
movq 0x70(%rbx), %rdi
addq $0x50, %rdi
callq 0x4308d9
movq 0x18(%r15), %rdx
testq %rdx, %rdx
je 0x433654
movq 0x20(%r15), %rax
movq %rax, 0x20(%rdx)
movq 0x30(%r15), %rsi
movq %r14, %rdi
callq 0x433790
movq 0x38(%r15), %rsi
movq %r14, %rdi
callq 0x433790
movq 0x8(%r15), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x412f53
movq %r12, %r15
jmp 0x433601
movq %r14, %rdi
movq %rbx, %rsi
callq 0x433723
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x4043ed
movq 0x28(%rbx), %rsi
movq %r14, %rdi
callq 0x4043ed
movq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0x430c22
movq 0x30(%rbx), %rsi
movq %r14, %rdi
callq 0x430b76
testq %r14, %r14
je 0x4336c9
cmpq $0x0, 0x2a0(%r14)
jne 0x4336d3
xorl %edi, %edi
movq %rbx, %rsi
callq 0x432392
cmpq $0x0, 0x58(%rbx)
je 0x43370d
xorl %r15d, %r15d
movslq 0x54(%rbx), %rax
cmpq %rax, %r15
jge 0x433701
cmpq $0x1, %r15
je 0x4336fc
movq 0x58(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x4043ed
incq %r15
jmp 0x4336dd
movq 0x58(%rbx), %rsi
movq %r14, %rdi
callq 0x4043ed
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x412f53