LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_get_html_translation_table
static int jx9Builtin_get_html_translation_table(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	jx9_value *pArray, *pValue;
	sxu32 n;
	/* Element value */
	pValue = jx9_context_new_scalar(pCtx);
	if( pValue == 0 ){
		SXUNUSED(nArg); /* cc warning */
		SXUNUSED(apArg);
		/* Return NULL */
		jx9_result_null(pCtx);
		return JX9_OK;
	}
	/* Create a new array */
	pArray = jx9_context_new_array(pCtx);
	if( pArray == 0 ){
		/* Return NULL */
		jx9_result_null(pCtx);
		return JX9_OK;
	}
	/* Make the table */
	for( n = 0 ; n < SX_ARRAYSIZE(azHtmlEscape) ; n += 2 ){
		/* Prepare the value */
		jx9_value_string(pValue, azHtmlEscape[n], -1 /* Compute length automatically */);
		/* Insert the value */
		jx9_array_add_strkey_elem(pArray, azHtmlEscape[n+1], pValue);
		/* Reset the string cursor */
		jx9_value_reset_string_cursor(pValue);
	}
	/* 
	 * Return the array.
	 * Don't worry about freeing memory, everything will be automatically
	 * released upon we return from this function.
	 */
	jx9_result_value(pCtx, pArray);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x317a5
testq %rax, %rax
je 0x561b1
movq %rax, %r14
movq %rbx, %rdi
callq 0x317eb
testq %rax, %rax
je 0x561b1
movq %rax, %r15
movq %rbx, -0x30(%rbp)
movq $-0x2, %r13
leaq 0x3ea67(%rip), %rbx     # 0x94bb0
movq 0x10(%rbx,%r13,8), %rsi
movq 0x18(%rbx,%r13,8), %r12
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x3087c
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x3106a
movl $0x0, 0x28(%r14)
movl 0x30(%r14), %eax
testb $0x4, %al
je 0x56195
movq $0x0, 0x20(%r14)
movl $0x0, 0x2c(%r14)
andl $-0x5, %eax
movl %eax, 0x30(%r14)
addq $0x2, %r13
cmpq $0x26, %r13
jb 0x56149
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rsi
movq %r15, %rdi
callq 0x3ebc8
jmp 0x561ba
movq 0x8(%rbx), %rdi
callq 0x309f2
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_htmlentities
static int jx9Builtin_htmlentities(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	int iFlags = 0x01; /* ENT_COMPAT */
	const char *zIn, *zEnd;
	int nLen, c;
	sxu32 n;
	if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
		/* Missing/Invalid arguments, return NULL */
		jx9_result_null(pCtx);
		return JX9_OK;
	}
	/* Extract the target string */
	zIn = jx9_value_to_string(apArg[0], &nLen);
	zEnd = &zIn[nLen];
	/* Extract the flags if available */
	if( nArg > 1 ){
		iFlags = jx9_value_to_int(apArg[1]);
		if( iFlags < 0 ){
			iFlags = 0x01;
		}
	}
	/* Perform the requested operation */
	for(;;){
		if( zIn >= zEnd ){
			/* No more input to process */
			break;
		}
		c = zIn[0];
		/* Perform a linear lookup on the decoding table */
		for( n = 0 ; n < SX_ARRAYSIZE(azHtmlEscape) ; n += 2 ){
			if( azHtmlEscape[n+1][0] == c ){
				/* Got one */
				break;
			}
		}
		if( n < SX_ARRAYSIZE(azHtmlEscape) ){
			/* Output the safe sequence [i.e: '<' ==> '&lt;"] */
			if( c == '"' && (iFlags & 0x04) /*ENT_NOQUOTES*/ ){
				/* Expand the double quote verbatim */
				jx9_result_string(pCtx, (const char *)&c, (int)sizeof(char));
			}else if(c == '\'' && ((iFlags & 0x02 /*ENT_QUOTES*/) == 0 || (iFlags & 0x04) /*ENT_NOQUOTES*/) ){
				/* expand single quote verbatim */
				jx9_result_string(pCtx, (const char *)&c, (int)sizeof(char));
			}else{
				jx9_result_string(pCtx, azHtmlEscape[n], -1/*Compute length automatically */);
			}
		}else{
			/* Output character verbatim */
			jx9_result_string(pCtx, (const char *)&c, (int)sizeof(char));
		}
		zIn++;
	}
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
testl %esi, %esi
jle 0x561ef
movq %rdx, %r15
movq (%rdx), %rdi
testb $0x1, 0x8(%rdi)
jne 0x56209
movq 0x8(%rbx), %rdi
callq 0x309f2
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %esi, %r12d
leaq -0x38(%rbp), %r13
movq %r13, %rsi
callq 0x30b04
movq %rax, %r14
movslq (%r13), %r13
movl $0x1, %eax
cmpl $0x1, %r12d
je 0x56245
movq 0x8(%r15), %r15
movq %r15, %rdi
callq 0x3fd5f
movl (%r15), %eax
testl %eax, %eax
movl $0x1, %ecx
cmovnsl %eax, %ecx
movl %ecx, %eax
testl %r13d, %r13d
jle 0x561f8
addq %r14, %r13
movl %eax, %ecx
andl $0x6, %ecx
movl %ecx, -0x2c(%rbp)
leaq 0x3e954(%rip), %r12     # 0x94bb0
andl $0x4, %eax
movl %eax, -0x30(%rbp)
leaq -0x34(%rbp), %r15
movsbl (%r14), %ecx
movl %ecx, -0x34(%rbp)
movq $-0x2, %rax
movq 0x18(%r12,%rax,8), %rdx
cmpb (%rdx), %cl
je 0x56289
addq $0x2, %rax
cmpq $0x26, %rax
jb 0x56274
jmp 0x5629f
cmpb $0x22, %cl
jne 0x56294
cmpl $0x0, -0x30(%rbp)
jne 0x5629f
cmpb $0x27, %cl
jne 0x562bd
cmpl $0x2, -0x2c(%rbp)
je 0x562bd
movq 0x8(%rbx), %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x3087c
incq %r14
cmpq %r13, %r14
jb 0x56266
jmp 0x561f8
movq 0x10(%r12,%rax,8), %rsi
movq 0x8(%rbx), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
jmp 0x562ab
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_strlen
static int jx9Builtin_strlen(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	int iLen = 0;
	if( nArg > 0 ){
		jx9_value_to_string(apArg[0], &iLen);
	}
	/* String length */
	jx9_result_int(pCtx, iLen);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x0, -0x14(%rbp)
testl %esi, %esi
jle 0x56504
movq (%rdx), %rdi
leaq -0x14(%rbp), %rsi
callq 0x30b04
movslq -0x14(%rbp), %r14
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq %r14, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl $0x2, %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_strcmp
static int jx9Builtin_strcmp(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	const char *z1, *z2;
	int n1, n2;
	int res;
	if( nArg < 2 ){
		res = nArg == 0 ? 0 : 1;
		jx9_result_int(pCtx, res);
		return JX9_OK;
	}
	/* Perform the comparison */
	z1 = jx9_value_to_string(apArg[0], &n1);
	z2 = jx9_value_to_string(apArg[1], &n2);
	res = SyStrncmp(z1, z2, (sxu32)(SXMAX(n1, n2)));
	/* Comparison result */
	jx9_result_int(pCtx, res);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpl $0x1, %esi
jg 0x56561
xorl %r14d, %r14d
testl %esi, %esi
setne %r14b
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq %r14, (%rbx)
jmp 0x565b1
movq %rdx, %r14
movq (%rdx), %rdi
leaq -0x28(%rbp), %r15
movq %r15, %rsi
callq 0x30b04
movq %rax, %r12
movq 0x8(%r14), %rdi
leaq -0x24(%rbp), %r14
movq %r14, %rsi
callq 0x30b04
movl (%r15), %ecx
movl (%r14), %edx
cmpl %edx, %ecx
cmovgl %ecx, %edx
movq %r12, %rdi
movq %rax, %rsi
callq 0x5b530
movl %eax, %r14d
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movslq %r14d, %rax
movq %rax, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl $0x2, %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_strncmp
static int jx9Builtin_strncmp(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	const char *z1, *z2;
	int res;
	int n;
	if( nArg < 3 ){
		/* Perform a standard comparison */
		return jx9Builtin_strcmp(pCtx, nArg, apArg);
	}
	/* Desired comparison length */
	n  = jx9_value_to_int(apArg[2]);
	if( n < 0 ){
		/* Invalid length */
		jx9_result_int(pCtx, -1);
		return JX9_OK;
	}
	/* Perform the comparison */
	z1 = jx9_value_to_string(apArg[0], 0);
	z2 = jx9_value_to_string(apArg[1], 0);
	res = SyStrncmp(z1, z2, (sxu32)n);
	/* Comparison result */
	jx9_result_int(pCtx, res);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rdi, %rbx
cmpl $0x2, %esi
jg 0x565f1
movq %rbx, %rdi
movq %r14, %rdx
callq 0x56530
jmp 0x56663
movq 0x10(%r14), %r15
movq %r15, %rdi
callq 0x3fd5f
movl (%r15), %r15d
testl %r15d, %r15d
js 0x56642
movq (%r14), %rdi
xorl %esi, %esi
callq 0x30b04
movq %rax, %r12
movq 0x8(%r14), %rdi
xorl %esi, %esi
callq 0x30b04
movq %r12, %rdi
movq %rax, %rsi
movl %r15d, %edx
callq 0x5b530
movl %eax, %r14d
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movslq %r14d, %rax
movq %rax, (%rbx)
jmp 0x56655
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq $-0x1, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl $0x2, %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_strcasecmp
static int jx9Builtin_strcasecmp(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	const char *z1, *z2;
	int n1, n2;
	int res;
	if( nArg < 2 ){
		res = nArg == 0 ? 0 : 1;
		jx9_result_int(pCtx, res);
		return JX9_OK;
	}
	/* Perform the comparison */
	z1 = jx9_value_to_string(apArg[0], &n1);
	z2 = jx9_value_to_string(apArg[1], &n2);
	res = SyStrnicmp(z1, z2, (sxu32)(SXMAX(n1, n2)));
	/* Comparison result */
	jx9_result_int(pCtx, res);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpl $0x1, %esi
jg 0x5669f
xorl %r14d, %r14d
testl %esi, %esi
setne %r14b
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq %r14, (%rbx)
jmp 0x566ef
movq %rdx, %r14
movq (%rdx), %rdi
leaq -0x28(%rbp), %r15
movq %r15, %rsi
callq 0x30b04
movq %rax, %r12
movq 0x8(%r14), %rdi
leaq -0x24(%rbp), %r14
movq %r14, %rsi
callq 0x30b04
movl (%r15), %ecx
movl (%r14), %edx
cmpl %edx, %ecx
cmovgl %ecx, %edx
movq %r12, %rdi
movq %rax, %rsi
callq 0x3a837
movl %eax, %r14d
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movslq %r14d, %rax
movq %rax, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl $0x2, %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_strncasecmp
static int jx9Builtin_strncasecmp(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	const char *z1, *z2;
	int res;
	int n;
	if( nArg < 3 ){
		/* Perform a standard comparison */
		return jx9Builtin_strcasecmp(pCtx, nArg, apArg);
	}
	/* Desired comparison length */
	n  = jx9_value_to_int(apArg[2]);
	if( n < 0 ){
		/* Invalid length */
		jx9_result_int(pCtx, -1);
		return JX9_OK;
	}
	/* Perform the comparison */
	z1 = jx9_value_to_string(apArg[0], 0);
	z2 = jx9_value_to_string(apArg[1], 0);
	res = SyStrnicmp(z1, z2, (sxu32)n);
	/* Comparison result */
	jx9_result_int(pCtx, res);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rdi, %rbx
cmpl $0x2, %esi
jg 0x5672f
movq %rbx, %rdi
movq %r14, %rdx
callq 0x5666e
jmp 0x567a1
movq 0x10(%r14), %r15
movq %r15, %rdi
callq 0x3fd5f
movl (%r15), %r15d
testl %r15d, %r15d
js 0x56780
movq (%r14), %rdi
xorl %esi, %esi
callq 0x30b04
movq %rax, %r12
movq 0x8(%r14), %rdi
xorl %esi, %esi
callq 0x30b04
movq %r12, %rdi
movq %rax, %rsi
movl %r15d, %edx
callq 0x3a837
movl %eax, %r14d
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movslq %r14d, %rax
movq %rax, (%rbx)
jmp 0x56793
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq $-0x1, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl $0x2, %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_implode
static int jx9Builtin_implode(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	struct implode_data imp_data;
	int i = 1;
	if( nArg < 1 ){
		/* Missing argument, return NULL */
		jx9_result_null(pCtx);
		return JX9_OK;
	}
	/* Prepare the implode context */
	imp_data.pCtx = pCtx;
	imp_data.bRecursive = 0;
	imp_data.bFirst = 1;
	imp_data.nRecCount = 0;
	if( !jx9_value_is_json_array(apArg[0]) ){
		imp_data.zSep = jx9_value_to_string(apArg[0], &imp_data.nSeplen);
	}else{
		imp_data.zSep = 0;
		imp_data.nSeplen = 0;
		i = 0;
	}
	jx9_result_string(pCtx, "", 0); /* Set an empty stirng */
	/* Start the 'join' process */
	while( i < nArg ){
		if( jx9_value_is_json_array(apArg[i]) ){
			/* Iterate throw array entries */
			jx9_array_walk(apArg[i], implode_callback, &imp_data);
		}else{
			const char *zData;
			int nLen;
			/* Extract the string representation of the jx9 value */
			zData = jx9_value_to_string(apArg[i], &nLen);
			if( nLen > 0 ){
				if( imp_data.nSeplen > 0 ){
					if( !imp_data.bFirst ){
						/* append the separator first */
						jx9_result_string(pCtx, imp_data.zSep, imp_data.nSeplen);
					}else{
						imp_data.bFirst = 0;
					}
				}
				jx9_result_string(pCtx, zData, nLen);
			}
		}
		i++;
	}
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r14
testl %esi, %esi
jle 0x567ff
movq %rdx, %rbx
movl %esi, %r15d
movq %r14, -0x58(%rbp)
movl $0x0, -0x50(%rbp)
movq $0x1, -0x3c(%rbp)
movq (%rdx), %rdi
testb $0x40, 0x8(%rdi)
jne 0x5680d
leaq -0x40(%rbp), %r12
movq %r12, %rsi
callq 0x30b04
movq %rax, -0x8(%r12)
movl $0x1, %r12d
jmp 0x5681f
movq 0x8(%r14), %rdi
callq 0x309f2
jmp 0x568a7
movq $0x0, -0x48(%rbp)
movl $0x0, -0x40(%rbp)
xorl %r12d, %r12d
movq 0x8(%r14), %rdi
leaq 0x22e3d(%rip), %rsi     # 0x79667
xorl %edx, %edx
callq 0x3087c
cmpl %r15d, %r12d
jge 0x568a7
movl %r12d, %r12d
movl %r15d, %r13d
movq (%rbx,%r12,8), %rdi
testb $0x40, 0x8(%rdi)
jne 0x5686e
leaq -0x2c(%rbp), %rsi
callq 0x30b04
cmpl $0x0, -0x2c(%rbp)
jle 0x5689f
movq %rax, %r15
movl -0x40(%rbp), %edx
testl %edx, %edx
jle 0x56890
cmpl $0x0, -0x3c(%rbp)
je 0x56883
movl $0x0, -0x3c(%rbp)
jmp 0x56890
movq (%rdi), %rdi
leaq 0x5203(%rip), %rsi      # 0x5ba7b
leaq -0x58(%rbp), %rdx
callq 0x52ab1
jmp 0x5689f
movq -0x48(%rbp), %rsi
movq 0x8(%r14), %rdi
callq 0x3087c
movl -0x2c(%rbp), %edx
movq 0x8(%r14), %rdi
movq %r15, %rsi
callq 0x3087c
incq %r12
cmpq %r12, %r13
jne 0x5683c
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_ltrim
static int jx9Builtin_ltrim(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	const char *zString;
	int nLen;
	if( nArg < 1 ){
		/* Missing arguments, return null */
		jx9_result_null(pCtx);
		return JX9_OK;
	}
	/* Extract the target string */
	zString = jx9_value_to_string(apArg[0], &nLen);
	if( nLen < 1 ){
		/* Empty string, return */
		jx9_result_string(pCtx, "", 0);
		return JX9_OK;
	}
	/* Start the trim process */
	if( nArg < 2 ){
		SyString sStr;
		/* Remove white spaces and NUL byte */
		SyStringInitFromBuf(&sStr, zString, nLen);
		SyStringLeftTrimSafe(&sStr);
		jx9_result_string(pCtx, sStr.zString, (int)sStr.nByte);
	}else{
		/* Char list */
		const char *zList;
		int nListlen;
		zList = jx9_value_to_string(apArg[1], &nListlen);
		if( nListlen < 1 ){
			/* Return the string unchanged */
			jx9_result_string(pCtx, zString, nLen);
		}else{
			const char *zEnd = &zString[nLen];
			const char *zCur = zString;
			const char *zPtr;
			int i;
			/* Left trim */
			for(;;){
				if( zCur >= zEnd ){
					break;
				}
				zPtr = zCur;
				for( i = 0 ; i < nListlen ; i++ ){
					if( zCur < zEnd && zCur[0] == zList[i] ){
						zCur++;
					}
				}
				if( zCur == zPtr ){
					/* No match, break immediately */
					break;
				}
			}
			if( zCur >= zEnd ){
				/* Return the empty string */
				jx9_result_string(pCtx, "", 0);
			}else{
				jx9_result_string(pCtx, zCur, (int)(zEnd-zCur));
			}
		}
	}
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testl %esi, %esi
jle 0x56ebf
movq %rdx, %r12
movl %esi, %r13d
movq (%rdx), %rdi
leaq -0x2c(%rbp), %r15
movq %r15, %rsi
callq 0x30b04
movslq (%r15), %r15
testq %r15, %r15
jle 0x56f4c
movq %rax, %r14
cmpl $0x1, %r13d
jne 0x56ecd
movq %r14, %r12
addq %r15, %r12
movsbq (%r14), %r13
cmpq $-0x41, %r13
ja 0x56f22
testb %r13b, %r13b
je 0x56eb2
callq 0xc170
movq (%rax), %rax
testb $0x20, 0x1(%rax,%r13,2)
je 0x56f22
incq %r14
decl %r15d
jne 0x56e8f
xorl %r15d, %r15d
jmp 0x56f25
movq 0x8(%rbx), %rdi
callq 0x309f2
jmp 0x56f5e
movq 0x8(%r12), %rdi
leaq -0x30(%rbp), %r15
movq %r15, %rsi
callq 0x30b04
movslq (%r15), %rdi
movslq -0x2c(%rbp), %rcx
testq %rdi, %rdi
jle 0x56f31
movq %r14, %rdx
addq %rcx, %rdx
cmpq %rdx, %r14
jae 0x56f3c
xorl %ecx, %ecx
movq %r14, %rsi
cmpq %rdx, %rsi
jae 0x56f10
movb (%rsi), %r8b
xorl %r9d, %r9d
cmpb (%rax,%rcx), %r8b
sete %r9b
addq %r9, %rsi
incq %rcx
cmpq %rcx, %rdi
jne 0x56efa
cmpq %r14, %rsi
movq %rsi, %r14
jne 0x56ef0
jmp 0x56f3f
movq %r14, %r12
movq 0x8(%rbx), %rdi
movq %r12, %rsi
movl %r15d, %edx
jmp 0x56f59
movq 0x8(%rbx), %rdi
movq %r14, %rsi
movl %ecx, %edx
jmp 0x56f59
movq %r14, %rsi
cmpq %rdx, %rsi
jae 0x56f4c
subl %esi, %edx
movq 0x8(%rbx), %rdi
jmp 0x56f59
movq 0x8(%rbx), %rdi
leaq 0x22710(%rip), %rsi     # 0x79667
xorl %edx, %edx
callq 0x3087c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_strtolower
static int jx9Builtin_strtolower(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	const char *zString, *zCur, *zEnd;
	int nLen;
	if( nArg < 1 ){
		/* Missing arguments, return null */
		jx9_result_null(pCtx);
		return JX9_OK;
	}
	/* Extract the target string */
	zString = jx9_value_to_string(apArg[0], &nLen);
	if( nLen < 1 ){
		/* Empty string, return */
		jx9_result_string(pCtx, "", 0);
		return JX9_OK;
	}
	/* Perform the requested operation */
	zEnd = &zString[nLen];
	for(;;){
		if( zString >= zEnd ){
			/* No more input, break immediately */
			break;
		}
		if( (unsigned char)zString[0] >= 0xc0 ){
			/* UTF-8 stream, output verbatim */
			zCur = zString;
			zString++;
			while( zString < zEnd && ((unsigned char)zString[0] & 0xc0) == 0x80){
				zString++;
			}
			/* Append UTF-8 stream */
			jx9_result_string(pCtx, zCur, (int)(zString-zCur));
		}else{
			int c = zString[0];
			if( SyisUpper(c) ){
				c = SyToLower(zString[0]);
			}
			/* Append character */
			jx9_result_string(pCtx, (const char *)&c, (int)sizeof(char));
			/* Advance the cursor */
			zString++;
		}
	}
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testl %esi, %esi
jle 0x5702c
movq (%rdx), %rdi
leaq -0x30(%rbp), %r15
movq %r15, %rsi
callq 0x30b04
movslq (%r15), %r12
testq %r12, %r12
jle 0x57037
movq %rax, %r14
addq %rax, %r12
leaq -0x2c(%rbp), %r15
cmpb $-0x40, (%r14)
jb 0x56fe4
movl $0x1, %eax
movq %rax, %rdx
leaq (%r14,%rax), %r13
cmpq %r12, %r13
jae 0x56fd3
movb (%r13), %cl
andb $-0x40, %cl
leaq 0x1(%rdx), %rax
negb %cl
jo 0x56fb8
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0x3087c
movq %r13, %r14
jmp 0x57025
movsbq (%r14), %r13
movl %r13d, -0x2c(%rbp)
callq 0xc170
movq (%rax), %rax
testb $0x1, 0x1(%rax,%r13,2)
je 0x5700e
callq 0xc4a0
movq (%rax), %rax
movsbq (%r14), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x2c(%rbp)
movq 0x8(%rbx), %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x3087c
incq %r14
movq %r14, %r13
cmpq %r12, %r13
jb 0x56fad
jmp 0x57049
movq 0x8(%rbx), %rdi
callq 0x309f2
jmp 0x57049
movq 0x8(%rbx), %rdi
leaq 0x22625(%rip), %rsi     # 0x79667
xorl %edx, %edx
callq 0x3087c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_ord
static int jx9Builtin_ord(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	const char *zString;
	int nLen, c;
	if( nArg < 1 ){
		/* Missing arguments, return -1 */
		jx9_result_int(pCtx, -1);
		return JX9_OK;
	}
	/* Extract the target string */
	zString = jx9_value_to_string(apArg[0], &nLen);
	if( nLen < 1 ){
		/* Empty string, return -1 */
		jx9_result_int(pCtx, -1);
		return JX9_OK;
	}
	/* Extract the ASCII value of the first character */
	c = zString[0];
	/* Return that value */
	jx9_result_int(pCtx, c);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
testl %esi, %esi
jle 0x57181
movq (%rdx), %rdi
leaq -0x14(%rbp), %r14
movq %r14, %rsi
callq 0x30b04
cmpl $0x0, (%r14)
jle 0x57181
movsbq (%rax), %r14
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq %r14, (%rbx)
jmp 0x57194
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq $-0x1, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl $0x2, %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_chr
static int jx9Builtin_chr(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	int c;
	if( nArg < 1 ){
		/* Missing arguments, return null */
		jx9_result_null(pCtx);
		return JX9_OK;
	}
	/* Extract the ASCII value */
	c = jx9_value_to_int(apArg[0]);
	/* Return the specified character */
	jx9_result_string(pCtx, (const char *)&c, (int)sizeof(char));
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
testl %esi, %esi
jle 0x571e3
movq (%rdx), %r14
movq %r14, %rdi
callq 0x3fd5f
movl (%r14), %eax
leaq -0x14(%rbp), %rsi
movl %eax, (%rsi)
movq 0x8(%rbx), %rdi
movl $0x1, %edx
callq 0x3087c
jmp 0x571ec
movq 0x8(%rbx), %rdi
callq 0x309f2
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_bin2hex
static int jx9Builtin_bin2hex(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	const char *zString;
	int nLen;
	if( nArg < 1 ){
		/* Missing arguments, return null */
		jx9_result_null(pCtx);
		return JX9_OK;
	}
	/* Extract the target string */
	zString = jx9_value_to_string(apArg[0], &nLen);
	if( nLen < 1 ){
		/* Empty string, return */
		jx9_result_string(pCtx, "", 0);
		return JX9_OK;
	}
	/* Perform the requested operation */
	SyBinToHexConsumer((const void *)zString, (sxu32)nLen, HashConsumer, pCtx);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testl %esi, %esi
jle 0x57269
movq (%rdx), %rdi
leaq -0x30(%rbp), %r15
movq %r15, %rsi
callq 0x30b04
movslq (%r15), %r12
testq %r12, %r12
jle 0x57274
movq %rax, %r14
addq %rax, %r12
leaq 0x22c10(%rip), %r13     # 0x79e40
leaq -0x2b(%rbp), %r15
movzbl (%r14), %eax
movl %eax, %ecx
shrl $0x4, %ecx
movb (%rcx,%r13), %cl
movb %cl, -0x2b(%rbp)
andl $0xf, %eax
movb (%rax,%r13), %al
movb %al, -0x2a(%rbp)
movq 0x8(%rbx), %rdi
movq %r15, %rsi
movl $0x2, %edx
callq 0x3087c
incq %r14
cmpq %r12, %r14
jb 0x57234
jmp 0x57286
movq 0x8(%rbx), %rdi
callq 0x309f2
jmp 0x57286
movq 0x8(%rbx), %rdi
leaq 0x223e8(%rip), %rsi     # 0x79667
xorl %edx, %edx
callq 0x3087c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_strstr
static int jx9Builtin_strstr(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	ProcStringMatch xPatternMatch = SyBlobSearch; /* Case-sensitive pattern match */
	const char *zBlob, *zPattern;
	int nLen, nPatLen;
	sxu32 nOfft;
	sxi32 rc;
	if( nArg < 2 ){
		/* Missing arguments, return FALSE */
		jx9_result_bool(pCtx, 0);
		return JX9_OK;
	}
	/* Extract the needle and the haystack */
	zBlob = jx9_value_to_string(apArg[0], &nLen);
	zPattern = jx9_value_to_string(apArg[1], &nPatLen);
	nOfft = 0; /* cc warning */
	if( nLen > 0 && nPatLen > 0 ){
		int before = 0;
		/* Perform the lookup */
		rc = xPatternMatch(zBlob, (sxu32)nLen, zPattern, (sxu32)nPatLen, &nOfft);
		if( rc != SXRET_OK ){
			/* Pattern not found, return FALSE */
			jx9_result_bool(pCtx, 0);
			return JX9_OK;
		}
		/* Return the portion of the string */
		if( nArg > 2 ){
			before = jx9_value_to_int(apArg[2]);
		}
		if( before ){
			jx9_result_string(pCtx, zBlob, (int)(&zBlob[nOfft]-zBlob));
		}else{
			jx9_result_string(pCtx, &zBlob[nOfft], (int)(&zBlob[nLen]-&zBlob[nOfft]));
		}
	}else{
		jx9_result_bool(pCtx, 0);
	}
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpl $0x1, %esi
jle 0x57312
movq %rdx, %r15
movl %esi, %r12d
movq (%rdx), %rdi
leaq -0x30(%rbp), %r13
movq %r13, %rsi
callq 0x30b04
movq %rax, -0x38(%rbp)
movq 0x8(%r15), %rdi
leaq -0x3c(%rbp), %r14
movq %r14, %rsi
callq 0x30b04
movl $0x0, -0x2c(%rbp)
movl (%r13), %esi
testl %esi, %esi
setg %dl
movl (%r14), %ecx
testl %ecx, %ecx
setg %dil
andb %dl, %dil
cmpb $0x1, %dil
jne 0x57312
leaq -0x2c(%rbp), %r8
movq -0x38(%rbp), %r13
movq %r13, %rdi
movq %rax, %rdx
callq 0x5b678
testl %eax, %eax
je 0x57344
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq $0x0, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl $0x8, %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x2, %r12d
je 0x57361
movq 0x10(%r15), %r14
movq %r14, %rdi
callq 0x3fd5f
cmpl $0x0, (%r14)
je 0x57361
movl -0x2c(%rbp), %edx
jmp 0x5736c
movl -0x2c(%rbp), %eax
addq %rax, %r13
movl -0x30(%rbp), %edx
subl %eax, %edx
movq 0x8(%rbx), %rdi
movq %r13, %rsi
callq 0x3087c
jmp 0x57333
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_stristr
static int jx9Builtin_stristr(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	ProcStringMatch xPatternMatch = iPatternMatch; /* Case-insensitive pattern match */
	const char *zBlob, *zPattern;
	int nLen, nPatLen;
	sxu32 nOfft;
	sxi32 rc;
	if( nArg < 2 ){
		/* Missing arguments, return FALSE */
		jx9_result_bool(pCtx, 0);
		return JX9_OK;
	}
	/* Extract the needle and the haystack */
	zBlob = jx9_value_to_string(apArg[0], &nLen);
	zPattern = jx9_value_to_string(apArg[1], &nPatLen);
	nOfft = 0; /* cc warning */
	if( nLen > 0 && nPatLen > 0 ){
		int before = 0;
		/* Perform the lookup */
		rc = xPatternMatch(zBlob, (sxu32)nLen, zPattern, (sxu32)nPatLen, &nOfft);
		if( rc != SXRET_OK ){
			/* Pattern not found, return FALSE */
			jx9_result_bool(pCtx, 0);
			return JX9_OK;
		}
		/* Return the portion of the string */
		if( nArg > 2 ){
			before = jx9_value_to_int(apArg[2]);
		}
		if( before ){
			jx9_result_string(pCtx, zBlob, (int)(&zBlob[nOfft]-zBlob));
		}else{
			jx9_result_string(pCtx, &zBlob[nOfft], (int)(&zBlob[nLen]-&zBlob[nOfft]));
		}
	}else{
		jx9_result_bool(pCtx, 0);
	}
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpl $0x1, %esi
jle 0x573f5
movq %rdx, %r15
movl %esi, %r12d
movq (%rdx), %rdi
leaq -0x30(%rbp), %r13
movq %r13, %rsi
callq 0x30b04
movq %rax, -0x38(%rbp)
movq 0x8(%r15), %rdi
leaq -0x3c(%rbp), %r14
movq %r14, %rsi
callq 0x30b04
movl $0x0, -0x2c(%rbp)
movl (%r13), %esi
testl %esi, %esi
setg %dl
movl (%r14), %ecx
testl %ecx, %ecx
setg %dil
andb %dl, %dil
cmpb $0x1, %dil
jne 0x573f5
leaq -0x2c(%rbp), %r8
movq -0x38(%rbp), %r13
movq %r13, %rdi
movq %rax, %rdx
callq 0x5bb42
testl %eax, %eax
je 0x57427
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq $0x0, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl $0x8, %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x2, %r12d
je 0x57444
movq 0x10(%r15), %r14
movq %r14, %rdi
callq 0x3fd5f
cmpl $0x0, (%r14)
je 0x57444
movl -0x2c(%rbp), %edx
jmp 0x5744f
movl -0x2c(%rbp), %eax
addq %rax, %r13
movl -0x30(%rbp), %edx
subl %eax, %edx
movq 0x8(%rbx), %rdi
movq %r13, %rsi
callq 0x3087c
jmp 0x57416
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_strpos
static int jx9Builtin_strpos(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	ProcStringMatch xPatternMatch = SyBlobSearch; /* Case-sensitive pattern match */
	const char *zBlob, *zPattern;
	int nLen, nPatLen, nStart;
	sxu32 nOfft;
	sxi32 rc;
	if( nArg < 2 ){
		/* Missing arguments, return FALSE */
		jx9_result_bool(pCtx, 0);
		return JX9_OK;
	}
	/* Extract the needle and the haystack */
	zBlob = jx9_value_to_string(apArg[0], &nLen);
	zPattern = jx9_value_to_string(apArg[1], &nPatLen);
	nOfft = 0; /* cc warning */
	nStart = 0;
	/* Peek the starting offset if available */
	if( nArg > 2 ){
		nStart = jx9_value_to_int(apArg[2]);
		if( nStart < 0 ){
			nStart = -nStart;
		}
		if( nStart >= nLen ){
			/* Invalid offset */
			nStart = 0;
		}else{
			zBlob += nStart;
			nLen -= nStart;
		}
	}
	if( nLen > 0 && nPatLen > 0 ){
		/* Perform the lookup */
		rc = xPatternMatch(zBlob, (sxu32)nLen, zPattern, (sxu32)nPatLen, &nOfft);
		if( rc != SXRET_OK ){
			/* Pattern not found, return FALSE */
			jx9_result_bool(pCtx, 0);
			return JX9_OK;
		}
		/* Return the pattern position */
		jx9_result_int64(pCtx, (jx9_int64)(nOfft+nStart));
	}else{
		jx9_result_bool(pCtx, 0);
	}
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl $0x8, %r15d
xorl %r14d, %r14d
cmpl $0x2, %esi
jl 0x57515
movq %rdx, %r12
movl %esi, %r13d
movq (%rdx), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x30b04
movq %rax, -0x40(%rbp)
movq 0x8(%r12), %rdi
leaq -0x34(%rbp), %rsi
callq 0x30b04
movl $0x0, -0x30(%rbp)
cmpl $0x2, %r13d
je 0x574e5
movq 0x10(%r12), %r12
movq %r12, %rdi
movq %rax, %r13
callq 0x3fd5f
movq %r13, %rax
movl (%r12), %ecx
movl %ecx, %esi
negl %esi
cmovsl %ecx, %esi
movl -0x2c(%rbp), %ecx
subl %esi, %ecx
jle 0x574e5
movl %esi, %edx
addq %rdx, -0x40(%rbp)
movl %ecx, -0x2c(%rbp)
movl %esi, %r14d
movl -0x2c(%rbp), %esi
testl %esi, %esi
setg %dil
movl -0x34(%rbp), %ecx
testl %ecx, %ecx
setg %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x57512
leaq -0x30(%rbp), %r8
movq -0x40(%rbp), %rdi
movq %rax, %rdx
callq 0x5b678
testl %eax, %eax
je 0x57543
xorl %r14d, %r14d
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq %r14, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl %r15d, %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addl -0x30(%rbp), %r14d
movl $0x2, %r15d
jmp 0x57515
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_stripos
static int jx9Builtin_stripos(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	ProcStringMatch xPatternMatch = iPatternMatch; /* Case-insensitive pattern match */
	const char *zBlob, *zPattern;
	int nLen, nPatLen, nStart;
	sxu32 nOfft;
	sxi32 rc;
	if( nArg < 2 ){
		/* Missing arguments, return FALSE */
		jx9_result_bool(pCtx, 0);
		return JX9_OK;
	}
	/* Extract the needle and the haystack */
	zBlob = jx9_value_to_string(apArg[0], &nLen);
	zPattern = jx9_value_to_string(apArg[1], &nPatLen);
	nOfft = 0; /* cc warning */
	nStart = 0;
	/* Peek the starting offset if available */
	if( nArg > 2 ){
		nStart = jx9_value_to_int(apArg[2]);
		if( nStart < 0 ){
			nStart = -nStart;
		}
		if( nStart >= nLen ){
			/* Invalid offset */
			nStart = 0;
		}else{
			zBlob += nStart;
			nLen -= nStart;
		}
	}
	if( nLen > 0 && nPatLen > 0 ){
		/* Perform the lookup */
		rc = xPatternMatch(zBlob, (sxu32)nLen, zPattern, (sxu32)nPatLen, &nOfft);
		if( rc != SXRET_OK ){
			/* Pattern not found, return FALSE */
			jx9_result_bool(pCtx, 0);
			return JX9_OK;
		}
		/* Return the pattern position */
		jx9_result_int64(pCtx, (jx9_int64)(nOfft+nStart));
	}else{
		jx9_result_bool(pCtx, 0);
	}
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl $0x8, %r15d
xorl %r14d, %r14d
cmpl $0x2, %esi
jl 0x57607
movq %rdx, %r12
movl %esi, %r13d
movq (%rdx), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x30b04
movq %rax, -0x40(%rbp)
movq 0x8(%r12), %rdi
leaq -0x34(%rbp), %rsi
callq 0x30b04
movl $0x0, -0x30(%rbp)
cmpl $0x2, %r13d
je 0x575d7
movq 0x10(%r12), %r12
movq %r12, %rdi
movq %rax, %r13
callq 0x3fd5f
movq %r13, %rax
movl (%r12), %ecx
movl %ecx, %esi
negl %esi
cmovsl %ecx, %esi
movl -0x2c(%rbp), %ecx
subl %esi, %ecx
jle 0x575d7
movl %esi, %edx
addq %rdx, -0x40(%rbp)
movl %ecx, -0x2c(%rbp)
movl %esi, %r14d
movl -0x2c(%rbp), %esi
testl %esi, %esi
setg %dil
movl -0x34(%rbp), %ecx
testl %ecx, %ecx
setg %dl
andb %dil, %dl
cmpb $0x1, %dl
jne 0x57604
leaq -0x30(%rbp), %r8
movq -0x40(%rbp), %rdi
movq %rax, %rdx
callq 0x5bb42
testl %eax, %eax
je 0x57635
xorl %r14d, %r14d
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq %r14, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl %r15d, %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addl -0x30(%rbp), %r14d
movl $0x2, %r15d
jmp 0x57607
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_strrchr
static int jx9Builtin_strrchr(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	const char *zBlob;
	int nLen, c;
	if( nArg < 2 ){
		/* Missing arguments, return FALSE */
		jx9_result_bool(pCtx, 0);
		return JX9_OK;
	}
	/* Extract the haystack */
	zBlob = jx9_value_to_string(apArg[0], &nLen);
	c = 0; /* cc warning */
	if( nLen > 0 ){
		sxu32 nOfft;
		sxi32 rc;
		if( jx9_value_is_string(apArg[1]) ){
			const char *zPattern;
			zPattern = jx9_value_to_string(apArg[1], 0); /* Never fail, so there is no need to check
														 * for NULL pointer.
														 */
			c = zPattern[0];
		}else{
			/* Int cast */
			c = jx9_value_to_int(apArg[1]);
		}
		/* Perform the lookup */
		rc = SyByteFind2(zBlob, (sxu32)nLen, c, &nOfft);
		if( rc != SXRET_OK ){
			/* No such entry, return FALSE */
			jx9_result_bool(pCtx, 0);
			return JX9_OK;
		}
		/* Return the string portion */
		jx9_result_string(pCtx, &zBlob[nOfft], (int)(&zBlob[nLen]-&zBlob[nOfft]));
	}else{
		jx9_result_bool(pCtx, 0);
	}
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpl $0x1, %esi
jle 0x57a1d
movq %rdx, %r15
movq (%rdx), %rdi
leaq -0x24(%rbp), %r12
movq %r12, %rsi
callq 0x30b04
cmpl $0x0, (%r12)
jle 0x57a1d
movq %rax, %r14
movq 0x8(%r15), %r15
testb $0x1, 0x8(%r15)
jne 0x5798c
movq %r15, %rdi
callq 0x3fd5f
movl (%r15), %ecx
jmp 0x57999
movq %r15, %rdi
xorl %esi, %esi
callq 0x30b04
movsbl (%rax), %ecx
movl -0x24(%rbp), %edx
leal -0x1(%rdx), %esi
leal -0x4(%rdx), %eax
movsbl (%r14,%rsi), %edi
cmpl %edi, %ecx
je 0x579f5
leaq (%r14,%rsi), %rdi
decq %rdi
cmpq %r14, %rdi
jb 0x579f1
movsbl (%rdi), %r8d
cmpl %r8d, %ecx
je 0x579fb
decq %rdi
cmpq %r14, %rdi
jb 0x579f1
movsbl (%rdi), %r8d
cmpl %r8d, %ecx
je 0x57a00
decq %rdi
cmpq %r14, %rdi
jb 0x579f1
movsbl (%rdi), %r8d
cmpl %r8d, %ecx
je 0x57a02
addq $-0x4, %rsi
addl $-0x4, %eax
decq %rdi
cmpq %r14, %rdi
jae 0x579a2
xorl %ecx, %ecx
jmp 0x57a04
movb $0x1, %cl
movl %esi, %eax
jmp 0x57a04
addl $0x2, %eax
jmp 0x57a02
incl %eax
movb $0x1, %cl
testb %cl, %cl
je 0x57a1d
movl %eax, %ecx
addq %rcx, %r14
subl %eax, %edx
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0x3087c
jmp 0x57a3e
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq $0x0, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl $0x8, %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_strrev
static int jx9Builtin_strrev(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	const char *zIn, *zEnd;
	int nLen, c;
	if( nArg < 1 ){
		/* Missing arguments, return NULL */
		jx9_result_null(pCtx);
		return JX9_OK;
	}
	/* Extract the target string */
	zIn = jx9_value_to_string(apArg[0], &nLen);
	if( nLen < 1 ){
		/* Empty string Return null */
		jx9_result_null(pCtx);
		return JX9_OK;
	}
	/* Perform the requested operation */
	zEnd = &zIn[nLen - 1];
	for(;;){
		if( zEnd < zIn ){
			/* No more input to process */
			break;
		}
		/* Append current character */
		c = zEnd[0];
		jx9_result_string(pCtx, (const char *)&c, (int)sizeof(char));
		zEnd--;
	}
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
testl %esi, %esi
jle 0x57ab0
movq (%rdx), %rdi
leaq -0x28(%rbp), %r15
movq %r15, %rsi
callq 0x30b04
movq %rax, %r14
movslq (%r15), %rax
testq %rax, %rax
jle 0x57ab0
leaq (%r14,%rax), %r12
decq %r12
cmpq %r14, %r12
jb 0x57ab9
leaq -0x24(%rbp), %r15
movsbl (%r12), %eax
movl %eax, -0x24(%rbp)
movq 0x8(%rbx), %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x3087c
decq %r12
cmpq %r14, %r12
jae 0x57a8d
jmp 0x57ab9
movq 0x8(%rbx), %rdi
callq 0x309f2
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_str_repeat
static int jx9Builtin_str_repeat(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	const char *zIn;
	int nLen, nMul;
	int rc;
	if( nArg < 2 ){
		/* Missing arguments, return NULL */
		jx9_result_null(pCtx);
		return JX9_OK;
	}
	/* Extract the target string */
	zIn = jx9_value_to_string(apArg[0], &nLen);
	if( nLen < 1 ){
		/* Empty string.Return null */
		jx9_result_null(pCtx);
		return JX9_OK;
	}
	/* Extract the multiplier */
	nMul = jx9_value_to_int(apArg[1]);
	if( nMul < 1 ){
		/* Return the empty string */
		jx9_result_string(pCtx, "", 0);
		return JX9_OK;
	}
	/* Perform the requested operation */
	for(;;){
		if( nMul < 1 ){
			break;
		}
		/* Append the copy */
		rc = jx9_result_string(pCtx, zIn, nLen);
		if( rc != JX9_OK ){
			/* Out of memory, break immediately */
			break;
		}
		nMul--;
	}
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpl $0x1, %esi
jle 0x57b2c
movq %rdx, %r15
movq (%rdx), %rdi
leaq -0x24(%rbp), %r12
movq %r12, %rsi
callq 0x30b04
cmpl $0x0, (%r12)
jle 0x57b2c
movq %rax, %r14
movq 0x8(%r15), %r15
movq %r15, %rdi
callq 0x3fd5f
movl (%r15), %r15d
testl %r15d, %r15d
jle 0x57b44
incl %r15d
movl -0x24(%rbp), %edx
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0x3087c
decl %r15d
cmpl $0x1, %r15d
jg 0x57b12
jmp 0x57b35
movq 0x8(%rbx), %rdi
callq 0x309f2
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbx), %rdi
leaq 0x21b18(%rip), %rsi     # 0x79667
xorl %edx, %edx
callq 0x3087c
jmp 0x57b35
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_nl2br
static int jx9Builtin_nl2br(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	const char *zIn, *zCur, *zEnd;
	int is_xhtml = 0;
	int nLen;
	if( nArg < 1 ){
		/* Missing arguments, return the empty string */
		jx9_result_string(pCtx, "", 0);
		return JX9_OK;
	}
	/* Extract the target string */
	zIn = jx9_value_to_string(apArg[0], &nLen);
	if( nLen < 1 ){
		/* Empty string, return null */
		jx9_result_null(pCtx);
		return JX9_OK;
	}
	if( nArg > 1 ){
		is_xhtml = jx9_value_to_bool(apArg[1]);
	}
	zEnd = &zIn[nLen];
	/* Perform the requested operation */
	for(;;){
		zCur = zIn;
		/* Delimit the string */
		while( zIn < zEnd && (zIn[0] != '\n'&& zIn[0] != '\r') ){
			zIn++;
		}
		if( zCur < zIn ){
			/* Output chunk verbatim */
			jx9_result_string(pCtx, zCur, (int)(zIn-zCur));
		}
		if( zIn >= zEnd ){
			/* No more input to process */
			break;
		}
		/* Output the HTML line break */
		if( is_xhtml ){
			jx9_result_string(pCtx, "<br>", (int)sizeof("<br>")-1);
		}else{
			jx9_result_string(pCtx, "<br/>", (int)sizeof("<br/>")-1);
		}
		zCur = zIn;
		/* Append trailing line */
		while( zIn < zEnd && (zIn[0] == '\n'  || zIn[0] == '\r') ){
			zIn++;
		}
		if( zCur < zIn ){
			/* Output chunk verbatim */
			jx9_result_string(pCtx, zCur, (int)(zIn-zCur));
		}
	}
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testl %esi, %esi
jle 0x57c6f
movq %rdx, %r13
movl %esi, %r15d
movq (%rdx), %rdi
leaq -0x30(%rbp), %r14
movq %r14, %rsi
callq 0x30b04
cmpl $0x0, (%r14)
jle 0x57c83
movq %rax, %r12
movb $0x1, -0x29(%rbp)
cmpl $0x1, %r15d
je 0x57bb1
movq 0x8(%r13), %r14
movq %r14, %rdi
callq 0x446ef
cmpl $0x0, (%r14)
sete -0x29(%rbp)
movslq -0x30(%rbp), %r15
addq %r12, %r15
cmpq %r15, %r12
setb %r14b
movq %r12, %r13
jae 0x57bdf
movzbl (%r13), %eax
cmpl $0xa, %eax
je 0x57bdf
cmpl $0xd, %eax
je 0x57bdf
incq %r13
cmpq %r15, %r13
setb %r14b
jb 0x57bc4
cmpq %r13, %r12
jae 0x57bf6
movl %r13d, %edx
subl %r12d, %edx
movq 0x8(%rbx), %rdi
movq %r12, %rsi
callq 0x3087c
testb $0x1, %r14b
je 0x57c8c
cmpb $0x0, -0x29(%rbp)
je 0x57c18
movq 0x8(%rbx), %rdi
leaq 0x2134c(%rip), %rsi     # 0x78f5d
movl $0x5, %edx
jmp 0x57c28
movq 0x8(%rbx), %rdi
leaq 0x1b84f(%rip), %rsi     # 0x73472
movl $0x4, %edx
callq 0x3087c
movq %r13, %r12
cmpq %r15, %r13
jae 0x57c4f
movq %r13, %r12
movzbl (%r12), %eax
cmpl $0xd, %eax
je 0x57c47
cmpl $0xa, %eax
jne 0x57c4f
incq %r12
cmpq %r15, %r12
jb 0x57c38
cmpq %r12, %r13
jae 0x57bb8
movl %r12d, %edx
subl %r13d, %edx
movq 0x8(%rbx), %rdi
movq %r13, %rsi
callq 0x3087c
jmp 0x57bb8
movq 0x8(%rbx), %rdi
leaq 0x219ed(%rip), %rsi     # 0x79667
xorl %edx, %edx
callq 0x3087c
jmp 0x57c8c
movq 0x8(%rbx), %rdi
callq 0x309f2
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_sprintf
static int jx9Builtin_sprintf(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	const char *zFormat;
	int nLen;
	if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
		/* Missing/Invalid arguments, return the empty string */
		jx9_result_string(pCtx, "", 0);
		return JX9_OK;
	}
	/* Extract the string format */
	zFormat = jx9_value_to_string(apArg[0], &nLen);
	if( nLen < 1 ){
		/* Empty string */
		jx9_result_string(pCtx, "", 0);
		return JX9_OK;
	}
	/* Format the string */
	jx9InputFormat(sprintfConsumer, pCtx, zFormat, nLen, nArg, apArg, 0, FALSE);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r15
testl %esi, %esi
jle 0x57cf8
movq %rdx, %rbx
movq (%rdx), %rdi
testb $0x1, 0x8(%rdi)
je 0x57cf8
movl %esi, %r14d
leaq -0x24(%rbp), %r12
movq %r12, %rsi
callq 0x30b04
movl (%r12), %ecx
testl %ecx, %ecx
jle 0x57cf8
leaq 0x4d7e(%rip), %rdi      # 0x5ca5b
movq %r15, %rsi
movq %rax, %rdx
movl %r14d, %r8d
movq %rbx, %r9
pushq $0x0
pushq $0x0
callq 0x5bbf2
addq $0x10, %rsp
jmp 0x57d0a
movq 0x8(%r15), %rdi
leaq 0x21964(%rip), %rsi     # 0x79667
xorl %edx, %edx
callq 0x3087c
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_printf
static int jx9Builtin_printf(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	jx9_int64 nCounter = 0;
	const char *zFormat;
	int nLen;
	if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
		/* Missing/Invalid arguments, return 0 */
		jx9_result_int(pCtx, 0);
		return JX9_OK;
	}
	/* Extract the string format */
	zFormat = jx9_value_to_string(apArg[0], &nLen);
	if( nLen < 1 ){
		/* Empty string */
		jx9_result_int(pCtx, 0);
		return JX9_OK;
	}
	/* Format the string */
	jx9InputFormat(printfConsumer, pCtx, zFormat, nLen, nArg, apArg, (void *)&nCounter, FALSE);
	/* Return the length of the outputted string */
	jx9_result_int64(pCtx, nCounter);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq $0x0, -0x28(%rbp)
testl %esi, %esi
jle 0x57d84
movq %rdx, %r14
movq (%rdx), %rdi
testb $0x1, 0x8(%rdi)
je 0x57d84
movl %esi, %r15d
leaq -0x2c(%rbp), %r12
movq %r12, %rsi
callq 0x30b04
movl (%r12), %ecx
testl %ecx, %ecx
jle 0x57d84
leaq -0x28(%rbp), %r12
leaq 0x4d07(%rip), %rdi      # 0x5ca6c
movq %rbx, %rsi
movq %rax, %rdx
movl %r15d, %r8d
movq %r14, %r9
pushq $0x0
pushq %r12
callq 0x5bbf2
addq $0x10, %rsp
movq (%r12), %r14
jmp 0x57d87
xorl %r14d, %r14d
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq %r14, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl $0x2, %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9Builtin_vprintf
static int jx9Builtin_vprintf(jx9_context *pCtx, int nArg, jx9_value **apArg)
{
	jx9_int64 nCounter = 0;
	const char *zFormat;
	jx9_hashmap *pMap;
	SySet sArg;
	int nLen, n;
	if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_json_array(apArg[1]) ){
		/* Missing/Invalid arguments, return 0 */
		jx9_result_int(pCtx, 0);
		return JX9_OK;
	}
	/* Extract the string format */
	zFormat = jx9_value_to_string(apArg[0], &nLen);
	if( nLen < 1 ){
		/* Empty string */
		jx9_result_int(pCtx, 0);
		return JX9_OK;
	}
	/* Point to the hashmap */
	pMap = (jx9_hashmap *)apArg[1]->x.pOther;
	/* Extract arguments from the hashmap */
	n = jx9HashmapValuesToSet(pMap, &sArg);
	/* Format the string */
	jx9InputFormat(printfConsumer, pCtx, zFormat, nLen, n, (jx9_value **)SySetBasePtr(&sArg), (void *)&nCounter, TRUE);
	/* Return the length of the outputted string */
	jx9_result_int64(pCtx, nCounter);
	/* Release the container */
	SySetRelease(&sArg);
	return JX9_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq $0x0, -0x38(%rbp)
cmpl $0x2, %esi
jl 0x57e9b
movq %rdx, %r14
movq (%rdx), %rdi
testb $0x1, 0x8(%rdi)
je 0x57e9b
movq 0x8(%r14), %rax
testb $0x40, 0x8(%rax)
je 0x57e9b
leaq -0x2c(%rbp), %r15
movq %r15, %rsi
callq 0x30b04
cmpl $0x0, (%r15)
jle 0x57e9b
movq %rax, %r12
movq 0x8(%r14), %rax
movq (%rax), %rdi
leaq -0x60(%rbp), %r15
movq %r15, %rsi
callq 0x5ca8b
movl -0x2c(%rbp), %ecx
movq 0x8(%r15), %r14
leaq -0x38(%rbp), %r13
leaq 0x4c38(%rip), %rdi      # 0x5ca6c
movq %rbx, %rsi
movq %r12, %rdx
movl %eax, %r8d
movq %r14, %r9
pushq $0x1
pushq %r13
callq 0x5bbf2
addq $0x10, %rsp
movq (%r13), %r12
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq %r12, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl $0x2, %eax
movl %eax, 0x8(%rbx)
movq (%r15), %rdi
testq %rdi, %rdi
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x57e89
movq %r14, %rsi
callq 0x3503f
movq $0x0, -0x58(%rbp)
xorl %eax, %eax
movl %eax, -0x50(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x57ebc
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x309f2
movq $0x0, (%rbx)
movl $0xfffffe90, %eax       # imm = 0xFFFFFE90
andl 0x8(%rbx), %eax
orl $0x2, %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq