// File: /workspace/github_c_makefile_star2_O3/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqlite_lib_config
int unqlite_lib_config(int nConfigOp,...)
{
	va_list ap;
	int rc;
	if( sUnqlMPGlobal.nMagic == UNQLITE_LIB_MAGIC ){
		/* Library is already initialized, this operation is forbidden */
		return UNQLITE_LOCKED;
	}
	va_start(ap,nConfigOp);
	rc = unqliteCoreConfigure(nConfigOp,ap);
	va_end(ap);
	return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rsi, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movq %rcx, -0xd8(%rbp)
movq %r8, -0xd0(%rbp)
movq %r9, -0xc8(%rbp)
testb %al, %al
je 0x2d45f
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 $0xfffffffc, %ebx       # imm = 0xFFFFFFFC
cmpl $0xea1495ba, 0x6736a(%rip) # imm = 0xEA1495BA
jne 0x2d480
movl %ebx, %eax
addq $0xd8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq -0xf0(%rbp), %rax
movq %rax, -0x20(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, -0x30(%rbp)
decl %edi
cmpl $0x7, %edi
ja 0x2d85b
leaq 0x4505d(%rip), %rax     # 0x72510
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl -0x30(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x2d6ec
movq %rcx, %rax
addq -0x20(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x30(%rbp)
jmp 0x2d6f8
movl $0x2, 0x672a3(%rip)     # 0x94788
xorl %ebx, %ebx
movl $0x5, %edi
jmp 0x2d51e
movl -0x30(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x2d5bd
movq %rcx, %rax
addq -0x20(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x30(%rbp)
jmp 0x2d5c9
movl $0x1, 0x67271(%rip)     # 0x94788
xorl %ebx, %ebx
movl $0x4, %edi
xorl %eax, %eax
callq 0x331d0
jmp 0x2d470
movl -0x30(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x2d67f
movq %rcx, %rax
addq -0x20(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x30(%rbp)
jmp 0x2d68b
movl -0x30(%rbp), %edx
cmpq $0x29, %rdx
jae 0x2d72b
movq -0x20(%rbp), %rax
movq %rdx, %rsi
addq $0x8, %rsi
movl %esi, -0x30(%rbp)
movq (%rax,%rdx), %rcx
cmpl $0x21, %edx
jae 0x2d82c
addq %rsi, %rax
addl $0x10, %edx
movl %edx, -0x30(%rbp)
jmp 0x2d838
movl -0x30(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x2d73f
movq %rcx, %rax
addq -0x20(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x30(%rbp)
jmp 0x2d74b
movl -0x30(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x2d765
movq %rcx, %rax
addq -0x20(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x30(%rbp)
jmp 0x2d771
movq -0x28(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x28(%rbp)
movq (%rax), %r14
cmpq $0x0, 0x20(%r14)
je 0x2d85b
cmpq $0x0, 0x30(%r14)
je 0x2d85b
cmpq $0x0, 0x10(%r14)
je 0x2d85b
movq 0x67184(%rip), %rax     # 0x94778
testq %rax, %rax
je 0x2d62d
movq 0x67180(%rip), %rdi     # 0x94780
testq %rdi, %rdi
je 0x2d617
movq 0x18(%rax), %rcx
testq %rcx, %rcx
je 0x2d617
callq *%rcx
movq 0x67161(%rip), %rax     # 0x94778
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x2d622
callq *%rax
movq $0x0, 0x67153(%rip) # 0x94780
movq (%r14), %rax
testq %rax, %rax
je 0x2d641
callq *%rax
movl %eax, %ebx
testl %eax, %eax
jne 0x2d470
movl $0x1, %edi
callq *0x10(%r14)
movq %rax, 0x6712f(%rip)     # 0x94780
testq %rax, %rax
je 0x2d850
movq %r14, 0x67117(%rip)     # 0x94778
xorl %ebx, %ebx
cmpl $0x0, 0x6711e(%rip)     # 0x94788
jne 0x2d470
movl $0x2, 0x6710e(%rip)     # 0x94788
jmp 0x2d470
movq -0x28(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x28(%rbp)
movl (%rax), %eax
leal -0x200(%rax), %ecx
movl $0xfffffff7, %ebx       # imm = 0xFFFFFFF7
cmpl $0xfe00, %ecx           # imm = 0xFE00
ja 0x2d470
movl %eax, %ecx
shrl %ecx
andl $0x55555555, %ecx       # imm = 0x55555555
movl %eax, %edx
subl %ecx, %edx
movl $0x33333333, %ecx       # imm = 0x33333333
movl %edx, %esi
andl %ecx, %esi
shrl $0x2, %edx
andl %ecx, %edx
addl %esi, %edx
movl %edx, %ecx
shrl $0x4, %ecx
addl %edx, %ecx
andl $0xf0f0f0f, %ecx        # imm = 0xF0F0F0F
imull $0x1010101, %ecx, %ecx  # imm = 0x1010101
shrl $0x18, %ecx
cmpl $0x1, %ecx
ja 0x2d470
movl %eax, 0x670d1(%rip)     # 0x947b8
jmp 0x2d849
movq -0x28(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x28(%rbp)
movq (%rax), %rsi
movq 0x66fde(%rip), %r15     # 0x946e0
movq 0x66fdf(%rip), %r14     # 0x946e8
leaq 0x66fb0(%rip), %rdi     # 0x946c0
testq %rsi, %rsi
je 0x2d7fd
movq %r15, %rdx
movq %r14, %rcx
callq 0x33166
movl %eax, %ebx
jmp 0x2d470
movq -0x28(%rbp), %rcx
leaq 0x8(%rcx), %rax
movq %rax, -0x28(%rbp)
movq (%rcx), %rcx
jmp 0x2d830
movq -0x28(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x28(%rbp)
movq (%rax), %rax
xorl %ebx, %ebx
testq %rax, %rax
je 0x2d470
movq %rax, 0x67060(%rip)     # 0x947c0
jmp 0x2d470
movq -0x28(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x28(%rbp)
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movl $0xfffffff7, %ebx       # imm = 0xFFFFFFF7
testq %rax, %rax
je 0x2d470
movq (%rax), %rcx
testq %rcx, %rcx
je 0x2d470
cmpb $0x0, (%rcx)
je 0x2d470
cmpq $0x0, 0x50(%rax)
je 0x2d470
cmpq $0x0, 0xa0(%rax)
je 0x2d470
cmpq $0x0, 0x90(%rax)
je 0x2d470
cmpq $0x0, 0x98(%rax)
je 0x2d470
cmpq $0x0, 0x88(%rax)
je 0x2d470
cmpl $0x8, 0x8(%rax)
jl 0x2d470
leaq 0x66fa1(%rip), %rdi     # 0x94790
leaq -0x38(%rbp), %rsi
callq 0x33094
jmp 0x2d724
xorl %ebx, %ebx
movl $0xb8, %edx
xorl %esi, %esi
callq 0xc360
movq %r15, 0x66ece(%rip)     # 0x946e0
movq %r14, 0x66ecf(%rip)     # 0x946e8
leaq 0x63420(%rip), %rax     # 0x90c40
movq %rax, 0x66ea1(%rip)     # 0x946c8
jmp 0x2d470
movq -0x28(%rbp), %rax
leaq 0x8(%rax), %rdx
movq %rdx, -0x28(%rbp)
movq (%rax), %rax
movq %rcx, 0x66e9e(%rip)     # 0x946e0
movq %rax, 0x66e9f(%rip)     # 0x946e8
xorl %ebx, %ebx
jmp 0x2d470
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x2d85b
callq *%rax
movl $0xffffffe8, %ebx       # imm = 0xFFFFFFE8
jmp 0x2d470