// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: byte_vector_to_port
static void byte_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];
        char *p;

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

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

        if (len > 1000)
        {
            s7_int vlen;
            uint8_t first;
            uint8_t *els;
            vlen = vector_length(vect);
            els = byte_vector_bytes(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);
                p = integer_to_string(sc, byte_vector(vect, 0), &plen);
                port_write_string(port)(sc, p, plen, port);
                port_write_character(port)(sc, ')', 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, "#u(", 3, port);
            p = integer_to_string(sc, byte_vector(vect, 0), &plen);
            port_write_string(port)(sc, p, plen, port);
            for (i = 1; i < len; i++)
            {
                plen = catstrs_direct(buf, " ", integer_to_string_no_length(sc, byte_vector(vect, i)), NULL);
                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, "#u", 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:
subq $0x128, %rsp            # imm = 0x128
movq %rdi, 0x120(%rsp)
movq %rsi, 0x118(%rsp)
movq %rdx, 0x110(%rsp)
movl %ecx, 0x10c(%rsp)
movq %r8, 0x100(%rsp)
movq 0x120(%rsp), %rdi
movq 0x118(%rsp), %rsi
movq 0x110(%rsp), %rdx
movl 0x10c(%rsp), %ecx
callq 0x1ad990
cltq
movq %rax, 0xf0(%rsp)
cmpq $0x0, 0xf0(%rsp)
jge 0x1a1d6c
jmp 0x1a22c0
movq 0xf0(%rsp), %rax
movq 0x118(%rsp), %rcx
cmpq 0x8(%rcx), %rax
setl %al
andb $0x1, %al
movb %al, 0xe7(%rsp)
cmpl $0x2, 0x10c(%rsp)
jne 0x1a1ddf
movq 0x118(%rsp), %rax
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0x1a1ddf
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movq 0x120(%rsp), %rdi
movq 0x110(%rsp), %rcx
leaq 0x4c82c(%rip), %rsi     # 0x1ee604
movl $0xc, %edx
callq *%rax
cmpq $0x3e8, 0xf0(%rsp) # imm = 0x3E8
jle 0x1a1f79
movq 0x118(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x118(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movb (%rax), %al
movb %al, 0x4f(%rsp)
movq $0x1, 0xf8(%rsp)
movq 0xf8(%rsp), %rax
cmpq 0x50(%rsp), %rax
jge 0x1a1e6d
movq 0x40(%rsp), %rax
movq 0xf8(%rsp), %rcx
movzbl (%rax,%rcx), %eax
movzbl 0x4f(%rsp), %ecx
cmpl %ecx, %eax
je 0x1a1e55
jmp 0x1a1e6d
jmp 0x1a1e57
movq 0xf8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xf8(%rsp)
jmp 0x1a1e2a
movq 0xf8(%rsp), %rax
cmpq 0x50(%rsp), %rax
jne 0x1a1f77
movq 0x120(%rsp), %rdi
movq 0x118(%rsp), %rsi
movq 0x110(%rsp), %rdx
callq 0x1add70
movq 0x120(%rsp), %rdi
movq 0x118(%rsp), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
movl %eax, %esi
leaq 0xe8(%rsp), %rdx
callq 0xc7240
movq %rax, 0x58(%rsp)
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movq 0x120(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0xe8(%rsp), %rdx
movq 0x110(%rsp), %rcx
callq *%rax
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x8(%rax), %rax
movq 0x120(%rsp), %rdi
movq 0x110(%rsp), %rdx
movl $0x29, %esi
callq *%rax
cmpl $0x2, 0x10c(%rsp)
jne 0x1a1f72
movq 0x118(%rsp), %rax
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0x1a1f72
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x8(%rax), %rax
movq 0x120(%rsp), %rdi
movq 0x110(%rsp), %rdx
movl $0x29, %esi
callq *%rax
jmp 0x1a22c0
jmp 0x1a1f79
movq 0x118(%rsp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0x1a1fa7
movq 0x118(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x30(%rsp)
jmp 0x1a1fb3
movl $0x1, %eax
movq %rax, 0x30(%rsp)
jmp 0x1a1fb3
movq 0x30(%rsp), %rax
cmpq $0x1, %rax
jne 0x1a2181
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movq 0x120(%rsp), %rdi
movq 0x110(%rsp), %rcx
leaq 0x504b7(%rip), %rsi     # 0x1f24a4
movl $0x3, %edx
callq *%rax
movq 0x120(%rsp), %rdi
movq 0x118(%rsp), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
movl %eax, %esi
leaq 0xe8(%rsp), %rdx
callq 0xc7240
movq %rax, 0x58(%rsp)
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movq 0x120(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0xe8(%rsp), %rdx
movq 0x110(%rsp), %rcx
callq *%rax
movq $0x1, 0xf8(%rsp)
movq 0xf8(%rsp), %rax
cmpq 0xf0(%rsp), %rax
jge 0x1a2113
leaq 0x60(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x120(%rsp), %rdi
movq 0x118(%rsp), %rax
movq 0x10(%rax), %rax
movq 0xf8(%rsp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %esi
callq 0xc70d0
movq 0x28(%rsp), %rdi
movq %rax, %rdx
leaq 0x50428(%rip), %rsi     # 0x1f24dc
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x10540
movq %rax, 0xe8(%rsp)
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movq 0x120(%rsp), %rdi
leaq 0x60(%rsp), %rsi
movq 0xe8(%rsp), %rdx
movq 0x110(%rsp), %rcx
callq *%rax
movq 0xf8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xf8(%rsp)
jmp 0x1a205e
testb $0x1, 0xe7(%rsp)
je 0x1a2151
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movq 0x120(%rsp), %rdi
movq 0x110(%rsp), %rcx
leaq 0x4e4c0(%rip), %rsi     # 0x1f0608
movl $0x5, %edx
callq *%rax
jmp 0x1a217c
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x8(%rax), %rax
movq 0x120(%rsp), %rdi
movq 0x110(%rsp), %rdx
movl $0x29, %esi
callq *%rax
jmp 0x1a2274
movb $0x0, 0x3f(%rsp)
leaq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x120(%rsp), %rdi
movq 0x118(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rsi
callq 0xae30
movq 0x20(%rsp), %rdi
movq %rax, %rdx
leaq 0x502e8(%rip), %rsi     # 0x1f24a8
leaq 0x4d26e(%rip), %rcx     # 0x1ef435
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0x10540
movq %rax, 0xe8(%rsp)
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movq 0x120(%rsp), %rdi
leaq 0x60(%rsp), %rsi
movq 0xe8(%rsp), %rdx
movq 0x110(%rsp), %rcx
callq *%rax
movq 0x120(%rsp), %rdi
movq 0x118(%rsp), %rsi
movq 0x110(%rsp), %rdx
movq 0xf0(%rsp), %rax
movl %eax, %ecx
movq 0x118(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movl %eax, %r10d
xorl %r9d, %r9d
leaq 0x3f(%rsp), %rax
xorl %r8d, %r8d
movl %r9d, %r8d
movl %r10d, (%rsp)
movq %rax, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
callq 0x1ae0b0
cmpl $0x2, 0x10c(%rsp)
jne 0x1a22c0
movq 0x118(%rsp), %rax
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0x1a22c0
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rax), %rax
movq 0x8(%rax), %rax
movq 0x120(%rsp), %rdi
movq 0x110(%rsp), %rdx
movl $0x29, %esi
callq *%rax
addq $0x128, %rsp            # imm = 0x128
retq
nopl (%rax,%rax)