LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_lt
static int rproc_lt(runt_vm *vm, runt_ptr p)
{
    runt_stacklet *s;
    runt_float v1, v2;

    s = runt_pop(vm);
    v2 = s->f;
    s = runt_pop(vm);
    v1 = s->f;
    s = runt_push(vm);

    if(v1 < v2) s->f = 1.0;
    else s->f = 0.0;

    return RUNT_OK;
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
callq 0x1e92
movss 0x20(%rax), %xmm0
movss %xmm0, 0xc(%rsp)
movq %rbx, %rdi
callq 0x1e92
movss 0x20(%rax), %xmm0
movaps %xmm0, 0x10(%rsp)
movq %rbx, %rdi
callq 0x1e23
movaps 0x10(%rsp), %xmm1
cmpltss 0xc(%rsp), %xmm1
movss 0x221d(%rip), %xmm0     # 0x7124
andps %xmm1, %xmm0
movss %xmm0, 0x20(%rax)
movl $0x1, %eax
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_gt
static int rproc_gt(runt_vm *vm, runt_ptr p)
{
    runt_stacklet *s;
    runt_float v1, v2;

    s = runt_pop(vm);
    v2 = s->f;
    s = runt_pop(vm);
    v1 = s->f;
    s = runt_push(vm);

    if(v1 > v2) s->f = 1.0;
    else s->f = 0.0;

    return RUNT_OK;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x1e92
movss 0x20(%rax), %xmm0
movaps %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x1e92
movaps (%rsp), %xmm0
cmpltss 0x20(%rax), %xmm0
movaps %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x1e23
movss 0x21ce(%rip), %xmm0     # 0x7124
andps (%rsp), %xmm0
movss %xmm0, 0x20(%rax)
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_eq
static int rproc_eq(runt_vm *vm, runt_ptr p)
{
    runt_stacklet *s;
    runt_float v1, v2;

    s = runt_pop(vm);
    v2 = s->f;
    s = runt_pop(vm);
    v1 = s->f;
    s = runt_push(vm);

    if(v1 == v2) s->f = 1.0;
    else s->f = 0.0;

    return RUNT_OK;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x1e92
movss 0x20(%rax), %xmm0
movaps %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x1e92
movaps (%rsp), %xmm0
cmpeqss 0x20(%rax), %xmm0
movaps %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x1e23
movss 0x217e(%rip), %xmm0     # 0x7124
andps (%rsp), %xmm0
movss %xmm0, 0x20(%rax)
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_neq
static int rproc_neq(runt_vm *vm, runt_ptr p)
{
    runt_stacklet *s;
    runt_float v1, v2;

    s = runt_pop(vm);
    v2 = s->f;
    s = runt_pop(vm);
    v1 = s->f;
    s = runt_push(vm);

    if(v1 != v2) s->f = 1.0;
    else s->f = 0.0;

    return RUNT_OK;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x1e92
movss 0x20(%rax), %xmm0
movaps %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x1e92
movaps (%rsp), %xmm0
cmpneqss 0x20(%rax), %xmm0
movaps %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x1e23
movss 0x212e(%rip), %xmm0     # 0x7124
andps (%rsp), %xmm0
movss %xmm0, 0x20(%rax)
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: load_control
static runt_int load_control(runt_vm *vm)
{
    runt_keyword_define(vm, "end", 3, rproc_end, NULL);
    runt_keyword_define_with_copy(vm, "call", 4,
            rproc_call, rproc_call_copy, NULL);
    runt_keyword_define_with_copy(vm, "goto", 4,
            rproc_goto, rproc_call_copy, NULL);
    runt_keyword_define_with_copy(vm, "ex", 2,
            rproc_ex, rproc_call_copy, NULL);
    return runt_is_alive(vm);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2498(%rip), %rsi      # 0x74b0
leaq 0xee1(%rip), %rcx       # 0x5f00
movl $0x3, %edx
xorl %r8d, %r8d
callq 0x1b1d
leaq 0x2481(%rip), %rsi      # 0x74b4
leaq 0xedd(%rip), %rcx       # 0x5f17
leaq 0x355(%rip), %r14       # 0x5396
movq %rbx, %rdi
movl $0x4, %edx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x195f
leaq 0x245e(%rip), %rsi      # 0x74b9
leaq 0xf9a(%rip), %rcx       # 0x5ffc
movq %rbx, %rdi
movl $0x4, %edx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x195f
leaq 0x2442(%rip), %rsi      # 0x74be
leaq 0xfe4(%rip), %rcx       # 0x6067
movq %rbx, %rdi
movl $0x2, %edx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x195f
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x35b0
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_decrn
static int rproc_decrn(runt_vm *vm, runt_ptr p)
{
    runt_int rc;
    runt_int pos;
    runt_stacklet *s;
    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    pos = s->f;
    rc = runt_ppeakn(vm, &s, pos);
    RUNT_ERROR_CHECK(rc);
    s->f -= 1;
    return RUNT_OK;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq %rsp, %rsi
callq 0x2201
xorl %ebx, %ebx
testl %eax, %eax
je 0x511a
movq %rsp, %rsi
movq (%rsi), %rax
cvttss2si 0x20(%rax), %edx
movq %r14, %rdi
callq 0x216f
testl %eax, %eax
je 0x511a
movq (%rsp), %rax
movss 0x20(%rax), %xmm0
addss 0x224c(%rip), %xmm0     # 0x735c
movss %xmm0, 0x20(%rax)
movl $0x1, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_rep
static int rproc_rep(runt_vm *vm, runt_ptr p)
{
    runt_int rc;
    runt_stacklet *s;
    runt_uint id;
    runt_uint i, reps;
    runt_cell *cell;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    id = s->f;

    if(id > 0) {
        cell = NULL;
    } else {
        cell = runt_to_cptr(s->p);
    }

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    reps = s->f;

    if(cell == NULL) {
        for(i = 0; i < reps; i++) {
            rc = runt_cell_id_exec(vm, id);
            RUNT_ERROR_CHECK(rc);
        }
    } else {
        for(i = 0; i < reps; i++) {
            runt_cell_exec(vm, cell);
            RUNT_ERROR_CHECK(rc);
        }
    }

    return RUNT_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %r14
leaq 0x18(%rsp), %rsi
callq 0x2201
testl %eax, %eax
je 0x51c9
movq 0x18(%rsp), %rax
cvttss2si 0x20(%rax), %r15
xorl %ebx, %ebx
testl %r15d, %r15d
je 0x51cd
xorl %r12d, %r12d
jmp 0x51e6
xorl %ebx, %ebx
jmp 0x5241
movq 0x18(%rax), %rcx
movq %rcx, 0x10(%rsp)
movups 0x8(%rax), %xmm0
movups %xmm0, (%rsp)
callq 0x3676
movq %rax, %r12
leaq 0x18(%rsp), %rsi
movq %r14, %rdi
callq 0x2201
testl %eax, %eax
je 0x5241
movq 0x18(%rsp), %rax
cvttss2si 0x20(%rax), %r13
testq %r12, %r12
je 0x5223
movl $0x1, %ebx
testl %r13d, %r13d
je 0x5241
movq %r14, %rdi
movq %r12, %rsi
callq 0x1ec8
decl %r13d
jne 0x5211
jmp 0x5241
testl %r13d, %r13d
je 0x523c
movq %r14, %rdi
movl %r15d, %esi
callq 0x1f77
testl %eax, %eax
je 0x5241
decl %r13d
jne 0x5228
movl $0x1, %ebx
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_loop
static int rproc_loop(runt_vm *vm, runt_ptr p)
{
    runt_stacklet *s;
    runt_int rc;
    runt_uint level;
    runt_uint ppos;
    runt_uint pos;
    runt_int pstate;
    runt_uint i;
    runt_uint reps;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    reps = s->f;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);

    pstate = runt_get_state(vm, RUNT_MODE_END);
    runt_set_state(vm, RUNT_MODE_END, RUNT_OFF);
    ppos = vm->pos;
    pos = s->f;

    vm->level++;
    level = vm->level;
    for(i = 0; i < reps; i++) {
        vm->pos = pos + 1;
        runt_set_state(vm, RUNT_MODE_END, RUNT_OFF);
        while(runt_get_state(vm, RUNT_MODE_END) == RUNT_OFF &&
                vm->level == level) {
            rc = runt_cell_call(vm, &vm->cell_pool.cells[vm->pos - 1]);
            RUNT_ERROR_CHECK(rc);
            vm->pos++;
        }
    }
    vm->level--;
    vm->pos = ppos;
    runt_set_state(vm, RUNT_MODE_END, pstate);

    return RUNT_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %rsi
callq 0x2201
xorl %ebp, %ebp
testl %eax, %eax
je 0x5385
leaq 0x10(%rsp), %rsi
movq (%rsi), %rax
cvttss2si 0x20(%rax), %r14
movq %rbx, %rdi
callq 0x2201
testl %eax, %eax
je 0x5385
movq %rbx, %rdi
movl $0x40, %esi
callq 0x1caa
movl %eax, %ebp
movq %rbx, %rdi
movl $0x40, %esi
movl $0x4, %edx
callq 0x14e5
movl 0x11b8(%rbx), %eax
movl 0x11bc(%rbx), %r15d
movq 0x10(%rsp), %rcx
movss 0x20(%rcx), %xmm0
leal 0x1(%rax), %r12d
movl %r12d, 0x11b8(%rbx)
testl %r14d, %r14d
je 0x5360
movl %ebp, 0xc(%rsp)
cvttss2si %xmm0, %r13
incl %r13d
xorl %ebp, %ebp
movl %r13d, 0x11bc(%rbx)
movq %rbx, %rdi
movl $0x40, %esi
movl $0x4, %edx
callq 0x14e5
movq %rbx, %rdi
movl $0x40, %esi
callq 0x1caa
cmpl $0x4, %eax
jne 0x534d
cmpl %r12d, 0x11b8(%rbx)
jne 0x534d
movl 0x11bc(%rbx), %eax
decl %eax
leaq (%rax,%rax,4), %rsi
shlq $0x3, %rsi
addq 0x510(%rbx), %rsi
movq %rbx, %rdi
callq 0x1dbb
testl %eax, %eax
je 0x5383
incl 0x11bc(%rbx)
jmp 0x5307
incl %ebp
cmpl %r14d, %ebp
jne 0x52ee
movl 0x11b8(%rbx), %eax
decl %eax
movl 0xc(%rsp), %ebp
movl %eax, 0x11b8(%rbx)
movl %r15d, 0x11bc(%rbx)
movq %rbx, %rdi
movl $0x40, %esi
movl %ebp, %edx
callq 0x14e5
movl $0x1, %ebp
jmp 0x5385
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_set
static int rproc_set(runt_vm *vm, runt_ptr p)
{
    runt_stacklet *s;
    runt_float f;
    runt_uint id;
    runt_float *ptr;
    runt_cell *cell;

    s = runt_pop(vm);
    id =s->f;
    s = runt_pop(vm);
    f = s->f;

    runt_cell_pool_get_cell(vm, id, &cell);

    ptr = (runt_float *)vm->cell_pool.cells[id].p.ud;
    *ptr = f;

    return RUNT_OK;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0x1e92
cvttss2si 0x20(%rax), %r14
movq %rbx, %rdi
callq 0x1e92
movss 0x20(%rax), %xmm0
movss %xmm0, 0xc(%rsp)
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl %r14d, %esi
callq 0x2795
movq 0x510(%rbx), %rax
movl %r14d, %ecx
leaq (%rcx,%rcx,4), %rcx
movq 0x10(%rax,%rcx,8), %rax
movss 0xc(%rsp), %xmm0
movss %xmm0, (%rax)
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_ptr
static runt_int rproc_ptr(runt_vm *vm, runt_ptr p)
{
    runt_int rc;
    runt_stacklet *s;

    rc = runt_ppush(vm, &s);
    RUNT_ERROR_CHECK(rc);

    s->p = p;
    s->t = p.type;
    return RUNT_OK;
}

// Assembly:
pushq %rax
movq %rsp, %rsi
callq 0x20de
testl %eax, %eax
je 0x5434
leaq 0x10(%rsp), %rax
movq (%rsp), %rcx
movq 0x10(%rax), %rdx
movq %rdx, 0x18(%rcx)
movups (%rax), %xmm0
movups %xmm0, 0x8(%rcx)
movl (%rax), %eax
movl %eax, (%rcx)
movl $0x1, %eax
jmp 0x5436
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_setptr
static runt_int rproc_setptr(runt_vm *vm, runt_ptr p)
{
    runt_int rc;
    runt_stacklet *s;
    runt_uint id;
    runt_ptr ptr;
    runt_cell *cell;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    id = s->f;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    ptr = s->p;

    rc = runt_cell_pool_get_cell(vm, id + 1, &cell);
    RUNT_ERROR_CHECK(rc);
    cell->p = ptr;

    return RUNT_OK;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r14
leaq 0x10(%rsp), %rsi
callq 0x2201
xorl %ebx, %ebx
testl %eax, %eax
je 0x54be
leaq 0x10(%rsp), %rsi
movq (%rsi), %rax
movss 0x20(%rax), %xmm0
movss %xmm0, 0xc(%rsp)
movq %r14, %rdi
callq 0x2201
testl %eax, %eax
je 0x54be
cvttss2si 0xc(%rsp), %rsi
movq 0x10(%rsp), %rax
movups 0x8(%rax), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x30(%rsp)
incl %esi
leaq 0x18(%rsp), %rdx
movq %r14, %rdi
callq 0x2795
testl %eax, %eax
je 0x54be
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rcx, 0x18(%rax)
movaps 0x20(%rsp), %xmm0
movups %xmm0, 0x8(%rax)
movl $0x1, %ebx
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_clear
static runt_int rproc_clear(runt_vm *vm, runt_ptr p)
{
    runt_cell_pool_clear(vm);
    runt_memory_pool_clear(vm);
    runt_close_plugins(vm);
    runt_dictionary_clear(vm);
    runt_list_init(&vm->plugins);
    vm->loader(vm);
    /* make memory mark so dead cells can be cleared */
    runt_mark_set(vm);
    return RUNT_OK;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x278a
movq %rbx, %rdi
callq 0x2771
movq %rbx, %rdi
callq 0x37b3
movq %rbx, %rdi
callq 0x26e5
leaq 0x11c0(%rbx), %rdi
callq 0x1507
movq %rbx, %rdi
callq *0x1200(%rbx)
movq %rbx, %rdi
callq 0x35c8
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_usage
static int rproc_usage(runt_vm *vm, runt_ptr p)
{
    runt_print(vm, "Cell pool: used %d of %d cells.\n",
            runt_cell_pool_used(vm),
            runt_cell_pool_size(vm));

    runt_print(vm, "Memory pool: used %d of %d bytes.\n",
            runt_memory_pool_used(vm),
            runt_memory_pool_size(vm));

    runt_print(vm, "Dictionary: %d words defined.\n",
            runt_dictionary_size(vm));
    return RUNT_OK;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x2783
movl %eax, %ebp
movq %rbx, %rdi
callq 0x277c
leaq 0x1f98(%rip), %rsi      # 0x74c1
movq %rbx, %rdi
movl %ebp, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0x1cb9
movq %rbx, %rdi
callq 0x276a
movl %eax, %ebp
movq %rbx, %rdi
callq 0x204e
leaq 0x1f92(%rip), %rsi      # 0x74e2
movq %rbx, %rdi
movl %ebp, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0x1cb9
movq %rbx, %rdi
callq 0x2760
leaq 0x1f98(%rip), %rsi      # 0x7505
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x1cb9
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_bias
static runt_int rproc_bias(runt_vm *vm, runt_ptr p)
{
    runt_stacklet *s;
    runt_int bias;
    runt_int rc;
    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    bias = s->f;
    runt_stack_bias(vm, &vm->stack, bias);
    return RUNT_OK;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rsi
callq 0x2201
testl %eax, %eax
je 0x5633
movq 0x8(%rsp), %rax
cvttss2si 0x20(%rax), %edx
movq %rbx, %rdi
movq %rbx, %rsi
callq 0x21d9
movl $0x1, %eax
jmp 0x5635
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_wordlist
static runt_int rproc_wordlist(runt_vm *vm, runt_ptr p)
{
    runt_int w, e;
    runt_entry *entry;
    runt_int nentry = 0;
    runt_dict *dict;
    runt_list *list;
    dict = runt_dictionary_get(vm);

    list = dict->list;
    for(w = 0; w < RUNT_DICT_SIZE; w++) {
        entry = runt_list_top(&list[w]);
        nentry = list[w].size;
        for(e = 0; e < nentry ; e++) {
            runt_print(vm, "%s\n", runt_to_string(entry->p));
            entry = entry->next;
        }
    }

    return RUNT_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0x23cf
movq %rax, %r14
addq $0x8, %r14
leaq 0x1e3d(%rip), %r15      # 0x74ac
xorl %ebp, %ebp
leaq (,%rbp,2), %rax
addq %rbp, %rax
leaq (%r14,%rax,8), %r13
movq %r13, %rdi
callq 0x24dd
movl (%r13), %r13d
testl %r13d, %r13d
jle 0x56c7
movq %rax, %r12
movq 0x20(%r12), %rax
movq %rax, 0x10(%rsp)
movups 0x10(%r12), %xmm0
movups %xmm0, (%rsp)
callq 0x2055
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1cb9
movq 0x40(%r12), %r12
decl %r13d
jne 0x5694
incq %rbp
cmpq $0x80, %rbp
jne 0x5671
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_rand
static runt_int rproc_rand(runt_vm *vm, runt_ptr p)
{
    runt_uint max;
    runt_stacklet *s;
    runt_int rc;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    max = s->f;

    rc = runt_ppush(vm, &s);
    RUNT_ERROR_CHECK(rc);
    s->f = rand() % max;

    return RUNT_OK;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
leaq 0x10(%rsp), %rsi
callq 0x2201
xorl %ebx, %ebx
testl %eax, %eax
je 0x5747
leaq 0x10(%rsp), %rsi
movq (%rsi), %rax
movss 0x20(%rax), %xmm0
movss %xmm0, 0xc(%rsp)
movq %r14, %rdi
callq 0x20de
testl %eax, %eax
je 0x5747
cvttss2si 0xc(%rsp), %rbx
callq 0x1170
xorl %edx, %edx
divl %ebx
xorps %xmm0, %xmm0
cvtsi2ss %rdx, %xmm0
movq 0x10(%rsp), %rax
movss %xmm0, 0x20(%rax)
movl $0x1, %ebx
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_psize
static runt_int rproc_psize(runt_vm *vm, runt_ptr p)
{
    runt_uint id;
    runt_stacklet *s;
    runt_int rc;
    runt_cell *cell;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    id = s->f;

    rc = runt_cell_pool_get_cell(vm, id, &cell);
    RUNT_ERROR_CHECK(rc);

    rc = runt_ppush(vm, &s);
    RUNT_ERROR_CHECK(rc);

    s->f = cell->psize;

    return RUNT_OK;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
leaq 0x8(%rsp), %rsi
callq 0x2201
xorl %ebx, %ebx
testl %eax, %eax
je 0x57e6
movq 0x8(%rsp), %rax
cvttss2si 0x20(%rax), %rsi
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x2795
testl %eax, %eax
je 0x57e6
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x20de
testl %eax, %eax
je 0x57e6
movq 0x10(%rsp), %rax
movl 0x20(%rax), %eax
cvtsi2ss %rax, %xmm0
movq 0x8(%rsp), %rax
movss %xmm0, 0x20(%rax)
movl $0x1, %ebx
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_restore
static runt_int rproc_restore(runt_vm *vm, runt_ptr p)
{
    runt_int rc;
    runt_stacklet *s;
    runt_uint mem;
    runt_uint cell;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    mem = s->f;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    cell = s->f;

    vm->cell_pool.used = cell;
    vm->memory_pool.used = mem;

    runt_cell_undo(vm);
    runt_mark_set(vm);
    return RUNT_OK;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %rsi
callq 0x2201
xorl %ebp, %ebp
testl %eax, %eax
je 0x585b
leaq 0x10(%rsp), %rsi
movq (%rsi), %rax
movss 0x20(%rax), %xmm0
movss %xmm0, 0xc(%rsp)
movq %rbx, %rdi
callq 0x2201
testl %eax, %eax
je 0x585b
movq 0x10(%rsp), %rax
cvttss2si 0x20(%rax), %rax
cvttss2si 0xc(%rsp), %rcx
movl %eax, 0x51c(%rbx)
movl %ecx, 0x534(%rbx)
movq %rbx, %rdi
callq 0x355f
movq %rbx, %rdi
callq 0x35c8
movl $0x1, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_block_begin
static runt_int rproc_block_begin(runt_vm *vm, runt_ptr p)
{
    runt_int rc;
    runt_stacklet *s;
    runt_block *blk;
    blk = (runt_block *)runt_to_cptr(p);
    vm->pos = blk->end;
    rc = runt_ppush(vm, &s);
    RUNT_ERROR_CHECK(rc);
    s->f = blk->start;
    return RUNT_OK;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x40(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x3676
movq %rax, %rbx
movl 0x4(%rax), %eax
movl %eax, 0x11bc(%r14)
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x20de
testl %eax, %eax
je 0x58bf
movl (%rbx), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movq 0x20(%rsp), %rax
movss %xmm0, 0x20(%rax)
movl $0x1, %eax
jmp 0x58c1
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rcopy_block_begin
static runt_int rcopy_block_begin(runt_vm *vm, runt_cell *src, runt_cell *dst)
{
    runt_block *blk;
    runt_malloc(vm, sizeof(runt_block), (void **)&blk);
    blk->start = dst->id;
    blk->end = dst->id;
    dst->p = runt_mk_cptr(vm, blk);
    dst->fun = src->fun;
    return runt_proc_begin(vm, dst);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x8(%rsp), %r12
movl $0x8, %esi
movq %r12, %rdx
callq 0x1d8a
movl 0x24(%rbx), %eax
movq (%r12), %rdx
movl %eax, (%rdx)
movl %eax, 0x4(%rdx)
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x347e
movq 0x10(%r12), %rax
movq %rax, 0x18(%rbx)
movups (%r12), %xmm0
movups %xmm0, 0x8(%rbx)
movq (%r14), %rax
movq %rax, (%rbx)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1dde
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rcopy_block_end
static runt_int rcopy_block_end(runt_vm *vm, runt_cell *src, runt_cell *dst)
{
    runt_int rc;
    runt_stacklet *s;
    runt_cell *cell;
    runt_block *blk;
    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    cell = runt_to_cell(s->p);
    blk = (runt_block *) runt_to_cptr(cell->p);
    blk->end = dst->id - 1;
    runt_cell_undo(vm);
    cell->psize--;
    return RUNT_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %rsi
callq 0x2201
testl %eax, %eax
je 0x59a8
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rcx
movq %rcx, 0x10(%rsp)
movups 0x8(%rax), %xmm0
movups %xmm0, (%rsp)
callq 0x1d6e
movq %rax, %r15
movq 0x18(%rax), %rax
movq %rax, 0x10(%rsp)
movups 0x8(%r15), %xmm0
movups %xmm0, (%rsp)
callq 0x3676
movl 0x24(%r14), %ecx
decl %ecx
movl %ecx, 0x4(%rax)
movq %rbx, %rdi
callq 0x355f
decl 0x20(%r15)
movl $0x1, %eax
jmp 0x59aa
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_argv
static runt_int rproc_argv(runt_vm *vm, runt_ptr p)
{
    runt_int rc;
    runt_stacklet *s;
    runt_int pos;
    const char *str;
    runt_uint len;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    pos = s->f;

    if(pos <= 0 || pos >= vm->argc) {
        runt_print(vm, "argv: invalid position %d\n", pos);
        return RUNT_NOT_OK;
    }

    rc = runt_ppush(vm, &s);
    str = vm->argv[pos];
    len = strlen(str);
    s->p = runt_mk_string(vm, str, len);

    return RUNT_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq %rsp, %rsi
callq 0x2201
testl %eax, %eax
je 0x5a56
movq (%rsp), %rax
cvttss2si 0x20(%rax), %ebp
testl %ebp, %ebp
jle 0x5a3e
cmpl %ebp, 0x11e8(%rbx)
jle 0x5a3e
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x20de
movq 0x11e0(%rbx), %rax
movl %ebp, %ecx
movq (%rax,%rcx,8), %r15
movq %r15, %rdi
callq 0x1070
movq (%r14), %r12
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movl %eax, %ecx
callq 0x2065
movq 0x10(%r14), %rax
movq %rax, 0x18(%r12)
movups (%r14), %xmm0
movups %xmm0, 0x8(%r12)
movl $0x1, %r14d
jmp 0x5a59
leaq 0x1adf(%rip), %rsi      # 0x7524
xorl %r14d, %r14d
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x1cb9
jmp 0x5a59
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_dnew
static runt_int rproc_dnew(runt_vm *vm, runt_ptr p)
{
    runt_uint ptr;
    runt_int rc;
    runt_stacklet *s;
    runt_dict *dict;

    ptr = runt_dictionary_new(vm, &dict);
    if(ptr == 0) return RUNT_NOT_OK;


    /* load minimal set */
    runt_dictionary_set(vm, dict);
    runt_load_minimal(vm);
    /* load dictionary routines to swap out */
    runt_keyword_define(vm, "basic", 5, rproc_basic, NULL);
    runt_keyword_define(vm, "dnew", 4, rproc_dnew, NULL);
    runt_keyword_define(vm, "dset", 4, rproc_dset, NULL);
    runt_keyword_define(vm, "dswap", 5, rproc_dswap, NULL);
    load_control(vm);
    runt_dictionary_swap(vm);

    /* preserve memory */
    runt_mark_set(vm);

    rc = runt_ppush(vm, &s);
    RUNT_ERROR_CHECK(rc);

    s->f = ptr;

    return RUNT_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
movq %rsp, %rsi
callq 0x389d
testl %eax, %eax
je 0x5b8f
movl %eax, %ebx
movq (%rsp), %rsi
movq %r14, %rdi
callq 0x26a9
movq %r14, %rdi
callq 0x16ba
leaq 0x1a66(%rip), %rsi      # 0x753f
leaq 0x5e6(%rip), %rcx       # 0x60c6
xorl %r15d, %r15d
movq %r14, %rdi
movl $0x5, %edx
xorl %r8d, %r8d
callq 0x1b1d
leaq 0x1904(%rip), %rsi      # 0x73fe
leaq -0x61(%rip), %rcx       # 0x5aa0
movq %r14, %rdi
movl $0x4, %edx
xorl %r8d, %r8d
callq 0x1b1d
leaq 0x18eb(%rip), %rsi      # 0x7403
leaq 0x80(%rip), %rcx        # 0x5b9f
movq %r14, %rdi
movl $0x4, %edx
xorl %r8d, %r8d
callq 0x1b1d
leaq 0x18d2(%rip), %rsi      # 0x7408
leaq 0xc3(%rip), %rcx        # 0x5c00
movq %r14, %rdi
movl $0x5, %edx
xorl %r8d, %r8d
callq 0x1b1d
movq %r14, %rdi
callq 0x500a
movq %r14, %rdi
callq 0x3880
movq %r14, %rdi
callq 0x35c8
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x20de
testl %eax, %eax
je 0x5b92
movl %ebx, %eax
cvtsi2ss %rax, %xmm0
movq 0x8(%rsp), %rax
movss %xmm0, 0x20(%rax)
movl $0x1, %r15d
jmp 0x5b92
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_dset
static runt_int rproc_dset(runt_vm *vm, runt_ptr p)
{
    runt_uint ptr;
    runt_int rc;
    runt_stacklet *s;
    runt_dict *dict;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    ptr = s->f;

    if(ptr == 0) {
        dict = &vm->idict;
    } else {
        runt_memory_pool_get(vm, ptr, (void **)&dict);
    }

    runt_dictionary_set(vm, dict);

    return RUNT_OK;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %rsi
callq 0x2201
testl %eax, %eax
je 0x5bdb
movq 0x10(%rsp), %rax
cvttss2si 0x20(%rax), %rsi
testl %esi, %esi
je 0x5bdf
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x2011
movq (%r14), %rsi
jmp 0x5beb
xorl %eax, %eax
jmp 0x5bf8
leaq 0x548(%rbx), %rsi
movq %rsi, 0x8(%rsp)
movq %rbx, %rdi
callq 0x26a9
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_dtor
static int rproc_dtor(runt_vm *vm, runt_ptr p)
{
    runt_stacklet *s;
    runt_int rc;
    runt_uint pos;
    runt_cell *cell;


    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    pos = s->f;

    if(pos > 0) {
        runt_cell_pool_get_cell(vm, pos, &cell);
    } else {
        cell = runt_to_cptr(s->p);
    }

    runt_cell_destructor(vm, cell);
    runt_mark_set(vm);
    return RUNT_OK;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x20(%rsp), %rsi
callq 0x2201
testl %eax, %eax
je 0x5c49
movq 0x20(%rsp), %rax
cvttss2si 0x20(%rax), %rsi
testl %esi, %esi
je 0x5c4d
leaq 0x18(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x2795
movq (%r14), %rsi
jmp 0x5c6b
xorl %eax, %eax
jmp 0x5c80
movq 0x18(%rax), %rcx
movq %rcx, 0x10(%rsp)
movups 0x8(%rax), %xmm0
movups %xmm0, (%rsp)
callq 0x3676
movq %rax, %rsi
movq %rax, 0x18(%rsp)
movq %rbx, %rdi
callq 0x3aeb
movq %rbx, %rdi
callq 0x35c8
movl $0x1, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_regset
static int rproc_regset(runt_vm *vm, runt_ptr p)
{
    runt_int rc;
    runt_stacklet *s;
    runt_int r;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    r = s->f;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);

    rc = runt_register_set(vm, r, s);
    RUNT_ERROR_CHECK(rc);

    return RUNT_OK;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %rsi
callq 0x2201
xorl %ebp, %ebp
testl %eax, %eax
je 0x5cf7
leaq 0x10(%rsp), %rsi
movq (%rsi), %rax
movss 0x20(%rax), %xmm0
movss %xmm0, 0xc(%rsp)
movq %rbx, %rdi
callq 0x2201
testl %eax, %eax
je 0x5cf7
cvttss2si 0xc(%rsp), %esi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x3ec5
xorl %ebp, %ebp
testl %eax, %eax
setne %bpl
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_regget
static int rproc_regget(runt_vm *vm, runt_ptr p)
{
    runt_int rc;
    runt_stacklet *s;
    runt_stacklet *out;
    runt_int r;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    r = s->f;

    rc = runt_register_get(vm, r, &s);
    RUNT_ERROR_CHECK(rc);

    rc = runt_ppush(vm, &out);
    RUNT_ERROR_CHECK(rc);

    *out = *s;

    return RUNT_OK;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
leaq 0x8(%rsp), %rsi
callq 0x2201
xorl %ebx, %ebx
testl %eax, %eax
je 0x5d69
leaq 0x8(%rsp), %rdx
movq (%rdx), %rax
cvttss2si 0x20(%rax), %esi
movq %r14, %rdi
callq 0x3ea5
testl %eax, %eax
je 0x5d69
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x20de
testl %eax, %eax
je 0x5d69
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rcx
movq 0x20(%rcx), %rdx
movq %rdx, 0x20(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
movl $0x1, %ebx
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_anon
static int rproc_anon(runt_vm *vm, runt_ptr p)
{
    runt_int rc;
    runt_stacklet *s;

    rc = RUNT_OK;
    if(vm->anon == NULL) rc = RUNT_NOT_OK;
    else if(vm->anon->cell->id > runt_cell_pool_used(vm)) rc = RUNT_NOT_OK;

    if(rc != RUNT_OK) {
        runt_print(vm, "The anonymous function position is undefined\n");
        return RUNT_NOT_OK;
    }

    rc = runt_ppush(vm, &s);
    RUNT_ERROR_CHECK(rc);

    s->f = vm->anon->cell->id;
    return RUNT_OK;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x14a8(%rdi), %rax
testq %rax, %rax
je 0x5d97
movq (%rax), %rax
movl 0x24(%rax), %ebp
movq %rbx, %rdi
callq 0x2783
cmpl %eax, %ebp
jbe 0x5dac
leaq 0x17a7(%rip), %rsi      # 0x7545
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1cb9
jmp 0x5ddf
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x20de
testl %eax, %eax
je 0x5ddd
movq 0x14a8(%rbx), %rax
movq (%rax), %rax
movl 0x24(%rax), %eax
cvtsi2ss %rax, %xmm0
movq (%rsp), %rax
movss %xmm0, 0x20(%rax)
movl $0x1, %ebp
jmp 0x5ddf
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: loader
static int loader(
    runt_vm *vm,
    runt_int pstate,
    const char *fname,
    runt_stacklet *s,
    int (*fn)(runt_vm *, const char*))
{
    runt_int rc;
    vm->memory_pool.used = s->p.pos;
    runt_set_state(vm, RUNT_MODE_INTERACTIVE, RUNT_OFF);
    rc = fn(vm, fname);
    runt_set_state(vm, RUNT_MODE_INTERACTIVE, pstate);
    RUNT_ERROR_CHECK(rc);
    runt_mark_set(vm);
    return RUNT_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
movl %ecx, 0x534(%rdi)
movl $0x2, %esi
movl $0x4, %edx
callq 0x14e5
movq %rbx, %rdi
movq %r15, %rsi
callq *%r14
movl %eax, %r14d
movq %rbx, %rdi
movl $0x2, %esi
movl %ebp, %edx
callq 0x14e5
testl %r14d, %r14d
je 0x5e3e
movq %rbx, %rdi
callq 0x35c8
movl $0x1, %eax
jmp 0x5e40
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: load_dictionary
static runt_int load_dictionary(runt_vm *vm, const char *filename)
{
    FILE *fp;
    char *line = NULL;
    size_t len = 0;
    ssize_t read;

    fp = fopen(filename, "r");

    if(fp == NULL) {
        runt_print(vm, "Could not open file %s\n", filename);
        return RUNT_NOT_OK;
    }

    while((read = runt_getline(&line, &len, fp)) != -1) {
        parse(vm, line, read);
    }

    fclose(fp);
    free(line);
    return RUNT_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r12
movq %rdi, %rbx
xorl %r15d, %r15d
movq %r15, 0x8(%rsp)
movq %r15, 0x10(%rsp)
leaq 0x1560(%rip), %rsi      # 0x73d0
movq %r12, %rdi
callq 0x1120
testq %rax, %rax
je 0x5edd
movq %rax, %r14
leaq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0x38ff
cmpq $-0x1, %rax
je 0x5ec3
leaq 0x8(%rsp), %r15
leaq 0x10(%rsp), %r12
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2aad
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x38ff
cmpq $-0x1, %rax
jne 0x5ea2
movq %r14, %rdi
callq 0x1060
movq 0x8(%rsp), %rdi
callq 0x1040
movl $0x1, %r15d
jmp 0x5ef1
leaq 0x15b4(%rip), %rsi      # 0x7498
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x1cb9
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_call
static int rproc_call(runt_vm *vm, runt_ptr p)
{
    runt_stacklet *s;
    runt_int rc;
    runt_uint level;
    runt_uint ppos;
    runt_int pstate;
    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);

    pstate = runt_get_state(vm, RUNT_MODE_END);
    runt_set_state(vm, RUNT_MODE_END, RUNT_OFF);
    ppos = vm->pos;
    vm->pos = s->f;

    vm->level++;
    level = vm->level;
    while(runt_get_state(vm, RUNT_MODE_END) == RUNT_OFF &&
            vm->level == level) {
        rc = runt_cell_call(vm, &vm->cell_pool.cells[vm->pos - 1]);
        RUNT_ERROR_CHECK(rc);
        vm->pos++;
    }
    vm->level--;
    vm->pos = ppos;
    runt_set_state(vm, RUNT_MODE_END, pstate);

    return RUNT_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rsi
callq 0x2201
xorl %ebp, %ebp
testl %eax, %eax
je 0x5fed
movq %rbx, %rdi
movl $0x40, %esi
callq 0x1caa
movl %eax, %r14d
movq %rbx, %rdi
movl $0x40, %esi
movl $0x4, %edx
callq 0x14e5
movl 0x11b8(%rbx), %r15d
movq 0x8(%rsp), %rax
cvttss2si 0x20(%rax), %rax
movl 0x11bc(%rbx), %r12d
movl %eax, 0x11bc(%rbx)
incl %r15d
movl %r15d, 0x11b8(%rbx)
movq %rbx, %rdi
movl $0x40, %esi
callq 0x1caa
cmpl $0x4, %eax
jne 0x5fcb
cmpl %r15d, 0x11b8(%rbx)
jne 0x5fcb
movl 0x11bc(%rbx), %eax
decl %eax
leaq (%rax,%rax,4), %rsi
shlq $0x3, %rsi
addq 0x510(%rbx), %rsi
movq %rbx, %rdi
callq 0x1dbb
testl %eax, %eax
je 0x5fed
incl 0x11bc(%rbx)
jmp 0x5f85
decl 0x11b8(%rbx)
movl %r12d, 0x11bc(%rbx)
movq %rbx, %rdi
movl $0x40, %esi
movl %r14d, %edx
callq 0x14e5
movl $0x1, %ebp
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_goto
static int rproc_goto(runt_vm *vm, runt_ptr p)
{
    runt_stacklet *s;
    runt_uint pos;
    runt_uint jump;
    runt_int rc;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    pos = s->f;

    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    jump = s->f;

    if(jump && pos < vm->cell_pool.size + 1) {
        vm->pos = pos;
    }

    return RUNT_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
leaq 0x8(%rsp), %rsi
callq 0x2201
xorl %ebx, %ebx
testl %eax, %eax
je 0x605b
leaq 0x8(%rsp), %rsi
movq (%rsi), %rax
cvttss2si 0x20(%rax), %r15
movq %r14, %rdi
callq 0x2201
testl %eax, %eax
je 0x605b
movq 0x8(%rsp), %rax
cvttss2si 0x20(%rax), %rax
movl $0x1, %ebx
testl %eax, %eax
je 0x605b
movl 0x518(%r14), %eax
incl %eax
cmpl %r15d, %eax
jbe 0x605b
movl %r15d, 0x11bc(%r14)
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/basic.c
// Function: rproc_ex
static int rproc_ex(runt_vm *vm, runt_ptr p)
{
    runt_stacklet *s;
    runt_int rc;
    runt_uint pos;
    runt_cell *cell;
    rc = runt_ppop(vm, &s);
    RUNT_ERROR_CHECK(rc);
    pos = s->f;

    if(pos > 0) {
        runt_cell_id_exec(vm, pos);
    } else {
        cell = runt_to_cptr(s->p);
        runt_cell_exec(vm, cell);
    }

    return RUNT_OK;
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %rsi
callq 0x2201
testl %eax, %eax
je 0x6096
movq 0x18(%rsp), %rax
cvttss2si 0x20(%rax), %rsi
testl %esi, %esi
je 0x609a
movq %rbx, %rdi
callq 0x1f77
jmp 0x60bb
xorl %eax, %eax
jmp 0x60c0
movq 0x18(%rax), %rcx
movq %rcx, 0x10(%rsp)
movups 0x8(%rax), %xmm0
movups %xmm0, (%rsp)
callq 0x3676
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1ec8
movl $0x1, %eax
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/irunt.c
// Function: runt_parse_file
runt_int runt_parse_file(runt_vm *vm, const char *filename)
{
    FILE *fp;
    runt_int rc;

    fp = fopen(filename, "r");

    if(fp == NULL) {
        runt_print(vm, "Could not open file %s\n", filename);
        return RUNT_NOT_OK;
    }

    rc = runt_parse_filehandle(vm, fp);
    fclose(fp);
    return rc;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x12de(%rip), %rsi      # 0x73d0
movq %r14, %rdi
callq 0x1120
testq %rax, %rax
je 0x611b
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6137
movl %eax, %ebx
movq %r15, %rdi
callq 0x1060
movl %ebx, %eax
jmp 0x6131
leaq 0x1376(%rip), %rsi      # 0x7498
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1cb9
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/irunt.c
// Function: runt_parse_filehandle
runt_int runt_parse_filehandle(runt_vm *vm, FILE *fp)
{
    char *line = NULL;
    size_t len = 0;
    ssize_t read;
    runt_int rc = RUNT_OK;

    if(fp == NULL) return RUNT_NOT_OK;

    while((read = runt_getline(&line, &len, fp)) != -1) {
        rc = parse(vm, line, read);
        if(rc == RUNT_NOT_OK) break;
    }

    free(line);
    return rc;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
xorl %r15d, %r15d
movq %r15, (%rsp)
movq %r15, 0x8(%rsp)
testq %rsi, %rsi
je 0x61ca
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %rdi
leaq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x38ff
cmpq $-0x1, %rax
je 0x61b6
movq %rsp, %r12
leaq 0x8(%rsp), %r13
movq (%rsp), %r15
movq %r14, %rdi
callq 0x35ff
movq %r14, %rdi
movq %r15, %rsi
callq 0x2aad
movl %eax, %r15d
movq %r14, %rdi
callq 0x3635
testl %r15d, %r15d
je 0x61be
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x38ff
cmpq $-0x1, %rax
jne 0x6179
jmp 0x61c1
movl $0x1, %r15d
jmp 0x61c1
xorl %r15d, %r15d
movq (%rsp), %rdi
callq 0x1040
movl %r15d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/irunt.c
// Function: load_dictionary_handle
static runt_int load_dictionary_handle(runt_vm *vm, FILE *fp)
{
    char *line = NULL;
    size_t len = 0;
    ssize_t read;
    runt_int rc = RUNT_OK;

    while((read = runt_getline(&line, &len, fp)) != -1) {
        rc = parse(vm, line, read);
        if(rc == RUNT_NOT_OK) {
            runt_print(vm, "Bad return value. Dipping out.\n");
            break;
        }
    }

    free(line);
    return rc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorl %eax, %eax
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdx
callq 0x38ff
cmpq $-0x1, %rax
je 0x65bb
leaq 0x8(%rsp), %r15
leaq 0x10(%rsp), %r12
movq 0x8(%rsp), %r13
movq %rbx, %rdi
callq 0x35ff
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2aad
movl %eax, %ebp
movq %rbx, %rdi
callq 0x3635
testl %ebp, %ebp
je 0x65aa
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x38ff
cmpq $-0x1, %rax
jne 0x656e
jmp 0x65bb
leaq 0xfe3(%rip), %rsi       # 0x7594
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1cb9
movq 0x8(%rsp), %rdi
callq 0x1040
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/irunt.c
// Function: runt_vm_alloc
int runt_vm_alloc(runt_vm *vm, runt_uint ncells, runt_uint memsize)
{
    unsigned char *mem;
    runt_cell *cells;

    mem = malloc(memsize);
    cells = malloc(sizeof(runt_cell) * ncells);
    runt_init(vm);
    runt_cell_pool_set(vm, cells, ncells);
    runt_cell_pool_init(vm);
    runt_memory_pool_set(vm, mem, memsize);
    return RUNT_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movl %edx, %edi
callq 0x10d0
movq %rax, %r15
movl %ebp, %eax
shlq $0x3, %rax
leaq (%rax,%rax,4), %rdi
callq 0x10d0
movq %rax, %r12
movq %r14, %rdi
callq 0x1348
movq %r14, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0x1615
movq %r14, %rdi
callq 0x1632
movq %r14, %rdi
movq %r15, %rsi
movl %ebx, %edx
callq 0x168e
movl $0x1, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MuvikLabs[P]runt/irunt.c
// Function: runt_vm_free
int runt_vm_free(runt_vm *vm)
{
    runt_close_plugins(vm);
    free(vm->cell_pool.cells);
    free(vm->memory_pool.data);
    return RUNT_OK;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x37b3
movq 0x510(%rbx), %rdi
callq 0x1040
movq 0x528(%rbx), %rdi
callq 0x1040
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/melynx[P]peekaboo/read_trace.c
// Function: print_usage
void print_usage(const char* program_name)
{
    fprintf(stderr, "Usage: %s [Options] path_to_trace_dir\n", program_name);
    fprintf(stderr, "Options:\n");
    fprintf(stderr, "  -r               \tPrint register values.\n");
    fprintf(stderr, "  -m               \tPrint memory values.\n");
    fprintf(stderr, "  -y               \tPrint syscalls. Not compatible with -p.\n");
    fprintf(stderr, "  -s <instr id>    \tPrint trace starting from the given id. Below zero for reversed order.\n");
    fprintf(stderr, "  -e <instr id>    \tPrint trace till the given id.\n");
    fprintf(stderr, "  -a <addr>[,size] \tSearch for all accesses to given memory address, for accesses to buffer when size is given.\n");
    fprintf(stderr, "  -p <pattern file>\tSearch for instruction patterns in trace. See pattern.txt for samples. Not compatible with -c.\n");
    fprintf(stderr, "  -h               \tPrint this help.\n");
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rdx
movq 0x8d9a(%rip), %r14      # 0xbff8
movq (%r14), %rdi
leaq 0x3091(%rip), %rsi      # 0x62f9
xorl %eax, %eax
callq 0x3160
movq (%r14), %rcx
leaq 0x30a7(%rip), %rdi      # 0x6320
pushq $0x9
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
callq 0x3230
movq (%r14), %rcx
leaq 0x3099(%rip), %rdi      # 0x632a
pushq $0x2b
popq %rsi
movq %rbx, %rdx
callq 0x3230
movq (%r14), %rcx
leaq 0x30b0(%rip), %rdi      # 0x6356
pushq $0x29
popq %rsi
movq %rbx, %rdx
callq 0x3230
movq (%r14), %rcx
leaq 0x30c5(%rip), %rdi      # 0x6380
pushq $0x3c
popq %rsi
movq %rbx, %rdx
callq 0x3230
movq (%r14), %rcx
leaq 0x30ed(%rip), %rdi      # 0x63bd
pushq $0x5b
popq %rsi
movq %rbx, %rdx
callq 0x3230
movq (%r14), %rcx
leaq 0x3134(%rip), %rdi      # 0x6419
pushq $0x33
popq %rsi
movq %rbx, %rdx
callq 0x3230
movq (%r14), %rcx
leaq 0x3153(%rip), %rdi      # 0x644d
pushq $0x70
popq %rsi
movq %rbx, %rdx
callq 0x3230
movq (%r14), %rcx
leaq 0x31af(%rip), %rdi      # 0x64be
pushq $0x73
popq %rsi
movq %rbx, %rdx
callq 0x3230
movq (%r14), %rcx
leaq 0x320e(%rip), %rdi      # 0x6532
pushq $0x25
popq %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3230
// File: /workspace/github_c_makefile_star2_O3/melynx[P]peekaboo/read_trace.c
// Function: hexchar_to_uint16
int hexchar_to_uint16(uint16_t *output_uint16_ptr, const char input_char)
{
    if (input_char >= '0' && input_char <= '9')
    {
        *output_uint16_ptr = input_char - '0';
        return 0;
    }
    if (input_char >= 'A' && input_char <= 'F')
    {
        *output_uint16_ptr = input_char - 'A' + 10;
        return 0;
    }
    if (input_char >= 'a' && input_char <= 'f')
    {
        *output_uint16_ptr = input_char - 'a' + 10;
        return 0;
    }
    if (input_char == '*')
    {
        *output_uint16_ptr = 0x100;
        return 0;
    }
    if (input_char == '?')
    {
        *output_uint16_ptr = 0x101;
        return 0;
    }

    return -1;
}

// Assembly:
leal -0x30(%rsi), %eax
cmpb $0x9, %al
ja 0x39aa
movzbl %sil, %eax
addl $-0x30, %eax
jmp 0x39e7
leal -0x41(%rsi), %eax
cmpb $0x5, %al
ja 0x39ba
movzbl %sil, %eax
addl $-0x37, %eax
jmp 0x39e7
leal -0x61(%rsi), %eax
cmpb $0x5, %al
ja 0x39ca
movzbl %sil, %eax
addl $-0x57, %eax
jmp 0x39e7
movsbl %sil, %ecx
cmpl $0x2a, %ecx
je 0x39e3
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x3f, %ecx
jne 0x39ec
movw $0x101, %ax             # imm = 0x101
jmp 0x39e7
movw $0x100, %ax             # imm = 0x100
movw %ax, (%rdi)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/melynx[P]peekaboo/read_trace.c
// Function: hex_string_to_uint16_arrary
int hex_string_to_uint16_arrary(uint16_t *uint16_array, const char *hex_string)
{
    int size = 0;
    while(hex_string[0] && hex_string[1])
    {
        // Arbitrary symbols must be in pairs
        if (hex_string[0] == '?' || hex_string[1] == '?' || hex_string[0] == '*' || hex_string[1] == '*')
            if (hex_string[0] != hex_string[1]) return -1;

        uint16_t output[2];
        if (hexchar_to_uint16(&output[0], hex_string[0])==0 && hexchar_to_uint16(&output[1], hex_string[1])==0)
        {
            uint16_array[size++] = output[0] * 16 + output[1];
        }
        else return -1;
        hex_string += 2;
    }
    return size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movb (%rsi), %al
testb %al, %al
je 0x3a8d
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x6(%rsp), %r15
xorl %ebp, %ebp
leaq 0x4(%rsp), %r12
movb 0x1(%rbx,%rbp,2), %cl
testb %cl, %cl
je 0x3a92
cmpb $0x3f, %al
setne %dl
cmpb $0x3f, %cl
setne %sil
cmpb $0x2a, %al
setne %dil
cmpb $0x2a, %cl
setne %r8b
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
cmpb %cl, %al
je 0x3a4a
andb %dl, %dil
andb %sil, %dil
andb %dil, %r8b
je 0x3a95
movsbl %al, %esi
movq %r12, %rdi
callq 0x399a
testl %eax, %eax
jne 0x3a95
movsbl 0x1(%rbx,%rbp,2), %esi
movq %r15, %rdi
callq 0x399a
testl %eax, %eax
jne 0x3a95
movzwl 0x4(%rsp), %eax
shll $0x4, %eax
addw 0x6(%rsp), %ax
leaq 0x1(%rbp), %r13
movw %ax, (%r14,%rbp,2)
movb 0x2(%rbx,%rbp,2), %al
movq %r13, %rbp
testb %al, %al
jne 0x3a14
jmp 0x3a95
xorl %r13d, %r13d
jmp 0x3a95
movl %ebp, %r13d
movl %r13d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq