// File: /workspace/github_c_makefile_star2_O1/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 $0x78, %rsp
movl %r9d, %r12d
movl %r8d, 0xc(%rsp)
movq %rcx, 0x40(%rsp)
movl %edx, 0x8(%rsp)
movq %rsi, %rbx
movq %rdi, %r15
movq 0xb8(%rsp), %r14
movaps %xmm0, 0x10(%rsp)
movaps %xmm1, 0x20(%rsp)
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movups %xmm0, 0x58(%rsp)
testq %r14, %r14
jne 0x3f8d0
movq 0x48747(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x324d8(%rip), %rsi     # 0x71d8c
leaq 0x324ef(%rip), %rdx     # 0x71daa
movl $0x5f16, %ecx           # imm = 0x5F16
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movq 0xc0(%rsp), %rbp
testq %rbx, %rbx
jne 0x3f90b
movq 0x4870c(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x3249d(%rip), %rsi     # 0x71d8c
leaq 0x324b4(%rip), %rdx     # 0x71daa
movl $0x5f17, %ecx           # imm = 0x5F17
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
testq %rbp, %rbp
jne 0x3f93e
movq 0x486d9(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x3246a(%rip), %rsi     # 0x71d8c
leaq 0x32481(%rip), %rdx     # 0x71daa
movl $0x5f18, %ecx           # imm = 0x5F18
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
testq %rbp, %rbp
sete %sil
testq %rbx, %rbx
sete %cl
testq %r14, %r14
sete %dl
orb %cl, %dl
xorl %eax, %eax
orb %sil, %dl
jne 0x3fb40
movq 0xc8(%rsp), %rcx
movl 0xb0(%rsp), %r8d
leaq 0x48(%rsp), %r13
movq %r15, %rdi
movq %rbx, %rsi
movaps 0x10(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movq %r14, %rdx
movq %r13, %r9
callq 0x4761a
movss 0x2ef1a(%rip), %xmm0    # 0x6e8b0
movss 0xc(%r13), %xmm4
mulss %xmm0, %xmm4
addss 0x4(%r13), %xmm4
movss 0x8(%rbp), %xmm3
mulss %xmm3, %xmm0
movss (%r13), %xmm1
movl %eax, %ebp
testb $0x1, %r12b
jne 0x3f9d0
movss 0xa0(%r14), %xmm2
addss %xmm2, %xmm2
addss %xmm1, %xmm2
jmp 0x3f9f2
addss 0x50(%rsp), %xmm1
movss 0xa0(%r14), %xmm2
addss %xmm2, %xmm2
addss %xmm3, %xmm2
subss %xmm2, %xmm1
xorps %xmm2, %xmm2
maxss %xmm1, %xmm2
subss %xmm0, %xmm4
movq 0xc8(%r14), %rax
testq %rax, %rax
je 0x3fa2c
movq 0xc0(%r14), %rsi
movq %rbx, %rdi
movaps %xmm3, 0x20(%rsp)
movaps %xmm2, 0x10(%rsp)
movaps %xmm4, 0x30(%rsp)
callq *%rax
movaps 0x30(%rsp), %xmm4
movaps 0x10(%rsp), %xmm2
movaps 0x20(%rsp), %xmm3
shufps $0x0, %xmm3, %xmm3      # xmm3 = xmm3[0,0,0,0]
movaps %xmm3, 0x20(%rsp)
unpcklps %xmm4, %xmm2            # xmm2 = xmm2[0],xmm4[0],xmm2[1],xmm4[1]
movaps %xmm2, 0x10(%rsp)
movl (%r15), %r15d
leaq 0x58(%rsp), %rsi
movq %rbx, %rdi
movl %r15d, %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, 0x70(%rsp)
testb $0x10, %r15b
jne 0x3fa80
testb $0x20, %r15b
jne 0x3fa89
leaq 0x84(%r14), %rax
jmp 0x3fa90
leaq 0x88(%r14), %rax
jmp 0x3fa90
leaq 0x8c(%r14), %rax
movl (%rax), %r12d
leaq 0x68(%rsp), %r15
movl %r12d, 0xc(%r15)
movss 0x94(%r14), %xmm0
movss %xmm0, 0x30(%rsp)
movl %r12d, %edi
callq 0x13e60
movl %eax, %r13d
movl %r12d, %edi
movss 0x30(%rsp), %xmm0
callq 0x13e60
movl %eax, 0xc(%r15)
movq $0x0, (%r15)
movl 0x80(%r14), %edx
xorps %xmm2, %xmm2
movq %rbx, %rdi
movl 0x8(%rsp), %esi
movaps 0x10(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movl %r13d, %ecx
movq 0xc0(%rsp), %r12
movq %r12, %r8
callq 0x52e29
movsd 0x48(%rsp), %xmm0
movsd 0x50(%rsp), %xmm1
movq %rbx, %rdi
movq 0x40(%rsp), %rsi
movl 0xc(%rsp), %edx
movq %r15, %rcx
movl $0x12, %r8d
movq %r12, %r9
callq 0x45d79
movq 0xd0(%r14), %rax
testq %rax, %rax
je 0x3fb3e
movq 0xc0(%r14), %rsi
movq %rbx, %rdi
callq *%rax
movl %ebp, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq