// File: /workspace/github_c_makefile_star2_O1/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 $0x38, %rsp
movl %esi, %ebp
movq %rdi, %r15
testq %rdi, %rdi
movaps %xmm0, (%rsp)
jne 0x50670
movq 0x379a9(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x2173b(%rip), %rsi     # 0x71d8c
leaq 0x21752(%rip), %rdx     # 0x71daa
movl $0x7098, %ecx           # imm = 0x7098
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movaps (%rsp), %xmm0
cmpq $0x0, 0x4780(%r15)
jne 0x506aa
movq 0x3796f(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x21701(%rip), %rsi     # 0x71d8c
leaq 0x21718(%rip), %rdx     # 0x71daa
movl $0x7099, %ecx           # imm = 0x7099
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movaps (%rsp), %xmm0
cmpl $0x4, %ebp
jb 0x506df
movq 0x3793a(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x216cc(%rip), %rsi     # 0x71d8c
leaq 0x216e3(%rip), %rdx     # 0x71daa
movl $0x709a, %ecx           # imm = 0x709A
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movaps (%rsp), %xmm0
movq 0x4780(%r15), %rax
movq 0xa8(%rax), %rax
cmpl %ebp, 0xf8(%rax)
jg 0x50725
movq 0x378f4(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x21686(%rip), %rsi     # 0x71d8c
leaq 0x2169d(%rip), %rdx     # 0x71daa
movl $0x709b, %ecx           # imm = 0x709B
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movaps (%rsp), %xmm0
xorl %r14d, %r14d
testq %r15, %r15
je 0x50c8d
movq 0x4780(%r15), %rbx
testq %rbx, %rbx
sete %al
cmpl $0x4, %ebp
setge %cl
orb %al, %cl
jne 0x50c8d
movq 0xa8(%rbx), %r12
cmpl %ebp, 0xf8(%r12)
jle 0x50c8d
movslq %ebp, %rax
imulq $0x2c, %rax, %r13
movl 0x10c(%r12,%r13), %eax
cmpl $0x1, %eax
je 0x5096a
testl %eax, %eax
jne 0x50c8d
movl 0x1b0(%rbx), %ecx
xorl %eax, %eax
testl %ecx, %ecx
cmoveq %r15, %rax
movq %rax, 0x18(%rsp)
testl %ebp, %ebp
jns 0x507cc
movq 0x37851(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x215e3(%rip), %rsi     # 0x71d8c
leaq 0x215fa(%rip), %rdx     # 0x71daa
movl %ecx, %ebp
movl $0x702a, %ecx           # imm = 0x702A
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movl %ebp, %ecx
movaps (%rsp), %xmm0
addq $0x68, %rbx
leaq (%r12,%r13), %rbp
addq $0x10c, %rbp            # imm = 0x10C
movss 0xc(%rbp), %xmm2
movss 0x10(%rbp), %xmm1
subss %xmm2, %xmm1
subss %xmm2, %xmm0
divss %xmm1, %xmm0
leaq (%r12,%r13), %r15
addq $0x130, %r15            # imm = 0x130
movl (%r15), %eax
testl %eax, %eax
je 0x50a0b
movss 0x104(%r12), %xmm4
xorps %xmm1, %xmm1
cvtsi2ssl 0x18(%rbp), %xmm1
divss %xmm1, %xmm4
movl 0x4(%rbp), %r13d
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
movss 0x108(%r12), %xmm2
movss 0x100(%r12), %xmm3
xorps 0x1dd2d(%rip), %xmm0    # 0x6e570
addss %xmm2, %xmm3
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), %xmm0
unpcklps %xmm3, %xmm0            # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
addps %xmm1, %xmm0
movaps %xmm0, (%rsp)
movq 0x1c(%rbp), %xmm0
movdqa %xmm0, 0x20(%rsp)
movl $0x20, %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x2703d
movaps (%rsp), %xmm2
testq %rax, %rax
je 0x508a9
movw $0x1, 0x10(%rax)
movaps 0x20(%rsp), %xmm0
movlhps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0]
cvttps2dq %xmm0, %xmm0
packssdw %xmm0, %xmm0
movq %xmm0, 0x12(%rax)
movl %r13d, 0x1a(%rax)
xorl %r14d, %r14d
testb $0x10, 0x5(%r12)
jne 0x50938
movq 0x18(%rsp), %rcx
testq %rcx, %rcx
je 0x50938
movss 0x1e05e(%rip), %xmm0    # 0x6e928
addss %xmm2, %xmm0
movss 0x144(%rcx), %xmm1
ucomiss %xmm0, %xmm1
jb 0x50938
addss 0x1dfe9(%rip), %xmm0    # 0x6e8cc
ucomiss %xmm1, %xmm0
jbe 0x50938
movaps %xmm2, %xmm0
shufps $0x55, %xmm2, %xmm0     # xmm0 = xmm0[1,1],xmm2[1,1]
addss 0x1e031(%rip), %xmm0    # 0x6e928
movss 0x148(%rcx), %xmm1
ucomiss %xmm0, %xmm1
jb 0x50938
addss 0x1dfc0(%rip), %xmm0    # 0x6e8cc
ucomiss %xmm1, %xmm0
jbe 0x50938
movl $0x1, %r14d
cmpl $0x0, 0x104(%rcx)
jne 0x50934
xorl %eax, %eax
cmpl $0x0, 0x108(%rcx)
setne %al
leal 0x1(,%rax,2), %r14d
movl 0x8(%rbp), %r13d
cmpl $0x0, 0x28(%rbp)
je 0x50961
movaps 0x1df1b(%rip), %xmm0    # 0x6e860
addps %xmm2, %xmm0
movaps 0x1de31(%rip), %xmm1    # 0x6e780
xorps %xmm2, %xmm2
movq %rbx, %rdi
movl %r13d, %esi
callq 0x12de0
movaps (%rsp), %xmm2
movlps %xmm2, 0x1c(%rbp)
jmp 0x50c8a
movl 0x1b0(%rbx), %edi
xorl %r14d, %r14d
testl %edi, %edi
cmovneq %r14, %r15
testl %ebp, %ebp
jns 0x509b8
movq 0x3766c(%rip), %rax     # 0x87ff0
movl %edi, %ebp
movq (%rax), %rdi
leaq 0x213fc(%rip), %rsi     # 0x71d8c
leaq 0x21413(%rip), %rdx     # 0x71daa
movl $0x7071, %ecx           # imm = 0x7071
xorl %eax, %eax
callq 0x12d80
movq 0x37646(%rip), %rax     # 0x87ff0
movq (%rax), %rdi
callq 0x13780
movl %ebp, %edi
movaps (%rsp), %xmm0
movl 0x124(%r12,%r13), %edx
movl 0x130(%r12,%r13), %ecx
cmpl %edx, %ecx
jge 0x50c8d
leaq (%r12,%r13), %rax
addq $0x10c, %rax            # imm = 0x10C
testl %edx, %edx
je 0x50b20
leal -0x1(%rdx), %esi
cvtsi2ss %esi, %xmm3
movss 0x104(%r12), %xmm1
cvtsi2ss %edx, %xmm2
subss %xmm3, %xmm1
divss %xmm2, %xmm1
xorps %xmm2, %xmm2
movss %xmm1, %xmm2            # xmm2 = xmm1[0],xmm2[1,2,3]
jmp 0x50b23
movss 0xfc(%r12), %xmm3
movss %xmm3, 0x1c(%rbp)
movss 0x108(%r12), %xmm2
movss 0x100(%r12), %xmm1
addss %xmm2, %xmm1
mulss %xmm2, %xmm0
subss %xmm0, %xmm1
movss %xmm1, 0x20(%rbp)
movaps %xmm3, %xmm0
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
addps 0x1de14(%rip), %xmm0    # 0x6e860
movl 0x4(%rbp), %esi
movl $0x1000, %eax           # imm = 0x1000
andl 0x4(%r12), %eax
xorl %r14d, %r14d
orl %ecx, %eax
jne 0x50c72
addss 0x1debc(%rip), %xmm3    # 0x6e928
movq 0x18(%rsp), %rdx
movss 0x144(%rdx), %xmm2
ucomiss %xmm3, %xmm2
jb 0x50c72
addss 0x1de42(%rip), %xmm3    # 0x6e8cc
ucomiss %xmm2, %xmm3
jbe 0x50c72
addss 0x1de8d(%rip), %xmm1    # 0x6e928
movss 0x148(%rdx), %xmm3
ucomiss %xmm1, %xmm3
jb 0x50c72
addss 0x1de18(%rip), %xmm1    # 0x6e8cc
ucomiss %xmm3, %xmm1
jbe 0x50c72
movss 0x1de6b(%rip), %xmm1    # 0x6e930
movaps %xmm0, %xmm4
addss %xmm1, %xmm4
movaps %xmm0, %xmm5
cmpleps %xmm2, %xmm5
cmpltps %xmm4, %xmm2
andps %xmm5, %xmm2
movd %xmm2, %ecx
movaps %xmm0, %xmm2
shufps $0x55, %xmm0, %xmm2     # xmm2 = xmm2[1,1],xmm0[1,1]
addss %xmm2, %xmm1
cmpleps %xmm3, %xmm2
cmpltps %xmm1, %xmm3
andps %xmm2, %xmm3
movd %xmm3, %eax
andl %ecx, %eax
andl $0x1, %eax
cmpl $0x0, 0x104(%rdx)
je 0x50c69
xorl %r14d, %r14d
cmpl $0x0, 0x108(%rdx)
setne %r14b
addl %r14d, %r14d
jmp 0x50c6c
xorps %xmm2, %xmm2
movss 0x108(%r12), %xmm8
movss 0x14(%rax), %xmm4
movaps %xmm0, %xmm1
divss %xmm4, %xmm1
movaps 0x1da30(%rip), %xmm3    # 0x6e570
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 0x50b8b
subss 0x10(%rax), %xmm0
divss %xmm4, %xmm0
movaps 0x1da06(%rip), %xmm4    # 0x6e570
xorps %xmm0, %xmm4
maxss %xmm0, %xmm4
mulss %xmm4, %xmm8
addss 0x100(%r12), %xmm8
subss %xmm3, %xmm8
movaps %xmm8, %xmm4
jmp 0x50bc8
movss 0xc(%rax), %xmm5
movaps 0x1d9d9(%rip), %xmm6    # 0x6e570
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(%rax), %esi
shufps $0xe2, %xmm2, %xmm1     # xmm1 = xmm1[2,0],xmm2[2,3]
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %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, %ecx           # imm = 0x1000
andl 0x4(%r12), %ecx
xorl %r14d, %r14d
orl %edi, %ecx
jne 0x50c5c
movss 0x144(%r15), %xmm6
ucomiss %xmm5, %xmm6
jb 0x50c5c
addss %xmm5, %xmm2
ucomiss %xmm6, %xmm2
jbe 0x50c5c
movss 0x148(%r15), %xmm2
ucomiss %xmm4, %xmm2
jb 0x50c5c
addss %xmm4, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x50c5c
movl $0x1, %r14d
cmpl $0x0, 0x104(%r15)
jne 0x50c59
xorl %ecx, %ecx
cmpl $0x0, 0x108(%r15)
setne %cl
leal 0x1(,%rcx,2), %r14d
movl 0x8(%rax), %esi
leaq (%r12,%r13), %r15
addq $0x130, %r15            # imm = 0x130
jmp 0x50c7f
xorl %r14d, %r14d
orl %eax, %r14d
movl 0x8(%rbp), %esi
cmpl $0x0, 0x28(%rbp)
je 0x50c8a
movaps 0x1db01(%rip), %xmm1    # 0x6e780
xorps %xmm2, %xmm2
movq %rbx, %rdi
callq 0x12de0
incl (%r15)
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq