// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: g_byte_vector
static s7_pointer g_byte_vector(s7_scheme *sc, s7_pointer args)
                {
#define H_byte_vector "(byte-vector ...) returns a byte-vector whose elements are the arguments"
#define Q_byte_vector s7_make_circular_signature(sc, 1, 2, sc->is_byte_vector_symbol, sc->is_byte_symbol)

                    s7_int i, len;
                    s7_pointer vec, x;
                    uint8_t *str;

                    len = s7_list_length(sc, args);
                    vec = make_simple_byte_vector(sc, len);
                    str = byte_vector_bytes(vec);

                    for (i = 0, x = args; is_pair(x); i++, x = cdr(x))
                    {
                        s7_pointer byte;
                        s7_int b;
                        byte = car(x);
                        if (is_t_integer(byte))
                            b = integer(byte);
                        else
                        {
#if WITH_GMP
                            if (is_t_big_integer(byte))
                                b = big_integer_to_s7_int(big_integer(byte));
                            else
#endif
                                return(method_or_bust(sc, byte, sc->byte_vector_symbol, copy_list(sc, args), T_INTEGER, i + 1));
                        }
                        if ((b < 0) || (b > 255))
                            return(simple_wrong_type_argument_with_type(sc, sc->byte_vector_symbol, byte, an_unsigned_byte_string));
                        str[i] = (uint8_t)b;
                    }
                    return(vec);
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r13
movq %rdi, %rbx
callq 0x39d0d
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3cd0e
cmpb $0x1, (%r13)
jne 0x7b7ae
movq 0x10(%rax), %rcx
xorl %r14d, %r14d
movq %r13, %rdx
movq 0x8(%rdx), %r15
cmpb $0xb, (%r15)
jne 0x7b7bd
movq 0x8(%r15), %rsi
cmpq $0xff, %rsi
ja 0x7b8c1
movb %sil, (%rcx,%r14)
incq %r14
movq 0x10(%rdx), %rdx
cmpb $0x1, (%rdx)
je 0x7b783
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc28(%rbx), %rdx
cmpb $0x1, (%r13)
jne 0x7b8f3
movq %rdx, 0x8(%rsp)
movq %r13, 0x4c8(%rbx)
movq 0x8(%r13), %rbp
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0x7b805
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %rbp, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %rax, (%rsp)
movq %rax, 0x4e8(%rbx)
movq 0x10(%r13), %r13
cmpb $0x1, (%r13)
jne 0x7b8a1
movq (%rsp), %rbp
movq 0x8(%r13), %rdx
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0x7b871
movq %rbx, %rdi
movq %rdx, 0x10(%rsp)
callq 0xa550
movq 0x10(%rsp), %rdx
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %rdx, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %rax, 0x10(%rbp)
movq 0x10(%r13), %r13
cmpb $0x1, (%r13)
movq %rax, %rbp
je 0x7b83d
movq 0x110(%rbx), %rax
movq %rax, 0x4e8(%rbx)
movq %rax, 0x4c8(%rbx)
movq 0x8(%rsp), %rdx
movq (%rsp), %rcx
jmp 0x7b8fa
movq 0xc28(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0x140(%rbx), %rcx
movq 0xd7786(%rip), %r8      # 0x153060
movq %rbx, %rdi
movq %r15, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xed2a
movq 0x110(%rbx), %rcx
incl %r14d
movq %rbx, %rdi
movq %r15, %rsi
movl $0xb, %r8d
movl %r14d, %r9d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe42d