// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_button_image_styled
NK_API nk_bool
nk_button_image_styled(struct nk_context *ctx, const struct nk_style_button *style,
    struct nk_image img)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;

    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 0;

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

    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_button_image(&ctx->last_widget_state, &win->buffer, bounds,
                img, ctx->button_behavior, style, in);
}

// Assembly:
subq $0x78, %rsp
leaq 0x80(%rsp), %rax
movq %rax, 0x28(%rsp)
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
cmpq $0x0, 0x68(%rsp)
jne 0x69f86
movq 0x5b096(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4743c(%rip), %rsi     # 0xb13a0
leaq 0x47453(%rip), %rdx     # 0xb13be
movl $0x600f, %ecx           # imm = 0x600F
movb $0x0, %al
callq 0x13ec0
movq 0x5b072(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x69f88
jmp 0x69f8a
movq 0x68(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x69fcc
movq 0x5b050(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x473f6(%rip), %rsi     # 0xb13a0
leaq 0x4740d(%rip), %rdx     # 0xb13be
movl $0x6010, %ecx           # imm = 0x6010
movb $0x0, %al
callq 0x13ec0
movq 0x5b02c(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x69fce
jmp 0x69fd0
movq 0x68(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x6a019
movq 0x5b003(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x473a9(%rip), %rsi     # 0xb13a0
leaq 0x473c0(%rip), %rdx     # 0xb13be
movl $0x6011, %ecx           # imm = 0x6011
movb $0x0, %al
callq 0x13ec0
movq 0x5afdf(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6a01b
cmpq $0x0, 0x68(%rsp)
je 0x6a048
movq 0x68(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x6a048
movq 0x68(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x6a055
movl $0x0, 0x74(%rsp)
jmp 0x6a12f
movq 0x68(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq 0xa8(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x68(%rsp), %rsi
leaq 0x38(%rsp), %rdi
callq 0x139c0
movl %eax, 0x34(%rsp)
cmpl $0x0, 0x34(%rsp)
jne 0x6a09e
movl $0x0, 0x74(%rsp)
jmp 0x6a12f
cmpl $0x2, 0x34(%rsp)
je 0x6a0be
cmpl $0x3, 0x34(%rsp)
je 0x6a0be
movq 0x50(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x6a0c7
xorl %eax, %eax
movq %rax, 0x20(%rsp)
jmp 0x6a0d1
movq 0x68(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %r9
movq 0x20(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x68(%rsp), %rax
movq %rax, %rdi
addq $0x2598, %rdi           # imm = 0x2598
movq 0x58(%rsp), %rsi
addq $0x68, %rsi
movl 0x259c(%rax), %edx
movq 0x60(%rsp), %rcx
movq 0x48(%rsp), %r8
movsd 0x38(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
movq 0x10(%r9), %r10
movq %rsp, %rax
movq %r10, 0x10(%rax)
movups (%r9), %xmm2
movups %xmm2, (%rax)
callq 0x5e480
movl %eax, 0x74(%rsp)
movl 0x74(%rsp), %eax
addq $0x78, %rsp
retq
nopl (%rax,%rax)