// File: /workspace/github_c_makefile_star2_O1/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, %ebx
movl %edx, 0x8(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdi, %r12
testq %rdi, %rdi
jne 0x4607d
movq 0x41f98(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2bd2a(%rip), %rsi     # 0x71d8c
leaq 0x2bd41(%rip), %rdx     # 0x71daa
movl $0x5c41, %ecx           # imm = 0x5C41
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r12)
jne 0x460b4
movq 0x41f61(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2bcf3(%rip), %rsi     # 0x71d8c
leaq 0x2bd0a(%rip), %rdx     # 0x71daa
movl $0x5c42, %ecx           # imm = 0x5C42
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r12), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x460f2
movq 0x41f23(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2bcb5(%rip), %rsi     # 0x71d8c
leaq 0x2bccc(%rip), %rdx     # 0x71daa
movl $0x5c43, %ecx           # imm = 0x5C43
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %r12, %r12
je 0x462f5
movq 0x4780(%r12), %r15
testq %r15, %r15
je 0x462f5
cmpq $0x0, 0xa8(%r15)
je 0x462f5
leaq 0x78(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x42a3d
movsd 0x1c0(%r12), %xmm0
movaps %xmm0, 0x20(%rsp)
movl 0x2448(%r12), %ebp
movss 0x1c8(%r12), %xmm0
movl %ebx, %edi
callq 0x13e60
movq 0x168(%r12), %r12
movsd (%r13), %xmm0
movaps %xmm0, 0x30(%rsp)
movsd 0x8(%r13), %xmm0
leaq 0x10(%rsp), %rcx
movl $0x0, (%rcx)
movq $0x0, 0x68(%rsp)
movl %ebp, 0x70(%rsp)
movl %eax, 0x74(%rsp)
movaps 0x20(%rsp), %xmm3
movaps %xmm3, %xmm2
addss %xmm3, %xmm2
movaps %xmm0, 0x40(%rsp)
maxss %xmm0, %xmm2
movss 0x8(%r12), %xmm1
unpcklps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
movsd 0x28692(%rip), %xmm0    # 0x6e840
mulps %xmm3, %xmm0
addps %xmm2, %xmm0
movl $0x1, (%rsp)
leaq 0x42f2e(%rip), %r9      # 0x890f0
leaq 0x14(%rsp), %r8
movq %r12, %rdi
movq 0x18(%rsp), %rsi
movl 0x8(%rsp), %ebx
movl %ebx, %edx
movaps %xmm0, 0x50(%rsp)
callq 0x28a1c
testl %ebx, %ebx
jle 0x462f5
movl %eax, %ebp
testl %eax, %eax
je 0x462f5
addq $0x68, %r15
movaps 0x20(%rsp), %xmm2
movaps %xmm2, %xmm0
movaps 0x30(%rsp), %xmm3
addps %xmm3, %xmm0
movaps 0x40(%rsp), %xmm5
shufps $0x55, %xmm5, %xmm5     # xmm5 = xmm5[1,1,1,1]
shufps $0x55, %xmm2, %xmm2     # xmm2 = xmm2[1,1,1,1]
movaps %xmm2, %xmm4
addss %xmm2, %xmm4
movaps %xmm4, %xmm1
maxss %xmm5, %xmm1
subss %xmm4, %xmm1
shufps $0x55, %xmm3, %xmm3     # xmm3 = xmm3[1,1,1,1]
addss %xmm1, %xmm3
movaps %xmm3, 0x30(%rsp)
xorl %r13d, %r13d
addss %xmm2, %xmm2
movaps %xmm2, 0x20(%rsp)
movaps 0x50(%rsp), %xmm1
addps %xmm0, %xmm1
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
ucomiss 0x30(%rsp), %xmm1
jae 0x462f5
movslq %r13d, %r13
movq 0x18(%rsp), %rbx
leaq (%rbx,%r13), %rsi
movq %r15, %rdi
movaps 0x50(%rsp), %xmm1
movl %ebp, %edx
leaq 0x68(%rsp), %rcx
movl $0x11, %r8d
movq %r12, %r9
movaps %xmm0, 0x40(%rsp)
callq 0x45d79
addl %ebp, %r13d
movss 0x8(%r12), %xmm0
addss 0x20(%rsp), %xmm0
movss %xmm0, 0xc(%rsp)
movslq %r13d, %r14
leaq (%rbx,%r14), %rsi
movl $0x1, (%rsp)
movl 0x8(%rsp), %ebx
movl %ebx, %edx
subl %r14d, %edx
movq %r12, %rdi
movaps 0x50(%rsp), %xmm0
leaq 0x10(%rsp), %rcx
leaq 0x14(%rsp), %r8
leaq 0x42e28(%rip), %r9      # 0x890f0
callq 0x28a1c
movaps 0x40(%rsp), %xmm1
cmpl %r14d, %ebx
jle 0x462f5
movl %eax, %ebp
movaps %xmm1, %xmm0
shufps $0x55, %xmm1, %xmm0     # xmm0 = xmm0[1,1],xmm1[1,1]
addss 0xc(%rsp), %xmm0
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
shufps $0xe2, %xmm1, %xmm0     # xmm0 = xmm0[2,0],xmm1[2,3]
testl %eax, %eax
jne 0x4623d
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq