// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: g_vector_append
static s7_pointer g_vector_append(s7_scheme *sc, s7_pointer args)
                {
                    /* returns a one-dimensional vector.  To handle multidimensional vectors, we'd need to
                     *   ensure all the dimensional data matches (rank, size of each dimension except the last etc),
                     *   which is too much trouble.
                     */
#define H_vector_append "(vector-append . vectors) returns a new (1-dimensional) vector containing the elements of its vector arguments."
#define Q_vector_append sc->pcl_v

                    s7_pointer p;
                    int32_t i;

                    if (is_null(args))
                        return(make_simple_vector(sc, 0));

                    for (i = 0, p = args; is_pair(p); p = cdr(p), i++)
                    {
                        s7_pointer x;
                        x = car(p);
                        if (!is_any_vector(x))
                        {
                            if (has_active_methods(sc, x))
                            {
                                s7_pointer func;
                                func = find_method(sc, find_let(sc, x), sc->vector_append_symbol);
                                if (func != sc->undefined)
                                {
                                    int32_t k;
                                    s7_pointer v, y;
                                    if (i == 0)
                                        return(s7_apply_function(sc, func, args));
                                    /* we have to copy the arglist here */
                                    sc->temp9 = make_list(sc, i, sc->F);
                                    for (k = 0, y = args, v = sc->temp9; k < i; k++, y = cdr(y), v = cdr(v))
                                        set_car(v, car(y));
                                    v = g_vector_append(sc, sc->temp9);
                                    y = s7_apply_function(sc, func, cons(sc, v, p));
                                    sc->temp9 = sc->nil;
                                    return(y);
                                }
                            }
                            return(wrong_type_argument(sc, sc->vector_append_symbol, i + 1, x, T_VECTOR));
                        }
                    }
                    return(vector_append(sc, args, type(car(args)), sc->vector_append_symbol));
                }

// Assembly:
subq $0xc8, %rsp
movq %rdi, 0xb8(%rsp)
movq %rsi, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movq 0xb8(%rsp), %rcx
cmpq 0x110(%rcx), %rax
jne 0x98e4e
movq 0xb8(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x34da0
movq %rax, 0xc0(%rsp)
jmp 0x992ef
movl $0x0, 0xa4(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x992b2
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x1818ab(%rip), %rax    # 0x21a750
testb $0x1, (%rax,%rcx)
jne 0x99286
movq 0x98(%rsp), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
je 0x9915c
movq 0xb8(%rsp), %rax
testb $0x1, 0x24c(%rax)
je 0x9915c
movq 0xb8(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0xb8(%rsp), %rdi
movq 0x98(%rsp), %rsi
callq 0x9a10
movq 0x30(%rsp), %rdi
movq %rax, %rsi
movq 0xb8(%rsp), %rax
movq 0x1648(%rax), %rdx
callq 0x98d0
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
movq 0xb8(%rsp), %rcx
cmpq 0x128(%rcx), %rax
je 0x9915a
cmpl $0x0, 0xa4(%rsp)
jne 0x98f76
movq 0xb8(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0xb0(%rsp), %rdx
callq 0xda50
movq %rax, 0xc0(%rsp)
jmp 0x992ef
movq 0xb8(%rsp), %rdi
movl 0xa4(%rsp), %esi
movq 0xb8(%rsp), %rax
movq 0x120(%rax), %rdx
callq 0x32330
movq %rax, %rcx
movq 0xb8(%rsp), %rax
movq %rcx, 0x538(%rax)
movl $0x0, 0x8c(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0xb8(%rsp), %rax
movq 0x538(%rax), %rax
movq %rax, 0x80(%rsp)
movl 0x8c(%rsp), %eax
cmpl 0xa4(%rsp), %eax
jge 0x99034
movq 0x78(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x80(%rsp), %rax
movq %rcx, 0x8(%rax)
movl 0x8c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8c(%rsp)
movq 0x78(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x78(%rsp)
movq 0x80(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x80(%rsp)
jmp 0x98fda
movq 0xb8(%rsp), %rdi
movq 0xb8(%rsp), %rax
movq 0x538(%rax), %rsi
callq 0x98e00
movq %rax, 0x80(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0xb8(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xb8(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x990b9
movq 0xb8(%rsp), %rdi
callq 0xc670
movq 0xb8(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %rdi
movq 0x68(%rsp), %rcx
movq 0x70(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x60(%rsp), %rcx
movq 0x70(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x70(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rdx
callq 0xda50
movq %rax, 0x78(%rsp)
movq 0xb8(%rsp), %rax
movq 0x110(%rax), %rcx
movq 0xb8(%rsp), %rax
movq %rcx, 0x538(%rax)
movq 0x78(%rsp), %rax
movq %rax, 0xc0(%rsp)
jmp 0x992ef
jmp 0x9915c
movq 0xb8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xb8(%rsp), %rax
movq 0x1648(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movl 0xa4(%rsp), %eax
addl $0x1, %eax
cltq
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x991bd
movq 0x50(%rsp), %rcx
leaq 0x17d2d1(%rip), %rax    # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, 0x8(%rsp)
jmp 0x99240
jmp 0x991bf
movq 0xb8(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xb8(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x991ec
movq 0xb8(%rsp), %rdi
callq 0xc670
movq 0xb8(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq $0xb, (%rax)
movq 0x50(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x40(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rdx
movq 0x98(%rsp), %rcx
movq 0xb8(%rsp), %rax
movq 0x140(%rax), %r8
movq 0x1813c1(%rip), %r9     # 0x21a638
callq 0xc560
movq %rax, 0xc0(%rsp)
jmp 0x992ef
jmp 0x99288
movq 0xa8(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xa8(%rsp)
movl 0xa4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xa4(%rsp)
jmp 0x98e69
movq 0xb8(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movq 0xb0(%rsp), %rax
movq 0x8(%rax), %rax
movb (%rax), %al
movq 0xb8(%rsp), %rcx
movq 0x1648(%rcx), %rcx
movzbl %al, %edx
callq 0x1cbaa0
movq %rax, 0xc0(%rsp)
movq 0xc0(%rsp), %rax
addq $0xc8, %rsp
retq
nop