// File: /workspace/github_c_makefile_star2_O2/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 0x6b193
leal -0xb(%rcx), %eax
cmpl $0x3, %eax
ja 0x6b398
leaq 0x68bd4(%rip), %rcx     # 0xd3cf0
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 0x6b4e6
cvtsi2sd %rax, %xmm0
cvtsi2sd %rcx, %xmm1
mulsd %xmm0, %xmm1
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6b173
movq %rbx, %rdi
movsd %xmm1, 0x8(%rsp)
callq 0x9c27
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 0x6b26a
addl $-0xb, %ecx
cmpl $0x3, %ecx
ja 0x6b3d3
leaq 0x68b0a(%rip), %rdx     # 0xd3cb0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x6b453
leaq 0x68b1e(%rip), %rcx     # 0xd3ce0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r15), %r15
imulq 0x8(%r14), %r15
cmpq $0x7ff, %r15            # imm = 0x7FF
ja 0x6b62a
leaq 0xaa768(%rip), %rax     # 0x115950
movq (%rax,%r15,8), %rax
jmp 0x6b26a
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x6b453
leaq 0x68acf(%rip), %rcx     # 0xd3cd0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cvtsi2sdq 0x8(%r15), %xmm0
mulsd 0x8(%r14), %xmm0
jmp 0x6b224
movsd 0x8(%r14), %xmm0
mulsd 0x8(%r15), %xmm0
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6b24f
movq %rbx, %rdi
movsd %xmm0, 0x8(%rsp)
callq 0x9c27
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 0x6b453
leaq 0x68a35(%rip), %rcx     # 0xd3cc0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cvtsi2sdq 0x8(%r15), %xmm1
jmp 0x6b5ed
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 0x6b615
leal -0xb(%rax), %ecx
cmpl $0x2, %ecx
jb 0x6b31d
cmpl $0xd, %eax
je 0x6b5b8
cmpl $0xe, %eax
jne 0x6b453
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 0x6b605
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0x6b343
movq %rbx, %rdi
callq 0x9c27
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 %rbx, %rdi
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x561f9
leaq 0xae5d1(%rip), %rsi     # 0x119970
movq 0x1358(%rbx), %r12
movq 0x110(%rbx), %r13
movq 0x90(%rbx), %rax
movq 0x98(%rbx), %rdx
cmpb $0x0, (%rcx,%rsi)
je 0x6b4ff
cmpq %rdx, %rax
jbe 0x6b471
jmp 0x6b480
movq 0x1358(%rbx), %r12
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x6b400
movq %rbx, %rdi
callq 0x9c27
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 0xb8f59(%rip), %r8      # 0x1243a0
pushq $0x1
popq %r9
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x6b4d1
movq 0x1358(%rbx), %r12
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x6b480
movq %rbx, %rdi
callq 0x9c27
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 0xb8ed9(%rip), %r8      # 0x1243a0
pushq $0x2
popq %r9
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xcf9a
cmpq $0x7ff, %r14            # imm = 0x7FF
ja 0x6b50d
leaq 0xaa45a(%rip), %rax     # 0x115950
movq (%rax,%r14,8), %rax
jmp 0x6b26a
cmpq %rdx, %rax
jbe 0x6b3f1
jmp 0x6b400
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6b52c
movq %rbx, %rdi
callq 0x9c27
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xb, (%rax)
movq %r14, 0x8(%rax)
jmp 0x6b26a
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 0x6b224
movsd 0x8(%r14), %xmm1
jmp 0x6b605
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 0x6b5ed
cvtsi2sdq 0x8(%r14), %xmm0
jmp 0x6b21e
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 0x6b224
movsd 0x8(%r15), %xmm1
movsd 0x8(%r14), %xmm0
mulsd %xmm1, %xmm0
mulsd 0x10(%r14), %xmm1
jmp 0x6b615
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 0xc152
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6b649
movq %rbx, %rdi
callq 0x9c27
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xb, (%rax)
movq %r15, 0x8(%rax)
jmp 0x6b26a