// File: /workspace/github_c_makefile_star2_O3/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 0x15a0a
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 0x15d8a
movq %rdx, %r14
movl 0x4c(%rbx), %edx
cmpl $-0x1, %edx
je 0x15d8a
movl %esi, %r15d
testl %esi, %esi
je 0x15a58
setg %cl
cmpl %r15d, %eax
setge %sil
testb %sil, %cl
jne 0x15a58
movl $0xc, %ecx
subl %edx, %ecx
cmpl %r15d, %ecx
setge %dl
cmpl $0xd, %r15d
setge %sil
orb %dl, %sil
jne 0x15ad4
testq %r14, %r14
jne 0x15d8a
movq 0x78(%rbx), %rcx
testq %rcx, %rcx
je 0x15cad
leaq 0xda6c(%rip), %rdi      # 0x234e1
movl $0xd, %esi
movl $0x1, %edx
callq 0x2130
testb $0x40, %r15b
jne 0x15aba
testb %r15b, %r15b
js 0x15afb
testl %r15d, %r15d
je 0x15ba3
movq 0x78(%rbx), %rdi
cmpl %r15d, 0x48(%rbx)
jge 0x15bd4
movl $0xc, %edx
subl %r15d, %edx
leaq 0xdaed(%rip), %rsi      # 0x235a2
jmp 0x15bdf
movq 0x78(%rbx), %rdi
leaq 0xd97c(%rip), %rsi      # 0x23441
movq %r14, %rdx
xorl %eax, %eax
callq 0x20c0
jmp 0x15c9f
cmpl $0x8d, %r15d
jne 0x15b35
testq %r14, %r14
js 0x15d8a
movslq 0x80(%rbx), %rax
cmpq %r14, %rax
jg 0x15a61
jmp 0x15d8a
movl %r15d, %ebp
movq 0x78(%rbx), %rsi
andl $0x3f, %ebp
je 0x15bc2
movl $0x5b, %edi
callq 0x20a0
movq 0x78(%rbx), %rdi
cmpl 0x48(%rbx), %ebp
jle 0x15beb
movl $0xc, %edx
subl %ebp, %edx
leaq 0xda72(%rip), %rsi      # 0x235a2
jmp 0x15bf6
testb %r15b, %r15b
jns 0x15d8a
movl %r15d, %edx
andl $0x3f, %edx
je 0x15d74
cmpl %eax, %edx
jle 0x15b5f
cmpl $0xc, %edx
ja 0x15d8a
cmpl %ecx, %edx
jle 0x15d8a
testl $0x3f00, %r15d          # imm = 0x3F00
je 0x15d7d
movl %r15d, %edx
shrl $0x8, %edx
andl $0x3f, %edx
setne %sil
cmpl %eax, %edx
setle %al
testb %al, %sil
jne 0x15b94
cmpl $0xc, %edx
ja 0x15d8a
cmpl %ecx, %edx
jle 0x15d8a
cmpq $0x4, %r14
jb 0x15d7d
jmp 0x15d8a
movq 0x78(%rbx), %rcx
leaq 0xd8b0(%rip), %rdi      # 0x2345e
movl $0x6, %esi
movl $0x1, %edx
callq 0x2130
jmp 0x15c9f
leaq 0xd88e(%rip), %rax      # 0x23457
movq %rsi, %rdi
movq %rax, %rsi
jmp 0x15ac5
leal -0x1(%r15), %edx
leaq 0xd9be(%rip), %rsi      # 0x2359d
xorl %eax, %eax
callq 0x20c0
jmp 0x15c9f
decl %ebp
leaq 0xd9a9(%rip), %rsi      # 0x2359d
movl %ebp, %edx
xorl %eax, %eax
callq 0x20c0
testl $0x3f00, %r15d          # imm = 0x3F00
je 0x15c44
movq 0x78(%rbx), %rcx
leaq 0xd835(%rip), %rdi      # 0x23446
movl $0x3, %esi
movl $0x1, %edx
callq 0x2130
movl %r15d, %edx
shrl $0x8, %edx
andl $0x3f, %edx
movq 0x78(%rbx), %rdi
cmpl 0x48(%rbx), %edx
jle 0x15c60
movl $0xc, %eax
subl %edx, %eax
leaq 0xd962(%rip), %rsi      # 0x235a2
movl %eax, %edx
jmp 0x15c69
testq %r14, %r14
je 0x15c91
movq 0x78(%rbx), %rdi
leaq 0xd7fc(%rip), %rsi      # 0x23450
movq %r14, %rdx
xorl %eax, %eax
callq 0x20c0
jmp 0x15c91
decl %edx
leaq 0xd934(%rip), %rsi      # 0x2359d
xorl %eax, %eax
callq 0x20c0
testq %r14, %r14
je 0x15c91
movq 0x78(%rbx), %rdi
movl $0x1, %edx
movl %r14d, %ecx
shll %cl, %edx
leaq 0xd7c0(%rip), %rsi      # 0x2344a
xorl %eax, %eax
callq 0x20c0
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 0x15d03
movslq %r8d, %r14
movl $0xf10f, %eax           # imm = 0xF10F
btq %r8, %rax
jb 0x15d3a
movl $0x3, %esi
movq %rbx, %rdi
callq 0x15218
testq %rax, %rax
je 0x15d6c
movb $0x2, (%rax)
addq $0x2, 0x60(%rbx)
movb $0x41, 0x1(%rax)
leaq 0xd4f9(%rip), %rcx      # 0x231f0
movb (%r14,%rcx), %cl
addb $0x58, %cl
movb %cl, 0x2(%rax)
jmp 0x15d64
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 0x15da2
testq %rax, %rax
je 0x15d6c
movb $-0x71, (%rax)
jmp 0x159fe
movl $0x2, %esi
movq %rbx, %rdi
callq 0x15218
testq %rax, %rax
je 0x15d6c
movb $0x1, (%rax)
incq 0x60(%rbx)
leaq 0xd496(%rip), %rcx      # 0x231f0
movb (%r14,%rcx), %cl
addb $0x58, %cl
movb %cl, 0x1(%rax)
xorl %r12d, %r12d
jmp 0x159fe
movl (%rbx), %r12d
jmp 0x159fe
testl $0x3f00, %r15d          # imm = 0x3F00
jne 0x15d8a
cmpl $0x4000, %r15d          # imm = 0x4000
jb 0x15a61
leaq 0xd5ae(%rip), %rdi      # 0x2333f
movl $0x3da, %esi            # imm = 0x3DA
xorl %eax, %eax
callq 0x2080
callq 0x2040