// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: multiply_p_pp
static s7_pointer multiply_p_pp(s7_scheme *sc, s7_pointer x, s7_pointer y)
    {
        if (type(x) == type(y))
        {
            if (is_t_real(x))
                return(make_real(sc, real(x) * real(y)));
            switch (type(x))
            {
#if HAVE_OVERFLOW_CHECKS
                case T_INTEGER:
                    {
                        s7_int n;
                        if (multiply_overflow(integer(x), integer(y), &n))
                            return(make_real(sc, ((s7_double)integer(x)) * ((s7_double)integer(y))));
                        return(make_integer(sc, n));
                    }
#else
                case T_INTEGER: return(make_integer(sc, integer(x) * integer(y)));
#endif
                case T_RATIO:   return(g_multiply(sc, list_2(sc, x, y)));
                case T_REAL:    return(make_real(sc, real(x) * real(y)));
                case T_COMPLEX:
                                {
                                    s7_double r1, r2, i1, i2;
                                    r1 = real_part(x);
                                    r2 = real_part(y);
                                    i1 = imag_part(x);
                                    i2 = imag_part(y);
                                    return(s7_make_complex(sc, r1 * r2 - i1 * i2, r1 * i2 + r2 * i1));
                                }
                default:
                                if (!is_number(x))
                                    return(method_or_bust_with_type(sc, x, sc->multiply_symbol, list_2(sc, x, y), a_number_string, 1));
                                return(method_or_bust_with_type(sc, y, sc->multiply_symbol, list_2(sc, x, y), a_number_string, 2));
            }
        }

        switch (type(x))
        {
            case T_INTEGER:
                switch (type(y))
                {
                    case T_INTEGER: return(make_integer(sc, integer(x) * integer(y)));
                    case T_RATIO:   return(g_multiply(sc, list_2(sc, x, y)));
                    case T_REAL:    return(make_real(sc, integer(x) * real(y)));
                    case T_COMPLEX: return(s7_make_complex(sc, integer(x) * real_part(y), integer(x) * imag_part(y)));
                    default:
                                    return(method_or_bust_with_type(sc, y, sc->multiply_symbol, list_2(sc, x, y), a_number_string, 2));
                }

            case T_RATIO:
                switch (type(y))
                {
                    case T_INTEGER:
                    case T_RATIO:    return(g_multiply(sc, list_2(sc, x, y)));
                    case T_REAL:     return(make_real(sc, fraction(x) * real(y)));
                    case T_COMPLEX:
                                     {
                                         s7_double frac;
                                         frac = fraction(x);
                                         return(s7_make_complex(sc, frac * real_part(y), frac * imag_part(y)));
                                     }
                    default:
                                     return(method_or_bust_with_type(sc, y, sc->multiply_symbol, list_2(sc, x, y), a_number_string, 2));
                }

            case T_REAL:
                switch (type(y))
                {
                    case T_INTEGER: return(make_real(sc, real(x) * integer(y)));
                    case T_RATIO:   return(make_real(sc, real(x) * fraction(y)));
                    case T_REAL:    return(make_real(sc, real(x) * real(y)));
                    case T_COMPLEX: return(s7_make_complex(sc, real(x) * real_part(y), real(x) * imag_part(y)));
                    default:
                                    return(method_or_bust_with_type(sc, y, sc->multiply_symbol, list_2(sc, x, y), a_number_string, 2));
                }

            case T_COMPLEX:
                switch (type(y))
                {
                    case T_INTEGER: return(s7_make_complex(sc, real_part(x) * integer(y), imag_part(x) * integer(y)));
                    case T_RATIO:
                                    {
                                        s7_double frac;
                                        frac = fraction(y);
                                        return(s7_make_complex(sc, real_part(x) * frac, imag_part(x) * frac));
                                    }
                    case T_REAL:    return(s7_make_complex(sc, real_part(x) * real(y), imag_part(x) * real(y)));
                    case T_COMPLEX:
                                    {
                                        s7_double r1, r2, i1, i2;
                                        r1 = real_part(x);
                                        r2 = real_part(y);
                                        i1 = imag_part(x);
                                        i2 = imag_part(y);
                                        return(s7_make_complex(sc, r1 * r2 - i1 * i2, r1 * i2 + r2 * i1));
                                    }
                    default:
                                    return(method_or_bust_with_type(sc, y, sc->multiply_symbol, list_2(sc, x, y), a_number_string, 2));
                }

            default:
                return(method_or_bust_with_type(sc, x, sc->multiply_symbol, list_2(sc, x, y), a_number_string, 1));
        }
        return(x);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movzbl (%rsi), %ecx
movzbl (%rdx), %eax
cmpb %al, %cl
jne 0x855a3
leal -0xb(%rcx), %eax
cmpl $0x3, %eax
ja 0x857af
leaq 0x827e4(%rip), %rcx     # 0x107d10
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rax
movq 0x8(%r15), %rcx
movq %rax, %r14
imulq %rcx, %r14
jno 0x85907
cvtsi2sd %rax, %xmm0
cvtsi2sd %rcx, %xmm1
mulsd %xmm0, %xmm1
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x85583
movq %rbx, %rdi
movsd %xmm1, 0x8(%rsp)
callq 0xa550
movsd 0x8(%rsp), %xmm1
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xd, (%rax)
movsd %xmm1, 0x8(%rax)
jmp 0x8567a
addl $-0xb, %ecx
cmpl $0x3, %ecx
ja 0x857ea
leaq 0x8271a(%rip), %rdx     # 0x107cd0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x85872
leaq 0x8272e(%rip), %rcx     # 0x107d00
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r15), %r15
imulq 0x8(%r14), %r15
cmpq $0x7ff, %r15            # imm = 0x7FF
ja 0x85a4b
leaq 0xc1358(%rip), %rax     # 0x146950
movq (%rax,%r15,8), %rax
jmp 0x8567a
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x85872
leaq 0x826df(%rip), %rcx     # 0x107cf0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cvtsi2sdq 0x8(%r15), %xmm0
mulsd 0x8(%r14), %xmm0
jmp 0x85634
movsd 0x8(%r14), %xmm0
mulsd 0x8(%r15), %xmm0
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8565f
movq %rbx, %rdi
movsd %xmm0, 0x8(%rsp)
callq 0xa550
movsd 0x8(%rsp), %xmm0
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xd, (%rax)
movsd %xmm0, 0x8(%rax)
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x85872
leaq 0x82645(%rip), %rcx     # 0x107ce0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cvtsi2sdq 0x8(%r15), %xmm1
jmp 0x85a0e
movsd 0x8(%r14), %xmm1
movsd 0x10(%r14), %xmm2
movsd 0x8(%r15), %xmm3
movsd 0x10(%r15), %xmm4
movapd %xmm1, %xmm0
mulsd %xmm4, %xmm1
mulsd %xmm2, %xmm4
mulsd %xmm3, %xmm0
subsd %xmm4, %xmm0
mulsd %xmm2, %xmm3
addsd %xmm3, %xmm1
jmp 0x85a36
leal -0xb(%rax), %ecx
cmpl $0x2, %ecx
jb 0x8572d
cmpl $0xd, %eax
je 0x859d9
cmpl $0xe, %eax
jne 0x85872
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movq %rax, 0x38(%rsp)
fildll 0x38(%rsp)
movq %rcx, 0x30(%rsp)
fildll 0x30(%rsp)
fdivrp %st, %st(1)
fstpl 0x28(%rsp)
movsd 0x28(%rsp), %xmm1
jmp 0x85a26
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0x85753
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movl $0x200001, %ecx         # imm = 0x200001
movq %rcx, (%rax)
movq %r15, 0x8(%rax)
movq %r12, 0x10(%rax)
movq 0x90(%rbx), %rdx
leaq -0x8(%rdx), %rsi
movq %rsi, 0x90(%rbx)
movq -0x8(%rdx), %rsi
movq %rcx, (%rsi)
movq %r14, 0x8(%rsi)
movq %rax, 0x10(%rsi)
movq 0x1358(%rbx), %rdx
movq %rbx, %rdi
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xfac9e
leaq 0xc51ba(%rip), %rsi     # 0x14a970
movq 0x1358(%rbx), %r12
movq 0x110(%rbx), %r13
movq 0x90(%rbx), %rax
movq 0x98(%rbx), %rdx
cmpb $0x0, (%rcx,%rsi)
je 0x85920
cmpq %rdx, %rax
jbe 0x85890
jmp 0x8589f
movq 0x1358(%rbx), %r12
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x85817
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movl $0x200001, %edx         # imm = 0x200001
movq %rdx, (%rax)
movq %r15, 0x8(%rax)
movq %r13, 0x10(%rax)
movq 0x90(%rbx), %rcx
leaq -0x8(%rcx), %rsi
movq %rsi, 0x90(%rbx)
movq -0x8(%rcx), %rcx
movq %rdx, (%rcx)
movq %r14, 0x8(%rcx)
movq %rax, 0x10(%rcx)
movq 0xcfb42(%rip), %r8      # 0x1553a0
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl $0x1, %r9d
jmp 0x858f5
movq 0x1358(%rbx), %r12
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x8589f
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movl $0x200001, %edx         # imm = 0x200001
movq %rdx, (%rax)
movq %r15, 0x8(%rax)
movq %r13, 0x10(%rax)
movq 0x90(%rbx), %rcx
leaq -0x8(%rcx), %rsi
movq %rsi, 0x90(%rbx)
movq -0x8(%rcx), %rcx
movq %rdx, (%rcx)
movq %r14, 0x8(%rcx)
movq %rax, 0x10(%rcx)
movq 0xcfaba(%rip), %r8      # 0x1553a0
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl $0x2, %r9d
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xe659
cmpq $0x7ff, %r14            # imm = 0x7FF
ja 0x8592e
leaq 0xc1039(%rip), %rax     # 0x146950
movq (%rax,%r14,8), %rax
jmp 0x8567a
cmpq %rdx, %rax
jbe 0x85808
jmp 0x85817
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8594d
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xb, (%rax)
movq %r14, 0x8(%rax)
jmp 0x8567a
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
movq %rax, 0x50(%rsp)
fildll 0x50(%rsp)
movq %rcx, 0x48(%rsp)
fildll 0x48(%rsp)
fdivrp %st, %st(1)
fmull 0x8(%r14)
fstpl 0x40(%rsp)
movsd 0x40(%rsp), %xmm0
jmp 0x85634
movsd 0x8(%r14), %xmm1
jmp 0x85a26
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
movq %rax, 0x68(%rsp)
fildll 0x68(%rsp)
movq %rcx, 0x60(%rsp)
fildll 0x60(%rsp)
fdivrp %st, %st(1)
fstpl 0x58(%rsp)
movsd 0x58(%rsp), %xmm1
jmp 0x85a0e
cvtsi2sdq 0x8(%r14), %xmm0
jmp 0x8562e
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movq %rax, 0x20(%rsp)
fildll 0x20(%rsp)
movq %rcx, 0x18(%rsp)
fildll 0x18(%rsp)
fdivrp %st, %st(1)
fmull 0x8(%r15)
fstpl 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
jmp 0x85634
movsd 0x8(%r15), %xmm1
movsd 0x8(%r14), %xmm0
mulsd %xmm1, %xmm0
mulsd 0x10(%r14), %xmm1
jmp 0x85a36
cvtsi2sdq 0x8(%r14), %xmm1
movsd 0x8(%r15), %xmm0
mulsd %xmm1, %xmm0
mulsd 0x10(%r15), %xmm1
movq %rbx, %rdi
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xd387
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x85a6a
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xb, (%rax)
movq %r15, 0x8(%rax)
jmp 0x8567a