// File: /workspace/github_c_makefile_star2_O1/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 0x39220
movq 0xee0(%r14), %r15
movq 0x8(%r14), %r12
cmpb $0x1c, (%r12)
jne 0x3928d
cmpq $0x0, 0x20(%r15)
je 0x39297
movq 0x8(%r12), %r13
testq %r13, %r13
sete %al
je 0x39297
cmpq %r15, 0x8(%r13)
je 0x39293
movq 0x18(%r13), %r13
jmp 0x39208
movq 0x1410(%r14), %r15
movq 0x90(%r14), %rax
movq 0x110(%r14), %r12
cmpq 0x98(%r14), %rax
ja 0x39246
movq %r14, %rdi
callq 0xb389
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 0x9b739
leaq 0x10(%r15), %rax
jmp 0x3929e
testb %al, %al
je 0x392a1
leaq 0x128(%r14), %rax
movq (%rax), %r13
cmpb $0x20, (%r13)
jne 0x392b3
testb $0x1, 0x3(%r13)
jne 0x393e4
movq 0x18(%r12), %rsi
movq 0x20(%r15), %rdx
movl $0x18, %eax
cmpq %rdx, %rsi
je 0x39317
movq %r12, %rcx
jle 0x392db
movq %r12, %rcx
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rsi
cmpq %rsi, %rdx
jl 0x392ce
cmpq %rdx, %rsi
je 0x39317
movl $0x10, %eax
cmpb $0x1c, (%rcx)
jne 0x39317
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
sete %dil
je 0x39303
cmpq %r15, 0x8(%rdx)
je 0x39306
movq 0x18(%rdx), %rdx
jmp 0x392ee
movq %rsi, %rdx
testb %dil, %dil
je 0x3931b
movq 0x10(%rcx), %rcx
cmpb $0x1c, (%rcx)
movq %rdx, %rsi
je 0x392ea
movq (%r15,%rax), %rdx
movq 0x10(%rdx), %rbp
cmpq 0x128(%r14), %r13
je 0x39397
cmpb $0x1, (%rbp)
sete %al
jne 0x3934c
cmpq %rbx, 0x8(%rbp)
je 0x3934c
movq %rbp, %rcx
movq 0x10(%rcx), %rcx
cmpb $0x1, (%rcx)
sete %al
jne 0x3934c
cmpq %rbx, 0x8(%rcx)
jne 0x3933a
testb %al, %al
jne 0x393fa
movq 0x90(%r14), %rax
cmpq 0x98(%r14), %rax
ja 0x3936c
movq %r14, %rdi
callq 0xb389
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 0x393fa
movq 0x90(%r14), %rax
cmpq 0x98(%r14), %rax
ja 0x393af
movq %r14, %rdi
callq 0xb389
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 0xb169
jmp 0x393fa
leaq 0xe65de(%rip), %rdx     # 0x11f9c9
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
xorl %eax, %eax
callq 0xfc3d
movq 0x8(%r14), %rsi
movq 0x18(%rsi), %rdi
movq 0x20(%rbx), %rdx
movl $0x18, %eax
cmpq %rdx, %rdi
je 0x39461
movq %rsi, %rcx
jle 0x39425
movq %rsi, %rcx
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rdi
cmpq %rdi, %rdx
jl 0x39418
cmpq %rdx, %rdi
je 0x39461
movl $0x10, %eax
cmpb $0x1c, (%rcx)
jne 0x39461
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
sete %r8b
je 0x3944d
cmpq %rbx, 0x8(%rdx)
je 0x39450
movq 0x18(%rdx), %rdx
jmp 0x39438
movq %rdi, %rdx
testb %r8b, %r8b
je 0x39465
movq 0x10(%rcx), %rcx
cmpb $0x1c, (%rcx)
movq %rdx, %rdi
je 0x39434
movq (%rbx,%rax), %rdx
cmpb $0x20, (%rdx)
je 0x39478
movq %r14, %rdi
movq %rbx, %rdx
movq %rbx, %rcx
callq 0xce9d
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq