// File: /workspace/github_c_makefile_star2_O3/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 0x36d98
movq 0xee0(%r14), %r15
movq 0x8(%r14), %r12
cmpb $0x1c, (%r12)
jne 0x36e05
cmpq $0x0, 0x20(%r15)
je 0x36e0b
movq 0x8(%r12), %r13
testq %r13, %r13
je 0x36e0b
cmpq %r15, 0x8(%r13)
je 0x36e15
movq 0x18(%r13), %r13
jmp 0x36d7f
movq 0x1410(%r14), %r15
movq 0x90(%r14), %rax
movq 0x110(%r14), %r12
cmpq 0x98(%r14), %rax
ja 0x36dc5
movq %r14, %rdi
callq 0xa550
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)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movl $0xa, %r8d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x95069
leaq 0x10(%r15), %rax
jmp 0x36e12
leaq 0x128(%r14), %rax
movq (%rax), %r13
cmpb $0x20, (%r13)
jne 0x36e27
testb $0x1, 0x3(%r13)
jne 0x36f15
movq 0x18(%r12), %rsi
movq 0x20(%r15), %rdx
movl $0x18, %eax
cmpq %rdx, %rsi
je 0x36e58
movq %r12, %rcx
jle 0x36e4f
movq %r12, %rcx
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rsi
cmpq %rsi, %rdx
jl 0x36e42
cmpq %rdx, %rsi
jne 0x36fa9
movq (%r15,%rax), %rdx
movq 0x10(%rdx), %rbp
cmpq 0x128(%r14), %r13
je 0x36ec8
cmpb $0x1, (%rbp)
jne 0x36e85
movq %rbp, %rax
cmpq %rbx, 0x8(%rax)
je 0x36f2b
movq 0x10(%rax), %rax
cmpb $0x1, (%rax)
je 0x36e72
movq 0x90(%r14), %rax
cmpq 0x98(%r14), %rax
ja 0x36ea4
movq %r14, %rdi
callq 0xa550
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 %rbp, 0x10(%rax)
movq %rax, 0x10(%r13)
jmp 0x36f2b
movq 0x90(%r14), %rax
cmpq 0x98(%r14), %rax
ja 0x36ee7
movq %r14, %rdi
callq 0xa550
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 %rbp, 0x10(%rcx)
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0xa332
jmp 0x36f2b
leaq 0xdfbbd(%rip), %rdx     # 0x116ad9
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
xorl %eax, %eax
callq 0xeea2
movq 0x8(%r14), %rsi
movq 0x18(%rsi), %rdi
movq 0x20(%rbx), %rdx
movl $0x18, %eax
cmpq %rdx, %rdi
je 0x36f5b
movq %rsi, %rcx
jle 0x36f56
movq %rsi, %rcx
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rdi
cmpq %rdi, %rdx
jl 0x36f49
cmpq %rdx, %rdi
jne 0x36f84
movq (%rbx,%rax), %rdx
cmpb $0x20, (%rdx)
je 0x36f72
movq %r14, %rdi
movq %rbx, %rdx
movq %rbx, %rcx
callq 0xbfdc
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %eax
cmpb $0x1c, (%rcx)
jne 0x36f5b
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
je 0x36fa3
cmpq %rbx, 0x8(%rdx)
je 0x36f5f
movq 0x18(%rdx), %rdx
jmp 0x36f92
movq 0x10(%rcx), %rcx
jmp 0x36f89
movl $0x10, %eax
cmpb $0x1c, (%rcx)
jne 0x36e58
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
je 0x36fd0
cmpq %r15, 0x8(%rdx)
je 0x36e5c
movq 0x18(%rdx), %rdx
jmp 0x36fbb
movq 0x10(%rcx), %rcx
jmp 0x36fae