LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/silo.cpp
// Function: silo_get_text_width(nk_handle, float, char const*, int)
float silo_get_text_width(nk_handle handle, float height, const char *text, int len)
{
	int w, h;
	pango_layout_set_attributes(layout, nullptr);
	pango_layout_set_text(layout, text, len);
	pango_layout_get_pixel_size(layout, &w, &h);
	return w;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq 0x2ea1b(%rip), %rdi     # 0x321d0
xorl %esi, %esi
callq 0x2100
movq 0x2ea0d(%rip), %rdi     # 0x321d0
movq %r14, %rsi
movl %ebx, %edx
callq 0x2030
movq 0x2e9fc(%rip), %rdi     # 0x321d0
leaq 0x4(%rsp), %rbx
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x2180
cvtsi2ssl (%rbx), %xmm0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/silo.cpp
// Function: silo_set_font(char const*)
void silo_set_font(const char* fdsc)
{
	PangoFontDescription* font_desc = pango_font_description_from_string(fdsc);
	pango_layout_set_font_description(layout, nullptr);   // pango will silently not make a copy if 
							      // the new fontdesc matches the old one
							      // whether by pointer or deep compare.
							      // this makes sure the old one is deleted
							      // in favor of a new copy
	pango_layout_set_font_description(layout, font_desc);
	pango_font_map_load_font(font_map, context, font_desc);  // most examples do this, but does not appear
							      // to actually be necessary? There's not much
							      // info out there getting detailed on Pango.

	pango_font_description_free(font_desc); 	      // no longer needed, pango makes a copy
	return;
}

// Assembly:
pushq %rbx
callq 0x2070
movq %rax, %rbx
movq 0x2e9d0(%rip), %rdi     # 0x321d0
xorl %esi, %esi
callq 0x20f0
movq 0x2e9c2(%rip), %rdi     # 0x321d0
movq %rbx, %rsi
callq 0x20f0
movq 0x2e9bb(%rip), %rdi     # 0x321d8
movq 0x2e9bc(%rip), %rsi     # 0x321e0
movq %rbx, %rdx
callq 0x21d0
movq %rbx, %rdi
popq %rbx
jmp 0x22f0
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/silo.cpp
// Function: silo_get_font_height()
int silo_get_font_height()
{
	int w, h;
	pango_layout_set_attributes(layout, nullptr);
	pango_layout_set_text(layout, "Hello", 5);
	pango_layout_get_pixel_size(layout, &w, &h);
	return h;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq 0x2e98f(%rip), %rdi     # 0x321d0
xorl %esi, %esi
callq 0x2100
movq 0x2e981(%rip), %rdi     # 0x321d0
leaq 0x1f8a3(%rip), %rsi     # 0x230f9
movl $0x5, %edx
callq 0x2030
movq 0x2e969(%rip), %rdi     # 0x321d0
leaq 0xc(%rsp), %rsi
leaq 0x8(%rsp), %rbx
movq %rbx, %rdx
callq 0x2180
movl (%rbx), %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/silo.cpp
// Function: silo_init()
void silo_init()
{
	font_map = pango_cairo_font_map_get_default(); // pango-owned, don't delete
	context = pango_font_map_create_context(font_map);
	layout = pango_layout_new(context);

	silo_set_font("sans 15");
	return;
}

// Assembly:
pushq %rax
callq 0x2200
movq %rax, 0x2e94a(%rip)     # 0x321d8
movq %rax, %rdi
callq 0x2290
movq %rax, 0x2e943(%rip)     # 0x321e0
movq %rax, %rdi
callq 0x21a0
movq %rax, 0x2e924(%rip)     # 0x321d0
leaq 0x1f84c(%rip), %rdi     # 0x230ff
popq %rax
jmp 0x37f0
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_str_append_str_utf8
NK_API int
nk_str_append_str_utf8(struct nk_str *str, const char *text)
{
    int runes = 0;
    int byte_len = 0;
    int num_runes = 0;
    int glyph_len = 0;
    nk_rune unicode;
    if (!str || !text) return 0;

    glyph_len = byte_len = nk_utf_decode(text+byte_len, &unicode, 4);
    while (unicode != '\0' && glyph_len) {
        glyph_len = nk_utf_decode(text+byte_len, &unicode, 4);
        byte_len += glyph_len;
        num_runes++;
    }
    nk_str_append_text_char(str, text, byte_len);
    return runes;
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x6068
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x4(%rsp), %r12
movq %rsi, %rdi
movq %r12, %rsi
movl $0x4, %edx
callq 0x502b
movl %eax, %r15d
cmpl $0x0, (%r12)
setne %al
testl %r15d, %r15d
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x604f
leaq 0x4(%rsp), %r12
movslq %r15d, %r15
leaq (%rbx,%r15), %rdi
movq %r12, %rsi
movl $0x4, %edx
callq 0x502b
addl %eax, %r15d
cmpl $0x0, 0x4(%rsp)
je 0x604f
testl %eax, %eax
jne 0x602d
movq %r14, %rdi
movq %rbx, %rsi
movl %r15d, %edx
callq 0x5e9e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_str_insert_str_utf8
NK_API int
nk_str_insert_str_utf8(struct nk_str *str, int pos, const char *text)
{
    int runes = 0;
    int byte_len = 0;
    int num_runes = 0;
    int glyph_len = 0;
    nk_rune unicode;
    if (!str || !text) return 0;

    glyph_len = byte_len = nk_utf_decode(text+byte_len, &unicode, 4);
    while (unicode != '\0' && glyph_len) {
        glyph_len = nk_utf_decode(text+byte_len, &unicode, 4);
        byte_len += glyph_len;
        num_runes++;
    }
    nk_str_insert_at_rune(str, pos, text, byte_len);
    return runes;
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rdx, %rdx
sete %cl
orb %al, %cl
jne 0x66c6
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
leaq 0xc(%rsp), %r12
movq %rdx, %rdi
movq %r12, %rsi
movl $0x4, %edx
callq 0x502b
movl %eax, %r15d
cmpl $0x0, (%r12)
setne %al
testl %r15d, %r15d
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x66aa
leaq 0xc(%rsp), %r12
movslq %r15d, %r15
leaq (%rbx,%r15), %rdi
movq %r12, %rsi
movl $0x4, %edx
callq 0x502b
addl %eax, %r15d
cmpl $0x0, 0xc(%rsp)
je 0x66aa
testl %eax, %eax
jne 0x6688
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
movl %r15d, %ecx
callq 0x632b
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_input_button
NK_API void
nk_input_button(struct nk_context *ctx, enum nk_buttons id, int x, int y, int down)
{
    struct nk_mouse_button *btn;
    struct nk_input *in;
    NK_ASSERT(ctx);
    if (!ctx) return;
    in = &ctx->input;
    if (in->mouse.buttons[id].down == down) return;

    btn = &in->mouse.buttons[id];
    btn->clicked_pos.x = (float)x;
    btn->clicked_pos.y = (float)y;
    btn->down = down;
    btn->clicked++;
}

// Assembly:
testq %rdi, %rdi
je 0x846f
movl %esi, %eax
shlq $0x4, %rax
cmpl %r8d, 0x104(%rdi,%rax)
je 0x846e
addq %rdi, %rax
addq $0x104, %rax            # imm = 0x104
movd %ecx, %xmm0
movd %edx, %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
cvtdq2ps %xmm1, %xmm0
movlps %xmm0, 0x8(%rax)
movl %r8d, (%rax)
incl 0x4(%rax)
retq
pushq %rax
leaq 0x1e29c(%rip), %rdi     # 0x26713
leaq 0x1b255(%rip), %rsi     # 0x236d3
leaq 0x1c31f(%rip), %rcx     # 0x247a4
movl $0x36b5, %edx           # imm = 0x36B5
callq 0x20a0
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_input_has_mouse_click_down_in_rect
NK_API int
nk_input_has_mouse_click_down_in_rect(const struct nk_input *i, enum nk_buttons id,
    struct nk_rect b, int down)
{
    const struct nk_mouse_button *btn;
    if (!i) return nk_false;
    btn = &i->mouse.buttons[id];
    return nk_input_has_mouse_click_in_rect(i, id, b) && (btn->down == down);
}

// Assembly:
xorl %eax, %eax
testq %rdi, %rdi
je 0x86ad
movl %esi, %ecx
shlq $0x4, %rcx
movss 0x10c(%rdi,%rcx), %xmm2
ucomiss %xmm0, %xmm2
jb 0x86ad
movaps %xmm0, %xmm3
addss %xmm1, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x86ad
leaq (%rdi,%rcx), %rsi
addq $0x10c, %rsi            # imm = 0x10C
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movss 0x4(%rsi), %xmm2
ucomiss %xmm3, %xmm2
jb 0x86ad
addps %xmm1, %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
ucomiss %xmm2, %xmm0
jbe 0x86ad
addq $0x104, %rdi            # imm = 0x104
xorl %eax, %eax
cmpl %edx, (%rdi,%rcx)
sete %al
retq
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_input_is_mouse_click_down_in_rect
NK_API int
nk_input_is_mouse_click_down_in_rect(const struct nk_input *i, enum nk_buttons id,
    struct nk_rect b, int down)
{
    const struct nk_mouse_button *btn;
    if (!i) return nk_false;
    btn = &i->mouse.buttons[id];
    return (nk_input_has_mouse_click_down_in_rect(i, id, b, down) &&
            btn->clicked) ? nk_true : nk_false;
}

// Assembly:
xorl %eax, %eax
testq %rdi, %rdi
je 0x877b
movl %esi, %ecx
shlq $0x4, %rcx
movss 0x10c(%rdi,%rcx), %xmm2
ucomiss %xmm0, %xmm2
jb 0x877b
movaps %xmm0, %xmm3
addss %xmm1, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x877b
leaq (%rdi,%rcx), %rsi
addq $0x10c, %rsi            # imm = 0x10C
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movss 0x4(%rsi), %xmm2
ucomiss %xmm3, %xmm2
jb 0x877b
addps %xmm1, %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
ucomiss %xmm2, %xmm0
jbe 0x877b
addq $0x104, %rdi            # imm = 0x104
cmpl %edx, (%rdi,%rcx)
jne 0x877b
xorl %eax, %eax
cmpl $0x0, 0x4(%rdi,%rcx)
setne %al
retq
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_style_set_cursor
NK_API int
nk_style_set_cursor(struct nk_context *ctx, enum nk_style_cursor c)
{
    struct nk_style *style;
    NK_ASSERT(ctx);
    if (!ctx) return 0;
    style = &ctx->style;
    if (style->cursors[c]) {
        style->cursor_active = style->cursors[c];
        return 1;
    }
    return 0;
}

// Assembly:
testq %rdi, %rdi
je 0xa611
movl %esi, %eax
movq 0x170(%rdi,%rax,8), %rax
testq %rax, %rax
je 0xa60e
movq %rax, 0x1a8(%rdi)
movl $0x1, %eax
retq
xorl %eax, %eax
retq
pushq %rax
leaq 0x1c0fa(%rip), %rdi     # 0x26713
leaq 0x190b3(%rip), %rsi     # 0x236d3
leaq 0x1a6d5(%rip), %rcx     # 0x24cfc
movl $0x3a3f, %edx           # imm = 0x3A3F
callq 0x20a0
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_init_fixed
NK_API int
nk_init_fixed(struct nk_context *ctx, void *memory, nk_size size,
    const struct nk_user_font *font)
{
    NK_ASSERT(memory);
    if (!memory) return 0;
    nk_setup(ctx, font);
    nk_buffer_init_fixed(&ctx->memory, memory, size);
    ctx->use_pool = nk_false;
    return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rsi, %rsi
je 0xa83f
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rcx, %rsi
callq 0xa85e
leaq 0x1ee0(%rbx), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x5638
movl $0x0, 0x3f84(%rbx)
movl $0x1, %eax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x1a5a0(%rip), %rdi     # 0x24de6
leaq 0x18e86(%rip), %rsi     # 0x236d3
leaq 0x1a599(%rip), %rcx     # 0x24ded
movl $0x3a8e, %edx           # imm = 0x3A8E
callq 0x20a0
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_window_has_focus
NK_API int
nk_window_has_focus(const struct nk_context *ctx)
{
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current) return 0;
    return ctx->current == ctx->active;
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0xd87b
movq 0x3fe8(%rdi), %rcx
testq %rcx, %rcx
je 0xd89a
cmpq $0x0, 0xa8(%rcx)
je 0xd8b9
xorl %eax, %eax
cmpq 0x3fe0(%rdi), %rcx
sete %al
popq %rcx
retq
leaq 0x18e91(%rip), %rdi     # 0x26713
leaq 0x15e4a(%rip), %rsi     # 0x236d3
leaq 0x17bea(%rip), %rcx     # 0x2547a
movl $0x40a0, %edx           # imm = 0x40A0
callq 0x20a0
leaq 0x178fa(%rip), %rdi     # 0x2519b
leaq 0x15e2b(%rip), %rsi     # 0x236d3
leaq 0x17bcb(%rip), %rcx     # 0x2547a
movl $0x40a1, %edx           # imm = 0x40A1
callq 0x20a0
leaq 0x17a57(%rip), %rdi     # 0x25317
leaq 0x15e0c(%rip), %rsi     # 0x236d3
leaq 0x17bac(%rip), %rcx     # 0x2547a
movl $0x40a2, %edx           # imm = 0x40A2
callq 0x20a0
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_window_is_hovered
NK_API int
nk_window_is_hovered(struct nk_context *ctx)
{
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    if (!ctx || !ctx->current) return 0;
    if(ctx->current->flags & NK_WINDOW_HIDDEN)
        return 0;
    return nk_input_is_mouse_hovering_rect(&ctx->input, ctx->current->bounds);
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0xd93a
movq 0x3fe8(%rdi), %rcx
testq %rcx, %rcx
je 0xd959
xorl %eax, %eax
testb $0x20, 0x49(%rcx)
jne 0xd938
movsd 0x4c(%rcx), %xmm0
movss 0x144(%rdi), %xmm2
ucomiss %xmm0, %xmm2
jb 0xd938
movsd 0x54(%rcx), %xmm1
movaps %xmm0, %xmm3
addss %xmm1, %xmm3
ucomiss %xmm2, %xmm3
jbe 0xd938
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movss 0x148(%rdi), %xmm2
ucomiss %xmm3, %xmm2
jb 0xd938
addps %xmm1, %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
xorl %eax, %eax
ucomiss %xmm2, %xmm0
seta %al
popq %rcx
retq
leaq 0x18dd2(%rip), %rdi     # 0x26713
leaq 0x15d8b(%rip), %rsi     # 0x236d3
leaq 0x17b5e(%rip), %rcx     # 0x254ad
movl $0x40a9, %edx           # imm = 0x40A9
callq 0x20a0
leaq 0x1783b(%rip), %rdi     # 0x2519b
leaq 0x15d6c(%rip), %rsi     # 0x236d3
leaq 0x17b3f(%rip), %rcx     # 0x254ad
movl $0x40aa, %edx           # imm = 0x40AA
callq 0x20a0
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_popup_close
NK_API void
nk_popup_close(struct nk_context *ctx)
{
    struct nk_window *popup;
    NK_ASSERT(ctx);
    if (!ctx || !ctx->current) return;

    popup = ctx->current;
    NK_ASSERT(popup->parent);
    NK_ASSERT(popup->layout->type & NK_PANEL_SET_POPUP);
    popup->flags |= NK_WINDOW_HIDDEN;
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0xe3bd
movq 0x3fe8(%rdi), %rax
testq %rax, %rax
je 0xe3bb
cmpq $0x0, 0x1d0(%rax)
je 0xe3dc
movq 0xa8(%rax), %rcx
testb $-0xc, (%rcx)
je 0xe3fb
orb $0x20, 0x49(%rax)
popq %rax
retq
leaq 0x1834f(%rip), %rdi     # 0x26713
leaq 0x15308(%rip), %rsi     # 0x236d3
leaq 0x175bd(%rip), %rcx     # 0x2598f
movl $0x4250, %edx           # imm = 0x4250
callq 0x20a0
leaq 0x175d5(%rip), %rdi     # 0x259b8
leaq 0x152e9(%rip), %rsi     # 0x236d3
leaq 0x1759e(%rip), %rcx     # 0x2598f
movl $0x4254, %edx           # imm = 0x4254
callq 0x20a0
leaq 0x175c4(%rip), %rdi     # 0x259c6
leaq 0x152ca(%rip), %rsi     # 0x236d3
leaq 0x1757f(%rip), %rcx     # 0x2598f
movl $0x4255, %edx           # imm = 0x4255
callq 0x20a0
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_widget_fitting
NK_API enum nk_widget_layout_states
nk_widget_fitting(struct nk_rect *bounds, struct nk_context *ctx,
    struct nk_vec2 item_padding)
{
    /* update the bounds to stand without padding  */
    struct nk_window *win;
    struct nk_style *style;
    struct nk_panel *layout;
    enum nk_widget_layout_states state;
    struct nk_vec2 panel_padding;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current || !ctx->current->layout)
        return NK_WIDGET_INVALID;

    win = ctx->current;
    style = &ctx->style;
    layout = win->layout;
    state = nk_widget(bounds, ctx);

    panel_padding = nk_panel_get_padding(style, layout->type);
    if (layout->row.index == 1) {
        bounds->w += panel_padding.x;
        bounds->x -= panel_padding.x;
    } else bounds->x -= item_padding.x;

    if (layout->row.index == layout->row.columns)
        bounds->w += panel_padding.x;
    else bounds->w += item_padding.x;
    return state;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
testq %rsi, %rsi
je 0xee23
movq 0x3fe8(%rsi), %rax
testq %rax, %rax
je 0xee42
movaps %xmm0, (%rsp)
movq 0xa8(%rax), %r15
testq %r15, %r15
je 0xee61
movq %rdi, %rbx
leaq 0x168(%rsi), %r14
callq 0xfe72
movl %eax, %ebp
movl (%r15), %esi
movq %r14, %rdi
callq 0xfaec
movl 0x74(%r15), %eax
cmpl $0x1, %eax
jne 0xeded
movss 0x8(%rbx), %xmm1
addss %xmm0, %xmm1
movss %xmm1, 0x8(%rbx)
movaps %xmm0, %xmm1
movaps (%rsp), %xmm3
jmp 0xedf4
movaps (%rsp), %xmm3
movaps %xmm3, %xmm1
movss (%rbx), %xmm2
subss %xmm1, %xmm2
movss %xmm2, (%rbx)
cmpl 0x80(%r15), %eax
je 0xee0c
movaps %xmm3, %xmm0
addss 0x8(%rbx), %xmm0
movss %xmm0, 0x8(%rbx)
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x178e9(%rip), %rdi     # 0x26713
leaq 0x148a2(%rip), %rsi     # 0x236d3
leaq 0x17b6e(%rip), %rcx     # 0x269a6
movl $0x4af3, %edx           # imm = 0x4AF3
callq 0x20a0
leaq 0x16352(%rip), %rdi     # 0x2519b
leaq 0x14883(%rip), %rsi     # 0x236d3
leaq 0x17b4f(%rip), %rcx     # 0x269a6
movl $0x4af4, %edx           # imm = 0x4AF4
callq 0x20a0
leaq 0x164af(%rip), %rdi     # 0x25317
leaq 0x14864(%rip), %rsi     # 0x236d3
leaq 0x17b30(%rip), %rcx     # 0x269a6
movl $0x4af5, %edx           # imm = 0x4AF5
callq 0x20a0
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_tree_state_pop
NK_API void
nk_tree_state_pop(struct nk_context *ctx)
{
    struct nk_window *win = 0;
    struct nk_panel *layout = 0;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current || !ctx->current->layout)
        return;

    win = ctx->current;
    layout = win->layout;
    layout->at_x -= ctx->style.tab.indent + ctx->style.window.padding.x;
    layout->bounds.w += ctx->style.tab.indent + ctx->style.window.padding.x;
    NK_ASSERT(layout->row.tree_depth);
    layout->row.tree_depth--;
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x1224e
movq 0x3fe8(%rdi), %rax
testq %rax, %rax
je 0x1226d
movq 0xa8(%rax), %rax
testq %rax, %rax
je 0x1228c
movss 0x1a98(%rdi), %xmm0
addss 0x1ea4(%rdi), %xmm0
movss 0x28(%rax), %xmm1
subss %xmm0, %xmm1
movss %xmm1, 0x28(%rax)
addss 0x10(%rax), %xmm0
movss %xmm0, 0x10(%rax)
movl 0xb0(%rax), %ecx
testl %ecx, %ecx
je 0x122ab
decl %ecx
movl %ecx, 0xb0(%rax)
popq %rax
retq
leaq 0x144be(%rip), %rdi     # 0x26713
leaq 0x11477(%rip), %rsi     # 0x236d3
leaq 0x142a9(%rip), %rcx     # 0x2650c
movl $0x4839, %edx           # imm = 0x4839
callq 0x20a0
leaq 0x12f27(%rip), %rdi     # 0x2519b
leaq 0x11458(%rip), %rsi     # 0x236d3
leaq 0x1428a(%rip), %rcx     # 0x2650c
movl $0x483a, %edx           # imm = 0x483A
callq 0x20a0
leaq 0x13084(%rip), %rdi     # 0x25317
leaq 0x11439(%rip), %rsi     # 0x236d3
leaq 0x1426b(%rip), %rcx     # 0x2650c
movl $0x483b, %edx           # imm = 0x483B
callq 0x20a0
leaq 0x163a0(%rip), %rdi     # 0x28652
leaq 0x1141a(%rip), %rsi     # 0x236d3
leaq 0x1424c(%rip), %rcx     # 0x2650c
movl $0x4843, %edx           # imm = 0x4843
callq 0x20a0
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_draw_button(nk_command_buffer*, nk_rect const*, unsigned int, nk_style_button const*)
NK_LIB const struct nk_style_item*
nk_draw_button(struct nk_command_buffer *out,
    const struct nk_rect *bounds, nk_flags state,
    const struct nk_style_button *style)
{
    const struct nk_style_item *background;
    if (state & NK_WIDGET_STATE_HOVER)
        background = &style->hover;
    else if (state & NK_WIDGET_STATE_ACTIVED)
        background = &style->active;
    else background = &style->normal;

    if (background->type == NK_STYLE_ITEM_IMAGE) {
        nk_draw_image(out, *bounds, &background->data.image, nk_white);
    } else {
        nk_fill_rect(out, *bounds, style->rounding, background->data.color);
        nk_stroke_rect(out, *bounds, style->rounding, style->border, style->border_color);
    }
    return background;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdi, %r14
movl %edx, %eax
addl %edx, %eax
andl $0x40, %eax
testb $0x10, %dl
movl $0x20, %ecx
cmovel %eax, %ecx
leaq (%r15,%rcx), %rbx
cmpl $0x1, (%r15,%rcx)
movsd (%rsi), %xmm0
movsd 0x8(%rsi), %xmm1
jne 0x14e9d
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7c36
jmp 0x14ed6
movq %rsi, %r12
movss 0x7c(%r15), %xmm2
movl 0x8(%rbx), %esi
movq %r14, %rdi
callq 0x7178
movsd (%r12), %xmm0
movsd 0x8(%r12), %xmm1
movss 0x7c(%r15), %xmm2
movss 0x78(%r15), %xmm3
movl 0x60(%r15), %esi
movq %r14, %rdi
callq 0x702d
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_check_text
NK_API int
nk_check_text(struct nk_context *ctx, const char *text, int len, int active)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;
    const struct nk_style *style;

    struct nk_rect bounds;
    enum nk_widget_layout_states state;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current || !ctx->current->layout)
        return active;

    win = ctx->current;
    style = &ctx->style;
    layout = win->layout;

    state = nk_widget(&bounds, ctx);
    if (!state) return active;
    in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    nk_do_toggle(&ctx->last_widget_state, &win->buffer, bounds, &active,
        text, len, NK_TOGGLE_CHECK, &style->checkbox, in, style->font);
    return active;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, 0x4(%rsp)
testq %rdi, %rdi
je 0x1559a
movq %rdi, %rbx
movq 0x3fe8(%rdi), %r15
testq %r15, %r15
je 0x155b9
movq 0xa8(%r15), %r13
testq %r13, %r13
je 0x155d8
movl %ecx, %r12d
movl %edx, %ebp
movq %rsi, %r14
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0xfe72
testl %eax, %eax
je 0x15588
cmpl $0x2, %eax
jne 0x15532
xorl %eax, %eax
jmp 0x1553d
xorl %eax, %eax
testb $0x10, 0x5(%r13)
cmoveq %rbx, %rax
leaq 0x1f70(%rbx), %rdi
addq $0x68, %r15
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
subq $0x8, %rsp
leaq 0xc(%rsp), %r12
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
xorl %r9d, %r9d
pushq 0x168(%rbx)
addq $0x4c8, %rbx            # imm = 0x4C8
pushq %rax
pushq %rbx
callq 0x155f7
addq $0x20, %rsp
movl (%r12), %r12d
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x11172(%rip), %rdi     # 0x26713
leaq 0xe12b(%rip), %rsi      # 0x236d3
leaq 0x11b46(%rip), %rcx     # 0x270f5
movl $0x5030, %edx           # imm = 0x5030
callq 0x20a0
leaq 0xfbdb(%rip), %rdi      # 0x2519b
leaq 0xe10c(%rip), %rsi      # 0x236d3
leaq 0x11b27(%rip), %rcx     # 0x270f5
movl $0x5031, %edx           # imm = 0x5031
callq 0x20a0
leaq 0xfd38(%rip), %rdi      # 0x25317
leaq 0xe0ed(%rip), %rsi      # 0x236d3
leaq 0x11b08(%rip), %rcx     # 0x270f5
movl $0x5032, %edx           # imm = 0x5032
callq 0x20a0
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_checkbox_text
NK_API int
nk_checkbox_text(struct nk_context *ctx, const char *text, int len, int *active)
{
    int old_val;
    NK_ASSERT(ctx);
    NK_ASSERT(text);
    NK_ASSERT(active);
    if (!ctx || !text || !active) return 0;
    old_val = *active;
    *active = nk_check_text(ctx, text, len, *active);
    return old_val != *active;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x15ce1
testq %rsi, %rsi
je 0x15d00
movq %rcx, %rbx
testq %rcx, %rcx
je 0x15d1f
movl (%rbx), %ebp
movl %ebp, %ecx
callq 0x154d2
movl %eax, (%rbx)
xorl %ecx, %ecx
cmpl %eax, %ebp
setne %cl
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x10a2b(%rip), %rdi     # 0x26713
leaq 0xd9e4(%rip), %rsi      # 0x236d3
leaq 0x114a3(%rip), %rcx     # 0x27199
movl $0x5053, %edx           # imm = 0x5053
callq 0x20a0
leaq 0xe014(%rip), %rdi      # 0x23d1b
leaq 0xd9c5(%rip), %rsi      # 0x236d3
leaq 0x11484(%rip), %rcx     # 0x27199
movl $0x5054, %edx           # imm = 0x5054
callq 0x20a0
leaq 0x114b7(%rip), %rdi     # 0x271dd
leaq 0xd9a6(%rip), %rsi      # 0x236d3
leaq 0x11465(%rip), %rcx     # 0x27199
movl $0x5055, %edx           # imm = 0x5055
callq 0x20a0
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_option_text
NK_API int
nk_option_text(struct nk_context *ctx, const char *text, int len, int is_active)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;
    const struct nk_style *style;

    struct nk_rect bounds;
    enum nk_widget_layout_states state;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current || !ctx->current->layout)
        return is_active;

    win = ctx->current;
    style = &ctx->style;
    layout = win->layout;

    state = nk_widget(&bounds, ctx);
    if (!state) return (int)state;
    in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    nk_do_toggle(&ctx->last_widget_state, &win->buffer, bounds, &is_active,
        text, len, NK_TOGGLE_OPTION, &style->option, in, style->font);
    return is_active;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %ecx, 0xc(%rsp)
testq %rdi, %rdi
je 0x15f68
movq %rdi, %rbx
movq 0x3fe8(%rdi), %r15
testq %r15, %r15
je 0x15f87
movq 0xa8(%r15), %r12
testq %r12, %r12
je 0x15fa6
movl %edx, %ebp
movq %rsi, %r14
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0xfe72
testl %eax, %eax
je 0x15f5b
cmpl $0x2, %eax
jne 0x15f01
xorl %eax, %eax
jmp 0x15f0d
xorl %eax, %eax
testb $0x10, 0x5(%r12)
cmoveq %rbx, %rax
leaq 0x1f70(%rbx), %rdi
addq $0x68, %r15
movsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
subq $0x8, %rsp
leaq 0x14(%rsp), %r12
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
movl $0x1, %r9d
pushq 0x168(%rbx)
addq $0x3d8, %rbx            # imm = 0x3D8
pushq %rax
pushq %rbx
callq 0x155f7
addq $0x20, %rsp
movl (%r12), %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x107a4(%rip), %rdi     # 0x26713
leaq 0xd75d(%rip), %rsi      # 0x236d3
leaq 0x112ce(%rip), %rcx     # 0x2724b
movl $0x508f, %edx           # imm = 0x508F
callq 0x20a0
leaq 0xf20d(%rip), %rdi      # 0x2519b
leaq 0xd73e(%rip), %rsi      # 0x236d3
leaq 0x112af(%rip), %rcx     # 0x2724b
movl $0x5090, %edx           # imm = 0x5090
callq 0x20a0
leaq 0xf36a(%rip), %rdi      # 0x25317
leaq 0xd71f(%rip), %rsi      # 0x236d3
leaq 0x11290(%rip), %rcx     # 0x2724b
movl $0x5091, %edx           # imm = 0x5091
callq 0x20a0
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_selectable_text
NK_API int
nk_selectable_text(struct nk_context *ctx, const char *str, int len,
    nk_flags align, int *value)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;
    const struct nk_style *style;

    enum nk_widget_layout_states state;
    struct nk_rect bounds;

    NK_ASSERT(ctx);
    NK_ASSERT(value);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current || !ctx->current->layout || !value)
        return 0;

    win = ctx->current;
    layout = win->layout;
    style = &ctx->style;

    state = nk_widget(&bounds, ctx);
    if (!state) return 0;
    in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    return nk_do_selectable(&ctx->last_widget_state, &win->buffer, bounds,
                str, len, align, value, &style->selectable, in, style->font);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x1616c
testq %r8, %r8
je 0x1618b
movq %rdi, %rbx
movq 0x3fe8(%rdi), %r13
testq %r13, %r13
je 0x161aa
movq %r8, (%rsp)
movq 0xa8(%r13), %rbp
testq %rbp, %rbp
je 0x161c9
movq %rsi, %r14
movl %edx, %r12d
movl %ecx, %r15d
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0xfe72
testl %eax, %eax
je 0x1615d
cmpl $0x2, %eax
jne 0x16110
xorl %eax, %eax
jmp 0x1611a
xorl %eax, %eax
testb $0x10, 0x5(%rbp)
cmoveq %rbx, %rax
movl %r15d, %r8d
movl %r12d, %ecx
movq %r14, %rdx
movq (%rsp), %r9
leaq 0x1f70(%rbx), %rdi
addq $0x68, %r13
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
subq $0x8, %rsp
movq %r13, %rsi
pushq 0x168(%rbx)
addq $0x5b8, %rbx            # imm = 0x5B8
pushq %rax
pushq %rbx
callq 0x161e8
addq $0x20, %rsp
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x105a0(%rip), %rdi     # 0x26713
leaq 0xd559(%rip), %rsi      # 0x236d3
leaq 0x1114b(%rip), %rcx     # 0x272cc
movl $0x5180, %edx           # imm = 0x5180
callq 0x20a0
leaq 0x1118a(%rip), %rdi     # 0x2731c
leaq 0xd53a(%rip), %rsi      # 0x236d3
leaq 0x1112c(%rip), %rcx     # 0x272cc
movl $0x5181, %edx           # imm = 0x5181
callq 0x20a0
leaq 0xefea(%rip), %rdi      # 0x2519b
leaq 0xd51b(%rip), %rsi      # 0x236d3
leaq 0x1110d(%rip), %rcx     # 0x272cc
movl $0x5182, %edx           # imm = 0x5182
callq 0x20a0
leaq 0xf147(%rip), %rdi      # 0x25317
leaq 0xd4fc(%rip), %rsi      # 0x236d3
leaq 0x110ee(%rip), %rcx     # 0x272cc
movl $0x5183, %edx           # imm = 0x5183
callq 0x20a0
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_chart_add_slot_colored
NK_API void
nk_chart_add_slot_colored(struct nk_context *ctx, const enum nk_chart_type type,
    struct nk_color color, struct nk_color highlight,
    int count, float min_value, float max_value)
{
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    NK_ASSERT(ctx->current->layout->chart.slot < NK_CHART_MAX_SLOT);
    if (!ctx || !ctx->current || !ctx->current->layout) return;
    if (ctx->current->layout->chart.slot >= NK_CHART_MAX_SLOT) return;

    /* add another slot into the graph */
    {struct nk_chart *chart = &ctx->current->layout->chart;
    struct nk_chart_slot *slot = &chart->slots[chart->slot++];
    slot->type = type;
    slot->count = count;
    slot->color = color;
    slot->highlight = highlight;
    slot->min = NK_MIN(min_value, max_value);
    slot->max = NK_MAX(min_value, max_value);
    slot->range = slot->max - slot->min;}
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x1bda7
movq 0x3fe8(%rdi), %rax
testq %rax, %rax
je 0x1bdc6
movq 0xa8(%rax), %rax
testq %rax, %rax
je 0x1bde5
movslq 0xf8(%rax), %rdi
cmpq $0x4, %rdi
jge 0x1be04
leal 0x1(%rdi), %r9d
movl %r9d, 0xf8(%rax)
leaq (%rdi,%rdi,4), %rdi
movl %esi, 0x10c(%rax,%rdi,8)
movl %r8d, 0x124(%rax,%rdi,8)
movl %edx, 0x110(%rax,%rdi,8)
movl %ecx, 0x114(%rax,%rdi,8)
movaps %xmm0, %xmm2
minss %xmm1, %xmm2
movss %xmm2, 0x118(%rax,%rdi,8)
maxss %xmm0, %xmm1
movss %xmm1, 0x11c(%rax,%rdi,8)
subss %xmm2, %xmm1
movss %xmm1, 0x120(%rax,%rdi,8)
popq %rax
retq
leaq 0xa965(%rip), %rdi      # 0x26713
leaq 0x791e(%rip), %rsi      # 0x236d3
leaq 0xbbe7(%rip), %rcx      # 0x279a3
movl $0x5e1e, %edx           # imm = 0x5E1E
callq 0x20a0
leaq 0x93ce(%rip), %rdi      # 0x2519b
leaq 0x78ff(%rip), %rsi      # 0x236d3
leaq 0xbbc8(%rip), %rcx      # 0x279a3
movl $0x5e1f, %edx           # imm = 0x5E1F
callq 0x20a0
leaq 0x952b(%rip), %rdi      # 0x25317
leaq 0x78e0(%rip), %rsi      # 0x236d3
leaq 0xbba9(%rip), %rcx      # 0x279a3
movl $0x5e20, %edx           # imm = 0x5E20
callq 0x20a0
leaq 0xbc1b(%rip), %rdi      # 0x27a26
leaq 0x78c1(%rip), %rsi      # 0x236d3
leaq 0xbb8a(%rip), %rcx      # 0x279a3
movl $0x5e21, %edx           # imm = 0x5E21
callq 0x20a0
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_button_behavior(unsigned int*, nk_rect, nk_input const*, nk_button_behavior)
NK_LIB int
nk_button_behavior(nk_flags *state, struct nk_rect r,
    const struct nk_input *i, enum nk_button_behavior behavior)
{
    int ret = 0;
    nk_widget_state_reset(state);
    if (!i) return 0;
    if (nk_input_is_mouse_hovering_rect(i, r)) {
        *state = NK_WIDGET_STATE_HOVERED;
        if (nk_input_is_mouse_down(i, NK_BUTTON_LEFT))
            *state = NK_WIDGET_STATE_ACTIVE;
        if (nk_input_has_mouse_click_in_rect(i, NK_BUTTON_LEFT, r)) {
            ret = (behavior != NK_BUTTON_DEFAULT) ?
                nk_input_is_mouse_down(i, NK_BUTTON_LEFT):
#ifdef NK_BUTTON_TRIGGER_ON_RELEASE
                nk_input_is_mouse_released(i, NK_BUTTON_LEFT);
#else
                nk_input_is_mouse_pressed(i, NK_BUTTON_LEFT);
#endif
        }
    }
    if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(i, r))
        *state |= NK_WIDGET_STATE_ENTERED;
    else if (nk_input_is_mouse_prev_hovering_rect(i, r))
        *state |= NK_WIDGET_STATE_LEFT;
    return ret;
}

// Assembly:
movl (%rdi), %ecx
andl $0x2, %ecx
orl $0x4, %ecx
movl %ecx, (%rdi)
testq %rsi, %rsi
je 0x1d6f8
movss 0x144(%rsi), %xmm3
xorl %eax, %eax
ucomiss %xmm0, %xmm3
movaps %xmm1, %xmm2
addss %xmm0, %xmm2
jb 0x1d70c
ucomiss %xmm3, %xmm2
jbe 0x1d70c
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movss 0x148(%rsi), %xmm5
ucomiss %xmm3, %xmm5
jb 0x1d70c
movaps %xmm0, %xmm4
addps %xmm1, %xmm4
shufps $0x55, %xmm4, %xmm4     # xmm4 = xmm4[1,1,1,1]
ucomiss %xmm5, %xmm4
jbe 0x1d70c
movl $0x12, (%rdi)
xorl %ecx, %ecx
cmpl $0x0, 0x104(%rsi)
setne %cl
shll $0x4, %ecx
addl $0x12, %ecx
movl %ecx, (%rdi)
movss 0x10c(%rsi), %xmm5
ucomiss %xmm0, %xmm5
jb 0x1d70c
ucomiss %xmm5, %xmm2
jbe 0x1d70c
movss 0x110(%rsi), %xmm5
ucomiss %xmm3, %xmm5
jb 0x1d70c
ucomiss %xmm5, %xmm4
jbe 0x1d70c
movl 0x104(%rsi), %r8d
testl %edx, %edx
je 0x1d6fb
movl %r8d, %eax
jmp 0x1d70c
xorl %eax, %eax
retq
testl %r8d, %r8d
jne 0x1d70c
xorl %eax, %eax
cmpl $0x0, 0x108(%rsi)
setne %al
movss 0x14c(%rsi), %xmm3
testb $0x10, %cl
jne 0x1d749
ucomiss %xmm0, %xmm3
jb 0x1d748
ucomiss %xmm3, %xmm2
jbe 0x1d748
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movss 0x150(%rsi), %xmm2
ucomiss %xmm3, %xmm2
jb 0x1d748
addps %xmm1, %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movl $0x40, %edx
ucomiss %xmm2, %xmm0
ja 0x1d77b
retq
ucomiss %xmm0, %xmm3
movl $0x8, %edx
jb 0x1d77b
ucomiss %xmm3, %xmm2
jbe 0x1d77b
movaps %xmm0, %xmm5
shufps $0x55, %xmm0, %xmm5     # xmm5 = xmm5[1,1],xmm0[1,1]
movss 0x150(%rsi), %xmm4
ucomiss %xmm5, %xmm4
jb 0x1d77b
movaps %xmm0, %xmm5
addps %xmm1, %xmm5
shufps $0x55, %xmm5, %xmm5     # xmm5 = xmm5[1,1,1,1]
ucomiss %xmm4, %xmm5
ja 0x1d719
orl %edx, %ecx
movl %ecx, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/space222[P]silo/./nuklear.h
// Function: nk_draw_scrollbar(nk_command_buffer*, unsigned int, nk_style_scrollbar const*, nk_rect const*, nk_rect const*)
NK_LIB void
nk_draw_scrollbar(struct nk_command_buffer *out, nk_flags state,
    const struct nk_style_scrollbar *style, const struct nk_rect *bounds,
    const struct nk_rect *scroll)
{
    const struct nk_style_item *background;
    const struct nk_style_item *cursor;

    /* select correct colors/images to draw */
    if (state & NK_WIDGET_STATE_ACTIVED) {
        background = &style->active;
        cursor = &style->cursor_active;
    } else if (state & NK_WIDGET_STATE_HOVER) {
        background = &style->hover;
        cursor = &style->cursor_hover;
    } else {
        background = &style->normal;
        cursor = &style->cursor_normal;
    }

    /* draw background */
    if (background->type == NK_STYLE_ITEM_COLOR) {
        nk_fill_rect(out, *bounds, style->rounding, background->data.color);
        nk_stroke_rect(out, *bounds, style->rounding, style->border, style->border_color);
    } else {
        nk_draw_image(out, *bounds, &background->data.image, nk_white);
    }

    /* draw cursor */
    if (cursor->type == NK_STYLE_ITEM_COLOR) {
        nk_fill_rect(out, *scroll, style->rounding_cursor, cursor->data.color);
        nk_stroke_rect(out, *scroll, style->rounding_cursor, style->border_cursor, style->cursor_border_color);
    } else nk_draw_image(out, *scroll, &cursor->data.image, nk_white);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %r15
movq %rcx, %r13
movq %rdx, %r14
movq %rdi, %rbx
movl %esi, %eax
addl %eax, %eax
andl $0x20, %eax
leaq 0x68(%rax), %rcx
testb $0x20, %sil
movl $0xa8, %r12d
cmoveq %rcx, %r12
movl $0x40, %ecx
cmovel %eax, %ecx
leaq (%rdx,%rcx), %rsi
addq %rdx, %r12
cmpl $0x0, (%rdx,%rcx)
movsd (%r13), %xmm0
movsd 0x8(%r13), %xmm1
je 0x1ff76
addq $0x8, %rsi
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7c36
jmp 0x1ffb4
movss 0xd0(%r14), %xmm2
movl 0x8(%rsi), %esi
movq %rbx, %rdi
callq 0x7178
movsd (%r13), %xmm0
movsd 0x8(%r13), %xmm1
movss 0xd0(%r14), %xmm2
movss 0xcc(%r14), %xmm3
movl 0x60(%r14), %esi
movq %rbx, %rdi
callq 0x702d
cmpl $0x0, (%r12)
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
je 0x1ffe3
addq $0x8, %r12
movq %rbx, %rdi
movq %r12, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x7c36
movss 0xd8(%r14), %xmm2
movl 0x8(%r12), %esi
movq %rbx, %rdi
callq 0x7178
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movss 0xd8(%r14), %xmm2
movss 0xd4(%r14), %xmm3
movl 0xc8(%r14), %esi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x702d
// File: /workspace/github_c_makefile_star2_O3/chatziko-k08[P]lecture-code/programs/cat/cat.c
// Function: process_file
void process_file(char* filename) {
	// Διαβάζουμε το αρχείο ή την είσοδο. Το io.h module κάνει όλη τη δουλειά.
	Vector vec = strcmp(filename, "-") == 0
		? io_read_stream_as_vector(stdin)
		: io_read_file_as_vector(filename);

	if (vec == NULL) {
		fprintf(stderr, "cat: %s: cannot read file\n", filename);
		return;
	}

	io_write_vector_to_stream(stdout, vec);
	vector_destroy(vec);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x2d, (%rdi)
jne 0x11de
cmpb $0x0, 0x1(%rbx)
je 0x120f
movq %rbx, %rdi
callq 0x1315
movq %rax, %r14
testq %rax, %rax
je 0x1220
movq 0x2ddb(%rip), %rax      # 0x3fd0
movq (%rax), %rdi
movq %r14, %rsi
callq 0x134f
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x15e5
movq 0x2dc2(%rip), %rax      # 0x3fd8
movq (%rax), %rdi
callq 0x1290
jmp 0x11e6
movq 0x2dd1(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0xdd5(%rip), %rsi       # 0x2006
movq %rbx, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1080
// File: /workspace/github_c_makefile_star2_O3/chatziko-k08[P]lecture-code/programs/cat/cat.c
// Function: main
int main(int argc, char* argv[]) {
	for (int i = 1; i < argc; i++)
		process_file(argv[i]);

	// χωρίς κανένα αρχείο διαβάζουμε από την είσοδο
	if (argc == 1)
		process_file("-");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
cmpl $0x2, %edi
jl 0x126e
movq %rsi, %r14
movl %ebx, %r15d
movl $0x1, %r12d
movq (%r14,%r12,8), %rdi
callq 0x11cc
incq %r12
cmpq %r12, %r15
jne 0x125d
cmpl $0x1, %ebx
jne 0x127f
leaq 0xd8a(%rip), %rdi       # 0x2004
callq 0x11cc
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/chatziko-k08[P]lecture-code/programs/cat/io.c
// Function: io_read_stream_as_vector
Vector io_read_stream_as_vector(FILE* stream) {
	// TODO: θεωρούμε ότι κάθε γραμμή έχει max 500 χαρακτήρες. Πώς μπορούμε να αφαιρέσουμε αυτόν τον περιορισμό;
	int max_len = 500;
	char line[max_len];

	Vector vec = vector_create(0, free);		// αυτόματο free για κάθε στοιχείο που αφαιρείται

	while (fgets(line, max_len, stream)) {
		// αφαίρεση του newline, αν υπάρχει
		char* newline = strchr(line, '\n');
		if (newline != NULL)
			*newline = '\0';

		// προσθήκη στο vector
		vector_insert_last(vec, strdup(line));
	}

	return vec;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rdi, %rbx
movq 0x2d12(%rip), %rsi      # 0x3fb8
xorl %edi, %edi
callq 0x13f8
movq %rax, %r14
movq %rsp, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq %rbx, %rdx
callq 0x1060
testq %rax, %rax
je 0x1305
movq %rsp, %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x1040
testq %rax, %rax
je 0x12dd
movb $0x0, (%rax)
movq %r15, %rdi
callq 0x10c0
movq %r14, %rdi
movq %rax, %rsi
callq 0x14c9
movq %r15, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq %rbx, %rdx
callq 0x1060
testq %rax, %rax
jne 0x12c8
movq %r14, %rax
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/chatziko-k08[P]lecture-code/programs/cat/io.c
// Function: io_read_file_as_vector
Vector io_read_file_as_vector(char* filename) {
	// απλά ανοίγουμε το αρχείο και καλούμε την io_read_stream_as_vector
	FILE* file = fopen(filename, "r");
	if (file == NULL)
		return NULL;

	Vector vec = io_read_stream_as_vector(file);
	fclose(file);

	return vec;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0xd01(%rip), %rsi       # 0x2021
callq 0x10b0
testq %rax, %rax
je 0x1345
movq %rax, %rbx
movq %rax, %rdi
callq 0x1290
movq %rax, %r14
movq %rbx, %rdi
callq 0x1030
movq %r14, %rax
jmp 0x1347
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/chatziko-k08[P]lecture-code/programs/cat/io.c
// Function: io_write_vector_to_stream
int io_write_vector_to_stream(FILE* stream, Vector vec) {
	int written = 0;
	int size = vector_size(vec);

	// διασχίζουμε το vector και τυπώνουμε κάθε γραμμή
	for (int i = 0; i < size; i++) {
		char* line = vector_get_at(vec, i);
		written += fprintf(stream, "%s\n", line);
	}

	return written;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x1438
testl %eax, %eax
jle 0x13a3
movl %eax, %ebp
leaq 0xcae(%rip), %r12       # 0x2023
xorl %r15d, %r15d
xorl %r13d, %r13d
movq %rbx, %rdi
movl %r13d, %esi
callq 0x143c
movq %r14, %rdi
movq %r12, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1080
addl %eax, %r15d
incl %r13d
cmpl %r13d, %ebp
jne 0x137b
jmp 0x13a6
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/chatziko-k08[P]lecture-code/programs/cat/io.c
// Function: io_write_vector_to_file
int io_write_vector_to_file(char* filename, Vector vec) {
	// απλά ανοίγουμε το αρχείο και καλούμε την io_write_vector_to_stream
	FILE* file = fopen(filename, "w");
	if (file == NULL)
		return 0;

	int written = io_write_vector_to_stream(file, vec);
	fclose(file);

	return written;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0xc61(%rip), %rsi       # 0x2027
callq 0x10b0
testq %rax, %rax
je 0x13ec
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x134f
movl %eax, %ebx
movq %r14, %rdi
callq 0x1030
movl %ebx, %eax
jmp 0x13ee
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/mikeakohn[P]print_pe/build/../src/cil.c
// Function: print_clr_header
void print_clr_header(struct _clr_header *clr_header)
{
  printf("                Header Size: %d\n", clr_header->header_size);
  printf("      Major Runtime Version: %d\n", clr_header->major_runtime_version);
  printf("      Minor Runtime Version: %d\n", clr_header->minor_runtime_version);
  printf("          MetaData Dir Addr: %d\n", clr_header->meta_data_directory_address);
  printf("          MetaData Dir Size: %d\n", clr_header->meta_data_directory_size);
  printf("                      Flags: %d\n", clr_header->flags);
  printf("          Entry Point Token: %d\n", clr_header->entry_point_token);
  printf("         Resources Dir Addr: %d\n", clr_header->resources_directory_address);
  printf("         Resources Dir Size: %d\n", clr_header->resources_directory_size);
  printf("       Strong Name Sig Addr: %d\n", clr_header->strong_name_signature_address);
  printf("       Strong Name Sig Size: %d\n", clr_header->strong_name_signature_size);
  printf("         VTable Fixups Addr: %d\n", clr_header->v_table_fixups_address);
  printf("         VTable Fixups Size: %d\n", clr_header->v_table_fixups_size);
  printf("Export Addr Table Jump Addr: %d\n", clr_header->export_address_table_jump_address);
  printf("Export Addr Table Jump Size: %d\n", clr_header->export_address_table_jump_size);
  printf("    Mngd Native Header Addr: %d\n", clr_header->managed_native_header_address);
  printf("    Mngd Native Header Size: %d\n", clr_header->managed_native_header_size);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %esi
leaq 0x4d86(%rip), %rdi      # 0x8795
xorl %eax, %eax
callq 0x3090
movzwl 0x4(%rbx), %esi
leaq 0x4d95(%rip), %rdi      # 0x87b6
xorl %eax, %eax
callq 0x3090
movzwl 0x6(%rbx), %esi
leaq 0x4da4(%rip), %rdi      # 0x87d7
xorl %eax, %eax
callq 0x3090
movl 0x8(%rbx), %esi
leaq 0x4db4(%rip), %rdi      # 0x87f8
xorl %eax, %eax
callq 0x3090
movl 0xc(%rbx), %esi
leaq 0x4dc4(%rip), %rdi      # 0x8819
xorl %eax, %eax
callq 0x3090
movl 0x10(%rbx), %esi
leaq 0x4dd4(%rip), %rdi      # 0x883a
xorl %eax, %eax
callq 0x3090
movl 0x14(%rbx), %esi
leaq 0x4de4(%rip), %rdi      # 0x885b
xorl %eax, %eax
callq 0x3090
movl 0x18(%rbx), %esi
leaq 0x4df4(%rip), %rdi      # 0x887c
xorl %eax, %eax
callq 0x3090
movl 0x1c(%rbx), %esi
leaq 0x4e04(%rip), %rdi      # 0x889d
xorl %eax, %eax
callq 0x3090
movl 0x20(%rbx), %esi
leaq 0x4e14(%rip), %rdi      # 0x88be
xorl %eax, %eax
callq 0x3090
movl 0x24(%rbx), %esi
leaq 0x4e24(%rip), %rdi      # 0x88df
xorl %eax, %eax
callq 0x3090
movl 0x28(%rbx), %esi
leaq 0x4e34(%rip), %rdi      # 0x8900
xorl %eax, %eax
callq 0x3090
movl 0x2c(%rbx), %esi
leaq 0x4e44(%rip), %rdi      # 0x8921
xorl %eax, %eax
callq 0x3090
movl 0x30(%rbx), %esi
leaq 0x4e54(%rip), %rdi      # 0x8942
xorl %eax, %eax
callq 0x3090
movl 0x34(%rbx), %esi
leaq 0x4e64(%rip), %rdi      # 0x8963
xorl %eax, %eax
callq 0x3090
movl 0x38(%rbx), %esi
leaq 0x4e74(%rip), %rdi      # 0x8984
xorl %eax, %eax
callq 0x3090
movl 0x3c(%rbx), %esi
leaq 0x4e84(%rip), %rdi      # 0x89a5
xorl %eax, %eax
popq %rbx
jmp 0x3090
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/mikeakohn[P]print_pe/build/../src/clsid.c
// Function: clsid_print
int clsid_print(const uint8_t *clsid)
{
  int t;

  for (t = 0; t < 16; t++)
  {
    printf("%02X", clsid[t]);

    if (t == 3 || t == 5 || t == 7 || t == 9) { printf("-"); }
  }

  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x4e65(%rip), %r14      # 0x89e0
xorl %r15d, %r15d
movzbl (%rbx,%r15), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x3090
movl %r15d, %eax
andl $0xb, %eax
cmpl $0x3, %eax
je 0x3ba4
cmpl $0x9, %r15d
je 0x3ba4
cmpl $0x5, %r15d
jne 0x3bae
movl $0x2d, %edi
callq 0x3030
incq %r15
cmpq $0x10, %r15
jne 0x3b7e
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
nop