// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0x7c719
movq 0x48903(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x34ca9(%rip), %rsi     # 0xb13a0
leaq 0x34cc0(%rip), %rdx     # 0xb13be
movl $0x7553, %ecx           # imm = 0x7553
movb $0x0, %al
callq 0x13ec0
movq 0x488df(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x7c71b
jmp 0x7c71d
movq 0x30(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x7c75f
movq 0x488bd(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x34c63(%rip), %rsi     # 0xb13a0
leaq 0x34c7a(%rip), %rdx     # 0xb13be
movl $0x7554, %ecx           # imm = 0x7554
movb $0x0, %al
callq 0x13ec0
movq 0x48899(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x7c761
jmp 0x7c763
movq 0x30(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x7c7ac
movq 0x48870(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x34c16(%rip), %rsi     # 0xb13a0
leaq 0x34c2d(%rip), %rdx     # 0xb13be
movl $0x7555, %ecx           # imm = 0x7555
movb $0x0, %al
callq 0x13ec0
movq 0x4884c(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x7c7ae
jmp 0x7c7b0
cmpq $0x0, 0x28(%rsp)
jne 0x7c7eb
movq 0x48831(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x34bd7(%rip), %rsi     # 0xb13a0
leaq 0x34bee(%rip), %rdx     # 0xb13be
movl $0x7556, %ecx           # imm = 0x7556
movb $0x0, %al
callq 0x13ec0
movq 0x4880d(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x7c7ed
cmpq $0x0, 0x30(%rsp)
je 0x7c822
movq 0x30(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x7c822
movq 0x30(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
je 0x7c822
cmpq $0x0, 0x28(%rsp)
jne 0x7c827
jmp 0x7c91a
movq 0x30(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x2364(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rdi
callq 0x14050
movl %eax, 0x14(%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movq 0x20(%rsp), %rcx
movq (%rcx), %rcx
movq 0x20(%rsp), %rdx
movq (%rdx), %rdx
movss 0x8(%rdx), %xmm0
movq 0x28(%rsp), %rsi
movl 0x14(%rsp), %edx
movq (%rcx), %rdi
callq *%rax
movss %xmm0, 0x10(%rsp)
movss 0x18(%rsp), %xmm0
movss 0x10(%rsp), %xmm1
movss 0x30c9d(%rip), %xmm2    # 0xad53c
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rax
movss 0x8(%rax), %xmm1
movss 0x1c(%rsp), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0xc(%rsp)
movq 0x30(%rsp), %rdi
movss 0x10(%rsp), %xmm0
callq 0x14fb0
cmpl $0x0, %eax
je 0x7c91a
movq 0x30(%rsp), %rdi
movss 0xc(%rsp), %xmm0
movl $0x1, %esi
callq 0x13f60
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
movl 0x14(%rsp), %edx
movl $0x11, %ecx
callq 0x14b90
movq 0x30(%rsp), %rdi
callq 0x14740
addq $0x38, %rsp
retq
nop