// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_chart_add_slot_colored
NK_API void
nk_chart_add_slot_colored(struct nk_context *ctx, const enum nk_chart_type type,
    struct nk_color color, struct nk_color highlight,
    int count, float min_value, float max_value)
{
    const struct nk_style_chart* style;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    NK_ASSERT(ctx->current->layout->chart.slot < NK_CHART_MAX_SLOT);
    if (!ctx || !ctx->current || !ctx->current->layout) return;
    if (ctx->current->layout->chart.slot >= NK_CHART_MAX_SLOT) return;

    style = &ctx->style.chart;

    /* add another slot into the graph */
    {struct nk_chart *chart = &ctx->current->layout->chart;
    struct nk_chart_slot *slot = &chart->slots[chart->slot++];
    slot->type = type;
    slot->count = count;
    slot->color = nk_rgb_factor(color, style->color_factor);
    slot->highlight = highlight;
    slot->min = NK_MIN(min_value, max_value);
    slot->max = NK_MAX(min_value, max_value);
    slot->range = slot->max - slot->min;
    slot->show_markers = style->show_markers;}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movss %xmm1, 0x14(%rsp)
movss %xmm0, 0x10(%rsp)
movl %r8d, %r15d
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, %r12d
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x5047e
movq 0x37b99(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x2192a(%rip), %rsi     # 0x71d8c
leaq 0x21941(%rip), %rdx     # 0x71daa
movl $0x6ffe, %ecx           # imm = 0x6FFE
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x504b6
movq 0x37b61(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x218f2(%rip), %rsi     # 0x71d8c
leaq 0x21909(%rip), %rdx     # 0x71daa
movl $0x6fff, %ecx           # imm = 0x6FFF
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x504f5
movq 0x37b22(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x218b3(%rip), %rsi     # 0x71d8c
leaq 0x218ca(%rip), %rdx     # 0x71daa
movl $0x7000, %ecx           # imm = 0x7000
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
movq 0xa8(%rax), %rax
cmpl $0x4, 0xf8(%rax)
jl 0x5053a
movq 0x37add(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x2186e(%rip), %rsi     # 0x71d8c
leaq 0x21885(%rip), %rdx     # 0x71daa
movl $0x7001, %ecx           # imm = 0x7001
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x50601
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x50601
movq 0xa8(%rax), %r13
testq %r13, %r13
je 0x50601
movslq 0xf8(%r13), %rax
cmpq $0x3, %rax
jg 0x50601
leal 0x1(%rax), %ecx
movl %ecx, 0xf8(%r13)
movl %ebp, 0xc(%rsp)
imulq $0x2c, %rax, %rbp
movl %r12d, 0x10c(%r13,%rbp)
movl %r15d, 0x124(%r13,%rbp)
movss 0x166c(%rbx), %xmm0
movl %r14d, %edi
callq 0x13e60
movl %eax, 0x110(%r13,%rbp)
movl 0xc(%rsp), %eax
movl %eax, 0x114(%r13,%rbp)
movss 0x10(%rsp), %xmm2
movaps %xmm2, %xmm0
movss 0x14(%rsp), %xmm1
minss %xmm1, %xmm0
movss %xmm0, 0x118(%r13,%rbp)
maxss %xmm2, %xmm1
movss %xmm1, 0x11c(%r13,%rbp)
subss %xmm0, %xmm1
movss %xmm1, 0x120(%r13,%rbp)
movl 0x1674(%rbx), %eax
movl %eax, 0x134(%r13,%rbp)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq