// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_slider_float
NK_API nk_bool
nk_slider_float(struct nk_context *ctx, float min_value, float *value, float max_value,
    float value_step)
{
    struct nk_window *win;
    struct nk_panel *layout;
    struct nk_input *in;
    const struct nk_style *style;

    int ret = 0;
    float old_value;
    struct nk_rect bounds;
    enum nk_widget_layout_states state;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    NK_ASSERT(value);
    if (!ctx || !ctx->current || !ctx->current->layout || !value)
        return ret;

    win = ctx->current;
    style = &ctx->style;
    layout = win->layout;

    state = nk_widget(&bounds, ctx);
    if (!state) return ret;
    in = (/*state == NK_WIDGET_ROM || */ state == NK_WIDGET_DISABLED || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;

    old_value = *value;
    *value = nk_do_slider(&ctx->last_widget_state, &win->buffer, bounds, min_value,
                old_value, max_value, value_step, &style->slider, in, style->font);
    return (old_value > *value || old_value < *value);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movss %xmm2, 0xc(%rsp)
movss %xmm1, 0x90(%rsp)
movq %rsi, %rbx
movss %xmm0, 0x10(%rsp)
movq %rdi, %r14
testq %rdi, %rdi
jne 0x45e3a
movq 0x3f1db(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x23eed(%rip), %rsi     # 0x69d0c
leaq 0x23f04(%rip), %rdx     # 0x69d2a
movl $0x6464, %ecx           # imm = 0x6464
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
testq %rax, %rax
jne 0x45e79
movq 0x3f1a3(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x23eb5(%rip), %rsi     # 0x69d0c
leaq 0x23ecc(%rip), %rdx     # 0x69d2a
movl $0x6465, %ecx           # imm = 0x6465
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x45eaf
movq 0x3f166(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x23e78(%rip), %rsi     # 0x69d0c
leaq 0x23e8f(%rip), %rdx     # 0x69d2a
movl $0x6466, %ecx           # imm = 0x6466
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
testq %rbx, %rbx
jne 0x45ee0
movq 0x3f135(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x23e47(%rip), %rsi     # 0x69d0c
leaq 0x23e5e(%rip), %rdx     # 0x69d2a
movl $0x6467, %ecx           # imm = 0x6467
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %r15
xorl %eax, %eax
testq %r15, %r15
je 0x466b6
testq %rbx, %rbx
sete %cl
movq 0xa8(%r15), %r13
testq %r13, %r13
sete %dl
orb %cl, %dl
jne 0x466b6
leaq 0xf0(%rsp), %rdi
movq %r14, %rsi
callq 0x12990
testl %eax, %eax
je 0x466b6
xorl %r12d, %r12d
cmpl $0x3, %eax
je 0x45f36
testb $0x10, 0x5(%r13)
cmoveq %r14, %r12
movss (%rbx), %xmm6
addq $0x68, %r15
movsd 0xf0(%rsp), %xmm0
movsd 0xf8(%rsp), %xmm3
movss 0x90c(%r14), %xmm4
movsd 0x8fc(%r14), %xmm1
addps %xmm1, %xmm0
movaps %xmm1, %xmm2
shufps $0x55, %xmm1, %xmm2     # xmm2 = xmm2[1,1],xmm1[1,1]
addss %xmm2, %xmm2
movaps %xmm1, %xmm5
addss %xmm1, %xmm5
addss %xmm4, %xmm5
unpcklps %xmm2, %xmm5            # xmm5 = xmm5[0],xmm2[0],xmm5[1],xmm2[1]
maxps %xmm3, %xmm5
addps %xmm1, %xmm1
subps %xmm1, %xmm5
cmpl $0x0, 0x91c(%r14)
movss %xmm6, 0x4c(%rsp)
je 0x46053
movq 0x168(%r14), %rbp
movaps %xmm5, 0x50(%rsp)
movaps %xmm5, %xmm1
shufps $0x55, %xmm5, %xmm1     # xmm1 = xmm1[1,1],xmm5[1,1]
movl 0xad4(%r14), %edx
leaq 0x9f8(%r14), %r8
movq %rbp, (%rsp)
leaq 0xdc(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
movaps %xmm0, 0x30(%rsp)
movaps %xmm1, 0x80(%rsp)
xorl %ecx, %ecx
movq %r12, %r9
callq 0x3c90b
movss 0x4c(%rsp), %xmm0
movaps %xmm0, %xmm1
testl %eax, %eax
je 0x45ffb
movaps %xmm0, %xmm1
subss 0xc(%rsp), %xmm1
movss %xmm1, 0x70(%rsp)
movaps 0x30(%rsp), %xmm0
movaps %xmm0, %xmm2
addss 0x50(%rsp), %xmm2
movaps 0x80(%rsp), %xmm1
subss %xmm1, %xmm2
movl 0xad0(%r14), %edx
leaq 0x920(%r14), %r8
movq %rbp, (%rsp)
movss %xmm2, %xmm0            # xmm0 = xmm2[0],xmm0[1,2,3]
movq %r13, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
movq %r12, %r9
callq 0x3c90b
testl %eax, %eax
je 0x46058
movss 0x70(%rsp), %xmm3
addss 0xc(%rsp), %xmm3
jmp 0x4605e
movaps %xmm6, %xmm3
jmp 0x460a1
movss 0x70(%rsp), %xmm3
movaps 0x30(%rsp), %xmm0
movaps %xmm0, %xmm2
movaps 0x80(%rsp), %xmm4
addss %xmm4, %xmm2
movss 0x904(%r14), %xmm1
addss %xmm1, %xmm2
movss %xmm2, %xmm0            # xmm0 = xmm2[0],xmm0[1,2,3]
addss %xmm1, %xmm1
addss %xmm4, %xmm4
addss %xmm1, %xmm4
movaps 0x50(%rsp), %xmm5
subss %xmm4, %xmm5
movss 0x90c(%r14), %xmm4
movss 0x20786(%rip), %xmm10   # 0x66830
mulss %xmm4, %xmm10
movaps %xmm10, %xmm1
addss %xmm0, %xmm1
movaps %xmm1, 0x80(%rsp)
addss %xmm10, %xmm0
movaps %xmm5, %xmm6
subss %xmm4, %xmm6
movaps %xmm5, %xmm1
subss %xmm4, %xmm1
movss 0x90(%rsp), %xmm2
movaps %xmm2, %xmm9
movss 0x10(%rsp), %xmm7
maxss %xmm7, %xmm9
minss %xmm2, %xmm7
minss %xmm9, %xmm3
movaps %xmm7, %xmm8
maxss %xmm3, %xmm8
movaps %xmm9, %xmm2
subss %xmm7, %xmm2
movss 0xc(%rsp), %xmm3
divss %xmm3, %xmm2
movss %xmm8, 0x2c(%rsp)
movss %xmm7, 0x10(%rsp)
subss %xmm7, %xmm8
divss %xmm3, %xmm8
movaps %xmm6, 0xc0(%rsp)
divss %xmm2, %xmm6
movss 0x910(%r14), %xmm2
movaps %xmm4, 0x70(%rsp)
movaps %xmm2, 0x120(%rsp)
unpcklps %xmm2, %xmm4            # xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
movaps 0x2051f(%rip), %xmm3    # 0x66670
movss %xmm8, %xmm3            # xmm3 = xmm8[0],xmm3[1,2,3]
movaps %xmm5, 0x50(%rsp)
movaps %xmm5, %xmm2
movss %xmm6, %xmm2            # xmm2 = xmm6[0],xmm2[1,2,3]
mulps %xmm2, %xmm3
addps %xmm0, %xmm3
movaps 0x204a1(%rip), %xmm2    # 0x66610
mulps %xmm4, %xmm2
movaps %xmm3, 0xe0(%rsp)
addps %xmm3, %xmm2
movl 0x2598(%r14), %ebp
andl $0x2, %ebp
orl $0x4, %ebp
movl %ebp, 0x2598(%r14)
testq %r12, %r12
movaps %xmm0, 0x30(%rsp)
movaps %xmm4, 0xb0(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x90(%rsp)
je 0x462e6
movaps %xmm10, 0x100(%rsp)
movss %xmm9, 0xac(%rsp)
movaps %xmm6, 0x110(%rsp)
movl 0x104(%r12), %r13d
pushq $0x1
popq %rdx
movq %r12, %rdi
xorl %esi, %esi
movaps %xmm2, %xmm0
movaps %xmm4, %xmm1
callq 0x12750
testl %r13d, %r13d
je 0x462d4
testl %eax, %eax
je 0x462d4
movss 0x144(%r12), %xmm0
movaps 0x100(%rsp), %xmm1
addss 0x90(%rsp), %xmm1
subss %xmm1, %xmm0
movl $0x22, 0x2598(%r14)
movaps 0x20344(%rip), %xmm2    # 0x66570
xorps %xmm0, %xmm2
maxss %xmm0, %xmm2
pushq $0x22
popq %rbp
movaps 0x110(%rsp), %xmm5
ucomiss %xmm5, %xmm2
movaps 0x60(%rsp), %xmm1
jb 0x462c5
divss %xmm5, %xmm2
cvttps2dq %xmm2, %xmm2
cvtdq2ps %xmm2, %xmm4
movaps 0x20316(%rip), %xmm2    # 0x66570
xorps %xmm4, %xmm2
xorps %xmm3, %xmm3
cmpltss %xmm0, %xmm3
andps %xmm3, %xmm4
andnps %xmm2, %xmm3
orps %xmm4, %xmm3
movss 0xc(%rsp), %xmm2
mulss %xmm2, %xmm3
movss 0x2c(%rsp), %xmm4
addss %xmm3, %xmm4
minss 0xac(%rsp), %xmm4
movss 0x10(%rsp), %xmm3
movaps %xmm3, %xmm0
maxss %xmm4, %xmm0
movss %xmm0, 0x2c(%rsp)
subss %xmm3, %xmm0
divss %xmm2, %xmm0
mulss %xmm5, %xmm0
addss 0x80(%rsp), %xmm0
movaps %xmm0, 0xe0(%rsp)
movss %xmm0, 0x10c(%r12)
movaps 0x30(%rsp), %xmm0
movaps 0xb0(%rsp), %xmm4
jmp 0x462e6
movaps 0x30(%rsp), %xmm0
movaps 0xb0(%rsp), %xmm4
movaps 0x60(%rsp), %xmm1
movaps 0x20283(%rip), %xmm2    # 0x66570
xorps %xmm4, %xmm2
movaps %xmm2, 0x10(%rsp)
movq %r12, %rdi
callq 0x143d0
movaps 0x30(%rsp), %xmm0
movaps 0x60(%rsp), %xmm1
testl %eax, %eax
je 0x4632f
movl $0x12, 0x2598(%r14)
movq %r12, %rdi
callq 0x13d20
testl %eax, %eax
je 0x46351
pushq $0x12
popq %rbp
movaps 0x30(%rsp), %xmm0
movaps 0x60(%rsp), %xmm1
movq %r12, %rdi
callq 0x13d20
testl %eax, %eax
je 0x46340
orl $0x40, %ebp
jmp 0x46354
movaps 0x70(%rsp), %xmm3
movaps 0x50(%rsp), %xmm4
movaps 0x10(%rsp), %xmm5
jmp 0x4636a
pushq $0x1a
popq %rbp
movaps 0x70(%rsp), %xmm3
movaps 0x50(%rsp), %xmm4
movaps 0x10(%rsp), %xmm5
movl %ebp, 0x2598(%r14)
shufps $0x55, %xmm4, %xmm4     # xmm4 = xmm4[1,1,1,1]
mulss 0x204ba(%rip), %xmm5    # 0x66830
movq 0xae0(%r14), %rax
testq %rax, %rax
je 0x463ae
movq 0xad8(%r14), %rsi
movq %r15, %rdi
movaps %xmm4, 0x50(%rsp)
movaps %xmm5, 0x10(%rsp)
callq *%rax
movaps 0x10(%rsp), %xmm5
movaps 0x50(%rsp), %xmm4
movaps 0x70(%rsp), %xmm3
movl 0x2598(%r14), %ebp
addss 0xe0(%rsp), %xmm5
leaq 0x7e8(%r14), %rax
testb $0x20, %bpl
jne 0x463d8
testb $0x10, %bpl
jne 0x463ec
movl $0x90, %r13d
pushq $0x7c
popq %rcx
movq %rax, %r12
jmp 0x463fe
leaq 0x838(%r14), %r12
movl $0xe0, %r13d
movl $0x84, %ecx
jmp 0x463fe
leaq 0x810(%r14), %r12
movl $0xb8, %r13d
movl $0x80, %ecx
addq %rax, %r13
movss 0x20427(%rip), %xmm0    # 0x66830
movaps 0x120(%rsp), %xmm2
mulss %xmm0, %xmm2
movaps 0x90(%rsp), %xmm1
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
addss %xmm2, %xmm1
movaps %xmm4, %xmm2
divss 0x20498(%rip), %xmm2    # 0x668c8
movl (%rax,%rcx), %ebp
addss %xmm1, %xmm2
divss 0x2040d(%rip), %xmm4    # 0x6684c
movaps 0xc0(%rsp), %xmm1
unpcklps %xmm4, %xmm1            # xmm1 = xmm1[0],xmm4[0],xmm1[1],xmm4[1]
movaps %xmm1, 0xc0(%rsp)
mulss %xmm0, %xmm3
addss %xmm5, %xmm3
movaps 0x80(%rsp), %xmm0
subss %xmm0, %xmm3
unpcklps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
movaps %xmm0, 0x80(%rsp)
unpcklps %xmm4, %xmm3            # xmm3 = xmm3[0],xmm4[0],xmm3[1],xmm4[1]
movl (%r12), %eax
testl %eax, %eax
movaps %xmm3, 0x70(%rsp)
je 0x464fb
cmpl $0x2, %eax
je 0x464c5
cmpl $0x1, %eax
jne 0x46594
addq $0x8, %r12
movss 0x914(%r14), %xmm0
pushq $-0x1
popq %rdi
movaps %xmm5, 0x10(%rsp)
callq 0x140a0
movq %r15, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x60(%rsp), %xmm1
movq %r12, %rsi
movl %eax, %edx
callq 0x13660
jmp 0x4658f
addq $0x8, %r12
movss 0x914(%r14), %xmm0
pushq $-0x1
popq %rdi
movaps %xmm5, 0x10(%rsp)
callq 0x140a0
movq %r15, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x60(%rsp), %xmm1
movq %r12, %rsi
movl %eax, %edx
callq 0x14230
jmp 0x4658f
movss 0x8f4(%r14), %xmm0
movss %xmm0, 0xc(%rsp)
movss 0x914(%r14), %xmm0
movl 0x8(%r12), %edi
movaps %xmm5, 0x10(%rsp)
callq 0x140a0
movq %r15, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x60(%rsp), %xmm1
movss 0xc(%rsp), %xmm2
movl %eax, %esi
callq 0x12f00
movss 0x8f4(%r14), %xmm0
movss %xmm0, 0xc(%rsp)
movss 0x8f0(%r14), %xmm0
movss %xmm0, 0x50(%rsp)
movss 0x914(%r14), %xmm0
movl 0x860(%r14), %edi
callq 0x140a0
movq %r15, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x60(%rsp), %xmm1
movss 0xc(%rsp), %xmm2
movss 0x50(%rsp), %xmm3
movl %eax, %esi
callq 0x12070
movaps 0x10(%rsp), %xmm5
movaps 0x90(%rsp), %xmm0
movss %xmm5, %xmm0            # xmm0 = xmm5[0],xmm0[1,2,3]
movaps %xmm0, 0x90(%rsp)
movss 0x8f4(%r14), %xmm0
movss %xmm0, 0x10(%rsp)
movss 0x914(%r14), %xmm0
movl %ebp, %edi
callq 0x140a0
movq %r15, %rdi
movaps 0x80(%rsp), %xmm0
movaps 0xc0(%rsp), %xmm1
movss 0x10(%rsp), %xmm2
movl %eax, %esi
callq 0x12f00
movss 0x8f4(%r14), %xmm0
movss %xmm0, 0x10(%rsp)
movss 0x914(%r14), %xmm0
movl 0x870(%r14), %edi
callq 0x140a0
movq %r15, %rdi
movaps 0x80(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movss 0x10(%rsp), %xmm2
movl %eax, %esi
callq 0x12f00
leaq 0x8(%r13), %r12
cmpl $0x1, (%r13)
movss 0x914(%r14), %xmm0
jne 0x46663
pushq $-0x1
popq %rdi
callq 0x140a0
movq %r15, %rdi
movaps 0x90(%rsp), %xmm0
movaps 0xb0(%rsp), %xmm1
movq %r12, %rsi
movl %eax, %edx
callq 0x13660
jmp 0x46686
movl (%r12), %edi
callq 0x140a0
movq %r15, %rdi
movaps 0x90(%rsp), %xmm0
movaps 0xb0(%rsp), %xmm1
movl %eax, %esi
callq 0x13ff0
movq 0xae8(%r14), %rax
testq %rax, %rax
je 0x4669e
movq 0xad8(%r14), %rsi
movq %r15, %rdi
callq *%rax
movss 0x2c(%rsp), %xmm1
movss %xmm1, (%rbx)
xorl %eax, %eax
movss 0x4c(%rsp), %xmm0
ucomiss %xmm1, %xmm0
setne %al
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq