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

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

    ret = nk_do_button(state, out, bounds, style, in, behavior, &content);
    if (style->draw_begin) style->draw_begin(out, style->userdata);
    nk_draw_button_text(out, &bounds, &content, *state, style, string, len, align, font);
    if (style->draw_end) style->draw_end(out, style->userdata);
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %r9d, %ebp
movl %r8d, 0xc(%rsp)
movl %ecx, 0x8(%rsp)
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r13
movq 0xa0(%rsp), %r14
movaps %xmm0, 0x20(%rsp)
movaps %xmm1, 0x30(%rsp)
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movups %xmm0, 0x48(%rsp)
testq %rdi, %rdi
jne 0x3afee
movq 0x4a027(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2ed39(%rip), %rsi     # 0x69d0c
leaq 0x2ed50(%rip), %rdx     # 0x69d2a
movl $0x5e89, %ecx           # imm = 0x5E89
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
testq %r14, %r14
jne 0x3b01f
movq 0x49ff6(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2ed08(%rip), %rsi     # 0x69d0c
leaq 0x2ed1f(%rip), %rdx     # 0x69d2a
movl $0x5e8a, %ecx           # imm = 0x5E8A
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
testq %rbx, %rbx
jne 0x3b050
movq 0x49fc5(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2ecd7(%rip), %rsi     # 0x69d0c
leaq 0x2ecee(%rip), %rdx     # 0x69d2a
movl $0x5e8b, %ecx           # imm = 0x5E8B
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0xb0(%rsp), %r8
testq %r12, %r12
jne 0x3b097
movq 0x49f8c(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2ec9e(%rip), %rsi     # 0x69d0c
leaq 0x2ecb5(%rip), %rdx     # 0x69d2a
movl $0x5e8c, %ecx           # imm = 0x5E8C
xorl %eax, %eax
movq %r8, %r14
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq %r14, %r8
movq 0xa0(%rsp), %r14
testq %r8, %r8
je 0x3b1af
xorl %r15d, %r15d
testq %r12, %r12
je 0x3b1de
testq %rbx, %rbx
je 0x3b1de
testq %r14, %r14
je 0x3b1de
movq 0xa8(%rsp), %rcx
leaq 0x10(%rsp), %r9
movq %r13, %rdi
movq %rbx, %rsi
movaps 0x20(%rsp), %xmm0
movaps 0x30(%rsp), %xmm1
movq %r14, %rdx
movl %ebp, %r8d
callq 0x43006
movl %eax, %r15d
movq 0xc8(%r14), %rax
testq %rax, %rax
je 0x3b101
movq 0xc0(%r14), %rsi
movq %rbx, %rdi
callq *%rax
movl (%r13), %ebp
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
movl %ebp, %edx
movq %r14, %rcx
callq 0x43162
leaq 0x8(%rax), %rcx
cmpl $0x0, (%rax)
leaq 0x80(%r14), %rax
cmoveq %rcx, %rax
movl (%rax), %eax
leaq 0x58(%rsp), %r13
movl %eax, 0x8(%r13)
movl %ebp, %eax
andl $0x20, %eax
shrl $0x2, %eax
orq $0x84, %rax
testb $0x10, %bpl
movl $0x88, %ecx
cmoveq %rax, %rcx
movl (%r14,%rcx), %edi
movss 0x94(%r14), %xmm0
callq 0x140a0
movl %eax, 0xc(%r13)
andq $0x0, (%r13)
movsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movq %rbx, %rdi
movq %r12, %rsi
movl 0x8(%rsp), %edx
movq %r13, %rcx
movl 0xc(%rsp), %r8d
movq 0xb0(%rsp), %r9
callq 0x41852
movq 0xd0(%r14), %rax
testq %rax, %rax
je 0x3b1de
movq 0xc0(%r14), %rsi
movq %rbx, %rdi
callq *%rax
jmp 0x3b1de
movq 0x49e3a(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x2eb4c(%rip), %rsi     # 0x69d0c
leaq 0x2eb63(%rip), %rdx     # 0x69d2a
xorl %r15d, %r15d
movl $0x5e8d, %ecx           # imm = 0x5E8D
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movl %r15d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq