// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x31900
movq %rax, 0x40(%rsp)
movq 0x58(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x371c0
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x28(%rsp)
movq $0x0, 0x48(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x9c059
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xb, %eax
jne 0x9bf73
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
jmp 0x9bfd8
movq 0x58(%rsp), %rax
movq %rax, (%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x58(%rsp), %rax
movq 0xc28(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x44270
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rax, %rcx
movq 0x48(%rsp), %rax
addq $0x1, %rax
movl %eax, %r9d
movl $0xb, %r8d
callq 0x13c50
movq %rax, 0x60(%rsp)
jmp 0x9c063
cmpq $0x0, 0x18(%rsp)
jl 0x9bfeb
cmpq $0xff, 0x18(%rsp)
jle 0x9c024
movq 0x58(%rsp), %rdi
movq 0x58(%rsp), %rax
movq 0xc28(%rax), %rax
movq 0x8(%rax), %rsi
movq 0x20(%rsp), %rdx
movq 0x58(%rsp), %rax
movq 0x140(%rax), %rcx
movq 0x186b98(%rip), %r8     # 0x222bb0
callq 0x14a60
movq %rax, 0x60(%rsp)
jmp 0x9c063
movq 0x18(%rsp), %rax
movb %al, %dl
movq 0x28(%rsp), %rax
movq 0x48(%rsp), %rcx
movb %dl, (%rax,%rcx)
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x48(%rsp)
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x30(%rsp)
jmp 0x9bf37
movq 0x38(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
addq $0x68, %rsp
retq
nopl (%rax)