// File: /workspace/github_c_makefile_star2_O1/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, 0x4(%rsp)
movl %r8d, 0xc(%rsp)
movl %ecx, 0x8(%rsp)
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r13
movq 0xa0(%rsp), %r14
movaps %xmm0, 0x30(%rsp)
movaps %xmm1, 0x40(%rsp)
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movups %xmm0, 0x58(%rsp)
testq %rdi, %rdi
jne 0x3ee7e
movq 0x49197(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x32f29(%rip), %rsi     # 0x71d8c
leaq 0x32f40(%rip), %rdx     # 0x71daa
movl $0x5e89, %ecx           # imm = 0x5E89
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %r14, %r14
jne 0x3eeaf
movq 0x49166(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x32ef8(%rip), %rsi     # 0x71d8c
leaq 0x32f0f(%rip), %rdx     # 0x71daa
movl $0x5e8a, %ecx           # imm = 0x5E8A
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %rbx, %rbx
jne 0x3eee0
movq 0x49135(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x32ec7(%rip), %rsi     # 0x71d8c
leaq 0x32ede(%rip), %rdx     # 0x71daa
movl $0x5e8b, %ecx           # imm = 0x5E8B
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0xb0(%rsp), %r15
testq %r12, %r12
jne 0x3ef1b
movq 0x490fc(%rip), %rbp     # 0x87ff0
movq (%rbp), %rdi
leaq 0x32e8d(%rip), %rsi     # 0x71d8c
leaq 0x32ea4(%rip), %rdx     # 0x71daa
movl $0x5e8c, %ecx           # imm = 0x5E8C
xorl %eax, %eax
callq 0x12d80
movq (%rbp), %rdi
callq 0x13780
testq %r15, %r15
jne 0x3ef4e
movq 0x490c9(%rip), %rbp     # 0x87ff0
movq (%rbp), %rdi
leaq 0x32e5a(%rip), %rsi     # 0x71d8c
leaq 0x32e71(%rip), %rdx     # 0x71daa
movl $0x5e8d, %ecx           # imm = 0x5E8D
xorl %eax, %eax
callq 0x12d80
movq (%rbp), %rdi
callq 0x13780
xorl %ebp, %ebp
testq %r12, %r12
je 0x3f071
testq %rbx, %rbx
je 0x3f071
testq %r14, %r14
je 0x3f071
testq %r15, %r15
je 0x3f071
movq 0xa8(%rsp), %rcx
leaq 0x20(%rsp), %r9
movq %r13, %rdi
movq %rbx, %rsi
movaps 0x30(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movq %r14, %rdx
movl 0x4(%rsp), %r8d
callq 0x4761a
movl %eax, %ebp
movq 0xc8(%r14), %rax
testq %rax, %rax
je 0x3efb8
movq 0xc0(%r14), %rsi
movq %rbx, %rdi
callq *%rax
movl (%r13), %r13d
leaq 0x58(%rsp), %rsi
movq %rbx, %rdi
movl %r13d, %edx
movq %r14, %rcx
callq 0x47779
leaq 0x80(%r14), %rcx
leaq 0x8(%rax), %rdx
cmpl $0x0, (%rax)
cmoveq %rdx, %rcx
movl (%rcx), %eax
movl %eax, 0x18(%rsp)
testb $0x10, %r13b
jne 0x3effc
testb $0x20, %r13b
jne 0x3f005
movl 0x84(%r14), %eax
jmp 0x3f00c
movl 0x88(%r14), %eax
jmp 0x3f00c
movl 0x8c(%r14), %eax
movl %eax, 0x1c(%rsp)
movss 0x94(%r14), %xmm0
leaq 0x10(%rsp), %r13
movl 0xc(%r13), %edi
callq 0x13e60
movl %eax, 0xc(%r13)
movq $0x0, (%r13)
movsd 0x20(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
movq %rbx, %rdi
movq %r12, %rsi
movl 0x8(%rsp), %edx
movq %r13, %rcx
movl 0xc(%rsp), %r8d
movq %r15, %r9
callq 0x45d79
movq 0xd0(%r14), %rax
testq %rax, %rax
je 0x3f071
movq 0xc0(%r14), %rsi
movq %rbx, %rdi
callq *%rax
movl %ebp, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq