// File: /workspace/github_c_makefile_star2_O2/BernardTatin[P]s7sh/s7.c
// Function: g_make_float_vector
static s7_pointer g_make_float_vector(s7_scheme *sc, s7_pointer args)
                {
#define H_make_float_vector "(make-float-vector len (init 0.0)) returns a float-vector."
#define Q_make_float_vector s7_make_signature(sc, 3, sc->is_float_vector_symbol, s7_make_signature(sc, 2, sc->is_integer_symbol, sc->is_pair_symbol), sc->is_real_symbol)
                    s7_int len;
                    s7_pointer x, p;
                    block_t *arr;

                    p = car(args);
                    if ((is_pair(cdr(args))) ||
                            (!s7_is_integer(p)))      /* (make-float-vector (bignum "3")) */
                    {
                        s7_pointer init;
                        if (is_pair(cdr(args)))
                        {
                            init = cadr(args);
                            if (!s7_is_real(init))
                                return(method_or_bust(sc, init, sc->make_float_vector_symbol, args, T_REAL, 2));
#if WITH_GMP
                            if (s7_is_bignum(init))
                                return(g_make_vector_1(sc, set_plist_2(sc, p, wrap_real(sc, s7_real(init))), sc->make_float_vector_symbol));
#endif
                            if (is_rational(init))
                                return(g_make_vector_1(sc, set_plist_2(sc, p, wrap_real(sc, rational_to_double(sc, init))), sc->make_float_vector_symbol));
                        }
                        else init = real_zero;
                        if (s7_is_integer(p))
                            len = s7_integer(p);
                        else
                        {
                            if (!is_pair(p))
                                return(method_or_bust_with_type(sc, p, sc->make_float_vector_symbol, args, wrap_string(sc, "an integer or a list of integers", 32), 1));
                            len = multivector_length(sc, p, sc->make_float_vector_symbol);
                        }
                        x = make_vector_1(sc, len, NOT_FILLED, T_FLOAT_VECTOR);
                        float_vector_fill(sc, x, s7_real(init));
                        if (s7_is_integer(p))
                        {
                            add_vector(sc, x);
                            return(x);
                        }
                        return(make_multivector(sc, x, p));
                    }

                    len = s7_integer(p);
                    if (len < 0)
                        return(wrong_type_argument_with_type(sc, sc->make_float_vector_symbol, 1, p, a_non_negative_integer_string));
                    if (len > sc->max_vector_length)
                        return(out_of_range(sc, sc->make_float_vector_symbol, small_int(1), p, its_too_large_string));

                    arr = mallocate_vector(sc, len * sizeof(s7_double));
                    new_cell(sc, x, T_FLOAT_VECTOR | T_SAFE_PROCEDURE);
                    vector_length(x) = len;
                    vector_block(x) = arr;
                    float_vector_floats(x) = (s7_double *)block_data(arr);
                    if (len > 0)
                    {
                        if (STEP_8(len))
                            memclr64((void *)float_vector_floats(x), len * sizeof(s7_double));
                        else memclr((void *)float_vector_floats(x), len * sizeof(s7_double));
                    }
                    vector_set_dimension_info(x, NULL);
                    vector_getter(x) = float_vector_getter;
                    vector_setter(x) = float_vector_setter;

                    add_vector(sc, x);
                    return(x);
                }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rcx
movq %rdi, %rbx
movq 0x8(%rsi), %r14
movq 0x10(%rsi), %rax
cmpb $0x1, (%rax)
jne 0x6317c
movq 0x8(%rax), %r15
movzbl (%r15), %eax
leaq 0xb6862(%rip), %rdx     # 0x1199b0
cmpb $0x0, (%rax,%rdx)
je 0x631ce
leaq 0xb6895(%rip), %rdx     # 0x1199f0
cmpb $0x1, (%rax,%rdx)
jne 0x63264
movq 0x8(%r15), %rcx
cmpl $0xb, %eax
jne 0x6335b
cvtsi2sd %rcx, %xmm0
jmp 0x6337d
movb (%r14), %al
cmpb $0xb, %al
jne 0x631f5
movq 0x8(%r14), %r13
testq %r13, %r13
js 0x632ac
cmpq 0x2a0(%rbx), %r13
jle 0x632e4
movq 0x12d8(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0xb27a9(%rip), %rdx     # 0x115958
movq 0xb688a(%rip), %r8      # 0x119a40
movq %rbx, %rdi
movq %r14, %rcx
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xcb8f
movq 0x12d8(%rbx), %rdx
pushq $0xd
popq %r8
pushq $0x2
popq %r9
movq %rbx, %rdi
movq %r15, %rsi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xcd70
movq 0xb6a5c(%rip), %r15     # 0x119c58
movq 0x12d8(%rbx), %rdx
cmpb $0x1, %al
jne 0x63217
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7b1c8
movq %rax, %rsi
jmp 0x6326f
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rsi
movq (%rax,%rsi,8), %r8
leal 0x1(%rsi), %eax
andl $0x7, %eax
movl %eax, 0x7dc(%rbx)
leaq 0x7fe9c(%rip), %rax     # 0xe30d8
movq %rax, 0x10(%r8)
movq $0x20, 0x8(%r8)
pushq $0x1
popq %r9
movq %rbx, %rdi
movq %r14, %rsi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xcf9a
movb (%r14), %al
cmpb $0xb, %al
jne 0x631fc
movq 0x8(%r14), %rsi
pushq $0x17
popq %rcx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2e4a2
movq %rax, %r12
movq %r15, %rdi
callq 0xc42a
movq %r12, %rdi
callq 0x7af6e
cmpb $0xb, (%r14)
je 0x633f0
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x7b3d5
jmp 0x633ff
movq 0x12d8(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0xb269a(%rip), %rdx     # 0x115958
movq 0x140(%rbx), %r8
movq 0xbe90c(%rip), %r9      # 0x121bd8
movq %rbx, %rdi
movq %r14, %rcx
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x9bbb
leaq (,%r13,8), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2e974
movq %rax, %r15
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x63319
movq %rbx, %rdi
callq 0x9c27
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r12
movq $0x200017, (%r12)       # imm = 0x200017
movq %r13, 0x8(%r12)
movq %r15, 0x18(%r12)
movq (%r15), %rdi
movq %rdi, 0x10(%r12)
testq %r13, %r13
je 0x633ce
movq %r14, %rsi
testb $0x7, %r13b
je 0x633c9
callq 0x78377
jmp 0x633ce
movq %rcx, 0x10(%rsp)
fildll 0x10(%rsp)
movq 0x10(%r15), %rax
movq %rax, 0x18(%rsp)
fildll 0x18(%rsp)
fdivrp %st, %st(1)
fstpl 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
movq 0x1f18(%rbx), %rax
movsd %xmm0, 0x8(%rax)
movq 0x1f18(%rbx), %rax
movq 0x708(%rbx), %rcx
movq %r14, 0x8(%rcx)
movq 0x710(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x708(%rbx), %rsi
movq 0x12d8(%rbx), %rdx
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2f867
callq 0x7ae55
movq 0x18(%r12), %rax
andq $0x0, 0x20(%rax)
leaq -0x34a51(%rip), %rax    # 0x2e98e
movq %rax, 0x20(%r12)
leaq -0x34a00(%rip), %rax    # 0x2e9eb
movq %rax, 0x28(%r12)
movq 0x740(%rbx), %rdi
movq %r12, %rsi
callq 0xb999
movq %r12, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq