// File: /workspace/github_c_makefile_star2_O3/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 0x2e743
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 0x2ea12
movq %rdi, %rbx
cmpl $0xdb7c2712, 0x120(%rdi) # imm = 0xDB7C2712
jne 0x2ea12
movl %esi, %r15d
movq 0xf8(%rbx), %rdi
testq %rdi, %rdi
je 0x2e77e
movq 0x65ffd(%rip), %rax     # 0x94778
callq *0x20(%rax)
cmpl $0x2, 0x66003(%rip)     # 0x94788
jb 0x2e79d
movl $0xfffffff6, %r14d      # imm = 0xFFFFFFF6
cmpl $0xdb7c2712, 0x120(%rbx) # imm = 0xDB7C2712
jne 0x2ea12
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 0x2e9fc
leaq 0x43d58(%rip), %rax     # 0x72530
movslq (%rax,%r15,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl -0x40(%rbp), %ecx
cmpq $0x29, %rcx
jae 0x2e899
movq -0x30(%rbp), %rax
movq %rcx, %rdx
addq $0x8, %rdx
movl %edx, -0x40(%rbp)
movq (%rax,%rcx), %r14
cmpl $0x21, %ecx
jae 0x2e982
addq %rdx, %rax
addl $0x10, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x2e98e
movl -0x40(%rbp), %ecx
cmpq $0x29, %rcx
jae 0x2e885
movq -0x30(%rbp), %rax
movq %rcx, %rdx
addq $0x8, %rdx
movl %edx, -0x40(%rbp)
movq (%rax,%rcx), %r14
cmpl $0x21, %ecx
jae 0x2e916
addq %rdx, %rax
addl $0x10, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x2e922
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x2e8ad
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x2e8b9
orb $0x1, 0x10c(%rbx)
jmp 0x2e9f1
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x2e8de
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x2e8ea
movq -0x38(%rbp), %rcx
leaq 0x8(%rcx), %rax
movq %rax, -0x38(%rbp)
movq (%rcx), %r14
jmp 0x2e91a
movq -0x38(%rbp), %rcx
leaq 0x8(%rcx), %rax
movq %rax, -0x38(%rbp)
movq (%rcx), %r14
jmp 0x2e986
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 0x2e9fc
movq 0xd8(%rbx), %rcx
movl %eax, 0x258(%rcx)
jmp 0x2e9f1
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %rax
xorl %r14d, %r14d
testq %rax, %rax
je 0x2e9fc
movq 0xd8(%rbx), %rcx
movq 0x10(%rcx), %rcx
movq (%rcx), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx), %rcx
movq %rcx, (%rax)
jmp 0x2e9fc
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
testq %r14, %r14
je 0x2e9f6
movq (%rax), %r15
leaq 0xb8(%rbx), %rdi
movl 0xc8(%rbx), %r12d
leaq 0x4428d(%rip), %rsi     # 0x72bd0
movl $0x1, %edx
callq 0x359ad
testl %eax, %eax
jne 0x2e958
movl %r12d, 0xc8(%rbx)
movq 0xc0(%rbx), %rax
movq %rax, (%r14)
xorl %r14d, %r14d
testq %r15, %r15
je 0x2e9fc
movl 0xc8(%rbx), %eax
cmpl $0x2, %eax
jae 0x2e9ec
movl $0x0, (%r15)
jmp 0x2e9fc
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
testq %r14, %r14
je 0x2e9f6
movq 0xe0(%rbx), %r12
movq (%rax), %r15
leaq 0xd0(%r12), %rdi
movl 0xe0(%r12), %r13d
leaq 0x4421c(%rip), %rsi     # 0x72bd0
movl $0x1, %edx
callq 0x359ad
testl %eax, %eax
jne 0x2e9ca
movl %r13d, 0xe0(%r12)
movq 0xd8(%r12), %rax
movq %rax, (%r14)
testq %r15, %r15
je 0x2e9f1
movl 0xe0(%r12), %eax
xorl %r14d, %r14d
cmpl $0x2, %eax
cmovbl %r14d, %eax
movl %eax, (%r15)
jmp 0x2e9fc
xorl %r14d, %r14d
jmp 0x2e9fc
movl $0xffffffe8, %r14d      # imm = 0xFFFFFFE8
movq 0xf8(%rbx), %rdi
testq %rdi, %rdi
je 0x2ea12
movq 0x65d69(%rip), %rax     # 0x94778
callq *0x30(%rax)
movl %r14d, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq