// File: /workspace/github_c_makefile_star2_O0/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:
subq $0xb8, %rsp
movq %rdi, 0xa8(%rsp)
movq %rsi, 0xa0(%rsp)
movq 0xa0(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
je 0x2b1d6
movq 0xa8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0xa8(%rsp), %rax
movq 0x1410(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0xa8(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0x80(%rsp)
movq 0xa8(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xa8(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x2b13d
movq 0xa8(%rsp), %rdi
callq 0xc670
movq 0xa8(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0x28(%rsp), %rdx
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdi
movq 0x88(%rsp), %rcx
movq 0x90(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x80(%rsp), %rcx
movq 0x90(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x90(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rcx
movl $0xa, %r8d
callq 0xcfd30
movq %rax, 0xb0(%rsp)
jmp 0x2b49a
movq 0xa8(%rsp), %rdi
movq 0xa8(%rsp), %rax
movq 0xee0(%rax), %rsi
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rdx
callq 0x101d0
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x20, %eax
jne 0x2b24d
movq 0x98(%rsp), %rax
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0x2b24d
movq 0xa8(%rsp), %rdi
movl $0x100, %esi            # imm = 0x100
leaq 0x1c3358(%rip), %rdx    # 0x1ee599
movb $0x0, %al
callq 0x14df0
jmp 0x2b444
movq 0xa8(%rsp), %rdi
movq 0xa8(%rsp), %rax
movq 0xee0(%rax), %rsi
callq 0xfc80
movq 0x10(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x98(%rsp), %rax
movq 0xa8(%rsp), %rcx
cmpq 0x128(%rcx), %rax
jne 0x2b379
movq 0xa8(%rsp), %rax
movq %rax, (%rsp)
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0xa8(%rsp), %rax
movq 0xee0(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0xa8(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xa8(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x2b304
movq 0xa8(%rsp), %rdi
callq 0xc670
movq 0xa8(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rsi
movq (%rsp), %rdi
movq 0x60(%rsp), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x58(%rsp), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x68(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rcx
callq 0xbec0
jmp 0x2b442
movq 0xa0(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x2aff0
testb $0x1, %al
jne 0x2b440
movq 0xa0(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0xa8(%rsp), %rax
movq 0x90(%rax), %rax
movq 0xa8(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x2b3d7
movq 0xa8(%rsp), %rdi
callq 0xc670
movq 0xa8(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x38(%rsp), %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x48(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rcx
movq 0x98(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x2b442
jmp 0x2b444
movq 0xa8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
callq 0xfc80
movzbl (%rax), %eax
cmpl $0x20, %eax
je 0x2b48a
movq 0xa8(%rsp), %rdi
movq 0xa8(%rsp), %rax
movq 0x8(%rax), %rsi
movq 0xa0(%rsp), %rdx
movq 0xa0(%rsp), %rcx
callq 0x10090
movq 0xa0(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
addq $0xb8, %rsp
retq
nopw (%rax,%rax)