// File: /workspace/github_c_makefile_star2_O3/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
cmpb $0x1, (%rax)
jne 0x7abd6
movq 0x8(%rax), %r12
movzbl (%r12), %eax
leaq 0xcfe0d(%rip), %rdx     # 0x14a9b0
cmpb $0x0, (%rax,%rdx)
je 0x7ac59
leaq 0xcfe3c(%rip), %rdx     # 0x14a9f0
cmpb $0x1, (%rax,%rdx)
jne 0x7acf5
movq 0x8(%r12), %rcx
cmpl $0xb, %eax
jne 0x7ae5c
cvtsi2sd %rcx, %xmm0
jmp 0x7ae7f
movb (%r15), %al
cmpb $0xb, %al
jne 0x7ac84
movq 0x8(%r15), %r13
testq %r13, %r13
js 0x7ae00
cmpq 0x2a0(%rbx), %r13
jle 0x7ae38
movq 0x12d8(%rbx), %rax
movq 0x8(%rax), %rax
movq 0xcbd4b(%rip), %rcx     # 0x146958
movq 0xcfe2c(%rip), %rdx     # 0x14aa40
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 0x38dfa
jmp 0x7b025
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 0xe42d
movq 0xcffcd(%rip), %r12     # 0x14ac58
movq 0x12d8(%rbx), %rdx
cmpb $0x1, %al
jne 0x7aca6
movq %rbx, %rdi
movq %r15, %rsi
callq 0x99d1f
movq %rax, %rsi
jmp 0x7ad00
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 0x9c46d(%rip), %rax     # 0x117138
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 0xe659
movb (%r15), %al
cmpb $0xb, %al
jne 0x7ac8b
movq 0x8(%r15), %rsi
movq %rbx, %rdi
xorl %edx, %edx
movl $0x17, %ecx
callq 0x3a74f
movq %rax, %r14
cmpb $0xd, (%r12)
jne 0x7ad22
movsd 0x8(%r12), %xmm0
jmp 0x7ad38
movq 0xcfd07(%rip), %rdi     # 0x14aa30
leaq 0x8f348(%rip), %rdx     # 0x10a078
movq %r12, %rsi
callq 0xd498
movq %r14, %rdi
callq 0x9992a
movzbl (%r15), %eax
cmpl $0xb, %eax
je 0x7afea
xorl %r13d, %r13d
cmpl $0x1, %eax
jne 0x7ad64
movq %r15, %rax
incq %r13
movq 0x10(%rax), %rax
cmpb $0x1, (%rax)
je 0x7ad58
movq %r13, %r12
shlq $0x4, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x9357
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 0x7adb9
movq %rcx, %rsi
movq 0x8(%r15), %rdi
cmpb $0xb, (%rdi)
jne 0x7ada7
movq 0x8(%rdi), %rdi
jmp 0x7ada9
xorl %edi, %edi
movq %rdi, (%rsi)
movq 0x10(%r15), %r15
addq $0x8, %rsi
cmpq %rdx, %r15
jne 0x7ad98
testq %r13, %r13
jle 0x7ade1
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
ja 0x7adca
movq 0x120(%rbx), %rcx
movq %rcx, 0x20(%rax)
movq 0x18(%r14), %rcx
movq %rax, 0x20(%rcx)
movq 0x790(%rbx), %rbx
jmp 0x7aff1
movq 0x12d8(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0xcbb46(%rip), %rdx     # 0x146958
movq 0x140(%rbx), %r8
movq 0xd7db8(%rip), %r9      # 0x152bd8
movq %rbx, %rdi
movq %r15, %rcx
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xa4e4
leaq (,%r13,8), %r15
testq %r15, %r15
jle 0x7aecb
movq %rbx, %rdi
movq %r15, %rsi
callq 0x9357
movq %rax, %r12
jmp 0x7af36
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 0x3c722
movq 0x838(%rbx), %r12
testq %r12, %r12
jne 0x7af16
movl $0x2800, %edi           # imm = 0x2800
callq 0x8480
movq %rax, %r12
movq %rax, 0x838(%rbx)
addq $0x28, %rax
movl $0xff, %ecx
movq %rax, -0x10(%rax)
movl $0x0, -0x20(%rax)
addq $0x28, %rax
decl %ecx
jne 0x7aef4
movq $0x0, -0x10(%rax)
movl $0x0, -0x20(%rax)
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 0x7af55
movq %rbx, %rdi
callq 0xa550
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 0x7afc8
testb $0x7, %r13b
je 0x7af92
testq %r15, %r15
je 0x7afc8
xorl %esi, %esi
movq %r15, %rdx
jmp 0x7afc3
testq %r15, %r15
je 0x7afc8
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 0x8270
movq 0x18(%r14), %rax
movq $0x0, 0x20(%rax)
leaq -0x3ff92(%rip), %rax    # 0x3b049
movq %rax, 0x20(%r14)
leaq -0x3ff40(%rip), %rax    # 0x3b0a6
movq %rax, 0x28(%r14)
movq 0x740(%rbx), %rbx
movq (%rbx), %rax
movq 0x10(%rbx), %rsi
cmpq 0x8(%rbx), %rsi
jne 0x7b019
leaq (%rsi,%rsi), %rcx
movq %rcx, 0x8(%rbx)
shlq $0x4, %rsi
movq %rax, %rdi
callq 0x8510
movq %rax, (%rbx)
movq 0x10(%rbx), %rsi
leaq 0x1(%rsi), %rcx
movq %rcx, 0x10(%rbx)
movq %r14, (%rax,%rsi,8)
movq %r14, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq