// File: /workspace/github_c_makefile_star2_O1/mmcco[P]sljit/sljit_src/sljitNativeX86_common.c
// Function: sljit_emit_const
struct sljit_const* sljit_emit_const(struct sljit_compiler *compiler, int dst, long dstw, long init_value)
{
	u_char *inst;
	struct sljit_const *const_;
#if (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64)
	int reg;
#endif

	CHECK_ERROR_PTR();
	CHECK_PTR(check_sljit_emit_const(compiler, dst, dstw, init_value));
	ADJUST_LOCAL_OFFSET(dst, dstw);

	CHECK_EXTRA_REGS(dst, dstw, (void)0);

	const_ = ensure_abuf(compiler, sizeof(struct sljit_const));
	if (!const_)
		return NULL;
	set_const(const_, compiler);

#if (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64)
	compiler->mode32 = 0;
	reg = SLOW_IS_REG(dst) ? dst : TMP_REG1;

	if (emit_load_imm64(compiler, reg, init_value))
		return NULL;
#else
	if (dst == SLJIT_UNUSED)
		dst = TMP_REG1;

	if (emit_mov(compiler, dst, dstw, SLJIT_IMM, init_value))
		return NULL;
#endif

	inst = ensure_buf(compiler, 2);
	if (!inst)
		return NULL;

	*inst++ = 0;
	*inst++ = 1;

#if (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64)
	if (dst & SLJIT_MEM)
		if (emit_mov(compiler, dst, dstw, TMP_REG1, 0))
			return NULL;
#endif

	return const_;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x0, (%rdi)
je 0x1df62
xorl %r12d, %r12d
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %rbx
movl 0x48(%rdi), %eax
cmpl $-0x1, %eax
je 0x1e0f3
movq %rdx, %r12
movl 0x4c(%rbx), %edx
cmpl $-0x1, %edx
je 0x1e0f3
movq %rcx, %r15
movl %esi, %r14d
testl %esi, %esi
je 0x1dfb3
setg %cl
cmpl %r14d, %eax
setge %sil
testb %sil, %cl
jne 0x1dfb3
movl $0xc, %ecx
subl %edx, %ecx
cmpl %r14d, %ecx
setge %dl
cmpl $0xd, %r14d
setge %sil
orb %dl, %sil
jne 0x1e02f
testq %r12, %r12
jne 0x1e0f3
movq 0x78(%rbx), %rcx
testq %rcx, %rcx
je 0x1e21c
leaq 0x5628(%rip), %rdi      # 0x235f8
movl $0x8, %esi
movl $0x1, %edx
callq 0x2120
testb $0x40, %r14b
jne 0x1e015
testb %r14b, %r14b
js 0x1e056
testl %r14d, %r14d
je 0x1e10b
movq 0x78(%rbx), %rdi
cmpl %r14d, 0x48(%rbx)
jge 0x1e13c
movl $0xc, %edx
subl %r14d, %edx
leaq 0x54c2(%rip), %rsi      # 0x234d2
jmp 0x1e147
movq 0x78(%rbx), %rdi
leaq 0x5351(%rip), %rsi      # 0x23371
movq %r12, %rdx
xorl %eax, %eax
callq 0x20b0
jmp 0x1e207
cmpl $0x8d, %r14d
jne 0x1e090
testq %r12, %r12
js 0x1e0f3
movslq 0x80(%rbx), %rax
cmpq %r12, %rax
jg 0x1dfbc
jmp 0x1e0f3
movl %r14d, %ebp
movq 0x78(%rbx), %rsi
andl $0x3f, %ebp
je 0x1e12a
movl $0x5b, %edi
callq 0x20a0
movq 0x78(%rbx), %rdi
cmpl 0x48(%rbx), %ebp
jle 0x1e153
movl $0xc, %edx
subl %ebp, %edx
leaq 0x5447(%rip), %rsi      # 0x234d2
jmp 0x1e15e
testb %r14b, %r14b
jns 0x1e0f3
movl %r14d, %edx
andl $0x3f, %edx
sete %sil
cmpl %eax, %edx
setle %dil
orb %sil, %dil
jne 0x1e0b3
cmpl $0xc, %edx
ja 0x1e0f3
cmpl %ecx, %edx
jle 0x1e0f3
testl $0x3f00, %r14d          # imm = 0x3F00
je 0x1e0e6
testl %edx, %edx
je 0x1e0f3
movl %r14d, %edx
shrl $0x8, %edx
andl $0x3f, %edx
setne %sil
cmpl %eax, %edx
setle %al
testb %al, %sil
jne 0x1e0e0
cmpl $0xc, %edx
ja 0x1e0f3
cmpl %ecx, %edx
jle 0x1e0f3
cmpq $0x4, %r12
jae 0x1e0f3
cmpl $0x4000, %r14d          # imm = 0x4000
jb 0x1dfbc
leaq 0x5175(%rip), %rdi      # 0x2326f
movl $0x5a2, %esi            # imm = 0x5A2
xorl %eax, %eax
callq 0x2080
callq 0x2040
movq 0x78(%rbx), %rcx
leaq 0x5278(%rip), %rdi      # 0x2338e
movl $0x6, %esi
movl $0x1, %edx
callq 0x2120
jmp 0x1e207
leaq 0x5256(%rip), %rax      # 0x23387
movq %rsi, %rdi
movq %rax, %rsi
jmp 0x1e020
leal -0x1(%r14), %edx
leaq 0x5386(%rip), %rsi      # 0x234cd
xorl %eax, %eax
callq 0x20b0
jmp 0x1e207
decl %ebp
leaq 0x5371(%rip), %rsi      # 0x234cd
movl %ebp, %edx
xorl %eax, %eax
callq 0x20b0
testl $0x3f00, %r14d          # imm = 0x3F00
je 0x1e1ac
movq 0x78(%rbx), %rcx
leaq 0x51fd(%rip), %rdi      # 0x23376
movl $0x3, %esi
movl $0x1, %edx
callq 0x2120
movl %r14d, %edx
shrl $0x8, %edx
andl $0x3f, %edx
movq 0x78(%rbx), %rdi
cmpl 0x48(%rbx), %edx
jle 0x1e1c8
movl $0xc, %eax
subl %edx, %eax
leaq 0x532a(%rip), %rsi      # 0x234d2
movl %eax, %edx
jmp 0x1e1d1
testq %r12, %r12
je 0x1e1f9
movq 0x78(%rbx), %rdi
leaq 0x51c4(%rip), %rsi      # 0x23380
movq %r12, %rdx
xorl %eax, %eax
callq 0x20b0
jmp 0x1e1f9
decl %edx
leaq 0x52fc(%rip), %rsi      # 0x234cd
xorl %eax, %eax
callq 0x20b0
testq %r12, %r12
je 0x1e1f9
movq 0x78(%rbx), %rdi
movl $0x1, %edx
movl %r12d, %ecx
shll %cl, %edx
leaq 0x5188(%rip), %rsi      # 0x2337a
xorl %eax, %eax
callq 0x20b0
movq 0x78(%rbx), %rsi
movl $0x5d, %edi
callq 0x20a0
movq 0x78(%rbx), %rdi
leaq 0x53de(%rip), %rsi      # 0x235f0
movq %r15, %rdx
xorl %eax, %eax
callq 0x20b0
leaq 0x8(%r12), %r13
cmpl $0x8d, %r14d
cmovneq %r12, %r13
movl $0x10, %esi
movq %rbx, %rdi
callq 0x149da
testq %rax, %rax
je 0x1df4d
movq %rax, %r12
movq $0x0, (%rax)
movq 0x60(%rbx), %rax
movq %rax, 0x8(%r12)
movq 0x30(%rbx), %rax
leaq 0x18(%rbx), %rcx
testq %rax, %rax
cmovneq %rax, %rcx
movq %r12, (%rcx)
movq %r12, 0x30(%rbx)
movl $0x0, 0x70(%rbx)
leal -0x1(%r14), %eax
cmpl $0x3f, %eax
movl $0xe, %esi
cmovbl %r14d, %esi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x16832
testl %eax, %eax
jne 0x1df4d
movl $0x2, %esi
movq %rbx, %rdi
callq 0x152be
testq %rax, %rax
je 0x1df4d
movw $0x100, (%rax)          # imm = 0x100
testb %r14b, %r14b
jns 0x1df50
movq %rbx, %rdi
movl $0x1, %esi
movl $0xe, %edx
xorl %ecx, %ecx
movl %r14d, %r8d
movq %r13, %r9
callq 0x15e07
testq %rax, %rax
je 0x1e2e0
movb $-0x77, (%rax)
jmp 0x1df50
cmpl $0x0, (%rbx)
jne 0x1df4d
jmp 0x1df50