// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_selectable_image_text
NK_API nk_bool
nk_selectable_image_text(struct nk_context *ctx, struct nk_image img,
    const char *str, int len, nk_flags align, nk_bool *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 || state == NK_WIDGET_DISABLED || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    return nk_do_selectable_image(&ctx->last_widget_state, &win->buffer, bounds,
                str, len, align, value, &img, &style->selectable, in, style->font);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
leaq 0xb0(%rsp), %rax
movq %rax, 0x30(%rsp)
movq %rdi, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
movl %edx, 0x7c(%rsp)
movl %ecx, 0x78(%rsp)
movq %r8, 0x70(%rsp)
cmpq $0x0, 0x88(%rsp)
jne 0x6cd82
movq 0x5829a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x44640(%rip), %rsi     # 0xb13a0
leaq 0x44657(%rip), %rdx     # 0xb13be
movl $0x632a, %ecx           # imm = 0x632A
movb $0x0, %al
callq 0x13ec0
movq 0x58276(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6cd84
jmp 0x6cd86
cmpq $0x0, 0x70(%rsp)
jne 0x6cdc1
movq 0x5825b(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x44601(%rip), %rsi     # 0xb13a0
leaq 0x44618(%rip), %rdx     # 0xb13be
movl $0x632b, %ecx           # imm = 0x632B
movb $0x0, %al
callq 0x13ec0
movq 0x58237(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6cdc3
jmp 0x6cdc5
movq 0x88(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x6ce0a
movq 0x58212(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x445b8(%rip), %rsi     # 0xb13a0
leaq 0x445cf(%rip), %rdx     # 0xb13be
movl $0x632c, %ecx           # imm = 0x632C
movb $0x0, %al
callq 0x13ec0
movq 0x581ee(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6ce0c
jmp 0x6ce0e
movq 0x88(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x6ce5a
movq 0x581c2(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x44568(%rip), %rsi     # 0xb13a0
leaq 0x4457f(%rip), %rdx     # 0xb13be
movl $0x632d, %ecx           # imm = 0x632D
movb $0x0, %al
callq 0x13ec0
movq 0x5819e(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6ce5c
cmpq $0x0, 0x88(%rsp)
je 0x6ce9a
movq 0x88(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x6ce9a
movq 0x88(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
je 0x6ce9a
cmpq $0x0, 0x70(%rsp)
jne 0x6ceaa
movl $0x0, 0x94(%rsp)
jmp 0x6cfc3
movq 0x88(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq 0xa8(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x88(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x50(%rsp)
movq 0x88(%rsp), %rsi
leaq 0x3c(%rsp), %rdi
callq 0x139c0
movl %eax, 0x4c(%rsp)
cmpl $0x0, 0x4c(%rsp)
jne 0x6cf0f
movl $0x0, 0x94(%rsp)
jmp 0x6cfc3
cmpl $0x2, 0x4c(%rsp)
je 0x6cf2f
cmpl $0x3, 0x4c(%rsp)
je 0x6cf2f
movq 0x60(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x6cf38
xorl %eax, %eax
movq %rax, 0x28(%rsp)
jmp 0x6cf45
movq 0x88(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %r10
movq 0x28(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x88(%rsp), %rdi
addq $0x2598, %rdi           # imm = 0x2598
movq 0x68(%rsp), %rsi
addq $0x68, %rsi
movq 0x80(%rsp), %rdx
movl 0x7c(%rsp), %ecx
movl 0x78(%rsp), %r8d
movq 0x70(%rsp), %r9
movq 0x50(%rsp), %rax
movq %rax, %r11
addq $0x530, %r11            # imm = 0x530
movq 0x58(%rsp), %rbx
movq (%rax), %r14
movsd 0x3c(%rsp), %xmm0
movsd 0x44(%rsp), %xmm1
movq %rsp, %rax
movq %r14, 0x18(%rax)
movq %rbx, 0x10(%rax)
movq %r11, 0x8(%rax)
movq %r10, (%rax)
callq 0x6cfe0
movl %eax, 0x94(%rsp)
movl 0x94(%rsp), %eax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
nopw %cs:(%rax,%rax)