// File: /workspace/github_c_makefile_star2_O2/mmcco[P]sljit/sljit_src/sljitNativeX86_common.c
// Function: sljit_emit_fop2
int sljit_emit_fop2(struct sljit_compiler *compiler, int op,
	int dst, long dstw,
	int src1, long src1w,
	int src2, long src2w)
{
	int dst_r;

	CHECK_ERROR();
	CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w));
	ADJUST_LOCAL_OFFSET(dst, dstw);
	ADJUST_LOCAL_OFFSET(src1, src1w);
	ADJUST_LOCAL_OFFSET(src2, src2w);

#if (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64)
	compiler->mode32 = 1;
#endif

	if (FAST_IS_REG(dst)) {
		dst_r = dst;
		if (dst == src1)
			; /* Do nothing here. */
		else if (dst == src2 && (op == SLJIT_DADD || op == SLJIT_DMUL)) {
			/* Swap arguments. */
			src2 = src1;
			src2w = src1w;
		}
		else if (dst != src2)
			FAIL_IF(emit_sse2_load(compiler, op & SLJIT_SINGLE_OP, dst_r, src1, src1w));
		else {
			dst_r = TMP_FREG;
			FAIL_IF(emit_sse2_load(compiler, op & SLJIT_SINGLE_OP, TMP_FREG, src1, src1w));
		}
	}
	else {
		dst_r = TMP_FREG;
		FAIL_IF(emit_sse2_load(compiler, op & SLJIT_SINGLE_OP, TMP_FREG, src1, src1w));
	}

	switch (GET_OPCODE(op)) {
	case SLJIT_DADD:
		FAIL_IF(emit_sse2(compiler, ADDSD_x_xm, op & SLJIT_SINGLE_OP, dst_r, src2, src2w));
		break;

	case SLJIT_DSUB:
		FAIL_IF(emit_sse2(compiler, SUBSD_x_xm, op & SLJIT_SINGLE_OP, dst_r, src2, src2w));
		break;

	case SLJIT_DMUL:
		FAIL_IF(emit_sse2(compiler, MULSD_x_xm, op & SLJIT_SINGLE_OP, dst_r, src2, src2w));
		break;

	case SLJIT_DDIV:
		FAIL_IF(emit_sse2(compiler, DIVSD_x_xm, op & SLJIT_SINGLE_OP, dst_r, src2, src2w));
		break;
	}

	if (dst_r == TMP_FREG)
		return emit_sse2_store(compiler, op & SLJIT_SINGLE_OP, dst, dstw, TMP_FREG);
	return SLJIT_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl (%rdi), %eax
testl %eax, %eax
jne 0x1a96e
movl %esi, %r10d
movl %esi, %eax
andl $0xffff80fc, %eax       # imm = 0xFFFF80FC
cmpl $0xa0, %eax
jne 0x1aa1b
movq %rcx, %r13
testw $0x3e00, %r10w          # imm = 0x3E00
sete %al
cmpl $0x4000, %r10d          # imm = 0x4000
setb %cl
orb %al, %cl
je 0x1aa0d
cmpl $0x200, %r10d           # imm = 0x200
jae 0x1aa0d
movq %rdi, %rbx
movl 0x50(%rdi), %ecx
cmpl $-0x1, %ecx
je 0x1a9bb
movl 0x54(%rbx), %eax
cmpl $-0x1, %eax
je 0x1a9bb
movl %r8d, %r15d
movl %edx, %r14d
movq 0x68(%rsp), %r11
movl 0x60(%rsp), %ebp
testl %r8d, %r8d
setg %dl
cmpl %r8d, %ecx
setge %sil
pushq $0x6
popq %r12
testb %sil, %dl
jne 0x1a136
movl %r12d, %edx
subl %eax, %edx
cmpl %r15d, %edx
setge %dl
cmpl $0x7, %r15d
setge %sil
orb %dl, %sil
jne 0x1a260
testq %r9, %r9
jne 0x1a9bb
testl %ebp, %ebp
setg %dl
cmpl %ebp, %ecx
setge %sil
testb %sil, %dl
jne 0x1a169
movl %r12d, %edx
subl %eax, %edx
cmpl %ebp, %edx
setge %dl
cmpl $0x7, %ebp
setge %sil
orb %dl, %sil
jne 0x1a28b
testq %r11, %r11
jne 0x1a9dc
testl %r14d, %r14d
setg %dl
cmpl %r14d, %ecx
setge %cl
testb %cl, %dl
jne 0x1a19c
movl %r12d, %ecx
subl %eax, %ecx
cmpl %r14d, %ecx
setge %al
cmpl $0x7, %r14d
setge %cl
orb %al, %cl
jne 0x1a2b5
testq %r13, %r13
jne 0x1a9ff
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
movl %r10d, 0xc(%rsp)
je 0x1a825
movq %r11, 0x10(%rsp)
movq %r9, 0x18(%rsp)
movl %r10d, %eax
andl $0xffff80ff, %eax       # imm = 0xFFFF80FF
cmpl $0x100, %r10d           # imm = 0x100
leaq 0x7237(%rip), %rcx      # 0x2140e
leaq 0x732a(%rip), %rdx      # 0x21508
cmovbq %rcx, %rdx
addl $0xffffff60, %eax       # imm = 0xFFFFFF60
leaq 0x6fee(%rip), %rsi      # 0x211dc
movslq (%rsi,%rax,4), %rcx
addq %rsi, %rcx
leaq 0x7386(%rip), %rsi      # 0x21582
xorl %eax, %eax
callq 0x20c0
movq 0x78(%rbx), %rax
testb %r14b, %r14b
js 0x1a228
cmpl %r14d, 0x50(%rbx)
jge 0x1a2e0
movl %r12d, %edx
subl %r14d, %edx
leaq 0x733e(%rip), %rsi      # 0x21561
jmp 0x1a2eb
movl %r14d, %r12d
andl $0x3f, %r12d
je 0x1a498
pushq $0x5b
popq %rdi
movq %rax, %rsi
callq 0x20a0
movq 0x78(%rbx), %rdi
cmpl 0x48(%rbx), %r12d
jle 0x1a4b5
pushq $0xc
popq %rdx
subl %r12d, %edx
leaq 0x7307(%rip), %rsi      # 0x21562
jmp 0x1a4c2
cmpl $0x8d, %r15d
jne 0x1a2fa
testq %r9, %r9
js 0x1a9bb
movslq 0x80(%rbx), %rdx
cmpq %r9, %rdx
jg 0x1a13f
jmp 0x1a9bb
cmpl $0x8d, %ebp
jne 0x1a386
testq %r11, %r11
js 0x1a9dc
movslq 0x80(%rbx), %rdx
cmpq %r11, %rdx
jg 0x1a172
jmp 0x1a9dc
cmpl $0x8d, %r14d
jne 0x1a40f
testq %r13, %r13
js 0x1a9ff
movslq 0x80(%rbx), %rax
cmpq %r13, %rax
jg 0x1a1a5
jmp 0x1a9ff
leal -0x1(%r14), %edx
leaq 0x7271(%rip), %rsi      # 0x2155c
movq %rax, %rdi
xorl %eax, %eax
callq 0x20c0
jmp 0x1a564
testb %r15b, %r15b
jns 0x1a9bb
movl %r15d, %edx
andl $0x3f, %edx
je 0x1a9a6
movl 0x48(%rbx), %esi
cmpl %esi, %edx
jle 0x1a32d
cmpl $0xc, %edx
ja 0x1a9bb
pushq $0xc
popq %rdi
subl 0x4c(%rbx), %edi
cmpl %edi, %edx
jle 0x1a9bb
movl %r15d, %edx
andl $0x3f00, %edx           # imm = 0x3F00
je 0x1a9ae
movl %r15d, %edi
shrl $0x8, %edi
andl $0x3f, %edi
setne %r8b
cmpl %esi, %edi
setle %sil
testb %sil, %r8b
jne 0x1a36b
cmpl $0xc, %edi
ja 0x1a9bb
pushq $0xc
popq %rsi
subl 0x4c(%rbx), %esi
cmpl %esi, %edi
jle 0x1a9bb
cmpl $0xd00, %edx            # imm = 0xD00
je 0x1a9bb
cmpq $0x4, %r9
jb 0x1a9ae
jmp 0x1a9bb
testb %bpl, %bpl
jns 0x1a9dc
movl %ebp, %edx
andl $0x3f, %edx
je 0x1a9c9
movl 0x48(%rbx), %esi
cmpl %esi, %edx
jle 0x1a3b8
cmpl $0xc, %edx
ja 0x1a9dc
pushq $0xc
popq %rdi
subl 0x4c(%rbx), %edi
cmpl %edi, %edx
jle 0x1a9dc
movl %ebp, %edx
andl $0x3f00, %edx           # imm = 0x3F00
je 0x1a9d0
movl %ebp, %edi
shrl $0x8, %edi
andl $0x3f, %edi
setne %r8b
cmpl %esi, %edi
setle %sil
testb %sil, %r8b
jne 0x1a3f4
cmpl $0xc, %edi
ja 0x1a9dc
pushq $0xc
popq %rsi
subl 0x4c(%rbx), %esi
cmpl %esi, %edi
jle 0x1a9dc
cmpl $0xd00, %edx            # imm = 0xD00
je 0x1a9dc
cmpq $0x4, %r11
jb 0x1a9d0
jmp 0x1a9dc
testb %r14b, %r14b
jns 0x1a9ff
movl %r14d, %eax
andl $0x3f, %eax
je 0x1a9ea
movl 0x48(%rbx), %ecx
cmpl %ecx, %eax
jle 0x1a442
cmpl $0xc, %eax
ja 0x1a9ff
pushq $0xc
popq %rdx
subl 0x4c(%rbx), %edx
cmpl %edx, %eax
jle 0x1a9ff
movl %r14d, %eax
andl $0x3f00, %eax           # imm = 0x3F00
je 0x1a9f2
movl %r14d, %edx
shrl $0x8, %edx
andl $0x3f, %edx
setne %sil
cmpl %ecx, %edx
setle %cl
testb %cl, %sil
jne 0x1a47e
cmpl $0xc, %edx
ja 0x1a9ff
pushq $0xc
popq %rcx
subl 0x4c(%rbx), %ecx
cmpl %ecx, %edx
jle 0x1a9ff
cmpl $0xd00, %eax            # imm = 0xD00
je 0x1a9ff
cmpq $0x4, %r13
jb 0x1a9f2
jmp 0x1a9ff
leaq 0x6f78(%rip), %rsi      # 0x21417
movq %rax, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x20c0
pushq $0x6
popq %r12
jmp 0x1a564
decl %r12d
leaq 0x709e(%rip), %rsi      # 0x2155d
movl %r12d, %edx
xorl %eax, %eax
callq 0x20c0
testw $0x3f00, %r14w          # imm = 0x3F00
pushq $0x6
popq %r12
je 0x1a50d
movq 0x78(%rbx), %rcx
leaq 0x6f26(%rip), %rdi      # 0x21406
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
callq 0x2130
movl %r14d, %edx
shrl $0x8, %edx
andl $0x3f, %edx
movq 0x78(%rbx), %rdi
cmpl 0x48(%rbx), %edx
jle 0x1a529
pushq $0xc
popq %rax
subl %edx, %eax
leaq 0x7059(%rip), %rsi      # 0x21562
movl %eax, %edx
jmp 0x1a532
testq %r13, %r13
je 0x1a558
movq 0x78(%rbx), %rdi
leaq 0x6ef6(%rip), %rsi      # 0x21413
movq %r13, %rdx
xorl %eax, %eax
callq 0x20c0
jmp 0x1a558
decl %edx
leaq 0x702b(%rip), %rsi      # 0x2155d
xorl %eax, %eax
callq 0x20c0
testq %r13, %r13
je 0x1a558
movq 0x78(%rbx), %rdi
pushq $0x1
popq %rdx
movl %r13d, %ecx
shll %cl, %edx
leaq 0x6ebc(%rip), %rsi      # 0x2140d
xorl %eax, %eax
callq 0x20c0
movq 0x78(%rbx), %rsi
pushq $0x5d
popq %rdi
callq 0x20a0
movq 0x78(%rbx), %rcx
leaq 0x6fa4(%rip), %rdi      # 0x21513
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
callq 0x2130
movq 0x78(%rbx), %rax
testb %r15b, %r15b
js 0x1a598
cmpl %r15d, 0x50(%rbx)
jge 0x1a5cd
movl %r12d, %edx
subl %r15d, %edx
leaq 0x6fcb(%rip), %rsi      # 0x21561
jmp 0x1a5d8
movq %r13, 0x20(%rsp)
movl %r12d, %r13d
movl %r15d, %r12d
andl $0x3f, %r12d
je 0x1a5e7
pushq $0x5b
popq %rdi
movq %rax, %rsi
callq 0x20a0
movq 0x78(%rbx), %rdi
cmpl 0x48(%rbx), %r12d
jle 0x1a60a
pushq $0xc
popq %rdx
subl %r12d, %edx
leaq 0x6f97(%rip), %rsi      # 0x21562
jmp 0x1a617
leal -0x1(%r15), %edx
leaq 0x6f84(%rip), %rsi      # 0x2155c
movq %rax, %rdi
xorl %eax, %eax
callq 0x20c0
jmp 0x1a6c6
leaq 0x6e29(%rip), %rsi      # 0x21417
movq %rax, %rdi
movq 0x18(%rsp), %rdx
xorl %eax, %eax
callq 0x20c0
movl %r13d, %r12d
movq 0x20(%rsp), %r13
jmp 0x1a6c6
decl %r12d
leaq 0x6f49(%rip), %rsi      # 0x2155d
movl %r12d, %edx
xorl %eax, %eax
callq 0x20c0
testw $0x3f00, %r15w          # imm = 0x3F00
movl %r13d, %r12d
je 0x1a666
movq 0x78(%rbx), %rcx
leaq 0x6dd2(%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
movq 0x20(%rsp), %r13
jle 0x1a689
pushq $0xc
popq %rax
subl %edx, %eax
leaq 0x6f00(%rip), %rsi      # 0x21562
movl %eax, %edx
jmp 0x1a692
movq 0x18(%rsp), %rdx
testq %rdx, %rdx
movq 0x20(%rsp), %r13
je 0x1a6ba
movq 0x78(%rbx), %rdi
leaq 0x6d93(%rip), %rsi      # 0x21413
xorl %eax, %eax
callq 0x20c0
jmp 0x1a6ba
decl %edx
leaq 0x6ecb(%rip), %rsi      # 0x2155d
xorl %eax, %eax
callq 0x20c0
movq 0x18(%rsp), %rcx
testq %rcx, %rcx
je 0x1a6ba
movq 0x78(%rbx), %rdi
pushq $0x1
popq %rdx
shll %cl, %edx
leaq 0x6d5a(%rip), %rsi      # 0x2140d
xorl %eax, %eax
callq 0x20c0
movq 0x78(%rbx), %rsi
pushq $0x5d
popq %rdi
callq 0x20a0
movq 0x78(%rbx), %rcx
leaq 0x6e42(%rip), %rdi      # 0x21513
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
callq 0x2130
movq 0x78(%rbx), %rax
testb %bpl, %bpl
js 0x1a6fc
cmpl %ebp, 0x50(%rbx)
jge 0x1a729
subl %ebp, %r12d
leaq 0x6e6d(%rip), %rsi      # 0x21561
movq %rax, %rdi
movl %r12d, %edx
jmp 0x1a736
movl %ebp, %r12d
andl $0x3f, %r12d
je 0x1a742
pushq $0x5b
popq %rdi
movq %rax, %rsi
callq 0x20a0
movq 0x78(%rbx), %rdi
cmpl 0x48(%rbx), %r12d
jle 0x1a75d
pushq $0xc
popq %rdx
subl %r12d, %edx
leaq 0x6e3b(%rip), %rsi      # 0x21562
jmp 0x1a76a
leal -0x1(%rbp), %edx
leaq 0x6e29(%rip), %rsi      # 0x2155c
movq %rax, %rdi
xorl %eax, %eax
callq 0x20c0
jmp 0x1a80a
leaq 0x6cce(%rip), %rsi      # 0x21417
movq %rax, %rdi
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0x20c0
jmp 0x1a80a
decl %r12d
leaq 0x6df6(%rip), %rsi      # 0x2155d
movl %r12d, %edx
xorl %eax, %eax
callq 0x20c0
testw $0x3f00, %bp            # imm = 0x3F00
je 0x1a7af
movq 0x78(%rbx), %rcx
leaq 0x6c83(%rip), %rdi      # 0x21406
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
callq 0x2130
movl %ebp, %edx
shrl $0x8, %edx
andl $0x3f, %edx
movq 0x78(%rbx), %rdi
cmpl 0x48(%rbx), %edx
jle 0x1a7cd
pushq $0xc
popq %rax
subl %edx, %eax
leaq 0x6db7(%rip), %rsi      # 0x21562
movl %eax, %edx
jmp 0x1a7d6
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x1a7fe
movq 0x78(%rbx), %rdi
leaq 0x6c4f(%rip), %rsi      # 0x21413
xorl %eax, %eax
callq 0x20c0
jmp 0x1a7fe
decl %edx
leaq 0x6d87(%rip), %rsi      # 0x2155d
xorl %eax, %eax
callq 0x20c0
movq 0x10(%rsp), %rcx
testq %rcx, %rcx
je 0x1a7fe
movq 0x78(%rbx), %rdi
pushq $0x1
popq %rdx
shll %cl, %edx
leaq 0x6c16(%rip), %rsi      # 0x2140d
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
movl 0xc(%rsp), %r10d
movq 0x18(%rsp), %r9
movq 0x10(%rsp), %r11
leaq 0x8(%r13), %r12
movl $0x8d, %ecx
cmpl %ecx, %r14d
cmovneq %r13, %r12
leaq 0x8(%r9), %rax
cmpl %ecx, %r15d
cmovneq %r9, %rax
leaq 0x8(%r11), %r13
cmpl %ecx, %ebp
cmovneq %r11, %r13
movl $0x1, 0x70(%rbx)
cmpl $0x3f, %r14d
jg 0x1a864
cmpl %r15d, %r14d
jne 0x1a896
movl %ebp, %r8d
jmp 0x1a900
andl $0x100, %r10d           # imm = 0x100
movq %rbx, %rdi
movl %r10d, %esi
xorl %edx, %edx
movl %r15d, %ecx
movq %rax, %r8
callq 0x1a01b
movl 0xc(%rsp), %r10d
movl %ebp, %r8d
movl $0x0, %r15d
testl %eax, %eax
jne 0x1a963
jmp 0x1a900
movl %r14d, %ecx
xorl %ebp, %ecx
movl %r10d, %edx
andl $0x1a1, %edx            # imm = 0x1A1
xorl $0xa0, %edx
orl %ecx, %edx
jne 0x1a8b9
movl %r15d, %r8d
movq %rax, %r13
movl %ebp, %r15d
jmp 0x1a900
andl $0x100, %r10d           # imm = 0x100
movq %rbx, %rdi
movl %r10d, %esi
cmpl %ebp, %r14d
jne 0x1a8e3
xorl %edx, %edx
movl %r15d, %ecx
movq %rax, %r8
callq 0x1a01b
movl %ebp, %r8d
movl $0x0, %r15d
jmp 0x1a8f7
movl %r14d, %edx
movl %r15d, %ecx
movq %rax, %r8
callq 0x1a01b
movl %ebp, %r8d
movl %r14d, %r15d
testl %eax, %eax
movl 0xc(%rsp), %r10d
jne 0x1a963
movzbl %r10b, %eax
addl $0xffffff60, %eax       # imm = 0xFFFFFF60
cmpl $0x3, %eax
ja 0x1a967
leaq 0x686b(%rip), %rcx      # 0x21180
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
andl $0x100, %r10d           # imm = 0x100
pushq $0x58
jmp 0x1a948
andl $0x100, %r10d           # imm = 0x100
pushq $0x59
jmp 0x1a948
andl $0x100, %r10d           # imm = 0x100
pushq $0x5e
jmp 0x1a948
andl $0x100, %r10d           # imm = 0x100
pushq $0x5c
popq %rsi
movq %rbx, %rdi
movl %r10d, %edx
movl %r15d, %ecx
movq %r13, %r9
callq 0x1aa33
movl 0xc(%rsp), %r10d
testl %eax, %eax
je 0x1a967
movl (%rbx), %eax
jmp 0x1a96e
xorl %eax, %eax
testl %r15d, %r15d
je 0x1a97d
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
andl $0x100, %r10d           # imm = 0x100
movq %rbx, %rdi
movl %r10d, %esi
movl %r14d, %edx
movq %r12, %rcx
xorl %r8d, %r8d
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1a02d
testw $0x3f00, %r15w          # imm = 0x3F00
jne 0x1a9bb
cmpl $0x4000, %r15d          # imm = 0x4000
jb 0x1a13f
leaq 0x693d(%rip), %rdi      # 0x212ff
movl $0x4f8, %esi            # imm = 0x4F8
jmp 0x1aa27
testw $0x3f00, %bp            # imm = 0x3F00
jne 0x1a9dc
cmpl $0x4000, %ebp           # imm = 0x4000
jb 0x1a172
leaq 0x691c(%rip), %rdi      # 0x212ff
movl $0x4f9, %esi            # imm = 0x4F9
jmp 0x1aa27
testw $0x3f00, %r14w          # imm = 0x3F00
jne 0x1a9ff
cmpl $0x4000, %r14d          # imm = 0x4000
jb 0x1a1a5
leaq 0x68f9(%rip), %rdi      # 0x212ff
movl $0x4fa, %esi            # imm = 0x4FA
jmp 0x1aa27
leaq 0x68eb(%rip), %rdi      # 0x212ff
movl $0x4f7, %esi            # imm = 0x4F7
jmp 0x1aa27
leaq 0x68dd(%rip), %rdi      # 0x212ff
movl $0x4f6, %esi            # imm = 0x4F6
xorl %eax, %eax
callq 0x2080
callq 0x2040