// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: trailers
static goto_t trailers(s7_scheme *sc)
                {
                    s7_pointer code;
                    code = sc->code;
                    if (is_pair(code))
                    {
                        s7_pointer carc;
                        carc = car(code);
                        if (is_syntactic_symbol(carc))  /* carc can also be syntactic */
                        {
                            sc->cur_op = (opcode_t)symbol_syntax_op_checked(code);
                            pair_set_syntax_op(code, sc->cur_op);
                            return(goto_top_no_pop);
                        }

                        if (is_symbol(carc))
                        {
                            /* car is a symbol, sc->code a list */
                            if (is_syntactic_symbol(carc))
                            {
                                sc->cur_op = (opcode_t)symbol_syntax_op_checked(code);
                                pair_set_syntax_op(sc->code, sc->cur_op);
                                return(goto_top_no_pop);
                            }
                            sc->value = lookup_global(sc, carc);
                            set_optimize_op(code, OP_PAIR_SYM);
                            /* pair_sym -> unknown* check seems to make no difference? maybe split pair_sym? */
                            return(goto_eval_args_top);
                        }
                        if (is_pair(carc))  /* very uncommon case: car is either itself a pair or some non-symbol */
                        {
                            if (eval_car_pair(sc)) return(goto_top_no_pop);
                            return(goto_eval);
                        }
                        /* here we can get syntax objects like quote */
                        if (is_syntax(carc))
                        {
                            sc->cur_op = (opcode_t)syntax_opcode(carc);
                            pair_set_syntax_op(sc->code, sc->cur_op);
                            return(goto_top_no_pop);
                        }
                        /* car must be the function to be applied, or (for example) a syntax variable like quote that has been used locally */
                        set_optimize_op(code, OP_PAIR_ANY);
                        sc->value = T_Pos(carc);
                        return(goto_eval_args_top);
                    }
                    if (is_symbol(code))
                    {
                        sc->value = lookup_checked(sc, code);
                        set_optimize_op(code, (is_keyword(code)) ? OP_CON : ((is_global(code)) ? OP_GLOBAL_SYM : OP_SYM));
                    }
                    else
                    {
                        sc->value = T_Pos(code);
                        set_optimize_op(code, OP_CON);
                    }
                    return(goto_start);
                }

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x15abb6
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
movzwl (%rax), %eax
cmpl $0x20a, %eax            # imm = 0x20A
jne 0x15a99f
movq 0x60(%rsp), %rax
movzwl (%rax), %eax
cmpl $0x201, %eax            # imm = 0x201
jne 0x15a937
movq 0x60(%rsp), %rax
movzwl 0x4(%rax), %eax
movq %rax, 0x30(%rsp)
jmp 0x15a951
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x68(%rsp), %rax
movq 0x18(%rax), %rax
movw %ax, %cx
movq 0x60(%rsp), %rax
movw %cx, 0x4(%rax)
movq 0x60(%rsp), %rax
movq (%rax), %rcx
andq $-0x10000, %rcx         # imm = 0xFFFF0000
orq $0x201, %rcx            # imm = 0x201
movq 0x60(%rsp), %rax
movq %rcx, (%rax)
movl $0x9, 0x74(%rsp)
jmp 0x15ac90
movq 0x58(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0x15aaf1
movq 0x58(%rsp), %rax
movzwl (%rax), %eax
cmpl $0x20a, %eax            # imm = 0x20A
jne 0x15aa53
movq 0x60(%rsp), %rax
movzwl (%rax), %eax
cmpl $0x201, %eax            # imm = 0x201
jne 0x15a9e2
movq 0x60(%rsp), %rax
movzwl 0x4(%rax), %eax
movq %rax, 0x28(%rsp)
jmp 0x15a9fc
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x68(%rsp), %rax
movq 0x18(%rax), %rax
movw %ax, %cx
movq 0x68(%rsp), %rax
movq (%rax), %rax
movw %cx, 0x4(%rax)
movq 0x68(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rcx
andq $-0x10000, %rcx         # imm = 0xFFFF0000
orq $0x201, %rcx            # imm = 0x201
movq 0x68(%rsp), %rax
movq (%rax), %rax
movq %rcx, (%rax)
movl $0x9, 0x74(%rsp)
jmp 0x15ac90
movq 0x58(%rsp), %rax
movq (%rax), %rax
andq $0x10000, %rax          # imm = 0x10000
cmpq $0x0, %rax
je 0x15aa7b
movq 0x58(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0x15aacb
movq 0x68(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0xde990
movq %rax, 0x50(%rsp)
cmpq $0x0, 0x50(%rsp)
je 0x15aaa3
movq 0x50(%rsp), %rax
movq %rax, 0x18(%rsp)
jmp 0x15aab7
movq 0x68(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0xdead0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x60(%rsp), %rax
movw $0x189, 0x4(%rax)       # imm = 0x189
movl $0xc, 0x74(%rsp)
jmp 0x15ac90
movq 0x58(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x15ab28
movq 0x68(%rsp), %rdi
callq 0x19ade0
testb $0x1, %al
jne 0x15ab0e
jmp 0x15ab1b
movl $0x9, 0x74(%rsp)
jmp 0x15ac90
movl $0x5, 0x74(%rsp)
jmp 0x15ac90
movq 0x58(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x9, %eax
jne 0x15ab90
movq 0x58(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x68(%rsp), %rax
movq 0x18(%rax), %rax
movw %ax, %cx
movq 0x68(%rsp), %rax
movq (%rax), %rax
movw %cx, 0x4(%rax)
movq 0x68(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rcx
andq $-0x10000, %rcx         # imm = 0xFFFF0000
orq $0x201, %rcx            # imm = 0x201
movq 0x68(%rsp), %rax
movq (%rax), %rax
movq %rcx, (%rax)
movl $0x9, 0x74(%rsp)
jmp 0x15ac90
movq 0x60(%rsp), %rax
movw $0x18b, 0x4(%rax)       # imm = 0x18B
movq 0x58(%rsp), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x20(%rax)
movl $0xc, 0x74(%rsp)
jmp 0x15ac90
movq 0x60(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
jne 0x15ac6f
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0xde990
movq %rax, 0x40(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x15abef
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0x15ac03
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0xdead0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x60(%rsp), %rax
movzwl 0x6(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x15ac39
movl $0x188, %eax            # imm = 0x188
movl %eax, 0xc(%rsp)
jmp 0x15ac5d
movq 0x60(%rsp), %rax
movq (%rax), %rdx
andq $0x10000, %rdx          # imm = 0x10000
movl $0x186, %eax            # imm = 0x186
movl $0x187, %ecx            # imm = 0x187
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %eax
movw %ax, %cx
movq 0x60(%rsp), %rax
movw %cx, 0x4(%rax)
jmp 0x15ac88
movq 0x60(%rsp), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x60(%rsp), %rax
movw $0x188, 0x4(%rax)       # imm = 0x188
movl $0x0, 0x74(%rsp)
movl 0x74(%rsp), %eax
addq $0x78, %rsp
retq
nopl (%rax)