// File: /workspace/github_c_makefile_star2_O0/space222[P]silo/./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)
{
    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;

    /* 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 = color;
    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;}
}

// Assembly:
subq $0x38, %rsp
movl %edx, 0x34(%rsp)
movl %ecx, 0x30(%rsp)
movq %rdi, 0x28(%rsp)
movl %esi, 0x24(%rsp)
movl %r8d, 0x20(%rsp)
movss %xmm0, 0x1c(%rsp)
movss %xmm1, 0x18(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x31200
jmp 0x3121f
leaq 0x17318(%rip), %rdi     # 0x4851f
leaq 0x141a5(%rip), %rsi     # 0x453b3
movl $0x5e1e, %edx           # imm = 0x5E1E
leaq 0x18595(%rip), %rcx     # 0x497af
callq 0x20a0
movq 0x28(%rsp), %rax
cmpq $0x0, 0x3fe8(%rax)
je 0x31230
jmp 0x3124f
leaq 0x15cc2(%rip), %rdi     # 0x46ef9
leaq 0x14175(%rip), %rsi     # 0x453b3
movl $0x5e1f, %edx           # imm = 0x5E1F
leaq 0x18565(%rip), %rcx     # 0x497af
callq 0x20a0
movq 0x28(%rsp), %rax
movq 0x3fe8(%rax), %rax
cmpq $0x0, 0xa8(%rax)
je 0x31267
jmp 0x31286
leaq 0x15e07(%rip), %rdi     # 0x47075
leaq 0x1413e(%rip), %rsi     # 0x453b3
movl $0x5e20, %edx           # imm = 0x5E20
leaq 0x1852e(%rip), %rcx     # 0x497af
callq 0x20a0
movq 0x28(%rsp), %rax
movq 0x3fe8(%rax), %rax
movq 0xa8(%rax), %rax
cmpl $0x4, 0xf8(%rax)
jge 0x312a4
jmp 0x312c3
leaq 0x18587(%rip), %rdi     # 0x49832
leaq 0x14101(%rip), %rsi     # 0x453b3
movl $0x5e21, %edx           # imm = 0x5E21
leaq 0x184f1(%rip), %rcx     # 0x497af
callq 0x20a0
cmpq $0x0, 0x28(%rsp)
je 0x312f0
movq 0x28(%rsp), %rax
cmpq $0x0, 0x3fe8(%rax)
je 0x312f0
movq 0x28(%rsp), %rax
movq 0x3fe8(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x312f5
jmp 0x3141a
movq 0x28(%rsp), %rax
movq 0x3fe8(%rax), %rax
movq 0xa8(%rax), %rax
cmpl $0x4, 0xf8(%rax)
jl 0x31316
jmp 0x3141a
movq 0x28(%rsp), %rax
movq 0x3fe8(%rax), %rax
movq 0xa8(%rax), %rax
addq $0xf8, %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
addq $0x14, %rax
movq 0x10(%rsp), %rdx
movl (%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, (%rdx)
movslq %ecx, %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movl 0x24(%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, (%rax)
movl 0x20(%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x18(%rax)
movq 0x8(%rsp), %rax
movl 0x34(%rsp), %ecx
movl %ecx, 0x4(%rax)
movq 0x8(%rsp), %rax
movl 0x30(%rsp), %ecx
movl %ecx, 0x8(%rax)
movss 0x1c(%rsp), %xmm1
movss 0x18(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x313a8
movss 0x1c(%rsp), %xmm0
movss %xmm0, 0x4(%rsp)
jmp 0x313b4
movss 0x18(%rsp), %xmm0
movss %xmm0, 0x4(%rsp)
movss 0x4(%rsp), %xmm0
movq 0x8(%rsp), %rax
movss %xmm0, 0xc(%rax)
movss 0x1c(%rsp), %xmm1
movss 0x18(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x313e2
movss 0x18(%rsp), %xmm0
movss %xmm0, (%rsp)
jmp 0x313ed
movss 0x1c(%rsp), %xmm0
movss %xmm0, (%rsp)
movss (%rsp), %xmm0
movq 0x8(%rsp), %rax
movss %xmm0, 0x10(%rax)
movq 0x8(%rsp), %rax
movss 0x10(%rax), %xmm0
movq 0x8(%rsp), %rax
subss 0xc(%rax), %xmm0
movq 0x8(%rsp), %rax
movss %xmm0, 0x14(%rax)
addq $0x38, %rsp
retq
nop