// File: /workspace/github_c_makefile_star2_O2/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, %r15
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
cmpq %rsi, 0x150(%rdi)
jne 0x9c95
movq 0x110(%rbx), %rsi
movq %rbx, %rdi
callq 0x72a1d
movq %rax, %r12
movq (%r14), %rax
andl $0x4c000000, %eax       # imm = 0x4C000000
orq %rax, (%r12)
cmpq %r13, 0x110(%rbx)
je 0x9e0f
movq %r12, 0x508(%rbx)
movq %r13, (%rsp)
movq %r13, %r14
cmpb $0x1, (%r14)
jne 0x9e01
movq 0x8(%r14), %r13
movzbl (%r13), %eax
cmpl $0x1, %eax
je 0x9d76
cmpl $0x1c, %eax
je 0x9d55
cmpl $0xa, %eax
jne 0x9e21
testb $-0x80, 0x6(%r13)
movq %r13, %rbp
je 0x9d07
movq 0x8(%r13), %rax
movq 0x20(%rax), %rax
movq 0x18(%rax), %rbp
movq 0x10(%r14), %rax
cmpb $0x1, (%rax)
je 0x9d4c
movq 0xea8(%rbx), %rsi
movq 0x113192(%rip), %rax    # 0x11ceb0
movq 0x6e8(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x10(%rcx), %rax
movq %r15, 0x8(%rax)
movq 0x10(%rax), %rax
movq %r13, 0x8(%rax)
movq 0x6e8(%rbx), %rdx
movq %rbx, %rdi
callq 0x2cdc0
movq 0x10(%r14), %rax
leaq 0x8(%rax), %r13
movq %rax, %r14
jmp 0x9d9a
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x72bca
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x72a93
jmp 0x9df8
movq 0x8(%r13), %rbp
cmpb $0xa, (%rbp)
jne 0x9e21
testb $-0x80, 0x6(%rbp)
je 0x9d96
movq 0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rax), %rbp
addq $0x10, %r13
movq (%r13), %r13
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x72bfa
testb %al, %al
jne 0x9e4c
movq 0x10(%rbp), %rax
cmpb $0x20, (%rax)
jne 0x9dc7
movq 0x10(%rax), %rax
cmpb $0x9, (%rax)
je 0x9f1e
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x9a09
cmpq 0x1228(%rbx), %rbp
je 0x9df2
cmpq 0x1238(%rbx), %rbp
jne 0x9df8
orb $0x8, 0x3(%r12)
jmp 0x9df8
orb $0x4, 0x3(%r12)
movq 0x10(%r14), %r14
jmp 0x9cc7
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 0x8(%r15), %r15
movq %r14, %rdi
movq (%rsp), %rsi
callq 0x72a82
incl %eax
movslq %eax, %r14
cmpl $0x7ff, %r14d           # imm = 0x7FF
ja 0x9e7a
leaq 0x10bb0a(%rip), %rax    # 0x115950
movq (%rax,%r14,8), %rdx
jmp 0x9eb3
movq 0x8(%r15), %r15
movq %r14, %rdi
movq (%rsp), %rsi
callq 0x72a82
incl %eax
movslq %eax, %r14
cmpl $0x7ff, %r14d           # imm = 0x7FF
ja 0x9ecf
leaq 0x10badf(%rip), %rax    # 0x115950
movq (%rax,%r14,8), %rdx
jmp 0x9f08
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x9e99
movq %rbx, %rdi
callq 0x9c27
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rdx
movq $0xb, (%rdx)
movq %r14, 0x8(%rdx)
movq 0x140(%rbx), %r8
movq 0x10fa9f(%rip), %r9     # 0x119960
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rcx
jmp 0x9f67
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x9eee
movq %rbx, %rdi
callq 0x9c27
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rdx
movq $0xb, (%rdx)
movq %r14, 0x8(%rdx)
movq 0x140(%rbx), %r8
movq 0x112fa2(%rip), %r9     # 0x11ceb8
movq %rbx, %rdi
movq %r15, %rsi
jmp 0x9f64
movq 0x8(%r15), %rsi
movq 0x10ba37(%rip), %rdx    # 0x115960
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 0xcc07c(%rip), %rax     # 0xd5fd1
movq %rax, 0x10(%r9)
movq $0x14, 0x8(%r9)
movq %rbx, %rdi
movq %rbp, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9bbb