// File: /workspace/github_c_makefile_star2_O1/mmcco[P]sljit/sljit_src/sljitNativeX86_64.c
// Function: sljit_emit_fast_enter
int sljit_emit_fast_enter(struct sljit_compiler *compiler, int dst, long dstw)
{
	u_char *inst;

	CHECK_ERROR();
	CHECK(check_sljit_emit_fast_enter(compiler, dst, dstw));
	ADJUST_LOCAL_OFFSET(dst, dstw);

	/* For UNUSED dst. Uncommon, but possible. */
	if (dst == SLJIT_UNUSED)
		dst = TMP_REG1;

	if (FAST_IS_REG(dst)) {
		if (reg_map[dst] < 8) {
			inst = ensure_buf(compiler, 1 + 1);
			FAIL_IF(!inst);
			INC_SIZE(1);
			POP_REG(reg_lmap[dst]);
			return SLJIT_SUCCESS;
		}

		inst = ensure_buf(compiler, 1 + 2);
		FAIL_IF(!inst);
		INC_SIZE(2);
		*inst++ = REX_B;
		POP_REG(reg_lmap[dst]);
		return SLJIT_SUCCESS;
	}

	/* REX_W is not necessary (src is not immediate). */
	compiler->mode32 = 1;
	inst = emit_x86_instruction(compiler, 1, 0, 0, dst, dstw);
	FAIL_IF(!inst);
	*inst++ = POP_rm;
	return SLJIT_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl (%rdi), %r12d
testl %r12d, %r12d
je 0x15a90
movl %r12d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %rbx
movl 0x48(%rdi), %eax
cmpl $-0x1, %eax
je 0x15c1e
movq %rdx, %r14
movl 0x4c(%rbx), %edx
cmpl $-0x1, %edx
je 0x15c1e
movl %esi, %r15d
testl %esi, %esi
je 0x15ade
setg %cl
cmpl %r15d, %eax
setge %sil
testb %sil, %cl
jne 0x15ade
movl $0xc, %ecx
subl %edx, %ecx
cmpl %r15d, %ecx
setge %dl
cmpl $0xd, %r15d
setge %sil
orb %dl, %sil
jne 0x15b5a
testq %r14, %r14
jne 0x15c1e
movq 0x78(%rbx), %rcx
testq %rcx, %rcx
je 0x15d40
leaq 0xd916(%rip), %rdi      # 0x23411
movl $0xd, %esi
movl $0x1, %edx
callq 0x2120
testb $0x40, %r15b
jne 0x15b40
testb %r15b, %r15b
js 0x15b81
testl %r15d, %r15d
je 0x15c36
movq 0x78(%rbx), %rdi
cmpl %r15d, 0x48(%rbx)
jge 0x15c67
movl $0xc, %edx
subl %r15d, %edx
leaq 0xd997(%rip), %rsi      # 0x234d2
jmp 0x15c72
movq 0x78(%rbx), %rdi
leaq 0xd826(%rip), %rsi      # 0x23371
movq %r14, %rdx
xorl %eax, %eax
callq 0x20b0
jmp 0x15d32
cmpl $0x8d, %r15d
jne 0x15bbb
testq %r14, %r14
js 0x15c1e
movslq 0x80(%rbx), %rax
cmpq %r14, %rax
jg 0x15ae7
jmp 0x15c1e
movl %r15d, %ebp
movq 0x78(%rbx), %rsi
andl $0x3f, %ebp
je 0x15c55
movl $0x5b, %edi
callq 0x20a0
movq 0x78(%rbx), %rdi
cmpl 0x48(%rbx), %ebp
jle 0x15c7e
movl $0xc, %edx
subl %ebp, %edx
leaq 0xd91c(%rip), %rsi      # 0x234d2
jmp 0x15c89
testb %r15b, %r15b
jns 0x15c1e
movl %r15d, %edx
andl $0x3f, %edx
sete %sil
cmpl %eax, %edx
setle %dil
orb %sil, %dil
jne 0x15bde
cmpl $0xc, %edx
ja 0x15c1e
cmpl %ecx, %edx
jle 0x15c1e
testl $0x3f00, %r15d          # imm = 0x3F00
je 0x15c11
testl %edx, %edx
je 0x15c1e
movl %r15d, %edx
shrl $0x8, %edx
andl $0x3f, %edx
setne %sil
cmpl %eax, %edx
setle %al
testb %al, %sil
jne 0x15c0b
cmpl $0xc, %edx
ja 0x15c1e
cmpl %ecx, %edx
jle 0x15c1e
cmpq $0x4, %r14
jae 0x15c1e
cmpl $0x4000, %r15d          # imm = 0x4000
jb 0x15ae7
leaq 0xd64a(%rip), %rdi      # 0x2326f
movl $0x3da, %esi            # imm = 0x3DA
xorl %eax, %eax
callq 0x2080
callq 0x2040
movq 0x78(%rbx), %rcx
leaq 0xd74d(%rip), %rdi      # 0x2338e
movl $0x6, %esi
movl $0x1, %edx
callq 0x2120
jmp 0x15d32
leaq 0xd72b(%rip), %rax      # 0x23387
movq %rsi, %rdi
movq %rax, %rsi
jmp 0x15b4b
leal -0x1(%r15), %edx
leaq 0xd85b(%rip), %rsi      # 0x234cd
xorl %eax, %eax
callq 0x20b0
jmp 0x15d32
decl %ebp
leaq 0xd846(%rip), %rsi      # 0x234cd
movl %ebp, %edx
xorl %eax, %eax
callq 0x20b0
testl $0x3f00, %r15d          # imm = 0x3F00
je 0x15cd7
movq 0x78(%rbx), %rcx
leaq 0xd6d2(%rip), %rdi      # 0x23376
movl $0x3, %esi
movl $0x1, %edx
callq 0x2120
movl %r15d, %edx
shrl $0x8, %edx
andl $0x3f, %edx
movq 0x78(%rbx), %rdi
cmpl 0x48(%rbx), %edx
jle 0x15cf3
movl $0xc, %eax
subl %edx, %eax
leaq 0xd7ff(%rip), %rsi      # 0x234d2
movl %eax, %edx
jmp 0x15cfc
testq %r14, %r14
je 0x15d24
movq 0x78(%rbx), %rdi
leaq 0xd699(%rip), %rsi      # 0x23380
movq %r14, %rdx
xorl %eax, %eax
callq 0x20b0
jmp 0x15d24
decl %edx
leaq 0xd7d1(%rip), %rsi      # 0x234cd
xorl %eax, %eax
callq 0x20b0
testq %r14, %r14
je 0x15d24
movq 0x78(%rbx), %rdi
movl $0x1, %edx
movl %r14d, %ecx
shll %cl, %edx
leaq 0xd65d(%rip), %rsi      # 0x2337a
xorl %eax, %eax
callq 0x20b0
movq 0x78(%rbx), %rsi
movl $0x5d, %edi
callq 0x20a0
movq 0x78(%rbx), %rsi
movl $0xa, %edi
callq 0x20a0
testl %r15d, %r15d
movl $0xe, %r8d
cmovnel %r15d, %r8d
cmpl $0x3f, %r8d
jg 0x15d96
movslq %r8d, %r14
movl $0xf10f, %eax           # imm = 0xF10F
btq %r8, %rax
jb 0x15dcd
movl $0x3, %esi
movq %rbx, %rdi
callq 0x152be
testq %rax, %rax
je 0x15dff
movb $0x2, (%rax)
addq $0x2, 0x60(%rbx)
movb $0x41, 0x1(%rax)
leaq 0xd396(%rip), %rcx      # 0x23120
movb (%r14,%rcx), %cl
addb $0x58, %cl
movb %cl, 0x2(%rax)
jmp 0x15df7
leaq 0x8(%r14), %r9
cmpl $0x8d, %r15d
cmovneq %r14, %r9
movl $0x1, 0x70(%rbx)
xorl %r12d, %r12d
movq %rbx, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x15e07
testq %rax, %rax
je 0x15dff
movb $-0x71, (%rax)
jmp 0x15a84
movl $0x2, %esi
movq %rbx, %rdi
callq 0x152be
testq %rax, %rax
je 0x15dff
movb $0x1, (%rax)
incq 0x60(%rbx)
leaq 0xd333(%rip), %rcx      # 0x23120
movb (%r14,%rcx), %cl
addb $0x58, %cl
movb %cl, 0x1(%rax)
xorl %r12d, %r12d
jmp 0x15a84
movl (%rbx), %r12d
jmp 0x15a84