// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: g_make_byte_vector
static s7_pointer g_make_byte_vector(s7_scheme *sc, s7_pointer args)
                {
#define H_make_byte_vector "(make-byte-vector len (byte 0)) makes a byte-vector of length len filled with byte."
#define Q_make_byte_vector s7_make_signature(sc, 3, sc->is_byte_vector_symbol, s7_make_signature(sc, 2, sc->is_integer_symbol, sc->is_pair_symbol), sc->is_byte_symbol)

                    s7_int len = 0, ib = 0;
                    s7_pointer p, init;
                    p = car(args);

                    if (!is_pair(p))
                    {
                        if (!s7_is_integer(p))
                            return(method_or_bust(sc, p, sc->make_byte_vector_symbol, args, T_INTEGER, 1));
                        len = s7_integer(p);
                        if ((len < 0) || (len > sc->max_vector_length))
                            return(out_of_range(sc, sc->make_byte_vector_symbol, small_int(1), p, (len < 0) ? its_negative_string : its_too_large_string));
                    }
                    if (is_pair(cdr(args)))
                    {
                        init = cadr(args);
                        if (!s7_is_integer(init))
                            return(method_or_bust(sc, init, sc->make_byte_vector_symbol, args, T_INTEGER, 2));
                        ib = s7_integer(init);
                        if ((ib < 0) || (ib > 255))
                            return(simple_wrong_type_argument_with_type(sc, sc->make_byte_vector_symbol, init, an_unsigned_byte_string));
                    }
                    else init = small_int(0);

                    if (!s7_is_integer(p))
                        return(g_make_vector_1(sc, set_plist_2(sc, p, init), sc->make_byte_vector_symbol));

                    p = make_simple_byte_vector(sc, len);
                    if ((len > 0) && (is_pair(cdr(args))))
                        local_memset((void *)(byte_vector_bytes(p)), ib, len);
                    return(p);
                }

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq $0x0, 0x48(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0x9c19e
movq 0x38(%rsp), %rdi
callq 0x11340
testb $0x1, %al
jne 0x9c0f3
movq 0x58(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x58(%rsp), %rax
movq 0x12d0(%rax), %rdx
movq 0x50(%rsp), %rcx
movl $0xb, %r8d
movl $0x1, %r9d
callq 0x13c50
movq %rax, 0x60(%rsp)
jmp 0x9c311
movq 0x38(%rsp), %rdi
callq 0x10790
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x48(%rsp)
jl 0x9c11d
movq 0x48(%rsp), %rax
movq 0x58(%rsp), %rcx
cmpq 0x2a0(%rcx), %rax
jle 0x9c19c
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x58(%rsp), %rax
movq 0x12d0(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x17a345(%rip), %rax    # 0x216488
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x48(%rsp)
jge 0x9c168
movq 0x17e417(%rip), %rax    # 0x21a578
movq %rax, 0x8(%rsp)
jmp 0x9c174
movq 0x17e401(%rip), %rax    # 0x21a570
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rcx
movq 0x20(%rsp), %rdx
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
callq 0x13880
movq %rax, 0x60(%rsp)
jmp 0x9c311
jmp 0x9c19e
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x9c269
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rdi
callq 0x11340
testb $0x1, %al
jne 0x9c209
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x58(%rsp), %rax
movq 0x12d0(%rax), %rdx
movq 0x50(%rsp), %rcx
movl $0xb, %r8d
movl $0x2, %r9d
callq 0x13c50
movq %rax, 0x60(%rsp)
jmp 0x9c311
movq 0x30(%rsp), %rdi
callq 0x10790
movq %rax, 0x40(%rsp)
cmpq $0x0, 0x40(%rsp)
jl 0x9c22b
cmpq $0xff, 0x40(%rsp)
jle 0x9c267
movq 0x58(%rsp), %rdi
movq 0x58(%rsp), %rax
movq 0x12d0(%rax), %rax
movq 0x8(%rax), %rsi
movq 0x30(%rsp), %rdx
movq 0x58(%rsp), %rax
movq 0x140(%rax), %rcx
movq 0x186958(%rip), %r8     # 0x222bb0
callq 0x14a60
movq %rax, 0x60(%rsp)
jmp 0x9c311
jmp 0x9c275
movq 0x17a210(%rip), %rax    # 0x216480
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
callq 0x11340
testb $0x1, %al
jne 0x9c2bf
movq 0x58(%rsp), %rax
movq %rax, (%rsp)
movq 0x58(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x36f70
movq (%rsp), %rdi
movq %rax, %rsi
movq 0x58(%rsp), %rax
movq 0x12d0(%rax), %rdx
callq 0x35ed0
movq %rax, 0x60(%rsp)
jmp 0x9c311
movq 0x58(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x371c0
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x48(%rsp)
jle 0x9c307
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x9c307
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rdx
movzbl %al, %esi
callq 0xc85e0
movq 0x38(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
addq $0x68, %rsp
retq
nopl (%rax,%rax)