// File: /workspace/github_c_makefile_star2_O1/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 0x8bc55
leal -0xb(%rcx), %eax
cmpl $0x3, %eax
ja 0x8be61
leaq 0x850b2(%rip), %rcx     # 0x110c90
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 0x8bfb9
cvtsi2sd %rax, %xmm0
cvtsi2sd %rcx, %xmm1
mulsd %xmm0, %xmm1
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8bc2e
movq %rbx, %rdi
movsd %xmm1, 0x8(%rsp)
callq 0xb389
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 0x8bd2c
addl $-0xb, %ecx
cmpl $0x3, %ecx
ja 0x8be9c
leaq 0x84fe8(%rip), %rdx     # 0x110c50
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x8bf24
leaq 0x84ffc(%rip), %rcx     # 0x110c80
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r15), %r15
imulq 0x8(%r14), %r15
cmpq $0x7ff, %r15            # imm = 0x7FF
ja 0x8c0fd
leaq 0xc2ca6(%rip), %rax     # 0x14e950
movq (%rax,%r15,8), %rax
jmp 0x8bd2c
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x8bf24
leaq 0x84fad(%rip), %rcx     # 0x110c70
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cvtsi2sdq 0x8(%r15), %xmm0
mulsd 0x8(%r14), %xmm0
jmp 0x8bce6
movsd 0x8(%r14), %xmm0
mulsd 0x8(%r15), %xmm0
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8bd0a
movq %rbx, %rdi
movsd %xmm0, 0x8(%rsp)
callq 0xb389
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 0x8bf24
leaq 0x84f13(%rip), %rcx     # 0x110c60
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cvtsi2sdq 0x8(%r15), %xmm1
jmp 0x8c0c0
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 0x8c0e8
leal -0xb(%rax), %ecx
cmpl $0x2, %ecx
jb 0x8bddf
cmpl $0xd, %eax
je 0x8c08b
cmpl $0xe, %eax
jne 0x8bf24
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 0x8c0d8
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0x8bdfe
movq %rbx, %rdi
callq 0xb389
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 0x103a6d
leaq 0xc6b08(%rip), %rsi     # 0x152970
movq 0x1358(%rbx), %r12
movq 0x110(%rbx), %r13
movq 0x90(%rbx), %rax
movq 0x98(%rbx), %rdx
cmpb $0x0, (%rcx,%rsi)
je 0x8bfd2
cmpq %rdx, %rax
jbe 0x8bf42
jmp 0x8bf4a
movq 0x1358(%rbx), %r12
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x8bec2
movq %rbx, %rdi
callq 0xb389
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 0xd1490(%rip), %r8      # 0x15d3a0
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl $0x1, %r9d
jmp 0x8bfa7
movq 0x1358(%rbx), %r12
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x8bf4a
movq %rbx, %rdi
callq 0xb389
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 0xd1408(%rip), %r8      # 0x15d3a0
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 0xf3da
cmpq $0x7ff, %r14            # imm = 0x7FF
ja 0x8bfe0
leaq 0xc2987(%rip), %rax     # 0x14e950
movq (%rax,%r14,8), %rax
jmp 0x8bd2c
cmpq %rdx, %rax
jbe 0x8beba
jmp 0x8bec2
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8bff8
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xb, (%rax)
movq %r14, 0x8(%rax)
jmp 0x8bd2c
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 0x8bce6
movsd 0x8(%r14), %xmm1
jmp 0x8c0d8
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 0x8c0c0
cvtsi2sdq 0x8(%r14), %xmm0
jmp 0x8bce0
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 0x8bce6
movsd 0x8(%r15), %xmm1
movsd 0x8(%r14), %xmm0
mulsd %xmm1, %xmm0
mulsd 0x10(%r14), %xmm1
jmp 0x8c0e8
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 0xe101
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8c115
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xb, (%rax)
movq %r15, 0x8(%rax)
jmp 0x8bd2c