// File: /workspace/github_c_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, -0xe0(%rbp)
movq %rcx, -0xd8(%rbp)
movq %r8, -0xd0(%rbp)
movq %r9, -0xc8(%rbp)
testb %al, %al
je 0x2ec22
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)
movl $0xffffffe8, %r14d      # imm = 0xFFFFFFE8
testq %rdi, %rdi
je 0x2eee2
movq %rdi, %rbx
cmpl $0xdb7c2712, 0x120(%rdi) # imm = 0xDB7C2712
jne 0x2eee2
movl %esi, %r15d
movq 0xf8(%rbx), %rdi
testq %rdi, %rdi
je 0x2ec5d
movq 0x67b1e(%rip), %rax     # 0x96778
callq *0x20(%rax)
cmpl $0x2, 0x67b24(%rip)     # 0x96788
jb 0x2ec7c
movl $0xfffffff6, %r14d      # imm = 0xFFFFFFF6
cmpl $0xdb7c2712, 0x120(%rbx) # imm = 0xDB7C2712
jne 0x2eee2
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)
movl $0xfffffff3, %r14d      # imm = 0xFFFFFFF3
decl %r15d
cmpl $0x5, %r15d
ja 0x2eecc
leaq 0x45889(%rip), %rax     # 0x74540
movslq (%rax,%r15,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x2edcb
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x2edd7
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x2ed41
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x2ed4d
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x2ee67
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x2ee73
orb $0x1, 0x10c(%rbx)
jmp 0x2ee8f
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x2ee94
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x2eea0
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %r14
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x2ed68
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x2ed74
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
testq %r14, %r14
je 0x2ee5f
movq (%rax), %r15
leaq 0xb8(%rbx), %rdi
movl 0xc8(%rbx), %r12d
leaq 0x45e2f(%rip), %rsi     # 0x74bc4
movl $0x1, %edx
callq 0x360ae
testl %eax, %eax
jne 0x2edaa
movl %r12d, 0xc8(%rbx)
movq 0xc0(%rbx), %rax
movq %rax, (%r14)
xorl %r14d, %r14d
testq %r15, %r15
je 0x2eecc
movl 0xc8(%rbx), %eax
jmp 0x2ee55
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %r14
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x2edf2
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x2edfe
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
testq %r14, %r14
je 0x2ee5f
movq 0xe0(%rbx), %r12
movq (%rax), %r15
leaq 0xd0(%r12), %rdi
movl 0xe0(%r12), %r13d
leaq 0x45da0(%rip), %rsi     # 0x74bc4
movl $0x1, %edx
callq 0x360ae
testl %eax, %eax
jne 0x2ee3a
movl %r13d, 0xe0(%r12)
movq 0xd8(%r12), %rax
movq %rax, (%r14)
xorl %r14d, %r14d
testq %r15, %r15
je 0x2eecc
movl 0xe0(%r12), %eax
cmpl $0x2, %eax
jb 0x2eec5
movl %eax, (%r15)
jmp 0x2eecc
movl $0xffffffe8, %r14d      # imm = 0xFFFFFFE8
jmp 0x2eecc
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movl (%rax), %eax
movl $0xfffffff7, %r14d      # imm = 0xFFFFFFF7
cmpl $0x100, %eax            # imm = 0x100
jl 0x2eecc
movq 0xd8(%rbx), %rcx
movl %eax, 0x258(%rcx)
xorl %r14d, %r14d
jmp 0x2eecc
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %rax
xorl %r14d, %r14d
testq %rax, %rax
je 0x2eecc
movq 0xd8(%rbx), %rcx
movq 0x10(%rcx), %rcx
movq (%rcx), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx), %rcx
movq %rcx, (%rax)
jmp 0x2eecc
movl $0x0, (%r15)
movq 0xf8(%rbx), %rdi
testq %rdi, %rdi
je 0x2eee2
movq 0x67899(%rip), %rax     # 0x96778
callq *0x30(%rax)
movl %r14d, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq