LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/compile.c
// Function: janetc_throwaway
void janetc_throwaway(JanetFopts opts, Janet x) {
    JanetCompiler *c = opts.compiler;
    JanetScope unusedScope;
    int32_t bufstart = janet_v_count(c->buffer);
    int32_t mapbufstart = janet_v_count(c->mapbuffer);
    janetc_scope(&unusedScope, c, JANET_SCOPE_UNUSED, "unusued");
    janetc_value(opts, x);
    janetc_lintf(c, JANET_C_LINT_STRICT, "dead code, consider removing %.2q", x);
    janetc_popscope(c);
    if (c->buffer) {
        janet_v__cnt(c->buffer) = bufstart;
        if (c->mapbuffer)
            janet_v__cnt(c->mapbuffer) = mapbufstart;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %r14
movq 0x10(%rbp), %rbx
movq 0x8(%rbx), %rax
xorl %r15d, %r15d
movl $0x0, %r12d
testq %rax, %rax
je 0x1d52d
movl -0x4(%rax), %r12d
leaq 0x10(%rbp), %r13
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x1d53e
movl -0x4(%rax), %r15d
leaq 0x37053(%rip), %rcx     # 0x54598
leaq -0xb0(%rbp), %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x1be43
movq 0x20(%r13), %rax
movq %rax, 0x20(%rsp)
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq -0x40(%rbp), %rdi
movq %r14, %rsi
callq 0x1c7be
leaq 0x37018(%rip), %rdx     # 0x545a0
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rcx
xorl %eax, %eax
callq 0x1bb6f
movq %rbx, %rdi
callq 0x1beec
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x1d5bc
movl %r12d, -0x4(%rax)
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x1d5bc
movl %r15d, -0x4(%rax)
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/compile.c
// Function: janetc_tuple
static JanetSlot janetc_tuple(JanetFopts opts, Janet x) {
    JanetCompiler *c = opts.compiler;
    const Janet *t = janet_unwrap_tuple(x);
    return janetc_maker(opts,
                        janetc_toslots(c, t, janet_tuple_length(t)),
                        JOP_MAKE_TUPLE);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rbp), %r14
movq %rsi, %rdi
callq 0x4ebc4
movl -0x10(%rax), %edx
movq %r14, %rdi
movq %rax, %rsi
callq 0x1c6b8
movq %rbx, %rdi
movq %rax, %rsi
movl $0x45, %edx
popq %rbx
popq %r14
popq %rbp
jmp 0x1e347
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/compile.c
// Function: janet_compile_lint
JanetCompileResult janet_compile_lint(Janet source,
                                      JanetTable *env, const uint8_t *where, JanetArray *lints) {
    JanetCompiler c;
    JanetScope rootscope;
    JanetFopts fopts;

    janetc_init(&c, env, where, lints);

    /* Push a function scope */
    janetc_scope(&rootscope, &c, JANET_SCOPE_FUNCTION | JANET_SCOPE_TOP, "root");

    /* Set initial form options */
    fopts.compiler = &c;
    fopts.flags = JANET_FOPTS_TAIL | JANET_SLOTTYPE_ANY;
    fopts.hint = janetc_cslot(janet_wrap_nil());

    /* Compile the value */
    janetc_value(fopts, source);

    if (c.result.status == JANET_COMPILE_OK) {
        JanetFuncDef *def = janetc_pop_funcdef(&c);
        def->name = janet_cstring("thunk");
        janet_def_addflags(def);
        c.result.funcdef = def;
    } else {
        c.result.error_mapping = c.current_mapping;
        janetc_popscope(&c);
    }

    janetc_deinit(&c);

    return c.result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x140, %rsp            # imm = 0x140
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq -0xb0(%rbp), %r15
movaps %xmm0, (%r15)
xorl %eax, %eax
movq %rax, 0x10(%r15)
movl $0x400, 0x58(%r15)      # imm = 0x400
movq %rdx, 0x18(%r15)
movq %rcx, 0x20(%r15)
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl %ecx, 0x50(%r15)
movl %ecx, 0x54(%r15)
movq %r8, 0x60(%r15)
movl $0x0, 0x48(%r15)
movups %xmm0, 0x28(%r15)
movq %rax, 0x38(%r15)
movq $-0x1, %r12
movq %r12, 0x40(%r15)
leaq 0x3f057(%rip), %rcx     # 0x5cf9b
leaq -0x138(%rbp), %rdi
movq %r15, %rsi
movl $0x5, %edx
callq 0x1be43
movq %r15, -0x48(%rbp)
movl $0x1ffff, -0x28(%rbp)   # imm = 0x1FFFF
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4ece6
movq %rax, %xmm0
movq %rax, -0x40(%rbp)
shrq $0x2f, %rax
andb $0xf, %al
movl $0x10000, %ecx          # imm = 0x10000
btsl %eax, %ecx
ucomisd %xmm0, %xmm0
movl $0x10001, %eax          # imm = 0x10001
cmovpl %ecx, %eax
movq %r12, -0x38(%rbp)
movl %eax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq %rax, 0x20(%rsp)
movups -0x48(%rbp), %xmm0
movups -0x38(%rbp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq -0xc8(%rbp), %rdi
movq %r14, %rsi
callq 0x1c7be
cmpl $0x0, 0x48(%r15)
je 0x1dfe2
leaq -0xb0(%rbp), %rdi
movq 0x50(%rdi), %rax
movq %rax, 0x40(%rdi)
callq 0x1beec
jmp 0x1e010
leaq -0xb0(%rbp), %r14
movq %r14, %rdi
callq 0x1da6f
movq %rax, %r15
leaq 0x36638(%rip), %rdi     # 0x54633
callq 0x4482c
movq %rax, 0x48(%r15)
movq %r15, %rdi
callq 0x1d9dc
movq %r15, 0x28(%r14)
movq -0xa8(%rbp), %rdi
testq %rdi, %rdi
je 0x1e025
addq $-0x8, %rdi
callq 0x2bcd9
leaq -0x88(%rbp), %r14
movq -0x18(%r14), %rdi
testq %rdi, %rdi
je 0x1e03e
addq $-0x8, %rdi
callq 0x2bcd9
movq 0x20(%r14), %rax
movq %rax, 0x20(%rbx)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
movq %rbx, %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/corelib.c
// Function: janet_native
JanetModule janet_native(const char *name, const uint8_t **error) {
    janet_sandbox_assert(JANET_SANDBOX_DYNAMIC_MODULES);
    char *processed_name = get_processed_name(name);
    Clib lib = load_clib(processed_name);
    JanetModule init;
    JanetModconf getter;
    if (name != processed_name) janet_free(processed_name);
    if (!lib) {
        *error = janet_cstring(error_clib());
        return NULL;
    }
    init = (JanetModule) symbol_clib(lib, "_janet_init");
    if (!init) {
        *error = janet_cstring("could not find the _janet_init symbol");
        return NULL;
    }
    getter = (JanetModconf) symbol_clib(lib, "_janet_mod_config");
    if (!getter) {
        *error = janet_cstring("could not find the _janet_mod_config symbol");
        return NULL;
    }
    JanetBuildConfig modconf = getter();
    JanetBuildConfig host = janet_config_current();
    if (host.major != modconf.major ||
            host.minor < modconf.minor ||
            host.bits != modconf.bits) {
        char errbuf[128];
        snprintf(errbuf, sizeof(errbuf), "config mismatch - host %d.%.d.%d(%.4x) vs. module %d.%d.%d(%.4x)",
                 host.major,
                 host.minor,
                 host.patch,
                 host.bits,
                 modconf.major,
                 modconf.minor,
                 modconf.patch,
                 modconf.bits);
        *error = janet_cstring(errbuf);
        return NULL;
    }
    return init;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %rbx
movq %rdi, %r12
movl $0x200, %edi            # imm = 0x200
callq 0x4e921
movq %r12, %rdi
callq 0x49e7a
movq %rax, %r14
movq %rax, %rdi
movl $0x2, %esi
callq 0x125c0
movq %rax, %r15
cmpq %r12, %r14
je 0x1e5f8
movq %r14, %rdi
callq 0x120b0
testq %r15, %r15
je 0x1e6b2
leaq 0x36298(%rip), %rsi     # 0x548a0
movq %r15, %rdi
callq 0x129b0
testq %rax, %rax
je 0x1e6bc
movq %rax, %r14
leaq 0x362af(%rip), %rsi     # 0x548d2
movq %r15, %rdi
callq 0x129b0
testq %rax, %rax
je 0x1e6c5
callq *%rax
movq %rax, %r10
movq %rdx, %r11
cmpl $0x1, %r10d
sete %al
movq %r10, %r12
shrq $0x20, %r12
cmpl $0x27, %r12d
setb %cl
movq %rdx, %r13
shrq $0x20, %r13
cmpl $0x1, %r13d
sete %dl
andb %al, %dl
testb %cl, %dl
jne 0x1e6d7
subq $0x8, %rsp
leaq 0x362a0(%rip), %rdx     # 0x54910
xorl %r14d, %r14d
leaq -0xb0(%rbp), %r15
movl $0x80, %esi
movq %r15, %rdi
movl $0x1, %ecx
movl $0x26, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq %r13
pushq %r11
pushq %r12
pushq %r10
pushq $0x1
callq 0x12390
addq $0x30, %rsp
movq %r15, %rdi
callq 0x4482c
movq %rax, (%rbx)
jmp 0x1e6d7
callq 0x12090
movq %rax, %rdi
jmp 0x1e6cc
leaq 0x361e9(%rip), %rdi     # 0x548ac
jmp 0x1e6cc
leaq 0x36218(%rip), %rdi     # 0x548e4
callq 0x4482c
movq %rax, (%rbx)
xorl %r14d, %r14d
movq %r14, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/corelib.c
// Function: janet_dyncstring
static const char *janet_dyncstring(const char *name, const char *dflt) {
    Janet x = janet_dyn(name);
    if (janet_checktype(x, JANET_NIL)) return dflt;
    if (!janet_checktype(x, JANET_STRING)) {
        janet_panicf("expected string, got %v", x);
    }
    const uint8_t *jstr = janet_unwrap_string(x);
    const char *cstr = (const char *)jstr;
    if (strlen(cstr) != (size_t) janet_string_length(jstr)) {
        janet_panicf("string %v contains embedded 0s", x);
    }
    return cstr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
callq 0x19e4d
movq %rax, %rbx
movabsq $-0x800000000000, %rax  # imm = 0xFFFF800000000000
andq %rbx, %rax
movabsq $-0x7800000000000, %rcx # imm = 0xFFF8800000000000
cmpq %rcx, %rax
je 0x1eb8e
movabsq $-0x6000000000000, %rcx # imm = 0xFFFA000000000000
cmpq %rcx, %rax
jne 0x1eb9d
movq %rbx, %rdi
callq 0x4ebc4
movq %rax, %r14
movq %rax, %rdi
callq 0x12310
movslq -0x8(%r14), %rcx
cmpq %rcx, %rax
je 0x1eb95
leaq 0x377bb(%rip), %rdi     # 0x56347
jmp 0x1eba4
leaq 0x4d548(%rip), %r14     # 0x6c0dd
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x3778b(%rip), %rdi     # 0x5632f
movq %rbx, %rsi
xorl %eax, %eax
callq 0x190bb
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/corelib.c
// Function: janet_quick_asm
static void janet_quick_asm(
    JanetTable *env,
    int32_t flags,
    const char *name,
    int32_t arity,
    int32_t min_arity,
    int32_t max_arity,
    int32_t slots,
    const uint32_t *bytecode,
    size_t bytecode_size,
    const char *doc) {
    JanetFuncDef *def = janet_funcdef_alloc();
    def->arity = arity;
    def->min_arity = min_arity;
    def->max_arity = max_arity;
    def->flags = flags;
    def->slotcount = slots;
    def->bytecode = janet_malloc(bytecode_size);
    def->bytecode_length = (int32_t)(bytecode_size / sizeof(uint32_t));
    def->name = janet_cstring(name);
    if (!def->bytecode) {
        JANET_OUT_OF_MEMORY;
    }
    memcpy(def->bytecode, bytecode, bytecode_size);
    janet_def_addflags(def);
    janet_def(env, name, janet_wrap_function(janet_thunk(def)), doc);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, -0x34(%rbp)
movl %r8d, -0x30(%rbp)
movl %ecx, %r15d
movq %rdx, %rbx
movl %esi, -0x2c(%rbp)
movq %rdi, -0x48(%rbp)
movq 0x28(%rbp), %rax
movq %rax, -0x50(%rbp)
movq 0x20(%rbp), %r13
movq 0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movl 0x10(%rbp), %r14d
callq 0x18f4d
movq %rax, %r12
movl %r15d, 0x60(%rax)
movl -0x30(%rbp), %eax
movl %eax, 0x64(%r12)
movl -0x34(%rbp), %eax
movl %eax, 0x68(%r12)
movl -0x2c(%rbp), %eax
movl %eax, 0x58(%r12)
movl %r14d, 0x5c(%r12)
movq %r13, %rdi
callq 0x12760
movq %rax, 0x28(%r12)
movq %r13, %rax
shrq $0x2, %rax
movl %eax, 0x70(%r12)
movq %rbx, %rdi
callq 0x4482c
movq %rax, 0x48(%r12)
movq 0x28(%r12), %rdi
testq %rdi, %rdi
je 0x203e7
movq -0x40(%rbp), %rsi
movq %r13, %rdx
callq 0x12670
movq %r12, %rdi
callq 0x1d9dc
movq %r12, %rdi
callq 0x18f95
movabsq $-0x2000000000000, %rsi # imm = 0xFFFE000000000000
movq %rax, %rdi
callq 0x4ed7e
movq -0x48(%rbp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
movq -0x50(%rbp), %rcx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x489e4
callq 0x131f8
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/corelib.c
// Function: janet_core_lookup_table
JanetTable *janet_core_lookup_table(JanetTable *replacements) {
    JanetTable *dict = janet_table(512);
    janet_load_libs(dict);

    /* Add replacements */
    if (replacements != NULL) {
        for (int32_t i = 0; i < replacements->capacity; i++) {
            JanetKV kv = replacements->data[i];
            if (!janet_checktype(kv.key, JANET_NIL)) {
                janet_table_put(dict, kv.key, kv.value);
                /* Add replacement functions to registry? */
            }
        }
    }

    return dict;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl $0x200, %edi            # imm = 0x200
callq 0x47425
movq %rax, %r14
movq %rax, %rdi
callq 0x2052b
testq %rbx, %rbx
je 0x20686
movl 0x14(%rbx), %eax
testl %eax, %eax
jle 0x20686
movl $0x8, %r15d
xorl %r12d, %r12d
movq 0x20(%rbx), %rcx
movq -0x8(%rcx,%r15), %rsi
movq %rsi, %rdx
shrq $0x2f, %rdx
cmpl $0x1fff1, %edx          # imm = 0x1FFF1
je 0x20677
movq (%rcx,%r15), %rdx
movq %r14, %rdi
callq 0x476f0
movl 0x14(%rbx), %eax
incq %r12
movslq %eax, %rcx
addq $0x10, %r15
cmpq %rcx, %r12
jl 0x20650
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/debug.c
// Function: helper_find
static void helper_find(int32_t argc, Janet *argv, JanetFuncDef **def, int32_t *bytecode_offset) {
    janet_fixarity(argc, 3);
    const uint8_t *source = janet_getstring(argv, 0);
    int32_t line = janet_getinteger(argv, 1);
    int32_t col = janet_getinteger(argv, 2);
    janet_debug_find(def, bytecode_offset, source, line, col);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movl $0x3, %esi
callq 0x191f3
movq %r15, %rdi
xorl %esi, %esi
callq 0x19418
movq %rax, %r12
movq %r15, %rdi
movl $0x1, %esi
callq 0x19a57
movl %eax, %r13d
movq %r15, %rdi
movl $0x2, %esi
callq 0x19a57
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movl %r13d, %ecx
movl %eax, %r8d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x206e2
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/debug.c
// Function: helper_find_fun
static void helper_find_fun(int32_t argc, Janet *argv, JanetFuncDef **def, int32_t *bytecode_offset) {
    janet_arity(argc, 1, 2);
    JanetFunction *func = janet_getfunction(argv, 0);
    int32_t offset = (argc == 2) ? janet_getinteger(argv, 1) : 0;
    *def = func->def;
    *bytecode_offset = offset;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, -0x30(%rbp)
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebx
movl $0x1, %esi
movl $0x2, %edx
callq 0x1920c
xorl %r12d, %r12d
movq %r15, %rdi
xorl %esi, %esi
callq 0x194db
movq %rax, %r13
cmpl $0x2, %ebx
jne 0x20e02
movq %r15, %rdi
movl $0x1, %esi
callq 0x19a57
movl %eax, %r12d
movq 0x10(%r13), %rax
movq %rax, (%r14)
movq -0x30(%rbp), %rax
movl %r12d, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/emit.c
// Function: janetc_allocfar
int32_t janetc_allocfar(JanetCompiler *c) {
    int32_t reg = janetc_regalloc_1(&c->scope->ra);
    if (reg > 0xFFFF) {
        janetc_cerror(c, "ran out of internal registers");
    }
    return reg;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
addq $0x30, %rdi
callq 0x40a68
movl %eax, %r14d
cmpl $0x10000, %eax          # imm = 0x10000
jl 0x2170f
leaq 0x37809(%rip), %rsi     # 0x58f10
movq %rbx, %rdi
callq 0x1bb46
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/emit.c
// Function: janetc_sequal
int janetc_sequal(JanetSlot lhs, JanetSlot rhs) {
    if ((lhs.flags & ~JANET_SLOTTYPE_ANY) == (rhs.flags & ~JANET_SLOTTYPE_ANY) &&
            lhs.index == rhs.index &&
            lhs.envindex == rhs.envindex) {
        if (lhs.flags & (JANET_SLOT_REF | JANET_SLOT_CONSTANT)) {
            return janet_equals(lhs.constant, rhs.constant);
        } else {
            return 1;
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x20(%rbp), %ecx
movl 0x38(%rbp), %edx
xorl %ecx, %edx
xorl %eax, %eax
cmpl $0xffff, %edx           # imm = 0xFFFF
ja 0x217f9
leaq 0x28(%rbp), %rdx
leaq 0x10(%rbp), %rsi
movl 0x8(%rsi), %edi
cmpl 0x8(%rdx), %edi
jne 0x217f9
movl 0xc(%rsi), %edi
cmpl 0xc(%rdx), %edi
jne 0x217f9
testl $0x90000, %ecx          # imm = 0x90000
je 0x217f4
movq (%rsi), %rdi
movq (%rdx), %rsi
popq %rbp
jmp 0x4a1bd
movl $0x1, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/emit.c
// Function: janetc_copy
void janetc_copy(
    JanetCompiler *c,
    JanetSlot dest,
    JanetSlot src) {
    if (dest.flags & JANET_SLOT_CONSTANT) {
        janetc_cerror(c, "cannot write to constant");
        return;
    }
    if (janetc_sequal(dest, src)) return;
    /* If dest is a near register */
    if (dest.envindex < 0 && dest.index >= 0 && dest.index <= 0xFF) {
        janetc_movenear(c, dest.index, src);
        return;
    }
    /* If src is a near register */
    if (src.envindex < 0 && src.index >= 0 && src.index <= 0xFF) {
        janetc_moveback(c, dest, src.index);
        return;
    }
    /* Process: src -> near -> dest */
    int32_t nearreg = janetc_allocnear(c, JANETC_REGTEMP_3);
    janetc_movenear(c, nearreg, src);
    janetc_moveback(c, dest, nearreg);
    /* Cleanup */
    janetc_regalloc_freetemp(&c->scope->ra, nearreg, JANETC_REGTEMP_3);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl 0x20(%rbp), %eax
btl $0x10, %eax
jb 0x218be
leaq 0x28(%rbp), %r8
leaq 0x10(%rbp), %rdi
movl 0x8(%r8), %r14d
movl 0xc(%r8), %r12d
movl 0x8(%rdi), %r15d
movl 0xc(%rdi), %r13d
movl 0x10(%r8), %ecx
xorl %eax, %ecx
cmpl $0x10000, %ecx          # imm = 0x10000
setb %cl
movl %r15d, %edx
xorl %r14d, %edx
movl %r13d, %esi
xorl %r12d, %esi
orl %edx, %esi
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x2187c
btl $0x13, %eax
jae 0x218af
movq (%r8), %rsi
leaq 0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x4a1bd
leaq 0x28(%rbp), %r8
leaq 0x10(%rbp), %rdi
testl %eax, %eax
jne 0x218af
testl %r13d, %r13d
sets %al
cmpl $0x100, %r15d           # imm = 0x100
setb %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x218db
movq 0x10(%r8), %rax
movq %rax, 0x10(%rsp)
movups (%r8), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x21981
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x37669(%rip), %rsi     # 0x58f2e
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1bb46
testl %r12d, %r12d
sets %al
cmpl $0x100, %r14d           # imm = 0x100
setb %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2190b
movq %rbx, %rdi
movl %r14d, %esi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21a17
movq %rdi, %r15
movq (%rbx), %rdi
addq $0x30, %rdi
movl $0x3, %esi
movq %r8, %r12
callq 0x40b28
movl %eax, %r14d
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r14d, %esi
callq 0x21981
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r14d, %esi
callq 0x21a17
movq (%rbx), %rdi
addq $0x30, %rdi
movl %r14d, %esi
movl $0x3, %edx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x40b80
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/emit.c
// Function: janetc_movenear
static void janetc_movenear(JanetCompiler *c,
                            int32_t dest,
                            JanetSlot src) {
    if (src.flags & (JANET_SLOT_CONSTANT | JANET_SLOT_REF)) {
        janetc_loadconst(c, src.constant, dest);
        /* If we also are a reference, deref the one element array */
        if (src.flags & JANET_SLOT_REF) {
            janetc_emit(c,
                        (dest << 16) |
                        (dest << 8) |
                        JOP_GET_INDEX);
        }
    } else if (src.envindex >= 0) {
        janetc_emit(c,
                    ((uint32_t)(src.index) << 24) |
                    ((uint32_t)(src.envindex) << 16) |
                    ((uint32_t)(dest) << 8) |
                    JOP_LOAD_UPVALUE);
    } else if (src.index != dest) {
        janet_assert(src.index >= 0, "bad slot");
        janetc_emit(c,
                    ((uint32_t)(src.index) << 16) |
                    ((uint32_t)(dest) << 8) |
                    JOP_MOVE_NEAR);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leaq 0x10(%rbp), %rcx
movl 0x10(%rcx), %r15d
testl $0x90000, %r15d         # imm = 0x90000
je 0x219c0
movq (%rcx), %rsi
movq %r14, %rdi
movl %ebx, %edx
callq 0x221d7
btl $0x13, %r15d
jb 0x219dc
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl 0x8(%rcx), %eax
movl 0xc(%rcx), %ecx
testl %ecx, %ecx
js 0x219fd
shll $0x18, %eax
shll $0x10, %ecx
shll $0x8, %ebx
orl %ecx, %ebx
orl %eax, %ebx
orl $0x2d, %ebx
jmp 0x219e9
movl %ebx, %eax
shll $0x10, %eax
shll $0x8, %ebx
orl %eax, %ebx
orl $0x3d, %ebx
movq %r14, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x21728
cmpl %ebx, %eax
je 0x219b5
testl %eax, %eax
js 0x21a12
shll $0x10, %eax
shll $0x8, %ebx
orl %eax, %ebx
orl $0x1b, %ebx
jmp 0x219e9
callq 0x1325c
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/emit.c
// Function: janetc_moveback
static void janetc_moveback(JanetCompiler *c,
                            JanetSlot dest,
                            int32_t src) {
    if (dest.flags & JANET_SLOT_REF) {
        int32_t refreg = janetc_regalloc_temp(&c->scope->ra, JANETC_REGTEMP_5);
        janetc_loadconst(c, dest.constant, refreg);
        janetc_emit(c,
                    (src << 16) |
                    (refreg << 8) |
                    JOP_PUT_INDEX);
        janetc_regalloc_freetemp(&c->scope->ra, refreg, JANETC_REGTEMP_5);
    } else if (dest.envindex >= 0) {
        janetc_emit(c,
                    ((uint32_t)(dest.index) << 24) |
                    ((uint32_t)(dest.envindex) << 16) |
                    ((uint32_t)(src) << 8) |
                    JOP_SET_UPVALUE);
    } else if (dest.index != src) {
        janet_assert(dest.index >= 0, "bad slot");
        janetc_emit(c,
                    ((uint32_t)(dest.index) << 16) |
                    ((uint32_t)(src) << 8) |
                    JOP_MOVE_FAR);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x10(%rbp), %r12
testb $0x8, 0x12(%r12)
jne 0x21a58
movl 0x8(%r12), %eax
movl 0xc(%r12), %ecx
testl %ecx, %ecx
js 0x21aae
shll $0x18, %eax
shll $0x10, %ecx
shll $0x8, %r14d
orl %ecx, %r14d
orl %eax, %r14d
orl $0x2f, %r14d
jmp 0x21ace
movq (%rbx), %rdi
addq $0x30, %rdi
movl $0x5, %esi
callq 0x40b28
movl %eax, %r15d
movq (%r12), %rsi
movq %rbx, %rdi
movl %eax, %edx
callq 0x221d7
shll $0x10, %r14d
movl %r15d, %esi
shll $0x8, %esi
orl %r14d, %esi
orl $0x3e, %esi
movq %rbx, %rdi
callq 0x21728
movq (%rbx), %rdi
addq $0x30, %rdi
movl %r15d, %esi
movl $0x5, %edx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x40b80
cmpl %r14d, %eax
jne 0x21abc
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
testl %eax, %eax
js 0x21ae1
shll $0x10, %eax
shll $0x8, %r14d
orl %eax, %r14d
orl $0x1a, %r14d
movq %rbx, %rdi
movl %r14d, %esi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x21728
callq 0x13290
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/emit.c
// Function: janetc_emit_s
int32_t janetc_emit_s(JanetCompiler *c, uint8_t op, JanetSlot s, int wr) {
    int32_t reg = janetc_regfar(c, s, JANETC_REGTEMP_0);
    int32_t label = janet_v_count(c->buffer);
    janetc_emit(c, op | (reg << 8));
    if (wr)
        janetc_moveback(c, s, reg);
    janetc_free_regnear(c, s, reg, JANETC_REGTEMP_0);
    return label;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %r12d
movl %esi, %r13d
movq %rdi, %r14
movq 0x20(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps 0x10(%rbp), %xmm0
movups %xmm0, (%rsp)
xorl %ebx, %ebx
xorl %esi, %esi
callq 0x21b9d
movl %eax, %r15d
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x21b29
movl -0x4(%rax), %ebx
movl %ebx, -0x2c(%rbp)
leaq 0x10(%rbp), %rbx
movzbl %r13b, %eax
movl %r15d, %esi
shll $0x8, %esi
orl %eax, %esi
movq %r14, %rdi
callq 0x21728
testl %r12d, %r12d
je 0x21b64
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movl %r15d, %esi
callq 0x21a17
cmpl %r15d, 0x8(%rbx)
jne 0x21b7a
cmpl $0x0, 0xc(%rbx)
jns 0x21b7a
movl $0x90000, %eax          # imm = 0x90000
andl 0x10(%rbx), %eax
je 0x21b8b
movq (%r14), %rdi
addq $0x30, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x40b80
movl -0x2c(%rbp), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/emit.c
// Function: janetc_regfar
static int32_t janetc_regfar(JanetCompiler *c, JanetSlot s, JanetcRegisterTemp tag) {
    /* check if already near register */
    if (s.envindex < 0 && s.index >= 0) {
        return s.index;
    }
    int32_t reg;
    int32_t nearreg = janetc_regalloc_temp(&c->scope->ra, tag);
    janetc_movenear(c, nearreg, s);
    if (nearreg >= 0xF0) {
        reg = janetc_allocfar(c);
        janetc_emit(c, JOP_MOVE_FAR | (nearreg << 8) | (reg << 16));
        janetc_regalloc_freetemp(&c->scope->ra, nearreg, tag);
    } else {
        reg = nearreg;
        janetc_regalloc_freetemp(&c->scope->ra, nearreg, tag);
        janetc_regalloc_touch(&c->scope->ra, reg);
    }
    return reg;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
cmpl $0x0, 0x1c(%rbp)
sets %al
movl 0x18(%rbp), %ebx
testl %ebx, %ebx
setns %cl
testb %cl, %al
jne 0x21c55
movl %esi, %r14d
movq %rdi, %r15
leaq 0x10(%rbp), %r12
movq (%rdi), %rdi
addq $0x30, %rdi
callq 0x40b28
movl %eax, %ebx
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
movl %ebx, %esi
callq 0x21981
cmpl $0xf0, %ebx
jl 0x21c36
movq %r15, %rdi
callq 0x216e0
movl %eax, %r12d
movl %ebx, %esi
shll $0x8, %esi
shll $0x10, %eax
orl %eax, %esi
orl $0x1a, %esi
movq %r15, %rdi
callq 0x21728
movq (%r15), %rdi
addq $0x30, %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0x40b80
movl %r12d, %ebx
jmp 0x21c55
movq (%r15), %rdi
addq $0x30, %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0x40b80
movq (%r15), %rdi
addq $0x30, %rdi
movl %ebx, %esi
callq 0x409ac
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/emit.c
// Function: janetc_emit_sl
int32_t janetc_emit_sl(JanetCompiler *c, uint8_t op, JanetSlot s, int32_t label) {
    int32_t current = janet_v_count(c->buffer) - 1;
    int32_t jump = label - current;
    if (jump < INT16_MIN || jump > INT16_MAX) {
        janetc_cerror(c, "jump is too far");
    }
    return emit1s(c, op, s, jump, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %r15d
movq %rdi, %r14
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x21c86
movl -0x4(%rax), %eax
decl %eax
jmp 0x21c8b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
subl %eax, %ebx
movswl %bx, %eax
cmpl %ebx, %eax
je 0x21ca3
leaq 0x372ac(%rip), %rsi     # 0x58f47
movq %r14, %rdi
callq 0x1bb46
movzbl %r15b, %esi
movq %r14, %rdi
movl %ebx, %edx
xorl %ecx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x21cba
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/emit.c
// Function: emit1s
static int32_t emit1s(JanetCompiler *c, uint8_t op, JanetSlot s, int32_t rest, int wr) {
    int32_t reg = janetc_regnear(c, s, JANETC_REGTEMP_0);
    int32_t label = janet_v_count(c->buffer);
    janetc_emit(c, op | (reg << 8) | ((uint32_t)rest << 16));
    if (wr)
        janetc_moveback(c, s, reg);
    janetc_free_regnear(c, s, reg, JANETC_REGTEMP_0);
    return label;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, -0x2c(%rbp)
movl %edx, %r13d
movl %esi, %ebx
movq %rdi, %r14
movq 0x20(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps 0x10(%rbp), %xmm0
movups %xmm0, (%rsp)
xorl %r12d, %r12d
xorl %esi, %esi
callq 0x21ec1
movl %eax, %r15d
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x21d01
movl -0x4(%rax), %r12d
movl %r12d, -0x30(%rbp)
leaq 0x10(%rbp), %r12
movzbl %bl, %eax
movl %r15d, %ecx
shll $0x8, %ecx
orl %eax, %ecx
shll $0x10, %r13d
orl %ecx, %r13d
movq %r14, %rdi
movl %r13d, %esi
callq 0x21728
cmpl $0x0, -0x2c(%rbp)
je 0x21d4a
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movl %r15d, %esi
callq 0x21a17
cmpl %r15d, 0x8(%r12)
jne 0x21d65
cmpl $0x0, 0xc(%r12)
jns 0x21d65
movl $0x90000, %eax          # imm = 0x90000
andl 0x10(%r12), %eax
je 0x21d76
movq (%r14), %rdi
addq $0x30, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x40b80
movl -0x30(%rbp), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/emit.c
// Function: janetc_emit_ss
int32_t janetc_emit_ss(JanetCompiler *c, uint8_t op, JanetSlot s1, JanetSlot s2, int wr) {
    int32_t reg1 = janetc_regnear(c, s1, JANETC_REGTEMP_0);
    int32_t reg2 = janetc_regfar(c, s2, JANETC_REGTEMP_1);
    int32_t label = janet_v_count(c->buffer);
    janetc_emit(c, op | (reg1 << 8) | (reg2 << 16));
    janetc_free_regnear(c, s2, reg2, JANETC_REGTEMP_1);
    if (wr)
        janetc_moveback(c, s1, reg1);
    janetc_free_regnear(c, s1, reg1, JANETC_REGTEMP_0);
    return label;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, -0x30(%rbp)
movl %esi, %r12d
movq %rdi, %rbx
leaq 0x28(%rbp), %r14
movq 0x20(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps 0x10(%rbp), %xmm0
movups %xmm0, (%rsp)
movl $0x0, -0x2c(%rbp)
xorl %esi, %esi
callq 0x21ec1
movl %eax, %r15d
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x21b9d
movl %eax, %r13d
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x21e18
movl -0x4(%rax), %eax
movl %eax, -0x2c(%rbp)
movzbl %r12b, %eax
movl %r15d, %ecx
shll $0x8, %ecx
orl %eax, %ecx
movl %r13d, %esi
shll $0x10, %esi
orl %ecx, %esi
movq %rbx, %rdi
callq 0x21728
cmpl %r13d, 0x8(%r14)
jne 0x21e4c
cmpl $0x0, 0xc(%r14)
jns 0x21e4c
movl $0x90000, %eax          # imm = 0x90000
andl 0x10(%r14), %eax
je 0x21e60
movq (%rbx), %rdi
addq $0x30, %rdi
movl %r13d, %esi
movl $0x1, %edx
callq 0x40b80
leaq 0x10(%rbp), %r14
cmpl $0x0, -0x30(%rbp)
je 0x21e86
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x21a17
cmpl %r15d, 0x8(%r14)
jne 0x21e9e
cmpl $0x0, 0xc(%r14)
jns 0x21e9e
movl $0x90000, %eax          # imm = 0x90000
andl 0x10(%r14), %eax
je 0x21eaf
movq (%rbx), %rdi
addq $0x30, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x40b80
movl -0x2c(%rbp), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/emit.c
// Function: janetc_regnear
static int32_t janetc_regnear(JanetCompiler *c, JanetSlot s, JanetcRegisterTemp tag) {
    /* check if already near register */
    if (s.envindex < 0 && s.index >= 0 && s.index <= 0xFF) {
        return s.index;
    }
    int32_t reg = janetc_regalloc_temp(&c->scope->ra, tag);
    janetc_movenear(c, reg, s);
    return reg;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
cmpl $0x0, 0x1c(%rbp)
sets %al
movl 0x18(%rbp), %r14d
cmpl $0x100, %r14d           # imm = 0x100
setb %cl
testb %cl, %al
jne 0x21f19
movq %rdi, %rbx
leaq 0x10(%rbp), %r15
movq (%rdi), %rdi
addq $0x30, %rdi
callq 0x40b28
movl %eax, %r14d
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r14d, %esi
callq 0x21981
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/emit.c
// Function: emit2s
static int32_t emit2s(JanetCompiler *c, uint8_t op, JanetSlot s1, JanetSlot s2, int32_t rest, int wr) {
    int32_t reg1 = janetc_regnear(c, s1, JANETC_REGTEMP_0);
    int32_t reg2 = janetc_regnear(c, s2, JANETC_REGTEMP_1);
    int32_t label = janet_v_count(c->buffer);
    janetc_emit(c, op | (reg1 << 8) | (reg2 << 16) | ((uint32_t)rest << 24));
    janetc_free_regnear(c, s2, reg2, JANETC_REGTEMP_1);
    if (wr)
        janetc_moveback(c, s1, reg1);
    janetc_free_regnear(c, s1, reg1, JANETC_REGTEMP_0);
    return label;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, -0x30(%rbp)
movl %edx, %r13d
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x28(%rbp), %r12
movq 0x20(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps 0x10(%rbp), %xmm0
movups %xmm0, (%rsp)
movl $0x0, -0x2c(%rbp)
xorl %esi, %esi
callq 0x21ec1
movl %eax, %r15d
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x21ec1
movl %eax, %r12d
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x21fa3
movl -0x4(%rax), %eax
movl %eax, -0x2c(%rbp)
movzbl %r14b, %eax
movl %r15d, %ecx
shll $0x8, %ecx
orl %eax, %ecx
movl %r12d, %eax
shll $0x10, %eax
shll $0x18, %r13d
orl %eax, %r13d
orl %ecx, %r13d
movq %rbx, %rdi
movl %r13d, %esi
callq 0x21728
leaq 0x28(%rbp), %rcx
cmpl %r12d, 0x8(%rcx)
jne 0x21fe4
cmpl $0x0, 0xc(%rcx)
jns 0x21fe4
movl $0x90000, %eax          # imm = 0x90000
andl 0x10(%rcx), %eax
je 0x21ff8
movq (%rbx), %rdi
addq $0x30, %rdi
movl %r12d, %esi
movl $0x1, %edx
callq 0x40b80
leaq 0x10(%rbp), %r14
cmpl $0x0, -0x30(%rbp)
je 0x2201e
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x21a17
cmpl %r15d, 0x8(%r14)
jne 0x22036
cmpl $0x0, 0xc(%r14)
jns 0x22036
movl $0x90000, %eax          # imm = 0x90000
andl 0x10(%r14), %eax
je 0x22047
movq (%rbx), %rdi
addq $0x30, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x40b80
movl -0x2c(%rbp), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/emit.c
// Function: janetc_emit_sss
int32_t janetc_emit_sss(JanetCompiler *c, uint8_t op, JanetSlot s1, JanetSlot s2, JanetSlot s3, int wr) {
    int32_t reg1 = janetc_regnear(c, s1, JANETC_REGTEMP_0);
    int32_t reg2 = janetc_regnear(c, s2, JANETC_REGTEMP_1);
    int32_t reg3 = janetc_regnear(c, s3, JANETC_REGTEMP_2);
    int32_t label = janet_v_count(c->buffer);
    janetc_emit(c, op | (reg1 << 8) | (reg2 << 16) | ((uint32_t)reg3 << 24));
    janetc_free_regnear(c, s2, reg2, JANETC_REGTEMP_1);
    janetc_free_regnear(c, s3, reg3, JANETC_REGTEMP_2);
    if (wr)
        janetc_moveback(c, s1, reg1);
    janetc_free_regnear(c, s1, reg1, JANETC_REGTEMP_0);
    return label;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, -0x34(%rbp)
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x28(%rbp), %r15
movq 0x20(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps 0x10(%rbp), %xmm0
movups %xmm0, (%rsp)
movl $0x0, -0x2c(%rbp)
xorl %esi, %esi
callq 0x21ec1
movl %eax, -0x30(%rbp)
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x21ec1
movl %eax, %r12d
movq 0x50(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps 0x40(%rbp), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0x21ec1
movl %eax, %r13d
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x220f4
movl -0x4(%rax), %eax
movl %eax, -0x2c(%rbp)
movzbl %r14b, %eax
movl -0x30(%rbp), %ecx
shll $0x8, %ecx
orl %eax, %ecx
movl %r12d, %eax
shll $0x10, %eax
movl %r13d, %esi
shll $0x18, %esi
orl %eax, %esi
orl %ecx, %esi
movq %rbx, %rdi
callq 0x21728
cmpl %r12d, 0x8(%r15)
jne 0x22130
cmpl $0x0, 0xc(%r15)
jns 0x22130
movl $0x90000, %eax          # imm = 0x90000
andl 0x10(%r15), %eax
je 0x22144
movq (%rbx), %rdi
addq $0x30, %rdi
movl %r12d, %esi
movl $0x1, %edx
callq 0x40b80
leaq 0x40(%rbp), %rcx
cmpl %r13d, 0x8(%rcx)
jne 0x2215e
cmpl $0x0, 0xc(%rcx)
jns 0x2215e
movl $0x90000, %eax          # imm = 0x90000
andl 0x10(%rcx), %eax
je 0x22172
movq (%rbx), %rdi
addq $0x30, %rdi
movl %r13d, %esi
movl $0x2, %edx
callq 0x40b80
leaq 0x10(%rbp), %r14
cmpl $0x0, -0x34(%rbp)
movl -0x30(%rbp), %r15d
je 0x2219c
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x21a17
cmpl %r15d, 0x8(%r14)
jne 0x221b4
cmpl $0x0, 0xc(%r14)
jns 0x221b4
movl $0x90000, %eax          # imm = 0x90000
andl 0x10(%r14), %eax
je 0x221c5
movq (%rbx), %rdi
addq $0x30, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x40b80
movl -0x2c(%rbp), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/ev.c
// Function: janet_async_end
void janet_async_end(JanetFiber *fiber) {
    if (fiber->ev_callback) {
        if (fiber->ev_stream->read_fiber == fiber) {
            fiber->ev_stream->read_fiber = NULL;
        }
        if (fiber->ev_stream->write_fiber == fiber) {
            fiber->ev_stream->write_fiber = NULL;
        }
        fiber->ev_callback(fiber, JANET_ASYNC_EVENT_DEINIT);
        janet_gcunroot(janet_wrap_abstract(fiber->ev_stream));
        fiber->ev_callback = NULL;
        if (!(fiber->flags & JANET_FIBER_EV_FLAG_IN_FLIGHT)) {
            if (fiber->ev_state) {
                janet_free(fiber->ev_state);
                fiber->ev_state = NULL;
            }
            janet_ev_dec_refcount();
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x50(%rdi), %rax
testq %rax, %rax
je 0x223f1
movq %rdi, %rbx
movq 0x58(%rdi), %rcx
cmpq %rdi, 0x10(%rcx)
jne 0x22378
movq $0x0, 0x10(%rcx)
cmpq %rbx, 0x18(%rcx)
jne 0x22386
movq $0x0, 0x18(%rcx)
movq %rbx, %rdi
movl $0x2, %esi
callq *%rax
movq 0x58(%rbx), %rdi
movabsq $-0x1000000000000, %rsi # imm = 0xFFFF000000000000
callq 0x4ed7e
movq %rax, %rdi
callq 0x2b88a
movq $0x0, 0x50(%rbx)
testb $0x1, 0x10(%rbx)
jne 0x223f1
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0x223cf
callq 0x120b0
movq $0x0, 0x60(%rbx)
movq %fs:0x0, %rax
leaq -0x348(%rax), %rax
leaq 0x264(%rax), %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1a158
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/ev.c
// Function: janet_async_start_fiber
void janet_async_start_fiber(JanetFiber *fiber, JanetStream *stream, JanetAsyncMode mode, JanetEVCallback callback, void *state) {
    janet_assert(!fiber->ev_callback, "double async on fiber");
    if (mode & JANET_ASYNC_LISTEN_READ) {
        stream->read_fiber = fiber;
    }
    if (mode & JANET_ASYNC_LISTEN_WRITE) {
        stream->write_fiber = fiber;
    }
    fiber->ev_callback = callback;
    fiber->ev_stream = stream;
    janet_ev_inc_refcount();
    janet_gcroot(janet_wrap_abstract(stream));
    fiber->ev_state = state;
    callback(fiber, JANET_ASYNC_EVENT_INIT);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpq $0x0, 0x50(%rdi)
jne 0x224a3
movq %r8, %rbx
movq %rsi, %r15
movq %rdi, %r14
testb $0x1, %dl
je 0x22443
movq %r14, 0x10(%r15)
testb $0x2, %dl
je 0x2244c
movq %r14, 0x18(%r15)
movq %rcx, 0x50(%r14)
movq %r15, 0x58(%r14)
movq %rcx, %r12
movq %fs:0x0, %rax
leaq -0x348(%rax), %rax
leaq 0x264(%rax), %rdi
callq 0x1a147
movabsq $-0x1000000000000, %rsi # imm = 0xFFFF000000000000
movq %r15, %rdi
callq 0x4ed7e
movq %rax, %rdi
callq 0x2b13a
movq %rbx, 0x60(%r14)
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmpq *%rax
callq 0x132c4
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/ev.c
// Function: janet_stream_ext
JanetStream *janet_stream_ext(JanetHandle handle, uint32_t flags, const JanetMethod *methods, size_t size) {
    janet_assert(size >= sizeof(JanetStream), "bad size");
    JanetStream *stream = janet_abstract(&janet_stream_type, size);
    stream->handle = handle;
    stream->flags = flags;
    stream->read_fiber = NULL;
    stream->write_fiber = NULL;
    if (methods == NULL) methods = ev_default_stream_methods;
    stream->methods = methods;
    stream->index = 0;
    janet_register_stream(stream);
    return stream;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpq $0x27, %rcx
jbe 0x225a7
movq %rdx, %rbx
movl %esi, %r14d
movl %edi, %r15d
leaq 0x5debb(%rip), %rdi     # 0x80410
movq %rcx, %rsi
callq 0x144c2
movq %rax, %r12
movl %r15d, (%rax)
movl %r14d, 0x4(%rax)
testq %rbx, %rbx
leaq 0x5df0f(%rip), %rax     # 0x80480
cmovneq %rbx, %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r12)
movq %rax, 0x20(%r12)
movl $0x0, 0x8(%r12)
movq %r12, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x24f4f
movq %r12, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x132f8
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/ev.c
// Function: janet_stream_close
void janet_stream_close(JanetStream *stream) {
    JanetFiber *rf = stream->read_fiber;
    JanetFiber *wf = stream->write_fiber;
    if (rf && rf->ev_callback) {
        rf->ev_callback(rf, JANET_ASYNC_EVENT_CLOSE);
        stream->read_fiber = NULL;
    }
    if (wf && wf->ev_callback) {
        wf->ev_callback(wf, JANET_ASYNC_EVENT_CLOSE);
        stream->write_fiber = NULL;
    }
    janet_stream_close_impl(stream);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
movq 0x18(%rbx), %r14
testq %rdi, %rdi
je 0x2264a
movq 0x50(%rdi), %rax
testq %rax, %rax
je 0x2264a
movl $0x3, %esi
callq *%rax
movq $0x0, 0x10(%rbx)
testq %r14, %r14
je 0x2266a
movq 0x50(%r14), %rax
testq %rax, %rax
je 0x2266a
movq %r14, %rdi
movl $0x3, %esi
callq *%rax
movq $0x0, 0x18(%rbx)
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x22673
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/ev.c
// Function: janet_stream_mark
static int janet_stream_mark(void *p, size_t s) {
    (void) s;
    JanetStream *stream = (JanetStream *) p;
    JanetFiber *rf = stream->read_fiber;
    JanetFiber *wf = stream->write_fiber;
    if (rf) {
        janet_mark(janet_wrap_fiber(rf));
    }
    if (wf) {
        janet_mark(janet_wrap_fiber(wf));
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rax
movabsq $-0x6800000000000, %rbx # imm = 0xFFF9800000000000
movq 0x10(%rdi), %rdi
movq 0x18(%rax), %r14
testq %rdi, %rdi
je 0x226e4
movq %rbx, %rsi
callq 0x4ed7e
movq %rax, %rdi
callq 0x2aca7
testq %r14, %r14
je 0x226fc
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4ed7e
movq %rax, %rdi
callq 0x2aca7
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/ev.c
// Function: janet_stream_marshal
static void janet_stream_marshal(void *p, JanetMarshalContext *ctx) {
    JanetStream *s = p;
    if (!(ctx->flags & JANET_MARSHAL_UNSAFE)) {
        janet_panic("can only marshal stream with unsafe flag");
    }
    janet_marshal_abstract(ctx, p);
    janet_marshal_int(ctx, (int32_t) s->flags);
    janet_marshal_ptr(ctx, s->methods);
#ifdef JANET_WINDOWS
    /* TODO - ref counting to avoid situation where a handle is closed or GCed
     * while in transit, and it's value gets reused. DuplicateHandle does not work
     * for network sockets, and in general for winsock it is better to not duplicate
     * unless there is a need to. */
    HANDLE duph = INVALID_HANDLE_VALUE;
    if (s->flags & JANET_STREAM_SOCKET) {
        duph = s->handle;
    } else {
        DuplicateHandle(
            GetCurrentProcess(),
            s->handle,
            GetCurrentProcess(),
            &duph,
            0,
            FALSE,
            DUPLICATE_SAME_ACCESS);
    }
    janet_marshal_int64(ctx, (int64_t)(duph));
#else
    /* Marshal after dup because it is easier than maintaining our own ref counting. */
    int duph = dup(s->handle);
    if (duph < 0) janet_panicf("failed to duplicate stream handle: %V", janet_ev_lasterr());
    janet_marshal_int(ctx, (int32_t)(duph));
#endif
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testb $0x2, 0x12(%rsi)
je 0x2278c
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
movq %r14, %rsi
callq 0x2ff4d
movl 0x4(%r14), %esi
movq %rbx, %rdi
callq 0x2f4b7
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2f537
movl (%r14), %edi
callq 0x123e0
testl %eax, %eax
js 0x22798
movq %rbx, %rdi
movl %eax, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x2f4b7
leaq 0x3846b(%rip), %rdi     # 0x5abfe
callq 0x191a3
callq 0x254ee
leaq 0x38483(%rip), %rdi     # 0x5ac27
movq %rax, %rsi
xorl %eax, %eax
callq 0x190bb
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/ev.c
// Function: janet_stream_unmarshal
static void *janet_stream_unmarshal(JanetMarshalContext *ctx) {
    if (!(ctx->flags & JANET_MARSHAL_UNSAFE)) {
        janet_panic("can only unmarshal stream with unsafe flag");
    }
    JanetStream *p = janet_unmarshal_abstract(ctx, sizeof(JanetStream));
    /* Can't share listening state and such across threads */
    p->read_fiber = NULL;
    p->write_fiber = NULL;
    p->flags = (uint32_t) janet_unmarshal_int(ctx);
    p->methods =  janet_unmarshal_ptr(ctx);
#ifdef JANET_WINDOWS
    p->handle = (JanetHandle) janet_unmarshal_int64(ctx);
#else
    p->handle = (JanetHandle) janet_unmarshal_int(ctx);
#endif
#ifdef JANET_EV_POLL
    janet_register_stream(p);
#endif
    return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testb $0x2, 0x12(%rdi)
je 0x227fd
movq %rdi, %rbx
movl $0x28, %esi
callq 0x30f6c
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %rbx, %rdi
callq 0x30068
movl %eax, 0x4(%r14)
movq %rbx, %rdi
callq 0x30198
movq %rax, 0x20(%r14)
movq %rbx, %rdi
callq 0x30068
movl %eax, (%r14)
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x38449(%rip), %rdi     # 0x5ac4d
callq 0x191a3