// File: /workspace/github_c_makefile_star2_O2/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 0x3b9ee
movq 0x49629(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x2e33a(%rip), %rsi     # 0x69d0c
leaq 0x2e351(%rip), %rdx     # 0x69d2a
movl $0x5f16, %ecx           # imm = 0x5F16
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movq 0xb0(%rsp), %rax
testq %rbx, %rbx
jne 0x3ba31
movq 0x495ee(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x2e2ff(%rip), %rsi     # 0x69d0c
leaq 0x2e316(%rip), %rdx     # 0x69d2a
movl $0x5f17, %ecx           # imm = 0x5F17
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movq 0xb0(%rsp), %rax
testq %rax, %rax
je 0x3bad2
movl %ebp, 0x8(%rsp)
testq %rbx, %rbx
sete %al
testq %r14, %r14
sete %cl
xorl %ebp, %ebp
orb %al, %cl
jne 0x3bc25
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 0x43006
movl %eax, %ebp
movss 0x2ada2(%rip), %xmm1    # 0x66830
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 0x3bb05
movss 0xa0(%r14), %xmm2
addss %xmm2, %xmm2
addss %xmm1, %xmm2
jmp 0x3bb27
movq 0x49517(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x2e229(%rip), %rsi     # 0x69d0c
leaq 0x2e240(%rip), %rdx     # 0x69d2a
xorl %ebp, %ebp
movl $0x5f18, %ecx           # imm = 0x5F18
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
jmp 0x3bc25
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 0x3bb50
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 0x43162
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 0x140a0
movl %eax, 0xc(%r15)
andq $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 0x4d54c
movsd 0x38(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
pushq $0x12
popq %r8
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movl 0x8(%rsp), %edx
movq %r15, %rcx
movq %r12, %r9
callq 0x41852
movq 0xd0(%r14), %rax
testq %rax, %rax
je 0x3bc25
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