// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_text_wrap_colored
NK_API void
nk_text_wrap_colored(struct nk_context *ctx, const char *str,
    int len, struct nk_color color)
{
    struct nk_window *win;
    const struct nk_style *style;

    struct nk_vec2 item_padding;
    struct nk_rect bounds;
    struct nk_text text;

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

    win = ctx->current;
    style = &ctx->style;
    nk_panel_alloc_space(&bounds, ctx);
    item_padding = style->text.padding;

    text.padding.x = item_padding.x;
    text.padding.y = item_padding.y;
    text.background = style->window.background;
    text.text = nk_rgb_factor(color, style->text.color_factor);
    nk_widget_text_wrap(&win->buffer, bounds, str, len, &text, style->font);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %ecx, %r12d
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %rbp
testq %rdi, %rdi
jne 0x41b34
movq 0x434e1(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x281f3(%rip), %rsi     # 0x69d0c
leaq 0x2820a(%rip), %rdx     # 0x69d2a
movl $0x5c41, %ecx           # imm = 0x5C41
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%rbp), %r15
testq %r15, %r15
jne 0x41b73
movq 0x434a9(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x281bb(%rip), %rsi     # 0x69d0c
leaq 0x281d2(%rip), %rdx     # 0x69d2a
movl $0x5c42, %ecx           # imm = 0x5C42
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%rbp), %r15
cmpq $0x0, 0xa8(%r15)
jne 0x41bb9
movq 0x4346c(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2817e(%rip), %rsi     # 0x69d0c
leaq 0x28195(%rip), %rdx     # 0x69d2a
movl $0x5c43, %ecx           # imm = 0x5C43
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%rbp), %r15
testq %r15, %r15
je 0x41d77
cmpq $0x0, 0xa8(%r15)
je 0x41d77
leaq 0x68(%rsp), %rdi
movq %rbp, %rsi
callq 0x3e99a
movl 0x2448(%rbp), %r13d
movss 0x1c8(%rbp), %xmm0
movl %r12d, %edi
callq 0x140a0
addq $0x68, %r15
movq 0x168(%rbp), %r12
leaq 0x68(%rsp), %rcx
movsd (%rcx), %xmm4
movaps %xmm4, 0x20(%rsp)
movsd 0x8(%rcx), %xmm3
leaq 0x78(%rsp), %rcx
andq $0x0, (%rcx)
movl %r13d, 0x8(%rcx)
movl %eax, 0xc(%rcx)
movsd 0x1c0(%rbp), %xmm0
movaps %xmm0, %xmm1
addss %xmm0, %xmm1
maxss %xmm3, %xmm1
shufps $0x55, %xmm3, %xmm3     # xmm3 = xmm3[1,1,1,1]
movaps %xmm0, %xmm2
shufps $0x55, %xmm0, %xmm2     # xmm2 = xmm2[1,1],xmm0[1,1]
movaps %xmm2, 0x50(%rsp)
addss %xmm2, %xmm2
movaps %xmm2, %xmm5
maxss %xmm3, %xmm5
subss %xmm2, %xmm5
movaps %xmm5, 0x30(%rsp)
movaps %xmm0, %xmm2
addps %xmm4, %xmm2
movaps %xmm2, 0x10(%rsp)
movss 0x8(%r12), %xmm2
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
mulps 0x24b34(%rip), %xmm0    # 0x667a0
addps %xmm1, %xmm0
movl $0x1, (%rsp)
leaq 0x445bb(%rip), %r9      # 0x86238
leaq 0x8(%rsp), %rcx
leaq 0xc(%rsp), %r8
movq %r12, %rdi
movq %r14, %rsi
movl %ebx, %edx
movaps %xmm0, 0x40(%rsp)
callq 0x27336
movaps 0x10(%rsp), %xmm0
movl %eax, %ebp
movaps 0x20(%rsp), %xmm1
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
addss 0x30(%rsp), %xmm1
movaps %xmm1, 0x20(%rsp)
xorl %r13d, %r13d
cmpl %ebx, %r13d
jge 0x41d77
testl %ebp, %ebp
je 0x41d77
movaps 0x40(%rsp), %xmm1
addps %xmm0, %xmm1
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
ucomiss 0x20(%rsp), %xmm1
jae 0x41d77
movaps %xmm0, %xmm1
shufps $0x55, %xmm0, %xmm1     # xmm1 = xmm1[1,1],xmm0[1,1]
movaps %xmm1, 0x30(%rsp)
movslq %r13d, %rsi
addq %r14, %rsi
movq %r15, %rdi
movaps %xmm0, 0x10(%rsp)
movaps 0x40(%rsp), %xmm1
movl %ebp, %edx
leaq 0x78(%rsp), %rcx
pushq $0x11
popq %r8
movq %r12, %r9
callq 0x41852
movaps 0x50(%rsp), %xmm0
addss %xmm0, %xmm0
addss 0x8(%r12), %xmm0
addl %ebp, %r13d
addss 0x30(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
shufps $0xe2, %xmm1, %xmm0     # xmm0 = xmm0[2,0],xmm1[2,3]
movaps %xmm0, 0x10(%rsp)
movslq %r13d, %rax
leaq (%r14,%rax), %rsi
movl %ebx, %edx
subl %eax, %edx
movl $0x1, (%rsp)
movq %r12, %rdi
movaps 0x40(%rsp), %xmm0
leaq 0x8(%rsp), %rcx
leaq 0xc(%rsp), %r8
leaq 0x444d2(%rip), %r9      # 0x86238
callq 0x27336
movl %eax, %ebp
movaps 0x10(%rsp), %xmm0
jmp 0x41cb7
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq