// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqlite_config
int unqlite_config(unqlite *pDb,int nConfigOp,...)
{
	va_list ap;
	int rc;
	if( UNQLITE_DB_MISUSE(pDb) ){
		return UNQLITE_CORRUPT;
	}
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Acquire DB mutex */
	 SyMutexEnter(sUnqlMPGlobal.pMutexMethods, pDb->pMutex); /* NO-OP if sUnqlMPGlobal.nThreadingLevel != UNQLITE_THREAD_LEVEL_MULTI */
	 if( sUnqlMPGlobal.nThreadingLevel > UNQLITE_THREAD_LEVEL_SINGLE && 
		 UNQLITE_THRD_DB_RELEASE(pDb) ){
			 return UNQLITE_ABORT; /* Another thread have released this instance */
	 }
#endif
	 va_start(ap, nConfigOp);
	 rc = unqliteConfigure(&(*pDb),nConfigOp, ap);
	 va_end(ap);
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Leave DB mutex */
	 SyMutexLeave(sUnqlMPGlobal.pMutexMethods,pDb->pMutex); /* NO-OP if sUnqlMPGlobal.nThreadingLevel != UNQLITE_THREAD_LEVEL_MULTI */
#endif
	return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xd0, %rsp
movq %rdx, -0xe0(%rbp)
movq %rcx, -0xd8(%rbp)
movq %r8, -0xd0(%rbp)
movq %r9, -0xc8(%rbp)
testb %al, %al
je 0x27cd7
movaps %xmm0, -0xc0(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm2, -0xa0(%rbp)
movaps %xmm3, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm5, -0x70(%rbp)
movaps %xmm6, -0x60(%rbp)
movaps %xmm7, -0x50(%rbp)
pushq $-0x18
popq %r14
testq %rdi, %rdi
je 0x27f54
movq %rdi, %rbx
cmpl $0xdb7c2712, 0x120(%rdi) # imm = 0xDB7C2712
jne 0x27f54
movl %esi, %r15d
movq 0xf8(%rbx), %rdi
testq %rdi, %rdi
je 0x27d10
movq 0x5fa8b(%rip), %rax     # 0x87798
callq *0x20(%rax)
cmpl $0x2, 0x5fa91(%rip)     # 0x877a8
jb 0x27d25
cmpl $0xdb7c2712, 0x120(%rbx) # imm = 0xDB7C2712
jne 0x27d9d
leaq -0xf0(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, -0x40(%rbp)
pushq $-0xd
popq %r14
decl %r15d
cmpl $0x5, %r15d
ja 0x27f3e
leaq 0x3a7d2(%rip), %rax     # 0x62530
movslq (%rax,%r15,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl -0x40(%rbp), %ecx
cmpq $0x29, %rcx
jae 0x27e25
movq -0x30(%rbp), %rax
movq %rcx, %rdx
addq $0x8, %rdx
movl %edx, -0x40(%rbp)
movq (%rax,%rcx), %r14
cmpl $0x21, %ecx
jae 0x27ee6
addq %rdx, %rax
addl $0x10, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x27ef2
pushq $-0xa
popq %r14
jmp 0x27f54
movl -0x40(%rbp), %ecx
cmpq $0x29, %rcx
jae 0x27e14
movq -0x30(%rbp), %rax
movq %rcx, %rdx
addq $0x8, %rdx
movl %edx, -0x40(%rbp)
movq (%rax,%rcx), %r14
cmpl $0x21, %ecx
jae 0x27e9f
addq %rdx, %rax
addl $0x10, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x27eab
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x27e39
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x27e45
orb $0x1, 0x10c(%rbx)
jmp 0x27f35
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x27e67
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x27e73
movq -0x38(%rbp), %rcx
leaq 0x8(%rcx), %rax
movq %rax, -0x38(%rbp)
movq (%rcx), %r14
jmp 0x27ea3
movq -0x38(%rbp), %rcx
leaq 0x8(%rcx), %rax
movq %rax, -0x38(%rbp)
movq (%rcx), %r14
jmp 0x27eea
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movl (%rax), %eax
cmpl $0x100, %eax            # imm = 0x100
jge 0x27e55
pushq $-0x9
jmp 0x27f3c
movq 0xd8(%rbx), %rcx
movl %eax, 0x258(%rcx)
jmp 0x27f35
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %rax
xorl %r14d, %r14d
testq %rax, %rax
je 0x27f3e
movq 0xd8(%rbx), %rcx
movq 0x10(%rcx), %rcx
movq (%rcx), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx), %rcx
movq %rcx, (%rax)
jmp 0x27f3e
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
testq %r14, %r14
je 0x27f3a
movq (%rax), %r15
leaq 0xb8(%rbx), %rdi
callq 0x34133
movq 0xc0(%rbx), %rax
movq %rax, (%r14)
xorl %r14d, %r14d
testq %r15, %r15
je 0x27f3e
movl 0xc8(%rbx), %eax
cmpl $0x2, %eax
jae 0x27f30
andl $0x0, (%r15)
jmp 0x27f3e
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
testq %r14, %r14
je 0x27f3a
movq 0xe0(%rbx), %r12
movq (%rax), %r15
leaq 0xd0(%r12), %rdi
callq 0x34133
movq 0xd8(%r12), %rax
movq %rax, (%r14)
testq %r15, %r15
je 0x27f35
movl 0xe0(%r12), %eax
xorl %r14d, %r14d
cmpl $0x2, %eax
cmovbl %r14d, %eax
movl %eax, (%r15)
jmp 0x27f3e
xorl %r14d, %r14d
jmp 0x27f3e
pushq $-0x18
popq %r14
movq 0xf8(%rbx), %rdi
testq %rdi, %rdi
je 0x27f54
movq 0x5f847(%rip), %rax     # 0x87798
callq *0x30(%rax)
movl %r14d, %eax
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq