// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: c_quo_dbl
static s7_int c_quo_dbl(s7_scheme *sc, s7_double x, s7_double y)
    {
        s7_double xf;

        if (y == 0.0)
            division_by_zero_error(sc, sc->quotient_symbol, set_elist_2(sc, wrap_real(sc, x), wrap_real2(sc, y)));
        if ((is_inf(y)) || (is_NaN(y)))
            wrong_type_argument_with_type(sc, sc->quotient_symbol, 2, wrap_real(sc, y), a_normal_real_string);

        xf = x / y;
        if ((xf > s7_int_max) ||
                (xf < s7_int_min))
            simple_out_of_range(sc, sc->quotient_symbol, wrap_real(sc, xf), its_too_large_string);

        if (xf > 0.0)
            return((s7_int)floor(xf));
        return((s7_int)ceil(xf));
    }

// Assembly:
subq $0x98, %rsp
movq %rdi, 0x88(%rsp)
movsd %xmm0, 0x80(%rsp)
movsd %xmm1, 0x78(%rsp)
movsd 0x78(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x1c13b7
jp 0x1c13b7
movq 0x88(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x88(%rsp), %rax
movq 0x1418(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x88(%rsp), %rdi
movsd 0x80(%rsp), %xmm0
callq 0x1bc2f0
movq %rax, 0x38(%rsp)
movq 0x88(%rsp), %rdi
movsd 0x78(%rsp), %xmm0
callq 0x1c1630
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq %rax, %rdx
callq 0xb830
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq %rax, %rdx
callq 0x123b0
movsd 0x78(%rsp), %xmm1
movaps %xmm1, %xmm0
movaps 0x206d9(%rip), %xmm2    # 0x1e1aa0
pand %xmm2, %xmm0
movq %xmm1, %rdx
movl $0x1, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x0, %rdx
cmovll %eax, %ecx
movsd 0x20587(%rip), %xmm1    # 0x1e1970
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setnp %sil
sete %dl
testb %sil, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
jne 0x1c1415
movsd 0x78(%rsp), %xmm0
callq 0x13860
testb $0x1, %al
jne 0x1c1415
jmp 0x1c1545
movq 0x88(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x88(%rsp), %rax
movq 0x1418(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
movq $0x2, 0x68(%rsp)
movq 0x68(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x1c146e
movq 0x68(%rsp), %rcx
leaq 0x55020(%rip), %rax     # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, 0x18(%rsp)
jmp 0x1c14f1
jmp 0x1c1470
movq 0x88(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x88(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x1c149d
movq 0x88(%rsp), %rdi
callq 0xc670
movq 0x88(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq $0xb, (%rax)
movq 0x68(%rsp), %rcx
movq 0x58(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x58(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x88(%rsp), %rdi
movsd 0x78(%rsp), %xmm0
callq 0x1bc2f0
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rax, %rcx
movq 0x88(%rsp), %rax
movq 0x140(%rax), %r8
movq 0x59028(%rip), %r9      # 0x21a568
callq 0xc560
movsd 0x80(%rsp), %xmm0
divsd 0x78(%rsp), %xmm0
movsd %xmm0, 0x70(%rsp)
movsd 0x70(%rsp), %xmm0
cvtsi2sdq 0x591cf(%rip), %xmm1 # 0x21a738
ucomisd %xmm1, %xmm0
ja 0x1c1584
movsd 0x70(%rsp), %xmm1
cvtsi2sdq 0x58fda(%rip), %xmm0 # 0x21a558
ucomisd %xmm1, %xmm0
jbe 0x1c15d3
movq 0x88(%rsp), %rax
movq %rax, (%rsp)
movq 0x88(%rsp), %rax
movq 0x1418(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x88(%rsp), %rdi
movsd 0x70(%rsp), %xmm0
callq 0x1bc2f0
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rax, %rdx
movq 0x58fa2(%rip), %rcx     # 0x21a570
callq 0x45240
movsd 0x70(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x1c15fc
movsd 0x70(%rsp), %xmm0
callq 0x95f0
cvttsd2si %xmm0, %rax
movq %rax, 0x90(%rsp)
jmp 0x1c1614
movsd 0x70(%rsp), %xmm0
callq 0x96c0
cvttsd2si %xmm0, %rax
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
addq $0x98, %rsp
retq
nopw %cs:(%rax,%rax)