// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqliteBuiltin_db_drop_col
static int unqliteBuiltin_db_drop_col(jx9_context *pCtx,int argc,jx9_value **argv)
{
	unqlite_col *pCol;
	const char *zName;
	unqlite_vm *pVm;
	SyString sName;
	int nByte;
	int rc;
	/* Extract collection name */
	if( argc < 1 ){
		/* Missing arguments */
		jx9_context_throw_error(pCtx,JX9_CTX_ERR,"Missing collection name");
		/* Return false */
		jx9_result_bool(pCtx,0);
		return JX9_OK;
	}
	zName = jx9_value_to_string(argv[0],&nByte);
	if( nByte < 1){
		jx9_context_throw_error(pCtx,JX9_CTX_ERR,"Invalid collection name");
		/* Return false */
		jx9_result_bool(pCtx,0);
		return JX9_OK;
	}
	SyStringInitFromBuf(&sName,zName,nByte);
	pVm = (unqlite_vm *)jx9_context_user_data(pCtx);
	/* Fetch the collection */
	pCol = unqliteCollectionFetch(pVm,&sName,UNQLITE_VM_AUTO_LOAD);
	if( pCol == 0 ){
		jx9_context_throw_error_format(pCtx,JX9_CTX_ERR,"No such collection '%z'",&sName);
		/* Return false */
		jx9_result_bool(pCtx,0);
		return JX9_OK;
	}
	/* Drop the collection */
	rc = unqliteDropCollection(pCol);
	/* Processing result */
	jx9_result_bool(pCtx,rc == UNQLITE_OK);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
testl %esi, %esi
jle 0x3d594
movq (%rdx), %rdi
leaq -0x54(%rbp), %r14
movq %r14, %rsi
callq 0x30b04
movl (%r14), %ecx
testl %ecx, %ecx
jle 0x3d5a8
leaq -0x68(%rbp), %rsi
movq %rax, (%rsi)
movl %ecx, 0x8(%rsi)
movq (%rbx), %rax
movq 0x20(%rax), %rdi
callq 0x3dde0
testq %rax, %rax
je 0x3d5dc
movq %rax, %r14
movq (%rax), %r15
movq 0x118(%rax), %rdi
movq (%rdi), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0xa8(%rax), %rax
testq %rax, %rax
je 0x3d56f
callq *%rax
movq 0x118(%r14), %rdi
movq 0x8(%r14), %rsi
movl 0x10(%r14), %edx
movl $0x1, %ecx
callq 0x32a37
testl %eax, %eax
je 0x3d5f8
xorl %r12d, %r12d
jmp 0x3d621
movq (%rbx), %rsi
movq 0x60(%rbx), %rdi
addq $0x8, %rsi
leaq 0x389b6(%rip), %rcx     # 0x75f5c
jmp 0x3d5ba
movq (%rbx), %rsi
movq 0x60(%rbx), %rdi
addq $0x8, %rsi
leaq 0x389ba(%rip), %rcx     # 0x75f74
movl $0x1, %edx
callq 0x4153c
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq $0x0, (%rbx)
jmp 0x3d822
leaq 0x38ffd(%rip), %rdx     # 0x765e0
leaq -0x68(%rbp), %rcx
movq %rbx, %rdi
movl $0x1, %esi
xorl %eax, %eax
callq 0x45d26
jmp 0x3d5c4
movq 0x118(%r14), %rdi
movq (%rdi), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x80(%rax), %rax
testq %rax, %rax
je 0x3d58c
callq *%rax
testl %eax, %eax
sete %r12b
testb %r12b, %r12b
je 0x3d753
movl %r12d, -0x2c(%rbp)
movq %r15, -0x38(%rbp)
movq %rbx, -0x50(%rbp)
cmpq $0x0, 0xa8(%r14)
jle 0x3d65e
xorl %r15d, %r15d
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x45ff2
incq %r15
cmpq 0xa8(%r14), %r15
jl 0x3d643
leaq 0xd0(%r14), %rax
movq %rax, -0x48(%rbp)
movq (%r14), %rax
movq %rax, -0x40(%rbp)
cmpl $0x0, 0xd8(%r14)
je 0x3d6b3
movq -0x48(%rbp), %rax
movq (%rax), %r13
movq -0x40(%rbp), %rax
leaq 0x8(%rax), %r12
xorl %r15d, %r15d
movq 0x60(%r13), %rbx
leaq 0x10(%r13), %rdi
callq 0x309f2
movq %r12, %rdi
movq %r13, %rsi
callq 0x2eb38
incl %r15d
movq %rbx, %r13
cmpl 0xd8(%r14), %r15d
jb 0x3d68c
movq -0x40(%rbp), %rdi
addq $0x8, %rdi
movq 0xc8(%r14), %rsi
callq 0x3503f
xorps %xmm0, %xmm0
movq -0x48(%rbp), %rax
movups %xmm0, (%rax)
leaq 0x88(%r14), %rdi
callq 0x31d8f
leaq 0x68(%r14), %rdi
callq 0x31d8f
movq -0x38(%rbp), %rbx
leaq 0x8(%rbx), %r15
movq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0x3503f
movq (%rbx), %r12
movq 0x118(%r14), %r13
movq 0xd8(%r12), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0xb0(%rax), %rax
testq %rax, %rax
je 0x3d728
movq %r13, %rdi
callq *%rax
movq %r12, %rdi
movq %r13, %rsi
callq 0x2eb38
movq 0x138(%r14), %rax
testq %rax, %rax
je 0x3d773
movq 0x130(%r14), %rcx
movq %rcx, 0x130(%rax)
movq -0x38(%rbp), %rsi
jmp 0x3d795
movq %r14, %rdx
addq $0x8, %rdx
movq (%r14), %rax
movq (%rax), %rdi
leaq 0x38f76(%rip), %rsi     # 0x766dd
xorl %eax, %eax
callq 0x3ac51
jmp 0x3d80f
movq -0x38(%rbp), %rsi
movl 0xdc(%rsi), %eax
decl %eax
andl 0x18(%r14), %eax
movq 0x130(%r14), %rcx
movq 0xc8(%rsi), %rdx
movq %rcx, (%rdx,%rax,8)
movl -0x2c(%rbp), %r12d
movq 0x130(%r14), %rax
testq %rax, %rax
movq -0x50(%rbp), %rbx
je 0x3d7b7
movq 0x138(%r14), %rcx
movq %rcx, 0x138(%rax)
movq 0xd0(%rsi), %rax
cmpq %r14, %rax
jne 0x3d7d1
movq 0x120(%rax), %rax
movq %rax, 0xd0(%rsi)
movq 0x128(%r14), %rax
testq %rax, %rax
je 0x3d7eb
movq 0x120(%r14), %rcx
movq %rcx, 0x120(%rax)
movq 0x120(%r14), %rcx
testq %rcx, %rcx
je 0x3d7fe
movq %rax, 0x128(%rcx)
decl 0xd8(%rsi)
movq %r15, %rdi
movq %r14, %rsi
callq 0x2eb38
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movzbl %r12b, %eax
movq %rax, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl $0x8, %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq