// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_button_image_text_styled
NK_API nk_bool
nk_button_image_text_styled(struct nk_context *ctx,
    const struct nk_style_button *style, struct nk_image img, const char *text,
    int len, nk_flags align)
{
    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_text_image(&ctx->last_widget_state, &win->buffer,
            bounds, img, text, len, align, ctx->button_behavior,
            style, ctx->style.font, in);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xa0, %rsp
leaq 0xc0(%rsp), %rax
movq %rax, 0x40(%rsp)
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq %rdx, 0x80(%rsp)
movl %ecx, 0x7c(%rsp)
movl %r8d, 0x78(%rsp)
cmpq $0x0, 0x90(%rsp)
jne 0x6a628
movq 0x5a9f4(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x46d9a(%rip), %rsi     # 0xb13a0
leaq 0x46db1(%rip), %rdx     # 0xb13be
movl $0x6060, %ecx           # imm = 0x6060
movb $0x0, %al
callq 0x13ec0
movq 0x5a9d0(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6a62a
jmp 0x6a62c
movq 0x90(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x6a671
movq 0x5a9ab(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x46d51(%rip), %rsi     # 0xb13a0
leaq 0x46d68(%rip), %rdx     # 0xb13be
movl $0x6061, %ecx           # imm = 0x6061
movb $0x0, %al
callq 0x13ec0
movq 0x5a987(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6a673
jmp 0x6a675
movq 0x90(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x6a6c1
movq 0x5a95b(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x46d01(%rip), %rsi     # 0xb13a0
leaq 0x46d18(%rip), %rdx     # 0xb13be
movl $0x6062, %ecx           # imm = 0x6062
movb $0x0, %al
callq 0x13ec0
movq 0x5a937(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6a6c3
cmpq $0x0, 0x90(%rsp)
je 0x6a6f9
movq 0x90(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x6a6f9
movq 0x90(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x6a709
movl $0x0, 0x9c(%rsp)
jmp 0x6a81d
movq 0x90(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
movq 0xa8(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x90(%rsp), %rsi
leaq 0x50(%rsp), %rdi
callq 0x139c0
movl %eax, 0x4c(%rsp)
cmpl $0x0, 0x4c(%rsp)
jne 0x6a75b
movl $0x0, 0x9c(%rsp)
jmp 0x6a81d
cmpl $0x2, 0x4c(%rsp)
je 0x6a77b
cmpl $0x3, 0x4c(%rsp)
je 0x6a77b
movq 0x68(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x6a784
xorl %eax, %eax
movq %rax, 0x38(%rsp)
jmp 0x6a791
movq 0x90(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x40(%rsp), %r14
movq 0x38(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x90(%rsp), %rax
movq %rax, %rdi
addq $0x2598, %rdi           # imm = 0x2598
movq 0x70(%rsp), %rsi
addq $0x68, %rsi
movq 0x80(%rsp), %rdx
movl 0x7c(%rsp), %ecx
movl 0x78(%rsp), %r8d
movl 0x259c(%rax), %r9d
movq 0x88(%rsp), %r10
movq 0x168(%rax), %r11
movq 0x60(%rsp), %rbx
movsd 0x50(%rsp), %xmm0
movsd 0x58(%rsp), %xmm1
movq 0x10(%r14), %r15
movq %rsp, %rax
movq %r15, 0x10(%rax)
movups (%r14), %xmm2
movups %xmm2, (%rax)
movq %rbx, 0x28(%rax)
movq %r11, 0x20(%rax)
movq %r10, 0x18(%rax)
callq 0x5ca10
movl %eax, 0x9c(%rsp)
movl 0x9c(%rsp), %eax
addq $0xa0, %rsp
popq %rbx
popq %r14
popq %r15
retq
nopw %cs:(%rax,%rax)