// File: /workspace/github_c_makefile_star2_O3/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, %r15d
movq %rdi, %r14
testq %rdi, %rdi
movaps %xmm0, (%rsp)
jne 0x4fa7b
movq 0x3759e(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x21340(%rip), %rsi     # 0x70d9c
leaq 0x21357(%rip), %rdx     # 0x70dba
movl $0x7098, %ecx           # imm = 0x7098
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movaps (%rsp), %xmm0
cmpq $0x0, 0x4780(%r14)
jne 0x4fab5
movq 0x37564(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x21306(%rip), %rsi     # 0x70d9c
leaq 0x2131d(%rip), %rdx     # 0x70dba
movl $0x7099, %ecx           # imm = 0x7099
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movaps (%rsp), %xmm0
cmpl $0x4, %r15d
jb 0x4faeb
movq 0x3752e(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x212d0(%rip), %rsi     # 0x70d9c
leaq 0x212e7(%rip), %rdx     # 0x70dba
movl $0x709a, %ecx           # imm = 0x709A
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movaps (%rsp), %xmm0
movq 0x4780(%r14), %rbx
movq 0xa8(%rbx), %rax
cmpl %r15d, 0xf8(%rax)
jg 0x4fb39
movq 0x374e7(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x21289(%rip), %rsi     # 0x70d9c
leaq 0x212a0(%rip), %rdx     # 0x70dba
movl $0x709b, %ecx           # imm = 0x709B
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movaps (%rsp), %xmm0
movq 0x4780(%r14), %rbx
testq %rbx, %rbx
sete %al
cmpl $0x4, %r15d
setge %cl
xorl %ebp, %ebp
orb %al, %cl
jne 0x5007d
movq 0xa8(%rbx), %r13
cmpl %r15d, 0xf8(%r13)
jle 0x5007d
movslq %r15d, %rax
imulq $0x2c, %rax, %rax
leaq (%rax,%r13), %r12
addq $0x10c, %r12            # imm = 0x10C
movl (%r12), %eax
cmpl $0x1, %eax
je 0x4fd68
testl %eax, %eax
jne 0x5007d
movl 0x1b0(%rbx), %ecx
xorl %eax, %eax
testl %ecx, %ecx
cmoveq %r14, %rax
movq %rax, 0x18(%rsp)
testl %r15d, %r15d
jns 0x4fbd7
movq 0x37446(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x211e8(%rip), %rsi     # 0x70d9c
leaq 0x211ff(%rip), %rdx     # 0x70dba
movl %ecx, %ebp
movl $0x702a, %ecx           # imm = 0x702A
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movl %ebp, %ecx
movaps (%rsp), %xmm0
addq $0x68, %rbx
movss 0xc(%r12), %xmm2
movss 0x10(%r12), %xmm1
subss %xmm2, %xmm1
subss %xmm2, %xmm0
divss %xmm1, %xmm0
leaq 0x24(%r12), %r15
movl 0x24(%r12), %eax
testl %eax, %eax
je 0x4fdf2
movss 0x104(%r13), %xmm4
xorps %xmm1, %xmm1
cvtsi2ssl 0x18(%r12), %xmm1
divss %xmm1, %xmm4
movl 0x4(%r12), %r14d
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
movss 0x108(%r13), %xmm2
movss 0x100(%r13), %xmm3
xorps 0x1d92d(%rip), %xmm0    # 0x6d570
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(%r13), %xmm0
unpcklps %xmm3, %xmm0            # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
addps %xmm1, %xmm0
movaps %xmm0, (%rsp)
movq 0x1c(%r12), %xmm0
movdqa %xmm0, 0x20(%rsp)
movl $0x20, %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x27250
movaps (%rsp), %xmm2
testq %rax, %rax
je 0x4fcaa
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 %r14d, 0x1a(%rax)
xorl %ebp, %ebp
testb $0x10, 0x5(%r13)
jne 0x4fd32
movq 0x18(%rsp), %rcx
testq %rcx, %rcx
je 0x4fd32
movss 0x1dc4f(%rip), %xmm0    # 0x6d914
addss %xmm2, %xmm0
movss 0x144(%rcx), %xmm1
ucomiss %xmm0, %xmm1
jb 0x4fd32
addss 0x1dbde(%rip), %xmm0    # 0x6d8bc
ucomiss %xmm1, %xmm0
jbe 0x4fd32
movaps %xmm2, %xmm0
shufps $0x55, %xmm2, %xmm0     # xmm0 = xmm0[1,1],xmm2[1,1]
addss 0x1dc22(%rip), %xmm0    # 0x6d914
movss 0x148(%rcx), %xmm1
ucomiss %xmm0, %xmm1
jb 0x4fd32
addss 0x1dbb5(%rip), %xmm0    # 0x6d8bc
ucomiss %xmm1, %xmm0
jbe 0x4fd32
movl $0x1, %ebp
cmpl $0x0, 0x104(%rcx)
jne 0x4fd2d
xorl %eax, %eax
cmpl $0x0, 0x108(%rcx)
setne %al
leal 0x1(,%rax,2), %ebp
movl 0x8(%r12), %r14d
cmpl $0x0, 0x28(%r12)
je 0x4fd5d
movaps 0x1daff(%rip), %xmm0    # 0x6d840
addps %xmm2, %xmm0
movaps 0x1da25(%rip), %xmm1    # 0x6d770
xorps %xmm2, %xmm2
movq %rbx, %rdi
movl %r14d, %esi
callq 0x12de0
movaps (%rsp), %xmm2
movlps %xmm2, 0x1c(%r12)
jmp 0x5007a
movl 0x1b0(%rbx), %edi
testl %r15d, %r15d
jns 0x4fdb0
movq 0x37276(%rip), %rax     # 0x86ff0
movl %edi, %r15d
movq (%rax), %rdi
leaq 0x21015(%rip), %rsi     # 0x70d9c
leaq 0x2102c(%rip), %rdx     # 0x70dba
movl $0x7071, %ecx           # imm = 0x7071
xorl %eax, %eax
callq 0x12d80
movq 0x3724f(%rip), %rax     # 0x86ff0
movq (%rax), %rdi
callq 0x13780
movl %r15d, %edi
movaps (%rsp), %xmm0
movl 0x18(%r12), %ecx
movl 0x24(%r12), %eax
cmpl %ecx, %eax
jge 0x5007d
testl %ecx, %ecx
je 0x4ff05
leal -0x1(%rcx), %edx
cvtsi2ss %edx, %xmm3
movss 0x104(%r13), %xmm1
cvtsi2ss %ecx, %xmm2
subss %xmm3, %xmm1
divss %xmm2, %xmm1
xorps %xmm2, %xmm2
movss %xmm1, %xmm2            # xmm2 = xmm1[0],xmm2[1,2,3]
jmp 0x4ff08
movss 0xfc(%r13), %xmm3
movss %xmm3, 0x1c(%r12)
movss 0x108(%r13), %xmm2
movss 0x100(%r13), %xmm1
addss %xmm2, %xmm1
mulss %xmm2, %xmm0
subss %xmm0, %xmm1
movss %xmm1, 0x20(%r12)
movaps %xmm3, %xmm0
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
addps 0x1da0c(%rip), %xmm0    # 0x6d840
movl 0x4(%r12), %esi
movl $0x1000, %eax           # imm = 0x1000
andl 0x4(%r13), %eax
xorl %ebp, %ebp
orl %ecx, %eax
jne 0x50060
addss 0x1dac0(%rip), %xmm3    # 0x6d914
movss 0x144(%r14), %xmm2
ucomiss %xmm3, %xmm2
jb 0x50060
addss 0x1da4e(%rip), %xmm3    # 0x6d8bc
ucomiss %xmm2, %xmm3
jbe 0x50060
addss 0x1da95(%rip), %xmm1    # 0x6d914
movss 0x148(%r14), %xmm3
ucomiss %xmm1, %xmm3
jb 0x50060
addss 0x1da23(%rip), %xmm1    # 0x6d8bc
ucomiss %xmm3, %xmm1
jbe 0x50060
movss 0x1da72(%rip), %xmm1    # 0x6d91c
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(%r14)
je 0x50057
xorl %ebp, %ebp
cmpl $0x0, 0x108(%r14)
setne %bpl
addl %ebp, %ebp
jmp 0x50059
xorps %xmm2, %xmm2
movss 0x108(%r13), %xmm8
movss 0x14(%r12), %xmm4
movaps %xmm0, %xmm1
divss %xmm4, %xmm1
movaps 0x1d64a(%rip), %xmm3    # 0x6d570
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 0x4ff72
subss 0x10(%r12), %xmm0
divss %xmm4, %xmm0
movaps 0x1d61e(%rip), %xmm4    # 0x6d570
xorps %xmm0, %xmm4
maxss %xmm0, %xmm4
mulss %xmm4, %xmm8
addss 0x100(%r13), %xmm8
subss %xmm3, %xmm8
movaps %xmm8, %xmm4
jmp 0x4ffb0
movss 0xc(%r12), %xmm5
movaps 0x1d5f0(%rip), %xmm6    # 0x6d570
movaps %xmm5, %xmm7
xorps %xmm6, %xmm7
maxss %xmm5, %xmm7
addss %xmm0, %xmm7
xorps %xmm4, %xmm6
maxss %xmm4, %xmm6
divss %xmm6, %xmm7
movss 0x100(%r13), %xmm4
addss %xmm8, %xmm4
mulss %xmm8, %xmm7
subss %xmm7, %xmm4
addq $0x68, %rbx
movl 0x4(%r12), %esi
shufps $0xe2, %xmm2, %xmm1     # xmm1 = xmm1[2,0],xmm2[2,3]
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movaps %xmm0, %xmm5
mulss %xmm2, %xmm5
addss 0xfc(%r13), %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(%r13), %eax
xorl %ebp, %ebp
orl %edi, %eax
jne 0x50043
movss 0x144(%r14), %xmm6
ucomiss %xmm5, %xmm6
jb 0x50043
addss %xmm5, %xmm2
ucomiss %xmm6, %xmm2
jbe 0x50043
movss 0x148(%r14), %xmm2
ucomiss %xmm4, %xmm2
jb 0x50043
addss %xmm4, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x50043
movl $0x1, %ebp
cmpl $0x0, 0x104(%r14)
jne 0x5003e
xorl %eax, %eax
cmpl $0x0, 0x108(%r14)
setne %al
leal 0x1(,%rax,2), %ebp
movl 0x8(%r12), %esi
addq $0x24, %r12
xorps %xmm2, %xmm2
movq %rbx, %rdi
callq 0x12de0
movq %r12, %r15
jmp 0x5007a
xorl %ebp, %ebp
orl %eax, %ebp
movl 0x8(%r12), %esi
cmpl $0x0, 0x28(%r12)
je 0x5007a
movaps 0x1d701(%rip), %xmm1    # 0x6d770
xorps %xmm2, %xmm2
movq %rbx, %rdi
callq 0x12de0
incl (%r15)
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq