LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/flags.c
// Function: TextAlign
static int TextAlign(lua_State *L)
    {
    if(lua_type(L, 1) == LUA_TNUMBER)
        return pushtextalign(L, luaL_checkinteger(L, 1));
    lua_pushinteger(L, checktextalign(L, 1));
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0x13df0
cmpl $0x3, %eax
jne 0x200b4
movq %rbx, %rdi
movl $0x1, %esi
callq 0x12f30
movq %rax, %r14
xorl %ebp, %ebp
testb $0x1, %r14b
je 0x20038
leaq 0x4ce5d(%rip), %rsi     # 0x6ce88
movq %rbx, %rdi
callq 0x13f90
movl $0x1, %ebp
testb $0x2, %r14b
je 0x2004f
leaq 0x4ce4e(%rip), %rsi     # 0x6ce93
movq %rbx, %rdi
callq 0x13f90
incl %ebp
testb $0x4, %r14b
je 0x20066
leaq 0x4ce46(%rip), %rsi     # 0x6cea2
movq %rbx, %rdi
callq 0x13f90
incl %ebp
testb $0x8, %r14b
je 0x2007d
leaq 0x4ce3b(%rip), %rsi     # 0x6ceae
movq %rbx, %rdi
callq 0x13f90
incl %ebp
testb $0x10, %r14b
je 0x20094
leaq 0x4ce2e(%rip), %rsi     # 0x6ceb8
movq %rbx, %rdi
callq 0x13f90
incl %ebp
testb $0x20, %r14b
je 0x20201
leaq 0x4ce20(%rip), %rsi     # 0x6cec5
movq %rbx, %rdi
callq 0x13f90
incl %ebp
jmp 0x20201
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0x141b0
xorl %r14d, %r14d
testl %eax, %eax
je 0x201f1
leaq 0x4cdb0(%rip), %r15     # 0x6ce88
leaq 0x4cdb4(%rip), %r12     # 0x6ce93
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x12630
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x12e90
testl %eax, %eax
je 0x201a4
movq %r13, %rdi
movq %r12, %rsi
callq 0x12e90
testl %eax, %eax
je 0x201ab
movq %r13, %rdi
leaq 0x4cd84(%rip), %rsi     # 0x6cea2
callq 0x12e90
testl %eax, %eax
je 0x201b2
movq %r13, %rdi
leaq 0x4cd79(%rip), %rsi     # 0x6ceae
callq 0x12e90
testl %eax, %eax
je 0x201b9
movq %r13, %rdi
leaq 0x4cd70(%rip), %rsi     # 0x6ceb8
callq 0x12e90
testl %eax, %eax
je 0x201c0
movq %r13, %rdi
leaq 0x4cd6a(%rip), %rsi     # 0x6cec5
callq 0x12e90
testl %eax, %eax
je 0x201c7
movq %r13, %rdi
leaq 0x47522(%rip), %rsi     # 0x67690
callq 0x12e90
testl %eax, %eax
je 0x201ce
movq %r13, %rdi
leaq 0x4cd18(%rip), %rsi     # 0x6ce99
callq 0x12e90
testl %eax, %eax
je 0x201d5
movq %r13, %rdi
leaq 0x4751e(%rip), %rsi     # 0x676b2
callq 0x12e90
movl $0x14, %ecx
testl %eax, %eax
je 0x201da
jmp 0x20212
movl $0x1, %ecx
jmp 0x201da
movl $0x2, %ecx
jmp 0x201da
movl $0x4, %ecx
jmp 0x201da
movl $0x8, %ecx
jmp 0x201da
movl $0x10, %ecx
jmp 0x201da
movl $0x20, %ecx
jmp 0x201da
movl $0x11, %ecx
jmp 0x201da
movl $0x12, %ecx
orl %ecx, %r14d
incl %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x141b0
testl %eax, %eax
jne 0x200df
movl %r14d, %esi
movq %rbx, %rdi
callq 0x12b60
movl $0x1, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x47278(%rip), %rsi     # 0x67491
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x12d80
movq %rbx, %rdi
movl %ebp, %esi
movq %rax, %rdx
callq 0x12460
movl %eax, %r14d
jmp 0x201f1
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/flags.c
// Function: EditEvents
static int EditEvents(lua_State *L)
    {
    if(lua_type(L, 1) == LUA_TNUMBER)
        return pusheditevents(L, luaL_checkinteger(L, 1));
    lua_pushinteger(L, checkeditevents(L, 1));
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0x13df0
cmpl $0x3, %eax
jne 0x206d6
movq %rbx, %rdi
movl $0x1, %esi
callq 0x12f30
movq %rax, %r14
xorl %ebp, %ebp
testb $0x1, %r14b
je 0x20671
leaq 0x487b7(%rip), %rsi     # 0x68e1b
movq %rbx, %rdi
callq 0x13f90
movl $0x1, %ebp
testb $0x2, %r14b
je 0x20688
leaq 0x4c7f9(%rip), %rsi     # 0x6ce77
movq %rbx, %rdi
callq 0x13f90
incl %ebp
testb $0x4, %r14b
je 0x2069f
leaq 0x4c8f0(%rip), %rsi     # 0x6cf85
movq %rbx, %rdi
callq 0x13f90
incl %ebp
testb $0x8, %r14b
je 0x206b6
leaq 0x4c8d7(%rip), %rsi     # 0x6cf83
movq %rbx, %rdi
callq 0x13f90
incl %ebp
testb $0x10, %r14b
je 0x207af
leaq 0x4c8c8(%rip), %rsi     # 0x6cf8f
movq %rbx, %rdi
callq 0x13f90
incl %ebp
jmp 0x207af
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0x141b0
xorl %r14d, %r14d
testl %eax, %eax
je 0x2079f
leaq 0x48721(%rip), %r15     # 0x68e1b
leaq 0x4c776(%rip), %r12     # 0x6ce77
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x12630
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x12e90
testl %eax, %eax
je 0x2076e
movq %r13, %rdi
movq %r12, %rsi
callq 0x12e90
testl %eax, %eax
je 0x20775
movq %r13, %rdi
leaq 0x4c84d(%rip), %rsi     # 0x6cf85
callq 0x12e90
testl %eax, %eax
je 0x2077c
movq %r13, %rdi
leaq 0x4c838(%rip), %rsi     # 0x6cf83
callq 0x12e90
testl %eax, %eax
je 0x20783
movq %r13, %rdi
leaq 0x4c831(%rip), %rsi     # 0x6cf8f
callq 0x12e90
movl $0x10, %ecx
testl %eax, %eax
je 0x20788
jmp 0x207c0
movl $0x1, %ecx
jmp 0x20788
movl $0x2, %ecx
jmp 0x20788
movl $0x4, %ecx
jmp 0x20788
movl $0x8, %ecx
orl %ecx, %r14d
incl %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x141b0
testl %eax, %eax
jne 0x20701
movl %r14d, %esi
movq %rbx, %rdi
callq 0x12b60
movl $0x1, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x46cca(%rip), %rsi     # 0x67491
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x12d80
movq %rbx, %rdi
movl %ebp, %esi
movq %rax, %rdx
callq 0x12460
movl %eax, %r14d
jmp 0x2079f
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/flags.c
// Function: ChartEvent
static int ChartEvent(lua_State *L)
    {
    if(lua_type(L, 1) == LUA_TNUMBER)
        return pushchartevent(L, luaL_checkinteger(L, 1));
    lua_pushinteger(L, checkchartevent(L, 1));
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0x13df0
cmpl $0x3, %eax
jne 0x20d30
movq %rbx, %rdi
movl $0x1, %esi
callq 0x12f30
movq %rax, %r14
xorl %ebp, %ebp
testb $0x1, %r14b
je 0x20d10
leaq 0x4c302(%rip), %rsi     # 0x6d005
movq %rbx, %rdi
callq 0x13f90
movl $0x1, %ebp
testb $0x2, %r14b
je 0x20ddd
leaq 0x52bfa(%rip), %rsi     # 0x7391b
movq %rbx, %rdi
callq 0x13f90
incl %ebp
jmp 0x20ddd
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0x141b0
xorl %r14d, %r14d
testl %eax, %eax
je 0x20dcd
leaq 0x4c2b1(%rip), %r15     # 0x6d005
leaq 0x52bc0(%rip), %r12     # 0x7391b
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x12630
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x12e90
testl %eax, %eax
je 0x20d8f
movq %r13, %rdi
movq %r12, %rsi
callq 0x12e90
movl $0x2, %ecx
testl %eax, %eax
je 0x20d94
jmp 0x20da9
movl $0x1, %ecx
orl %ecx, %r14d
incl %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x141b0
testl %eax, %eax
jne 0x20d5b
jmp 0x20dcd
leaq 0x466e1(%rip), %rsi     # 0x67491
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x12d80
movq %rbx, %rdi
movl %ebp, %esi
movq %rax, %rdx
callq 0x12460
movl %eax, %r14d
movl %r14d, %esi
movq %rbx, %rdi
callq 0x12b60
movl $0x1, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/flags.c
// Function: WidgetLayoutStates
static int WidgetLayoutStates(lua_State *L)
    {
    if(lua_type(L, 1) == LUA_TNUMBER)
        return pushwidgetlayoutstates(L, luaL_checkinteger(L, 1));
    lua_pushinteger(L, checkwidgetlayoutstates(L, 1));
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %ebp
movl $0x1, %esi
callq 0x13df0
cmpl $0x3, %eax
jne 0x20e83
movq %rbx, %rdi
movl $0x1, %esi
callq 0x12f30
movq %rax, %r14
leaq 0x4c1e7(%rip), %rsi     # 0x6d00e
movq %rbx, %rdi
callq 0x13f90
testb $0x1, %r14b
je 0x20e49
leaq 0x4c1d4(%rip), %rsi     # 0x6d010
movq %rbx, %rdi
callq 0x13f90
movl $0x2, %ebp
testb $0x2, %r14b
je 0x20e60
leaq 0x4c1ab(%rip), %rsi     # 0x6d001
movq %rbx, %rdi
callq 0x13f90
incl %ebp
notl %r14d
testb $0x3, %r14b
jne 0x20f33
leaq 0x4c1a2(%rip), %rsi     # 0x6d016
movq %rbx, %rdi
callq 0x13f90
incl %ebp
jmp 0x20f33
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0x141b0
xorl %r14d, %r14d
testl %eax, %eax
je 0x20f23
leaq 0x4c167(%rip), %r15     # 0x6d00e
leaq 0x4c162(%rip), %r12     # 0x6d010
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x12630
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x12e90
testl %eax, %eax
je 0x20f13
movq %r13, %rdi
movq %r12, %rsi
callq 0x12e90
testl %eax, %eax
je 0x20f09
movq %r13, %rdi
leaq 0x4c11c(%rip), %rsi     # 0x6d001
callq 0x12e90
testl %eax, %eax
je 0x20f0f
movq %r13, %rdi
leaq 0x4c11e(%rip), %rsi     # 0x6d016
callq 0x12e90
movl $0x3, %r14d
testl %eax, %eax
je 0x20f13
jmp 0x20f44
orl $0x1, %r14d
jmp 0x20f13
orl $0x2, %r14d
incl %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x141b0
testl %eax, %eax
jne 0x20eae
movl %r14d, %esi
movq %rbx, %rdi
callq 0x12b60
movl $0x1, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x46546(%rip), %rsi     # 0x67491
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x12d80
movq %rbx, %rdi
movl %ebp, %esi
movq %rax, %rdx
callq 0x12460
movl %eax, %r14d
jmp 0x20f23
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/flags.c
// Function: StyleHeaderAlign
static int StyleHeaderAlign(lua_State *L)
    {
    if(lua_type(L, 1) == LUA_TNUMBER)
        return pushstyleheaderalign(L, luaL_checkinteger(L, 1));
    lua_pushinteger(L, checkstyleheaderalign(L, 1));
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %ebp
movl $0x1, %esi
callq 0x13df0
cmpl $0x3, %eax
jne 0x20fce
movq %rbx, %rdi
movl $0x1, %esi
callq 0x12f30
movq %rax, %r14
leaq 0x466ed(%rip), %rsi     # 0x67690
movq %rbx, %rdi
callq 0x13f90
testb $0x1, %r14b
je 0x2106e
leaq 0x466f6(%rip), %rsi     # 0x676b2
movq %rbx, %rdi
callq 0x13f90
movl $0x2, %ebp
jmp 0x2106e
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0x141b0
xorl %r14d, %r14d
testl %eax, %eax
je 0x2105e
leaq 0x466a2(%rip), %r15     # 0x67690
leaq 0x466bd(%rip), %r12     # 0x676b2
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x12630
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x12e90
testl %eax, %eax
je 0x21028
movq %r13, %rdi
movq %r12, %rsi
callq 0x12e90
movl $0x1, %r14d
testl %eax, %eax
jne 0x2103a
incl %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x141b0
testl %eax, %eax
jne 0x20ff5
jmp 0x2105e
leaq 0x46450(%rip), %rsi     # 0x67491
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x12d80
movq %rbx, %rdi
movl %ebp, %esi
movq %rax, %rdx
callq 0x12460
movl %eax, %r14d
movl %r14d, %esi
movq %rbx, %rdi
callq 0x12b60
movl $0x1, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/font.c
// Function: moonnuklear_pushatlasfont
int pushatlasfont(lua_State *L, ud_t *atlas_ud, nk_font_t *atlas_font, nk_font_config_t *cfg)
/* Pushes the user font embedded in an atlas font, possibly creating the
 * associated ud if it is not yet known by MoonNuklear */
    {
    nk_user_font_t *font = &atlas_font->handle;
    ud_t *ud = moonnuklear_userdata(font);
    if(ud) /* already known */
        { 
        if(cfg) { return unexpected(L); }
        pushfont(L, font); return 1; 
        }
    /* not yet known, create ud */
    ud = newuserdata(L, font, FONT_MT, "font");
    ud->parent_ud = atlas_ud;
    ud->font = atlas_font;
    ud->font_config = cfg;
    ud->destructor = freefont;
    return 1;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
leaq 0x8(%rdx), %r13
movq %r13, %rdi
callq 0x132d0
testq %rax, %rax
je 0x210d1
testq %rbx, %rbx
je 0x21103
leaq 0x4606d(%rip), %rsi     # 0x6711f
leaq 0x4bf66(%rip), %rdx     # 0x6d01f
movq %r14, %rdi
movl $0x3b, %ecx
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x139b0
leaq 0x45fd9(%rip), %rdx     # 0x670b1
leaq 0x52350(%rip), %rcx     # 0x7342f
movq %r14, %rdi
movq %r13, %rsi
callq 0x13e90
movq %r12, 0x10(%rax)
movq %r15, 0x20(%rax)
movq %rbx, 0x68(%rax)
leaq 0x20(%rip), %rcx        # 0x2111d
movq %rcx, 0x8(%rax)
jmp 0x2110e
movq %r14, %rdi
movq %r13, %rsi
callq 0x13c10
movl $0x1, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/font.c
// Function: freefont
static int freefont(lua_State *L, ud_t *ud)
    {
    nk_user_font_t *font = (nk_user_font_t*)ud->handle;
    nk_font_config_t *cfg = ud->font_config;
    int allocated = IsAllocated(ud);
    if(!freeuserdata(L, ud, "font")) return 0;
    if(cfg) freefontconfig(L, cfg);
    if(allocated) Free(L, font);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq (%rsi), %rbx
movq 0x68(%rsi), %r15
movl 0x70(%rsi), %ebp
leaq 0x522f7(%rip), %rdx     # 0x7342f
callq 0x13d00
testl %eax, %eax
je 0x21162
testq %r15, %r15
je 0x21151
movq %r14, %rdi
movq %r15, %rsi
callq 0x13c30
testb $0x20, %bpl
je 0x21162
movq %r14, %rdi
movq %rbx, %rsi
callq 0x130d0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/font.c
// Function: Width
static int Width(lua_State *L)
    {
    size_t len;
    nk_user_font_t *font = checkfont(L, 1, NULL);
    float height = luaL_checknumber(L, 2);
    const char *text = luaL_checklstring(L, 3, &len);
    lua_pushnumber(L, font->width(font->userdata, height, text, (int)len));
    return 1;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x45e6f(%rip), %rcx     # 0x670b1
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x12870
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x4(%rsp)
leaq 0x8(%rsp), %r15
movq %rbx, %rdi
movl $0x3, %esi
movq %r15, %rdx
callq 0x12cd0
movl (%r15), %edx
movq (%r14), %rdi
movss 0x4(%rsp), %xmm0
movq %rax, %rsi
callq *0x10(%r14)
cvtss2sd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x13180
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/font.c
// Function: Ranges
static int Ranges(lua_State *L)
    {
    ud_t *ud;
    nk_font_t *font;
    (void*)checkfont(L, 1, &ud);
    if((font = ud->font) == NULL)
        return luaL_argerror(L, 1, "function not available for user created fonts"); //@@
    pushrunelist(L, font->config->range);
    return 1;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
leaq 0x45df3(%rip), %rcx     # 0x670b1
movl $0x1, %ebx
leaq 0x8(%rsp), %r15
movl $0x1, %esi
movq %r15, %rdx
callq 0x120d0
movq (%r15), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x212f3
movq 0x78(%rax), %rax
movq 0x30(%rax), %rsi
movq %r14, %rdi
callq 0x130e0
jmp 0x21309
leaq 0x4bd37(%rip), %rdx     # 0x6d031
movq %r14, %rdi
movl $0x1, %esi
callq 0x12460
movl %eax, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/font.c
// Function: FindGlyph
static int FindGlyph(lua_State *L)
    {
    ud_t *ud;
    nk_font_t *font;
    const nk_font_glyph_t *glyph;
    nk_rune unicode;
    (void*)checkfont(L, 1, &ud);
    if((font = ud->font) == NULL)
        return luaL_argerror(L, 1, "function not available for user created fonts"); //@@
    unicode = luaL_checkinteger(L, 2);
    glyph = nk_font_find_glyph(font, unicode);
    if(!glyph) return 0; /* not found */
    return pushfontglyph(L, glyph);
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x45d8e(%rip), %rcx     # 0x670b1
movq %rsp, %r14
movl $0x1, %esi
movq %r14, %rdx
callq 0x120d0
movq (%r14), %rax
movq 0x20(%rax), %r14
testq %r14, %r14
je 0x21368
movq %rbx, %rdi
movl $0x2, %esi
callq 0x12f30
movq %r14, %rdi
movl %eax, %esi
callq 0x13fb0
testq %rax, %rax
je 0x2137e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12340
jmp 0x21380
leaq 0x4bcc2(%rip), %rdx     # 0x6d031
movq %rbx, %rdi
movl $0x1, %esi
callq 0x12460
jmp 0x21380
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/font.c
// Function: New
static int New(lua_State *L)
/* user_font = user_font(height, width_func, texture_id, query_func) */
    {
    ud_t *ud;
    int ref1, ref2;
    nk_user_font_t *font;
    float height = luaL_checknumber(L, 1);
    int texture_id = luaL_checknumber(L, 3);
    if(!lua_isfunction(L, 2)) return argerrorc(L, 2, ERR_TYPE);
    if(!lua_isfunction(L, 4)) return argerrorc(L, 4, ERR_TYPE);
    lua_pushvalue(L, 2); ref1 = luaL_ref(L, LUA_REGISTRYINDEX);
    lua_pushvalue(L, 4); ref2 = luaL_ref(L, LUA_REGISTRYINDEX);

    font = (nk_user_font_t*)Malloc(L, sizeof(nk_user_font_t));
    ud = newuserdata(L, font, FONT_MT, "font (user)");
    ud->parent_ud = NULL;
    ud->font = NULL;
    ud->ref1 = ref1;
    ud->ref2 = ref2;
    ud->destructor = freefont;
    MarkAllocated(ud);

    font->userdata.ptr = ud;
    font->height = height; /* max height of the font */
    font->width = WidthCallback; /* font string width in pixel callback */
    font->query = QueryCallback; /* font glyph callback to query drawing info */
    font->texture.id = texture_id; /* texture handle to the used font atlas or texture */
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x12870
movsd %xmm0, (%rsp)
movq %rbx, %rdi
movl $0x3, %esi
callq 0x12870
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0x13df0
cmpl $0x6, %eax
jne 0x214b5
movq %rbx, %rdi
movl $0x4, %esi
callq 0x13df0
cmpl $0x6, %eax
jne 0x214c9
xorps %xmm0, %xmm0
cvtsd2ss (%rsp), %xmm0
movss %xmm0, (%rsp)
cvttsd2si 0x8(%rsp), %r12d
movq %rbx, %rdi
movl $0x2, %esi
callq 0x12d70
movq %rbx, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0x12780
movl %eax, %ebp
movq %rbx, %rdi
movl $0x4, %esi
callq 0x12d70
movq %rbx, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0x12780
movl %eax, %r14d
movl $0x28, %esi
movq %rbx, %rdi
callq 0x13a00
movq %rax, %r15
leaq 0x45c68(%rip), %rdx     # 0x670b1
leaq 0x4bc2b(%rip), %rcx     # 0x6d07b
movq %rbx, %rdi
movq %rax, %rsi
callq 0x13e90
xorl %ecx, %ecx
movq %rcx, 0x10(%rax)
movq %rcx, 0x20(%rax)
movl %ebp, 0x74(%rax)
movl %r14d, 0x78(%rax)
leaq -0x356(%rip), %rcx      # 0x2111d
movq %rcx, 0x8(%rax)
orb $0x20, 0x70(%rax)
movq %rax, (%r15)
movss (%rsp), %xmm0
movss %xmm0, 0x8(%r15)
leaq 0xb3(%rip), %rax        # 0x21543
movq %rax, 0x10(%r15)
leaq 0x152(%rip), %rax       # 0x215ed
movq %rax, 0x18(%r15)
movl %r12d, 0x20(%r15)
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0xfffffffe, %edi       # imm = 0xFFFFFFFE
callq 0x13ac0
movq %rbx, %rdi
movl $0x2, %esi
jmp 0x214db
movl $0xfffffffe, %edi       # imm = 0xFFFFFFFE
callq 0x13ac0
movq %rbx, %rdi
movl $0x4, %esi
movq %rax, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x12460
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/font.c
// Function: FontFromPtr
static int FontFromPtr(lua_State *L)
    {
    nk_font_t *ptr = (nk_font_t*)checklightuserdata(L, 1);
    nk_user_font_t *font = &ptr->handle;
    ud_t *ud = newuserdata(L, font, FONT_MT, "font (ptr)");
    ud->parent_ud = NULL;
    ud->font = ptr;
    ud->font_config = NULL;
    ud->destructor = freefont;
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0x13800
movq %rax, %r14
leaq 0x8(%rax), %rsi
leaq 0x45ba3(%rip), %rdx     # 0x670b1
leaq 0x4bb72(%rip), %rcx     # 0x6d087
movq %rbx, %rdi
callq 0x13e90
xorl %ecx, %ecx
movq %rcx, 0x10(%rax)
movq %r14, 0x20(%rax)
movq %rcx, 0x68(%rax)
leaq -0x415(%rip), %rcx      # 0x2111d
movq %rcx, 0x8(%rax)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/font.c
// Function: WidthCallback
static float WidthCallback(nk_handle handle, float height, const char* text, int len) // nk_text_width_f
    {
#define L moonnuklear_L
    float width;
    ud_t *ud = (ud_t*)(handle.ptr);
    pushvalue(L, ud->ref1);    // function
    lua_pushnumber(L, height); // arg1
    lua_pushlstring(L, text, len); // arg2
    if(lua_pcall(L, 2, 1, 0) != LUA_OK)
        { lua_error(L); return 0; }
    width = luaL_checknumber(L, -1); // retval1
    lua_pop(L, 1);
    return width;
#undef L
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebx
movq %rsi, %r14
movss %xmm0, 0xc(%rsp)
movq 0x65a92(%rip), %r15     # 0x86ff0
movq (%r15), %rax
movslq 0x74(%rdi), %rdx
movq %rax, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0x12950
movq (%r15), %rdi
xorps %xmm0, %xmm0
cvtss2sd 0xc(%rsp), %xmm0
callq 0x13180
movq (%r15), %rdi
movslq %ebx, %rdx
movq %r14, %rsi
callq 0x13670
movq (%r15), %rdi
movl $0x2, %esi
movl $0x1, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x140b0
movq (%r15), %rdi
testl %eax, %eax
je 0x215bc
callq 0x13780
xorps %xmm0, %xmm0
jmp 0x215e3
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x12870
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
movq (%r15), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12180
movss 0xc(%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/image.c
// Function: Image_info
static int Image_info(lua_State *L)
    {
    ud_t *ud;
    nk_rect_t r;
    nk_image_t *image = checkimage(L, 1, &ud);
    if(IsImageId(ud))
        lua_pushlightuserdata(L, image->handle.ptr);
    else
        lua_pushinteger(L, image->handle.id);
    if(!IsSubImage(ud))
        return 1;
    lua_pushinteger(L, image->w);
    lua_pushinteger(L, image->h);
    r.x = image->region[0];
    r.y = image->region[1];
    r.w = image->region[2];
    r.h = image->region[3];
    pushrect(L, &r);
    return 4;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x45a2c(%rip), %rcx     # 0x67244
leaq 0x8(%rsp), %r15
movl $0x1, %esi
movq %r15, %rdx
callq 0x120d0
movq %rax, %r14
movq (%r15), %rax
testb $-0x80, 0x70(%rax)
jne 0x21843
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x12b60
jmp 0x2184e
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x13450
movq 0x8(%rsp), %rcx
movl $0x1, %eax
testb $0x1, 0x71(%rcx)
je 0x2189e
movzwl 0x8(%r14), %esi
movq %rbx, %rdi
callq 0x12b60
movzwl 0xa(%r14), %esi
movq %rbx, %rdi
callq 0x12b60
movq 0xc(%r14), %xmm0
pxor %xmm1, %xmm1
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
cvtdq2ps %xmm0, %xmm0
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x12710
movl $0x4, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/image.c
// Function: NewSubImage
static int NewSubImage(lua_State *L)
/* image = new_subimage(ptr|id, w, h, rect) */
    {
    ud_t *ud;
    nk_rect_t subregion;
    unsigned short w = luaL_checkinteger(L, 2);
    unsigned short h = luaL_checkinteger(L, 3);
    if(echeckrect(L, 4, &subregion)) return argerror(L, 4);
    ud = New(L, w, h, subregion);
    MarkSubImage(ud);
    return 1;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x2, %esi
callq 0x12f30
movq %rax, %r14
movq %rbx, %rdi
movl $0x3, %esi
callq 0x12f30
movq %rax, %r15
movq %rsp, %rdx
movq %rbx, %rdi
movl $0x4, %esi
callq 0x139f0
testl %eax, %eax
je 0x2191d
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x12630
movq %rbx, %rdi
movl $0x4, %esi
movq %rax, %rdx
callq 0x12460
jmp 0x2194a
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movl $0xffff, %eax           # imm = 0xFFFF
andl %eax, %r14d
andl %eax, %r15d
movq %rbx, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x21954
orb $0x1, 0x71(%rax)
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/image.c
// Function: New
static ud_t* New(lua_State *L, unsigned short w, unsigned short h, nk_rect_t subregion)
    {
    ud_t *ud;
    nk_image_t *image;
    int id = 0;
    void *ptr = NULL;

    if(lua_type(L, 1) == LUA_TLIGHTUSERDATA)
        ptr = checklightuserdata(L, 1);
    else
        id = luaL_checkinteger(L, 1);

    image = (nk_image_t*)Malloc(L, sizeof(nk_image_t));
    if(ptr) { image->handle.ptr = ptr; } else { image->handle.id = id; }
    image->w = w;
    image->h = h;
    image->region[0] = (unsigned short)subregion.x;
    image->region[1] = (unsigned short)subregion.y;
    image->region[2] = (unsigned short)subregion.w;
    image->region[3] = (unsigned short)subregion.h;
    ud = newuserdata(L, image, IMAGE_MT, "image");
    ud->parent_ud = NULL;
    ud->destructor = freeimage;
    if(!ptr) MarkImageId(ud);
    return ud;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movl $0x1, %esi
callq 0x13df0
movq %rbx, %rdi
movl $0x1, %esi
cmpl $0x2, %eax
jne 0x219a8
callq 0x13800
movq %rax, %r15
movl $0x18, %esi
movq %rbx, %rdi
callq 0x13a00
testq %r15, %r15
je 0x219bf
movq %r15, (%rax)
xorl %r15d, %r15d
jmp 0x219c8
callq 0x12f30
movq %rax, %r15
movl $0x18, %esi
movq %rbx, %rdi
callq 0x13a00
jmp 0x219c2
xorl %r15d, %r15d
movl %r15d, (%rax)
movb $0x1, %r15b
movw %r14w, 0x8(%rax)
movw %bp, 0xa(%rax)
movaps (%rsp), %xmm0
unpcklpd 0x10(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0]
cvttps2dq %xmm0, %xmm0
pshuflw $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3,4,5,6,7]
pshufhw $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,1,2,3,4,6,6,7]
pshufd $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3]
movq %xmm0, 0xc(%rax)
leaq 0x4584a(%rip), %rdx     # 0x67244
leaq 0x4584f(%rip), %rcx     # 0x67250
movq %rbx, %rdi
movq %rax, %rsi
callq 0x13e90
movq $0x0, 0x10(%rax)
leaq 0x18(%rip), %rcx        # 0x21a33
movq %rcx, 0x8(%rax)
testb %r15b, %r15b
je 0x21a28
orb $-0x80, 0x70(%rax)
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/image.c
// Function: freeimage
static int freeimage(lua_State *L, ud_t *ud)
    {
    nk_image_t *image = (nk_image_t*)ud->handle;
    freechildren(L, CURSOR_MT, ud);
    if(!freeuserdata(L, ud, "image")) return 0;
    Free(L, image);
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rsi), %rbx
leaq 0x4567a(%rip), %rsi     # 0x670c2
movq %r15, %rdx
callq 0x121c0
leaq 0x457f9(%rip), %rdx     # 0x67250
movq %r14, %rdi
movq %r15, %rsi
callq 0x13d00
testl %eax, %eax
je 0x21a71
movq %r14, %rdi
movq %rbx, %rsi
callq 0x130d0
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/input.c
// Function: Mouse_delta
static int Mouse_delta(lua_State *L)
    {
    const nk_input_t *input = checkinput(L, 1);
    lua_pushnumber(L, input->mouse.delta.x);
    lua_pushnumber(L, input->mouse.delta.y);
    return 2;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x4510a(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
cvtss2sd 0x154(%rax), %xmm0
movq %rbx, %rdi
callq 0x13180
xorps %xmm0, %xmm0
cvtss2sd 0x158(%r14), %xmm0
movq %rbx, %rdi
callq 0x13180
movl $0x2, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/input.c
// Function: Mouse_scroll_delta
static int Mouse_scroll_delta(lua_State *L)
    {
    const nk_input_t *input = checkinput(L, 1);
    lua_pushnumber(L, input->mouse.scroll_delta.x);
    lua_pushnumber(L, input->mouse.scroll_delta.y);
    return 2;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x450bc(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
cvtss2sd 0x15c(%rax), %xmm0
movq %rbx, %rdi
callq 0x13180
xorps %xmm0, %xmm0
cvtss2sd 0x160(%r14), %xmm0
movq %rbx, %rdi
callq 0x13180
movl $0x2, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/input.c
// Function: Mouse_pos
static int Mouse_pos(lua_State *L)
    {
    const nk_input_t *input = checkinput(L, 1);
    lua_pushnumber(L, input->mouse.pos.x);
    lua_pushnumber(L, input->mouse.pos.y);
    return 2;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x4506e(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
cvtss2sd 0x144(%rax), %xmm0
movq %rbx, %rdi
callq 0x13180
xorps %xmm0, %xmm0
cvtss2sd 0x148(%r14), %xmm0
movq %rbx, %rdi
callq 0x13180
movl $0x2, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/input.c
// Function: Mouse_prev
static int Mouse_prev(lua_State *L)
    {
    const nk_input_t *input = checkinput(L, 1);
    lua_pushnumber(L, input->mouse.prev.x);
    lua_pushnumber(L, input->mouse.prev.y);
    return 2;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x45020(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
cvtss2sd 0x14c(%rax), %xmm0
movq %rbx, %rdi
callq 0x13180
xorps %xmm0, %xmm0
cvtss2sd 0x150(%r14), %xmm0
movq %rbx, %rdi
callq 0x13180
movl $0x2, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/input.c
// Function: InputMotion
static int InputMotion(lua_State *L)
    {
    nk_context_t *context = checkcontext(L, 1, NULL);
    int x = luaL_checkinteger(L, 2);
    int y = luaL_checkinteger(L, 3);
    nk_input_motion(context, x, y);
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x44e1a(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x12f30
movq %rax, %r15
movq %rbx, %rdi
movl $0x3, %esi
callq 0x12f30
movq %r14, %rdi
movl %r15d, %esi
movl %eax, %edx
callq 0x13410
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/input.c
// Function: InputKey
static int InputKey(lua_State *L)
    {
    nk_context_t *context = checkcontext(L, 1, NULL);
    enum nk_keys key = checkkeys(L, 2);
    int down = optboolean(L, 3, nk_false);
    nk_input_key(context, key, down);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x44d6c(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
movl $0x2, %edx
callq 0x132f0
movl %eax, %ebp
movq %rbx, %rdi
movl $0x3, %esi
xorl %edx, %edx
callq 0x13960
movq %r14, %rdi
movl %ebp, %esi
movl %eax, %edx
callq 0x139c0
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/input.c
// Function: InputKeys
static int InputKeys(lua_State *L)
    {
    int key;
    int down[NK_KEY_MAX];
    nk_context_t *context = checkcontext(L, 1, NULL);
    if(echeckkeytable(L, 2, down)) return argerror(L, 2);
    for(key = 0; key < NK_KEY_MAX; key++)
        nk_input_key(context, (enum nk_keys)key, down[key]);
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rdi, %rbx
leaq 0x44d11(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rsp, %rdx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x129c0
testl %eax, %eax
je 0x225b5
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x12630
movq %rbx, %rdi
movl $0x2, %esi
movq %rax, %rdx
callq 0x12460
movl %eax, %ebx
jmp 0x225d2
xorl %ebx, %ebx
xorl %r15d, %r15d
movl (%rsp,%r15,4), %edx
movq %r14, %rdi
movl %r15d, %esi
callq 0x139c0
incq %r15
cmpq $0x1e, %r15
jne 0x225ba
movl %ebx, %eax
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/input.c
// Function: InputScroll
static int InputScroll(lua_State *L)
    {
    nk_vec2_t scroll;
    nk_context_t *context = checkcontext(L, 1, NULL);
    scroll.x = luaL_checknumber(L, 2);
    scroll.y = luaL_checknumber(L, 3);
    nk_input_scroll(context, scroll);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x44c0c(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x12870
movapd %xmm0, (%rsp)
movq %rbx, %rdi
movl $0x3, %esi
callq 0x12870
movapd (%rsp), %xmm1
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
cvtpd2ps %xmm1, %xmm0
movq %r14, %rdi
callq 0x140e0
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/input.c
// Function: InputChar
static int InputChar(lua_State *L)
    {
    int arg = 2;
    nk_context_t *context = checkcontext(L, 1, NULL);
    while(!lua_isnoneornil(L, arg))
        nk_input_char(context, luaL_checkinteger(L, arg++));
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x44bb0(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x13df0
testl %eax, %eax
jle 0x2271f
movl $0x3, %r15d
leal -0x1(%r15), %esi
movq %rbx, %rdi
callq 0x12f30
movsbl %al, %esi
movq %r14, %rdi
callq 0x13990
movq %rbx, %rdi
movl %r15d, %esi
callq 0x13df0
incl %r15d
testl %eax, %eax
jg 0x226f6
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/input.c
// Function: InputGlyph
static int InputGlyph(lua_State *L)
    {
    size_t len;
    nk_glyph glyph;
    nk_context_t *context = checkcontext(L, 1, NULL);
    const char* s = luaL_checklstring(L, 2, &len);
    if(len == 0 || len > NK_UTF_SIZE)
        return argerrorc(L, 2, ERR_LENGTH);
    memcpy(glyph, s, len);
    nk_input_glyph(context, glyph);
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
leaq 0x44b44(%rip), %rcx     # 0x67280
xorl %ebx, %ebx
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r15
leaq 0x10(%rsp), %r12
movq %r14, %rdi
movl $0x2, %esi
movq %r12, %rdx
callq 0x12cd0
movq (%r12), %rdx
leaq -0x5(%rdx), %rcx
cmpq $-0x5, %rcx
ja 0x2278e
movl $0xfffffff8, %edi       # imm = 0xFFFFFFF8
callq 0x13ac0
movq %r14, %rdi
movl $0x2, %esi
movq %rax, %rdx
callq 0x12460
movl %eax, %ebx
jmp 0x227a9
leaq 0xc(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x13010
movq %r15, %rdi
movq %r14, %rsi
callq 0x12040
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/input.c
// Function: InputUnicode
static int InputUnicode(lua_State *L)
    {
    int arg = 2;
    nk_context_t *context = checkcontext(L, 1, NULL);
    while(!lua_isnoneornil(L, arg))
        nk_input_unicode(context, luaL_checkinteger(L, arg++));
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x44aba(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x13df0
testl %eax, %eax
jle 0x22814
movl $0x3, %r15d
leal -0x1(%r15), %esi
movq %rbx, %rdi
callq 0x12f30
movq %r14, %rdi
movl %eax, %esi
callq 0x137b0
movq %rbx, %rdi
movl %r15d, %esi
callq 0x13df0
incl %r15d
testl %eax, %eax
jg 0x227ec
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/layout.c
// Function: Layout_set_min_row_height
static int Layout_set_min_row_height(lua_State *L)
    {
    nk_context_t *context = checkcontext(L, 1, NULL);
    float height = luaL_checknumber(L, 1);
    nk_layout_set_min_row_height(context, height);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x44a48(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x1, %esi
callq 0x12870
cvtsd2ss %xmm0, %xmm0
movq %r14, %rdi
callq 0x138c0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/layout.c
// Function: Layout_ratio_from_pixel
static int Layout_ratio_from_pixel(lua_State *L)
    {
    nk_context_t *context = checkcontext(L, 1, NULL);
    float pixel_width = luaL_checknumber(L, 2);
    lua_pushnumber(L, nk_layout_ratio_from_pixel(context, pixel_width));
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x449ae(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x12870
cvtsd2ss %xmm0, %xmm0
movq %r14, %rdi
callq 0x138a0
cvtss2sd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x13180
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/layout.c
// Function: Layout_row_static
static int Layout_row_static(lua_State *L)
    {
    nk_context_t *context = checkcontext(L, 1, NULL);
    float height = luaL_checknumber(L, 2);
    int item_width = luaL_checkinteger(L, 3);
    int cols = luaL_checkinteger(L, 4);
    nk_layout_row_static(context, height, item_width, cols);
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x448ff(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x12870
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
movq %rbx, %rdi
movl $0x3, %esi
callq 0x12f30
movq %rax, %r15
movq %rbx, %rdi
movl $0x4, %esi
callq 0x12f30
movq %r14, %rdi
movss 0xc(%rsp), %xmm0
movl %r15d, %esi
movl %eax, %edx
callq 0x13a30
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/layout.c
// Function: Layout_row_push
static int Layout_row_push(lua_State *L)
    {
    nk_context_t *context = checkcontext(L, 1, NULL);
    float value = luaL_checknumber(L, 2);
    nk_layout_row_push(context, value);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x44819(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x12870
cvtsd2ss %xmm0, %xmm0
movq %r14, %rdi
callq 0x13750
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/layout.c
// Function: Layout_row
static int Layout_row(lua_State *L)
    {
    ud_t *ud;
    int cols, err;
    nk_context_t *context = checkcontext(L, 1, &ud);
    enum nk_layout_format fmt = checklayoutformat(L, 2);
    float height = luaL_checknumber(L, 3);
    float *ratio = checkfloatlist(L, 4, &cols, &err);
    if(err) return argerrorc(L, 4, err);
    /* free the old list and replace it with the new one 
    *  (This is because it seems that nuklear retains the passed float*
    *  instead of making an internal copy. So, to avoid memory leaks, we
    *  store it the context's ud and free it the next time this function
    *  is called, or when the context itself is deleted.)
    */
    if(ud->ratio) Free(L, ud->ratio);
    ud->ratio = ratio;
    nk_layout_row(context, fmt, height, cols, ratio);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x447b1(%rip), %rcx     # 0x67280
leaq 0x10(%rsp), %rdx
movl $0x1, %esi
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x6, %esi
movl $0x2, %edx
callq 0x132f0
movl %eax, %ebp
movq %rbx, %rdi
movl $0x3, %esi
callq 0x12870
movsd %xmm0, (%rsp)
leaq 0xc(%rsp), %rdx
leaq 0x1c(%rsp), %r12
movq %rbx, %rdi
movl $0x4, %esi
movq %r12, %rcx
callq 0x14040
movl (%r12), %edi
testl %edi, %edi
je 0x22b40
callq 0x13ac0
movq %rbx, %rdi
movl $0x4, %esi
movq %rax, %rdx
callq 0x12460
jmp 0x22b8d
movq %rax, %r15
xorps %xmm0, %xmm0
cvtsd2ss (%rsp), %xmm0
movq 0x10(%rsp), %rax
movq 0x80(%rax), %rsi
testq %rsi, %rsi
je 0x22b73
movq %rbx, %rdi
movss %xmm0, (%rsp)
callq 0x130d0
movss (%rsp), %xmm0
movq 0x10(%rsp), %rax
movq %r15, 0x80(%rax)
movl 0xc(%rsp), %edx
movq %r14, %rdi
movl %ebp, %esi
movq %r15, %rcx
callq 0x129a0
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/layout.c
// Function: Layout_row_template_begin
static int Layout_row_template_begin(lua_State *L)
    {
    nk_context_t *context = checkcontext(L, 1, NULL);
    float row_height = luaL_checknumber(L, 2);
    nk_layout_row_template_begin(context, row_height);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x446d8(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x12870
cvtsd2ss %xmm0, %xmm0
movq %r14, %rdi
callq 0x13f00
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/layout.c
// Function: Layout_row_template_push_variable
static int Layout_row_template_push_variable(lua_State *L)
    {
    nk_context_t *context = checkcontext(L, 1, NULL);
    float min_width = luaL_checknumber(L, 2);
    nk_layout_row_template_push_variable(context, min_width);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x44678(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x12870
cvtsd2ss %xmm0, %xmm0
movq %r14, %rdi
callq 0x13d70
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/layout.c
// Function: Layout_row_template_push_static
static int Layout_row_template_push_static(lua_State *L)
    {
    nk_context_t *context = checkcontext(L, 1, NULL);
    float width = luaL_checknumber(L, 2);
    nk_layout_row_template_push_static(context, width);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x44638(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x12870
cvtsd2ss %xmm0, %xmm0
movq %r14, %rdi
callq 0x13200
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/layout.c
// Function: Layout_space_begin
static int Layout_space_begin(lua_State *L)
    {
    nk_context_t *context = checkcontext(L, 1, NULL);
    enum nk_layout_format fmt = checklayoutformat(L, 2);
    float height = luaL_checknumber(L, 3);
    int widget_count = luaL_checkinteger(L, 4);
    nk_layout_space_begin(context, fmt, height, widget_count);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x445d4(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq %rbx, %rdi
movl $0x6, %esi
movl $0x2, %edx
callq 0x132f0
movl %eax, %ebp
movq %rbx, %rdi
movl $0x3, %esi
callq 0x12870
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
movq %rbx, %rdi
movl $0x4, %esi
callq 0x12f30
movq %r14, %rdi
movl %ebp, %esi
movss 0xc(%rsp), %xmm0
movl %eax, %edx
callq 0x12c70
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/layout.c
// Function: Layout_space_to_screen
static int Layout_space_to_screen(lua_State *L)
    {
    nk_vec2_t v1, v2;
    nk_context_t *context = checkcontext(L, 1, NULL);
    if(echeckvec2(L, 2, &v1)) return argerror(L, 2);
    v2 = nk_layout_space_to_screen(context, v1);
    return pushvec2(L, &v2);
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x4448b(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x14160
testl %eax, %eax
je 0x22e3b
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x12630
movq %rbx, %rdi
movl $0x2, %esi
movq %rax, %rdx
callq 0x12460
jmp 0x22e59
movsd 0x8(%rsp), %xmm0
movq %r14, %rdi
callq 0x134b0
leaq 0x10(%rsp), %rsi
movlps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x126b0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/layout.c
// Function: Layout_space_to_local
static int Layout_space_to_local(lua_State *L)
    {
    nk_vec2_t v1, v2;
    nk_context_t *context = checkcontext(L, 1, NULL);
    if(echeckvec2(L, 2, &v1)) return argerror(L, 2);
    v2 = nk_layout_space_to_local(context, v1);
    return pushvec2(L, &v2);
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x4440e(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x14160
testl %eax, %eax
je 0x22eb8
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x12630
movq %rbx, %rdi
movl $0x2, %esi
movq %rax, %rdx
callq 0x12460
jmp 0x22ed6
movsd 0x8(%rsp), %xmm0
movq %r14, %rdi
callq 0x12760
leaq 0x10(%rsp), %rsi
movlps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x126b0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/layout.c
// Function: Layout_space_rect_to_screen
static int Layout_space_rect_to_screen(lua_State *L)
    {
    nk_rect_t r1, r2;
    nk_context_t *context = checkcontext(L, 1, NULL);
    if(echeckrect(L, 2, &r1)) return argerror(L, 2);
    r2 = nk_layout_space_rect_to_screen(context, r1);
    return pushrect(L, &r2);
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x44391(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x139f0
testl %eax, %eax
je 0x22f35
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x12630
movq %rbx, %rdi
movl $0x2, %esi
movq %rax, %rdx
callq 0x12460
jmp 0x22f5c
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movq %r14, %rdi
callq 0x13e40
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
leaq 0x18(%rsp), %rsi
movups %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x12710
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/layout.c
// Function: Layout_space_rect_to_local
static int Layout_space_rect_to_local(lua_State *L)
    {
    nk_rect_t r1, r2;
    nk_context_t *context = checkcontext(L, 1, NULL);
    if(echeckrect(L, 2, &r1)) return argerror(L, 2);
    r2 = nk_layout_space_rect_to_local(context, r1);
    return pushrect(L, &r2);
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x4430b(%rip), %rcx     # 0x67280
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x139f0
testl %eax, %eax
je 0x22fbb
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x12630
movq %rbx, %rdi
movl $0x2, %esi
movq %rax, %rdx
callq 0x12460
jmp 0x22fe2
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movq %r14, %rdi
callq 0x13110
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
leaq 0x18(%rsp), %rsi
movups %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x12710
addq $0x28, %rsp
popq %rbx
popq %r14
retq
nop