LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/pp.c
// Function: janet_jdn_
static JanetBuffer *janet_jdn_(JanetBuffer *buffer, int depth, Janet x, int32_t startlen) {
    struct pretty S;
    if (NULL == buffer) {
        buffer = janet_buffer(0);
    }
    S.buffer = buffer;
    S.depth = depth;
    S.indent = 0;
    S.flags = 0;
    S.bufstartlen = startlen;
    S.keysort_capacity = 0;
    S.keysort_buffer = NULL;
    S.keysort_start = 0;
    janet_table_init(&S.seen, 10);
    int res = print_jdn_one(&S, x, depth);
    janet_table_deinit(&S.seen);
    if (res) {
        janet_panic("could not print to jdn format");
    }
    return S.buffer;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movl %ecx, %r15d
movq %rdx, %r14
movl %esi, %ebx
testq %rdi, %rdi
jne 0x3f5ca
xorl %edi, %edi
callq 0x17757
movq %rax, %rdi
leaq -0x50(%rbp), %r12
movq %rdi, -0x28(%r12)
movl %ebx, -0x20(%r12)
movq $0x0, -0x1c(%r12)
movl %r15d, -0x14(%r12)
xorps %xmm0, %xmm0
movups %xmm0, -0x10(%r12)
movq %r12, %rdi
movl $0xa, %esi
callq 0x47df0
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x40b67
movl %eax, %ebx
movq %r12, %rdi
callq 0x47e7c
testl %ebx, %ebx
jne 0x3f629
movq -0x78(%rbp), %rax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2a0a0(%rip), %rdi     # 0x696d0
callq 0x19263
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/pp.c
// Function: janet_formatc
const uint8_t *janet_formatc(const char *format, ...) {
    va_list args;
    const uint8_t *ret;
    JanetBuffer buffer;
    int32_t len = 0;

    /* Calculate length, init buffer and args */
    while (format[len]) len++;
    janet_buffer_init(&buffer, len);
    va_start(args, format);

    /* Run format */
    janet_formatbv(&buffer, format, args);

    /* Iterate length */
    va_end(args);

    ret = janet_string(buffer.data, buffer.count);
    janet_buffer_deinit(&buffer);
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xf0, %rsp
movq %rdi, %rbx
movq %rsi, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movq %rcx, -0xc8(%rbp)
movq %r8, -0xc0(%rbp)
movq %r9, -0xb8(%rbp)
testb %al, %al
je 0x3fde7
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
xorl %esi, %esi
cmpb $0x0, (%rbx,%rsi)
leaq 0x1(%rsi), %rsi
jne 0x3fde9
decl %esi
leaq -0x100(%rbp), %r14
movq %r14, %rdi
callq 0x17678
movabsq $0x3000000008, %rax     # imm = 0x3000000008
leaq -0x30(%rbp), %rdx
movq %rax, (%rdx)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%rdx)
leaq -0xe0(%rbp), %rax
movq %rax, 0x10(%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3f635
movq 0x18(%r14), %rdi
movl 0x10(%r14), %esi
callq 0x45094
movq %rax, %rbx
movq %r14, %rdi
callq 0x17741
movq %rbx, %rax
addq $0xf0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/pp.c
// Function: janet_formatb
JanetBuffer *janet_formatb(JanetBuffer *buffer, const char *format, ...) {
    va_list args;
    va_start(args, format);
    janet_formatbv(buffer, format, args);
    va_end(args);
    return buffer;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
leaq -0xd0(%rbp), %rdi
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x3feaa
movaps %xmm0, -0xa0(%rbp)
movaps %xmm1, -0x90(%rbp)
movaps %xmm2, -0x80(%rbp)
movaps %xmm3, -0x70(%rbp)
movaps %xmm4, -0x60(%rbp)
movaps %xmm5, -0x50(%rbp)
movaps %xmm6, -0x40(%rbp)
movaps %xmm7, -0x30(%rbp)
leaq -0x20(%rbp), %rdx
movq %rdi, 0x10(%rdx)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
movq %rbx, %rdi
callq 0x3f635
movq %rbx, %rax
addq $0xc8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/pp.c
// Function: print_newline
static void print_newline(struct pretty *S, int just_a_space) {
    int i;
    if (just_a_space || (S->flags & JANET_PRETTY_ONELINE)) {
        janet_buffer_push_u8(S->buffer, ' ');
        return;
    }
    janet_buffer_push_u8(S->buffer, '\n');
    for (i = 0; i < S->indent; i++) {
        janet_buffer_push_u8(S->buffer, ' ');
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
testl %esi, %esi
jne 0x40b56
testb $0x2, 0x10(%rbx)
jne 0x40b56
movq (%rbx), %rdi
movl $0xa, %esi
callq 0x179a7
cmpl $0x0, 0xc(%rbx)
jle 0x40b51
xorl %r14d, %r14d
movq (%rbx), %rdi
movl $0x20, %esi
callq 0x179a7
incl %r14d
cmpl 0xc(%rbx), %r14d
jl 0x40b3b
popq %rbx
popq %r14
popq %rbp
retq
movq (%rbx), %rdi
movl $0x20, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x179a7
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/regalloc.c
// Function: janetc_regalloc_clone
void janetc_regalloc_clone(JanetcRegisterAllocator *dest, JanetcRegisterAllocator *src) {
    size_t size;
    dest->count = src->count;
    dest->capacity = src->capacity;
    dest->max = src->max;
    size = sizeof(uint32_t) * (size_t) dest->capacity;
    dest->regtemps = 0;
    if (size) {
        dest->chunks = janet_malloc(size);
        if (!dest->chunks) {
            JANET_OUT_OF_MEMORY;
        }
        memcpy(dest->chunks, src->chunks, size);
    } else {
        dest->chunks = NULL;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r15
movl 0x8(%rsi), %eax
movl %eax, 0x8(%rdi)
movslq 0xc(%rsi), %r14
movl %r14d, 0xc(%rdi)
movl 0x10(%rsi), %eax
movl %eax, 0x10(%rdi)
movl $0x0, 0x14(%rdi)
testq %r14, %r14
je 0x410f9
movq %rsi, %rbx
shlq $0x2, %r14
movq %r14, %rdi
callq 0x12770
movq %rax, (%r15)
testq %rax, %rax
je 0x4110b
movq (%rbx), %rsi
movq %rax, %rdi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x12680
movq $0x0, (%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x13eb0
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/regalloc.c
// Function: janetc_regalloc_touch
void janetc_regalloc_touch(JanetcRegisterAllocator *ra, int32_t reg) {
    int32_t chunk = reg >> 5;
    int32_t bit = reg & 0x1F;
    while (chunk >= ra->count) pushchunk(ra);
    ra->chunks[chunk] |= ithbit(bit);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
movl %esi, %r15d
sarl $0x5, %r15d
cmpl 0x8(%rdi), %r15d
jl 0x4113b
movq %rbx, %rdi
callq 0x41159
cmpl 0x8(%rbx), %r15d
jge 0x4112d
movl $0x1, %eax
movl %r14d, %ecx
shll %cl, %eax
movq (%rbx), %rcx
movslq %r15d, %rdx
orl %eax, (%rcx,%rdx,4)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/regalloc.c
// Function: pushchunk
static void pushchunk(JanetcRegisterAllocator *ra) {
    /* Registers 240-255 are always allocated (reserved) */
    uint32_t chunk = ra->count == 7 ? 0xFFFF0000 : 0;
    int32_t newcount = ra->count + 1;
    if (newcount > ra->capacity) {
        int32_t newcapacity = newcount * 2;
        ra->chunks = janet_realloc(ra->chunks, (size_t) newcapacity * sizeof(uint32_t));
        if (!ra->chunks) {
            JANET_OUT_OF_MEMORY;
        }
        ra->capacity = newcapacity;
    }
    ra->chunks[ra->count] = chunk;
    ra->count = newcount;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq 0x8(%rdi), %r15
movq %r15, %r14
incq %r14
cmpl 0xc(%rdi), %r15d
jl 0x41195
movq (%rbx), %rdi
leaq (,%r14,8), %rsi
callq 0x12850
movq %rax, (%rbx)
testq %rax, %rax
je 0x411bf
leal (%r14,%r14), %eax
movl %eax, 0xc(%rbx)
xorl %eax, %eax
cmpl $0x7, %r15d
setne %al
shll $0x10, %eax
addl $0xffff0000, %eax       # imm = 0xFFFF0000
movq (%rbx), %rcx
movslq 0x8(%rbx), %rdx
movl %eax, (%rcx,%rdx,4)
movl %r14d, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x13ede
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/regalloc.c
// Function: janetc_regalloc_1
int32_t janetc_regalloc_1(JanetcRegisterAllocator *ra) {
    /* Get the nth bit in the array */
    int32_t bit, chunk, nchunks, reg;
    bit = -1;
    nchunks = ra->count;
    for (chunk = 0; chunk < nchunks; chunk++) {
        uint32_t block = ra->chunks[chunk];
        if (block == 0xFFFFFFFF) continue;
        bit = count_trailing_ones(block);
        break;
    }
    /* No reg found */
    if (bit == -1) {
        pushchunk(ra);
        bit = 0;
        chunk = nchunks;
    }
    /* set the bit at index bit in chunk */
    ra->chunks[chunk] |= ithbit(bit);
    reg = (chunk << 5) + bit;
    if (reg > ra->max)
        ra->max = reg;
    return reg;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x8(%rdi), %r14d
testl %r14d, %r14d
jle 0x41202
movq (%rbx), %rdx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %eax, %eax
movl %ecx, %esi
movl (%rdx,%rax,4), %edi
movl %edi, %ecx
notl %ecx
bsfl %ecx, %ecx
cmpl $-0x1, %edi
cmovel %esi, %ecx
jne 0x41209
incq %rax
cmpq %rax, %r14
jne 0x411e1
movl %r14d, %eax
jmp 0x41209
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %eax, %eax
cmpl $-0x1, %ecx
jne 0x4121b
movq %rbx, %rdi
callq 0x41159
xorl %ecx, %ecx
movl %r14d, %eax
movl $0x1, %edx
shll %cl, %edx
movq (%rbx), %rsi
cltq
orl %edx, (%rsi,%rax,4)
shll $0x5, %eax
addl %ecx, %eax
cmpl 0x10(%rbx), %eax
jle 0x41237
movl %eax, 0x10(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/regalloc.c
// Function: janetc_regalloc_check
int janetc_regalloc_check(JanetcRegisterAllocator *ra, int32_t reg) {
    int32_t chunk = reg >> 5;
    int32_t bit = reg & 0x1F;
    while (chunk >= ra->count) pushchunk(ra);
    return !!(ra->chunks[chunk] & ithbit(bit));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl %esi, %r15d
sarl $0x5, %r15d
cmpl 0x8(%rdi), %r15d
jl 0x41282
movq %r14, %rdi
callq 0x41159
cmpl 0x8(%r14), %r15d
jge 0x41274
movq (%r14), %rax
movslq %r15d, %rcx
movl (%rax,%rcx,4), %ecx
xorl %eax, %eax
btl %ebx, %ecx
setb %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/regalloc.c
// Function: janetc_regalloc_temp
int32_t janetc_regalloc_temp(JanetcRegisterAllocator *ra, JanetcRegisterTemp nth) {
    int32_t oldmax = ra->max;
    if (ra->regtemps & (1 << nth)) {
        JANET_EXIT("regtemp already allocated");
    }
    ra->regtemps |= 1 << nth;
    int32_t reg = janetc_regalloc_1(ra);
    if (reg > 0xFF) {
        reg = 0xF0 + nth;
        ra->max = (reg > oldmax) ? reg : oldmax;
    }
    return reg;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movl 0x14(%rdi), %eax
movl $0x1, %edx
movl %ebx, %ecx
shll %cl, %edx
btl %esi, %eax
jb 0x412f1
movq %rdi, %r14
movl 0x10(%rdi), %r15d
orl %edx, %eax
movl %eax, 0x14(%rdi)
callq 0x411c4
cmpl $0x100, %eax            # imm = 0x100
jl 0x412e6
addl $0xf0, %ebx
cmpl %r15d, %ebx
cmovgl %ebx, %r15d
movl %r15d, 0x10(%r14)
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x13f0c
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/run.c
// Function: janet_loop_fiber
int janet_loop_fiber(JanetFiber *fiber) {
    int status;
#ifdef JANET_EV
    janet_schedule(fiber, janet_wrap_nil());
    janet_loop();
    status = janet_fiber_status(fiber);
#else
    Janet out;
    status = janet_continue(fiber, janet_wrap_nil(), &out);
    if (status != JANET_SIGNAL_OK && status != JANET_SIGNAL_EVENT) {
        janet_stacktrace_ext(fiber, out, "");
    }
#endif
    return status;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4f95a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x22cf0
callq 0x25348
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x29e47
nop
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/specials.c
// Function: janetc_def
static JanetSlot janetc_def(JanetFopts opts, int32_t argn, const Janet *argv) {
    JanetCompiler *c = opts.compiler;
    JanetTable *attr_table = handleattr(c, "def", argn, argv);
    if (c->result.status == JANET_COMPILE_ERROR) {
        return janetc_cslot(janet_wrap_nil());
    }
    opts.flags &= ~JANET_FOPTS_HINT;
    SlotHeadPair *into = NULL;
    into = dohead_destructure(c, into, opts, argv[0], argv[argn - 1]);
    if (c->result.status == JANET_COMPILE_ERROR) {
        janet_v_free(into);
        return janetc_cslot(janet_wrap_nil());
    }
    JanetSlot ret;
    janet_assert(janet_v_count(into) > 0, "bad destructure");
    for (int32_t i = 0; i < janet_v_count(into); i++) {
        destructure(c, into[i].lhs, into[i].rhs, defleaf, attr_table);
        ret = into[i].rhs;
    }
    janet_v_free(into);
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r12
movl %esi, %r13d
movq %rdi, %rbx
movq 0x10(%rbp), %r15
leaq 0x27fee(%rip), %rsi     # 0x69b3d
movq %r15, %rdi
movl %r13d, %edx
movq %r12, %rcx
callq 0x438df
cmpl $0x1, 0x48(%r15)
je 0x41bbd
movq %rax, %r14
leaq 0x10(%rbp), %rax
andb $-0x3, 0x22(%rax)
movslq %r13d, %rcx
movq (%r12), %rdx
movq -0x8(%r12,%rcx,8), %rcx
movq 0x20(%rax), %rsi
movq %rsi, 0x20(%rsp)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r15, %rdi
xorl %esi, %esi
callq 0x41728
movq %rax, -0x30(%rbp)
cmpl $0x1, 0x48(%r15)
jne 0x41bdf
cmpq $0x0, -0x30(%rbp)
je 0x41bbd
movq -0x30(%rbp), %rdi
addq $-0x8, %rdi
callq 0x2c187
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4f95a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1bc4e
movq %rbx, %rax
jmp 0x41c72
cmpq $0x0, -0x30(%rbp)
je 0x41c81
movq -0x30(%rbp), %rax
cmpl $0x0, -0x4(%rax)
jle 0x41c81
movq %rbx, %r12
movq -0x30(%rbp), %rax
cmpl $0x0, -0x4(%rax)
jle 0x41c62
movq %r15, %rbx
movq -0x30(%rbp), %rax
leaq 0x8(%rax), %r13
xorl %r15d, %r15d
movq -0x8(%r13), %rsi
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
leaq 0x256a(%rip), %rdx      # 0x4419d
movq %r14, %rcx
callq 0x43a7e
movq 0x10(%r13), %rax
movq %rax, 0x10(%r12)
movups (%r13), %xmm0
movups %xmm0, (%r12)
incq %r15
movq -0x30(%rbp), %rax
movslq -0x4(%rax), %rax
addq $0x20, %r13
cmpq %rax, %r15
jl 0x41c13
movq -0x30(%rbp), %rdi
addq $-0x8, %rdi
callq 0x2c187
movq %r12, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x13f40
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/specials.c
// Function: janetc_do
static JanetSlot janetc_do(JanetFopts opts, int32_t argn, const Janet *argv) {
    int32_t i;
    JanetSlot ret = janetc_cslot(janet_wrap_nil());
    JanetCompiler *c = opts.compiler;
    JanetFopts subopts = janetc_fopts_default(c);
    JanetScope tempscope;
    janetc_scope(&tempscope, c, 0, "do");
    for (i = 0; i < argn; i++) {
        if (i != argn - 1) {
            subopts.flags = JANET_FOPTS_DROP;
        } else {
            subopts = opts;
            subopts.flags &= ~JANET_FOPTS_ACCEPT_SPLICE;
        }
        ret = janetc_value(subopts, argv[i]);
        if (i != argn - 1) {
            janetc_freeslot(c, ret);
        }
    }
    janetc_popscope_keepslot(c, ret);
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdx, -0x38(%rbp)
movl %esi, %r12d
movq %rdi, %rbx
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4f95a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1bc4e
movq 0x10(%rbp), %r14
leaq -0x60(%rbp), %rdi
movq %r14, %rsi
callq 0x1bbf0
leaq 0x27b43(%rip), %rcx     # 0x69818
leaq -0xe8(%rbp), %rdi
movq %r14, -0x30(%rbp)
movq %r14, %rsi
xorl %edx, %edx
callq 0x1bf9c
testl %r12d, %r12d
jle 0x41d92
leaq 0x10(%rbp), %r13
leal -0x1(%r12), %r15d
movl %r12d, %r12d
xorl %r14d, %r14d
cmpq %r14, %r15
jne 0x41d27
movq 0x20(%r13), %rax
movq %rax, -0x40(%rbp)
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movaps %xmm1, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
andb $-0x9, -0x3e(%rbp)
jmp 0x41d2e
movl $0x40000, -0x40(%rbp)   # imm = 0x40000
movq -0x38(%rbp), %rax
movq (%rax,%r14,8), %rsi
movq -0x40(%rbp), %rax
movq %rax, 0x20(%rsp)
movaps -0x60(%rbp), %xmm0
movaps -0x50(%rbp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq -0x78(%rbp), %rdi
callq 0x1ca05
movq -0x68(%rbp), %rax
movq %rax, 0x10(%rbx)
movups -0x78(%rbp), %xmm0
movups %xmm0, (%rbx)
cmpq %r14, %r15
je 0x41d86
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
movq -0x30(%rbp), %rdi
callq 0x1be71
incq %r14
cmpq %r14, %r12
jne 0x41d02
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
movq -0x30(%rbp), %rdi
callq 0x1c261
movq %rbx, %rax
addq $0xe8, %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/specials.c
// Function: janetc_quasiquote
static JanetSlot janetc_quasiquote(JanetFopts opts, int32_t argn, const Janet *argv) {
    if (argn != 1) {
        janetc_cerror(opts.compiler, "expected 1 argument to quasiquote");
        return janetc_cslot(janet_wrap_nil());
    }
    return quasiquote(opts, argv[0], JANET_RECURSION_GUARD, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x10(%rbp), %rax
cmpl $0x1, %esi
jne 0x42d54
movq (%rdx), %rsi
movq 0x20(%rax), %rcx
movq %rcx, 0x20(%rsp)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl $0x400, %edx            # imm = 0x400
xorl %ecx, %ecx
callq 0x4473e
jmp 0x42d7d
movq (%rax), %rdi
leaq 0x26e14(%rip), %rsi     # 0x69b72
callq 0x1bc9e
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4f95a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1bc4e
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/specials.c
// Function: janetc_quote
static JanetSlot janetc_quote(JanetFopts opts, int32_t argn, const Janet *argv) {
    if (argn != 1) {
        janetc_cerror(opts.compiler, "expected 1 argument to quote");
        return janetc_cslot(janet_wrap_nil());
    }
    return janetc_cslot(argv[0]);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x1, %esi
jne 0x42d9a
movq (%rdx), %rsi
jmp 0x42dbf
leaq 0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0x26e09(%rip), %rsi     # 0x69bb1
callq 0x1bc9e
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4f95a
movq %rax, %rsi
movq %rbx, %rdi
callq 0x1bc4e
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/specials.c
// Function: janetc_splice
static JanetSlot janetc_splice(JanetFopts opts, int32_t argn, const Janet *argv) {
    JanetSlot ret;
    if (!(opts.flags & JANET_FOPTS_ACCEPT_SPLICE)) {
        janetc_cerror(opts.compiler, "splice can only be used in function parameters and data constructors, it has no effect here");
        return janetc_cslot(janet_wrap_nil());
    }
    if (argn != 1) {
        janetc_cerror(opts.compiler, "expected 1 argument to splice");
        return janetc_cslot(janet_wrap_nil());
    }
    ret = janetc_value(opts, argv[0]);
    ret.flags |= JANET_SLOT_SPLICED;
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
leaq 0x10(%rbp), %rax
testb $0x8, 0x22(%rax)
jne 0x4302e
movq (%rax), %rdi
leaq 0x26c2a(%rip), %rsi     # 0x69c56
jmp 0x43081
cmpl $0x1, %esi
jne 0x43077
movq (%rdx), %rsi
movq 0x20(%rax), %rcx
movq %rcx, 0x20(%rsp)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq -0x28(%rbp), %r14
movq %r14, %rdi
callq 0x1ca05
movups (%r14), %xmm0
movups %xmm0, (%rbx)
movl $0x1000000, %eax        # imm = 0x1000000
orl 0x10(%r14), %eax
movl 0x14(%r14), %ecx
movl %eax, 0x10(%rbx)
movl %ecx, 0x14(%rbx)
jmp 0x430a0
movq (%rax), %rdi
leaq 0x26c31(%rip), %rsi     # 0x69cb2
callq 0x1bc9e
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4f95a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1bc4e
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/specials.c
// Function: janetc_upscope
static JanetSlot janetc_upscope(JanetFopts opts, int32_t argn, const Janet *argv) {
    int32_t i;
    JanetSlot ret = janetc_cslot(janet_wrap_nil());
    JanetCompiler *c = opts.compiler;
    JanetFopts subopts = janetc_fopts_default(c);
    for (i = 0; i < argn; i++) {
        if (i != argn - 1) {
            subopts.flags = JANET_FOPTS_DROP;
        } else {
            subopts = opts;
            subopts.flags &= ~JANET_FOPTS_ACCEPT_SPLICE;
        }
        ret = janetc_value(subopts, argv[i]);
        if (i != argn - 1) {
            janetc_freeslot(c, ret);
        }
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %rbx
movl %esi, %r12d
movq %rdi, %r14
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4f95a
movq %r14, %rdi
movq %rax, %rsi
callq 0x1bc4e
movq 0x10(%rbp), %rsi
leaq -0x60(%rbp), %rdi
movq %rsi, -0x30(%rbp)
callq 0x1bbf0
testl %r12d, %r12d
jle 0x431d1
leal -0x1(%r12), %r15d
movl %r12d, %r12d
xorl %r13d, %r13d
cmpq %r13, %r15
jne 0x43168
leaq 0x10(%rbp), %rcx
movq 0x20(%rcx), %rax
movq %rax, -0x40(%rbp)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movaps %xmm1, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
andb $-0x9, -0x3e(%rbp)
jmp 0x4316f
movl $0x40000, -0x40(%rbp)   # imm = 0x40000
movq (%rbx,%r13,8), %rsi
movq -0x40(%rbp), %rax
movq %rax, 0x20(%rsp)
movaps -0x60(%rbp), %xmm0
movaps -0x50(%rbp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq -0x78(%rbp), %rdi
callq 0x1ca05
movq -0x68(%rbp), %rax
movq %rax, 0x10(%r14)
movups -0x78(%rbp), %xmm0
movups %xmm0, (%r14)
cmpq %r13, %r15
je 0x431c5
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq -0x30(%rbp), %rdi
callq 0x1be71
incq %r13
cmpq %r13, %r12
jne 0x43142
movq %r14, %rax
addq $0x78, %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/specials.c
// Function: janetc_var
static JanetSlot janetc_var(JanetFopts opts, int32_t argn, const Janet *argv) {
    JanetCompiler *c = opts.compiler;
    JanetTable *attr_table = handleattr(c, "var", argn, argv);
    if (c->result.status == JANET_COMPILE_ERROR) {
        return janetc_cslot(janet_wrap_nil());
    }
    SlotHeadPair *into = NULL;
    into = dohead_destructure(c, into, opts, argv[0], argv[argn - 1]);
    if (c->result.status == JANET_COMPILE_ERROR) {
        janet_v_free(into);
        return janetc_cslot(janet_wrap_nil());
    }
    JanetSlot ret;
    janet_assert(janet_v_count(into) > 0, "bad destructure");
    for (int32_t i = 0; i < janet_v_count(into); i++) {
        destructure(c, into[i].lhs, into[i].rhs, varleaf, attr_table);
        ret = into[i].rhs;
    }
    janet_v_free(into);
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r12
movl %esi, %r13d
movq %rdi, %rbx
movq 0x10(%rbp), %r15
leaq 0x2661b(%rip), %rsi     # 0x69823
movq %r15, %rdi
movl %r13d, %edx
movq %r12, %rcx
callq 0x438df
cmpl $0x1, 0x48(%r15)
je 0x43272
movq %rax, %r14
leaq 0x10(%rbp), %rax
movslq %r13d, %rcx
movq (%r12), %rdx
movq -0x8(%r12,%rcx,8), %rcx
movq 0x20(%rax), %rsi
movq %rsi, 0x20(%rsp)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r15, %rdi
xorl %esi, %esi
callq 0x41728
movq %rax, -0x30(%rbp)
cmpl $0x1, 0x48(%r15)
jne 0x43294
cmpq $0x0, -0x30(%rbp)
je 0x43272
movq -0x30(%rbp), %rdi
addq $-0x8, %rdi
callq 0x2c187
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4f95a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1bc4e
movq %rbx, %rax
jmp 0x43327
cmpq $0x0, -0x30(%rbp)
je 0x43336
movq -0x30(%rbp), %rax
cmpl $0x0, -0x4(%rax)
jle 0x43336
movq %rbx, %r12
movq -0x30(%rbp), %rax
cmpl $0x0, -0x4(%rax)
jle 0x43317
movq %r15, %rbx
movq -0x30(%rbp), %rax
leaq 0x8(%rax), %r13
xorl %r15d, %r15d
movq -0x8(%r13), %rsi
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
leaq 0x1a22(%rip), %rdx      # 0x44d0a
movq %r14, %rcx
callq 0x43a7e
movq 0x10(%r13), %rax
movq %rax, 0x10(%r12)
movups (%r13), %xmm0
movups %xmm0, (%r12)
incq %r15
movq -0x30(%rbp), %rax
movslq -0x4(%rax), %rax
addq $0x20, %r13
cmpq %rax, %r15
jl 0x432c8
movq -0x30(%rbp), %rdi
addq $-0x8, %rdi
callq 0x2c187
movq %r12, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x13fa8
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/specials.c
// Function: janetc_make_sourcemap
static const Janet *janetc_make_sourcemap(JanetCompiler *c) {
    Janet *tup = janet_tuple_begin(3);
    tup[0] = c->source ? janet_wrap_string(c->source) : janet_wrap_nil();
    tup[1] = janet_wrap_integer(c->current_mapping.line);
    tup[2] = janet_wrap_integer(c->current_mapping.column);
    return janet_tuple_end(tup);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x3, %edi
callq 0x48a50
movq %rax, %rbx
movq 0x20(%r14), %rdi
testq %rdi, %rdi
je 0x444d8
movabsq $-0x6000000000000, %rsi # imm = 0xFFFA000000000000
callq 0x4f9ad
jmp 0x444e7
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x4f95a
movq %rax, (%rbx)
cvtsi2sdl 0x50(%r14), %xmm0
callq 0x4fab8
movq %rax, 0x8(%rbx)
xorps %xmm0, %xmm0
cvtsi2sdl 0x54(%r14), %xmm0
callq 0x4fab8
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x48a81
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/specials.c
// Function: namelocal
static int namelocal(JanetCompiler *c, const uint8_t *head, int32_t flags, JanetSlot ret) {
    int isUnnamedRegister = !(ret.flags & JANET_SLOT_NAMED) &&
                            ret.index > 0 &&
                            ret.envindex >= 0;
    /* optimization for `(def x my-def)` - don't emit a movn/movf instruction, we can just alias my-def */
    /* TODO - implement optimization for `(def x my-var)` correctly as well w/ de-aliasing */
    int canAlias = !(flags & JANET_SLOT_MUTABLE) &&
                   !(ret.flags & JANET_SLOT_MUTABLE) &&
                   (ret.flags & JANET_SLOT_NAMED) &&
                   (ret.index >= 0) &&
                   (ret.envindex == -1);
    if (canAlias) {
        ret.flags &= ~JANET_SLOT_MUTABLE;
        isUnnamedRegister = 1; /* don't free slot after use - is an alias for another slot */
    } else if (!isUnnamedRegister) {
        /* Slot is not able to be named */
        JanetSlot localslot = janetc_farslot(c);
        janetc_copy(c, localslot, ret);
        ret = localslot;
    }
    ret.flags |= flags;
    janetc_nameslot(c, head, ret);
    return !isUnnamedRegister;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %edx, %r15d
movq %rsi, %r8
movq %rdi, %r14
leaq 0x10(%rbp), %r13
movl 0x8(%r13), %ecx
movl 0x10(%r13), %eax
btl $0x11, %eax
setae %dl
testl %ecx, %ecx
setg %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x4455d
cmpl $0x0, 0xc(%r13)
setns %bl
jmp 0x4455f
xorl %ebx, %ebx
movl %eax, %edx
orl %r15d, %edx
btl $0x12, %edx
jb 0x44588
btl $0x11, %eax
jae 0x44588
testl %ecx, %ecx
js 0x44588
cmpl $-0x1, 0xc(%r13)
jne 0x44588
andl $0xfffbffff, %eax       # imm = 0xFFFBFFFF
movl %eax, 0x10(%r13)
movb $0x1, %bl
jmp 0x445e4
testb %bl, %bl
jne 0x445e4
leaq -0x48(%rbp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %r8, -0x30(%rbp)
callq 0x1bf5e
movq 0x10(%r13), %rax
movq %rax, 0x28(%rsp)
movups (%r13), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
callq 0x21b57
movq -0x30(%rbp), %r8
movq 0x10(%r12), %rax
movq %rax, 0x10(%r13)
movups (%r12), %xmm0
movups %xmm0, (%r13)
orl %r15d, 0x10(%r13)
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movq %r8, %rsi
callq 0x1be97
xorb $0x1, %bl
movzbl %bl, %eax
addq $0x58, %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/specials.c
// Function: janetc_addfuncdef
static int32_t janetc_addfuncdef(JanetCompiler *c, JanetFuncDef *def) {
    JanetScope *scope = c->scope;
    while (scope) {
        if (scope->flags & JANET_SCOPE_FUNCTION)
            break;
        scope = scope->parent;
    }
    janet_assert(scope, "could not add funcdef");
    janet_v_push(scope->defs, def);
    return janet_v_count(scope->defs) - 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x4463c
movq %rsi, %rbx
testb $0x1, 0x6c(%r14)
jne 0x44641
movq 0x8(%r14), %r14
testq %r14, %r14
jne 0x4462c
callq 0x13fdc
movq 0x28(%r14), %rdi
testq %rdi, %rdi
je 0x44654
movl -0x4(%rdi), %eax
incl %eax
cmpl -0x8(%rdi), %eax
jl 0x44667
movl $0x1, %esi
movl $0x8, %edx
callq 0x4c0b4
movq %rax, 0x28(%r14)
movq 0x28(%r14), %rax
movslq -0x4(%rax), %rcx
leal 0x1(%rcx), %edx
movl %edx, -0x4(%rax)
movq %rbx, (%rax,%rcx,8)
movq 0x28(%r14), %rax
testq %rax, %rax
je 0x44689
movl -0x4(%rax), %eax
decl %eax
jmp 0x4468e
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/specials.c
// Function: janetc_check_nil_form
static int janetc_check_nil_form(Janet x, Janet *capture, uint32_t fun_tag) {
    if (!janet_checktype(x, JANET_TUPLE)) return 0;
    JanetTuple tup = janet_unwrap_tuple(x);
    if (3 != janet_tuple_length(tup)) return 0;
    Janet op1 = tup[0];
    if (!janet_checktype(op1, JANET_FUNCTION)) return 0;
    JanetFunction *fun = janet_unwrap_function(op1);
    uint32_t tag = fun->def->flags & JANET_FUNCDEF_FLAG_TAG;
    if (tag != fun_tag) return 0;
    if (janet_checktype(tup[1], JANET_NIL)) {
        *capture = tup[2];
        return 1;
    } else if (janet_checktype(tup[2], JANET_NIL)) {
        *capture = tup[1];
        return 1;
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rax
shrq $0x2f, %rax
xorl %ebx, %ebx
cmpl $0x1fff8, %eax          # imm = 0x1FFF8
jne 0x4472d
movl %edx, %r15d
movq %rsi, %r14
callq 0x4f838
cmpl $0x3, -0x10(%rax)
jne 0x4472d
movq %rax, %r12
movabsq $-0x800000000000, %r13  # imm = 0xFFFF800000000000
movq (%rax), %rdi
movq %rdi, %rax
andq %r13, %rax
movabsq $-0x2000000000000, %rcx # imm = 0xFFFE000000000000
cmpq %rcx, %rax
jne 0x4472d
callq 0x4f838
movq 0x10(%rax), %rax
movzwl 0x58(%rax), %eax
cmpl %r15d, %eax
jne 0x4472d
movabsq $-0x7800000000000, %rcx # imm = 0xFFF8800000000000
movq 0x8(%r12), %rax
movq 0x10(%r12), %rdx
movq %rax, %rsi
andq %r13, %rsi
cmpq %rcx, %rsi
jne 0x4471d
movq %rdx, %rax
jmp 0x44725
andq %r13, %rdx
cmpq %rcx, %rdx
jne 0x4472d
movq %rax, (%r14)
movl $0x1, %ebx
movl %ebx, %eax
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/specials.c
// Function: qq_slots
static JanetSlot qq_slots(JanetFopts opts, JanetSlot *slots, int makeop) {
    JanetSlot target = janetc_gettarget(opts);
    janetc_pushslots(opts.compiler, slots);
    janetc_freeslots(opts.compiler, slots);
    janetc_emit_s(opts.compiler, makeop, target, 1);
    return target;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
movq 0x30(%rbp), %rax
movq %rax, 0x20(%rsp)
movaps 0x10(%rbp), %xmm0
movaps 0x20(%rbp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x1c898
movq 0x10(%rbp), %rdi
movq %r15, %rsi
callq 0x1d49c
movq 0x10(%rbp), %rdi
movq %r15, %rsi
callq 0x1d6f5
movq 0x10(%rbp), %rdi
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
movzbl %r14b, %esi
movl $0x1, %edx
callq 0x21e42
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/state.c
// Function: janet_vm_alloc
JanetVM *janet_vm_alloc(void) {
    JanetVM *mem = janet_malloc(sizeof(JanetVM));
    if (NULL == mem) {
        JANET_OUT_OF_MEMORY;
    }
    return mem;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x348, %edi            # imm = 0x348
callq 0x12770
testq %rax, %rax
je 0x44f7a
popq %rbp
retq
callq 0x14010
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/string.c
// Function: janet_string_begin
uint8_t *janet_string_begin(int32_t length) {
    JanetStringHead *head = janet_gcalloc(JANET_MEMORY_STRING, sizeof(JanetStringHead) + (size_t) length + 1);
    head->length = length;
    uint8_t *data = (uint8_t *)head->data;
    data[length] = 0;
    return data;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movslq %edi, %rbx
leaq 0x19(%rbx), %rsi
movl $0x1, %edi
callq 0x2bb18
movl %ebx, 0x10(%rax)
movb $0x0, 0x18(%rax,%rbx)
addq $0x18, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/string.c
// Function: janet_string
const uint8_t *janet_string(const uint8_t *buf, int32_t len) {
    JanetStringHead *head = janet_gcalloc(JANET_MEMORY_STRING, sizeof(JanetStringHead) + (size_t) len + 1);
    head->length = len;
    head->hash = janet_string_calchash(buf, len);
    uint8_t *data = (uint8_t *)head->data;
    safe_memcpy(data, buf, len);
    data[len] = 0;
    return data;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movslq %esi, %r14
leaq 0x19(%r14), %rsi
movl $0x1, %edi
callq 0x2bb18
movq %rax, %r15
movl %r14d, 0x10(%rax)
movq %rbx, %rdi
movl %r14d, %esi
callq 0x48e5d
movl %eax, 0x14(%r15)
leaq 0x18(%r15), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x49017
movb $0x0, 0x18(%r15,%r14)
movq %r12, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/string.c
// Function: janet_string_compare
int janet_string_compare(const uint8_t *lhs, const uint8_t *rhs) {
    int32_t xlen = janet_string_length(lhs);
    int32_t ylen = janet_string_length(rhs);
    int32_t len = xlen > ylen ? ylen : xlen;
    int res = memcmp(lhs, rhs, len);
    if (res) return res > 0 ? 1 : -1;
    if (xlen == ylen) return 0;
    return xlen < ylen ? -1 : 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl -0x8(%rdi), %ebx
movl -0x8(%rsi), %r14d
cmpl %r14d, %ebx
movl %r14d, %eax
cmovll %ebx, %eax
movslq %eax, %rdx
callq 0x12530
testl %eax, %eax
je 0x45115
setg %al
jmp 0x4511f
xorl %eax, %eax
cmpl %r14d, %ebx
je 0x45129
setge %al
movzbl %al, %eax
leal -0x1(,%rax,2), %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/string.c
// Function: janet_string_equalconst
int janet_string_equalconst(const uint8_t *lhs, const uint8_t *rhs, int32_t rlen, int32_t rhash) {
    int32_t lhash = janet_string_hash(lhs);
    int32_t llen = janet_string_length(lhs);
    if (lhash != rhash || llen != rlen)
        return 0;
    if (lhs == rhs)
        return 1;
    return !memcmp(lhs, rhs, rlen);
}

// Assembly:
xorl %eax, %eax
cmpl %ecx, -0x4(%rdi)
jne 0x45155
cmpl %edx, -0x8(%rdi)
jne 0x45155
cmpq %rsi, %rdi
je 0x45156
pushq %rbp
movq %rsp, %rbp
movslq %edx, %rdx
callq 0x127d0
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
sete %al
popq %rbp
retq
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/string.c
// Function: findsetup
static void findsetup(int32_t argc, Janet *argv, struct kmp_state *s, int32_t extra) {
    janet_arity(argc, 2, 3 + extra);
    JanetByteView pat = janet_getbytes(argv, 0);
    JanetByteView text = janet_getbytes(argv, 1);
    int32_t start = 0;
    if (argc >= 3) {
        start = janet_getinteger(argv, 2);
        if (start < 0) janet_panic("expected non-negative start index");
    }
    kmp_init(s, text.bytes, text.len, pat.bytes, pat.len);
    s->i = start;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, -0x40(%rbp)
movq %rsi, %r13
movl %edi, %ebx
leal 0x3(%rcx), %edx
movl $0x2, %esi
callq 0x192cc
xorl %r14d, %r14d
movq %r13, %rdi
xorl %esi, %esi
callq 0x199cf
movq %rax, -0x38(%rbp)
movl %edx, -0x2c(%rbp)
movq %r13, %rdi
movl $0x1, %esi
callq 0x199cf
movq %rax, %r15
movl %edx, %r12d
cmpl $0x3, %ebx
jl 0x4575b
movq %r13, %rdi
movl $0x2, %esi
callq 0x19b1d
movl %eax, %r14d
testl %eax, %eax
js 0x45787
movq -0x40(%rbp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %r8d
callq 0x4634d
movl %r14d, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2478e(%rip), %rdi     # 0x69f1c
callq 0x19263
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/string.c
// Function: kmp_next
static int32_t kmp_next(struct kmp_state *state) {
    int32_t i = state->i;
    int32_t j = state->j;
    int32_t textlen = state->textlen;
    int32_t patlen = state->patlen;
    const uint8_t *text = state->text;
    const uint8_t *pat = state->pat;
    int32_t *lookup = state->lookup;
    while (i < textlen) {
        if (text[i] == pat[j]) {
            if (j == patlen - 1) {
                state->i = i + 1;
                state->j = lookup[j];
                return i - j;
            } else {
                i++;
                j++;
            }
        } else {
            if (j > 0) {
                j = lookup[j - 1];
            } else {
                i++;
            }
        }
    }
    return -1;
}

// Assembly:
movl (%rdi), %r9d
movl 0x8(%rdi), %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %ecx, %r9d
jge 0x4580b
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x18(%rdi), %r8
movq 0x20(%rdi), %r10
movq 0x10(%rdi), %rdx
movl 0x4(%rdi), %esi
movl 0xc(%rdi), %r11d
decl %r11d
movslq %r9d, %rbx
movb (%r8,%rbx), %bl
movslq %esi, %r14
cmpb (%r10,%r14), %bl
jne 0x457dd
leal 0x1(%r9), %ebx
cmpl %r11d, %esi
je 0x457f8
incl %esi
jmp 0x457ef
testl %esi, %esi
jle 0x457e9
movl %esi, %esi
movl -0x4(%rdx,%rsi,4), %esi
jmp 0x457ec
incl %r9d
movl %r9d, %ebx
movl %ebx, %r9d
cmpl %ecx, %ebx
jl 0x457c0
jmp 0x45807
movl %ebx, (%rdi)
movl (%rdx,%r14,4), %eax
movl %eax, 0x4(%rdi)
subl %esi, %r9d
movl %r9d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/string.c
// Function: replacesetup
static void replacesetup(int32_t argc, Janet *argv, struct replace_state *s) {
    janet_arity(argc, 3, 4);
    JanetByteView pat = janet_getbytes(argv, 0);
    Janet subst = argv[1];
    JanetByteView text = janet_getbytes(argv, 2);
    int32_t start = 0;
    if (argc == 4) {
        start = janet_getinteger(argv, 3);
        if (start < 0) janet_panic("expected non-negative start index");
    }
    kmp_init(&s->kmp, text.bytes, text.len, pat.bytes, pat.len);
    s->kmp.i = start;
    s->subst = subst;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r13
movl %edi, %r15d
movl $0x3, %esi
movl $0x4, %edx
callq 0x192cc
xorl %r14d, %r14d
movq %r13, %rdi
xorl %esi, %esi
callq 0x199cf
movq %rax, -0x38(%rbp)
movl %edx, -0x2c(%rbp)
movq 0x8(%r13), %rax
movq %rax, -0x40(%rbp)
movq %r13, %rdi
movl $0x2, %esi
callq 0x199cf
movl %edx, %r12d
cmpl $0x4, %r15d
jne 0x45afc
movq %r13, %rdi
movl $0x3, %esi
movq %rax, %r15
callq 0x19b1d
movl %eax, %r14d
movq %r15, %rax
testl %r14d, %r14d
js 0x45b2c
movq %rbx, %rdi
movq %rax, %rsi
movl %r12d, %edx
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %r8d
callq 0x4634d
movl %r14d, (%rbx)
movq -0x40(%rbp), %rax
movq %rax, 0x28(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x243e9(%rip), %rdi     # 0x69f1c
callq 0x19263
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/string.c
// Function: trim_help_args
static void trim_help_args(int32_t argc, Janet *argv, JanetByteView *str, JanetByteView *set) {
    janet_arity(argc, 1, 2);
    *str = janet_getbytes(argv, 0);
    if (argc >= 2) {
        *set = janet_getbytes(argv, 1);
    } else {
        set->bytes = (const uint8_t *)(" \t\r\n\v\f");
        set->len = 6;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r14
movl %edi, %r12d
movl $0x1, %esi
movl $0x2, %edx
callq 0x192cc
movq %r14, %rdi
xorl %esi, %esi
callq 0x199cf
movq %rax, (%r15)
movl %edx, 0x8(%r15)
cmpl $0x2, %r12d
jl 0x46187
movq %r14, %rdi
movl $0x1, %esi
callq 0x199cf
jmp 0x46193
movl $0x6, %edx
leaq 0x23dc6(%rip), %rax     # 0x69f59
movq %rax, (%rbx)
movl %edx, 0x8(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/string.c
// Function: trim_help_leftedge
static int32_t trim_help_leftedge(JanetByteView str, JanetByteView set) {
    for (int32_t i = 0; i < str.len; i++)
        if (!trim_help_checkset(set, str.bytes[i]))
            return i;
    return str.len;
}

// Assembly:
movl %esi, %eax
testl %esi, %esi
jle 0x46201
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testl %ecx, %ecx
setg %r8b
movl %ecx, %r9d
movl %eax, %r10d
xorl %esi, %esi
movl %r8d, %r11d
testl %ecx, %ecx
jle 0x461ec
movb (%rdi,%rsi), %r11b
cmpb %r11b, (%rdx)
je 0x461f1
movl $0x1, %r14d
movq %r14, %rbx
cmpq %r14, %r9
je 0x461e5
leaq 0x1(%rbx), %r14
cmpb %r11b, (%rdx,%rbx)
jne 0x461d3
cmpq %r9, %rbx
setb %r11b
testb %r11b, %r11b
je 0x461fb
incq %rsi
cmpq %r10, %rsi
jne 0x461bd
movl %eax, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x46203
xorl %esi, %esi
cmpl %eax, %esi
cmovll %esi, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/string.c
// Function: kmp_init
static void kmp_init(
    struct kmp_state *s,
    const uint8_t *text, int32_t textlen,
    const uint8_t *pat, int32_t patlen) {
    if (patlen == 0) {
        janet_panic("expected non-empty pattern");
    }
    int32_t *lookup = janet_calloc(patlen, sizeof(int32_t));
    if (!lookup) {
        JANET_OUT_OF_MEMORY;
    }
    s->lookup = lookup;
    s->i = 0;
    s->j = 0;
    s->text = text;
    s->pat = pat;
    s->textlen = textlen;
    s->patlen = patlen;
    /* Init state machine */
    {
        int32_t i, j;
        for (i = 1, j = 0; i < patlen; i++) {
            while (j && pat[j] != pat[i]) j = lookup[j - 1];
            if (pat[j] == pat[i]) j++;
            lookup[i] = j;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %r8d, %r8d
je 0x46403
movl %r8d, %r14d
movq %rcx, %rbx
movl %edx, %r15d
movq %rsi, %r13
movq %rdi, %r12
movslq %r8d, %rdi
movl $0x4, %esi
callq 0x125a0
testq %rax, %rax
je 0x4640f
movq %rax, 0x10(%r12)
movq $0x0, (%r12)
movq %r13, 0x18(%r12)
movq %rbx, 0x20(%r12)
movl %r15d, 0x8(%r12)
movl %r14d, 0xc(%r12)
cmpl $0x2, %r14d
jl 0x463f4
movl %r14d, %ecx
xorl %esi, %esi
movl $0x1, %edx
testl %esi, %esi
je 0x463d4
movb (%rbx,%rdx), %dil
movslq %esi, %r8
cmpb %dil, (%rbx,%r8)
je 0x463d4
movl -0x4(%rax,%r8,4), %esi
testl %esi, %esi
jne 0x463c2
movslq %esi, %rsi
movb (%rbx,%rsi), %dil
xorl %r8d, %r8d
cmpb (%rbx,%rdx), %dil
sete %r8b
addl %r8d, %esi
movl %esi, (%rax,%rdx,4)
incq %rdx
cmpq %rcx, %rdx
jne 0x463ba
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x23b34(%rip), %rdi     # 0x69f3e
callq 0x19263
callq 0x1403e
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/strtod.c
// Function: bignat_muladd
static void bignat_muladd(struct BigNat *mant, uint32_t factor, uint32_t term) {
    int32_t i;
    uint64_t carry = ((uint64_t) mant->first_digit) * factor + term;
    mant->first_digit = carry % BIGNAT_BASE;
    carry /= BIGNAT_BASE;
    for (i = 0; i < mant->n; i++) {
        carry += ((uint64_t) mant->digits[i]) * factor;
        mant->digits[i] = carry % BIGNAT_BASE;
        carry /= BIGNAT_BASE;
    }
    if (carry) bignat_append(mant, (uint32_t) carry);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl (%rdi), %r8d
movl %esi, %eax
imulq %rax, %r8
movl %edx, %ecx
addq %r8, %rcx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movl %edx, (%rdi)
movq %rcx, %rbx
shrq $0x1f, %rbx
cmpl $0x0, 0x4(%rdi)
jle 0x46a6e
movq 0x10(%rdi), %rdx
xorl %esi, %esi
movl (%rdx,%rsi,4), %ecx
imulq %rax, %rcx
addq %rbx, %rcx
movl %ecx, %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
movl %r8d, (%rdx,%rsi,4)
incq %rsi
movq %rcx, %rbx
shrq $0x1f, %rbx
movslq 0x4(%rdi), %r8
cmpq %r8, %rsi
jl 0x46a43
shrq $0x1f, %rcx
je 0x46a80
movl $0x1, %esi
callq 0x46e0f
movl %ebx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/janet-lang[P]janet/src/core/strtod.c
// Function: janet_scan_int64
int janet_scan_int64(const uint8_t *str, int32_t len, int64_t *out) {
    int neg;
    uint64_t bi;
    if (scan_uint64(str, len, &bi, &neg)) {
        if (neg && bi <= ((UINT64_MAX / 2) + 1)) {
            if (bi > INT64_MAX) {
                *out = INT64_MIN;
            } else {
                *out = -((int64_t) bi);
            }
            return 1;
        }
        if (!neg && bi <= INT64_MAX) {
            *out = (int64_t) bi;
            return 1;
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
leaq -0x18(%rbp), %rdx
leaq -0xc(%rbp), %rcx
callq 0x46b18
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
je 0x46b11
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
movl -0xc(%rbp), %esi
testl %esi, %esi
setne %dil
movq -0x18(%rbp), %rcx
leaq 0x1(%rdx), %r8
cmpq %r8, %rcx
setb %r8b
andb %dil, %r8b
cmpb $0x1, %r8b
jne 0x46af4
movq %rcx, %rax
negq %rax
testq %rcx, %rcx
cmovsq %rdx, %rax
movq %rax, %rcx
jmp 0x46b09
testl %esi, %esi
sete %dl
testq %rcx, %rcx
setns %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x46b11
movq %rcx, (%rbx)
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq