// File: /workspace/github_c_makefile_star2_O3/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 0x3e639
movq 0x489dc(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x3277e(%rip), %rsi     # 0x70d9c
leaq 0x32795(%rip), %rdx     # 0x70dba
movl $0x5e89, %ecx           # imm = 0x5E89
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %r14, %r14
jne 0x3e66a
movq 0x489ab(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x3274d(%rip), %rsi     # 0x70d9c
leaq 0x32764(%rip), %rdx     # 0x70dba
movl $0x5e8a, %ecx           # imm = 0x5E8A
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %rbx, %rbx
jne 0x3e69b
movq 0x4897a(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x3271c(%rip), %rsi     # 0x70d9c
leaq 0x32733(%rip), %rdx     # 0x70dba
movl $0x5e8b, %ecx           # imm = 0x5E8B
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0xb0(%rsp), %r8
testq %r12, %r12
jne 0x3e6e2
movq 0x48941(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x326e3(%rip), %rsi     # 0x70d9c
leaq 0x326fa(%rip), %rdx     # 0x70dba
movl $0x5e8c, %ecx           # imm = 0x5E8C
xorl %eax, %eax
movq %r8, %r14
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq %r14, %r8
movq 0xa0(%rsp), %r14
testq %r8, %r8
je 0x3e7fd
xorl %r15d, %r15d
testq %r12, %r12
je 0x3e82c
testq %rbx, %rbx
je 0x3e82c
testq %r14, %r14
je 0x3e82c
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 0x46a33
movl %eax, %r15d
movq 0xc8(%r14), %rax
testq %rax, %rax
je 0x3e74c
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 0x46b8f
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 0x13e60
movl %eax, 0xc(%r13)
movq $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 0x451c6
movq 0xd0(%r14), %rax
testq %rax, %rax
je 0x3e82c
movq 0xc0(%r14), %rsi
movq %rbx, %rdi
callq *%rax
jmp 0x3e82c
movq 0x487ec(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x3258e(%rip), %rsi     # 0x70d9c
leaq 0x325a5(%rip), %rdx     # 0x70dba
xorl %r15d, %r15d
movl $0x5e8d, %ecx           # imm = 0x5E8D
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movl %r15d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq