// File: /workspace/github_c_makefile_star2_O2/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 0x13cee
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 0x14049
movq %rdx, %r14
movl 0x4c(%rbx), %edx
cmpl $-0x1, %edx
je 0x14049
movl %esi, %r15d
pushq $0xc
popq %rbp
testl %esi, %esi
je 0x13d3c
setg %cl
cmpl %r15d, %eax
setge %sil
testb %sil, %cl
jne 0x13d3c
movl %ebp, %ecx
subl %edx, %ecx
cmpl %r15d, %ecx
setge %dl
cmpl $0xd, %r15d
setge %sil
orb %dl, %sil
jne 0x13db1
testq %r14, %r14
jne 0x14049
movq 0x78(%rbx), %rcx
testq %rcx, %rcx
je 0x13f75
leaq 0xd748(%rip), %rdi      # 0x214a1
pushq $0xd
popq %rsi
pushq $0x1
popq %rdx
callq 0x2130
testb $0x40, %r15b
jne 0x13d97
testb %r15b, %r15b
js 0x13dd8
testl %r15d, %r15d
je 0x13e7d
movq 0x78(%rbx), %rdi
cmpl %r15d, 0x48(%rbx)
jge 0x13eaa
subl %r15d, %ebp
leaq 0xd7d2(%rip), %rsi      # 0x21562
movl %ebp, %edx
jmp 0x13eb5
movq 0x78(%rbx), %rdi
leaq 0xd65f(%rip), %rsi      # 0x21401
movq %r14, %rdx
xorl %eax, %eax
callq 0x20c0
jmp 0x13f69
cmpl $0x8d, %r15d
jne 0x13e10
testq %r14, %r14
js 0x14049
movslq 0x80(%rbx), %rax
cmpq %r14, %rax
jg 0x13d45
jmp 0x14049
movl %r15d, %r12d
movq 0x78(%rbx), %rsi
andl $0x3f, %r12d
je 0x13e98
pushq $0x5b
popq %rdi
callq 0x20a0
movq 0x78(%rbx), %rdi
cmpl 0x48(%rbx), %r12d
jle 0x13ec1
movl %ebp, %edx
subl %r12d, %edx
leaq 0xd757(%rip), %rsi      # 0x21562
jmp 0x13ece
testb %r15b, %r15b
jns 0x14049
movl %r15d, %edx
andl $0x3f, %edx
je 0x14034
cmpl %eax, %edx
jle 0x13e3a
cmpl $0xc, %edx
ja 0x14049
cmpl %ecx, %edx
jle 0x14049
testw $0x3f00, %r15w          # imm = 0x3F00
je 0x1403c
movl %r15d, %edx
shrl $0x8, %edx
andl $0x3f, %edx
setne %sil
cmpl %eax, %edx
setle %al
testb %al, %sil
jne 0x13e6e
cmpl $0xc, %edx
ja 0x14049
cmpl %ecx, %edx
jle 0x14049
cmpq $0x4, %r14
jb 0x1403c
jmp 0x14049
movq 0x78(%rbx), %rcx
leaq 0xd596(%rip), %rdi      # 0x2141e
pushq $0x6
popq %rsi
pushq $0x1
popq %rdx
callq 0x2130
jmp 0x13f69
leaq 0xd578(%rip), %rax      # 0x21417
movq %rsi, %rdi
movq %rax, %rsi
jmp 0x13da2
leal -0x1(%r15), %edx
leaq 0xd6a8(%rip), %rsi      # 0x2155d
xorl %eax, %eax
callq 0x20c0
jmp 0x13f69
decl %r12d
leaq 0xd692(%rip), %rsi      # 0x2155d
movl %r12d, %edx
xorl %eax, %eax
callq 0x20c0
testw $0x3f00, %r15w          # imm = 0x3F00
je 0x13f12
movq 0x78(%rbx), %rcx
leaq 0xd51e(%rip), %rdi      # 0x21406
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
callq 0x2130
movl %r15d, %edx
shrl $0x8, %edx
andl $0x3f, %edx
movq 0x78(%rbx), %rdi
cmpl 0x48(%rbx), %edx
jle 0x13f2e
subl %edx, %ebp
leaq 0xd654(%rip), %rsi      # 0x21562
movl %ebp, %edx
jmp 0x13f37
testq %r14, %r14
je 0x13f5d
movq 0x78(%rbx), %rdi
leaq 0xd4ee(%rip), %rsi      # 0x21410
movq %r14, %rdx
xorl %eax, %eax
callq 0x20c0
jmp 0x13f5d
decl %edx
leaq 0xd626(%rip), %rsi      # 0x2155d
xorl %eax, %eax
callq 0x20c0
testq %r14, %r14
je 0x13f5d
movq 0x78(%rbx), %rdi
pushq $0x1
popq %rdx
movl %r14d, %ecx
shll %cl, %edx
leaq 0xd4b4(%rip), %rsi      # 0x2140a
xorl %eax, %eax
callq 0x20c0
movq 0x78(%rbx), %rsi
pushq $0x5d
popq %rdi
callq 0x20a0
movq 0x78(%rbx), %rsi
pushq $0xa
popq %rdi
callq 0x20a0
testl %r15d, %r15d
pushq $0xe
popq %r8
cmovnel %r15d, %r8d
cmpl $0x3f, %r8d
jg 0x13fc7
movslq %r8d, %r14
movl $0xf10f, %eax           # imm = 0xF10F
btq %r8, %rax
jb 0x13ffc
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x1354f
testq %rax, %rax
je 0x1402c
movb $0x2, (%rax)
addq $0x2, 0x60(%rbx)
movb $0x41, 0x1(%rax)
leaq 0xd1f5(%rip), %rcx      # 0x211b0
movb (%r14,%rcx), %cl
addb $0x58, %cl
movb %cl, 0x2(%rax)
jmp 0x14024
leaq 0x8(%r14), %r9
cmpl $0x8d, %r15d
cmovneq %r14, %r9
movl $0x1, 0x70(%rbx)
xorl %r12d, %r12d
pushq $0x1
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x14061
testq %rax, %rax
je 0x1402c
movb $-0x71, (%rax)
jmp 0x13ce2
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x1354f
testq %rax, %rax
je 0x1402c
movb $0x1, (%rax)
incq 0x60(%rbx)
leaq 0xd196(%rip), %rcx      # 0x211b0
movb (%r14,%rcx), %cl
addb $0x58, %cl
movb %cl, 0x1(%rax)
xorl %r12d, %r12d
jmp 0x13ce2
movl (%rbx), %r12d
jmp 0x13ce2
testw $0x3f00, %r15w          # imm = 0x3F00
jne 0x14049
cmpl $0x4000, %r15d          # imm = 0x4000
jb 0x13d45
leaq 0xd2af(%rip), %rdi      # 0x212ff
movl $0x3da, %esi            # imm = 0x3DA
xorl %eax, %eax
callq 0x2080
callq 0x2040