// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: leq_b_7pp
static inline bool leq_b_7pp(s7_scheme *sc, s7_pointer x, s7_pointer y)
    {
        if (type(x) == type(y))
        {
            if (type(x) == T_INTEGER)
                return(integer(x) <= integer(y));
            if (type(x) == T_REAL)
                return(real(x) <= real(y));
            if (type(x) == T_RATIO)
                return(fraction(x) <= fraction(y));
        }

        switch (type(x))
        {
            case T_INTEGER:
                switch (type(y))
                {
                    case T_INTEGER:
                        return(integer(x) <= integer(y));

                    case T_RATIO:
                        return(g_less_or_equal(sc, set_plist_2(sc, x, y)) != sc->F);

                    case T_REAL:
                        if (is_NaN(real(y))) return(false);
                        return(integer(x) <= real(y));

                    default:
                        return(method_or_bust(sc, y, sc->leq_symbol, list_2(sc, x, y), T_REAL, 2) != sc->F);
                }
                break;

            case T_RATIO:
                return(g_less_or_equal(sc, set_plist_2(sc, x, y)) != sc->F);

            case T_REAL:
                switch (type(y))
                {
                    case T_INTEGER:
                        if (is_NaN(real(x))) return(false);
                        return(real(x) <= integer(y));

                    case T_RATIO:
                        if (is_NaN(real(x))) return(false);
                        return(real(x) <= fraction(y));

                    case T_REAL:
                        if (is_NaN(real(x))) return(false);
                        return(real(x) <= real(y));

                    default:
                        return(method_or_bust(sc, y, sc->leq_symbol, list_2(sc, x, y), T_REAL, 2) != sc->F);
                }
                break;

            default:
                return(method_or_bust(sc, x, sc->leq_symbol, list_2(sc, x, y), T_REAL, 1) != sc->F);
        }
        return(true);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movzbl (%rsi), %ecx
movzbl (%rdx), %eax
cmpb %al, %cl
jne 0x89be7
cmpl $0xd, %ecx
je 0x89d18
cmpl $0xc, %ecx
je 0x89cd7
cmpl $0xb, %ecx
jne 0x89c1a
movq 0x8(%r15), %rax
cmpq 0x8(%r14), %rax
setle %al
jmp 0x89e48
cmpl $0xd, %ecx
je 0x89d29
cmpl $0xc, %ecx
je 0x89ca3
cmpl $0xb, %ecx
jne 0x89c1a
cmpl $0xd, %eax
je 0x89e2f
cmpl $0xc, %eax
je 0x89ca3
cmpl $0xb, %eax
je 0x89bd7
jmp 0x89d5b
movq 0x1220(%rbx), %r12
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x89c47
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 %r14, 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 %r15, 0x8(%rcx)
movq %rax, 0x10(%rcx)
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl $0xd, %r8d
movl $0x1, %r9d
callq 0xe42d
jmp 0x89cc8
movq 0x708(%rbx), %rax
movq %r15, 0x8(%rax)
movq 0x710(%rbx), %rax
movq %r14, 0x8(%rax)
movq 0x708(%rbx), %rsi
movq %rbx, %rdi
callq 0x6dbfb
cmpq 0x120(%rbx), %rax
setne %al
jmp 0x89e48
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
movq %rax, 0x10(%rsp)
fildll 0x10(%rsp)
movq %rcx, 0x8(%rsp)
fildll 0x8(%rsp)
fdivrp %st, %st(1)
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)
fucompi %st(1), %st
fstp %st(0)
jmp 0x89e45
movsd 0x8(%r14), %xmm0
ucomisd 0x8(%r15), %xmm0
jmp 0x89e45
cmpl $0xd, %eax
je 0x89e17
cmpl $0xc, %eax
je 0x89de2
cmpl $0xb, %eax
jne 0x89d5b
movsd 0x8(%r15), %xmm0
ucomisd %xmm0, %xmm0
jp 0x89e56
cvtsi2sdq 0x8(%r14), %xmm1
jmp 0x89e29
movq 0x1220(%rbx), %r12
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x89d88
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 %r14, 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 %r15, 0x8(%rcx)
movq %rax, 0x10(%rcx)
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl $0xd, %r8d
movl $0x2, %r9d
jmp 0x89c9c
movsd 0x8(%r15), %xmm0
ucomisd %xmm0, %xmm0
jp 0x89e56
movsd %xmm0, 0x28(%rsp)
fldl 0x28(%rsp)
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movq %rax, 0x38(%rsp)
fildll 0x38(%rsp)
movq %rcx, 0x30(%rsp)
fildll 0x30(%rsp)
jmp 0x89d0d
movsd 0x8(%r15), %xmm0
ucomisd %xmm0, %xmm0
jp 0x89e56
movsd 0x8(%r14), %xmm1
ucomisd %xmm0, %xmm1
jmp 0x89e45
movsd 0x8(%r14), %xmm0
ucomisd %xmm0, %xmm0
jp 0x89e56
cvtsi2sdq 0x8(%r15), %xmm1
ucomisd %xmm1, %xmm0
setae %al
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
xorl %eax, %eax
jmp 0x89e48