// File: /workspace/github_c_makefile_star2_O2/BernardTatin[P]s7sh/s7.c
// Function: make_vector_to_port
static void make_vector_to_port(s7_scheme *sc, s7_pointer vect, s7_pointer port)
    {
        s7_int vlen;
        int32_t plen;
        char buf[128];
        const char* vtyp = "";

        if (is_float_vector(vect))
            vtyp = "float-";
        else
        {
            if (is_int_vector(vect))
                vtyp = "int-";
            else
            {
                if (is_byte_vector(vect))
                    vtyp = "byte-";
            }
        }

        vlen = vector_length(vect);
        if (vector_rank(vect) == 1)
        {
            plen = catstrs_direct(buf, "(make-", vtyp, "vector ", integer_to_string_no_length(sc, vlen), " ", NULL);
            port_write_string(port)(sc, buf, plen, port);
        }
        else
        {
            s7_int dim;
            plen = catstrs_direct(buf, "(make-", vtyp, "vector '(", NULL);
            port_write_string(port)(sc, buf, plen, port);
            for (dim = 0; dim < vector_ndims(vect) - 1; dim++)
            {
                plen = catstrs_direct(buf, integer_to_string_no_length(sc, vector_dimension(vect, dim)), " ", NULL);
                port_write_string(port)(sc, buf, plen, port);
            }
            plen = catstrs_direct(buf, integer_to_string_no_length(sc, vector_dimension(vect, dim)), ") ", NULL);
            port_write_string(port)(sc, buf, plen, port);
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movb (%rsi), %al
addb $-0x16, %al
cmpb $0x2, %al
ja 0xc20a8
movzbl %al, %eax
leaq 0x13e01(%rip), %rcx     # 0xd5ea0
movslq (%rcx,%rax,4), %r13
addq %rcx, %r13
jmp 0xc20af
leaq 0x263bf(%rip), %r13     # 0xe846e
movq 0x8(%r15), %rsi
movq 0x18(%r15), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xc20c7
cmpq $0x1, 0x10(%rax)
jne 0xc2103
movq %r14, %rdi
callq 0x73af1
andq $0x0, (%rsp)
leaq 0x2442b(%rip), %rsi     # 0xe6506
leaq 0x24452(%rip), %rcx     # 0xe6534
leaq 0x2446d(%rip), %r9      # 0xe6556
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r13, %rdx
movq %rax, %r8
xorl %eax, %eax
callq 0xb3a5
jmp 0xc21b1
leaq 0x243fc(%rip), %rsi     # 0xe6506
leaq 0x243fc(%rip), %rcx     # 0xe650d
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r13, %rdx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0xb3a5
movq 0x8(%rbx), %rcx
movq 0x48(%rcx), %r8
movslq %eax, %rdx
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rcx
callq *0x10(%r8)
xorl %ebp, %ebp
movq 0x18(%r15), %rax
movq 0x20(%rax), %rax
movq (%rax), %rcx
movq 0x10(%rax), %r13
decq %r13
movq (%rcx,%rbp,8), %rsi
movq %r14, %rdi
callq 0x73af1
cmpq %r13, %rbp
jge 0xc2196
movq %r12, %rdi
movq %rax, %rsi
leaq 0x243e6(%rip), %rdx     # 0xe6556
xorl %ecx, %ecx
xorl %eax, %eax
callq 0xb3a5
movq 0x8(%rbx), %rcx
movq 0x48(%rcx), %r8
movslq %eax, %rdx
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rcx
callq *0x10(%r8)
incq %rbp
jmp 0xc2140
leaq 0x245b8(%rip), %rdx     # 0xe6755
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
xorl %eax, %eax
callq 0xb3a5
movq 0x8(%rbx), %rcx
movq 0x48(%rcx), %r8
movslq %eax, %rdx
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rcx
callq *0x10(%r8)
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq