// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_do_button_image
NK_LIB nk_bool
nk_do_button_image(nk_flags *state,
    struct nk_command_buffer *out, struct nk_rect bounds,
    struct nk_image img, enum nk_button_behavior b,
    const struct nk_style_button *style, const struct nk_input *in)
{
    int ret;
    struct nk_rect content;

    NK_ASSERT(state);
    NK_ASSERT(style);
    NK_ASSERT(out);
    if (!out || !style || !state)
        return nk_false;

    ret = nk_do_button(state, out, bounds, style, in, b, &content);
    content.x += style->image_padding.x;
    content.y += style->image_padding.y;
    content.w -= 2 * style->image_padding.x;
    content.h -= 2 * style->image_padding.y;

    if (style->draw_begin) style->draw_begin(out, style->userdata);
    nk_draw_button_image(out, &bounds, &content, *state, style, &img);
    if (style->draw_end) style->draw_end(out, style->userdata);
    return ret;
}

// Assembly:
subq $0x68, %rsp
leaq 0x70(%rsp), %rax
movq %rax, 0x8(%rsp)
movlpd %xmm0, 0x54(%rsp)
movlpd %xmm1, 0x5c(%rsp)
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movl %edx, 0x3c(%rsp)
movq %rcx, 0x30(%rsp)
movq %r8, 0x28(%rsp)
cmpq $0x0, 0x48(%rsp)
jne 0x5e4ed
movq 0x66b2f(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x52ed5(%rip), %rsi     # 0xb13a0
leaq 0x52eec(%rip), %rdx     # 0xb13be
movl $0x5ed7, %ecx           # imm = 0x5ED7
movb $0x0, %al
callq 0x13ec0
movq 0x66b0b(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5e4ef
jmp 0x5e4f1
cmpq $0x0, 0x30(%rsp)
jne 0x5e52c
movq 0x66af0(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x52e96(%rip), %rsi     # 0xb13a0
leaq 0x52ead(%rip), %rdx     # 0xb13be
movl $0x5ed8, %ecx           # imm = 0x5ED8
movb $0x0, %al
callq 0x13ec0
movq 0x66acc(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5e52e
jmp 0x5e530
cmpq $0x0, 0x40(%rsp)
jne 0x5e56b
movq 0x66ab1(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x52e57(%rip), %rsi     # 0xb13a0
leaq 0x52e6e(%rip), %rdx     # 0xb13be
movl $0x5ed9, %ecx           # imm = 0x5ED9
movb $0x0, %al
callq 0x13ec0
movq 0x66a8d(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5e56d
cmpq $0x0, 0x40(%rsp)
je 0x5e585
cmpq $0x0, 0x30(%rsp)
je 0x5e585
cmpq $0x0, 0x48(%rsp)
jne 0x5e592
movl $0x0, 0x64(%rsp)
jmp 0x5e6c2
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x28(%rsp), %rcx
movl 0x3c(%rsp), %r8d
movsd 0x54(%rsp), %xmm0
movsd 0x5c(%rsp), %xmm1
leaq 0x14(%rsp), %r9
callq 0x69770
movl %eax, 0x24(%rsp)
movq 0x30(%rsp), %rax
movss 0xa8(%rax), %xmm0
addss 0x14(%rsp), %xmm0
movss %xmm0, 0x14(%rsp)
movq 0x30(%rsp), %rax
movss 0xac(%rax), %xmm0
addss 0x18(%rsp), %xmm0
movss %xmm0, 0x18(%rsp)
movq 0x30(%rsp), %rax
movss 0xa8(%rax), %xmm1
movss 0x1c(%rsp), %xmm0
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x1c(%rsp)
movq 0x30(%rsp), %rax
movss 0xac(%rax), %xmm1
movss 0x20(%rsp), %xmm0
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x20(%rsp)
movq 0x30(%rsp), %rax
cmpq $0x0, 0xc8(%rax)
je 0x5e667
movq 0x30(%rsp), %rax
movq 0xc8(%rax), %rax
movq 0x40(%rsp), %rdi
movq 0x30(%rsp), %rcx
movq 0xc0(%rcx), %rsi
callq *%rax
movq 0x8(%rsp), %r9
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rax
movl (%rax), %ecx
movq 0x30(%rsp), %r8
leaq 0x54(%rsp), %rsi
leaq 0x14(%rsp), %rdx
callq 0x894d0
movq 0x30(%rsp), %rax
cmpq $0x0, 0xd0(%rax)
je 0x5e6ba
movq 0x30(%rsp), %rax
movq 0xd0(%rax), %rax
movq 0x40(%rsp), %rdi
movq 0x30(%rsp), %rcx
movq 0xc0(%rcx), %rsi
callq *%rax
movl 0x24(%rsp), %eax
movl %eax, 0x64(%rsp)
movl 0x64(%rsp), %eax
addq $0x68, %rsp
retq
nopl (%rax,%rax)