// File: /workspace/github_c_makefile_star2_O1/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), %r15
movq 0x10(%rsi), %rax
movb (%rax), %dl
cmpb $0x1, %dl
jne 0x80d37
movq 0x8(%rax), %r12
movzbl (%r12), %eax
leaq 0xd1cac(%rip), %rdx     # 0x1529b0
cmpb $0x0, (%rax,%rdx)
je 0x80db9
leaq 0xd1cdb(%rip), %rdx     # 0x1529f0
cmpb $0x1, (%rax,%rdx)
jne 0x80df4
movq 0x8(%r12), %rcx
cmpl $0xb, %eax
jne 0x80faf
cvtsi2sd %rcx, %xmm0
jmp 0x80fd2
cmpb $0xb, (%r15)
jne 0x80de4
movq 0x8(%r15), %r13
testq %r13, %r13
js 0x80f21
cmpq 0x2a0(%rbx), %r13
jle 0x8101e
movq 0x12d8(%rbx), %rax
movq 0x8(%rax), %rax
movq 0xcdbeb(%rip), %rcx     # 0x14e958
movq 0xd1ccc(%rip), %rdx     # 0x152a40
movq 0x1ee8(%rbx), %rsi
movq 0x10(%rsi), %rsi
movq %rax, 0x8(%rsi)
movq 0x10(%rsi), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rax), %rax
movq %r15, 0x8(%rax)
movq 0x10(%rax), %rax
movq %rdx, 0x8(%rax)
movq 0x1948(%rbx), %r14
movq 0x1ee8(%rbx), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3b366
jmp 0x81197
movq 0x12d8(%rbx), %rdx
movq %rbx, %rdi
movq %r12, %rsi
movl $0xd, %r8d
movl $0x2, %r9d
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xf1ae
cmpb $0x1, %dl
je 0x80cf4
movq 0xd1e64(%rip), %r12     # 0x152c58
movzbl (%r15), %eax
cmpl $0x1, %eax
je 0x80e0c
cmpl $0xb, %eax
jne 0x80f59
movq 0x8(%r15), %rsi
jmp 0x80e21
movq 0x12d8(%rbx), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa061f
movq %rax, %rsi
movq %rbx, %rdi
xorl %edx, %edx
movl $0x17, %ecx
callq 0x3ccdf
movq %rax, %r14
cmpb $0xd, (%r12)
jne 0x80e43
movsd 0x8(%r12), %xmm0
jmp 0x80e59
movq 0xd1be6(%rip), %rdi     # 0x152a30
leaq 0x92117(%rip), %rdx     # 0x112f68
movq %r12, %rsi
callq 0xe212
movq %r14, %rdi
callq 0xa01f6
movzbl (%r15), %eax
cmpl $0xb, %eax
je 0x8115c
xorl %r13d, %r13d
cmpl $0x1, %eax
jne 0x80e85
movq %r15, %rax
incq %r13
movq 0x10(%rax), %rax
cmpb $0x1, (%rax)
je 0x80e79
movq %r13, %r12
shlq $0x4, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa305
movq %r13, 0x10(%rax)
movq (%rax), %rcx
leaq (%rcx,%r13,8), %rdx
movq %rdx, 0x18(%rax)
movb $0x0, 0xc(%rax)
movq 0x110(%rbx), %rdx
cmpq %r15, %rdx
je 0x80eda
movq %rcx, %rsi
movq 0x8(%r15), %rdi
cmpb $0xb, (%rdi)
jne 0x80ec8
movq 0x8(%rdi), %rdi
jmp 0x80eca
xorl %edi, %edi
movq %rdi, (%rsi)
movq 0x10(%r15), %r15
addq $0x8, %rsi
cmpq %rdx, %r15
jne 0x80eb9
testq %r13, %r13
jle 0x80f02
incq %r13
addq $-0x8, %r12
movl $0x1, %edx
movq %rdx, (%rcx,%r12)
imulq -0x10(%rcx,%r13,8), %rdx
decq %r13
addq $-0x8, %r12
cmpq $0x1, %r13
jg 0x80eeb
movq 0x120(%rbx), %rcx
movq %rcx, 0x20(%rax)
movq 0x18(%r14), %rcx
movq %rax, 0x20(%rcx)
movq 0x790(%rbx), %rbx
jmp 0x81163
movq 0x12d8(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0xcda25(%rip), %rdx     # 0x14e958
movq 0x140(%rbx), %r8
movq 0xd9c97(%rip), %r9      # 0x15abd8
movq %rbx, %rdi
movq %r15, %rcx
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xb31d
movq 0x12d8(%rbx), %rdx
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 0x9f0a3(%rip), %rax     # 0x120028
movq %rax, 0x10(%r8)
movq $0x20, 0x8(%r8)
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %r9d
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xf3da
movq %rcx, 0x10(%rsp)
fildll 0x10(%rsp)
movq 0x10(%r12), %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 %r15, 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 0x3ed20
leaq (,%r13,8), %r15
testq %r15, %r15
jle 0x8103b
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa305
movq %rax, %r12
jmp 0x810a8
cmpq $0x0, 0x838(%rbx)
jne 0x81081
movl $0x2800, %edi           # imm = 0x2800
callq 0x9480
movq %rax, 0x838(%rbx)
addq $0x28, %rax
movl $0xff, %ecx
movq %rax, -0x10(%rax)
movl $0x0, -0x20(%rax)
addq $0x28, %rax
decl %ecx
jne 0x8105f
movq $0x0, -0x10(%rax)
movl $0x0, -0x20(%rax)
movq 0x838(%rbx), %r12
movq 0x18(%r12), %rax
movq %rax, 0x838(%rbx)
movl $0x0, 0x8(%r12)
xorl %eax, %eax
movq %rax, (%r12)
movq %rax, 0x20(%r12)
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x810c0
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r14
movq $0x200017, (%r14)       # imm = 0x200017
movq %r13, 0x8(%r14)
movq %r12, 0x18(%r14)
movq (%r12), %rdi
movq %rdi, 0x10(%r14)
testq %r13, %r13
je 0x8113a
testb $0x7, %r13b
je 0x81104
testq %r15, %r15
je 0x8113a
xorl %esi, %esi
movq %r15, %rdx
jmp 0x81135
testq %r15, %r15
je 0x8113a
movabsq $0x1ffffffffffffff8, %rax # imm = 0x1FFFFFFFFFFFFFF8
andq %rax, %r13
cmpq $0x9, %r13
movl $0x8, %eax
cmovaeq %r13, %rax
leaq -0x8(,%rax,8), %rdx
andq $-0x40, %rdx
addq $0x40, %rdx
xorl %esi, %esi
callq 0x9270
movq 0x18(%r14), %rax
movq $0x0, 0x20(%rax)
leaq -0x43b6d(%rip), %rax    # 0x3d5e0
movq %rax, 0x20(%r14)
leaq -0x43b1b(%rip), %rax    # 0x3d63d
movq %rax, 0x28(%r14)
movq 0x740(%rbx), %rbx
movq 0x8(%rbx), %rsi
cmpq %rsi, 0x10(%rbx)
jne 0x81184
leaq (%rsi,%rsi), %rax
movq %rax, 0x8(%rbx)
movq (%rbx), %rdi
shlq $0x4, %rsi
callq 0x9510
movq %rax, (%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rbx)
movq %r14, (%rax,%rcx,8)
movq %r14, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq