// File: /workspace/github_c_makefile_star2_O1/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, %ebp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r14
callq 0xfc9d0
testl %eax, %eax
js 0xf5c25
movl %eax, %r13d
movq 0x8(%r12), %r15
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
cmpl $0x2, %ebp
jne 0xf58a9
testb $0x1, 0x3(%r12)
je 0xf58a9
movq 0x8(%rbx), %rax
movq 0x48(%rax), %rax
leaq 0x2a199(%rip), %rsi     # 0x11fa34
movl $0xc, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq *0x10(%rax)
cmpl $0x3e9, %r13d           # imm = 0x3E9
movq %r14, 0x8(%rsp)
jl 0xf5955
movq 0x8(%r12), %rax
movq 0x10(%rsp), %rcx
movsd (%rcx), %xmm1
movl $0x1, %ecx
cmpq $0x2, %rax
jl 0xf58f1
movq 0x10(%rsp), %rdx
movsd (%rdx,%rcx,8), %xmm0
ucomisd %xmm1, %xmm0
jne 0xf58f1
jp 0xf58f1
incq %rcx
cmpq %rcx, %rax
jne 0xf58d9
movq %rax, %rcx
cmpq %rax, %rcx
jne 0xf5955
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movsd %xmm1, 0x10(%rsp)
callq 0xfcc05
movl 0x468(%r14), %ecx
leaq 0x2db0e(%rip), %rdx     # 0x123426
leaq 0x30(%rsp), %r15
movl $0x80, %esi
movq %r15, %rdi
movsd 0x10(%rsp), %xmm0
movb $0x1, %al
callq 0x9210
movslq %eax, %rdx
movq 0x8(%rbx), %rax
movq 0x48(%rax), %rax
movq 0x8(%rsp), %rdi
movq %r15, %rsi
movq 0x8(%rsp), %r15
movq %rbx, %rcx
callq *0x10(%rax)
jmp 0xf5c02
movq 0x18(%r12), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xf5971
movq 0x10(%rax), %rsi
cmpq $0x1, %rsi
jne 0xf5b30
movq %r15, 0x28(%rsp)
movl %ebp, 0x1c(%rsp)
movq 0x8(%rbx), %rax
movq 0x48(%rax), %rax
leaq 0x2daa3(%rip), %rsi     # 0x12342c
movl $0x3, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq *0x10(%rax)
movl 0x468(%r14), %ecx
movq 0x10(%rsp), %rax
movsd (%rax), %xmm0
leaq 0x2da83(%rip), %rdx     # 0x123431
leaq 0x30(%rsp), %r15
movl $0x7c, %esi
movq %r15, %rdi
movb $0x1, %al
callq 0x9210
movl %eax, %ebp
movslq %eax, %r14
movq %r15, %rdi
movl $0x2e, %esi
callq 0x91d0
testq %rax, %rax
movq %r12, 0x20(%rsp)
jne 0xf59f6
leaq 0x30(%rsp), %rdi
movl $0x65, %esi
callq 0x91d0
testq %rax, %rax
je 0xf5c37
movq 0x8(%rsp), %r15
movslq %r13d, %r12
movq 0x8(%rbx), %rax
movq 0x48(%rax), %rax
leaq 0x30(%rsp), %rsi
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq *0x10(%rax)
cmpl $0x2, %r13d
jl 0xf5aee
movl $0x1, %r14d
leaq 0x30(%rsp), %r13
movl 0x468(%r15), %ecx
movq 0x10(%rsp), %rax
movsd (%rax,%r14,8), %xmm0
movl $0x7c, %esi
movq %r13, %rdi
leaq 0x2d9e3(%rip), %rdx     # 0x123430
movb $0x1, %al
callq 0x9210
movl %eax, %r15d
movslq %eax, %rbp
movq %r13, %rdi
movl $0x2e, %esi
callq 0x91d0
testq %rax, %rax
jne 0xf5a7e
movq %r13, %rdi
movl $0x65, %esi
callq 0x91d0
testq %rax, %rax
je 0xf5aa4
movq 0x8(%rsp), %r15
movq 0x8(%rbx), %rax
movq 0x48(%rax), %rax
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq *0x10(%rax)
incq %r14
cmpq %r14, %r12
jne 0xf5a2c
jmp 0xf5aee
cmpl $0x3, %r15d
movq 0x8(%rsp), %r15
jne 0xf5adc
movl $0x3, %ebp
cmpb $0x6e, 0x30(%rsp)
jne 0xf5ac8
movl $0x6e616e2b, 0x30(%rsp) # imm = 0x6E616E2B
movl $0x4, %ebp
cmpb $0x69, 0x30(%rsp)
jne 0xf5adc
movl $0x666e692b, 0x30(%rsp) # imm = 0x666E692B
movl $0x4, %ebp
movw $0x302e, 0x30(%rsp,%rbp) # imm = 0x302E
movb $0x0, 0x32(%rsp,%rbp)
addq $0x2, %rbp
jmp 0xf5a83
movq 0x8(%rbx), %rax
movq 0x48(%rax), %rax
cmpq %r12, 0x28(%rsp)
jle 0xf5b14
leaq 0x2badc(%rip), %rsi     # 0x1215e0
movl $0x5, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq *0x10(%rax)
jmp 0xf5b22
movq %r15, %rdi
movl $0x29, %esi
movq %rbx, %rdx
callq *0x8(%rax)
movq 0x20(%rsp), %r12
movl 0x1c(%rsp), %ebp
jmp 0xf5c02
xorl %eax, %eax
movb %al, 0x7(%rsp)
leaq 0xb6f(%r14), %r8
movb %al, 0xb6f(%r14)
leaq 0x298e5(%rip), %rcx     # 0x11f430
movabsq $0x6666666666666667, %rdi # imm = 0x6666666666666667
movq %rsi, %rax
imulq %rdi
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x2, %rdx
addq %rax, %rdx
leaq (%rdx,%rdx), %rax
leaq (%rax,%rax,4), %rax
movq %rsi, %r9
subq %rax, %r9
movb (%rcx,%r9), %al
movb %al, -0x1(%r8)
decq %r8
addq $0x9, %rsi
cmpq $0x12, %rsi
movq %rdx, %rsi
ja 0xf5b55
leaq 0x2d8a0(%rip), %rsi     # 0x123436
leaq 0x2aa84(%rip), %rcx     # 0x120621
leaq 0x30(%rsp), %r15
movq %r15, %rdi
movq %r8, %rdx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0xd1cb
movq 0x8(%rbx), %rcx
movq 0x48(%rcx), %r8
movq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %rdi, %r15
movq %rax, %rdx
movq %rbx, %rcx
callq *0x10(%r8)
movq 0x18(%r12), %rax
movq 0x20(%rax), %rax
movl 0x10(%rax), %eax
leaq 0x7(%rsp), %r10
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movl %r13d, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq $0x0
pushq $0x0
pushq %r10
pushq %rax
callq 0xfcf2f
addq $0x20, %rsp
cmpl $0x2, %ebp
jne 0xf5c25
testb $0x1, 0x3(%r12)
je 0xf5c25
movq 0x8(%rbx), %rax
movq 0x48(%rax), %rax
movq %r15, %rdi
movl $0x29, %esi
movq %rbx, %rdx
callq *0x8(%rax)
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x3, %ebp
movq 0x8(%rsp), %r15
jne 0xf5c71
movl $0x3, %r14d
cmpb $0x6e, 0x30(%rsp)
jne 0xf5c5c
movl $0x6e616e2b, 0x30(%rsp) # imm = 0x6E616E2B
movl $0x4, %r14d
cmpb $0x69, 0x30(%rsp)
jne 0xf5c71
movl $0x666e692b, 0x30(%rsp) # imm = 0x666E692B
movl $0x4, %r14d
movw $0x302e, 0x30(%rsp,%r14) # imm = 0x302E
movb $0x0, 0x32(%rsp,%r14)
addq $0x2, %r14
jmp 0xf59fb