// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: sublet_1
static s7_pointer sublet_1(s7_scheme *sc, s7_pointer e, s7_pointer bindings, s7_pointer caller)
    {
        s7_pointer new_e;
        if (e == sc->rootlet)
            new_e = new_frame_in_env(sc, sc->nil);
        else new_e = new_frame_in_env(sc, e);
        set_all_methods(new_e, e);

        if (!is_null(bindings))
        {
            s7_pointer x;
            sc->temp3 = new_e;

            for (x = bindings; is_pair(x); x = cdr(x))
            {
                s7_pointer p, sym, val;

                p = car(x);
                switch (type(p))
                {
                    /* should this insist on one style of field arg?  i.e. (cons sym val) throughout, or :sym val etc? */
                    case T_SYMBOL:
                        if (is_keyword(p))
                            sym = keyword_symbol(p);
                        else sym = p;
                        if (!is_pair(cdr(x)))
                            s7_error(sc, sc->error_symbol, set_elist_3(sc, value_is_missing_string, caller, car(x)));
                        x = cdr(x);
                        val = car(x);
                        break;

                    case T_PAIR:
                        sym = car(p);
                        if (!is_symbol(sym))
                            return(wrong_type_argument_with_type(sc, caller, 1 + position_of(x, bindings), p, a_symbol_string));
                        if (is_keyword(sym))
                            sym = keyword_symbol(sym);
                        val = cdr(p);
                        break;

                    case T_LET:
                        append_let(sc, new_e, check_c_obj_env(sc, p, caller));
                        continue;

                    default:
                        return(wrong_type_argument_with_type(sc, caller, 1 + position_of(x, bindings), p, a_symbol_string));
                }

                if (is_constant_symbol(sc, sym))
                    return(wrong_type_argument_with_type(sc, caller, 1 + position_of(x, bindings), sym, a_non_constant_symbol_string));
                if ((is_slot(global_slot(sym))) &&
                        (is_syntax(slot_value(global_slot(sym)))))
                    return(wrong_type_argument_with_type(sc, caller, 2, sym, wrap_string(sc, "a non-syntactic name", 20)));

                /* here we know new_e is a let and is not rootlet */
                make_slot_1(sc, new_e, sym, val);
                if (sym == sc->let_ref_fallback_symbol)
                    set_has_let_ref_fallback(new_e);
                else
                {
                    if (sym == sc->let_set_fallback_symbol)
                        set_has_let_set_fallback(new_e);
                }
            }
            sc->temp3 = sc->nil;
        }
        return(new_e);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, (%rsp)
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %rbx
cmpq %rsi, 0x150(%rdi)
je 0xa5c4
movq 0x90(%rbx), %rax
movq %r13, %r14
jmp 0xa5d2
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r14
cmpq 0x98(%rbx), %rax
ja 0xa5ea
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r12
movq $0x20001c, (%r12)       # imm = 0x20001C
movq 0x250(%rbx), %rax
incq %rax
movq %rax, 0x250(%rbx)
movq %rax, 0x18(%r12)
movq $0x0, 0x8(%r12)
movq %r14, 0x10(%r12)
movq (%r13), %rax
andl $0x4c000000, %eax       # imm = 0x4C000000
orq %rax, (%r12)
movq 0x110(%rbx), %rax
cmpq %r15, %rax
je 0xa802
movq %r12, 0x508(%rbx)
cmpb $0x1, (%r15)
jne 0xa7fb
movq %r15, %r14
movq 0x8(%r14), %rbp
movzbl (%rbp), %eax
cmpl $0x1, %eax
je 0xa6fe
cmpl $0x1c, %eax
je 0xa6dc
cmpl $0xa, %eax
jne 0xa880
testb $-0x80, 0x6(%rbp)
movq %rbp, %r13
je 0xa68a
movq 0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rax), %r13
movq 0x10(%r14), %rax
cmpb $0x1, (%rax)
je 0xa6d3
movq 0xea8(%rbx), %rsi
movq 0x14380f(%rip), %rax    # 0x14deb0
movq 0x6e8(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x10(%rcx), %rax
movq (%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rax), %rax
movq %rbp, 0x8(%rax)
movq 0x6e8(%rbx), %rdx
movq %rbx, %rdi
callq 0x38dfa
movq 0x10(%r14), %rax
leaq 0x8(%rax), %rbp
movq %rax, %r14
jmp 0xa724
movq %rbx, %rdi
movq %rbp, %rsi
movq (%rsp), %rdx
callq 0x8efdf
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x8ed81
jmp 0xa7bf
movq 0x8(%rbp), %r13
cmpb $0xa, (%r13)
jne 0xa8a1
testb $-0x80, 0x6(%r13)
je 0xa720
movq 0x8(%r13), %rax
movq 0x20(%rax), %rax
movq 0x18(%rax), %r13
addq $0x10, %rbp
movq (%r13), %rax
btl $0x18, %eax
jb 0xa814
movq (%rbp), %rcx
btq $0x30, %rax
jae 0xa77b
movq 0x8(%rbx), %rdx
movq 0x18(%rdx), %rdi
movq 0x20(%r13), %rsi
movl $0x18, %eax
cmpq %rsi, %rdi
je 0xa767
jle 0xa762
movq 0x10(%rdx), %rdx
movq 0x18(%rdx), %rdi
cmpq %rdi, %rsi
jl 0xa755
cmpq %rsi, %rdi
jne 0xa7cf
movq (%r13,%rax), %rsi
cmpb $0x20, (%rsi)
jne 0xa77b
testb $0x1, 0x3(%rsi)
jne 0xa814
movq 0x10(%r13), %rax
cmpb $0x20, (%rax)
jne 0xa791
movq 0x10(%rax), %rax
cmpb $0x9, (%rax)
je 0xa90d
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xa332
cmpq 0x1228(%rbx), %r13
je 0xa7b9
cmpq 0x1238(%rbx), %r13
jne 0xa7bf
orb $0x8, 0x3(%r12)
jmp 0xa7bf
orb $0x4, 0x3(%r12)
movq 0x10(%r14), %r14
cmpb $0x1, (%r14)
je 0xa656
jmp 0xa7f4
movl $0x10, %eax
cmpb $0x1c, (%rdx)
jne 0xa767
movq 0x8(%rdx), %rsi
testq %rsi, %rsi
je 0xa7ee
cmpq %r13, 0x8(%rsi)
je 0xa76c
movq 0x18(%rsi), %rsi
jmp 0xa7dd
movq 0x10(%rdx), %rdx
jmp 0xa7d4
movq 0x110(%rbx), %rax
movq %rax, 0x508(%rbx)
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rsp), %rax
movq 0x8(%rax), %r12
cmpq %r15, %r14
je 0xa959
xorl %eax, %eax
movq 0x10(%r15), %r15
incq %rax
cmpq %r14, %r15
jne 0xa827
leaq 0x2(%rax), %r14
cmpl $0x7fd, %eax            # imm = 0x7FD
jbe 0xa95f
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0xa861
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rdx
movq $0xb, (%rdx)
movq %r14, 0x8(%rdx)
jmp 0xa96a
movq (%rsp), %rax
movq 0x8(%rax), %r12
cmpq %r15, %r14
je 0xa983
xorl %eax, %eax
movq 0x10(%r15), %r15
incq %rax
cmpq %r14, %r15
jne 0xa893
jmp 0xa8c0
movq (%rsp), %rax
movq 0x8(%rax), %r12
cmpq %r15, %r14
je 0xa983
xorl %eax, %eax
movq 0x10(%r15), %r15
incq %rax
cmpq %r14, %r15
jne 0xa8b4
leaq 0x2(%rax), %r14
cmpl $0x7fd, %eax            # imm = 0x7FD
jbe 0xa989
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0xa8ee
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rdx
movq $0xb, (%rdx)
movq %r14, 0x8(%rdx)
jmp 0xa994
movq (%rsp), %rax
movq 0x8(%rax), %rsi
movq 0x13c044(%rip), %rdx    # 0x146960
movq 0x140(%rbx), %r8
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rcx
movq (%rax,%rcx,8), %r9
leal 0x1(%rcx), %eax
andl $0x7, %eax
movl %eax, 0x7dc(%rbx)
leaq 0xff6e9(%rip), %rax     # 0x10a031
movq %rax, 0x10(%r9)
movq $0x14, 0x8(%r9)
movq %rbx, %rdi
jmp 0xa97e
movl $0x2, %r14d
leaq 0x13bfea(%rip), %rax    # 0x146950
movq (%rax,%r14,8), %rdx
movq 0x140(%rbx), %r8
movq 0x143540(%rip), %r9     # 0x14deb8
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rcx
jmp 0xa9ab
movl $0x2, %r14d
leaq 0x13bfc0(%rip), %rax    # 0x146950
movq (%rax,%r14,8), %rdx
movq 0x140(%rbx), %r8
movq 0x13ffbe(%rip), %r9     # 0x14a960
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa4e4