LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/compile.c
// Function: janetc_scope
void janetc_scope(JanetScope *s, JanetCompiler *c, int flags, const char *name) {
    JanetScope scope;
    scope.name = name;
    scope.child = NULL;
    scope.consts = NULL;
    scope.syms = NULL;
    scope.envs = NULL;
    scope.defs = NULL;
    scope.bytecode_start = janet_v_count(c->buffer);
    scope.flags = flags;
    scope.parent = c->scope;
    janetc_regalloc_init(&scope.ua);
    /* Inherit slots */
    if ((!(flags & JANET_SCOPE_FUNCTION)) && c->scope) {
        janetc_regalloc_clone(&scope.ra, &(c->scope->ra));
    } else {
        janetc_regalloc_init(&scope.ra);
    }
    /* Link parent and child and update pointer */
    if (c->scope)
        c->scope->child = s;
    c->scope = s;
    *s = scope;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
movq %rcx, -0x88(%rbp)
movq $0x0, -0x28(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x78(%rbp)
movups %xmm0, -0x68(%rbp)
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x1bfda
movl -0x4(%rax), %eax
jmp 0x1bfdc
xorl %eax, %eax
leaq -0x40(%rbp), %rdi
movl %eax, 0x20(%rdi)
movl %r15d, 0x24(%rdi)
movq (%r14), %rax
movq %rax, -0x40(%rdi)
callq 0x4107c
testb $0x1, %r15b
jne 0x1c010
movq (%r14), %rsi
testq %rsi, %rsi
je 0x1c010
leaq -0x58(%rbp), %rdi
addq $0x30, %rsi
callq 0x4109d
jmp 0x1c019
leaq -0x58(%rbp), %rdi
callq 0x4107c
movq (%r14), %rax
testq %rax, %rax
je 0x1c025
movq %rbx, 0x10(%rax)
movq %rbx, (%r14)
leaq -0x88(%rbp), %rsi
movl $0xe, %ecx
movq %rbx, %rdi
rep  movsq (%rsi), %es:(%rdi)
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/compile.c
// Function: janetc_popscope_keepslot
void janetc_popscope_keepslot(JanetCompiler *c, JanetSlot retslot) {
    JanetScope *scope;
    janetc_popscope(c);
    scope = c->scope;
    if (scope && retslot.envindex < 0 && retslot.index >= 0) {
        janetc_regalloc_touch(&scope->ra, retslot.index);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1c045
movq (%rbx), %rdi
testq %rdi, %rdi
setne %al
movl 0x18(%rbp), %esi
cmpl $0x0, 0x1c(%rbp)
sets %cl
andb %al, %cl
testl %esi, %esi
setns %al
andb %cl, %al
cmpb $0x1, %al
jne 0x1c29e
addq $0x30, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x41110
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/compile.c
// Function: janetc_return
JanetSlot janetc_return(JanetCompiler *c, JanetSlot s) {
    if (!(s.flags & JANET_SLOT_RETURNED)) {
        if (s.flags & JANET_SLOT_CONSTANT && janet_checktype(s.constant, JANET_NIL))
            janetc_emit(c, JOP_RETURN_NIL);
        else
            janetc_emit_s(c, JOP_RETURN, s, 0);
        s.flags |= JANET_SLOT_RETURNED;
    }
    return s;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x10(%rbp), %r14
movl 0x10(%r14), %eax
btl $0x14, %eax
jb 0x1c87d
btl $0x10, %eax
jae 0x1c858
movq (%r14), %rax
shrq $0x2f, %rax
cmpl $0x1fff1, %eax          # imm = 0x1FFF1
jne 0x1c858
movq %rsi, %rdi
movl $0x4, %esi
callq 0x21a88
jmp 0x1c878
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rsi, %rdi
movl $0x3, %esi
xorl %edx, %edx
callq 0x21e42
orb $0x10, 0x12(%r14)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
movups (%r14), %xmm0
movups %xmm0, (%rbx)
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/compile.c
// Function: janetc_gettarget
JanetSlot janetc_gettarget(JanetFopts opts) {
    JanetSlot slot;
    if ((opts.flags & JANET_FOPTS_HINT) &&
            (opts.hint.envindex < 0) &&
            (opts.hint.index >= 0 && opts.hint.index <= 0xFF)) {
        slot = opts.hint;
    } else {
        slot.envindex = -1;
        slot.constant = janet_wrap_nil();
        slot.flags = 0;
        slot.index = janetc_allocfar(opts.compiler);
    }
    return slot;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x10(%rbp), %r14
testb $0x2, 0x22(%r14)
je 0x1c8ce
cmpl $0x0, 0x24(%rbp)
jns 0x1c8ce
cmpl $0xff, 0x20(%rbp)
ja 0x1c8ce
movq 0x18(%r14), %rax
movq %rax, 0x10(%rbx)
movups 0x8(%r14), %xmm0
movups %xmm0, (%rbx)
jmp 0x1c8f9
movl $0xffffffff, 0xc(%rbx)  # imm = 0xFFFFFFFF
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4f95a
movq %rax, (%rbx)
movl $0x0, 0x10(%rbx)
movq (%r14), %rdi
callq 0x21a40
movl %eax, 0x8(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/compile.c
// Function: janetc_toslots
JanetSlot *janetc_toslots(JanetCompiler *c, const Janet *vals, int32_t len) {
    int32_t i;
    JanetSlot *ret = NULL;
    JanetFopts subopts = janetc_fopts_default(c);
    subopts.flags |= JANET_FOPTS_ACCEPT_SPLICE;
    for (i = 0; i < len; i++) {
        janet_v_push(ret, janetc_value(subopts, vals[i]));
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, -0x50(%rbp)
movl $0x0, -0x30(%rbp)
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4f95a
movq %rax, %xmm0
movq %rax, -0x48(%rbp)
shrq $0x2f, %rax
andb $0xf, %al
movl $0x10000, %ecx          # imm = 0x10000
btsl %eax, %ecx
ucomisd %xmm0, %xmm0
movl $0x10001, %eax          # imm = 0x10001
cmovpl %ecx, %eax
movq $-0x1, -0x40(%rbp)
movl %eax, -0x38(%rbp)
orb $0x8, -0x2e(%rbp)
testl %r14d, %r14d
jle 0x1c9f0
movl %r14d, %r12d
xorl %r13d, %r13d
xorl %r15d, %r15d
testq %r15, %r15
je 0x1c987
movl -0x4(%r15), %eax
incl %eax
cmpl -0x8(%r15), %eax
jl 0x1c99c
movq %r15, %rdi
movl $0x1, %esi
movl $0x18, %edx
callq 0x4c0b4
movq %rax, %r15
movslq -0x4(%r15), %rax
leal 0x1(%rax), %ecx
movl %ecx, -0x4(%r15)
leaq (%rax,%rax,2), %r14
movq (%rbx,%r13,8), %rsi
movq -0x30(%rbp), %rax
movq %rax, 0x20(%rsp)
movups -0x50(%rbp), %xmm0
movups -0x40(%rbp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq -0x68(%rbp), %rdi
callq 0x1ca05
movq -0x58(%rbp), %rax
movq %rax, 0x10(%r15,%r14,8)
movupd -0x68(%rbp), %xmm0
movupd %xmm0, (%r15,%r14,8)
incq %r13
cmpq %r13, %r12
jne 0x1c976
jmp 0x1c9f3
xorl %r15d, %r15d
movq %r15, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/compile.c
// Function: janetc_toslotskv
JanetSlot *janetc_toslotskv(JanetCompiler *c, Janet ds) {
    JanetSlot *ret = NULL;
    JanetFopts subopts = janetc_fopts_default(c);
    subopts.flags |= JANET_FOPTS_ACCEPT_SPLICE;
    const JanetKV *kvs = NULL;
    int32_t cap = 0, len = 0;
    janet_dictionary_view(ds, &kvs, &len, &cap);
    for (int32_t i = 0; i < cap; i++) {
        if (janet_checktype(kvs[i].key, JANET_NIL)) continue;
        janet_v_push(ret, janetc_value(subopts, kvs[i].key));
        janet_v_push(ret, janetc_value(subopts, kvs[i].value));
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %r14
movabsq $-0x7800000000000, %r13 # imm = 0xFFF8800000000000
movq %rdi, -0x60(%rbp)
xorl %ebx, %ebx
movl %ebx, -0x40(%rbp)
leaq 0x1(%r13), %rdi
callq 0x4f95a
movq %rax, %xmm0
movq %rax, -0x58(%rbp)
shrq $0x2f, %rax
andb $0xf, %al
movl $0x10000, %ecx          # imm = 0x10000
btsl %eax, %ecx
ucomisd %xmm0, %xmm0
movl $0x10001, %eax          # imm = 0x10001
cmovpl %ecx, %eax
movq $-0x1, -0x50(%rbp)
movl %eax, -0x48(%rbp)
orb $0x8, -0x3e(%rbp)
leaq -0x30(%rbp), %rsi
movq $0x0, (%rsi)
leaq -0x34(%rbp), %r15
movl %ebx, (%r15)
leaq -0x7c(%rbp), %rdx
movl %ebx, (%rdx)
movq %r14, %rdi
movq %r15, %rcx
callq 0x4a377
cmpl %ebx, (%r15)
jle 0x1d487
xorl %r15d, %r15d
movabsq $-0x800000000000, %r14  # imm = 0xFFFF800000000000
xorl %r12d, %r12d
xorl %ebx, %ebx
movq -0x30(%rbp), %rax
movq (%rax,%r15), %rax
andq %r14, %rax
cmpq %r13, %rax
je 0x1d473
testq %rbx, %rbx
je 0x1d397
movl -0x4(%rbx), %eax
incl %eax
cmpl -0x8(%rbx), %eax
jl 0x1d3ac
movq %rbx, %rdi
movl $0x1, %esi
movl $0x18, %edx
callq 0x4c0b4
movq %rax, %rbx
movslq -0x4(%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, -0x4(%rbx)
leaq (%rax,%rax,2), %r13
movq -0x30(%rbp), %rax
movq (%rax,%r15), %rsi
movq -0x40(%rbp), %rax
movq %rax, 0x20(%rsp)
movups -0x60(%rbp), %xmm0
movups -0x50(%rbp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq -0x78(%rbp), %rdi
callq 0x1ca05
movq -0x68(%rbp), %rax
movq %rax, 0x10(%rbx,%r13,8)
movups -0x78(%rbp), %xmm0
movups %xmm0, (%rbx,%r13,8)
testq %rbx, %rbx
je 0x1d406
movl -0x4(%rbx), %eax
incl %eax
cmpl -0x8(%rbx), %eax
jl 0x1d41b
movq %rbx, %rdi
movl $0x1, %esi
movl $0x18, %edx
callq 0x4c0b4
movq %rax, %rbx
movslq -0x4(%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, -0x4(%rbx)
leaq (%rax,%rax,2), %r13
movq -0x30(%rbp), %rax
movq 0x8(%rax,%r15), %rsi
movq -0x40(%rbp), %rax
movq %rax, 0x20(%rsp)
movups -0x60(%rbp), %xmm0
movups -0x50(%rbp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq -0x78(%rbp), %rdi
callq 0x1ca05
movq -0x68(%rbp), %rax
movq %rax, 0x10(%rbx,%r13,8)
movupd -0x78(%rbp), %xmm0
movupd %xmm0, (%rbx,%r13,8)
movabsq $-0x7800000000000, %r13 # imm = 0xFFF8800000000000
incq %r12
movslq -0x34(%rbp), %rax
addq $0x10, %r15
cmpq %rax, %r12
jl 0x1d374
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/compile.c
// Function: janetc_freeslots
void janetc_freeslots(JanetCompiler *c, JanetSlot *slots) {
    int32_t i;
    for (i = 0; i < janet_v_count(slots); i++) {
        janetc_freeslot(c, slots[i]);
    }
    janet_v_free(slots);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10(%rsi), %r15
xorl %r12d, %r12d
testq %rbx, %rbx
je 0x1d718
movslq -0x4(%rbx), %rax
jmp 0x1d71a
xorl %eax, %eax
cmpq %rax, %r12
jge 0x1d746
testb $0xb, 0x2(%r15)
jne 0x1d73d
cmpl $0x0, -0x4(%r15)
jns 0x1d73d
movl -0x8(%r15), %esi
movq (%r14), %rdi
addq $0x30, %rdi
callq 0x4123c
incq %r12
addq $0x18, %r15
jmp 0x1d70d
testq %rbx, %rbx
je 0x1d75f
addq $-0x8, %rbx
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2c187
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1d799
movl -0x4(%rax), %r12d
leaq 0x10(%rbp), %r13
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x1d7aa
movl -0x4(%rax), %r15d
leaq 0x37de7(%rip), %rcx     # 0x55598
leaq -0xb0(%rbp), %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x1bf9c
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 0x1ca05
leaq 0x37dac(%rip), %rdx     # 0x555a0
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rcx
xorl %eax, %eax
callq 0x1bcc7
movq %rbx, %rdi
callq 0x1c045
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x1d828
movl %r12d, -0x4(%rax)
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x1d828
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_O1/janet-lang[P]janet/src/core/compile.c
// Function: janetc_tuple
static JanetSlot janetc_tuple(JanetFopts opts, Janet x) {
    JanetCompiler *c = opts.compiler;
    const Janet *t = janet_unwrap_tuple(x);
    return janetc_maker(opts,
                        janetc_toslots(c, t, janet_tuple_length(t)),
                        JOP_MAKE_TUPLE);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x10(%rbp), %r14
movq %rsi, %rdi
callq 0x4f838
movl -0x10(%rax), %edx
movq %r14, %rdi
movq %rax, %rsi
callq 0x1c901
movq 0x30(%rbp), %rcx
movq %rcx, 0x20(%rsp)
movaps 0x10(%rbp), %xmm0
movaps 0x20(%rbp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq %rax, %rsi
movl $0x45, %edx
callq 0x1e6b1
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/compile.c
// Function: janetc_array
static JanetSlot janetc_array(JanetFopts opts, Janet x) {
    JanetCompiler *c = opts.compiler;
    JanetArray *a = janet_unwrap_array(x);
    return janetc_maker(opts,
                        janetc_toslots(c, a->data, a->count),
                        JOP_MAKE_ARRAY);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x10(%rbp), %r14
movq %rsi, %rdi
callq 0x4f838
movq 0x18(%rax), %rsi
movl 0x10(%rax), %edx
movq %r14, %rdi
callq 0x1c901
movq 0x30(%rbp), %rcx
movq %rcx, 0x20(%rsp)
movaps 0x10(%rbp), %xmm0
movaps 0x20(%rbp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq %rax, %rsi
movl $0x40, %edx
callq 0x1e6b1
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/compile.c
// Function: janetc_bufferctor
static JanetSlot janetc_bufferctor(JanetFopts opts, Janet x) {
    JanetCompiler *c = opts.compiler;
    JanetBuffer *b = janet_unwrap_buffer(x);
    Janet onearg = janet_stringv(b->data, b->count);
    return janetc_maker(opts,
                        janetc_toslots(c, &onearg, 1),
                        JOP_MAKE_BUFFER);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x10(%rbp), %r14
movq %rsi, %rdi
callq 0x4f838
movq 0x18(%rax), %rdi
movl 0x10(%rax), %esi
callq 0x45094
movabsq $-0x6000000000000, %rsi # imm = 0xFFFA000000000000
movq %rax, %rdi
callq 0x4f9ad
leaq -0x18(%rbp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
movl $0x1, %edx
callq 0x1c901
movq 0x30(%rbp), %rcx
movq %rcx, 0x20(%rsp)
movaps 0x10(%rbp), %xmm0
movaps 0x20(%rbp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq %rax, %rsi
movl $0x41, %edx
callq 0x1e6b1
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/compile.c
// Function: janet_def_addflags
void janet_def_addflags(JanetFuncDef *def) {
    int32_t set_flags = 0;
    int32_t unset_flags = 0;
    /* pos checks */
    if (def->name)            set_flags |= JANET_FUNCDEF_FLAG_HASNAME;
    if (def->source)          set_flags |= JANET_FUNCDEF_FLAG_HASSOURCE;
    if (def->defs)            set_flags |= JANET_FUNCDEF_FLAG_HASDEFS;
    if (def->environments)    set_flags |= JANET_FUNCDEF_FLAG_HASENVS;
    if (def->sourcemap)       set_flags |= JANET_FUNCDEF_FLAG_HASSOURCEMAP;
    if (def->closure_bitset)  set_flags |= JANET_FUNCDEF_FLAG_HASCLOBITSET;
    /* negative checks */
    if (!def->name)           unset_flags |= JANET_FUNCDEF_FLAG_HASNAME;
    if (!def->source)         unset_flags |= JANET_FUNCDEF_FLAG_HASSOURCE;
    if (!def->defs)           unset_flags |= JANET_FUNCDEF_FLAG_HASDEFS;
    if (!def->environments)   unset_flags |= JANET_FUNCDEF_FLAG_HASENVS;
    if (!def->sourcemap)      unset_flags |= JANET_FUNCDEF_FLAG_HASSOURCEMAP;
    if (!def->closure_bitset) unset_flags |= JANET_FUNCDEF_FLAG_HASCLOBITSET;
    /* Update flags */
    def->flags |= set_flags;
    def->flags &= ~unset_flags;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
xorl %ecx, %ecx
cmpq $0x0, 0x48(%rdi)
setne %al
sete %cl
shll $0x13, %eax
movl $0x100000, %edx         # imm = 0x100000
movl %eax, %esi
orl %edx, %esi
shll $0x13, %ecx
orl %ecx, %edx
cmpq $0x0, 0x40(%rdi)
cmovel %eax, %esi
cmovnel %ecx, %edx
movl $0x200000, %eax         # imm = 0x200000
movl %esi, %ecx
orl %eax, %ecx
orl %edx, %eax
cmpq $0x0, 0x20(%rdi)
cmovel %esi, %ecx
cmovnel %edx, %eax
movl $0x400000, %edx         # imm = 0x400000
movl %ecx, %esi
orl %edx, %esi
orl %eax, %edx
cmpq $0x0, 0x10(%rdi)
cmovel %ecx, %esi
cmovnel %eax, %edx
movl $0x800000, %eax         # imm = 0x800000
movl %esi, %ecx
orl %eax, %ecx
orl %edx, %eax
cmpq $0x0, 0x38(%rdi)
cmovel %esi, %ecx
cmovnel %edx, %eax
movl $0x2000000, %edx        # imm = 0x2000000
movl %ecx, %esi
orl %edx, %esi
orl %eax, %edx
cmpq $0x0, 0x30(%rdi)
cmovel %ecx, %esi
cmovnel %eax, %edx
orl 0x58(%rdi), %esi
notl %edx
andl %esi, %edx
movl %edx, 0x58(%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/compile.c
// Function: janet_compile_lint
JanetCompileResult janet_compile_lint(Janet source,
                                      JanetTable *env, const uint8_t *where, JanetArray *lints) {
    JanetCompiler c;
    JanetScope rootscope;
    JanetFopts fopts;

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

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

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

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

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

    janetc_deinit(&c);

    return c.result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x140, %rsp            # imm = 0x140
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq -0xb0(%rbp), %r15
movaps %xmm0, (%r15)
xorl %eax, %eax
movq %rax, 0x10(%r15)
movl $0x400, 0x58(%r15)      # imm = 0x400
movq %rdx, 0x18(%r15)
movq %rcx, 0x20(%r15)
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl %ecx, 0x50(%r15)
movl %ecx, 0x54(%r15)
movq %r8, 0x60(%r15)
movl $0x0, 0x48(%r15)
movups %xmm0, 0x28(%r15)
movq %rax, 0x38(%r15)
movq $-0x1, %r12
movq %r12, 0x40(%r15)
leaq 0x3fcf6(%rip), %rcx     # 0x5df9b
leaq -0x138(%rbp), %rdi
movq %r15, %rsi
movl $0x5, %edx
callq 0x1bf9c
movq %r15, -0x48(%rbp)
movl $0x1ffff, -0x28(%rbp)   # imm = 0x1FFFF
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4f95a
movq %rax, %xmm0
movq %rax, -0x40(%rbp)
shrq $0x2f, %rax
andb $0xf, %al
movl $0x10000, %ecx          # imm = 0x10000
btsl %eax, %ecx
ucomisd %xmm0, %xmm0
movl $0x10001, %eax          # imm = 0x10001
cmovpl %ecx, %eax
movq %r12, -0x38(%rbp)
movl %eax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq %rax, 0x20(%rsp)
movups -0x48(%rbp), %xmm0
movups -0x38(%rbp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq -0xc8(%rbp), %rdi
movq %r14, %rsi
callq 0x1ca05
cmpl $0x0, 0x48(%r15)
je 0x1e343
leaq -0xb0(%rbp), %rdi
movq 0x50(%rdi), %rax
movq %rax, 0x40(%rdi)
callq 0x1c045
jmp 0x1e371
leaq -0xb0(%rbp), %r14
movq %r14, %rdi
callq 0x1ddc8
movq %rax, %r15
leaq 0x372d7(%rip), %rdi     # 0x55633
callq 0x4516c
movq %rax, 0x48(%r15)
movq %r15, %rdi
callq 0x1dd35
movq %r15, 0x28(%r14)
movq -0xa8(%rbp), %rdi
testq %rdi, %rdi
je 0x1e386
addq $-0x8, %rdi
callq 0x2c187
leaq -0x88(%rbp), %r14
movq -0x18(%r14), %rdi
testq %rdi, %rdi
je 0x1e39f
addq $-0x8, %rdi
callq 0x2c187
movq $0x0, -0x98(%rbp)
movq 0x20(%r14), %rax
movq %rax, 0x20(%rbx)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
movq %rbx, %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4f595
movq %r12, %rdi
callq 0x4a98f
movq %rax, %r14
movq %rax, %rdi
movl $0x2, %esi
callq 0x125d0
movq %rax, %r15
cmpq %r12, %r14
je 0x1e974
movq %r14, %rdi
callq 0x120b0
testq %r15, %r15
je 0x1ea2e
leaq 0x36f1c(%rip), %rsi     # 0x558a0
movq %r15, %rdi
callq 0x129c0
testq %rax, %rax
je 0x1ea38
movq %rax, %r14
leaq 0x36f33(%rip), %rsi     # 0x558d2
movq %r15, %rdi
callq 0x129c0
testq %rax, %rax
je 0x1ea41
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 0x1ea53
subq $0x8, %rsp
leaq 0x36f24(%rip), %rdx     # 0x55910
xorl %r14d, %r14d
leaq -0xb0(%rbp), %r15
movl $0x80, %esi
movq %r15, %rdi
movl $0x1, %ecx
movl $0x26, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq %r13
pushq %r11
pushq %r12
pushq %r10
pushq $0x1
callq 0x12390
addq $0x30, %rsp
movq %r15, %rdi
callq 0x4516c
movq %rax, (%rbx)
jmp 0x1ea53
callq 0x12090
movq %rax, %rdi
jmp 0x1ea48
leaq 0x36e6d(%rip), %rdi     # 0x558ac
jmp 0x1ea48
leaq 0x36e9c(%rip), %rdi     # 0x558e4
callq 0x4516c
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_O1/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 0x19f23
movq %rax, %rbx
movabsq $-0x800000000000, %rax  # imm = 0xFFFF800000000000
andq %rbx, %rax
movabsq $-0x7800000000000, %rcx # imm = 0xFFF8800000000000
cmpq %rcx, %rax
je 0x1eef1
movabsq $-0x6000000000000, %rcx # imm = 0xFFFA000000000000
cmpq %rcx, %rax
jne 0x1ef00
movq %rbx, %rdi
callq 0x4f838
movq %rax, %r14
movq %rax, %rdi
callq 0x12310
movslq -0x8(%r14), %rcx
cmpq %rcx, %rax
je 0x1eef8
leaq 0x38458(%rip), %rdi     # 0x57347
jmp 0x1ef07
leaq 0x4e205(%rip), %r14     # 0x6d0fd
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x38428(%rip), %rdi     # 0x5732f
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1917b
// File: /workspace/github_c_makefile_star2_O1/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 0x1900b
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 0x12770
movq %rax, 0x28(%r12)
movq %r13, %rax
shrq $0x2, %rax
movl %eax, 0x70(%r12)
movq %rbx, %rdi
callq 0x4516c
movq %rax, 0x48(%r12)
movq 0x28(%r12), %rdi
testq %rdi, %rdi
je 0x20759
movq -0x40(%rbp), %rsi
movq %r13, %rdx
callq 0x12680
movq %r12, %rdi
callq 0x1dd35
movq %r12, %rdi
callq 0x19053
movabsq $-0x2000000000000, %rsi # imm = 0xFFFE000000000000
movq %rax, %rdi
callq 0x4f9f2
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 0x494f4
callq 0x13208
// File: /workspace/github_c_makefile_star2_O1/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 0x47e96
movq %rax, %r14
movq %rax, %rdi
callq 0x2089d
testq %rbx, %rbx
je 0x209f5
cmpl $0x0, 0x14(%rbx)
jle 0x209f5
movl $0x8, %r15d
xorl %r12d, %r12d
movq 0x20(%rbx), %rax
movq -0x8(%rax,%r15), %rsi
movq %rsi, %rcx
shrq $0x2f, %rcx
cmpl $0x1fff1, %ecx          # imm = 0x1FFF1
je 0x209e5
movq (%rax,%r15), %rdx
movq %r14, %rdi
callq 0x481b3
incq %r12
movslq 0x14(%rbx), %rax
addq $0x10, %r15
cmpq %rax, %r12
jl 0x209c1
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/debug.c
// Function: helper_find
static void helper_find(int32_t argc, Janet *argv, JanetFuncDef **def, int32_t *bytecode_offset) {
    janet_fixarity(argc, 3);
    const uint8_t *source = janet_getstring(argv, 0);
    int32_t line = janet_getinteger(argv, 1);
    int32_t col = janet_getinteger(argv, 2);
    janet_debug_find(def, bytecode_offset, source, line, col);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movl $0x3, %esi
callq 0x192b3
movq %r15, %rdi
xorl %esi, %esi
callq 0x194de
movq %rax, %r12
movq %r15, %rdi
movl $0x1, %esi
callq 0x19b1d
movl %eax, %r13d
movq %r15, %rdi
movl $0x2, %esi
callq 0x19b1d
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 0x20a52
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/debug.c
// Function: helper_find_fun
static void helper_find_fun(int32_t argc, Janet *argv, JanetFuncDef **def, int32_t *bytecode_offset) {
    janet_arity(argc, 1, 2);
    JanetFunction *func = janet_getfunction(argv, 0);
    int32_t offset = (argc == 2) ? janet_getinteger(argv, 1) : 0;
    *def = func->def;
    *bytecode_offset = offset;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, -0x30(%rbp)
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebx
movl $0x1, %esi
movl $0x2, %edx
callq 0x192cc
xorl %r12d, %r12d
movq %r15, %rdi
xorl %esi, %esi
callq 0x195a1
movq %rax, %r13
cmpl $0x2, %ebx
jne 0x21163
movq %r15, %rdi
movl $0x1, %esi
callq 0x19b1d
movl %eax, %r12d
movq 0x10(%r13), %rax
movq %rax, (%r14)
movq -0x30(%rbp), %rax
movl %r12d, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x411c4
movl %eax, %r14d
cmpl $0x10000, %eax          # imm = 0x10000
jl 0x21a6f
leaq 0x384a9(%rip), %rsi     # 0x59f10
movq %rbx, %rdi
callq 0x1bc9e
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x21b55
leaq 0x28(%rbp), %rdx
leaq 0x10(%rbp), %rsi
movl 0x8(%rsi), %edi
cmpl 0x8(%rdx), %edi
jne 0x21b55
movl 0xc(%rsi), %edi
cmpl 0xc(%rdx), %edi
jne 0x21b55
testl $0x90000, %ecx          # imm = 0x90000
je 0x21b50
movq (%rsi), %rdi
movq (%rdx), %rsi
popq %rbp
jmp 0x4acce
movl $0x1, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/emit.c
// Function: janetc_copy
void janetc_copy(
    JanetCompiler *c,
    JanetSlot dest,
    JanetSlot src) {
    if (dest.flags & JANET_SLOT_CONSTANT) {
        janetc_cerror(c, "cannot write to constant");
        return;
    }
    if (janetc_sequal(dest, src)) return;
    /* If dest is a near register */
    if (dest.envindex < 0 && dest.index >= 0 && dest.index <= 0xFF) {
        janetc_movenear(c, dest.index, src);
        return;
    }
    /* If src is a near register */
    if (src.envindex < 0 && src.index >= 0 && src.index <= 0xFF) {
        janetc_moveback(c, dest, src.index);
        return;
    }
    /* Process: src -> near -> dest */
    int32_t nearreg = janetc_allocnear(c, JANETC_REGTEMP_3);
    janetc_movenear(c, nearreg, src);
    janetc_moveback(c, dest, nearreg);
    /* Cleanup */
    janetc_regalloc_freetemp(&c->scope->ra, nearreg, JANETC_REGTEMP_3);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl 0x20(%rbp), %eax
btl $0x10, %eax
jb 0x21c1a
leaq 0x28(%rbp), %r8
leaq 0x10(%rbp), %rdi
movl 0x8(%r8), %r14d
movl 0xc(%r8), %r12d
movl 0x8(%rdi), %r15d
movl 0xc(%rdi), %r13d
movl 0x10(%r8), %ecx
xorl %eax, %ecx
cmpl $0x10000, %ecx          # imm = 0x10000
setb %cl
movl %r15d, %edx
xorl %r14d, %edx
movl %r13d, %esi
xorl %r12d, %esi
orl %edx, %esi
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x21bd8
btl $0x13, %eax
jae 0x21c0b
movq (%r8), %rsi
leaq 0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x4acce
leaq 0x28(%rbp), %r8
leaq 0x10(%rbp), %rdi
testl %eax, %eax
jne 0x21c0b
testl %r13d, %r13d
sets %al
cmpl $0x100, %r15d           # imm = 0x100
setb %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x21c37
movq 0x10(%r8), %rax
movq %rax, 0x10(%rsp)
movups (%r8), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x21cdd
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3830d(%rip), %rsi     # 0x59f2e
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1bc9e
testl %r12d, %r12d
sets %al
cmpl $0x100, %r14d           # imm = 0x100
setb %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x21c67
movq %rbx, %rdi
movl %r14d, %esi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21d73
movq %rdi, %r15
movq (%rbx), %rdi
addq $0x30, %rdi
movl $0x3, %esi
movq %r8, %r12
callq 0x4129e
movl %eax, %r14d
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r14d, %esi
callq 0x21cdd
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r14d, %esi
callq 0x21d73
movq (%rbx), %rdi
addq $0x30, %rdi
movl %r14d, %esi
movl $0x3, %edx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x412f6
// File: /workspace/github_c_makefile_star2_O1/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 0x21d1c
movq (%rcx), %rsi
movq %r14, %rdi
movl %ebx, %edx
callq 0x22533
btl $0x13, %r15d
jb 0x21d38
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl 0x8(%rcx), %eax
movl 0xc(%rcx), %ecx
testl %ecx, %ecx
js 0x21d59
shll $0x18, %eax
shll $0x10, %ecx
shll $0x8, %ebx
orl %ecx, %ebx
orl %eax, %ebx
orl $0x2d, %ebx
jmp 0x21d45
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 0x21a88
cmpl %ebx, %eax
je 0x21d11
testl %eax, %eax
js 0x21d6e
shll $0x10, %eax
shll $0x8, %ebx
orl %eax, %ebx
orl $0x1b, %ebx
jmp 0x21d45
callq 0x1326c
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/emit.c
// Function: janetc_moveback
static void janetc_moveback(JanetCompiler *c,
                            JanetSlot dest,
                            int32_t src) {
    if (dest.flags & JANET_SLOT_REF) {
        int32_t refreg = janetc_regalloc_temp(&c->scope->ra, JANETC_REGTEMP_5);
        janetc_loadconst(c, dest.constant, refreg);
        janetc_emit(c,
                    (src << 16) |
                    (refreg << 8) |
                    JOP_PUT_INDEX);
        janetc_regalloc_freetemp(&c->scope->ra, refreg, JANETC_REGTEMP_5);
    } else if (dest.envindex >= 0) {
        janetc_emit(c,
                    ((uint32_t)(dest.index) << 24) |
                    ((uint32_t)(dest.envindex) << 16) |
                    ((uint32_t)(src) << 8) |
                    JOP_SET_UPVALUE);
    } else if (dest.index != src) {
        janet_assert(dest.index >= 0, "bad slot");
        janetc_emit(c,
                    ((uint32_t)(dest.index) << 16) |
                    ((uint32_t)(src) << 8) |
                    JOP_MOVE_FAR);
    }
}

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %r12d
movl %esi, %r13d
movq %rdi, %r14
movq 0x20(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps 0x10(%rbp), %xmm0
movups %xmm0, (%rsp)
xorl %ebx, %ebx
xorl %esi, %esi
callq 0x21ef9
movl %eax, %r15d
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x21e85
movl -0x4(%rax), %ebx
movl %ebx, -0x2c(%rbp)
leaq 0x10(%rbp), %rbx
movzbl %r13b, %eax
movl %r15d, %esi
shll $0x8, %esi
orl %eax, %esi
movq %r14, %rdi
callq 0x21a88
testl %r12d, %r12d
je 0x21ec0
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movl %r15d, %esi
callq 0x21d73
cmpl %r15d, 0x8(%rbx)
jne 0x21ed6
cmpl $0x0, 0xc(%rbx)
jns 0x21ed6
movl $0x90000, %eax          # imm = 0x90000
andl 0x10(%rbx), %eax
je 0x21ee7
movq (%r14), %rdi
addq $0x30, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x412f6
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_O1/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 0x21fb1
movl %esi, %r14d
movq %rdi, %r15
leaq 0x10(%rbp), %r12
movq (%rdi), %rdi
addq $0x30, %rdi
callq 0x4129e
movl %eax, %ebx
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
movl %ebx, %esi
callq 0x21cdd
cmpl $0xf0, %ebx
jl 0x21f92
movq %r15, %rdi
callq 0x21a40
movl %eax, %r12d
movl %ebx, %esi
shll $0x8, %esi
shll $0x10, %eax
orl %eax, %esi
orl $0x1a, %esi
movq %r15, %rdi
callq 0x21a88
movq (%r15), %rdi
addq $0x30, %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0x412f6
movl %r12d, %ebx
jmp 0x21fb1
movq (%r15), %rdi
addq $0x30, %rdi
movl %ebx, %esi
movl %r14d, %edx
callq 0x412f6
movq (%r15), %rdi
addq $0x30, %rdi
movl %ebx, %esi
callq 0x41110
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x21fe2
movl -0x4(%rax), %eax
decl %eax
jmp 0x21fe7
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
subl %eax, %ebx
movswl %bx, %eax
cmpl %ebx, %eax
je 0x21fff
leaq 0x37f50(%rip), %rsi     # 0x59f47
movq %r14, %rdi
callq 0x1bc9e
movzbl %r15b, %esi
movq %r14, %rdi
movl %ebx, %edx
xorl %ecx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x22016
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/emit.c
// Function: emit1s
static int32_t emit1s(JanetCompiler *c, uint8_t op, JanetSlot s, int32_t rest, int wr) {
    int32_t reg = janetc_regnear(c, s, JANETC_REGTEMP_0);
    int32_t label = janet_v_count(c->buffer);
    janetc_emit(c, op | (reg << 8) | ((uint32_t)rest << 16));
    if (wr)
        janetc_moveback(c, s, reg);
    janetc_free_regnear(c, s, reg, JANETC_REGTEMP_0);
    return label;
}

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, -0x30(%rbp)
movl %esi, %r12d
movq %rdi, %rbx
leaq 0x28(%rbp), %r14
movq 0x20(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps 0x10(%rbp), %xmm0
movups %xmm0, (%rsp)
movl $0x0, -0x2c(%rbp)
xorl %esi, %esi
callq 0x2221d
movl %eax, %r15d
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x21ef9
movl %eax, %r13d
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x22174
movl -0x4(%rax), %eax
movl %eax, -0x2c(%rbp)
movzbl %r12b, %eax
movl %r15d, %ecx
shll $0x8, %ecx
orl %eax, %ecx
movl %r13d, %esi
shll $0x10, %esi
orl %ecx, %esi
movq %rbx, %rdi
callq 0x21a88
cmpl %r13d, 0x8(%r14)
jne 0x221a8
cmpl $0x0, 0xc(%r14)
jns 0x221a8
movl $0x90000, %eax          # imm = 0x90000
andl 0x10(%r14), %eax
je 0x221bc
movq (%rbx), %rdi
addq $0x30, %rdi
movl %r13d, %esi
movl $0x1, %edx
callq 0x412f6
leaq 0x10(%rbp), %r14
cmpl $0x0, -0x30(%rbp)
je 0x221e2
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x21d73
cmpl %r15d, 0x8(%r14)
jne 0x221fa
cmpl $0x0, 0xc(%r14)
jns 0x221fa
movl $0x90000, %eax          # imm = 0x90000
andl 0x10(%r14), %eax
je 0x2220b
movq (%rbx), %rdi
addq $0x30, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x412f6
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_O1/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 0x22275
movq %rdi, %rbx
leaq 0x10(%rbp), %r15
movq (%rdi), %rdi
addq $0x30, %rdi
callq 0x4129e
movl %eax, %r14d
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %r14d, %esi
callq 0x21cdd
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq