// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: vector_append
static s7_pointer vector_append(s7_scheme *sc, s7_pointer args, uint8_t typ, s7_pointer caller)
                {
                    s7_pointer new_vec;
                    s7_pointer *v_elements = NULL;
                    s7_double *fv_elements = NULL;
                    s7_int *iv_elements = NULL;
                    uint8_t *byte_elements = NULL;
                    s7_int len;

                    push_stack_no_let_no_code(sc, OP_GC_PROTECT, args);
                    len = total_sequence_length(sc, args, caller, (typ == T_VECTOR) ? T_FREE : ((typ == T_FLOAT_VECTOR) ? T_REAL : T_INTEGER));
                    if (len > sc->max_vector_length)
                    {
                        unstack(sc);
                        return(s7_error(sc, sc->out_of_range_symbol,
                                    set_elist_4(sc, wrap_string(sc, "~S new vector length, ~D, is larger than (*s7* 'max-vector-length): ~D", 70),
                                        caller,
                                        wrap_integer1(sc, len),
                                        wrap_integer2(sc, sc->max_vector_length))));
                    }
                    new_vec = make_vector_1(sc, len, (typ == T_VECTOR) ? FILLED : NOT_FILLED, typ);  /* might hit GC in loop below so we can't use NOT_FILLED here */
                    add_vector(sc, new_vec);

                    if (typ == T_VECTOR)
                        v_elements = vector_elements(new_vec);
                    else
                    {
                        if (typ == T_FLOAT_VECTOR)
                            fv_elements = float_vector_floats(new_vec);
                        else
                        {
                            if (typ == T_INT_VECTOR)
                                iv_elements = int_vector_ints(new_vec);
                            else byte_elements = byte_vector_bytes(new_vec);
                        }
                    }

                    if (len > 0)
                    {
                        s7_pointer p, pargs;
                        s7_int i;

                        pargs = list_2(sc, sc->F, new_vec); /* car set below */
                        push_stack_no_let(sc, OP_GC_PROTECT, new_vec, pargs);

                        for (i = 0, p = args; is_pair(p); p = cdr(p))
                        {
                            s7_int n;
                            s7_pointer x;
                            x = car(p);
                            n = sequence_length(sc, x);
                            if (n > 0)
                            {
                                vector_length(new_vec) = n;
                                set_car(pargs, x);
                                s7_copy_1(sc, sc->append_symbol, pargs);  /* not set_plist_2 here! */
                                vector_length(new_vec) = 0;               /* so GC doesn't march off the end */
                                i += n;
                                if (typ == T_VECTOR)
                                    vector_elements(new_vec) = (s7_pointer *)(v_elements + i);
                                else
                                {
                                    if (typ == T_FLOAT_VECTOR)
                                        float_vector_floats(new_vec) = (s7_double *)(fv_elements + i);
                                    else
                                    {
                                        if (typ == T_INT_VECTOR)
                                            int_vector_ints(new_vec) = (s7_int *)(iv_elements + i);
                                        else byte_vector_bytes(new_vec) = (uint8_t *)(byte_elements + i);
                                    }
                                }
                            }
                        }

                        unstack(sc);
                        /* free_cell(sc, pargs); */ /* this is trouble if any arg is openlet with append method -- e.g. block */

                        if (typ == T_VECTOR)
                            vector_elements(new_vec) = v_elements;
                        else
                        {
                            if (typ == T_FLOAT_VECTOR)
                                float_vector_floats(new_vec) = fv_elements;
                            else
                            {
                                if (typ == T_INT_VECTOR)
                                    int_vector_ints(new_vec) = iv_elements;
                                else byte_vector_bytes(new_vec) = byte_elements;
                            }
                        }
                        vector_length(new_vec) = len;
                    }
                    unstack(sc);
                    return(new_vec);
                }

// Assembly:
subq $0x108, %rsp            # imm = 0x108
movb %dl, %al
movq %rdi, 0xf8(%rsp)
movq %rsi, 0xf0(%rsp)
movb %al, 0xef(%rsp)
movq %rcx, 0xe0(%rsp)
movq $0x0, 0xd0(%rsp)
movq $0x0, 0xc8(%rsp)
movq $0x0, 0xc0(%rsp)
movq $0x0, 0xb8(%rsp)
movq 0xf0(%rsp), %rcx
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x10(%rax)
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movl $0x1, %ecx
movq %rcx, 0x18(%rax)
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rcx
addq $0x20, %rcx
movq %rcx, 0x50(%rax)
movq 0xf8(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0xe0(%rsp), %rax
movq %rax, 0x60(%rsp)
movzbl 0xef(%rsp), %eax
cmpl $0x15, %eax
jne 0x1cbb75
xorl %eax, %eax
movl %eax, 0x4c(%rsp)
jmp 0x1cbb91
movzbl 0xef(%rsp), %edx
movl $0xb, %eax
movl $0xd, %ecx
cmpl $0x17, %edx
cmovel %ecx, %eax
movl %eax, 0x4c(%rsp)
movq 0x60(%rsp), %rdx
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %rdi
movl 0x4c(%rsp), %eax
movzbl %al, %ecx
callq 0x1cc5a0
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movq 0xf8(%rsp), %rcx
cmpq 0x2a0(%rcx), %rax
jle 0x1cbcaf
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rcx
addq $-0x20, %rcx
movq %rcx, 0x50(%rax)
movq 0xf8(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0xf8(%rsp), %rax
movq 0x1948(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xf8(%rsp), %rdi
leaq 0x27d10(%rip), %rsi     # 0x1f3932
movl $0x46, %edx
callq 0xb880
movq %rax, 0x20(%rsp)
movq 0xe0(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0xf8(%rsp), %rdi
movq 0xb0(%rsp), %rsi
callq 0x12430
movq %rax, 0x30(%rsp)
movq 0xf8(%rsp), %rdi
movq 0xf8(%rsp), %rax
movq 0x2a0(%rax), %rsi
callq 0x1721c0
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq %rax, %r8
callq 0xd7140
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x100(%rsp)
jmp 0x1cc16b
movq 0xf8(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movzbl 0xef(%rsp), %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x15, %edx
cmovel %ecx, %eax
cmpl $0x0, %eax
setne %al
movb 0xef(%rsp), %cl
movzbl %cl, %ecx
movzbl %al, %edx
andl $0x1, %edx
callq 0x333c0
movq %rax, 0xd8(%rsp)
movq 0xf8(%rsp), %rax
movq 0x740(%rax), %rdi
movq 0xd8(%rsp), %rsi
callq 0x11230
movzbl 0xef(%rsp), %eax
cmpl $0x15, %eax
jne 0x1cbd36
movq 0xd8(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xd0(%rsp)
jmp 0x1cbd94
movzbl 0xef(%rsp), %eax
cmpl $0x17, %eax
jne 0x1cbd59
movq 0xd8(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xc8(%rsp)
jmp 0x1cbd92
movzbl 0xef(%rsp), %eax
cmpl $0x16, %eax
jne 0x1cbd7c
movq 0xd8(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xc0(%rsp)
jmp 0x1cbd90
movq 0xd8(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xb8(%rsp)
jmp 0x1cbd92
jmp 0x1cbd94
cmpq $0x0, 0xb0(%rsp)
jle 0x1cc147
movq 0xf8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xf8(%rsp), %rax
movq 0x120(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0xd8(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0xf8(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0x80(%rsp)
movq 0xf8(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xf8(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x1cbe18
movq 0xf8(%rsp), %rdi
callq 0xc670
movq 0xf8(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
movq 0x88(%rsp), %rcx
movq 0x90(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x80(%rsp), %rcx
movq 0x90(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x90(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rdx
callq 0xd9f0
movq %rax, 0xa0(%rsp)
movq 0xa0(%rsp), %rcx
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, (%rax)
movq 0xd8(%rsp), %rcx
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x10(%rax)
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rax
movl $0x1, %ecx
movq %rcx, 0x18(%rax)
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rcx
addq $0x20, %rcx
movq %rcx, 0x50(%rax)
movq $0x0, 0x98(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x1cc09e
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0xf8(%rsp), %rdi
movq 0x68(%rsp), %rsi
callq 0x1cc480
movq %rax, 0x70(%rsp)
cmpq $0x0, 0x70(%rsp)
jle 0x1cc083
movq 0x70(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x68(%rsp), %rcx
movq 0xa0(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0xf8(%rsp), %rdi
movq 0xf8(%rsp), %rax
movq 0xbb8(%rax), %rsi
movq 0xa0(%rsp), %rdx
callq 0x3e9e0
movq 0xd8(%rsp), %rax
movq $0x0, 0x8(%rax)
movq 0x70(%rsp), %rax
addq 0x98(%rsp), %rax
movq %rax, 0x98(%rsp)
movzbl 0xef(%rsp), %eax
cmpl $0x15, %eax
jne 0x1cbffd
movq 0xd0(%rsp), %rcx
movq 0x98(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x1cc081
movzbl 0xef(%rsp), %eax
cmpl $0x17, %eax
jne 0x1cc02f
movq 0xc8(%rsp), %rcx
movq 0x98(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x1cc07f
movzbl 0xef(%rsp), %eax
cmpl $0x16, %eax
jne 0x1cc061
movq 0xc0(%rsp), %rcx
movq 0x98(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x1cc07d
movq 0xb8(%rsp), %rcx
addq 0x98(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x1cc07f
jmp 0x1cc081
jmp 0x1cc083
jmp 0x1cc085
movq 0xa8(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xa8(%rsp)
jmp 0x1cbf15
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rcx
addq $-0x20, %rcx
movq %rcx, 0x50(%rax)
movzbl 0xef(%rsp), %eax
cmpl $0x15, %eax
jne 0x1cc0d5
movq 0xd0(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x1cc133
movzbl 0xef(%rsp), %eax
cmpl $0x17, %eax
jne 0x1cc0f8
movq 0xc8(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x1cc131
movzbl 0xef(%rsp), %eax
cmpl $0x16, %eax
jne 0x1cc11b
movq 0xc0(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x1cc12f
movq 0xb8(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x1cc131
jmp 0x1cc133
movq 0xb0(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0xf8(%rsp), %rax
movq 0x50(%rax), %rcx
addq $-0x20, %rcx
movq %rcx, 0x50(%rax)
movq 0xd8(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0x100(%rsp), %rax
addq $0x108, %rsp            # imm = 0x108
retq
nopl (%rax,%rax)