// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_do_button_text_symbol
NK_LIB nk_bool
nk_do_button_text_symbol(nk_flags *state,
    struct nk_command_buffer *out, struct nk_rect bounds,
    enum nk_symbol_type symbol, 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 tri = {0,0,0,0};
    struct nk_rect content;

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

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

    /* draw button */
    if (style->draw_begin) style->draw_begin(out, style->userdata);
    nk_draw_button_text_symbol(out, &bounds, &content, &tri,
        *state, style, str, len, symbol, 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, %r12d
movl %r8d, %ebp
movq %rcx, 0x30(%rsp)
movl %edx, 0xc(%rsp)
movq %rsi, %rbx
movq %rdi, %r15
movq 0xa8(%rsp), %r14
movaps %xmm0, 0x10(%rsp)
movaps %xmm1, 0x20(%rsp)
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movups %xmm0, 0x48(%rsp)
testq %r14, %r14
jne 0x3f04b
movq 0x47fcc(%rip), %r13     # 0x86ff0
movq (%r13), %rdi
leaq 0x31d6d(%rip), %rsi     # 0x70d9c
leaq 0x31d84(%rip), %rdx     # 0x70dba
movl $0x5f16, %ecx           # imm = 0x5F16
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movq 0xb0(%rsp), %rax
testq %rbx, %rbx
jne 0x3f08e
movq 0x47f91(%rip), %r13     # 0x86ff0
movq (%r13), %rdi
leaq 0x31d32(%rip), %rsi     # 0x70d9c
leaq 0x31d49(%rip), %rdx     # 0x70dba
movl $0x5f17, %ecx           # imm = 0x5F17
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movq 0xb0(%rsp), %rax
testq %rax, %rax
je 0x3f12f
movl %ebp, 0x8(%rsp)
testq %rbx, %rbx
sete %al
testq %r14, %r14
sete %cl
xorl %ebp, %ebp
orb %al, %cl
jne 0x3f287
movq 0xb8(%rsp), %rcx
movl 0xa0(%rsp), %r8d
leaq 0x38(%rsp), %r13
movq %r15, %rdi
movq %rbx, %rsi
movaps 0x10(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movq %r14, %rdx
movq %r13, %r9
callq 0x46a33
movl %eax, %ebp
movss 0x2e7b5(%rip), %xmm1    # 0x6d8a0
movss 0xc(%r13), %xmm0
mulss %xmm1, %xmm0
addss 0x4(%r13), %xmm0
movq 0xb0(%rsp), %rax
movss 0x8(%rax), %xmm3
mulss %xmm3, %xmm1
subss %xmm1, %xmm0
movss (%r13), %xmm1
testb $0x1, %r12b
jne 0x3f162
movss 0xa0(%r14), %xmm2
addss %xmm2, %xmm2
addss %xmm1, %xmm2
jmp 0x3f184
movq 0x47eba(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x31c5c(%rip), %rsi     # 0x70d9c
leaq 0x31c73(%rip), %rdx     # 0x70dba
xorl %ebp, %ebp
movl $0x5f18, %ecx           # imm = 0x5F18
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
jmp 0x3f287
addss 0x40(%rsp), %xmm1
movss 0xa0(%r14), %xmm2
addss %xmm2, %xmm2
addss %xmm3, %xmm2
subss %xmm2, %xmm1
xorps %xmm2, %xmm2
maxss %xmm1, %xmm2
unpcklps %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
movaps %xmm2, 0x10(%rsp)
shufps $0x0, %xmm3, %xmm3      # xmm3 = xmm3[0,0,0,0]
movaps %xmm3, 0x20(%rsp)
movq 0xc8(%r14), %rax
testq %rax, %rax
je 0x3f1ad
movq 0xc0(%r14), %rsi
movq %rbx, %rdi
callq *%rax
movl (%r15), %r12d
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
movl %r12d, %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), %r15
movl %eax, 0x8(%r15)
movl %r12d, %eax
andl $0x20, %eax
shrl $0x2, %eax
orq $0x84, %rax
testb $0x10, %r12b
movl $0x88, %ecx
cmoveq %rax, %rcx
movl (%r14,%rcx), %edi
movss 0x94(%r14), %xmm0
callq 0x13e60
movl %eax, 0xc(%r15)
movq $0x0, (%r15)
movl 0x80(%r14), %edx
xorps %xmm2, %xmm2
movq %rbx, %rdi
movl 0xc(%rsp), %esi
movaps 0x10(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movl %eax, %ecx
movq 0xb0(%rsp), %r12
movq %r12, %r8
callq 0x52280
movsd 0x38(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movl 0x8(%rsp), %edx
movq %r15, %rcx
movl $0x12, %r8d
movq %r12, %r9
callq 0x451c6
movq 0xd0(%r14), %rax
testq %rax, %rax
je 0x3f287
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