LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqlite_vm_dump
int unqlite_vm_dump(unqlite_vm *pVm, int (*xConsumer)(const void *, unsigned int, void *), void *pUserData)
{
	int rc;
	if( UNQLITE_VM_MISUSE(pVm) ){
		return UNQLITE_CORRUPT;
	}
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Acquire VM mutex */
	 SyMutexEnter(sUnqlMPGlobal.pMutexMethods, pVm->pMutex); /* NO-OP if sUnqlMPGlobal.nThreadingLevel != UNQLITE_THREAD_LEVEL_MULTI */
	 if( sUnqlMPGlobal.nThreadingLevel > UNQLITE_THREAD_LEVEL_SINGLE && 
		 UNQLITE_THRD_VM_RELEASE(pVm) ){
			 return UNQLITE_ABORT; /* Another thread have released this instance */
	 }
#endif
	/* Dump the Jx9 VM */
	 rc = jx9VmDump(pVm->pJx9Vm,xConsumer,pUserData);
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Leave DB mutex */
	 SyMutexLeave(sUnqlMPGlobal.pMutexMethods,pVm->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
pushq %rax
pushq $-0x18
popq %r12
testq %rdi, %rdi
je 0x28d64
movq %rdi, %rbx
cmpl $0xdead2bad, 0xf8(%rdi) # imm = 0xDEAD2BAD
je 0x28d64
movq %rdx, %r14
movq %rsi, %r15
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x28c9e
movq 0x5eafd(%rip), %rax     # 0x87798
callq *0x20(%rax)
cmpl $0x2, 0x5eb03(%rip)     # 0x877a8
jb 0x28cbc
cmpl $0xdead2bad, 0xf8(%rbx) # imm = 0xDEAD2BAD
jne 0x28cbc
pushq $-0xa
popq %r12
jmp 0x28d64
movq %rbx, -0x30(%rbp)
movq 0xe0(%rbx), %rax
movq 0xf0(%rax), %rax
movq 0x8(%rax), %r13
movl 0x10(%rax), %eax
imulq $0x18, %rax, %r12
addq %r13, %r12
leaq 0x3a5cd(%rip), %rdi     # 0x632b0
movl $0xd4, %esi
movq %r14, %rdx
callq *%r15
xorl %ebx, %ebx
cmpq %r12, %r13
jae 0x28d42
movb (%r13), %al
decb %al
leaq 0x3ec80(%rip), %rcx     # 0x67982
cmpb $0x44, %al
ja 0x28d17
movzbl %al, %eax
leaq 0x3a678(%rip), %rdx     # 0x63388
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
movl 0x4(%r13), %r8d
movl 0x8(%r13), %r9d
movl 0x10(%r13), %edx
movq %r15, %rdi
movq %r14, %rsi
xorl %eax, %eax
pushq %rbx
pushq %rdx
callq 0x57531
addq $0x10, %rsp
testl %eax, %eax
jne 0x28d47
incl %ebx
addq $0x18, %r13
jmp 0x28cf0
xorl %r12d, %r12d
jmp 0x28d4a
movl %eax, %r12d
movq -0x30(%rbp), %rax
movq 0xc0(%rax), %rdi
testq %rdi, %rdi
je 0x28d64
movq 0x5ea37(%rip), %rax     # 0x87798
callq *0x30(%rax)
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqlite_vm_extract_variable
unqlite_value * unqlite_vm_extract_variable(unqlite_vm *pVm,const char *zVarname)
{
	unqlite_value *pValue;
	SyString sVariable;
	if( UNQLITE_VM_MISUSE(pVm) ){
		return 0;
	}
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Acquire VM mutex */
	 SyMutexEnter(sUnqlMPGlobal.pMutexMethods, pVm->pMutex); /* NO-OP if sUnqlMPGlobal.nThreadingLevel != UNQLITE_THREAD_LEVEL_MULTI */
	 if( sUnqlMPGlobal.nThreadingLevel > UNQLITE_THREAD_LEVEL_SINGLE && 
		 UNQLITE_THRD_VM_RELEASE(pVm) ){
			 return 0; /* Another thread have released this instance */
	 }
#endif
	 /* Extract the target variable */
	SyStringInitFromBuf(&sVariable,zVarname,SyStrlen(zVarname));
	pValue = jx9VmExtractVariable(pVm->pJx9Vm,&sVariable);
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Leave DB mutex */
	 SyMutexLeave(sUnqlMPGlobal.pMutexMethods,pVm->pMutex); /* NO-OP if sUnqlMPGlobal.nThreadingLevel != UNQLITE_THREAD_LEVEL_MULTI */
#endif
	return pValue;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x28d95
movq %rdi, %rbx
cmpl $0xdead2bad, 0xf8(%rdi) # imm = 0xDEAD2BAD
jne 0x28da4
xorl %r14d, %r14d
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rsi, %r14
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x28dbd
movq 0x5e9de(%rip), %rax     # 0x87798
callq *0x20(%rax)
cmpl $0x2, 0x5e9e4(%rip)     # 0x877a8
jb 0x28dd2
cmpl $0xdead2bad, 0xf8(%rbx) # imm = 0xDEAD2BAD
je 0x28d95
movq %r14, -0x20(%rbp)
movq %r14, %rdi
callq 0x28e24
movl %eax, -0x18(%rbp)
movq 0xe0(%rbx), %rdi
cmpl $0xcdfe1dad, 0x6e8(%rdi) # imm = 0xCDFE1DAD
jne 0x28e06
leaq -0x20(%rbp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x3ae21
movq %rax, %r14
jmp 0x28e09
xorl %r14d, %r14d
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x28d98
movq 0x5e97c(%rip), %rax     # 0x87798
callq *0x30(%rax)
jmp 0x28d98
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: SyStrlen
JX9_PRIVATE sxu32 SyStrlen(const char *zSrc)
{
	register const char *zIn = zSrc;
#if defined(UNTRUST)
	if( zIn == 0 ){
		return 0;
	}
#endif
	for(;;){
		if( !zIn[0] ){ break; } zIn++;
		if( !zIn[0] ){ break; } zIn++;
		if( !zIn[0] ){ break; } zIn++;
		if( !zIn[0] ){ break; } zIn++;	
	}
	return (sxu32)(zIn - zSrc);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x3(%rdi), %rax
cmpb $0x0, -0x3(%rax)
je 0x28e49
cmpb $0x0, -0x2(%rax)
je 0x28e4f
cmpb $0x0, -0x1(%rax)
je 0x28e55
cmpb $0x0, (%rax)
je 0x28e58
addq $0x4, %rax
jmp 0x28e2c
addq $-0x3, %rax
jmp 0x28e58
addq $-0x2, %rax
jmp 0x28e58
decq %rax
subl %edi, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqlite_create_function
int unqlite_create_function(unqlite_vm *pVm, const char *zName,int (*xFunc)(unqlite_context *,int,unqlite_value **),void *pUserData)
{
	SyString sName;
	int rc;
	if( UNQLITE_VM_MISUSE(pVm) ){
		return UNQLITE_CORRUPT;
	}
	SyStringInitFromBuf(&sName, zName, SyStrlen(zName));
	/* Remove leading and trailing white spaces */
	SyStringFullTrim(&sName);
	/* Ticket 1433-003: NULL values are not allowed */
	if( sName.nByte < 1 || xFunc == 0 ){
		return UNQLITE_INVALID;
	}
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Acquire VM mutex */
	 SyMutexEnter(sUnqlMPGlobal.pMutexMethods, pVm->pMutex); /* NO-OP if sUnqlMPGlobal.nThreadingLevel != UNQLITE_THREAD_LEVEL_MULTI */
	 if( sUnqlMPGlobal.nThreadingLevel > UNQLITE_THREAD_LEVEL_SINGLE && 
		 UNQLITE_THRD_VM_RELEASE(pVm) ){
			 return UNQLITE_ABORT; /* Another thread have released this instance */
	 }
#endif
	 /* Install the foreign function */
	 rc = jx9VmInstallForeignFunction(pVm->pJx9Vm,&sName,xFunc,pUserData);
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Leave DB mutex */
	 SyMutexLeave(sUnqlMPGlobal.pMutexMethods,pVm->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 $0x28, %rsp
pushq $-0x18
popq %r12
testq %rdi, %rdi
je 0x28e82
cmpl $0xdead2bad, 0xf8(%rdi) # imm = 0xDEAD2BAD
jne 0x28e94
movl %r12d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %r13
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq %rdi, -0x40(%rbp)
movq %rsi, %rdi
callq 0x28e24
movl %eax, %r14d
leaq (%r14,%r13), %r15
testl %r14d, %r14d
je 0x28edc
movsbq (%r13), %rbx
cmpq $-0x41, %rbx
ja 0x28ed9
callq 0xc190
movq (%rax), %rax
testb $0x20, 0x1(%rax,%rbx,2)
je 0x28ed9
incq %r13
decq %r14
jmp 0x28eb2
movq %r13, %r15
movq %r15, -0x50(%rbp)
movl %r14d, -0x48(%rbp)
pushq $-0x9
popq %r12
movq %r14, %r13
subq $0x1, %r14
jb 0x28e82
movsbq -0x1(%r15,%r13), %rbx
cmpq $-0x41, %rbx
ja 0x28f0c
callq 0xc190
movq (%rax), %rax
testb $0x20, 0x1(%rax,%rbx,2)
jne 0x28ee8
movl %r13d, -0x48(%rbp)
movq -0x30(%rbp), %r15
testq %r15, %r15
movq -0x40(%rbp), %rbx
movq -0x38(%rbp), %r14
je 0x28e82
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x28f3b
movq 0x5e860(%rip), %rax     # 0x87798
callq *0x20(%rax)
cmpl $0x2, 0x5e866(%rip)     # 0x877a8
jb 0x28f59
cmpl $0xdead2bad, 0xf8(%rbx) # imm = 0xDEAD2BAD
jne 0x28f59
pushq $-0xa
popq %r12
jmp 0x28e82
movq 0xe0(%rbx), %rdi
leaq -0x50(%rbp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x28f91
movl %eax, %r12d
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x28e82
movq 0x5e80f(%rip), %rax     # 0x87798
callq *0x30(%rax)
jmp 0x28e82
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9VmInstallForeignFunction
JX9_PRIVATE sxi32 jx9VmInstallForeignFunction(
	jx9_vm *pVm,              /* Target VM */
	const SyString *pName,    /* Foreign function name */
	ProcHostFunction xFunc,  /* Foreign function implementation */
	void *pUserData           /* Foreign function private data */
	)
{
	jx9_user_func *pFunc;
	SyHashEntry *pEntry;
	sxi32 rc;
	/* Overwrite any previously registered function with the same name */
	pEntry = SyHashGet(&pVm->hHostFunction, pName->zString, pName->nByte);
	if( pEntry ){
		pFunc = (jx9_user_func *)pEntry->pUserData;
		pFunc->pUserData = pUserData;
		pFunc->xFunc = xFunc;
		SySetReset(&pFunc->aAux);
		return SXRET_OK;
	}
	/* Create a new user function */
	rc = jx9NewForeignFunction(&(*pVm), &(*pName), xFunc, pUserData, &pFunc);
	if( rc != SXRET_OK ){
		return rc;
	}
	/* Install the function in the corresponding hashtable */
	rc = SyHashInsert(&pVm->hHostFunction, SyStringData(&pFunc->sName), pName->nByte, pFunc);
	if( rc != SXRET_OK ){
		SyMemBackendFree(&pVm->sAllocator, (void *)SyStringData(&pFunc->sName));
		SyMemBackendPoolFree(&pVm->sAllocator, pFunc);
		return rc;
	}
	/* User function successfully installed */
	return SXRET_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x2c8(%rdi), %r13
movq (%rsi), %rsi
movl 0x8(%r12), %edx
movq %r13, %rdi
callq 0x3ae09
testq %rax, %rax
je 0x28fe5
movq 0x10(%rax), %rax
movq %r15, 0x20(%rax)
movq %r14, 0x18(%rax)
andl $0x0, 0x38(%rax)
andl $0x0, 0x44(%rax)
xorl %eax, %eax
jmp 0x2908e
movq %r15, -0x38(%rbp)
pushq $0x50
popq %rsi
movq %rbx, %rdi
callq 0x279f7
movq %rax, %r15
pushq $-0x1
popq %rax
testq %r15, %r15
je 0x2908e
movq (%r12), %rsi
movl 0x8(%r12), %edx
movq %rbx, %rdi
callq 0x35732
testq %rax, %rax
je 0x29080
pushq $0x50
popq %rsi
movq %r15, %rdi
movq %rax, -0x30(%rbp)
callq 0x27aea
movq -0x30(%rbp), %rsi
movq %rsi, 0x8(%r15)
movl 0x8(%r12), %edx
movl %edx, 0x10(%r15)
movq %rbx, (%r15)
movq %r14, 0x18(%r15)
movq -0x38(%rbp), %rax
movq %rax, 0x20(%r15)
movq $0x8, 0x40(%r15)
movq %rbx, 0x28(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r15)
andq $0x0, 0x48(%r15)
movq %r13, %rdi
movq %r15, %rcx
callq 0x3b67d
testl %eax, %eax
je 0x28fde
movq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0x2d420
movq %rbx, %rdi
movq %r15, %rsi
callq 0x27bf8
pushq $-0x1
popq %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqlite_delete_function
int unqlite_delete_function(unqlite_vm *pVm, const char *zName)
{
	int rc;
	if( UNQLITE_VM_MISUSE(pVm) ){
		return UNQLITE_CORRUPT;
	}
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Acquire VM mutex */
	 SyMutexEnter(sUnqlMPGlobal.pMutexMethods, pVm->pMutex); /* NO-OP if sUnqlMPGlobal.nThreadingLevel != UNQLITE_THREAD_LEVEL_MULTI */
	 if( sUnqlMPGlobal.nThreadingLevel > UNQLITE_THREAD_LEVEL_SINGLE && 
		 UNQLITE_THRD_VM_RELEASE(pVm) ){
			 return UNQLITE_ABORT; /* Another thread have released this instance */
	 }
#endif
	 /* Unlink the foreign function */
	 rc = jx9DeleteFunction(pVm->pJx9Vm,zName);
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Leave DB mutex */
	 SyMutexLeave(sUnqlMPGlobal.pMutexMethods,pVm->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
pushq %rax
pushq $-0x18
popq %r14
testq %rdi, %rdi
je 0x29174
movq %rdi, %rbx
cmpl $0xdead2bad, 0xf8(%rdi) # imm = 0xDEAD2BAD
je 0x29174
movq %rsi, %r15
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x290e4
movq 0x5e6b7(%rip), %rax     # 0x87798
callq *0x20(%rax)
cmpl $0x2, 0x5e6bd(%rip)     # 0x877a8
jb 0x290ff
cmpl $0xdead2bad, 0xf8(%rbx) # imm = 0xDEAD2BAD
jne 0x290ff
pushq $-0xa
popq %r14
jmp 0x29174
movq 0xe0(%rbx), %r12
leaq -0x30(%rbp), %r14
andq $0x0, (%r14)
leaq 0x2c8(%r12), %r13
movq %r15, %rdi
callq 0x28e24
movq %r13, %rdi
movq %r15, %rsi
movl %eax, %edx
movq %r14, %rcx
callq 0x56a55
movl %eax, %r14d
testl %eax, %eax
jne 0x2915e
movq -0x30(%rbp), %rdi
addq $0x28, %rdi
callq 0x31feb
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rsi
movq %r12, %rdi
callq 0x2d420
movq -0x30(%rbp), %rsi
movq %r12, %rdi
callq 0x27bf8
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x29174
movq 0x5e627(%rip), %rax     # 0x87798
callq *0x30(%rax)
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqlite_create_constant
int unqlite_create_constant(unqlite_vm *pVm,const char *zName,void (*xExpand)(unqlite_value *, void *),void *pUserData)
{
	SyString sName;
	int rc;
	if( UNQLITE_VM_MISUSE(pVm) ){
		return UNQLITE_CORRUPT;
	}
	SyStringInitFromBuf(&sName, zName, SyStrlen(zName));
	/* Remove leading and trailing white spaces */
	SyStringFullTrim(&sName);
	if( sName.nByte < 1 ){
		/* Empty constant name */
		return UNQLITE_INVALID;
	}
	/* TICKET 1433-003: NULL pointer is harmless operation */
	if( xExpand == 0 ){
		return UNQLITE_INVALID;
	}
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Acquire VM mutex */
	 SyMutexEnter(sUnqlMPGlobal.pMutexMethods, pVm->pMutex); /* NO-OP if sUnqlMPGlobal.nThreadingLevel != UNQLITE_THREAD_LEVEL_MULTI */
	 if( sUnqlMPGlobal.nThreadingLevel > UNQLITE_THREAD_LEVEL_SINGLE && 
		 UNQLITE_THRD_VM_RELEASE(pVm) ){
			 return UNQLITE_ABORT; /* Another thread have released this instance */
	 }
#endif
	 /* Install the foreign constant */
	 rc = jx9VmRegisterConstant(pVm->pJx9Vm,&sName,xExpand,pUserData);
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Leave DB mutex */
	 SyMutexLeave(sUnqlMPGlobal.pMutexMethods,pVm->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 $0x28, %rsp
pushq $-0x18
popq %r12
testq %rdi, %rdi
je 0x291ac
cmpl $0xdead2bad, 0xf8(%rdi) # imm = 0xDEAD2BAD
jne 0x291be
movl %r12d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %r13
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq %rdi, -0x40(%rbp)
movq %rsi, %rdi
callq 0x28e24
movl %eax, %r14d
leaq (%r14,%r13), %r15
testl %r14d, %r14d
je 0x29206
movsbq (%r13), %rbx
cmpq $-0x41, %rbx
ja 0x29203
callq 0xc190
movq (%rax), %rax
testb $0x20, 0x1(%rax,%rbx,2)
je 0x29203
incq %r13
decq %r14
jmp 0x291dc
movq %r13, %r15
movq %r15, -0x50(%rbp)
movl %r14d, -0x48(%rbp)
pushq $-0x9
popq %r12
movq %r14, %r13
subq $0x1, %r14
jb 0x291ac
movsbq -0x1(%r15,%r13), %rbx
cmpq $-0x41, %rbx
ja 0x29236
callq 0xc190
movq (%rax), %rax
testb $0x20, 0x1(%rax,%rbx,2)
jne 0x29212
movl %r13d, -0x48(%rbp)
movq -0x30(%rbp), %r15
testq %r15, %r15
movq -0x40(%rbp), %rbx
movq -0x38(%rbp), %r14
je 0x291ac
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x29265
movq 0x5e536(%rip), %rax     # 0x87798
callq *0x20(%rax)
cmpl $0x2, 0x5e53c(%rip)     # 0x877a8
jb 0x29283
cmpl $0xdead2bad, 0xf8(%rbx) # imm = 0xDEAD2BAD
jne 0x29283
pushq $-0xa
popq %r12
jmp 0x291ac
movq 0xe0(%rbx), %rdi
leaq -0x50(%rbp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x292bb
movl %eax, %r12d
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x291ac
movq 0x5e4e5(%rip), %rax     # 0x87798
callq *0x30(%rax)
jmp 0x291ac
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9VmRegisterConstant
JX9_PRIVATE sxi32 jx9VmRegisterConstant(
	jx9_vm *pVm,            /* Target VM */
	const SyString *pName,  /* Constant name */
	ProcConstant xExpand,   /* Constant expansion callback */
	void *pUserData         /* Last argument to xExpand() */
	)
{
	jx9_constant *pCons;
	SyHashEntry *pEntry;
	char *zDupName;
	sxi32 rc;
	pEntry = SyHashGet(&pVm->hConstant, (const void *)pName->zString, pName->nByte);
	if( pEntry ){
		/* Overwrite the old definition and return immediately */
		pCons = (jx9_constant *)pEntry->pUserData;
		pCons->xExpand = xExpand;
		pCons->pUserData = pUserData;
		return SXRET_OK;
	}
	/* Allocate a new constant instance */
	pCons = (jx9_constant *)SyMemBackendPoolAlloc(&pVm->sAllocator, sizeof(jx9_constant));
	if( pCons == 0 ){
		return 0;
	}
	/* Duplicate constant name */
	zDupName = SyMemBackendStrDup(&pVm->sAllocator, pName->zString, pName->nByte);
	if( zDupName == 0 ){
		SyMemBackendPoolFree(&pVm->sAllocator, pCons);
		return 0;
	}
	/* Install the constant */
	SyStringInitFromBuf(&pCons->sName, zDupName, pName->nByte);
	pCons->xExpand = xExpand;
	pCons->pUserData = pUserData;
	rc = SyHashInsert(&pVm->hConstant, (const void *)zDupName, SyStringLength(&pCons->sName), pCons);
	if( rc != SXRET_OK ){
		SyMemBackendFree(&pVm->sAllocator, zDupName);
		SyMemBackendPoolFree(&pVm->sAllocator, pCons);
		return rc;
	}
	/* All done, constant can be invoked from JX9 code */
	return SXRET_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x288(%rdi), %r13
movq (%rsi), %rsi
movl 0x8(%r15), %edx
movq %r13, %rdi
callq 0x3ae09
testq %rax, %rax
je 0x29314
movq 0x10(%rax), %rax
movq %r12, 0x10(%rax)
movq %r14, 0x18(%rax)
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, -0x38(%rbp)
pushq $0x20
popq %rsi
movq %rbx, %rdi
callq 0x279f7
xorl %r14d, %r14d
testq %rax, %rax
je 0x29302
movq %rax, -0x30(%rbp)
movq (%r15), %rsi
movl 0x8(%r15), %edx
movq %rbx, %rdi
callq 0x35732
testq %rax, %rax
je 0x29398
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl 0x8(%r15), %edx
movl %edx, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %rax, %r12
movq -0x38(%rbp), %rax
movq %rax, 0x18(%r12)
movq %r13, %rdi
movq %rcx, %r15
movq %rcx, %rsi
movq %r12, %rcx
callq 0x3b67d
testl %eax, %eax
je 0x29302
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2d420
movq %rbx, %rdi
movq %r12, %rsi
callq 0x27bf8
pushq $-0x1
popq %r14
jmp 0x29302
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
callq 0x27bf8
jmp 0x29302
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_value_int
JX9_PRIVATE int jx9_value_int(jx9_value *pVal, int iValue)
{
	/* Invalidate any prior representation */
	jx9MemObjRelease(pVal);
	pVal->x.iVal = (jx9_int64)iValue;
	MemObjSetType(pVal, MEMOBJ_INT);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
callq 0x296af
movslq %ebx, %rax
movq %rax, (%r14)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%r14), %eax
orl $0x2, %eax
movl %eax, 0x8(%r14)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_value_int64
JX9_PRIVATE int jx9_value_int64(jx9_value *pVal, jx9_int64 iValue)
{
	/* Invalidate any prior representation */
	jx9MemObjRelease(pVal);
	pVal->x.iVal = iValue;
	MemObjSetType(pVal, MEMOBJ_INT);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x296af
movq %rbx, (%r14)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%r14), %eax
orl $0x2, %eax
movl %eax, 0x8(%r14)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_value_bool
JX9_PRIVATE int jx9_value_bool(jx9_value *pVal, int iBool)
{
	/* Invalidate any prior representation */
	jx9MemObjRelease(pVal);
	pVal->x.iVal = iBool ? 1 : 0;
	MemObjSetType(pVal, MEMOBJ_BOOL);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
callq 0x296af
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movq %rax, (%r14)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%r14), %eax
orl $0x8, %eax
movl %eax, 0x8(%r14)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_value_double
JX9_PRIVATE int jx9_value_double(jx9_value *pVal, double Value)
{
	/* Invalidate any prior representation */
	jx9MemObjRelease(pVal);
	pVal->x.rVal = (jx9_real)Value;
	MemObjSetType(pVal, MEMOBJ_REAL);
	/* Try to get an integer representation also */
	jx9MemObjTryInteger(pVal);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movsd %xmm0, -0x10(%rbp)
movq %rdi, %rbx
callq 0x296af
movsd -0x10(%rbp), %xmm0
movsd %xmm0, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl $0x4, %eax
movl %eax, 0x8(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x3b0fa
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_value_string
JX9_PRIVATE int jx9_value_string(jx9_value *pVal, const char *zString, int nLen)
{
	if((pVal->iFlags & MEMOBJ_STRING) == 0 ){
		/* Invalidate any prior representation */
		jx9MemObjRelease(pVal);
		MemObjSetType(pVal, MEMOBJ_STRING);
	}
	if( zString ){
		if( nLen < 0 ){
			/* Compute length automatically */
			nLen = (int)SyStrlen(zString);
		}
		SyBlobAppend(&pVal->sBlob, (const void *)zString, (sxu32)nLen);
	}
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, %r14
testb $0x1, 0x8(%rdi)
jne 0x295b8
movq %r14, %rdi
callq 0x296af
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
testq %rbx, %rbx
je 0x295e9
testl %r15d, %r15d
jns 0x295cd
movq %rbx, %rdi
callq 0x28e24
movl %eax, %r15d
addq $0x18, %r14
movq %r14, %rdi
movq %rbx, %rsi
movl %r15d, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2e250
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqlite_value_string_format
int unqlite_value_string_format(unqlite_value *pVal, const char *zFormat,...)
{
	va_list ap;
	int rc;
	if((pVal->iFlags & MEMOBJ_STRING) == 0 ){
		/* Invalidate any prior representation */
		jx9MemObjRelease(pVal);
		MemObjSetType(pVal, MEMOBJ_STRING);
	}
	va_start(ap, zFormat);
	rc = SyBlobFormatAp(&pVal->sBlob, zFormat, ap);
	va_end(ap);
	return UNQLITE_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, -0xd0(%rbp)
movq %rcx, -0xc8(%rbp)
movq %r8, -0xc0(%rbp)
movq %r9, -0xb8(%rbp)
testb %al, %al
je 0x29651
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
testb $0x1, 0x8(%rdi)
jne 0x2966e
movq %r14, %rdi
callq 0x296af
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
leaq -0xe0(%rbp), %rax
leaq -0x30(%rbp), %rdx
movq %rax, 0x10(%rdx)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
addq $0x18, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x296e2
xorl %eax, %eax
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9MemObjRelease
JX9_PRIVATE sxi32 jx9MemObjRelease(jx9_value *pObj)
{
	if( (pObj->iFlags & MEMOBJ_NULL) == 0 ){
		if( pObj->iFlags & MEMOBJ_HASHMAP ){
			jx9HashmapUnref((jx9_hashmap *)pObj->x.pOther);
		}
		/* Release the internal buffer */
		SyBlobRelease(&pObj->sBlob);
		/* Invalidate any prior representation */
		pObj->iFlags = MEMOBJ_NULL;
	}
	return SXRET_OK;
}

// Assembly:
movl 0x8(%rdi), %eax
testb $0x20, %al
jne 0x296e1
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
testb $0x40, %al
je 0x296cb
movq (%rbx), %rdi
callq 0x35e9a
leaq 0x18(%rbx), %rdi
callq 0x2a72f
movl $0x20, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_value_resource
JX9_PRIVATE int jx9_value_resource(jx9_value *pVal, void *pUserData)
{
	/* Invalidate any prior representation */
	jx9MemObjRelease(pVal);
	/* Reflect the new type */
	pVal->x.pOther = pUserData;
	MemObjSetType(pVal, MEMOBJ_RES);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x296af
movq %rbx, (%r14)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%r14), %eax
orl $0x100, %eax            # imm = 0x100
movl %eax, 0x8(%r14)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_value_to_string
JX9_PRIVATE const char * jx9_value_to_string(jx9_value *pValue, int *pLen)
{
	jx9MemObjToString(pValue);
	if( SyBlobLength(&pValue->sBlob) > 0 ){
		SyBlobNullAppend(&pValue->sBlob);
		if( pLen ){
			*pLen = (int)SyBlobLength(&pValue->sBlob);
		}
		return (const char *)SyBlobData(&pValue->sBlob);
	}else{
		/* Return the empty string */
		if( pLen ){
			*pLen = 0;
		}
		return "";
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x36bcf
cmpl $0x0, 0x28(%r14)
je 0x29820
leaq 0x18(%r14), %rdi
callq 0x34133
testq %rbx, %rbx
je 0x2981a
movl 0x28(%r14), %eax
movl %eax, (%rbx)
movq 0x20(%r14), %rax
jmp 0x2982f
leaq 0x3de2b(%rip), %rax     # 0x67652
testq %rbx, %rbx
je 0x2982f
andl $0x0, (%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqlite_result_string_format
int unqlite_result_string_format(unqlite_context *pCtx, const char *zFormat, ...)
{
	jx9_value *p;
	va_list ap;
	int rc;
	p = pCtx->pRet;
	if( (p->iFlags & MEMOBJ_STRING) == 0 ){
		/* Invalidate any prior representation */
		jx9MemObjRelease(p);
		MemObjSetType(p, MEMOBJ_STRING);
	}
	/* Format the given string */
	va_start(ap, zFormat);
	rc = SyBlobFormatAp(&p->sBlob, zFormat, ap);
	va_end(ap);
	return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rsi, %rbx
movq %rdx, -0xd0(%rbp)
movq %rcx, -0xc8(%rbp)
movq %r8, -0xc0(%rbp)
movq %r9, -0xb8(%rbp)
testb %al, %al
je 0x2996b
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
movq 0x8(%rdi), %r14
testb $0x1, 0x8(%r14)
jne 0x2998d
movq %r14, %rdi
callq 0x296af
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%r14), %eax
incl %eax
movl %eax, 0x8(%r14)
leaq -0xe0(%rbp), %rax
leaq -0x30(%rbp), %rdx
movq %rax, 0x10(%rdx)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
addq $0x18, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x296e2
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_result_value
JX9_PRIVATE int jx9_result_value(jx9_context *pCtx, jx9_value *pValue)
{
	int rc = JX9_OK;
	if( pValue == 0 ){
		jx9MemObjRelease(pCtx->pRet);
	}else{
		rc = jx9MemObjStore(pValue, pCtx->pRet);
	}
	return rc;
}

// Assembly:
movq %rsi, %rax
movq 0x8(%rdi), %rsi
testq %rax, %rax
je 0x299e7
movq %rax, %rdi
jmp 0x35ceb
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rdi
callq 0x296af
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_value_is_numeric
JX9_PRIVATE sxi32 jx9MemObjIsNumeric(jx9_value *pObj)
{
	if( pObj->iFlags & ( MEMOBJ_BOOL|MEMOBJ_INT|MEMOBJ_REAL) ){
		return TRUE;
	}else if( pObj->iFlags & (MEMOBJ_NULL|MEMOBJ_HASHMAP|MEMOBJ_RES) ){
		return FALSE;
	}else if( pObj->iFlags & MEMOBJ_STRING ){
		SyString sStr;
		sxi32 rc;
		SyStringInitFromBuf(&sStr, SyBlobData(&pObj->sBlob), SyBlobLength(&pObj->sBlob));
		if( sStr.nByte <= 0 ){
			/* Empty string */
			return FALSE;
		}
		/* Check if the string representation looks like a numeric number */
		rc = SyStrIsNumeric(sStr.zString, sStr.nByte, 0, 0);
		return rc == SXRET_OK ? TRUE : FALSE;
	}
	/* NOT REACHED */
	return FALSE;
}

// Assembly:
movl 0x8(%rdi), %ecx
testb $0xe, %cl
je 0x29a6c
pushq $0x1
popq %rax
retq
andl $0x161, %ecx            # imm = 0x161
xorl %eax, %eax
cmpl $0x1, %ecx
jne 0x29a99
movl 0x28(%rdi), %esi
testl %esi, %esi
je 0x29a99
pushq %rbp
movq %rsp, %rbp
movq 0x20(%rdi), %rdi
xorl %edx, %edx
callq 0x3b812
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
sete %al
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqlite_array_fetch
JX9_PRIVATE jx9_value * jx9_array_fetch(jx9_value *pArray, const char *zKey, int nByte)
{
	jx9_hashmap_node *pNode;
	jx9_value *pValue;
	jx9_value skey;
	int rc;
	/* Make sure we are dealing with a valid hashmap */
	if( (pArray->iFlags & MEMOBJ_HASHMAP) == 0 ){
		return 0;
	}
	if( nByte < 0 ){
		nByte = (int)SyStrlen(zKey);
	}
	/* Convert the key to a jx9_value  */
	jx9MemObjInit(pArray->pVm, &skey);
	jx9MemObjStringAppend(&skey, zKey, (sxu32)nByte);
	/* Perform the lookup */
	rc = jx9HashmapLookup((jx9_hashmap *)pArray->x.pOther, &skey, &pNode);
	jx9MemObjRelease(&skey);
	if( rc != JX9_OK ){
		/* No such entry */
		return 0;
	}
	/* Extract the target value */
	pValue = (jx9_value *)SySetAt(&pArray->pVm->aMemObj, pNode->nValIdx);
	return pValue;
}

// Assembly:
testb $0x40, 0x8(%rdi)
jne 0x29b81
xorl %eax, %eax
retq
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
testl %edx, %edx
jns 0x29ba8
movq %r14, %rdi
callq 0x28e24
movl %eax, %r15d
movq 0x10(%rbx), %rdi
leaq -0x68(%rbp), %r12
movq %r12, %rsi
callq 0x35772
movq %r12, %rdi
movq %r14, %rsi
movl %r15d, %edx
callq 0x3689a
movq (%rbx), %rdi
leaq -0x28(%rbp), %rdx
movq %r12, %rsi
callq 0x3b028
movl %eax, %r14d
movq %r12, %rdi
callq 0x296af
testl %r14d, %r14d
jne 0x29c08
movq 0x10(%rbx), %rcx
movq -0x28(%rbp), %rax
movl 0x38(%rax), %eax
cmpl %eax, 0x218(%rcx)
jbe 0x29c08
imull 0x220(%rcx), %eax
addq 0x210(%rcx), %rax
jmp 0x29c0a
xorl %eax, %eax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_array_walk
JX9_PRIVATE int jx9_array_walk(jx9_value *pArray, int (*xWalk)(jx9_value *pValue, jx9_value *, void *), void *pUserData)
{
	int rc;
	if( xWalk == 0 ){
		return JX9_CORRUPT;
	}
	/* Make sure we are dealing with a valid hashmap */
	if( (pArray->iFlags & MEMOBJ_HASHMAP) == 0 ){
		return JX9_CORRUPT;
	}
	/* Start the walk process */
	rc = jx9HashmapWalk((jx9_hashmap *)pArray->x.pOther, xWalk, pUserData);
	return rc != JX9_OK ? JX9_ABORT /* User callback request an operation abort*/ : JX9_OK;
}

// Assembly:
pushq $-0x18
popq %rax
testq %rsi, %rsi
je 0x29c43
testb $0x40, 0x8(%rdi)
je 0x29c43
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rdi
callq 0x46c45
movl %eax, %ecx
testl %eax, %eax
pushq $-0xa
popq %rax
cmovel %ecx, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_array_add_strkey_elem
JX9_PRIVATE int jx9_array_add_strkey_elem(jx9_value *pArray, const char *zKey, jx9_value *pValue)
{
	int rc;
	/* Make sure we are dealing with a valid hashmap */
	if( (pArray->iFlags & MEMOBJ_HASHMAP) == 0 ){
		return JX9_CORRUPT;
	}
	/* Perform the insertion */
	if( SX_EMPTY_STR(zKey) ){
		/* Empty key, assign an automatic index */
		rc = jx9HashmapInsert((jx9_hashmap *)pArray->x.pOther, 0, &(*pValue));
	}else{
		jx9_value sKey;
		jx9MemObjInitFromString(pArray->pVm, &sKey, 0);
		jx9MemObjStringAppend(&sKey, zKey, (sxu32)SyStrlen(zKey));
		rc = jx9HashmapInsert((jx9_hashmap *)pArray->x.pOther, &sKey, &(*pValue));
		jx9MemObjRelease(&sKey);
	}
	return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
testb $0x40, 0x8(%rdi)
jne 0x29c86
pushq $-0x18
popq %rbx
jmp 0x29cd9
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
testq %rsi, %rsi
je 0x29ce8
cmpb $0x0, (%r15)
je 0x29ce8
movq 0x10(%r14), %rdi
leaq -0x60(%rbp), %r12
movq %r12, %rsi
xorl %edx, %edx
callq 0x3bbfe
movq %r15, %rdi
callq 0x28e24
movq %r12, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x3689a
movq (%r14), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x36999
movl %eax, %ebx
movq %r12, %rdi
callq 0x296af
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq (%r14), %rdi
xorl %esi, %esi
movq %rbx, %rdx
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x36999
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqlite_vm_new_scalar
unqlite_value * unqlite_vm_new_scalar(unqlite_vm *pVm)
{
	unqlite_value *pValue;
	if( UNQLITE_VM_MISUSE(pVm) ){
		return 0;
	}
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Acquire VM mutex */
	 SyMutexEnter(sUnqlMPGlobal.pMutexMethods, pVm->pMutex); /* NO-OP if sUnqlMPGlobal.nThreadingLevel != UNQLITE_THREAD_LEVEL_MULTI */
	 if( sUnqlMPGlobal.nThreadingLevel > UNQLITE_THREAD_LEVEL_SINGLE && 
		 UNQLITE_THRD_VM_RELEASE(pVm) ){
			 return 0; /* Another thread have released this instance */
	 }
#endif
	 pValue = jx9_new_scalar(pVm->pJx9Vm);
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Leave DB mutex */
	 SyMutexLeave(sUnqlMPGlobal.pMutexMethods,pVm->pMutex); /* NO-OP if sUnqlMPGlobal.nThreadingLevel != UNQLITE_THREAD_LEVEL_MULTI */
#endif
	return pValue;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x29d30
movq %rdi, %rbx
cmpl $0xdead2bad, 0xf8(%rdi) # imm = 0xDEAD2BAD
jne 0x29d3b
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x29d51
movq 0x5da4a(%rip), %rax     # 0x87798
callq *0x20(%rax)
cmpl $0x2, 0x5da50(%rip)     # 0x877a8
jb 0x29d66
cmpl $0xdead2bad, 0xf8(%rbx) # imm = 0xDEAD2BAD
je 0x29d30
movq 0xe0(%rbx), %rdi
callq 0x29d8d
movq %rax, %r14
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x29d33
movq 0x5da10(%rip), %rax     # 0x87798
callq *0x30(%rax)
jmp 0x29d33
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_new_scalar
JX9_PRIVATE jx9_value * jx9_new_scalar(jx9_vm *pVm)
{
	jx9_value *pObj;
	/* Ticket 1433-002: NULL VM is harmless operation */
	if ( JX9_VM_MISUSE(pVm) ){
		return 0;
	}
	/* Allocate a new scalar variable */
	pObj = (jx9_value *)SyMemBackendPoolAlloc(&pVm->sAllocator, sizeof(jx9_value));
	if( pObj == 0 ){
		return 0;
	}
	/* Nullify the new scalar */
	jx9MemObjInit(pVm, pObj);
	return pObj;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x29dc8
movq %rdi, %r14
cmpl $0xdead2bad, 0x6e8(%rdi) # imm = 0xDEAD2BAD
je 0x29dc8
pushq $0x40
popq %rsi
movq %r14, %rdi
callq 0x279f7
testq %rax, %rax
je 0x29dc8
movq %rax, %rbx
movq %r14, %rdi
movq %rax, %rsi
callq 0x35772
jmp 0x29dca
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_new_array
JX9_PRIVATE jx9_value * jx9_new_array(jx9_vm *pVm)
{
	jx9_hashmap *pMap;
	jx9_value *pObj;
	/* Ticket 1433-002: NULL VM is harmless operation */
	if ( JX9_VM_MISUSE(pVm) ){
		return 0;
	}
	/* Create a new hashmap first */
	pMap = jx9NewHashmap(&(*pVm), 0, 0);
	if( pMap == 0 ){
		return 0;
	}
	/* Associate a new jx9_value with this hashmap */
	pObj = (jx9_value *)SyMemBackendPoolAlloc(&pVm->sAllocator, sizeof(jx9_value));
	if( pObj == 0 ){
		jx9HashmapRelease(pMap, TRUE);
		return 0;
	}
	jx9MemObjInitFromArray(pVm, pObj, pMap);
	return pObj;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x29ec0
movq %rdi, %r14
cmpl $0xdead2bad, 0x6e8(%rdi) # imm = 0xDEAD2BAD
je 0x29ec0
movq %r14, %rdi
callq 0x368e4
testq %rax, %rax
je 0x29ec0
movq %rax, %r15
pushq $0x40
popq %rsi
movq %r14, %rdi
callq 0x279f7
testq %rax, %rax
je 0x29eb5
movq %rax, %rbx
pushq $0x40
popq %rsi
movq %rax, %rdi
callq 0x27aea
movq %r14, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movq %r14, 0x18(%rbx)
andl $0x0, 0x30(%rbx)
movl $0x40, 0x8(%rbx)
movq %r15, (%rbx)
jmp 0x29ec2
pushq $0x1
popq %rsi
movq %r15, %rdi
callq 0x35eb6
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqlite_vm_release_value
int unqlite_vm_release_value(unqlite_vm *pVm,unqlite_value *pValue)
{
	int rc;
	if( UNQLITE_VM_MISUSE(pVm) ){
		return UNQLITE_CORRUPT;
	}
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Acquire VM mutex */
	 SyMutexEnter(sUnqlMPGlobal.pMutexMethods, pVm->pMutex); /* NO-OP if sUnqlMPGlobal.nThreadingLevel != UNQLITE_THREAD_LEVEL_MULTI */
	 if( sUnqlMPGlobal.nThreadingLevel > UNQLITE_THREAD_LEVEL_SINGLE && 
		 UNQLITE_THRD_VM_RELEASE(pVm) ){
			 return UNQLITE_ABORT; /* Another thread have released this instance */
	 }
#endif
	 rc = jx9_release_value(pVm->pJx9Vm,pValue);
#if defined(UNQLITE_ENABLE_THREADS)
	 /* Leave DB mutex */
	 SyMutexLeave(sUnqlMPGlobal.pMutexMethods,pVm->pMutex); /* NO-OP if sUnqlMPGlobal.nThreadingLevel != UNQLITE_THREAD_LEVEL_MULTI */
#endif
	return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
pushq $-0x18
popq %r15
testq %rdi, %rdi
je 0x29f4e
movq %rdi, %rbx
cmpl $0xdead2bad, 0xf8(%rdi) # imm = 0xDEAD2BAD
je 0x29f4e
movq %rsi, %r14
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x29f0b
movq 0x5d890(%rip), %rax     # 0x87798
callq *0x20(%rax)
cmpl $0x2, 0x5d896(%rip)     # 0x877a8
jb 0x29f26
cmpl $0xdead2bad, 0xf8(%rbx) # imm = 0xDEAD2BAD
jne 0x29f26
pushq $-0xa
popq %r15
jmp 0x29f4e
movq 0xe0(%rbx), %rdi
movq %r14, %rsi
callq 0x29f5c
movl %eax, %r15d
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x29f4e
movq 0x5d84d(%rip), %rax     # 0x87798
callq *0x30(%rax)
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_release_value
JX9_PRIVATE int jx9_release_value(jx9_vm *pVm, jx9_value *pValue)
{
	/* Ticket 1433-002: NULL VM is a harmless operation */
	if ( JX9_VM_MISUSE(pVm) ){
		return JX9_CORRUPT;
	}
	if( pValue ){
		/* Release the value */
		jx9MemObjRelease(pValue);
		SyMemBackendPoolFree(&pVm->sAllocator, pValue);
	}
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
pushq $-0x18
popq %rbx
testq %rdi, %rdi
je 0x29f9a
movq %rdi, %r15
cmpl $0xdead2bad, 0x6e8(%rdi) # imm = 0xDEAD2BAD
je 0x29f9a
movq %rsi, %r14
xorl %ebx, %ebx
testq %rsi, %rsi
je 0x29f9a
movq %r14, %rdi
callq 0x296af
movq %r15, %rdi
movq %r14, %rsi
callq 0x27bf8
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_context_output
JX9_PRIVATE int jx9_context_output(jx9_context *pCtx, const char *zString, int nLen)
{
	SyString sData;
	int rc;
	if( nLen < 0 ){
		nLen = (int)SyStrlen(zString);
	}
	SyStringInitFromBuf(&sData, zString, nLen);
	rc = jx9VmOutputConsume(pCtx->pVm, &sData);
	return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
testl %edx, %edx
jns 0x29fce
movq %r14, %rdi
callq 0x28e24
movl %eax, %ebx
testl %ebx, %ebx
je 0x29ff2
movq 0x60(%r15), %r15
movq 0x500(%r15), %rdx
movq %r14, %rdi
movl %ebx, %esi
callq *0x4f8(%r15)
addl %ebx, 0x4f4(%r15)
jmp 0x29ff4
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqlite_context_output_format
int unqlite_context_output_format(unqlite_context *pCtx,const char *zFormat, ...)
{
	va_list ap;
	int rc;
	va_start(ap, zFormat);
	rc = jx9VmOutputConsumeAp(pCtx->pVm,zFormat, ap);
	va_end(ap);
	return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xf0, %rsp
leaq -0x100(%rbp), %r10
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0x2a057
movaps %xmm0, -0xd0(%rbp)
movaps %xmm1, -0xc0(%rbp)
movaps %xmm2, -0xb0(%rbp)
movaps %xmm3, -0xa0(%rbp)
movaps %xmm4, -0x90(%rbp)
movaps %xmm5, -0x80(%rbp)
movaps %xmm6, -0x70(%rbp)
movaps %xmm7, -0x60(%rbp)
leaq -0x50(%rbp), %rdx
movq %r10, 0x10(%rdx)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
movq 0x60(%rdi), %r14
xorps %xmm0, %xmm0
leaq -0x30(%rbp), %rbx
movups %xmm0, 0x8(%rbx)
movq %r14, (%rbx)
andl $0x0, 0x18(%rbx)
movq %rbx, %rdi
callq 0x296e2
movl 0x10(%rbx), %esi
testl %esi, %esi
je 0x2a0b2
movq -0x28(%rbp), %rdi
movq 0x500(%r14), %rdx
callq *0x4f8(%r14)
movl %eax, %ebx
movl -0x20(%rbp), %eax
jmp 0x2a0b6
xorl %eax, %eax
xorl %ebx, %ebx
addl %eax, 0x4f4(%r14)
leaq -0x30(%rbp), %rdi
callq 0x2a72f
movl %ebx, %eax
addq $0xf0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: unqlite_context_throw_error_format
int unqlite_context_throw_error_format(unqlite_context *pCtx, int iErr, const char *zFormat, ...)
{
	va_list ap;
	int rc;
	if( zFormat == 0){
		return JX9_OK;
	}
	va_start(ap, zFormat);
	rc = jx9VmThrowErrorAp(pCtx->pVm, &pCtx->pFunc->sName, iErr, zFormat, ap);
	va_end(ap);
	return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdx, %r10
movq %rcx, -0xb8(%rbp)
movq %r8, -0xb0(%rbp)
movq %r9, -0xa8(%rbp)
testb %al, %al
je 0x2a14b
movaps %xmm0, -0xa0(%rbp)
movaps %xmm1, -0x90(%rbp)
movaps %xmm2, -0x80(%rbp)
movaps %xmm3, -0x70(%rbp)
movaps %xmm4, -0x60(%rbp)
movaps %xmm5, -0x50(%rbp)
movaps %xmm6, -0x40(%rbp)
movaps %xmm7, -0x30(%rbp)
testq %rdx, %rdx
je 0x2a18b
movl %esi, %edx
leaq -0xd0(%rbp), %rax
leaq -0x20(%rbp), %r8
movq %rax, 0x10(%r8)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%r8)
movabsq $0x3000000018, %rax     # imm = 0x3000000018
movq %rax, (%r8)
movq (%rdi), %rsi
movq 0x60(%rdi), %rdi
addq $0x8, %rsi
movq %r10, %rcx
callq 0x3b9dc
jmp 0x2a18d
xorl %eax, %eax
addq $0xd0, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_context_new_scalar
JX9_PRIVATE jx9_value * jx9_context_new_scalar(jx9_context *pCtx)
{
	jx9_value *pVal;
	pVal = jx9_new_scalar(pCtx->pVm);
	if( pVal ){
		/* Record value address so it can be freed automatically
		 * when the calling function returns. 
		 */
		SySetPut(&pCtx->sVar, (const void *)&pVal);
	}
	return pVal;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x60(%rdi), %rdi
callq 0x29d8d
movq %rax, %r14
movq %rax, -0x18(%rbp)
testq %rax, %rax
je 0x2a29d
addq $0x10, %rbx
leaq -0x18(%rbp), %rsi
movq %rbx, %rdi
callq 0x2be00
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_context_new_array
JX9_PRIVATE jx9_value * jx9_context_new_array(jx9_context *pCtx)
{
	jx9_value *pVal;
	pVal = jx9_new_array(pCtx->pVm);
	if( pVal ){
		/* Record value address so it can be freed automatically
		 * when the calling function returns. 
		 */
		SySetPut(&pCtx->sVar, (const void *)&pVal);
	}
	return pVal;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x60(%rdi), %rdi
callq 0x29e4a
movq %rax, %r14
movq %rax, -0x18(%rbp)
testq %rax, %rax
je 0x2a2e3
addq $0x10, %rbx
leaq -0x18(%rbp), %rsi
movq %rbx, %rdi
callq 0x2be00
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_context_release_value
JX9_PRIVATE void jx9VmReleaseContextValue(
	jx9_context *pCtx, /* Call context */
	jx9_value *pValue  /* Release this value */
	)
{
	if( pValue == 0 ){
		/* NULL value is a harmless operation */
		return;
	}
	if( SySetUsed(&pCtx->sVar) > 0 ){
		jx9_value **apObj = (jx9_value **)SySetBasePtr(&pCtx->sVar);
		sxu32 n;
		for( n = 0 ; n < SySetUsed(&pCtx->sVar) ; ++n ){
			if( apObj[n] == pValue ){
				jx9MemObjRelease(pValue);
				SyMemBackendPoolFree(&pCtx->pVm->sAllocator, pValue);
				/* Mark as released */
				apObj[n] = 0;
				break;
			}
		}
	}
}

// Assembly:
testq %rsi, %rsi
je 0x2a34e
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
movl 0x20(%rdi), %eax
testq %rax, %rax
je 0x2a346
movq %rsi, %rbx
movq 0x18(%r14), %r15
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x2a346
leaq 0x1(%rcx), %r12
cmpq %rbx, (%r15,%rcx,8)
movq %r12, %rcx
jne 0x2a31a
movq %rbx, %rdi
callq 0x296af
movq 0x60(%r14), %rdi
movq %rbx, %rsi
callq 0x27bf8
andq $0x0, -0x8(%r15,%r12,8)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_context_alloc_chunk
JX9_PRIVATE void * jx9_context_alloc_chunk(jx9_context *pCtx, unsigned int nByte, int ZeroChunk, int AutoRelease)
{
	void *pChunk;
	pChunk = SyMemBackendAlloc(&pCtx->pVm->sAllocator, nByte);
	if( pChunk ){
		if( ZeroChunk ){
			/* Zero the memory chunk */
			SyZero(pChunk, nByte);
		}
		if( AutoRelease ){
			jx9_aux_data sAux;
			/* Track the chunk so that it can be released automatically 
			 * upon this context is destroyed.
			 */
			sAux.pAuxData = pChunk;
			SySetPut(&pCtx->sChunk, (const void *)&sAux);
		}
	}
	return pChunk;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %edx, %r13d
movl %esi, %r12d
movq %rdi, %rbx
movq 0x60(%rdi), %rdi
callq 0x2ca19
movq %rax, %r14
testq %rax, %rax
je 0x2a3a9
testl %r13d, %r13d
je 0x2a391
movq %r14, %rdi
movl %r12d, %esi
callq 0x27aea
testl %r15d, %r15d
je 0x2a3a9
leaq -0x30(%rbp), %rsi
movq %r14, (%rsi)
addq $0x38, %rbx
movq %rbx, %rdi
callq 0x2be00
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9_context_free_chunk
JX9_PRIVATE void jx9_context_free_chunk(jx9_context *pCtx, void *pChunk)
{
	jx9_aux_data *pAux;
	if( pChunk == 0 ){
		/* TICKET-1433-93: NULL chunk is a harmless operation */
		return;
	}
	pAux = ContextFindChunk(pCtx, pChunk);
	if( pAux ){
		/* Mark as destroyed */
		pAux->pAuxData = 0;
	}
	SyMemBackendFree(&pCtx->pVm->sAllocator, pChunk);
}

// Assembly:
testq %rsi, %rsi
je 0x2a434
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x56af2
testq %rax, %rax
je 0x2a424
andq $0x0, (%rax)
movq 0x60(%r14), %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x2d420
retq