// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: g_append
static s7_pointer g_append(s7_scheme *sc, s7_pointer args)
                {
#define H_append "(append ...) returns its argument sequences appended into one sequence"
#define Q_append s7_make_circular_signature(sc, 0, 1, sc->T)
                    s7_pointer a1;

                    if (is_null(args)) return(sc->nil);  /* (append) -> () */
                    a1 = car(args);                      /* first arg determines result type unless all args but last are empty (sigh) */
                    if (is_null(cdr(args))) return(a1);  /* (append <anything>) -> <anything> */

                    args = copy_list(sc, args);
                    switch (type(a1))
                    {
                        case T_NIL:
                        case T_PAIR:
                            return(g_list_append(sc, args)); /* only list case accepts any trailing arg because dotted lists are special */

                        case T_VECTOR: case T_INT_VECTOR: case T_FLOAT_VECTOR: case T_BYTE_VECTOR:
                            return(vector_append(sc, args, type(a1), sc->append_symbol));

                        case T_STRING:
                            return(g_string_append_1(sc, args, sc->append_symbol));

                        case T_HASH_TABLE:
                            return(hash_table_append(sc, args));

                        case T_LET:
                            return(let_append(sc, args));

                        default:
                            check_method(sc, a1, sc->append_symbol, args);
                    }
                    return(wrong_type_argument_with_type(sc, sc->append_symbol, 1, a1, a_sequence_string)); /* (append 1 0) */
                }

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x78(%rsp)
movq %rsi, 0x70(%rsp)
movq 0x70(%rsp), %rax
movq 0x78(%rsp), %rcx
cmpq 0x110(%rcx), %rax
jne 0x98b0d
movq 0x78(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0x80(%rsp)
jmp 0x98ded
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x78(%rsp), %rcx
cmpq 0x110(%rcx), %rax
jne 0x98b44
movq 0x68(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x98ded
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x44270
movq %rax, 0x70(%rsp)
movq 0x68(%rsp), %rax
movzbl (%rax), %eax
decl %eax
movl %eax, %ecx
movq %rcx, 0x38(%rsp)
subl $0x1b, %eax
ja 0x98c35
movq 0x38(%rsp), %rax
leaq 0x14623e(%rip), %rcx    # 0x1dedbc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x1caca0
movq %rax, 0x80(%rsp)
jmp 0x98ded
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
movq 0x68(%rsp), %rax
movb (%rax), %al
movq 0x78(%rsp), %rcx
movq 0xbb8(%rcx), %rcx
movzbl %al, %edx
callq 0x1cbaa0
movq %rax, 0x80(%rsp)
jmp 0x98ded
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rax
movq 0xbb8(%rax), %rdx
callq 0x1b9f50
movq %rax, 0x80(%rsp)
jmp 0x98ded
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x1cc180
movq %rax, 0x80(%rsp)
jmp 0x98ded
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x1cc2a0
movq %rax, 0x80(%rsp)
jmp 0x98ded
movq 0x68(%rsp), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
je 0x98ce6
movq 0x78(%rsp), %rax
testb $0x1, 0x24c(%rax)
je 0x98ce6
movq 0x78(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x78(%rsp), %rdi
movq 0x68(%rsp), %rsi
callq 0x9a10
movq 0x30(%rsp), %rdi
movq %rax, %rsi
movq 0x78(%rsp), %rax
movq 0xbb8(%rax), %rdx
callq 0x98d0
movq %rax, 0x60(%rsp)
movq 0x78(%rsp), %rcx
cmpq 0x128(%rcx), %rax
je 0x98ce6
movq 0x78(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x44270
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rax, %rdx
callq 0xda50
movq %rax, 0x80(%rsp)
jmp 0x98ded
jmp 0x98ce8
movq 0x78(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x78(%rsp), %rax
movq 0xbb8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq $0x1, 0x58(%rsp)
movq 0x58(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x98d38
movq 0x58(%rsp), %rcx
leaq 0x17d753(%rip), %rax    # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, 0x8(%rsp)
jmp 0x98daf
jmp 0x98d3a
movq 0x78(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x78(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x98d5e
movq 0x78(%rsp), %rdi
callq 0xc670
movq 0x78(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq $0xb, (%rax)
movq 0x58(%rsp), %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x48(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rdx
movq 0x68(%rsp), %rcx
movq 0x78(%rsp), %rax
movq 0x140(%rax), %r8
movq 0x181960(%rip), %r9     # 0x21a740
callq 0xc560
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
addq $0x88, %rsp
retq
nopl (%rax)