// File: /workspace/github_c_makefile_star2_O2/BernardTatin[P]s7sh/s7.c
// Function: c_provide
static s7_pointer c_provide(s7_scheme *sc, s7_pointer sym)
    {
        /* this has to be relative to the curlet: (load file env)
         *   the things loaded are only present in env, and go away with it, so should not be in the global *features* list
         */
        s7_pointer p;

        if (!is_symbol(sym))
            return(method_or_bust_one_arg(sc, sym, sc->provide_symbol, list_1(sc, sym), T_SYMBOL));

        p = symbol_to_local_slot(sc, sc->features_symbol, sc->envir); /* if sc->envir is nil, this returns the global slot, else local slot */
        if ((is_slot(p)) && (is_immutable(p)))
            s7_warn(sc, 256, "provide: *features* is immutable!\n");
        else
        {
            s7_pointer lst;
            lst = slot_value(symbol_to_slot(sc, sc->features_symbol));    /* in either case, we want the current *features* list */
            if (p == sc->undefined)
                make_slot_1(sc, sc->envir, sc->features_symbol, cons(sc, sym, lst));
            else
            {
                if (!is_memq(sym, lst))
                    slot_set_value(p, cons(sc, sym, lst));
            }
        }
        /* require looks up its symbol argument to see if the associated code (dsp.scm etc) has been autoloaded,
         *   so here we're defining the provided symbol for that possibility.  Perhaps better would be to forgo
         *   the definition here, and in require check *features* -- it is local to the current env.
         */
        if (!is_slot(symbol_to_slot(sc, sym))) /* *features* name might be the same as an existing function */
            s7_define(sc, sc->envir, sym, sym);

        return(sym);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
cmpb $0xa, (%rsi)
jne 0x2abf0
movq 0xee0(%r14), %r12
movq 0x8(%r14), %rbp
movq %r14, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0xb1df
movq %rax, %r13
cmpb $0x20, (%rax)
jne 0x2ab7b
testb $0x1, 0x3(%r13)
jne 0x2aca8
movq %r14, %rdi
movq %r12, %rsi
callq 0xb00b
movq 0x10(%rax), %r15
cmpq 0x128(%r14), %r13
je 0x2ac5b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2ab0b
testb %al, %al
jne 0x2acbe
movq 0x90(%r14), %rax
cmpq 0x98(%r14), %rax
ja 0x2abc9
movq %r14, %rdi
callq 0x9c27
movq 0x90(%r14), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%r14)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %rbx, 0x8(%rax)
movq %r15, 0x10(%rax)
movq %rax, 0x10(%r13)
jmp 0x2acbe
movq 0x1410(%r14), %r15
movq 0x90(%r14), %rax
movq 0x110(%r14), %r12
cmpq 0x98(%r14), %rax
ja 0x2ac1d
movq %r14, %rdi
callq 0x9c27
movq 0x90(%r14), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%r14)
movq -0x8(%rax), %rcx
movq $0x200001, (%rcx)       # imm = 0x200001
movq %rbx, 0x8(%rcx)
movq %r12, 0x10(%rcx)
pushq $0xa
popq %r8
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x77745
movq 0x90(%r14), %rax
cmpq 0x98(%r14), %rax
ja 0x2ac7a
movq %r14, %rdi
callq 0x9c27
movq 0x90(%r14), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%r14)
movq -0x8(%rax), %rcx
movq $0x200001, (%rcx)       # imm = 0x200001
movq %rbx, 0x8(%rcx)
movq %r15, 0x10(%rcx)
movq %r14, %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x9a09
jmp 0x2acbe
leaq 0xb7dca(%rip), %rdx     # 0xe2a79
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
xorl %eax, %eax
callq 0xd5c7
movq %r14, %rdi
movq %rbx, %rsi
callq 0xb00b
cmpb $0x20, (%rax)
je 0x2ace0
movq 0x8(%r14), %rsi
movq %r14, %rdi
movq %rbx, %rdx
movq %rbx, %rcx
callq 0xb123
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq