// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_tooltip
NK_API void
nk_tooltip(struct nk_context *ctx, const char *text)
{
    const struct nk_style *style;
    struct nk_vec2 padding;

    int text_len;
    float text_width;
    float text_height;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    NK_ASSERT(text);
    if (!ctx || !ctx->current || !ctx->current->layout || !text)
        return;

    /* fetch configuration data */
    style = &ctx->style;
    padding = style->window.padding;

    /* calculate size of the text and tooltip */
    text_len = nk_strlen(text);
    text_width = style->font->width(style->font->userdata,
                    style->font->height, text, text_len);
    text_width += (4 * padding.x);
    text_height = (style->font->height + 2 * padding.y);

    /* execute tooltip and fill with text */
    if (nk_tooltip_begin(ctx, (float)text_width)) {
        nk_layout_row_dynamic(ctx, (float)text_height, 1);
        nk_text(ctx, text, text_len, NK_TEXT_LEFT);
        nk_tooltip_end(ctx);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x4ece4
movq 0x36331(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x1b043(%rip), %rsi     # 0x69d0c
leaq 0x1b05a(%rip), %rdx     # 0x69d2a
movl $0x7553, %ecx           # imm = 0x7553
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x4ed23
movq 0x362f9(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x1b00b(%rip), %rsi     # 0x69d0c
leaq 0x1b022(%rip), %rdx     # 0x69d2a
movl $0x7554, %ecx           # imm = 0x7554
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x4ed59
movq 0x362bc(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x1afce(%rip), %rsi     # 0x69d0c
leaq 0x1afe5(%rip), %rdx     # 0x69d2a
movl $0x7555, %ecx           # imm = 0x7555
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
testq %r14, %r14
jne 0x4ed8a
movq 0x3628b(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x1af9d(%rip), %rsi     # 0x69d0c
leaq 0x1afb4(%rip), %rdx     # 0x69d2a
movl $0x7556, %ecx           # imm = 0x7556
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x4ee57
testq %r14, %r14
je 0x4ee57
cmpq $0x0, 0xa8(%rax)
je 0x4ee57
movss 0x24cc(%rbx), %xmm0
movss %xmm0, (%rsp)
movss 0x24d0(%rbx), %xmm0
movss %xmm0, 0x4(%rsp)
movq %r14, %rdi
callq 0x13040
movl %eax, %ebp
movq 0x168(%rbx), %rax
movss 0x8(%rax), %xmm0
movq (%rax), %rdi
movq %r14, %rsi
movl %ebp, %edx
callq *0x10(%rax)
movss (%rsp), %xmm1
mulss 0x17aae(%rip), %xmm1    # 0x668a8
addss %xmm1, %xmm0
movq 0x168(%rbx), %rax
movss 0x8(%rax), %xmm1
movss %xmm1, (%rsp)
movq %rbx, %rdi
callq 0x13f70
testl %eax, %eax
je 0x4ee57
movss 0x4(%rsp), %xmm0
addss %xmm0, %xmm0
addss (%rsp), %xmm0
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x12f50
pushq $0x11
popq %rcx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x13b50
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x13720
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq