LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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 0x1bb86
movl -0x4(%rax), %r12d
leaq 0x10(%rbp), %r13
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x1bb97
movl -0x4(%rax), %r15d
leaq 0x349fa(%rip), %rcx     # 0x50598
leaq -0xb0(%rbp), %rdi
pushq $0x8
popq %rdx
movq %rbx, %rsi
callq 0x1a294
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 0x1abbf
leaq 0x349c1(%rip), %rdx     # 0x505a0
pushq $0x2
popq %rsi
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x19fd2
movq %rbx, %rdi
callq 0x1a338
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x1bc11
movl %r12d, -0x4(%rax)
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x1bc11
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_O2/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 %rbx
subq $0x148, %rsp            # imm = 0x148
leaq -0xb0(%rbp), %r14
andq $0x0, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movl $0x400, 0x58(%r14)      # imm = 0x400
movq %rdx, 0x18(%r14)
movq %rcx, 0x20(%r14)
orl $-0x1, 0x50(%r14)
movq %rsi, %r15
orl $-0x1, 0x54(%r14)
movq %r8, 0x60(%r14)
andl $0x0, 0x48(%r14)
movq %rdi, %rbx
andq $0x0, 0x38(%r14)
movups %xmm0, 0x28(%r14)
orq $-0x1, 0x40(%r14)
leaq 0x3cd4b(%rip), %rcx     # 0x58f9b
leaq -0x138(%rbp), %rdi
pushq $0x5
popq %rdx
movq %r14, %rsi
callq 0x1a294
movq %r14, -0x40(%rbp)
movl $0x1ffff, -0x20(%rbp)   # imm = 0x1FFFF
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4b313
movq %rax, %xmm0
movq %rax, %rcx
shrq $0x2f, %rcx
andb $0xf, %cl
movl $0x10000, %edx          # imm = 0x10000
btsl %ecx, %edx
ucomisd %xmm0, %xmm0
movq %rax, -0x38(%rbp)
movl $0x10001, %eax          # imm = 0x10001
cmovpl %edx, %eax
orq $-0x1, -0x30(%rbp)
movl %eax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq %rax, 0x20(%rsp)
movups -0x40(%rbp), %xmm0
movups -0x30(%rbp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq -0xc8(%rbp), %rdi
movq %r15, %rsi
callq 0x1abbf
cmpl $0x0, 0x48(%r14)
je 0x1c2f1
leaq -0xb0(%rbp), %rdi
movq 0x50(%rdi), %rax
movq %rax, 0x40(%rdi)
callq 0x1a338
jmp 0x1c318
movq %r14, %rdi
callq 0x1bcb6
movq %rax, %r15
leaq 0x34330(%rip), %rdi     # 0x50633
callq 0x411ea
movq %rax, 0x48(%r15)
movq %r15, %rdi
callq 0x1bc23
movq %r15, 0x28(%r14)
movq -0xa8(%rbp), %rdi
testq %rdi, %rdi
je 0x1c32d
addq $-0x8, %rdi
callq 0x298c1
leaq -0x88(%rbp), %r14
movq -0x18(%r14), %rdi
testq %rdi, %rdi
je 0x1c346
addq $-0x8, %rdi
callq 0x298c1
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 $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4af2d
movq %r12, %rdi
callq 0x46363
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rax, %rdi
callq 0x125c0
movq %rax, %r15
cmpq %r12, %r14
je 0x1c886
movq %r14, %rdi
callq 0x120b0
testq %r15, %r15
je 0x1c93f
leaq 0x3400a(%rip), %rsi     # 0x508a0
movq %r15, %rdi
callq 0x129b0
testq %rax, %rax
je 0x1c949
movq %rax, %r14
leaq 0x34021(%rip), %rsi     # 0x508d2
movq %r15, %rdi
callq 0x129b0
testq %rax, %rax
je 0x1c952
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 0x1c964
subq $0x8, %rsp
leaq 0x34012(%rip), %rdx     # 0x50910
xorl %r14d, %r14d
leaq -0xb0(%rbp), %r15
pushq $0x1
popq %rcx
pushq $0x26
popq %r8
movl $0x80, %esi
movq %r15, %rdi
movl $0x0, %r9d
xorl %eax, %eax
pushq %r13
pushq %r11
pushq %r12
pushq %r10
pushq $0x1
callq 0x12390
addq $0x30, %rsp
movq %r15, %rdi
callq 0x411ea
movq %rax, (%rbx)
jmp 0x1c964
callq 0x12090
movq %rax, %rdi
jmp 0x1c959
leaq 0x33f5c(%rip), %rdi     # 0x508ac
jmp 0x1c959
leaq 0x33f8b(%rip), %rdi     # 0x508e4
callq 0x411ea
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_O2/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 0x1839c
movq %rax, %rbx
movabsq $-0x800000000000, %rax  # imm = 0xFFFF800000000000
andq %rbx, %rax
movabsq $-0x7800000000000, %rcx # imm = 0xFFF8800000000000
cmpq %rcx, %rax
je 0x1cdbe
movabsq $-0x6000000000000, %rcx # imm = 0xFFFA000000000000
cmpq %rcx, %rax
jne 0x1cdcd
movq %rbx, %rdi
callq 0x4b1f1
movq %rax, %r14
movq %rax, %rdi
callq 0x12310
movslq -0x8(%r14), %rcx
cmpq %rcx, %rax
je 0x1cdc5
leaq 0x3558b(%rip), %rdi     # 0x52347
jmp 0x1cdd4
leaq 0x4b338(%rip), %r14     # 0x680fd
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x3555b(%rip), %rdi     # 0x5232f
movq %rbx, %rsi
xorl %eax, %eax
callq 0x176c9
// File: /workspace/github_c_makefile_star2_O2/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 0x17536
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 0x411ea
movq %rax, 0x48(%r12)
movq 0x28(%r12), %rdi
testq %rdi, %rdi
je 0x1e533
movq -0x40(%rbp), %rsi
movq %r13, %rdx
callq 0x12670
movq %r12, %rdi
callq 0x1bc23
movq %r12, %rdi
callq 0x1757a
movabsq $-0x2000000000000, %rsi # imm = 0xFFFE000000000000
movq %rax, %rdi
callq 0x4b3ab
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 0x44f49
movq 0x61ab6(%rip), %rax     # 0x7fff0
movq (%rax), %rdi
leaq 0x2eac0(%rip), %rsi     # 0x4d004
leaq 0x32492(%rip), %rdx     # 0x509dd
movl $0x340, %ecx            # imm = 0x340
xorl %eax, %eax
callq 0x125e0
pushq $0x1
popq %rdi
callq 0x12a60
// File: /workspace/github_c_makefile_star2_O2/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 0x43b8a
movq %rax, %r14
movq %rax, %rdi
callq 0x1e69e
testq %rbx, %rbx
je 0x1e7f0
pushq $0x8
popq %r15
xorl %r12d, %r12d
movslq 0x14(%rbx), %rax
cmpq %rax, %r12
jge 0x1e7f0
movq 0x20(%rbx), %rax
movq -0x8(%rax,%r15), %rsi
movq %rsi, %rcx
shrq $0x2f, %rcx
cmpl $0x1fff1, %ecx          # imm = 0x1FFF1
je 0x1e7e7
movq (%rax,%r15), %rdx
movq %r14, %rdi
callq 0x43e19
incq %r12
addq $0x10, %r15
jmp 0x1e7ba
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x3
popq %rsi
callq 0x17801
movq %r15, %rdi
xorl %esi, %esi
callq 0x17a07
movq %rax, %r12
pushq $0x1
popq %rsi
movq %r15, %rdi
callq 0x17ff0
movl %eax, %r13d
pushq $0x2
popq %rsi
movq %r15, %rdi
callq 0x17ff0
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 0x1e84a
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rsi
pushq $0x2
popq %rdx
callq 0x1781a
xorl %r13d, %r13d
movq %r15, %rdi
xorl %esi, %esi
callq 0x17ac2
movq %rax, %r12
cmpl $0x2, %ebx
jne 0x1eee4
pushq $0x1
popq %rsi
movq %r15, %rdi
callq 0x17ff0
movl %eax, %r13d
movq 0x10(%r12), %rax
movq %rax, (%r14)
movq -0x30(%rbp), %rax
movl %r13d, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x3d447
movl %eax, %r14d
cmpl $0x10000, %eax          # imm = 0x10000
jl 0x1f7ab
leaq 0x3576d(%rip), %rsi     # 0x54f10
movq %rbx, %rdi
callq 0x19fa9
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x1f88d
leaq 0x28(%rbp), %rdx
leaq 0x10(%rbp), %rsi
movl 0x8(%rsi), %edi
cmpl 0x8(%rdx), %edi
jne 0x1f88d
movl 0xc(%rsi), %edi
cmpl 0xc(%rdx), %edi
jne 0x1f88d
testl $0x90000, %ecx          # imm = 0x90000
je 0x1f888
movq (%rsi), %rdi
movq (%rdx), %rsi
popq %rbp
jmp 0x466c8
movl $0x1, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
movq %rdi, %rbx
testb $0x1, 0x22(%rbp)
jne 0x1f927
leaq 0x28(%rbp), %r13
leaq 0x10(%rbp), %r12
movq 0x10(%r13), %rax
movq %rax, 0x28(%rsp)
movups (%r13), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
callq 0x1f846
testl %eax, %eax
jne 0x1f918
cmpl $0x0, 0xc(%r12)
sets %al
movl 0x8(%r12), %esi
cmpl $0x100, %esi            # imm = 0x100
setb %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x1f944
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x1f9e3
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x35600(%rip), %rsi     # 0x54f2e
movq %rbx, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x19fa9
cmpl $0x0, 0xc(%r13)
sets %al
movl 0x8(%r13), %esi
cmpl $0x100, %esi            # imm = 0x100
setb %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x1f976
movq %rbx, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1faa4
pushq $0x3
popq %r14
movq %rbx, %rdi
movl %r14d, %esi
callq 0x1f7b3
movl %eax, %r15d
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x1f9e3
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x1faa4
movq (%rbx), %rdi
addq $0x30, %rdi
movl %r15d, %esi
movl %r14d, %edx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3d58b
// File: /workspace/github_c_makefile_star2_O2/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 0x1fa22
movq (%rcx), %rsi
movq %r14, %rdi
movl %ebx, %edx
callq 0x2025d
btl $0x13, %r15d
jb 0x1fa3e
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl 0x8(%rcx), %eax
movl 0xc(%rcx), %ecx
testl %ecx, %ecx
js 0x1fa5f
shll $0x18, %eax
shll $0x10, %ecx
shll $0x8, %ebx
orl %ecx, %ebx
orl %eax, %ebx
orl $0x2d, %ebx
jmp 0x1fa4b
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 0x1f7c4
cmpl %ebx, %eax
je 0x1fa17
testl %eax, %eax
js 0x1fa74
shll $0x10, %eax
shll $0x8, %ebx
orl %eax, %ebx
orl $0x1b, %ebx
jmp 0x1fa4b
movq 0x60575(%rip), %rax     # 0x7fff0
movq (%rax), %rdi
leaq 0x3058b(%rip), %rsi     # 0x50010
leaq 0x354cb(%rip), %rcx     # 0x54f57
leaq 0x354d4(%rip), %r8      # 0x54f67
movl $0x85, %edx
xorl %eax, %eax
callq 0x125e0
callq 0x12100
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x10(%rbp), %r13
testb $0x8, 0x12(%r13)
jne 0x1fae8
movl 0x8(%r13), %eax
movl 0xc(%r13), %ecx
testl %ecx, %ecx
js 0x1fb44
shll $0x18, %eax
shll $0x10, %ecx
shll $0x8, %r14d
orl %ecx, %r14d
orl %eax, %r14d
orl $0x2f, %r14d
jmp 0x1fb6a
movq (%rbx), %rdi
addq $0x30, %rdi
pushq $0x5
popq %r15
movl %r15d, %esi
callq 0x3d50a
movl %eax, %r12d
movq (%r13), %rsi
movq %rbx, %rdi
movl %eax, %edx
callq 0x2025d
shll $0x10, %r14d
movl %r12d, %esi
shll $0x8, %esi
orl %r14d, %esi
orl $0x3e, %esi
movq %rbx, %rdi
callq 0x1f7c4
movq (%rbx), %rdi
addq $0x30, %rdi
movl %r12d, %esi
movl %r15d, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3d58b
cmpl %r14d, %eax
jne 0x1fb58
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %eax, %eax
js 0x1fb83
shll $0x10, %eax
shll $0x8, %r14d
orl %eax, %r14d
orl $0x1a, %r14d
movq %rbx, %rdi
movl %r14d, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1f7c4
movq 0x60466(%rip), %rax     # 0x7fff0
movq (%rax), %rdi
leaq 0x3047c(%rip), %rsi     # 0x50010
leaq 0x353bc(%rip), %rcx     # 0x54f57
leaq 0x353c5(%rip), %r8      # 0x54f67
movl $0xa0, %edx
xorl %eax, %eax
callq 0x125e0
callq 0x12100
// File: /workspace/github_c_makefile_star2_O2/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, -0x2c(%rbp)
movl %esi, %r13d
movq %rdi, %rbx
movq 0x20(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps 0x10(%rbp), %xmm0
movups %xmm0, (%rsp)
xorl %r14d, %r14d
xorl %esi, %esi
callq 0x1fc66
movl %eax, %r15d
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x1fbf8
movl -0x4(%rax), %r14d
leaq 0x10(%rbp), %r12
movzbl %r13b, %eax
movl %r15d, %esi
shll $0x8, %esi
orl %eax, %esi
movq %rbx, %rdi
callq 0x1f7c4
cmpl $0x0, -0x2c(%rbp)
je 0x1fc34
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x1faa4
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x1fd2d
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x1fd1e
movl %esi, %r14d
movq %rdi, %r15
leaq 0x10(%rbp), %r12
movq (%rdi), %rdi
addq $0x30, %rdi
callq 0x3d50a
movl %eax, %ebx
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
movl %ebx, %esi
callq 0x1f9e3
cmpl $0xf0, %ebx
jl 0x1fcff
movq %r15, %rdi
callq 0x1f77c
movl %eax, %r12d
movl %ebx, %esi
shll $0x8, %esi
shll $0x10, %eax
orl %eax, %esi
orl $0x1a, %esi
movq %r15, %rdi
callq 0x1f7c4
movq (%r15), %rdi
addq $0x30, %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0x3d58b
movl %r12d, %ebx
jmp 0x1fd1e
movq (%r15), %rdi
addq $0x30, %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0x3d58b
movq (%r15), %rdi
addq $0x30, %rdi
movl %ebx, %esi
callq 0x3d36c
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/janet-lang[P]janet/src/core/emit.c
// Function: janetc_free_regnear
static void janetc_free_regnear(JanetCompiler *c, JanetSlot s, int32_t reg, JanetcRegisterTemp tag) {
    if (reg != s.index ||
            s.envindex >= 0 ||
            s.flags & (JANET_SLOT_CONSTANT | JANET_SLOT_REF)) {
        /* We need to free the temporary slot */
        janetc_regalloc_freetemp(&c->scope->ra, reg, tag);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl %esi, 0x18(%rbp)
jne 0x1fd46
cmpl $0x0, 0x1c(%rbp)
jns 0x1fd46
leaq 0x10(%rbp), %rax
testb $0x9, 0x12(%rax)
je 0x1fd53
movq (%rdi), %rdi
addq $0x30, %rdi
popq %rbp
jmp 0x3d58b
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x1fd77
movl -0x4(%rax), %eax
decl %eax
jmp 0x1fd7a
pushq $-0x1
popq %rax
subl %eax, %ebx
movswl %bx, %eax
cmpl %ebx, %eax
je 0x1fd92
leaq 0x351bd(%rip), %rsi     # 0x54f47
movq %r14, %rdi
callq 0x19fa9
movzbl %r15b, %esi
movq %r14, %rdi
movl %ebx, %edx
xorl %ecx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1fda9
// File: /workspace/github_c_makefile_star2_O2/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, %r12d
movq %rdi, %rbx
movq 0x20(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps 0x10(%rbp), %xmm0
movups %xmm0, (%rsp)
xorl %r14d, %r14d
xorl %esi, %esi
callq 0x1ff88
movl %eax, %r15d
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x1fdf1
movl -0x4(%rax), %r14d
movl %r14d, -0x30(%rbp)
leaq 0x10(%rbp), %r14
movzbl %r12b, %eax
movl %r15d, %ecx
shll $0x8, %ecx
orl %eax, %ecx
shll $0x10, %r13d
orl %ecx, %r13d
movq %rbx, %rdi
movl %r13d, %esi
callq 0x1f7c4
cmpl $0x0, -0x2c(%rbp)
je 0x1fe39
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x1faa4
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x1fd2d
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_O2/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, %r13d
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 0x1ff88
movl %eax, %r15d
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x1fc66
movl %eax, %r12d
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x1fef7
movl -0x4(%rax), %eax
movl %eax, -0x2c(%rbp)
movzbl %r13b, %eax
movl %r15d, %ecx
shll $0x8, %ecx
orl %eax, %ecx
movl %r12d, %esi
shll $0x10, %esi
orl %ecx, %esi
movq %rbx, %rdi
callq 0x1f7c4
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
leaq 0x10(%rbp), %r14
movups %xmm0, (%rsp)
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %r12d, %esi
callq 0x1fd2d
cmpl $0x0, -0x30(%rbp)
je 0x1ff58
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x1faa4
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x1fd2d
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_O2/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 0x1ffe0
movq %rdi, %rbx
leaq 0x10(%rbp), %r15
movq (%rdi), %rdi
addq $0x30, %rdi
callq 0x3d50a
movl %eax, %r14d
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r14d, %esi
callq 0x1f9e3
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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, %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 0x1ff88
movl %eax, %r15d
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x1ff88
movl %eax, %r14d
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x20066
movl -0x4(%rax), %eax
movl %eax, -0x2c(%rbp)
movzbl %r12b, %eax
movl %r15d, %ecx
shll $0x8, %ecx
orl %eax, %ecx
movl %r14d, %eax
shll $0x10, %eax
shll $0x18, %r13d
orl %eax, %r13d
orl %ecx, %r13d
movq %rbx, %rdi
movl %r13d, %esi
callq 0x1f7c4
leaq 0x28(%rbp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x10(%rsp)
movups (%rcx), %xmm0
movups %xmm0, (%rsp)
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %r14d, %esi
leaq 0x10(%rbp), %r14
callq 0x1fd2d
cmpl $0x0, -0x30(%rbp)
je 0x200d5
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x1faa4
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x1fd2d
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_O2/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, -0x30(%rbp)
movq %rdi, %rbx
leaq 0x40(%rbp), %r14
leaq 0x28(%rbp), %r13
movq 0x20(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps 0x10(%rbp), %xmm0
movups %xmm0, (%rsp)
movl $0x0, -0x2c(%rbp)
xorl %esi, %esi
callq 0x1ff88
movl %eax, %r15d
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x1ff88
movl %eax, %r12d
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movaps (%r14), %xmm0
movups %xmm0, (%rsp)
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x1ff88
movl %eax, %r14d
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x201a1
movl -0x4(%rax), %eax
movl %eax, -0x2c(%rbp)
movzbl -0x30(%rbp), %eax
movl %r15d, %ecx
shll $0x8, %ecx
orl %eax, %ecx
movl %r12d, %eax
shll $0x10, %eax
movl %r14d, %esi
shll $0x18, %esi
orl %eax, %esi
orl %ecx, %esi
movq %rbx, %rdi
callq 0x1f7c4
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %r12d, %esi
callq 0x1fd2d
leaq 0x40(%rbp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x10(%rsp)
movups (%rcx), %xmm0
movups %xmm0, (%rsp)
pushq $0x2
popq %rdx
movq %rbx, %rdi
movl %r14d, %esi
leaq 0x10(%rbp), %r14
callq 0x1fd2d
cmpl $0x0, -0x34(%rbp)
je 0x2022d
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x1faa4
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x1fd2d
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_O2/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 0x20464
movq %rdi, %rbx
movq 0x58(%rdi), %rcx
cmpq %rdi, 0x10(%rcx)
jne 0x2040d
andq $0x0, 0x10(%rcx)
cmpq %rbx, 0x18(%rcx)
jne 0x20418
andq $0x0, 0x18(%rcx)
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq *%rax
movq 0x58(%rbx), %rdi
movabsq $-0x1000000000000, %rsi # imm = 0xFFFF000000000000
callq 0x4b3ab
movq %rax, %rdi
callq 0x293b5
andq $0x0, 0x50(%rbx)
testb $0x1, 0x10(%rbx)
jne 0x20464
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0x20459
callq 0x120b0
andq $0x0, 0x60(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2046b
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x204ff
movq %r8, %rbx
movq %rsi, %r15
movq %rdi, %r14
testb $0x1, %dl
je 0x204b6
movq %r14, 0x10(%r15)
testb $0x2, %dl
je 0x204bf
movq %r14, 0x18(%r15)
movq %rcx, 0x50(%r14)
movq %r15, 0x58(%r14)
movq %rcx, %r12
callq 0x2052f
movabsq $-0x1000000000000, %rsi # imm = 0xFFFF000000000000
movq %r15, %rdi
callq 0x4b3ab
movq %rax, %rdi
callq 0x28c2a
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
movq 0x5faea(%rip), %rax     # 0x7fff0
movq (%rax), %rdi
leaq 0x2fb00(%rip), %rsi     # 0x50010
leaq 0x36351(%rip), %rcx     # 0x56868
leaq 0x36358(%rip), %r8      # 0x56876
movl $0x126, %edx            # imm = 0x126
xorl %eax, %eax
callq 0x125e0
callq 0x12100
// File: /workspace/github_c_makefile_star2_O2/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 0x20627
movq %rdx, %rbx
movl %esi, %r14d
movl %edi, %r15d
leaq 0x5ae36(%rip), %rdi     # 0x7b410
movq %rcx, %rsi
callq 0x12d92
movq %rax, %r12
movl %r15d, (%rax)
movl %r14d, 0x4(%rax)
testq %rbx, %rbx
leaq 0x5ae8a(%rip), %rax     # 0x7b480
cmovneq %rbx, %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r12)
movq %rax, 0x20(%r12)
andl $0x0, 0x8(%r12)
pushq $0x1
popq %rdx
movq %r12, %rdi
xorl %esi, %esi
callq 0x22dc3
movq %r12, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x5f9c2(%rip), %rax     # 0x7fff0
movq (%rax), %rdi
leaq 0x2f9d8(%rip), %rsi     # 0x50010
leaq 0x36229(%rip), %rcx     # 0x56868
leaq 0x36246(%rip), %r8      # 0x5688c
movl $0x151, %edx            # imm = 0x151
xorl %eax, %eax
callq 0x125e0
callq 0x12100
// File: /workspace/github_c_makefile_star2_O2/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 0x20695
movq 0x50(%rdi), %rax
testq %rax, %rax
je 0x20695
pushq $0x3
popq %rsi
callq *%rax
andq $0x0, 0x10(%rbx)
testq %r14, %r14
je 0x206b0
movq 0x50(%r14), %rax
testq %rax, %rax
je 0x206b0
pushq $0x3
popq %rsi
movq %r14, %rdi
callq *%rax
andq $0x0, 0x18(%rbx)
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x206b9
// File: /workspace/github_c_makefile_star2_O2/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 0x20727
movq %rbx, %rsi
callq 0x4b3ab
movq %rax, %rdi
callq 0x28843
testq %r14, %r14
je 0x2073f
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4b3ab
movq %rax, %rdi
callq 0x28843
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x207cf
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
movq %r14, %rsi
callq 0x2d938
movl 0x4(%r14), %esi
movq %rbx, %rdi
callq 0x2ccce
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2cd49
movl (%r14), %edi
callq 0x123e0
testl %eax, %eax
js 0x207db
movq %rbx, %rdi
movl %eax, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x2ccce
leaq 0x36428(%rip), %rdi     # 0x56bfe
callq 0x177b1
callq 0x233ac
leaq 0x36440(%rip), %rdi     # 0x56c27
movq %rax, %rsi
xorl %eax, %eax
callq 0x176c9
// File: /workspace/github_c_makefile_star2_O2/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 0x2083e
movq %rdi, %rbx
pushq $0x28
popq %rsi
callq 0x2ee58
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %rbx, %rdi
callq 0x2da50
movl %eax, 0x4(%r14)
movq %rbx, %rdi
callq 0x2db6f
movq %rax, 0x20(%r14)
movq %rbx, %rdi
callq 0x2da50
movl %eax, (%r14)
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x36408(%rip), %rdi     # 0x56c4d
callq 0x177b1