// File: /workspace/github_c_makefile_star2_O2/BernardTatin[P]s7sh/s7.c
// Function: float_vector_to_port
static void float_vector_to_port(s7_scheme *sc, s7_pointer vect, s7_pointer port, use_write_t use_write, shared_info *ignored)
    {
        s7_int i, len, plen;
        bool too_long;
        char buf[128];
        s7_double *els;

        len = print_vector_length(sc, vect, port, use_write);
        if (len < 0) return;
        too_long = (len < vector_length(vect));
        els = float_vector_floats(vect);

        if ((use_write == P_READABLE) &&
                (is_immutable_vector(vect)))
            port_write_string(port)(sc, "(immutable! ", 12, port);

        if (len > 1000)
        {
            s7_int vlen;
            s7_double first;
            vlen = vector_length(vect);
            first = els[0];
            for (i = 1; i < vlen; i++)
                if (els[i] != first)
                    break;
            if (i == vlen)
            {
                make_vector_to_port(sc, vect, port);
                plen = snprintf(buf, 128, "%.*g)", sc->float_format_precision, first);
                port_write_string(port)(sc, buf, plen, port);
                if ((use_write == P_READABLE) &&
                        (is_immutable_vector(vect)))
                    port_write_character(port)(sc, ')', port);
                return;
            }
        }

        if (vector_rank(vect) == 1)
        {
            port_write_string(port)(sc, "#r(", 3, port);
            plen = snprintf(buf, 124, "%.*g", sc->float_format_precision, els[0]); /* 124 so floatify has room */
            floatify(buf, &plen);
            port_write_string(port)(sc, buf, plen, port);
            for (i = 1; i < len; i++)
            {
                plen = snprintf(buf, 124, " %.*g", sc->float_format_precision, els[i]);
                floatify(buf, &plen);
                port_write_string(port)(sc, buf, plen, port);
            }
            if (too_long)
                port_write_string(port)(sc, " ...)", 5, port);
            else port_write_character(port)(sc, ')', port);
        }
        else
        {
            bool last = false;
            plen = catstrs_direct(buf, "#r", pos_int_to_str_direct(sc, vector_ndims(vect)), "d", NULL);
            port_write_string(port)(sc, buf, plen, port);
            multivector_to_port(sc, vect, port, len, 0, 0, vector_ndims(vect), &last, P_DISPLAY, NULL);
        }

        if ((use_write == P_READABLE) &&
                (is_immutable_vector(vect)))
            port_write_character(port)(sc, ')', port);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movl %ecx, %r14d
movq %rdx, %rbx
movq %rsi, %rbp
movq %rdi, (%rsp)
callq 0xc1eec
testl %eax, %eax
js 0xbcc65
movl %eax, %r12d
movq 0x8(%rbp), %r15
movq 0x10(%rbp), %r13
cmpl $0x2, %r14d
jne 0xbc9b6
testb $0x1, 0x3(%rbp)
je 0xbc9b6
movq 0x8(%rbx), %rax
movq 0x48(%rax), %rax
leaq 0x2613b(%rip), %rsi     # 0xe2ae4
pushq $0xc
popq %rdx
movq (%rsp), %rdi
movq %rbx, %rcx
callq *0x10(%rax)
cmpl $0x3e9, %r12d           # imm = 0x3E9
movq %rbx, 0x8(%rsp)
jb 0xbca74
movq 0x8(%rbp), %rax
movsd (%r13), %xmm1
cmpq $0x2, %rax
pushq $0x1
popq %rdx
movq %rdx, %rcx
cmovgeq %rax, %rcx
cmpq %rax, %rdx
jge 0xbc9fc
movsd (%r13,%rdx,8), %xmm0
ucomisd %xmm1, %xmm0
jne 0xbc9f9
jp 0xbc9f9
incq %rdx
jmp 0xbc9e0
movq %rdx, %rcx
cmpq %rax, %rcx
jne 0xbca74
movl %r14d, %r12d
movq (%rsp), %r14
movq %r14, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
movsd %xmm1, 0x10(%rsp)
callq 0xc2073
movl 0x468(%r14), %ecx
leaq 0x29aac(%rip), %rdx     # 0xe64d6
leaq 0x30(%rsp), %r15
movl $0x80, %esi
movq %r15, %rdi
movsd 0x10(%rsp), %xmm0
movb $0x1, %al
callq 0x8210
movslq %eax, %rdx
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq %r14, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq *0x10(%rax)
cmpl $0x2, %r12d
je 0xbcc4a
jmp 0xbcc65
movl %r14d, 0x10(%rsp)
movq 0x18(%rbp), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xbca94
movq 0x10(%rax), %rsi
cmpq $0x1, %rsi
jne 0xbcbba
movq %r15, 0x28(%rsp)
movq %rbp, 0x20(%rsp)
movslq %r12d, %rbp
pushq $0x1
popq %r14
movq 0x8(%rbx), %rax
movq 0x48(%rax), %rax
leaq 0x29a28(%rip), %rsi     # 0xe64dc
pushq $0x3
popq %rdx
movq (%rsp), %r15
movq %r15, %rdi
movq %rbx, %rcx
callq *0x10(%rax)
movl 0x468(%r15), %ecx
movsd (%r13), %xmm0
leaq 0x29a09(%rip), %rdx     # 0xe64e1
leaq 0x30(%rsp), %r12
pushq $0x7c
popq %rsi
movq %r12, %rdi
movb $0x1, %al
callq 0x8210
cltq
leaq 0x18(%rsp), %rbx
movq %rax, (%rbx)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x73cb4
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rax
movq 0x48(%rax), %rax
movq (%rbx), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq *0x10(%rax)
leaq 0x299c1(%rip), %r15     # 0xe64e0
movq (%rsp), %rbx
cmpq %rbp, %r14
jge 0xbcb79
movl 0x468(%rbx), %ecx
movsd (%r13,%r14,8), %xmm0
movq %r12, %rdi
pushq $0x7c
popq %rsi
movq %r15, %rdx
movb $0x1, %al
callq 0x8210
cltq
movq %rax, 0x18(%rsp)
movq %r12, %rdi
leaq 0x18(%rsp), %rsi
callq 0x73cb4
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rax
movq 0x48(%rax), %rax
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq *0x10(%rax)
incq %r14
jmp 0xbcb23
movq 0x8(%rsp), %rbx
movq 0x8(%rbx), %rax
movq 0x48(%rax), %rax
cmpq %rbp, 0x28(%rsp)
jle 0xbcba3
leaq 0x27afc(%rip), %rsi     # 0xe4690
pushq $0x5
popq %rdx
movq (%rsp), %rdi
movq %rbx, %rcx
callq *0x10(%rax)
jmp 0xbcbb0
pushq $0x29
popq %rsi
movq (%rsp), %rdi
movq %rbx, %rdx
callq *0x8(%rax)
movq 0x20(%rsp), %rbp
jmp 0xbcc41
leaq 0x18(%rsp), %r14
movb $0x0, (%r14)
movq (%rsp), %r13
movq %r13, %rdi
callq 0x91f9
leaq 0x29910(%rip), %rsi     # 0xe64e6
leaq 0x26af4(%rip), %rcx     # 0xe36d1
leaq 0x30(%rsp), %r15
movq %r15, %rdi
movq %rax, %rdx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0xb3a5
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq 0x48(%rcx), %r8
movq %r13, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rbx
movq %rax, %rdx
movq %rbx, %rcx
callq *0x10(%r8)
movq 0x18(%rbp), %rax
movq 0x20(%rax), %rax
movl 0x10(%rax), %eax
movq %r13, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
movl %r12d, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq $0x0
pushq $0x0
pushq %r14
pushq %rax
callq 0xc21db
addq $0x20, %rsp
movl 0x10(%rsp), %eax
cmpl $0x2, %eax
jne 0xbcc65
testb $0x1, 0x3(%rbp)
je 0xbcc65
movq 0x8(%rbx), %rax
movq 0x48(%rax), %rax
pushq $0x29
popq %rsi
movq (%rsp), %rdi
movq %rbx, %rdx
callq *0x8(%rax)
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq