// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: fx_sqr_1
static s7_pointer fx_sqr_1(s7_scheme *sc, s7_pointer x)
                {
                    if (is_float(x)) return(make_real(sc, real(x) * real(x)));

                    switch (type(x))
                    {
#if HAVE_OVERFLOW_CHECKS
                        case T_INTEGER:
                            {
                                s7_int val;
                                if (multiply_overflow(integer(x), integer(x), &val))
                                    return(make_real(sc, (double)integer(x) * (double)integer(x)));
                                return(make_integer(sc, val));
                            }
                        case T_RATIO:
                            {
                                s7_int num, den;
                                if ((multiply_overflow(numerator(x), numerator(x), &num)) ||
                                        (multiply_overflow(denominator(x), denominator(x), &den)))
                                    return(make_real(sc, fraction(x) * fraction(x)));
                                return(s7_make_ratio(sc, num, den));
                            }
#else
                        case T_INTEGER: return(s7_make_integer(sc, integer(x) * integer(x)));
                        case T_RATIO:   return(s7_make_ratio(sc, numerator(x) * numerator(x), denominator(x) * denominator(x)));
#endif
                        case T_REAL:    return(make_real(sc, real(x) * real(x)));
                        case T_COMPLEX: return(s7_make_complex(sc, real_part(x) * real_part(x) - imag_part(x) * imag_part(x), 2.0 * real_part(x) * imag_part(x)));
                        default:
                                        return(method_or_bust_with_type(sc, x, sc->multiply_symbol, list_2(sc, x, x), a_number_string, 1));
                    }
                    return(x);
                }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movzbl (%rsi), %eax
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0xc14a2
leaq 0x501eb(%rip), %rcx     # 0x111598
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rax
movq %rax, %r14
imulq %rax, %r14
jno 0xc1535
cvtsi2sd %rax, %xmm0
jmp 0xc13d4
movsd 0x8(%r14), %xmm0
mulsd %xmm0, %xmm0
jmp 0xc1450
movsd 0x8(%r14), %xmm1
movsd 0x10(%r14), %xmm2
movapd %xmm1, %xmm0
addsd %xmm1, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm2
mulsd %xmm0, %xmm0
subsd %xmm2, %xmm0
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xe101
movq 0x8(%r14), %rax
movq %rax, %rsi
imulq %rax, %rsi
jo 0xc142c
movq 0x10(%r14), %rdx
imulq %rdx, %rdx
jno 0xc154e
movq %rax, 0x18(%rsp)
fildll 0x18(%rsp)
movq 0x10(%r14), %rax
movq %rax, 0x20(%rsp)
fildll 0x20(%rsp)
fdivrp %st, %st(1)
fmul %st, %st(0)
fstpl 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0xc1474
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 $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x1358(%rbx), %r15
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0xc14c8
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 %r14, 0x8(%rax)
movq %r12, 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 0x9be8a(%rip), %r8      # 0x15d3a0
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl $0x1, %r9d
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xf3da
cmpq $0x7ff, %r14            # imm = 0x7FF
ja 0xc1561
leaq 0x8d40b(%rip), %rax     # 0x14e950
movq (%rax,%r14,8), %rax
jmp 0xc1496
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xdd7f
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0xc1579
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 0xc1496