// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: s7_autoload_set_names
void s7_autoload_set_names(s7_scheme *sc, const char **names, s7_int size)
    {
        /* the idea here is that by sticking to string constants we can handle 90% of the work at compile-time,
         *   with less start-up memory.  Then eventually we'll add C libraries a la xg (gtk) as environments
         *   and every name in that library will come as an import once dlopen has picked up the library.
         *   So, hopefully, we can pre-declare as many names as we want from as many libraries as we want,
         *   without a bloated mess of a run-time image.  And new libraries are easy to accommodate --
         *   add the names to be auto-exported to this list with the name of the scheme file that cloads
         *   the library and exports the given name. So, we'll need a separate such file for each library?
         *
         * the environment variable could use the library base name in *: *libm* or *libgtk*
         *   (*libm* 'j0)
         * why not just predeclare these libraries?  The caller could import what he wants via require.
         * So the autoloader need only know which libraries, but this doesn't fit the current use of gtk in xg
         * In fact, we only need to see *libm* -> libm.so etc, but we still need the arg/return types of each function, etc
         * And libgtk is enormous -- seems too bad to tie-in everything via the FFI when we need less than 1% of it.
         *
         * Also we need to decide how to handle name collisions (by order of autoload lib setup)
         * And (lastly?) how to handle different library versions?
         *
         * so autoload known libs here in s7 so we're indepentdent of snd
         *   (currently these are included in make-index.scm[line 575] -> snd-xref.c)
         * for each module, include an env in the lib env (*libgtk* 'gtkwidget.h) or whatever that has the names in that header
         * in autoload below, don't sort! -- just build a list of autoload tables and check each in order at autoload time (we want startup to be fast)
         * for versions, include wrapper macro at end of each c-define choice
         * in the xg case, there's no savings in delaying the defines
         */
        if (!sc->autoload_names)
        {
            sc->autoload_names = (const char ***)calloc(INITIAL_AUTOLOAD_NAMES_SIZE, sizeof(const char **));
            sc->autoload_names_sizes = (s7_int *)calloc(INITIAL_AUTOLOAD_NAMES_SIZE, sizeof(s7_int));
            sc->autoloaded_already = (bool **)calloc(INITIAL_AUTOLOAD_NAMES_SIZE, sizeof(bool *));
            sc->autoload_names_top = INITIAL_AUTOLOAD_NAMES_SIZE;
            sc->autoload_names_loc = 0;
        }
        else
        {
            if (sc->autoload_names_loc >= sc->autoload_names_top)
            {
                s7_int i;
                sc->autoload_names_top *= 2;
                sc->autoload_names = (const char ***)realloc(sc->autoload_names, sc->autoload_names_top * sizeof(const char **));
                sc->autoload_names_sizes = (s7_int *)realloc(sc->autoload_names_sizes, sc->autoload_names_top * sizeof(s7_int));
                sc->autoloaded_already = (bool **)realloc(sc->autoloaded_already, sc->autoload_names_top * sizeof(bool *));
                for (i = sc->autoload_names_loc; i < sc->autoload_names_top; i++)
                {
                    sc->autoload_names[i] = NULL;
                    sc->autoload_names_sizes[i] = 0;
                    sc->autoloaded_already[i] = NULL;
                }}}
        sc->autoload_names[sc->autoload_names_loc] = names;
        sc->autoload_names_sizes[sc->autoload_names_loc] = size;
        sc->autoloaded_already[sc->autoload_names_loc] = (bool *)calloc(size, sizeof(bool));
        sc->autoload_names_loc++;
    }

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x20(%rsp), %rax
cmpq $0x0, 0x2160(%rax)
jne 0x2a161
movl $0x4, %edi
movl $0x8, %esi
callq 0x9360
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x2160(%rax)
movl $0x4, %edi
movl $0x8, %esi
callq 0x9360
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x2168(%rax)
movl $0x4, %edi
movl $0x8, %esi
callq 0x9360
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x2170(%rax)
movq 0x20(%rsp), %rax
movq $0x4, 0x2180(%rax)
movq 0x20(%rsp), %rax
movq $0x0, 0x2178(%rax)
jmp 0x2a2a8
movq 0x20(%rsp), %rax
movq 0x2178(%rax), %rax
movq 0x20(%rsp), %rcx
cmpq 0x2180(%rcx), %rax
jl 0x2a2a6
movq 0x20(%rsp), %rax
movq 0x2180(%rax), %rcx
shlq %rcx
movq %rcx, 0x2180(%rax)
movq 0x20(%rsp), %rax
movq 0x2160(%rax), %rdi
movq 0x20(%rsp), %rax
movq 0x2180(%rax), %rsi
shlq $0x3, %rsi
callq 0x9510
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x2160(%rax)
movq 0x20(%rsp), %rax
movq 0x2168(%rax), %rdi
movq 0x20(%rsp), %rax
movq 0x2180(%rax), %rsi
shlq $0x3, %rsi
callq 0x9510
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x2168(%rax)
movq 0x20(%rsp), %rax
movq 0x2170(%rax), %rdi
movq 0x20(%rsp), %rax
movq 0x2180(%rax), %rsi
shlq $0x3, %rsi
callq 0x9510
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x2170(%rax)
movq 0x20(%rsp), %rax
movq 0x2178(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq 0x2180(%rcx), %rax
jge 0x2a2a4
movq 0x20(%rsp), %rax
movq 0x2160(%rax), %rax
movq 0x8(%rsp), %rcx
movq $0x0, (%rax,%rcx,8)
movq 0x20(%rsp), %rax
movq 0x2168(%rax), %rax
movq 0x8(%rsp), %rcx
movq $0x0, (%rax,%rcx,8)
movq 0x20(%rsp), %rax
movq 0x2170(%rax), %rax
movq 0x8(%rsp), %rcx
movq $0x0, (%rax,%rcx,8)
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x2a236
jmp 0x2a2a6
jmp 0x2a2a8
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rax
movq 0x2160(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x2178(%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x10(%rsp), %rdx
movq 0x20(%rsp), %rax
movq 0x2168(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x2178(%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x10(%rsp), %rdi
movl $0x1, %esi
callq 0x9360
movq %rax, %rdx
movq 0x20(%rsp), %rax
movq 0x2170(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x2178(%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x20(%rsp), %rax
movq 0x2178(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x2178(%rax)
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)