// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_chart_push_slot
NK_API nk_flags
nk_chart_push_slot(struct nk_context *ctx, float value, int slot)
{
    nk_flags flags;
    struct nk_window *win;

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

    win = ctx->current;
    if (win->layout->chart.slot < slot) return nk_false;
    switch (win->layout->chart.slots[slot].type) {
    case NK_CHART_LINES:
        flags = nk_chart_push_line(ctx, win, &win->layout->chart, value, slot); break;
    case NK_CHART_COLUMN:
        flags = nk_chart_push_column(ctx, win, &win->layout->chart, value, slot); break;
    default:
    case NK_CHART_MAX:
        flags = 0;
    }
    return flags;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %r15d
movq %rdi, %r14
testq %rdi, %rdi
movaps %xmm0, (%rsp)
jne 0x4b3e7
movq 0x39c32(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x1e944(%rip), %rsi     # 0x69d0c
leaq 0x1e95b(%rip), %rdx     # 0x69d2a
movl $0x7098, %ecx           # imm = 0x7098
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movaps (%rsp), %xmm0
cmpq $0x0, 0x4780(%r14)
jne 0x4b421
movq 0x39bf8(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x1e90a(%rip), %rsi     # 0x69d0c
leaq 0x1e921(%rip), %rdx     # 0x69d2a
movl $0x7099, %ecx           # imm = 0x7099
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movaps (%rsp), %xmm0
cmpl $0x4, %r15d
jb 0x4b457
movq 0x39bc2(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x1e8d4(%rip), %rsi     # 0x69d0c
leaq 0x1e8eb(%rip), %rdx     # 0x69d2a
movl $0x709a, %ecx           # imm = 0x709A
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movaps (%rsp), %xmm0
movq 0x4780(%r14), %rbx
movq 0xa8(%rbx), %rax
cmpl %r15d, 0xf8(%rax)
jg 0x4b4a5
movq 0x39b7b(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x1e88d(%rip), %rsi     # 0x69d0c
leaq 0x1e8a4(%rip), %rdx     # 0x69d2a
movl $0x709b, %ecx           # imm = 0x709B
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movaps (%rsp), %xmm0
movq 0x4780(%r14), %rbx
testq %rbx, %rbx
sete %al
cmpl $0x4, %r15d
setge %cl
xorl %ebp, %ebp
orb %al, %cl
jne 0x4b97b
movq 0xa8(%rbx), %r12
cmpl %r15d, 0xf8(%r12)
jle 0x4b97b
movslq %r15d, %rax
imulq $0x2c, %rax, %rax
leaq (%r12,%rax), %r13
addq $0x10c, %r13            # imm = 0x10C
movl (%r13), %eax
cmpl $0x1, %eax
je 0x4b63a
testl %eax, %eax
jne 0x4b97b
movl 0x1b0(%rbx), %ecx
xorl %eax, %eax
testl %ecx, %ecx
cmoveq %r14, %rax
movq %rax, 0x10(%rsp)
testl %r15d, %r15d
jns 0x4b544
movq 0x39ad9(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x1e7eb(%rip), %rsi     # 0x69d0c
leaq 0x1e802(%rip), %rdx     # 0x69d2a
movl %ecx, %ebp
movl $0x702a, %ecx           # imm = 0x702A
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movl %ebp, %ecx
movaps (%rsp), %xmm0
addq $0x68, %rbx
movss 0xc(%r13), %xmm2
movss 0x10(%r13), %xmm1
subss %xmm2, %xmm1
subss %xmm2, %xmm0
divss %xmm1, %xmm0
leaq 0x24(%r13), %r15
movl 0x24(%r13), %eax
testl %eax, %eax
je 0x4b6c3
movss 0x104(%r12), %xmm4
cvtsi2ssl 0x18(%r13), %xmm1
divss %xmm1, %xmm4
cvtsi2ss %eax, %xmm1
movl 0x4(%r13), %r14d
movss 0x108(%r12), %xmm2
movss 0x100(%r12), %xmm3
addss %xmm2, %xmm3
xorps 0x1afc5(%rip), %xmm0    # 0x66570
unpcklps %xmm0, %xmm4            # xmm4 = xmm4[0],xmm0[0],xmm4[1],xmm0[1]
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
mulps %xmm4, %xmm1
movss 0xfc(%r12), %xmm2
unpcklps %xmm3, %xmm2            # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
addps %xmm1, %xmm2
movaps %xmm2, %xmm3
shufps $0x55, %xmm2, %xmm3     # xmm3 = xmm3[1,1],xmm2[1,1]
movss 0x1c(%r13), %xmm0
movss 0x20(%r13), %xmm1
movss 0x1b255(%rip), %xmm4    # 0x66834
movq %rbx, %rdi
movaps %xmm2, (%rsp)
movl %r14d, %esi
callq 0x12930
xorl %ebp, %ebp
testb $0x10, 0x5(%r12)
jne 0x4b8f2
movaps 0x1b1bd(%rip), %xmm0    # 0x667c0
addps (%rsp), %xmm0
movaps 0x1b1c2(%rip), %xmm1    # 0x667d0
movq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0x143d0
testl %eax, %eax
je 0x4b8f2
cmpl $0x0, 0x104(%r12)
je 0x4b8d9
pushq $0x1
popq %rbp
jmp 0x4b8ee
movl 0x1b0(%rbx), %edi
testl %r15d, %r15d
jns 0x4b682
movq 0x399a4(%rip), %rax     # 0x84ff0
movl %edi, %r15d
movq (%rax), %rdi
leaq 0x1e6b3(%rip), %rsi     # 0x69d0c
leaq 0x1e6ca(%rip), %rdx     # 0x69d2a
movl $0x7071, %ecx           # imm = 0x7071
xorl %eax, %eax
callq 0x12ea0
movq 0x3997d(%rip), %rax     # 0x84ff0
movq (%rax), %rdi
callq 0x13960
movl %r15d, %edi
movaps (%rsp), %xmm0
movl 0x18(%r13), %ecx
movl 0x24(%r13), %eax
cmpl %ecx, %eax
jge 0x4b97b
testl %ecx, %ecx
je 0x4b7aa
leal -0x1(%rcx), %edx
cvtsi2ss %edx, %xmm3
movss 0x104(%r12), %xmm1
cvtsi2ss %ecx, %xmm2
subss %xmm3, %xmm1
divss %xmm2, %xmm1
xorps %xmm2, %xmm2
movss %xmm1, %xmm2            # xmm2 = xmm1[0],xmm2[1,2,3]
jmp 0x4b7ad
movss 0xfc(%r12), %xmm1
movss %xmm1, 0x1c(%r13)
movss 0x108(%r12), %xmm2
movss 0x100(%r12), %xmm3
addss %xmm2, %xmm3
mulss %xmm2, %xmm0
subss %xmm0, %xmm3
movss %xmm3, 0x20(%r13)
movaps %xmm1, %xmm0
unpcklps %xmm3, %xmm0            # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
addps 0x1b0da(%rip), %xmm0    # 0x667e0
movl 0x4(%r13), %esi
movl $0x1000, %eax           # imm = 0x1000
andl 0x4(%r12), %eax
xorl %ebp, %ebp
orl %ecx, %eax
jne 0x4b95f
addss 0x1b17a(%rip), %xmm1    # 0x668a0
movss 0x144(%r14), %xmm2
ucomiss %xmm1, %xmm2
jb 0x4b95f
addss 0x1b10c(%rip), %xmm1    # 0x6684c
ucomiss %xmm2, %xmm1
jbe 0x4b95f
addss 0x1b14f(%rip), %xmm3    # 0x668a0
movss 0x148(%r14), %xmm1
ucomiss %xmm3, %xmm1
jb 0x4b95f
addss 0x1b0e1(%rip), %xmm3    # 0x6684c
ucomiss %xmm1, %xmm3
jbe 0x4b95f
movaps 0x1af85(%rip), %xmm1    # 0x66700
movq %r14, %rdi
movaps %xmm0, (%rsp)
callq 0x143d0
cmpl $0x0, 0x104(%r14)
je 0x4b953
xorl %ebp, %ebp
cmpl $0x0, 0x108(%r14)
setne %bpl
addl %ebp, %ebp
jmp 0x4b955
xorps %xmm2, %xmm2
movss 0x108(%r12), %xmm8
movss 0x14(%r13), %xmm4
movaps %xmm0, %xmm1
divss %xmm4, %xmm1
movaps 0x1ada5(%rip), %xmm3    # 0x66570
xorps %xmm1, %xmm3
maxss %xmm1, %xmm3
mulss %xmm8, %xmm3
movaps %xmm3, %xmm1
movlhps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0]
xorps %xmm5, %xmm5
ucomiss %xmm5, %xmm0
jae 0x4b817
subss 0x10(%r13), %xmm0
divss %xmm4, %xmm0
movaps 0x1ad7a(%rip), %xmm4    # 0x66570
xorps %xmm0, %xmm4
maxss %xmm0, %xmm4
mulss %xmm4, %xmm8
addss 0x100(%r12), %xmm8
subss %xmm3, %xmm8
movaps %xmm8, %xmm4
jmp 0x4b855
movss 0xc(%r13), %xmm5
movaps 0x1ad4c(%rip), %xmm6    # 0x66570
movaps %xmm5, %xmm7
xorps %xmm6, %xmm7
maxss %xmm5, %xmm7
addss %xmm0, %xmm7
xorps %xmm4, %xmm6
maxss %xmm4, %xmm6
divss %xmm6, %xmm7
movss 0x100(%r12), %xmm4
addss %xmm8, %xmm4
mulss %xmm8, %xmm7
subss %xmm7, %xmm4
addq $0x68, %rbx
movl 0x4(%r13), %esi
shufps $0xe2, %xmm2, %xmm1     # xmm1 = xmm1[2,0],xmm2[2,3]
cvtsi2ss %eax, %xmm0
movaps %xmm0, %xmm5
mulss %xmm2, %xmm5
addss 0xfc(%r12), %xmm5
addss %xmm0, %xmm5
movaps %xmm5, %xmm0
unpcklps %xmm4, %xmm0            # xmm0 = xmm0[0],xmm4[0],xmm0[1],xmm4[1]
movl $0x1000, %eax           # imm = 0x1000
andl 0x4(%r12), %eax
xorl %ebp, %ebp
orl %edi, %eax
jne 0x4b93f
movss 0x144(%r14), %xmm6
ucomiss %xmm5, %xmm6
jb 0x4b93f
addss %xmm5, %xmm2
ucomiss %xmm6, %xmm2
jbe 0x4b93f
movss 0x148(%r14), %xmm2
ucomiss %xmm4, %xmm2
jb 0x4b93f
addss %xmm4, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x4b93f
cmpl $0x0, 0x104(%r14)
je 0x4b927
pushq $0x1
popq %rbp
jmp 0x4b93b
xorl %eax, %eax
cmpl $0x0, 0x108(%r12)
setne %al
leal 0x1(,%rax,2), %ebp
movl 0x8(%r13), %r14d
cmpl $0x0, 0x28(%r13)
movaps (%rsp), %xmm1
je 0x4b920
movaps 0x1aedc(%rip), %xmm0    # 0x667e0
addps %xmm1, %xmm0
movaps 0x1adf2(%rip), %xmm1    # 0x66700
xorps %xmm2, %xmm2
movq %rbx, %rdi
movl %r14d, %esi
callq 0x12f00
movaps (%rsp), %xmm1
movlps %xmm1, 0x1c(%r13)
jmp 0x4b978
xorl %eax, %eax
cmpl $0x0, 0x108(%r14)
setne %al
leal 0x1(,%rax,2), %ebp
movl 0x8(%r13), %esi
addq $0x24, %r13
xorps %xmm2, %xmm2
movq %rbx, %rdi
callq 0x12f00
movq %r13, %r15
jmp 0x4b978
xorl %ebp, %ebp
orl %eax, %ebp
movl 0x8(%r13), %esi
movaps (%rsp), %xmm0
cmpl $0x0, 0x28(%r13)
je 0x4b978
movaps 0x1ad93(%rip), %xmm1    # 0x66700
xorps %xmm2, %xmm2
movq %rbx, %rdi
callq 0x12f00
incl (%r15)
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq