// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_do_button_text_image
NK_LIB nk_bool
nk_do_button_text_image(nk_flags *state,
    struct nk_command_buffer *out, struct nk_rect bounds,
    struct nk_image img, const char* str, int len, nk_flags align,
    enum nk_button_behavior behavior, const struct nk_style_button *style,
    const struct nk_user_font *font, const struct nk_input *in)
{
    int ret;
    struct nk_rect icon;
    struct nk_rect content;

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

    ret = nk_do_button(state, out, bounds, style, in, behavior, &content);
    icon.y = bounds.y + style->padding.y;
    icon.w = icon.h = bounds.h - 2 * style->padding.y;
    if (align & NK_TEXT_ALIGN_LEFT) {
        icon.x = (bounds.x + bounds.w) - (2 * style->padding.x + icon.w);
        icon.x = NK_MAX(icon.x, 0);
    } else icon.x = bounds.x + 2 * style->padding.x;

    icon.x += style->image_padding.x;
    icon.y += style->image_padding.y;
    icon.w -= 2 * style->image_padding.x;
    icon.h -= 2 * style->image_padding.y;

    if (style->draw_begin) style->draw_begin(out, style->userdata);
    nk_draw_button_text_image(out, &bounds, &content, &icon, *state, style, str, len, font, &img);
    if (style->draw_end) style->draw_end(out, style->userdata);
    return ret;
}

// Assembly:
pushq %rbx
subq $0x90, %rsp
movq 0xc8(%rsp), %rax
movq 0xc0(%rsp), %rax
movq 0xb8(%rsp), %rax
leaq 0xa0(%rsp), %rax
movq %rax, 0x28(%rsp)
movlpd %xmm0, 0x7c(%rsp)
movlpd %xmm1, 0x84(%rsp)
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movl %ecx, 0x5c(%rsp)
movl %r8d, 0x58(%rsp)
movl %r9d, 0x54(%rsp)
cmpq $0x0, 0xb8(%rsp)
jne 0x5caa7
movq 0x68575(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x5491b(%rip), %rsi     # 0xb13a0
leaq 0x54932(%rip), %rdx     # 0xb13be
movl $0x5f50, %ecx           # imm = 0x5F50
movb $0x0, %al
callq 0x13ec0
movq 0x68551(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5caa9
jmp 0x5caab
cmpq $0x0, 0x70(%rsp)
jne 0x5cae6
movq 0x68536(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x548dc(%rip), %rsi     # 0xb13a0
leaq 0x548f3(%rip), %rdx     # 0xb13be
movl $0x5f51, %ecx           # imm = 0x5F51
movb $0x0, %al
callq 0x13ec0
movq 0x68512(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5cae8
jmp 0x5caea
cmpq $0x0, 0xc0(%rsp)
jne 0x5cb28
movq 0x684f4(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x5489a(%rip), %rsi     # 0xb13a0
leaq 0x548b1(%rip), %rdx     # 0xb13be
movl $0x5f52, %ecx           # imm = 0x5F52
movb $0x0, %al
callq 0x13ec0
movq 0x684d0(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5cb2a
jmp 0x5cb2c
cmpq $0x0, 0x68(%rsp)
jne 0x5cb67
movq 0x684b5(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x5485b(%rip), %rsi     # 0xb13a0
leaq 0x54872(%rip), %rdx     # 0xb13be
movl $0x5f53, %ecx           # imm = 0x5F53
movb $0x0, %al
callq 0x13ec0
movq 0x68491(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5cb69
cmpq $0x0, 0x68(%rsp)
je 0x5cb8f
cmpq $0x0, 0xc0(%rsp)
je 0x5cb8f
cmpq $0x0, 0xb8(%rsp)
je 0x5cb8f
cmpq $0x0, 0x60(%rsp)
jne 0x5cb9f
movl $0x0, 0x8c(%rsp)
jmp 0x5ce09
movq 0x70(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq 0xc8(%rsp), %rcx
movl 0x54(%rsp), %r8d
movsd 0x7c(%rsp), %xmm0
movsd 0x84(%rsp), %xmm1
leaq 0x30(%rsp), %r9
callq 0x69770
movl %eax, 0x50(%rsp)
movss 0x80(%rsp), %xmm0
movq 0xb8(%rsp), %rax
addss 0xa4(%rax), %xmm0
movss %xmm0, 0x44(%rsp)
movss 0x88(%rsp), %xmm0
movq 0xb8(%rsp), %rax
movss 0xa4(%rax), %xmm1
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x4c(%rsp)
movss %xmm0, 0x48(%rsp)
movl 0x58(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x5cc99
movss 0x7c(%rsp), %xmm0
addss 0x84(%rsp), %xmm0
movq 0xb8(%rsp), %rax
movss 0xa0(%rax), %xmm1
movss 0x48(%rsp), %xmm2
addss %xmm1, %xmm1
addss %xmm2, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x40(%rsp)
xorps %xmm0, %xmm0
ucomiss 0x40(%rsp), %xmm0
jbe 0x5cc7f
xorps %xmm0, %xmm0
movss %xmm0, 0x24(%rsp)
jmp 0x5cc8b
movss 0x40(%rsp), %xmm0
movss %xmm0, 0x24(%rsp)
movss 0x24(%rsp), %xmm0
movss %xmm0, 0x40(%rsp)
jmp 0x5ccbd
movss 0x7c(%rsp), %xmm1
movq 0xb8(%rsp), %rax
movss 0xa0(%rax), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x40(%rsp)
movq 0xb8(%rsp), %rax
movss 0xa8(%rax), %xmm0
addss 0x40(%rsp), %xmm0
movss %xmm0, 0x40(%rsp)
movq 0xb8(%rsp), %rax
movss 0xac(%rax), %xmm0
addss 0x44(%rsp), %xmm0
movss %xmm0, 0x44(%rsp)
movq 0xb8(%rsp), %rax
movss 0xa8(%rax), %xmm1
movss 0x48(%rsp), %xmm0
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x48(%rsp)
movq 0xb8(%rsp), %rax
movss 0xac(%rax), %xmm1
movss 0x4c(%rsp), %xmm0
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x4c(%rsp)
movq 0xb8(%rsp), %rax
cmpq $0x0, 0xc8(%rax)
je 0x5cd74
movq 0xb8(%rsp), %rax
movq 0xc8(%rax), %rax
movq 0x68(%rsp), %rdi
movq 0xb8(%rsp), %rcx
movq 0xc0(%rcx), %rsi
callq *%rax
movq 0x28(%rsp), %rax
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rcx
movl (%rcx), %r8d
movq 0xb8(%rsp), %r9
movq 0x60(%rsp), %rbx
movl 0x5c(%rsp), %r11d
movq 0xc0(%rsp), %r10
leaq 0x7c(%rsp), %rsi
leaq 0x30(%rsp), %rdx
leaq 0x40(%rsp), %rcx
movq %rbx, (%rsp)
movl %r11d, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x89740
movq 0xb8(%rsp), %rax
cmpq $0x0, 0xd0(%rax)
je 0x5cdfe
movq 0xb8(%rsp), %rax
movq 0xd0(%rax), %rax
movq 0x68(%rsp), %rdi
movq 0xb8(%rsp), %rcx
movq 0xc0(%rcx), %rsi
callq *%rax
movl 0x50(%rsp), %eax
movl %eax, 0x8c(%rsp)
movl 0x8c(%rsp), %eax
addq $0x90, %rsp
popq %rbx
retq
nopl (%rax)