// File: /workspace/github_c_makefile_star2_O2/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
pushq %rax
movss %xmm1, 0x4(%rsp)
movss %xmm0, (%rsp)
movl %r8d, %r15d
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, %r12d
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x4b1ff
movq 0x39e18(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x1eb29(%rip), %rsi     # 0x69d0c
leaq 0x1eb40(%rip), %rdx     # 0x69d2a
movl $0x6ffe, %ecx           # imm = 0x6FFE
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x4b240
movq 0x39dde(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x1eaef(%rip), %rsi     # 0x69d0c
leaq 0x1eb06(%rip), %rdx     # 0x69d2a
movl $0x6fff, %ecx           # imm = 0x6FFF
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
movq 0xa8(%rax), %rcx
testq %rcx, %rcx
jne 0x4b288
movq 0x39d9d(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x1eaae(%rip), %rsi     # 0x69d0c
leaq 0x1eac5(%rip), %rdx     # 0x69d2a
movl $0x7000, %ecx           # imm = 0x7000
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
movq 0xa8(%rax), %rcx
cmpl $0x4, 0xf8(%rcx)
jl 0x4b2cf
movq 0x39d58(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x1ea69(%rip), %rsi     # 0x69d0c
leaq 0x1ea80(%rip), %rdx     # 0x69d2a
movl $0x7001, %ecx           # imm = 0x7001
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x4b377
movq 0xa8(%rax), %r13
testq %r13, %r13
je 0x4b377
movslq 0xf8(%r13), %rax
cmpq $0x3, %rax
jg 0x4b377
leal 0x1(%rax), %ecx
movl %ecx, 0xf8(%r13)
movl %r14d, %edi
movl %ebp, %r14d
imulq $0x2c, %rax, %rbp
movl %r12d, 0x10c(%r13,%rbp)
movl %r15d, 0x124(%r13,%rbp)
movss 0x166c(%rbx), %xmm0
callq 0x140a0
movl %eax, 0x110(%r13,%rbp)
movl %r14d, 0x114(%r13,%rbp)
movss (%rsp), %xmm2
movaps %xmm2, %xmm0
movss 0x4(%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 $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq