// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: g_int_vector
static s7_pointer g_int_vector(s7_scheme *sc, s7_pointer args)
                {
#define H_int_vector "(int-vector ...) returns an homogeneous s7_int vector whose elements are the arguments"
#define Q_int_vector s7_make_circular_signature(sc, 1, 2, sc->is_int_vector_symbol, sc->is_integer_symbol)

                    s7_int len;
                    s7_pointer vec;

                    len = safe_list_length(args);
                    vec = make_simple_int_vector(sc, len);
                    if (len > 0)
                    {
                        s7_int i;
                        s7_pointer x;
                        for (x = args, i = 0; is_pair(x); x = cdr(x), i++)
                        {
                            s7_pointer p;
                            p = car(x);
                            if (is_t_integer(p))
                                int_vector(vec, i) = integer(p);
                            else
                            {
#if WITH_GMP
                                if (is_t_big_integer(p))
                                    int_vector(vec, i) = big_integer_to_s7_int(big_integer(p));
                                else
#endif
                                    return(method_or_bust(sc, p, sc->int_vector_symbol, copy_list(sc, args), T_INTEGER, i + 1));
                            }
                        }
                    }
                    return(vec);
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
cmpb $0x1, (%rsi)
jne 0x7b082
xorl %r12d, %r12d
movq %r14, %rax
incq %r12
movq 0x10(%rax), %rax
cmpb $0x1, (%rax)
je 0x7b074
jmp 0x7b085
xorl %r12d, %r12d
movq 0x90(%rdi), %rax
cmpq 0x98(%rdi), %rax
movq %rdi, (%rsp)
ja 0x7b0ad
movq (%rsp), %rdi
callq 0xa550
movq (%rsp), %rdi
movq 0x90(%rdi), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rdi)
movq -0x8(%rax), %r15
movq $0x200016, (%r15)       # imm = 0x200016
movq %r12, 0x8(%r15)
leaq (,%r12,8), %rsi
testq %rsi, %rsi
jle 0x7b0e3
movq (%rsp), %rdi
callq 0x9357
movq (%rsp), %rdi
jmp 0x7b14d
movq 0x838(%rdi), %rax
testq %rax, %rax
jne 0x7b132
movl $0x2800, %edi           # imm = 0x2800
callq 0x8480
movq (%rsp), %rdi
movq %rax, 0x838(%rdi)
movq %rax, %rcx
addq $0x28, %rcx
movl $0xff, %edx
movq %rcx, -0x10(%rcx)
movl $0x0, -0x20(%rcx)
addq $0x28, %rcx
decl %edx
jne 0x7b110
movq $0x0, -0x10(%rcx)
movl $0x0, -0x20(%rcx)
movq 0x18(%rax), %rcx
movq %rcx, 0x838(%rdi)
movl $0x0, 0x8(%rax)
xorl %ecx, %ecx
movq %rcx, (%rax)
movq %rcx, 0x20(%rax)
movq %rax, 0x18(%r15)
movq (%rax), %rcx
movq %rcx, 0x10(%r15)
movq $0x0, 0x20(%rax)
leaq 0x1e6ce(%rip), %rax     # 0x99835
movq %rax, 0x20(%r15)
leaq 0x1e729(%rip), %rax     # 0x9989b
movq %rax, 0x28(%r15)
movq 0x740(%rdi), %r13
movq (%r13), %rax
movq 0x10(%r13), %rsi
cmpq 0x8(%r13), %rsi
jne 0x7b1ab
leaq (%rsi,%rsi), %rcx
movq %rcx, 0x8(%r13)
shlq $0x4, %rsi
movq %rax, %rdi
callq 0x8510
movq (%rsp), %rdi
movq %rax, (%r13)
movq 0x10(%r13), %rsi
leaq 0x1(%rsi), %rcx
movq %rcx, 0x10(%r13)
movq %r15, (%rax,%rsi,8)
testq %r12, %r12
jle 0x7b1eb
cmpb $0x1, (%r14)
jne 0x7b1eb
xorl %r12d, %r12d
movq %r14, %rax
movq 0x8(%rax), %r13
cmpb $0xb, (%r13)
jne 0x7b1fd
movq 0x8(%r13), %rcx
movq 0x10(%r15), %rdx
movq %rcx, (%rdx,%r12,8)
movq 0x10(%rax), %rax
incq %r12
cmpb $0x1, (%rax)
je 0x7b1c8
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xfb8(%rdi), %rdx
cmpb $0x1, (%r14)
jne 0x7b307
movq %rdx, 0x10(%rsp)
movq %r14, 0x4c8(%rdi)
movq 0x8(%r14), %rbp
movq 0x90(%rdi), %rax
movq 0x110(%rdi), %r15
cmpq 0x98(%rdi), %rax
ja 0x7b249
movq (%rsp), %rdi
callq 0xa550
movq (%rsp), %rdi
movq 0x90(%rdi), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rdi)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %rbp, 0x8(%rax)
movq %r15, 0x10(%rax)
movq %rax, 0x8(%rsp)
movq %rax, 0x4e8(%rdi)
movq 0x10(%r14), %r14
cmpb $0x1, (%r14)
jne 0x7b2e0
movq 0x8(%rsp), %rbp
movq 0x8(%r14), %r15
movq 0x90(%rdi), %rax
movq 0x110(%rdi), %rbx
cmpq 0x98(%rdi), %rax
ja 0x7b2b1
movq (%rsp), %rdi
callq 0xa550
movq (%rsp), %rdi
movq 0x90(%rdi), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rdi)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %r15, 0x8(%rax)
movq %rbx, 0x10(%rax)
movq %rax, 0x10(%rbp)
movq 0x10(%r14), %r14
cmpb $0x1, (%r14)
movq %rax, %rbp
je 0x7b282
movq 0x110(%rdi), %rax
movq %rax, 0x4e8(%rdi)
movq %rax, 0x4c8(%rdi)
incl %r12d
movq %r13, %rsi
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
jmp 0x7b314
movq 0x110(%rdi), %rcx
incl %r12d
movq %r13, %rsi
movl $0xb, %r8d
movl %r12d, %r9d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe42d