// File: /workspace/github_c_makefile_star2_O3/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 0x4f893
movq 0x37784(%rip), %r13     # 0x86ff0
movq (%r13), %rdi
leaq 0x21525(%rip), %rsi     # 0x70d9c
leaq 0x2153c(%rip), %rdx     # 0x70dba
movl $0x6ffe, %ecx           # imm = 0x6FFE
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x4f8d4
movq 0x3774a(%rip), %r13     # 0x86ff0
movq (%r13), %rdi
leaq 0x214eb(%rip), %rsi     # 0x70d9c
leaq 0x21502(%rip), %rdx     # 0x70dba
movl $0x6fff, %ecx           # imm = 0x6FFF
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
movq 0xa8(%rax), %rcx
testq %rcx, %rcx
jne 0x4f91c
movq 0x37709(%rip), %r13     # 0x86ff0
movq (%r13), %rdi
leaq 0x214aa(%rip), %rsi     # 0x70d9c
leaq 0x214c1(%rip), %rdx     # 0x70dba
movl $0x7000, %ecx           # imm = 0x7000
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
movq 0xa8(%rax), %rcx
cmpl $0x4, 0xf8(%rcx)
jl 0x4f963
movq 0x376c4(%rip), %r13     # 0x86ff0
movq (%r13), %rdi
leaq 0x21465(%rip), %rsi     # 0x70d9c
leaq 0x2147c(%rip), %rdx     # 0x70dba
movl $0x7001, %ecx           # imm = 0x7001
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x4fa0b
movq 0xa8(%rax), %r13
testq %r13, %r13
je 0x4fa0b
movslq 0xf8(%r13), %rax
cmpq $0x3, %rax
jg 0x4fa0b
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 0x13e60
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