// File: /workspace/github_c_makefile_star2_O0/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:
subq $0xe8, %rsp
movq %rdi, 0xe0(%rsp)
movq %rsi, 0xd8(%rsp)
movq %rdx, 0xd0(%rsp)
leaq 0x46723(%rip), %rax     # 0x1f44b9
movq %rax, 0x38(%rsp)
movq 0xd8(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x17, %eax
jne 0x1addb9
leaq 0x446c8(%rip), %rax     # 0x1f247a
movq %rax, 0x38(%rsp)
jmp 0x1addf7
movq 0xd8(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x16, %eax
jne 0x1addd7
leaq 0x446b1(%rip), %rax     # 0x1f2481
movq %rax, 0x38(%rsp)
jmp 0x1addf5
movq 0xd8(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x18, %eax
jne 0x1addf3
leaq 0x44698(%rip), %rax     # 0x1f2486
movq %rax, 0x38(%rsp)
jmp 0x1addf5
jmp 0x1addf7
movq 0xd8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xc8(%rsp)
movq 0xd8(%rsp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0x1ade39
movq 0xd8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x28(%rsp)
jmp 0x1ade45
movl $0x1, %eax
movq %rax, 0x28(%rsp)
jmp 0x1ade45
movq 0x28(%rsp), %rax
cmpq $0x1, %rax
jne 0x1adeef
leaq 0x40(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0xe0(%rsp), %rdi
movq 0xc8(%rsp), %rsi
callq 0xc70d0
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rdx
movq %rax, %r8
leaq 0x445fb(%rip), %rsi     # 0x1f248c
leaq 0x44622(%rip), %rcx     # 0x1f24ba
leaq 0x4463d(%rip), %r9      # 0x1f24dc
xorl %eax, %eax
movq $0x0, (%rsp)
movb $0x0, %al
callq 0x10540
movl %eax, 0xc4(%rsp)
movq 0xd0(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movq 0xe0(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movslq 0xc4(%rsp), %rdx
movq 0xd0(%rsp), %rcx
callq *%rax
jmp 0x1ae09d
leaq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rdx
leaq 0x4458c(%rip), %rsi     # 0x1f248c
leaq 0x4458c(%rip), %rcx     # 0x1f2493
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0x10540
movl %eax, 0xc4(%rsp)
movq 0xd0(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movq 0xe0(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movslq 0xc4(%rsp), %rdx
movq 0xd0(%rsp), %rcx
callq *%rax
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq 0xd8(%rsp), %rcx
movq 0x18(%rcx), %rcx
movq 0x20(%rcx), %rcx
movq 0x10(%rcx), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jge 0x1ae016
leaq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xe0(%rsp), %rdi
movq 0xd8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq (%rax), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0xc70d0
movq 0x10(%rsp), %rdi
movq %rax, %rsi
leaq 0x4451e(%rip), %rdx     # 0x1f24dc
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x10540
movl %eax, 0xc4(%rsp)
movq 0xd0(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movq 0xe0(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movslq 0xc4(%rsp), %rdx
movq 0xd0(%rsp), %rcx
callq *%rax
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x1adf56
leaq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xe0(%rsp), %rdi
movq 0xd8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq (%rax), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0xc70d0
movq 0x8(%rsp), %rdi
movq %rax, %rsi
leaq 0x44683(%rip), %rdx     # 0x1f26db
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x10540
movl %eax, 0xc4(%rsp)
movq 0xd0(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movq 0xe0(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movslq 0xc4(%rsp), %rdx
movq 0xd0(%rsp), %rcx
callq *%rax
addq $0xe8, %rsp
retq
nopw %cs:(%rax,%rax)