LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/gc.c
// Function: janet_clear_memory
void janet_clear_memory(void) {
#ifdef JANET_EV
    JanetKV *items = janet_vm.threaded_abstracts.data;
    for (int32_t i = 0; i < janet_vm.threaded_abstracts.capacity; i++) {
        if (janet_checktype(items[i].key, JANET_ABSTRACT)) {
            void *abst = janet_unwrap_abstract(items[i].key);
            if (0 == janet_abstract_decref(abst)) {
                JanetAbstractHead *head = janet_abstract_head(abst);
                if (head->type->gc) {
                    janet_assert(!head->type->gc(head->data, head->size), "finalizer failed");
                }
                janet_free(janet_abstract_head(abst));
            }
        }
    }
#endif
    JanetGCObject *current = janet_vm.blocks;
    while (NULL != current) {
        janet_deinit_block(current);
        JanetGCObject *next = current->data.next;
        janet_free(current);
        current = next;
    }
    janet_vm.blocks = NULL;
    janet_free_all_scratch();
    janet_free(janet_vm.scratch_mem);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %fs:0x0, %rax
leaq -0x348(%rax), %rax
movq %rax, %rbx
cmpl $0x0, 0x27c(%rax)
jle 0x2baa9
movq 0x288(%rbx), %r15
xorl %r12d, %r12d
movq (%r15), %rdi
movq %rdi, %rax
shrq $0x2f, %rax
cmpl $0x1fffe, %eax          # imm = 0x1FFFE
jne 0x2ba96
callq 0x4ebc4
movq %rax, %r14
movq %rax, %rdi
callq 0x14681
testl %eax, %eax
jne 0x2ba96
movq -0x10(%r14), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x2ba8a
movq -0x8(%r14), %rsi
movq %r14, %rdi
callq *%rax
testl %eax, %eax
jne 0x2baf5
addq $-0x20, %r14
movq %r14, %rdi
callq 0x120b0
incq %r12
movslq 0x27c(%rbx), %rax
addq $0x10, %r15
cmpq %rax, %r12
jl 0x2ba4b
movq 0x90(%rbx), %r14
testq %r14, %r14
je 0x2bad1
movq %r14, %rdi
callq 0x2b58f
movq 0x8(%r14), %r15
movq %r14, %rdi
callq 0x120b0
movq %r15, %r14
testq %r15, %r15
jne 0x2bab5
movq $0x0, 0x90(%rbx)
callq 0x2b81d
movq 0xd8(%rbx), %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x120b0
callq 0x13910
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/gc.c
// Function: janet_smalloc
void *janet_smalloc(size_t size) {
    JanetScratch *s = janet_malloc(sizeof(JanetScratch) + size);
    if (NULL == s) {
        JANET_OUT_OF_MEMORY;
    }
    s->finalize = NULL;
    if (janet_vm.scratch_len == janet_vm.scratch_cap) {
        size_t newcap = 2 * janet_vm.scratch_cap + 2;
        JanetScratch **newmem = (JanetScratch **) janet_realloc(janet_vm.scratch_mem, newcap * sizeof(JanetScratch));
        if (NULL == newmem) {
            JANET_OUT_OF_MEMORY;
        }
        janet_vm.scratch_cap = newcap;
        janet_vm.scratch_mem = newmem;
    }
    janet_vm.scratch_mem[janet_vm.scratch_len++] = s;
    return (char *)(s->mem);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
addq $0x8, %rdi
callq 0x12760
testq %rax, %rax
je 0x2bbf3
movq %rax, %rbx
movq $0x0, (%rax)
movq %fs:0x0, %rax
leaq -0x348(%rax), %rax
movq %rax, %r14
movq 0xe8(%rax), %r15
cmpq 0xe0(%rax), %r15
jne 0x2bbcb
leaq (%r15,%r15), %rax
movq 0xd8(%r14), %rdi
leaq 0x10(,%rax,8), %rsi
callq 0x12840
testq %rax, %rax
je 0x2bbf8
leaq 0x2(,%r15,2), %rcx
movq %rcx, 0xe0(%r14)
movq %rax, 0xd8(%r14)
movq 0xe8(%r14), %r15
jmp 0x2bbd2
movq 0xd8(%r14), %rax
leaq 0x1(%r15), %rcx
movq %rcx, 0xe8(%r14)
movq %rbx, (%rax,%r15,8)
addq $0x8, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x13974
callq 0x13944
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/gc.c
// Function: janet_scalloc
void *janet_scalloc(size_t nmemb, size_t size) {
    if (nmemb && size > SIZE_MAX / nmemb) {
        JANET_OUT_OF_MEMORY;
    }
    size_t n = nmemb * size;
    void *p = janet_smalloc(n);
    memset(p, 0, n);
    return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
testq %rdi, %rdi
je 0x2bc13
movq %rdi, %rax
mulq %rbx
jo 0x2bc32
imulq %rdi, %rbx
movq %rbx, %rdi
callq 0x2bb46
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x12410
callq 0x139a4
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/gc.c
// Function: janet_srealloc
void *janet_srealloc(void *mem, size_t size) {
    if (NULL == mem) return janet_smalloc(size);
    JanetScratch *s = janet_mem2scratch(mem);
    if (janet_vm.scratch_len) {
        for (size_t i = janet_vm.scratch_len - 1; ; i--) {
            if (janet_vm.scratch_mem[i] == s) {
                JanetScratch *news = janet_realloc(s, size + sizeof(JanetScratch));
                if (NULL == news) {
                    JANET_OUT_OF_MEMORY;
                }
                janet_vm.scratch_mem[i] = news;
                return (char *)(news->mem);
            }
            if (i == 0) break;
        }
    }
    JANET_EXIT("invalid janet_srealloc");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
testq %rdi, %rdi
je 0x2bcba
movq %rdi, %r15
movq %fs:0x0, %rax
leaq -0x348(%rax), %rax
movq 0xe8(%rax), %r12
testq %r12, %r12
je 0x2bc89
movq %rax, %r14
addq $-0x8, %r15
movq 0xd8(%rax), %rax
movq %r12, %rcx
decq %r12
cmpq %r15, -0x8(%rax,%rcx,8)
je 0x2bc8e
testq %r12, %r12
jne 0x2bc77
callq 0x13a04
addq $0x8, %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x12840
testq %rax, %rax
je 0x2bcca
movq 0xd8(%r14), %rcx
movq %rax, (%rcx,%r12,8)
addq $0x8, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2bb46
callq 0x139d4
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/gc.c
// Function: janet_sfree
void janet_sfree(void *mem) {
    if (NULL == mem) return;
    JanetScratch *s = janet_mem2scratch(mem);
    if (janet_vm.scratch_len) {
        for (size_t i = janet_vm.scratch_len - 1; ; i--) {
            if (janet_vm.scratch_mem[i] == s) {
                janet_vm.scratch_mem[i] = janet_vm.scratch_mem[--janet_vm.scratch_len];
                free_one_scratch(s);
                return;
            }
            if (i == 0) break;
        }
    }
    JANET_EXIT("invalid janet_sfree");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x2bd56
movq %rdi, %rbx
movq %fs:0x0, %rax
leaq -0x348(%rax), %rax
movq 0xe8(%rax), %rcx
testq %rcx, %rcx
je 0x2bd24
leaq -0x8(%rbx), %r14
movq 0xd8(%rax), %rdx
movq %rcx, %rsi
movq %rsi, %rdi
decq %rsi
cmpq %r14, -0x8(%rdx,%rdi,8)
je 0x2bd29
testq %rsi, %rsi
jne 0x2bd12
callq 0x13a38
leaq -0x1(%rcx), %rdi
movq %rdi, 0xe8(%rax)
movq -0x8(%rdx,%rcx,8), %rax
movq %rax, (%rdx,%rsi,8)
movq (%r14), %rax
testq %rax, %rax
je 0x2bd4a
movq %rbx, %rdi
callq *%rax
movq %r14, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x120b0
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/gc.c
// Function: janet_mark_kvs
static void janet_mark_kvs(const JanetKV *kvs, int32_t n) {
    const JanetKV *end = kvs + n;
    while (kvs < end) {
        janet_mark(kvs->key);
        janet_mark(kvs->value);
        kvs++;
    }
}

// Assembly:
testl %esi, %esi
jle 0x2bd91
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movslq %esi, %r14
shlq $0x4, %r14
addq %rdi, %r14
movq (%rbx), %rdi
callq 0x2aca7
movq 0x8(%rbx), %rdi
callq 0x2aca7
addq $0x10, %rbx
cmpq %r14, %rbx
jb 0x2bd73
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/gc.c
// Function: janet_mark_funcenv
static void janet_mark_funcenv(JanetFuncEnv *env) {
    if (janet_gc_reachable(env))
        return;
    janet_gc_mark(env);
    /* If closure env references a dead fiber, we can just copy out the stack frame we need so
     * we don't need to keep around the whole dead fiber. */
    janet_env_maybe_detach(env);
    if (env->offset > 0) {
        /* On stack */
        janet_mark_fiber(env->as.fiber);
    } else {
        /* Not on stack */
        janet_mark_many(env->as.values, env->length);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl (%rdi), %eax
btl $0x8, %eax
jb 0x2bdea
movq %rdi, %r14
orl $0x100, %eax            # imm = 0x100
movl %eax, (%rdi)
callq 0x2991d
cmpl $0x0, 0x1c(%r14)
movq 0x10(%r14), %rbx
jle 0x2bdc7
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x2af69
testq %rbx, %rbx
je 0x2bdea
movslq 0x18(%r14), %rax
testq %rax, %rax
jle 0x2bdea
leaq (%rbx,%rax,8), %r14
movq (%rbx), %rdi
callq 0x2aca7
addq $0x8, %rbx
cmpq %r14, %rbx
jb 0x2bdd9
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/gc.c
// Function: janet_mark_funcdef
static void janet_mark_funcdef(JanetFuncDef *def) {
    int32_t i;
    if (janet_gc_reachable(def))
        return;
    janet_gc_mark(def);
    janet_mark_many(def->constants, def->constants_length);
    for (i = 0; i < def->defs_length; ++i) {
        janet_mark_funcdef(def->defs[i]);
    }
    if (def->source)
        janet_mark_string(def->source);
    if (def->name)
        janet_mark_string(def->name);
    if (def->symbolmap) {
        for (int i = 0; i < def->symbolmap_length; i++) {
            janet_mark_string(def->symbolmap[i].symbol);
        }
    }

}

// Assembly:
movl (%rdi), %eax
btl $0x8, %eax
jb 0x2bead
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
orl $0x100, %eax            # imm = 0x100
movl %eax, (%rdi)
movq 0x18(%rdi), %r14
testq %r14, %r14
je 0x2be36
movslq 0x6c(%rbx), %rax
testq %rax, %rax
jle 0x2be36
leaq (%r14,%rax,8), %r15
movq (%r14), %rdi
callq 0x2aca7
addq $0x8, %r14
cmpq %r15, %r14
jb 0x2be25
cmpl $0x0, 0x78(%rbx)
jle 0x2be58
xorl %r14d, %r14d
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x2bdef
incq %r14
movslq 0x78(%rbx), %rax
cmpq %rax, %r14
jl 0x2be3f
movq 0x40(%rbx), %rax
testq %rax, %rax
je 0x2be65
orb $0x1, -0x17(%rax)
movq 0x48(%rbx), %rax
testq %rax, %rax
je 0x2be72
orb $0x1, -0x17(%rax)
movq 0x50(%rbx), %rax
testq %rax, %rax
je 0x2bea3
movslq 0x7c(%rbx), %rcx
testq %rcx, %rcx
jle 0x2bea3
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rcx
xorl %edx, %edx
movq 0x10(%rax,%rdx), %rsi
orl $0x100, -0x18(%rsi)     # imm = 0x100
addq $0x18, %rdx
cmpq %rdx, %rcx
jne 0x2be8e
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/inttypes.c
// Function: janet_unwrap_s64
int64_t janet_unwrap_s64(Janet x) {
    switch (janet_type(x)) {
        default:
            break;
        case JANET_NUMBER : {
            double d = janet_unwrap_number(x);
            if (!janet_checkint64range(d)) break;
            return (int64_t) d;
        }
        case JANET_STRING: {
            int64_t value;
            const uint8_t *str = janet_unwrap_string(x);
            if (janet_scan_int64(str, janet_string_length(str), &value))
                return value;
            break;
        }
        case JANET_ABSTRACT: {
            void *abst = janet_unwrap_abstract(x);
            if (janet_abstract_type(abst) == &janet_s64_type ||
                    (janet_abstract_type(abst) == &janet_u64_type))
                return *(int64_t *)abst;
            break;
        }
    }
    janet_panicf("can not convert %t %q to 64 bit signed integer", x, x);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rdi, %xmm0
movq %rdi, %rcx
shrq $0x2f, %rcx
andl $0xf, %ecx
xorl %eax, %eax
ucomisd %xmm0, %xmm0
cmovpl %ecx, %eax
cmpl $0xe, %eax
je 0x2c0e0
cmpl $0x4, %eax
je 0x2c0bf
testl %eax, %eax
jne 0x2c10e
movapd 0x31d0a(%rip), %xmm1    # 0x5dda0
andpd %xmm0, %xmm1
movsd 0x31d0e(%rip), %xmm2    # 0x5ddb0
ucomisd %xmm1, %xmm2
jb 0x2c10e
cvttsd2si %xmm0, %rax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
ucomisd %xmm1, %xmm0
jne 0x2c10e
jnp 0x2c107
jmp 0x2c10e
movq %rbx, %rdi
callq 0x4ebc4
movl -0x8(%rax), %esi
leaq -0x10(%rbp), %rdx
movq %rax, %rdi
callq 0x4609c
testl %eax, %eax
je 0x2c10e
movq -0x10(%rbp), %rax
jmp 0x2c107
movq %rbx, %rdi
callq 0x4ebc4
movq -0x10(%rax), %rcx
cmpq 0x58edd(%rip), %rcx     # 0x84fd0
setne %dl
cmpq 0x58ecb(%rip), %rcx     # 0x84fc8
setne %cl
testb %cl, %dl
jne 0x2c10e
movq (%rax), %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x31ccd(%rip), %rdi     # 0x5dde2
movq %rbx, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x190bb
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/inttypes.c
// Function: janet_unwrap_u64
uint64_t janet_unwrap_u64(Janet x) {
    switch (janet_type(x)) {
        default:
            break;
        case JANET_NUMBER : {
            double d = janet_unwrap_number(x);
            if (!janet_checkuint64range(d)) break;
            return (uint64_t) d;
        }
        case JANET_STRING: {
            uint64_t value;
            const uint8_t *str = janet_unwrap_string(x);
            if (janet_scan_uint64(str, janet_string_length(str), &value))
                return value;
            break;
        }
        case JANET_ABSTRACT: {
            void *abst = janet_unwrap_abstract(x);
            if (janet_abstract_type(abst) == &janet_s64_type ||
                    (janet_abstract_type(abst) == &janet_u64_type))
                return *(uint64_t *)abst;
            break;
        }
    }
    janet_panicf("can not convert %t %q to a 64 bit unsigned integer", x, x);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rdi, %xmm0
movq %rdi, %rcx
shrq $0x2f, %rcx
andl $0xf, %ecx
xorl %eax, %eax
ucomisd %xmm0, %xmm0
cmovpl %ecx, %eax
cmpl $0xe, %eax
je 0x2c1e8
cmpl $0x4, %eax
je 0x2c1c7
testl %eax, %eax
jne 0x2c216
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x2c216
movsd 0x31c41(%rip), %xmm1    # 0x5ddb0
ucomisd %xmm0, %xmm1
jb 0x2c216
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
movapd %xmm0, %xmm1
subsd 0x27f0b(%rip), %xmm1    # 0x54098
sarq $0x3f, %rdx
cvttsd2si %xmm1, %rax
andq %rdx, %rax
orq %rcx, %rax
movq %rax, %xmm1
punpckldq 0x28697(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x2869f(%rip), %xmm1    # 0x54850
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
ucomisd %xmm2, %xmm0
jne 0x2c216
jnp 0x2c20f
jmp 0x2c216
movq %rbx, %rdi
callq 0x4ebc4
movl -0x8(%rax), %esi
leaq -0x10(%rbp), %rdx
movq %rax, %rdi
callq 0x46291
testl %eax, %eax
je 0x2c216
movq -0x10(%rbp), %rax
jmp 0x2c20f
movq %rbx, %rdi
callq 0x4ebc4
movq -0x10(%rax), %rcx
cmpq 0x58dd5(%rip), %rcx     # 0x84fd0
setne %dl
cmpq 0x58dc3(%rip), %rcx     # 0x84fc8
setne %cl
testb %cl, %dl
jne 0x2c216
movq (%rax), %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x31bf4(%rip), %rdi     # 0x5de11
movq %rbx, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x190bb
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/inttypes.c
// Function: janet_lib_inttypes
void janet_lib_inttypes(JanetTable *env) {
    JanetRegExt it_cfuns[] = {
        JANET_CORE_REG("int/s64", cfun_it_s64_new),
        JANET_CORE_REG("int/u64", cfun_it_u64_new),
        JANET_CORE_REG("int/to-number", cfun_to_number),
        JANET_CORE_REG("int/to-bytes", cfun_to_bytes),
        JANET_REG_END
    };
    janet_core_cfuns_ext(env, NULL, it_cfuns);
    janet_register_abstract_type(&janet_s64_type);
    janet_register_abstract_type(&janet_u64_type);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %rbx
leaq 0x54efe(%rip), %rsi     # 0x81520
leaq -0xe0(%rbp), %r14
movl $0xc8, %edx
movq %r14, %rdi
callq 0x12670
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x48d77
leaq 0x54df6(%rip), %rdi     # 0x81440
callq 0x49050
leaq 0x54e5a(%rip), %rdi     # 0x814b0
callq 0x49050
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/inttypes.c
// Function: cfun_it_s64_divf
static Janet cfun_it_s64_divf(int32_t argc, Janet *argv) {
    janet_fixarity(argc, 2);
    int64_t *box = janet_abstract(&janet_s64_type, sizeof(int64_t));
    int64_t op1 = janet_unwrap_s64(argv[0]);
    int64_t op2 = janet_unwrap_s64(argv[1]);
    if (op2 == 0) janet_panic("division by zero");
    int64_t x = op1 / op2;
    *box = x - (((op1 ^ op2) < 0) && (x * op2 != op1));
    return janet_wrap_abstract(box);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movl $0x2, %esi
callq 0x191f3
leaq 0x54a6e(%rip), %rdi     # 0x81440
movl $0x8, %esi
callq 0x144c2
movq %rax, %rbx
movq (%r15), %rdi
callq 0x2c05b
movq %rax, %r14
movq 0x8(%r15), %rdi
callq 0x2c05b
testq %rax, %rax
je 0x2ca3d
movq %rax, %rcx
movq %r14, %rax
cqto
idivq %rcx
movq %rax, %rdx
imulq %rcx, %rdx
xorq %r14, %rcx
sets %cl
cmpq %r14, %rdx
setne %dl
andb %cl, %dl
movzbl %dl, %ecx
subq %rcx, %rax
movq %rax, (%rbx)
movabsq $-0x1000000000000, %rsi # imm = 0xFFFF000000000000
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4ed7e
leaq 0x31570(%rip), %rdi     # 0x5dfb4
callq 0x191a3
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/inttypes.c
// Function: cfun_it_s64_mod
static Janet cfun_it_s64_mod(int32_t argc, Janet *argv) {
    janet_fixarity(argc, 2);
    int64_t *box = janet_abstract(&janet_s64_type, sizeof(int64_t));
    int64_t op1 = janet_unwrap_s64(argv[0]);
    int64_t op2 = janet_unwrap_s64(argv[1]);
    if (op2 == 0) {
        *box = op1;
    } else {
        int64_t x = op1 % op2;
        *box = (((op1 ^ op2) < 0) && (x != 0)) ? x + op2 : x;
    }
    return janet_wrap_abstract(box);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movl $0x2, %esi
callq 0x191f3
leaq 0x54947(%rip), %rdi     # 0x81440
movl $0x8, %esi
callq 0x144c2
movq %rax, %rbx
movq (%r15), %rdi
callq 0x2c05b
movq %rax, %r14
movq 0x8(%r15), %rdi
callq 0x2c05b
testq %rax, %rax
je 0x2cb3e
movq %rax, %rcx
movq %r14, %rax
cqto
idivq %rcx
xorq %rcx, %r14
testq %rdx, %rdx
cmoveq %rdx, %rcx
sarq $0x3f, %r14
andq %rcx, %r14
addq %rdx, %r14
movq %r14, (%rbx)
movabsq $-0x1000000000000, %rsi # imm = 0xFFFF000000000000
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4ed7e
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/io.c
// Function: janet_file_close
int janet_file_close(JanetFile *file) {
    int ret = 0;
    if (!(file->flags & (JANET_FILE_NOT_CLOSEABLE | JANET_FILE_CLOSED))) {
        ret = fclose(file->file);
        file->flags |= JANET_FILE_CLOSED;
        file->file = NULL; /* NULL dereference is easier to debug then other problems */
        return ret;
    }
    return 0;
}

// Assembly:
testb $0x30, 0x8(%rdi)
je 0x2e318
xorl %eax, %eax
retq
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x122b0
orb $0x20, 0x8(%rbx)
movq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/io.c
// Function: io_file_marshal
static void io_file_marshal(void *p, JanetMarshalContext *ctx) {
    JanetFile *iof = (JanetFile *)p;
    if (ctx->flags & JANET_MARSHAL_UNSAFE) {
        janet_marshal_abstract(ctx, p);
#ifdef JANET_WINDOWS
        janet_marshal_int(ctx, _fileno(iof->file));
#else
        janet_marshal_int(ctx, fileno(iof->file));
#endif
        janet_marshal_int(ctx, iof->flags);
    } else {
        janet_panic("cannot marshal file in safe mode");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testb $0x2, 0x12(%rsi)
je 0x2dbed
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
movq %r14, %rsi
callq 0x2ff4d
movq (%r14), %rdi
callq 0x126f0
movq %rbx, %rdi
movl %eax, %esi
callq 0x2f4b7
movl 0x8(%r14), %esi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x2f4b7
leaq 0x30a6b(%rip), %rdi     # 0x5e65f
callq 0x191a3
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/io.c
// Function: io_file_unmarshal
static void *io_file_unmarshal(JanetMarshalContext *ctx) {
    if (ctx->flags & JANET_MARSHAL_UNSAFE) {
        JanetFile *iof = janet_unmarshal_abstract(ctx, sizeof(JanetFile));
        int32_t fd = janet_unmarshal_int(ctx);
        int32_t flags = janet_unmarshal_int(ctx);
        char fmt[4] = {0};
        int index = 0;
        if (flags & JANET_FILE_READ) fmt[index++] = 'r';
        if (flags & JANET_FILE_APPEND) {
            fmt[index++] = 'a';
        } else if (flags & JANET_FILE_WRITE) {
            fmt[index++] = 'w';
        }
#ifdef JANET_WINDOWS
        iof->file = _fdopen(fd, fmt);
#else
        iof->file = fdopen(fd, fmt);
#endif
        if (iof->file == NULL) {
            iof->flags = JANET_FILE_CLOSED;
        } else {
            iof->flags = flags;
        }
        return iof;
    } else {
        janet_panic("cannot unmarshal file in safe mode");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testb $0x2, 0x12(%rdi)
je 0x2dc8d
movq %rdi, %r14
movl $0x10, %esi
callq 0x30f6c
movq %rax, %rbx
movq %r14, %rdi
callq 0x30068
movl %eax, %r15d
movq %r14, %rdi
callq 0x30068
movl %eax, %r14d
movl $0x0, -0x1c(%rbp)
testb $0x2, %r14b
jne 0x2dc46
leaq -0x1c(%rbp), %rax
jmp 0x2dc4e
leaq -0x1b(%rbp), %rax
movb $0x72, -0x1(%rax)
movb $0x61, %cl
testb $0x4, %r14b
jne 0x2dc5e
movb $0x77, %cl
testb $0x1, %r14b
je 0x2dc60
movb %cl, (%rax)
leaq -0x1c(%rbp), %rsi
movl %r15d, %edi
callq 0x12850
movq %rax, (%rbx)
testq %rax, %rax
movl $0x20, %eax
cmovel %eax, %r14d
movl %r14d, 0x8(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x309ec(%rip), %rdi     # 0x5e680
callq 0x191a3
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/io.c
// Function: read_chunk
static void read_chunk(JanetFile *iof, JanetBuffer *buffer, int32_t nBytesMax) {
    if (!(iof->flags & (JANET_FILE_READ | JANET_FILE_UPDATE)))
        janet_panic("file is not readable");
    janet_buffer_extra(buffer, nBytesMax);
    size_t ntoread = nBytesMax;
    size_t nread = fread((char *)(buffer->data + buffer->count), 1, ntoread, iof->file);
    if (nread != ntoread && ferror(iof->file))
        janet_panic("could not read file");
    buffer->count += (int32_t) nread;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testb $0xa, 0x8(%rdi)
je 0x2e1b4
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
movl %edx, %esi
callq 0x177e3
movl %r15d, %r12d
movslq 0x10(%rbx), %rdi
addq 0x18(%rbx), %rdi
movq (%r14), %rcx
movl $0x1, %esi
movq %r12, %rdx
callq 0x121d0
movq %rax, %r15
cmpq %r12, %rax
je 0x2e1a7
movq (%r14), %rdi
callq 0x121a0
testl %eax, %eax
jne 0x2e1c0
addl %r15d, 0x10(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3047b(%rip), %rdi     # 0x5e636
callq 0x191a3
leaq 0x30484(%rip), %rdi     # 0x5e64b
callq 0x191a3
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/io.c
// Function: io_assert_writeable
static void io_assert_writeable(JanetFile *iof) {
    if (iof->flags & JANET_FILE_CLOSED)
        janet_panic("file is closed");
    if (!(iof->flags & (JANET_FILE_WRITE | JANET_FILE_APPEND | JANET_FILE_UPDATE)))
        janet_panic("file is not writeable");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testb $0x20, %dil
jne 0x2e2f7
testb $0xd, %dil
je 0x2e303
popq %rbp
retq
leaq 0x300c6(%rip), %rdi     # 0x5e3c4
callq 0x191a3
leaq 0x300ed(%rip), %rdi     # 0x5e3f7
callq 0x191a3
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/io.c
// Function: janet_dynfile
FILE *janet_dynfile(const char *name, FILE *def) {
    Janet x = janet_dyn(name);
    if (!janet_checktype(x, JANET_ABSTRACT)) return def;
    void *abstract = janet_unwrap_abstract(x);
    if (janet_abstract_type(abstract) != &janet_file_type) return def;
    JanetFile *iofile = abstract;
    return iofile->file;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
callq 0x19e4d
movq %rax, %rcx
shrq $0x2f, %rcx
cmpl $0x1fffe, %ecx          # imm = 0x1FFFE
jne 0x2e54e
movq %rax, %rdi
callq 0x4ebc4
movq -0x10(%rax), %rcx
cmpq 0x56a47(%rip), %rcx     # 0x84f90
jne 0x2e54e
movq (%rax), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/io.c
// Function: janet_flusher
static void janet_flusher(const char *name, FILE *dflt_file) {
    Janet x = janet_dyn(name);
    switch (janet_type(x)) {
        default:
            break;
        case JANET_NIL:
            fflush(dflt_file);
            break;
        case JANET_ABSTRACT: {
            void *abstract = janet_unwrap_abstract(x);
            if (janet_abstract_type(abstract) != &janet_file_type) break;
            JanetFile *iofile = abstract;
            fflush(iofile->file);
            break;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
callq 0x19e4d
movq %rax, %xmm0
movq %rax, %rdx
shrq $0x2f, %rdx
andl $0xf, %edx
xorl %ecx, %ecx
ucomisd %xmm0, %xmm0
cmovpl %edx, %ecx
cmpl $0x1, %ecx
je 0x2ed52
cmpl $0xe, %ecx
jne 0x2ed48
movq %rax, %rdi
callq 0x4ebc4
movq -0x10(%rax), %rcx
cmpq 0x5624a(%rip), %rcx     # 0x84f90
je 0x2ed4f
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq (%rax), %rbx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x12770
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/io.c
// Function: makef
static void *makef(FILE *f, int32_t flags) {
    JanetFile *iof = (JanetFile *) janet_abstract(&janet_file_type, sizeof(JanetFile));
    iof->file = f;
    iof->flags = flags;
#ifndef JANET_WINDOWS
    /* While we would like fopen to set cloexec by default (like O_CLOEXEC) with the e flag, that is
     * not standard. */
    if (!(flags & JANET_FILE_NOT_CLOSEABLE))
        fcntl(fileno(f), F_SETFD, FD_CLOEXEC);
#endif
    return iof;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r15d
movq %rdi, %r14
leaq 0x52644(%rip), %rdi     # 0x815f0
movl $0x10, %esi
callq 0x144c2
movq %rax, %rbx
movq %r14, (%rax)
movl %r15d, 0x8(%rax)
testb $0x10, %r15b
jne 0x2efe1
movq %r14, %rdi
callq 0x126f0
movl %eax, %edi
movl $0x2, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x12910
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/marsh.c
// Function: janet_env_lookup_into
void janet_env_lookup_into(JanetTable *renv, JanetTable *env, const char *prefix, int recurse) {
    while (env) {
        for (int32_t i = 0; i < env->capacity; i++) {
            if (janet_checktype(env->data[i].key, JANET_SYMBOL)) {
                if (prefix) {
                    int32_t prelen = (int32_t) strlen(prefix);
                    const uint8_t *oldsym = janet_unwrap_symbol(env->data[i].key);
                    int32_t oldlen = janet_string_length(oldsym);
                    uint8_t *symbuf = janet_smalloc(prelen + oldlen);
                    safe_memcpy(symbuf, prefix, prelen);
                    safe_memcpy(symbuf + prelen, oldsym, oldlen);
                    Janet s = janet_symbolv(symbuf, prelen + oldlen);
                    janet_sfree(symbuf);
                    janet_table_put(renv, s, entry_getval(env->data[i].value));
                } else {
                    janet_table_put(renv,
                                    env->data[i].key,
                                    entry_getval(env->data[i].value));
                }
            }
        }
        env = recurse ? env->proto : NULL;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %ecx, -0x2c(%rbp)
movq %rdi, -0x38(%rbp)
testq %rsi, %rsi
je 0x2f2e4
movq %rdx, %r12
movabsq $-0x800000000000, %rdx  # imm = 0xFFFF800000000000
movq %r12, -0x48(%rbp)
cmpl $0x0, 0x14(%rsi)
jle 0x2f2d1
xorl %r14d, %r14d
xorl %r13d, %r13d
movq %rsi, -0x40(%rbp)
movq 0x20(%rsi), %r15
movq (%r15,%r14), %rbx
movq %rbx, %rax
andq %rdx, %rax
movabsq $-0x5800000000000, %rcx # imm = 0xFFFA800000000000
cmpq %rcx, %rax
jne 0x2f2bd
testq %r12, %r12
je 0x2f295
movq %r12, %rdi
callq 0x12310
movq %rax, %r12
movq %rbx, %rdi
callq 0x4ebc4
movq %rax, %rbx
movslq -0x8(%rax), %rax
movq %rax, -0x50(%rbp)
movslq %r12d, %r12
leaq (%rax,%r12), %rdi
movq %rdi, -0x58(%rbp)
callq 0x2bb46
movq %rax, %r15
movq %rax, %rdi
movq -0x48(%rbp), %rsi
movq %r12, %rdx
callq 0x48567
addq %r15, %r12
movq %r12, %rdi
movq -0x48(%rbp), %r12
movq %rbx, %rsi
movq -0x50(%rbp), %rdx
callq 0x48567
movq %r15, %rdi
movq -0x58(%rbp), %rsi
callq 0x4709e
movq %rax, %rdi
movabsq $-0x5800000000000, %rsi # imm = 0xFFFA800000000000
callq 0x4ed39
movq %rax, %rbx
movq %r15, %rdi
callq 0x2bcd9
movq -0x40(%rbp), %r15
movq 0x20(%r15), %rax
movq 0x8(%rax,%r14), %rdi
callq 0x2f2f3
movq -0x38(%rbp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x476f0
movq %r15, %rsi
jmp 0x2f2b3
movq 0x8(%r15,%r14), %rdi
callq 0x2f2f3
movq (%r15,%r14), %rsi
movq -0x38(%rbp), %rdi
movq %rax, %rdx
callq 0x476f0
movq -0x40(%rbp), %rsi
movabsq $-0x800000000000, %rdx  # imm = 0xFFFF800000000000
incq %r13
movslq 0x14(%rsi), %rax
addq $0x10, %r14
cmpq %rax, %r13
jl 0x2f1c6
cmpl $0x0, -0x2c(%rbp)
je 0x2f2e4
movq 0x28(%rsi), %rsi
testq %rsi, %rsi
jne 0x2f1b2
addq $0x38, %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/marsh.c
// Function: entry_getval
static Janet entry_getval(Janet env_entry) {
    if (janet_checktype(env_entry, JANET_TABLE)) {
        JanetTable *entry = janet_unwrap_table(env_entry);
        Janet checkval = janet_table_get(entry, janet_ckeywordv("value"));
        if (janet_checktype(checkval, JANET_NIL)) {
            checkval = janet_table_get(entry, janet_ckeywordv("ref"));
        }
        return checkval;
    } else if (janet_checktype(env_entry, JANET_STRUCT)) {
        const JanetKV *entry = janet_unwrap_struct(env_entry);
        Janet checkval = janet_struct_get(entry, janet_ckeywordv("value"));
        if (janet_checktype(checkval, JANET_NIL)) {
            checkval = janet_struct_get(entry, janet_ckeywordv("ref"));
        }
        return checkval;
    } else {
        return janet_wrap_nil();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movabsq $-0x800000000000, %r12  # imm = 0xFFFF800000000000
movabsq $-0x7800000000000, %rbx # imm = 0xFFF8800000000000
movq %rdi, %rax
andq %r12, %rax
movabsq $-0x3000000000000, %rcx # imm = 0xFFFD000000000000
cmpq %rcx, %rax
je 0x2f3a4
movabsq $-0x3800000000000, %rcx # imm = 0xFFFC800000000000
cmpq %rcx, %rax
jne 0x2f413
movabsq $-0x5000000000000, %r14 # imm = 0xFFFB000000000000
callq 0x4ebc4
movq %rax, %r15
leaq 0x2dcb3(%rip), %rdi     # 0x5d006
callq 0x47261
movq %rax, %rdi
movq %r14, %rsi
callq 0x4ed39
movq %r15, %rdi
movq %rax, %rsi
callq 0x474e0
andq %rax, %r12
cmpq %rbx, %r12
jne 0x2f40a
leaq 0x38d36(%rip), %rdi     # 0x680b7
callq 0x47261
movq %rax, %rdi
movq %r14, %rsi
callq 0x4ed39
movq %r15, %rdi
movq %rax, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x474e0
movabsq $-0x5000000000000, %r14 # imm = 0xFFFB000000000000
callq 0x4ebc4
movq %rax, %r15
leaq 0x2dc49(%rip), %rdi     # 0x5d006
callq 0x47261
movq %rax, %rdi
movq %r14, %rsi
callq 0x4ed39
movq %r15, %rdi
movq %rax, %rsi
callq 0x46988
andq %rax, %r12
cmpq %rbx, %r12
jne 0x2f40a
leaq 0x38cd0(%rip), %rdi     # 0x680b7
callq 0x47261
movq %rax, %rdi
movq %r14, %rsi
callq 0x4ed39
movq %r15, %rdi
movq %rax, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x46988
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
incq %rbx
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4ece6
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/marsh.c
// Function: pushint
static void pushint(MarshalState *st, int32_t x) {
    if (x >= 0 && x < 128) {
        janet_buffer_push_u8(st->buf, x);
    } else if (x <= 8191 && x >= -8192) {
        uint8_t intbuf[2];
        intbuf[0] = ((x >> 8) & 0x3F) | 0x80;
        intbuf[1] = x & 0xFF;
        janet_buffer_push_bytes(st->buf, intbuf, 2);
    } else {
        uint8_t intbuf[5];
        intbuf[0] = LB_INTEGER;
        intbuf[1] = (x >> 24) & 0xFF;
        intbuf[2] = (x >> 16) & 0xFF;
        intbuf[3] = (x >> 8) & 0xFF;
        intbuf[4] = x & 0xFF;
        janet_buffer_push_bytes(st->buf, intbuf, 5);
    }
}

// Assembly:
movl %esi, %eax
cmpl $0x7f, %esi
ja 0x2f4d3
movq (%rdi), %rdi
movzbl %al, %esi
jmp 0x17947
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leal 0x2000(%rax), %ecx
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x2f507
movl %eax, %ecx
shrl $0x8, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
leaq -0x2(%rbp), %rsi
movb %cl, (%rsi)
movb %al, 0x1(%rsi)
movq (%rdi), %rdi
movl $0x2, %edx
jmp 0x2f52c
leaq -0x7(%rbp), %rsi
movb $-0x33, (%rsi)
movl %eax, %ecx
shrl $0x18, %ecx
movb %cl, 0x1(%rsi)
movl %eax, %ecx
shrl $0x10, %ecx
movb %cl, 0x2(%rsi)
movb %ah, -0x4(%rbp)
movb %al, 0x4(%rsi)
movq (%rdi), %rdi
movl $0x5, %edx
callq 0x178c5
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/marsh.c
// Function: janet_marshal_ptr
void janet_marshal_ptr(JanetMarshalContext *ctx, const void *ptr) {
    if (!(ctx->flags & JANET_MARSHAL_UNSAFE)) {
        janet_panic("can only marshal pointers in unsafe mode");
    }
    MarshalState *st = (MarshalState *)(ctx->m_state);
    pushpointer(st, ptr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
testb $0x2, 0x12(%rdi)
je 0x2f565
movq (%rdi), %rax
movq (%rax), %rdi
leaq -0x8(%rbp), %rax
movq %rsi, (%rax)
movq %rax, %rsi
movl $0x8, %edx
callq 0x178c5
addq $0x10, %rsp
popq %rbp
retq
leaq 0x305d5(%rip), %rdi     # 0x5fb41
callq 0x191a3
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/marsh.c
// Function: janet_marshal
void janet_marshal(
    JanetBuffer *buf,
    Janet x,
    JanetTable *rreg,
    int flags) {
    MarshalState st;
    st.buf = buf;
    st.nextid = 0;
    st.seen_defs = NULL;
    st.seen_envs = NULL;
    st.rreg = rreg;
    st.maybe_cycles = !(flags & JANET_MARSHAL_NO_CYCLES);
    janet_table_init(&st.seen, 0);
    marshal_one(&st, x, flags);
    janet_table_deinit(&st.seen);
    janet_v_free(st.seen_envs);
    janet_v_free(st.seen_defs);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movl %ecx, %ebx
movq %rsi, %r14
leaq -0x70(%rbp), %r15
movq %rdi, -0x8(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%r15)
movl $0x0, 0x48(%r15)
movq %rdx, 0x30(%r15)
xorl %eax, %eax
btl $0x12, %ecx
setae %al
movl %eax, 0x4c(%r15)
movq %r15, %rdi
xorl %esi, %esi
callq 0x47380
leaq -0x78(%rbp), %r12
movq %r12, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x2f5b7
movq %r15, %rdi
callq 0x4740b
movq 0x40(%r12), %rdi
testq %rdi, %rdi
je 0x30027
addq $-0x8, %rdi
callq 0x2bcd9
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x30039
addq $-0x8, %rdi
callq 0x2bcd9
addq $0x60, %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/marsh.c
// Function: readint
static int32_t readint(UnmarshalState *st, const uint8_t **atdata) {
    const uint8_t *data = *atdata;
    int32_t ret;
    MARSH_EOS(st, data);
    if (*data < 128) {
        ret = *data++;
    } else if (*data < 192) {
        MARSH_EOS(st, data + 1);
        uint32_t uret = ((data[0] & 0x3F) << 8) + data[1];
        /* Sign extend 18 MSBs */
        uret |= (uret >> 13) ? 0xFFFFC000 : 0;
        ret = (int32_t)uret;
        data += 2;
    } else if (*data == LB_INTEGER) {
        MARSH_EOS(st, data + 4);
        uint32_t ui = ((uint32_t)(data[1]) << 24) |
                      ((uint32_t)(data[2]) << 16) |
                      ((uint32_t)(data[3]) << 8) |
                      (uint32_t)(data[4]);
        ret = (int32_t)ui;
        data += 5;
    } else {
        janet_panicf("expected integer, got byte %x at index %d",
                     *data,
                     data - st->start);
        ret = 0;
    }
    *atdata = data;
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rsi), %rdx
movq 0xf0(%rdi), %rcx
cmpq %rcx, %rdx
jae 0x300f2
movzbl (%rdx), %eax
movl $0x1, %r8d
testb %al, %al
jns 0x300ea
cmpb $-0x41, %al
ja 0x300cf
leaq 0x1(%rdx), %rdi
cmpq %rcx, %rdi
jae 0x300f2
andl $0x3f, %eax
shll $0x8, %eax
movzbl (%rdi), %ecx
xorl %edi, %edi
cmpl $0x2000, %eax           # imm = 0x2000
setb %dil
shll $0xe, %edi
orl %ecx, %edi
addl %edi, %eax
addl $0xffffc000, %eax       # imm = 0xFFFFC000
movl $0x2, %r8d
jmp 0x300ea
cmpl $0xcd, %eax
jne 0x300fe
leaq 0x4(%rdx), %rax
cmpq %rcx, %rax
jae 0x300f2
movl 0x1(%rdx), %eax
bswapl %eax
movl $0x5, %r8d
addq %r8, %rdx
movq %rdx, (%rsi)
popq %rbp
retq
leaq 0x2fa93(%rip), %rdi     # 0x5fb8c
callq 0x191a3
subq 0xe8(%rdi), %rdx
leaq 0x2fba9(%rip), %rdi     # 0x5fcb5
movl %eax, %esi
xorl %eax, %eax
callq 0x190bb
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/marsh.c
// Function: janet_unmarshal_ptr
void *janet_unmarshal_ptr(JanetMarshalContext *ctx) {
    if (!(ctx->flags & JANET_MARSHAL_UNSAFE)) {
        janet_panic("can only unmarshal pointers in unsafe mode");
    }
    UnmarshalState *st = (UnmarshalState *)(ctx->u_state);
    void *ptr;
    MARSH_EOS(st, ctx->data + sizeof(void *) - 1);
    memcpy((char *) &ptr, ctx->data, sizeof(void *));
    ctx->data += sizeof(void *);
    return ptr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testb $0x2, 0x12(%rdi)
je 0x301c4
movq 0x8(%rdi), %rax
movq 0x18(%rdi), %rcx
leaq 0x7(%rcx), %rdx
cmpq 0xf0(%rax), %rdx
jae 0x301d0
movq (%rcx), %rax
addq $0x8, %rcx
movq %rcx, 0x18(%rdi)
popq %rbp
retq
leaq 0x2f9da(%rip), %rdi     # 0x5fba5
callq 0x191a3
leaq 0x2f9b5(%rip), %rdi     # 0x5fb8c
callq 0x191a3
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/marsh.c
// Function: janet_unmarshal_bytes
void janet_unmarshal_bytes(JanetMarshalContext *ctx, uint8_t *dest, size_t len) {
    UnmarshalState *st = (UnmarshalState *)(ctx->u_state);
    MARSH_EOS(st, ctx->data + len - 1);
    safe_memcpy(dest, ctx->data, len);
    ctx->data += len;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq 0x8(%rdi), %rcx
movq 0x18(%rdi), %rax
addq %rax, %rdx
decq %rdx
cmpq 0xf0(%rcx), %rdx
jae 0x30243
movq %rdi, %r14
movq %rsi, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x48567
addq %rbx, 0x18(%r14)
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x2f942(%rip), %rdi     # 0x5fb8c
callq 0x191a3
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/marsh.c
// Function: janet_unmarshal_abstract_reuse
void janet_unmarshal_abstract_reuse(JanetMarshalContext *ctx, void *p) {
    UnmarshalState *st = (UnmarshalState *)(ctx->u_state);
    if (ctx->at == NULL) {
        janet_panicf("janet_unmarshal_abstract called more than once");
    }
    janet_v_push(st->lookup, janet_wrap_abstract(p));
    ctx->at = NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpq $0x0, 0x20(%rdi)
je 0x30f5e
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %r12
movq 0xc8(%r12), %r15
testq %r15, %r15
je 0x30f0d
movl -0x4(%r15), %eax
leal 0x1(%rax), %ecx
cmpl -0x8(%r15), %ecx
jl 0x30f30
movq %r15, %rdi
movl $0x1, %esi
movl $0x8, %edx
callq 0x4b4e8
movq %rax, %r15
movq %rax, 0xc8(%r12)
movl -0x4(%rax), %eax
leal 0x1(%rax), %ecx
movl %ecx, -0x4(%r15)
movslq %eax, %r12
movabsq $-0x1000000000000, %rsi # imm = 0xFFFF000000000000
movq %r14, %rdi
callq 0x4ed7e
movq %rax, (%r15,%r12,8)
movq $0x0, 0x20(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2ec6b(%rip), %rdi     # 0x5fbd0
xorl %eax, %eax
callq 0x190bb
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/marsh.c
// Function: janet_unmarshal
Janet janet_unmarshal(
    const uint8_t *bytes,
    size_t len,
    int flags,
    JanetTable *reg,
    const uint8_t **next) {
    UnmarshalState st;
    st.start = bytes;
    st.end = bytes + len;
    st.lookup_defs = NULL;
    st.lookup_envs = NULL;
    st.lookup = NULL;
    st.reg = reg;
    Janet out;
    const uint8_t *nextbytes = unmarshal_one(&st, bytes, &out, flags);
    if (next) *next = nextbytes;
    janet_v_free(st.lookup_defs);
    janet_v_free(st.lookup_envs);
    janet_v_free(st.lookup);
    return out;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r8, %rbx
movl %edx, %eax
movq %rdi, %r8
leaq -0x108(%rbp), %rdi
movq %r8, 0xe8(%rdi)
addq %r8, %rsi
movq %rsi, 0xf0(%rdi)
movq $0x0, 0xc8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0xd8(%rdi)
movq %rcx, 0xd0(%rdi)
leaq -0x10(%rbp), %rdx
movq %r8, %rsi
movl %eax, %ecx
callq 0x30284
testq %rbx, %rbx
je 0x31003
movq %rax, (%rbx)
movq -0x28(%rbp), %rdi
testq %rdi, %rdi
je 0x31015
addq $-0x8, %rdi
callq 0x2bcd9
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x31027
addq $-0x8, %rdi
callq 0x2bcd9
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x31039
addq $-0x8, %rdi
callq 0x2bcd9
movq -0x10(%rbp), %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/marsh.c
// Function: marshal_one_abstract
static void marshal_one_abstract(MarshalState *st, Janet x, int flags) {
    void *abstract = janet_unwrap_abstract(x);
#ifdef JANET_EV
    /* Threaded abstract types get passed through as pointers in the unsafe mode */
    if ((flags & JANET_MARSHAL_UNSAFE) &&
            (JANET_MEMORY_THREADED_ABSTRACT == (janet_abstract_head(abstract)->gc.flags & JANET_MEM_TYPEBITS))) {

        /* Increment refcount before sending message. This prevents a "death in transit" problem
         * where a message is garbage collected while in transit between two threads - i.e., the sending threads
         * loses the reference and runs a garbage collection before the receiving thread gets the message. */
        janet_abstract_incref(abstract);
        pushbyte(st, LB_THREADED_ABSTRACT);
        pushbytes(st, (uint8_t *) &abstract, sizeof(abstract));
        MARK_SEEN();
        return;
    }
#endif
    const JanetAbstractType *at = janet_abstract_type(abstract);
    if (at->marshal) {
        pushbyte(st, LB_ABSTRACT);
        marshal_one(st, janet_csymbolv(at->name), flags + 1);
        JanetMarshalContext context = {st, NULL, flags + 1, NULL, at};
        at->marshal(abstract, &context);
    } else {
        janet_panicf("cannot marshal %p", x);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x4ebc4
movq %rax, %r12
movq %rax, -0x30(%rbp)
btl $0x11, %r15d
jae 0x312ae
cmpb $0xd, -0x20(%r12)
jne 0x312ae
movq %r12, %rdi
callq 0x14673
movq (%rbx), %rdi
movl $0xe0, %esi
callq 0x17947
movq (%rbx), %rdi
leaq -0x30(%rbp), %rsi
movl $0x8, %edx
callq 0x178c5
cmpl $0x0, 0x54(%rbx)
je 0x31313
leaq 0x8(%rbx), %r15
movl 0x50(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x50(%rbx)
cvtsi2sd %eax, %xmm0
callq 0x4ee44
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x476f0
jmp 0x31313
movq -0x10(%r12), %r13
cmpq $0x0, 0x28(%r13)
je 0x31322
movq (%rbx), %rdi
movl $0xd9, %esi
callq 0x17947
movq (%r13), %rdi
callq 0x47261
movabsq $-0x5800000000000, %rsi # imm = 0xFFFA800000000000
movq %rax, %rdi
callq 0x4ed39
incl %r15d
movq %rbx, %rdi
movq %rax, %rsi
movl %r15d, %edx
callq 0x2f5b7
leaq -0x58(%rbp), %rsi
movq %rbx, (%rsi)
xorl %eax, %eax
movq %rax, 0x8(%rsi)
movl %r15d, 0x10(%rsi)
movq %rax, 0x18(%rsi)
movq %r13, 0x20(%rsi)
movq %r12, %rdi
callq *0x28(%r13)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2e933(%rip), %rdi     # 0x5fc5c
movq %r14, %rsi
xorl %eax, %eax
callq 0x190bb
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/marsh.c
// Function: janet_marshal_u32s
static void janet_marshal_u32s(MarshalState *st, const uint32_t *u32s, int32_t n) {
    for (int32_t i = 0; i < n; i++) {
        pushbyte(st, u32s[i] & 0xFF);
        pushbyte(st, (u32s[i] >> 8) & 0xFF);
        pushbyte(st, (u32s[i] >> 16) & 0xFF);
        pushbyte(st, (u32s[i] >> 24) & 0xFF);
    }
}

// Assembly:
testl %edx, %edx
jle 0x31b3a
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl %edx, %r15d
xorl %r12d, %r12d
movzbl (%rbx,%r12,4), %esi
movq (%r14), %rdi
callq 0x17947
movzbl 0x1(%rbx,%r12,4), %esi
movq (%r14), %rdi
callq 0x17947
movzbl 0x2(%rbx,%r12,4), %esi
movq (%r14), %rdi
callq 0x17947
movzbl 0x3(%rbx,%r12,4), %esi
movq (%r14), %rdi
callq 0x17947
incq %r12
cmpq %r12, %r15
jne 0x31af3
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/marsh.c
// Function: readnat
static int32_t readnat(UnmarshalState *st, const uint8_t **atdata) {
    int32_t ret = readint(st, atdata);
    if (ret < 0) {
        janet_panicf("expected integer >= 0, got %d", ret);
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
callq 0x3007a
testl %eax, %eax
js 0x31b4a
popq %rbp
retq
leaq 0x2e2dd(%rip), %rdi     # 0x5fe2e
movl %eax, %esi
xorl %eax, %eax
callq 0x190bb
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/marsh.c
// Function: unmarshal_one_abstract
static const uint8_t *unmarshal_one_abstract(UnmarshalState *st, const uint8_t *data, Janet *out, int flags) {
    Janet key;
    data = unmarshal_one(st, data, &key, flags + 1);
    const JanetAbstractType *at = janet_get_abstract_type(key);
    if (at == NULL) janet_panic("unknown abstract type");
    if (at->unmarshal) {
        JanetMarshalContext context = {NULL, st, flags, data, at};
        void *abst = at->unmarshal(&context);
        janet_assert(abst != NULL, "null pointer abstract");
        *out = janet_wrap_abstract(abst);
        if (context.at != NULL) {
            janet_panic("janet_unmarshal_abstract not called");
        }
        return context.data;
    }
    janet_panic("invalid abstract type - no unmarshal function pointer");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %ecx, %r14d
movq %rdx, %rbx
movq %rdi, %r15
leal 0x1(%r14), %ecx
leaq -0x30(%rbp), %r13
movq %r13, %rdx
callq 0x30284
movq %rax, %r12
movq (%r13), %rdi
callq 0x490f4
testq %rax, %rax
je 0x329b4
movq 0x30(%rax), %rcx
testq %rcx, %rcx
je 0x329c0
leaq -0x58(%rbp), %rdi
movq $0x0, (%rdi)
movq %r15, 0x8(%rdi)
movl %r14d, 0x10(%rdi)
movq %r12, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq *%rcx
testq %rax, %rax
je 0x329cc
movabsq $-0x1000000000000, %rsi # imm = 0xFFFF000000000000
movq %rax, %rdi
callq 0x4ed7e
movq %rax, (%rbx)
cmpq $0x0, -0x38(%rbp)
jne 0x329d1
movq -0x40(%rbp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2d5e1(%rip), %rdi     # 0x5ff9c
callq 0x191a3
leaq 0x2d625(%rip), %rdi     # 0x5ffec
callq 0x191a3
callq 0x13c1c
leaq 0x2d5f0(%rip), %rdi     # 0x5ffc8
callq 0x191a3
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/janet-lang[P]janet/src/core/math.c
// Function: janet_rng_marshal
static void janet_rng_marshal(void *p, JanetMarshalContext *ctx) {
    JanetRNG *rng = (JanetRNG *)p;
    janet_marshal_abstract(ctx, p);
    janet_marshal_int(ctx, (int32_t) rng->a);
    janet_marshal_int(ctx, (int32_t) rng->b);
    janet_marshal_int(ctx, (int32_t) rng->c);
    janet_marshal_int(ctx, (int32_t) rng->d);
    janet_marshal_int(ctx, (int32_t) rng->counter);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
movq %r14, %rsi
callq 0x2ff4d
movl (%r14), %esi
movq %rbx, %rdi
callq 0x2f4b7
movl 0x4(%r14), %esi
movq %rbx, %rdi
callq 0x2f4b7
movl 0x8(%r14), %esi
movq %rbx, %rdi
callq 0x2f4b7
movl 0xc(%r14), %esi
movq %rbx, %rdi
callq 0x2f4b7
movl 0x10(%r14), %esi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x2f4b7