// File: /workspace/github_c_makefile_star2_O2/BernardTatin[P]s7sh/s7.c
// Function: g_make_vector_1
static s7_pointer g_make_vector_1(s7_scheme *sc, s7_pointer args, s7_pointer caller)
                {
                    s7_int len;
                    s7_pointer x, fill, vec, typf;
                    int32_t result_type = T_VECTOR;

                    fill = sc->unspecified;
                    typf = sc->T;
                    x = car(args);
                    if (s7_is_integer(x))
                    {
                        len = s7_integer(x);
                        if (len < 0)
                            return(wrong_type_argument_with_type(sc, caller, 1, x, a_non_negative_integer_string));
                    }
                    else
                    {
                        if (!(is_pair(x)))
                            return(method_or_bust_with_type(sc, x, caller, args, wrap_string(sc, "an integer or a list of integers", 32), 1));

                        if (!s7_is_integer(car(x)))
                            return(wrong_type_argument_with_type(sc, caller, 1, car(x), wrap_string(sc, "each dimension should be an integer", 35)));
                        if (is_null(cdr(x)))
                            len = s7_integer(car(x));
                        else len = multivector_length(sc, x, caller);
                    }

                    if (is_pair(cdr(args)))
                    {
                        fill = cadr(args);
                        if (caller == sc->make_int_vector_symbol)
                            result_type = T_INT_VECTOR;
                        else
                        {
                            if (caller == sc->make_float_vector_symbol)
                                result_type = T_FLOAT_VECTOR;
                            else
                            {
                                if (caller == sc->make_byte_vector_symbol)
                                    result_type = T_BYTE_VECTOR;
                            }
                        }
                        if (is_pair(cddr(args)))
                        {
                            typf = caddr(args);
                            if ((!is_c_function(typf)) &&
                                    (!is_any_closure(typf)) &&
                                    (typf != sc->T))
                                return(wrong_type_argument_with_type(sc, caller, 3, typf, wrap_string(sc, "a built-in procedure, a closure or #t", 37)));
                            if (is_any_closure(typf))
                            {
                                if (!is_symbol(find_closure(sc, typf, closure_let(typf))))
                                    return(wrong_type_argument_with_type(sc, caller, 3, typf, wrap_string(sc, "type function must have a name", 30)));
                            }
                            else
                            {
                                if (is_c_function(typf))
                                {
                                    if (typf == slot_value(global_slot(sc->is_float_symbol)))
                                        result_type = T_FLOAT_VECTOR;
                                    else
                                    {
                                        if (typf == slot_value(global_slot(sc->is_integer_symbol)))
                                            result_type = (WITH_GMP) ? T_VECTOR : T_INT_VECTOR;
                                        else
                                        {
                                            if (typf == slot_value(global_slot(sc->is_byte_symbol)))
                                                result_type = T_BYTE_VECTOR;
                                            else
                                            {
                                                s7_pointer sig;
                                                if (!c_function_name(typf))
                                                    return(wrong_type_argument_with_type(sc, caller, 3, typf, wrap_string(sc, "type procedure must have a name", 31)));
                                                if (!c_function_marker(typf))
                                                    c_function_set_marker(typf, mark_vector_1);
                                                if (!c_function_symbol(typf))
                                                    c_function_symbol(typf) = make_symbol(sc, c_function_name(typf));
                                                sig = c_function_signature(typf);
                                                if ((sig != sc->pl_bt) &&
                                                        (is_pair(sig)))
                                                {
                                                    if ((car(sig) != sc->is_boolean_symbol) || (cadr(sig) != sc->T) || (!is_null(cddr(sig))))
                                                        return(wrong_type_argument_with_type(sc, caller, 3, typf, wrap_string(sc, "type is not a boolean procedure", 31)));
                                                }}}}}}}}
                    /* before making the new vector, if fill is specified and the vector is typed, we have to check for a type error.
                     *    otherwise we can end up with a vector whose elements are NULL, causing a segfault in the  gc.
                     */
                    if ((result_type == T_VECTOR) &&  /* don't put this after the make_vector_1! */
                            (!s7_is_boolean(typf)) &&
                            (s7_apply_function(sc, typf, set_plist_1(sc, fill)) == sc->F))
                        s7_wrong_type_arg_error(sc, "make-vector", 3, fill,
                                (is_c_function(typf)) ? c_function_name(typf) : symbol_name(find_closure(sc, typf, closure_let(typf))));

                    vec = make_vector_1(sc, len, NOT_FILLED, result_type);

                    if ((result_type == T_VECTOR) &&
                            (!s7_is_boolean(typf)))
                    {
                        set_typed_vector(vec);
                        typed_vector_set_typer(vec, typf);

                        if ((is_c_function(typf)) &&
                                (c_function_has_simple_elements(typf)))
                            set_has_simple_elements(vec);
                    }

                    s7_vector_fill(sc, vec, fill);

                    if ((is_pair(x)) &&
                            (is_pair(cdr(x))))
                        return(make_multivector(sc, vec, x));

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbp
movq %rsi, %r13
movq %rdi, %rbx
movq 0x118(%rdi), %r14
movq 0x130(%rdi), %r12
movq 0x8(%rsi), %r15
movzbl (%r15), %eax
cmpl $0x1, %eax
je 0x2f8cc
cmpl $0xb, %eax
jne 0x2f8fc
movq 0x8(%r15), %rsi
testq %rsi, %rsi
jns 0x2f9ad
movq 0x8(%rbp), %rsi
movq 0xe60a5(%rip), %rdx     # 0x115958
movq 0x140(%rbx), %r8
movq 0xf2317(%rip), %r9      # 0x121bd8
movq %rbx, %rdi
movq %r15, %rcx
jmp 0x2f996
movq 0x8(%r15), %rcx
cmpb $0xb, (%rcx)
jne 0x2f950
movq 0x10(%r15), %rax
cmpq 0x110(%rbx), %rax
je 0x2f9a9
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x7b1c8
movq %rax, %rsi
jmp 0x2f9ad
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rcx
movq (%rax,%rcx,8), %r8
leal 0x1(%rcx), %eax
andl $0x7, %eax
movl %eax, 0x7dc(%rbx)
leaq 0xb37b7(%rip), %rax     # 0xe30d8
movq %rax, 0x10(%r8)
movq $0x20, 0x8(%r8)
pushq $0x1
popq %r9
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq %r13, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xcf9a
movq 0x8(%rbp), %rsi
movq 0xe5ffd(%rip), %rdx     # 0x115958
movq 0x140(%rbx), %r8
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rdi
movq (%rax,%rdi,8), %r9
leal 0x1(%rdi), %eax
andl $0x7, %eax
movl %eax, 0x7dc(%rbx)
leaq 0xb3772(%rip), %rax     # 0xe30f9
movq %rax, 0x10(%r9)
movq $0x23, 0x8(%r9)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9bbb
movq 0x8(%rcx), %rsi
movq 0x10(%r13), %rax
cmpb $0x1, (%rax)
jne 0x2fbb4
cmpq %rbp, 0x12f0(%rbx)
je 0x2f9e0
cmpq %rbp, 0x12d8(%rbx)
je 0x2f9e4
xorl %ecx, %ecx
cmpq %rbp, 0x12d0(%rbx)
sete %cl
leal (%rcx,%rcx,2), %ecx
addl $0x15, %ecx
jmp 0x2f9e7
pushq $0x16
jmp 0x2f9e6
pushq $0x17
popq %rcx
movq 0x8(%rax), %r12
movq 0x10(%rax), %rax
cmpb $0x1, (%rax)
jne 0x2fbab
movq 0x8(%rax), %r14
movzbl (%r14), %edx
leaq 0xf21d9(%rip), %rax     # 0x121be0
movb (%rdx,%rax), %al
cmpq $0x2f, %rdx
jbe 0x2fb30
testb %al, %al
jne 0x2fb34
movq 0x11e0(%rbx), %rax
movq 0x10(%rax), %rax
cmpq 0x10(%rax), %r14
je 0x2fc7e
movq 0x10d0(%rbx), %rax
movq 0x10(%rax), %rax
cmpq 0x10(%rax), %r14
je 0x2fc82
movq 0xfe0(%rbx), %rax
movq 0x10(%rax), %rax
cmpq 0x10(%rax), %r14
je 0x2fc86
movq 0x8(%r14), %rax
cmpq $0x0, (%rax)
je 0x2fd1b
cmpq $0x0, 0x60(%rax)
jne 0x2fa7f
leaq 0x1a7af(%rip), %rdx     # 0x4a226
movq %rdx, 0x60(%rax)
movq 0x8(%r14), %rax
cmpq $0x0, 0x58(%rax)
jne 0x2faab
movq %rsi, (%rsp)
movq (%rax), %rsi
movq %rbx, %rdi
movl %ecx, %r13d
callq 0x94d4
movl %r13d, %ecx
movq (%rsp), %rsi
movq 0x8(%r14), %rdx
movq %rax, 0x58(%rdx)
movq 0x8(%r14), %rax
movq 0x38(%rax), %rax
cmpq 0x1a20(%rbx), %rax
je 0x2fbab
cmpb $0x1, (%rax)
jne 0x2fbab
movq 0x8(%rax), %rdx
cmpq 0xfd8(%rbx), %rdx
jne 0x2faf4
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdx
cmpq 0x118(%rbx), %rdx
jne 0x2faf4
movq 0x10(%rax), %rax
cmpq 0x110(%rbx), %rax
je 0x2fbab
movq 0x8(%rbp), %rsi
movq 0xe5e69(%rip), %rdx     # 0x115968
movq 0x140(%rbx), %r8
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rcx
movq (%rax,%rcx,8), %r9
leal 0x1(%rcx), %eax
andl $0x7, %eax
movl %eax, 0x7dc(%rbx)
leaq 0xb3637(%rip), %rax     # 0xe3162
jmp 0x2fd52
testb %al, %al
je 0x2fb5a
movl %ecx, (%rsp)
movq %rsi, %r13
movq 0x18(%r14), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7b153
cmpb $0xa, (%rax)
jne 0x2fc30
movq %r13, %rsi
movl (%rsp), %ecx
jmp 0x2fbab
cmpq 0x118(%rbx), %r14
je 0x2fbab
movq 0x8(%rbp), %rsi
movq 0xe5dfa(%rip), %rdx     # 0x115968
movq 0x140(%rbx), %r8
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rcx
movq (%rax,%rcx,8), %r9
leal 0x1(%rcx), %eax
andl $0x7, %eax
movl %eax, 0x7dc(%rbx)
leaq 0xb3583(%rip), %rax     # 0xe311d
movq %rax, 0x10(%r9)
movq $0x25, 0x8(%r9)
jmp 0x2fc73
cmpl $0x15, %ecx
jne 0x2fc89
pushq $0x15
popq %rcx
movb $0x1, %bpl
cmpb $0x7, (%r14)
je 0x2fc8b
movq %rsi, %r13
movq 0x700(%rbx), %rax
movq %r12, 0x8(%rax)
movq 0x700(%rbx), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa34c
cmpq 0x120(%rbx), %rax
jne 0x2fc28
cmpb $0x30, (%r14)
jb 0x2fbf9
movq 0x8(%r14), %rax
jmp 0x2fc10
movq 0x18(%r14), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7b153
movq 0x8(%rax), %rax
addq $0x10, %rax
movq (%rax), %r8
leaq 0xae791(%rip), %rsi     # 0xde3ab
pushq $0x3
popq %rdx
movq %rbx, %rdi
movq %r12, %rcx
callq 0xc2b0
movq %r13, %rsi
pushq $0x15
popq %rcx
jmp 0x2fc8b
movq 0x8(%rbp), %rsi
movq 0xe5d2d(%rip), %rdx     # 0x115968
movq 0x140(%rbx), %r8
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rcx
movq (%rax,%rcx,8), %r9
leal 0x1(%rcx), %eax
andl $0x7, %eax
movl %eax, 0x7dc(%rbx)
leaq 0xb34dc(%rip), %rax     # 0xe3143
movq %rax, 0x10(%r9)
movq $0x1e, 0x8(%r9)
movq %rbx, %rdi
movq %r14, %rcx
jmp 0x2f996
pushq $0x17
jmp 0x2fc88
pushq $0x16
jmp 0x2fc88
pushq $0x18
popq %rcx
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2e4a2
movq %rax, %r13
testb %bpl, %bpl
je 0x2fccd
cmpb $0x7, (%r14)
je 0x2fccd
movzwl 0x6(%r13), %eax
movl %eax, %ecx
orl $0x2, %ecx
movw %cx, 0x6(%r13)
movq %r14, 0x28(%r13)
cmpb $0x30, (%r14)
jb 0x2fccd
testb $0x1, 0x7(%r14)
je 0x2fccd
orl $0x102, %eax            # imm = 0x102
movw %ax, 0x6(%r13)
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x2ea29
cmpb $0x1, (%r15)
jne 0x2fcfa
movq 0x10(%r15), %rax
cmpb $0x1, (%rax)
jne 0x2fcfa
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x7b3d5
jmp 0x2fd09
movq 0x740(%rbx), %rdi
movq %r13, %rsi
callq 0xb999
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbp), %rsi
movq 0xe5c42(%rip), %rdx     # 0x115968
movq 0x140(%rbx), %r8
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rcx
movq (%rax,%rcx,8), %r9
leal 0x1(%rcx), %eax
andl $0x7, %eax
movl %eax, 0x7dc(%rbx)
leaq 0xb7de8(%rip), %rax     # 0xe7b3a
movq %rax, 0x10(%r9)
movq $0x1f, 0x8(%r9)
jmp 0x2fc73