// File: /workspace/github_c_makefile_star2_O3/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 $0xf8, %rsp
movss %xmm2, 0x20(%rsp)
movss %xmm1, 0x90(%rsp)
movq %rsi, %rbx
movss %xmm0, 0x10(%rsp)
movq %rdi, %r14
testq %rdi, %rdi
jne 0x499f1
movq 0x3d624(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x273c6(%rip), %rsi     # 0x70d9c
leaq 0x273dd(%rip), %rdx     # 0x70dba
movl $0x6464, %ecx           # imm = 0x6464
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
testq %rax, %rax
jne 0x49a30
movq 0x3d5ec(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x2738e(%rip), %rsi     # 0x70d9c
leaq 0x273a5(%rip), %rdx     # 0x70dba
movl $0x6465, %ecx           # imm = 0x6465
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x49a66
movq 0x3d5af(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x27351(%rip), %rsi     # 0x70d9c
leaq 0x27368(%rip), %rdx     # 0x70dba
movl $0x6466, %ecx           # imm = 0x6466
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %rbx, %rbx
jne 0x49a97
movq 0x3d57e(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x27320(%rip), %rsi     # 0x70d9c
leaq 0x27337(%rip), %rdx     # 0x70dba
movl $0x6467, %ecx           # imm = 0x6467
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %r15
xorl %eax, %eax
testq %r15, %r15
je 0x4a2c6
testq %rbx, %rbx
sete %cl
movq 0xa8(%r15), %r13
testq %r13, %r13
sete %dl
orb %cl, %dl
jne 0x4a2c6
leaq 0xe8(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
testl %eax, %eax
je 0x4a2c6
xorl %r12d, %r12d
cmpl $0x3, %eax
je 0x49aed
testb $0x10, 0x5(%r13)
cmoveq %r14, %r12
movss (%rbx), %xmm3
addq $0x68, %r15
movsd 0xe8(%rsp), %xmm8
movsd 0xf0(%rsp), %xmm0
movss 0x90c(%r14), %xmm7
movsd 0x8fc(%r14), %xmm4
addps %xmm4, %xmm8
movaps %xmm4, %xmm2
shufps $0x55, %xmm4, %xmm2     # xmm2 = xmm2[1,1],xmm4[1,1]
addss %xmm2, %xmm2
movaps %xmm4, %xmm1
addss %xmm4, %xmm1
addss %xmm7, %xmm1
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
maxps %xmm0, %xmm1
addps %xmm4, %xmm4
subps %xmm4, %xmm1
cmpl $0x0, 0x91c(%r14)
movss %xmm3, 0x4c(%rsp)
je 0x49c0e
movq 0x168(%r14), %rbp
movaps %xmm1, 0x50(%rsp)
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
movl 0xad4(%r14), %edx
leaq 0x9f8(%r14), %r8
movq %rbp, (%rsp)
leaq 0xcc(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
movaps %xmm8, 0x30(%rsp)
movaps %xmm8, %xmm0
movaps %xmm1, 0x80(%rsp)
xorl %ecx, %ecx
movq %r12, %r9
callq 0x3ffe3
movss 0x4c(%rsp), %xmm0
movaps %xmm0, %xmm1
testl %eax, %eax
je 0x49bb6
movaps %xmm0, %xmm1
subss 0x20(%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 0x3ffe3
testl %eax, %eax
je 0x49c13
movss 0x70(%rsp), %xmm5
addss 0x20(%rsp), %xmm5
jmp 0x49c19
movaps %xmm3, %xmm5
jmp 0x49c5f
movss 0x70(%rsp), %xmm5
movaps 0x30(%rsp), %xmm8
movaps %xmm8, %xmm0
movaps 0x80(%rsp), %xmm2
addss %xmm2, %xmm0
movss 0x904(%r14), %xmm1
addss %xmm1, %xmm0
movss %xmm0, %xmm8            # xmm8 = xmm0[0],xmm8[1,2,3]
addss %xmm1, %xmm1
addss %xmm2, %xmm2
addss %xmm1, %xmm2
movaps 0x50(%rsp), %xmm1
subss %xmm2, %xmm1
movss 0x90c(%r14), %xmm7
movss 0x23c38(%rip), %xmm12   # 0x6d8a0
movaps %xmm7, %xmm10
mulss %xmm12, %xmm10
movaps %xmm10, %xmm11
addss %xmm8, %xmm11
movaps %xmm8, %xmm0
shufps $0x55, %xmm8, %xmm0     # xmm0 = xmm0[1,1],xmm8[1,1]
movaps %xmm1, %xmm13
subss %xmm7, %xmm13
movaps %xmm1, %xmm9
shufps $0x55, %xmm1, %xmm9     # xmm9 = xmm9[1,1],xmm1[1,1]
movss 0x90(%rsp), %xmm3
movaps %xmm3, %xmm2
movss 0x10(%rsp), %xmm6
maxss %xmm6, %xmm2
minss %xmm3, %xmm6
minss %xmm2, %xmm5
movaps %xmm6, %xmm4
maxss %xmm5, %xmm4
movaps %xmm2, %xmm3
subss %xmm6, %xmm3
movss 0x20(%rsp), %xmm5
divss %xmm5, %xmm3
movss %xmm4, 0xc(%rsp)
movss %xmm6, 0x10(%rsp)
subss %xmm6, %xmm4
movaps %xmm9, %xmm6
divss %xmm5, %xmm4
movaps %xmm13, %xmm9
divss %xmm3, %xmm9
mulss %xmm9, %xmm4
addss %xmm11, %xmm4
movss 0x910(%r14), %xmm3
movaps %xmm6, %xmm14
mulss %xmm12, %xmm14
addss %xmm0, %xmm14
movaps %xmm3, 0xd0(%rsp)
mulss %xmm3, %xmm12
movss %xmm12, 0x8(%rsp)
subss %xmm12, %xmm14
movaps 0x23842(%rip), %xmm12   # 0x6d570
xorps %xmm7, %xmm12
movl 0x2598(%r14), %eax
andl $0x2, %eax
orl $0x4, %eax
movl %eax, 0x2598(%r14)
testq %r12, %r12
je 0x49eb0
movaps %xmm4, %xmm15
movaps %xmm4, %xmm3
subss %xmm10, %xmm3
movss 0x10c(%r12), %xmm4
ucomiss %xmm3, %xmm4
jb 0x49de9
movaps %xmm7, %xmm5
addss %xmm3, %xmm5
ucomiss %xmm4, %xmm5
jbe 0x49de9
movss 0x110(%r12), %xmm4
ucomiss %xmm14, %xmm4
jb 0x49de9
movaps 0xd0(%rsp), %xmm5
addss %xmm14, %xmm5
ucomiss %xmm4, %xmm5
jbe 0x49de9
cmpl $0x1, 0x104(%r12)
jne 0x49de9
movss 0x144(%r12), %xmm4
movss 0x23aeb(%rip), %xmm5    # 0x6d8a0
mulss %xmm7, %xmm5
addss %xmm3, %xmm5
subss %xmm5, %xmm4
movl $0x22, 0x2598(%r14)
movaps 0x2379d(%rip), %xmm3    # 0x6d570
xorps %xmm4, %xmm3
maxss %xmm4, %xmm3
movl $0x22, %eax
ucomiss %xmm9, %xmm3
jae 0x4a2d8
movaps %xmm15, %xmm4
movss 0x144(%r12), %xmm2
ucomiss %xmm11, %xmm2
movaps %xmm11, %xmm5
addss %xmm13, %xmm5
jb 0x49e77
ucomiss %xmm2, %xmm5
jbe 0x49e77
movss 0x148(%r12), %xmm2
ucomiss %xmm0, %xmm2
jb 0x49e77
movaps %xmm0, %xmm3
addss %xmm6, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x49e77
movl $0x12, 0x2598(%r14)
movss 0x14c(%r12), %xmm2
ucomiss %xmm11, %xmm2
movl $0x1a, %ecx
jb 0x49ea7
ucomiss %xmm2, %xmm5
jbe 0x49ea7
movaps %xmm4, %xmm9
movss 0x150(%r12), %xmm4
ucomiss %xmm0, %xmm4
jb 0x4a35e
ucomiss %xmm4, %xmm3
movaps %xmm9, %xmm4
jbe 0x49ea7
movl $0x52, %ecx
movl $0x12, %eax
jmp 0x49e84
movss 0x14c(%r12), %xmm2
leal 0x40(%rax), %ecx
ucomiss %xmm11, %xmm2
jb 0x49eb0
ucomiss %xmm2, %xmm5
jbe 0x49eb0
movss 0x150(%r12), %xmm2
ucomiss %xmm0, %xmm2
jb 0x49eb0
addss %xmm6, %xmm0
ucomiss %xmm2, %xmm0
jbe 0x49eb0
movl %ecx, 0x2598(%r14)
movl %ecx, %eax
mulss 0x239e7(%rip), %xmm12   # 0x6d8a0
movq 0xae0(%r14), %rcx
testq %rcx, %rcx
movaps %xmm7, 0x20(%rsp)
movaps %xmm14, 0xb0(%rsp)
je 0x49f66
movq 0xad8(%r14), %rsi
movq %r15, %rdi
movaps %xmm8, 0x30(%rsp)
movaps %xmm1, 0x50(%rsp)
movaps %xmm10, 0x80(%rsp)
movaps %xmm11, 0x90(%rsp)
movaps %xmm12, 0x10(%rsp)
movaps %xmm13, 0x70(%rsp)
movaps %xmm6, 0xa0(%rsp)
movss %xmm4, 0x6c(%rsp)
callq *%rcx
movss 0x6c(%rsp), %xmm4
movaps 0xa0(%rsp), %xmm6
movaps 0xb0(%rsp), %xmm14
movaps 0x70(%rsp), %xmm13
movaps 0x10(%rsp), %xmm12
movaps 0x90(%rsp), %xmm11
movaps 0x80(%rsp), %xmm10
movaps 0x50(%rsp), %xmm1
movaps 0x30(%rsp), %xmm8
movaps 0x20(%rsp), %xmm7
movl 0x2598(%r14), %eax
addss %xmm4, %xmm12
leaq 0x7e8(%r14), %rcx
testb $0x20, %al
jne 0x49f8a
testb $0x10, %al
jne 0x49f9e
movl $0x90, %r12d
movl $0x7c, %eax
movq %rcx, %rsi
jmp 0x49fb0
leaq 0x838(%r14), %rsi
movl $0xe0, %r12d
movl $0x84, %eax
jmp 0x49fb0
leaq 0x810(%r14), %rsi
movl $0xb8, %r12d
movl $0x80, %eax
addss %xmm10, %xmm8
subss %xmm7, %xmm1
addq %rcx, %r12
movl (%rcx,%rax), %ebp
movss 0x8(%rsp), %xmm2
addss %xmm14, %xmm2
movaps %xmm6, %xmm0
divss 0x23967(%rip), %xmm0    # 0x6d93c
addss %xmm2, %xmm0
movss 0x238db(%rip), %xmm2    # 0x6d8bc
divss %xmm2, %xmm6
unpcklps %xmm6, %xmm13           # xmm13 = xmm13[0],xmm6[0],xmm13[1],xmm6[1]
addss %xmm12, %xmm10
subss %xmm11, %xmm10
unpcklps %xmm0, %xmm11           # xmm11 = xmm11[0],xmm0[0],xmm11[1],xmm0[1]
unpcklps %xmm6, %xmm10           # xmm10 = xmm10[0],xmm6[0],xmm10[1],xmm6[1]
movl (%rsi), %eax
testl %eax, %eax
movaps %xmm10, 0x80(%rsp)
movaps %xmm11, 0x90(%rsp)
movaps %xmm13, 0x70(%rsp)
je 0x4a0d3
cmpl $0x2, %eax
je 0x4a07f
cmpl $0x1, %eax
jne 0x4a18b
movss 0x914(%r14), %xmm0
movss 0x2386c(%rip), %xmm2    # 0x6d8a8
mulss %xmm0, %xmm2
cvttss2si %xmm2, %eax
addq $0x8, %rsi
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x23847(%rip), %xmm0    # 0x6d8a4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movq %r15, %rdi
movaps %xmm8, %xmm0
movaps %xmm12, 0x10(%rsp)
callq 0x134d0
jmp 0x4a177
movss 0x914(%r14), %xmm0
movss 0x23818(%rip), %xmm2    # 0x6d8a8
mulss %xmm0, %xmm2
cvttss2si %xmm2, %eax
addq $0x8, %rsi
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x237f3(%rip), %xmm0    # 0x6d8a4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movq %r15, %rdi
movaps %xmm8, %xmm0
movaps %xmm12, 0x10(%rsp)
callq 0x13fe0
jmp 0x4a177
movss 0x8f4(%r14), %xmm0
movss %xmm0, 0x8(%rsp)
movss 0x914(%r14), %xmm0
movl 0x8(%rsi), %edi
movaps %xmm8, 0x30(%rsp)
movaps %xmm1, 0x50(%rsp)
movaps %xmm12, 0x10(%rsp)
callq 0x13e60
movq %r15, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x50(%rsp), %xmm1
movss 0x8(%rsp), %xmm2
movl %eax, %esi
callq 0x12de0
movss 0x8f4(%r14), %xmm0
movss %xmm0, 0x8(%rsp)
movss 0x8f0(%r14), %xmm0
movss %xmm0, 0xa0(%rsp)
movss 0x914(%r14), %xmm0
movl 0x860(%r14), %edi
callq 0x13e60
movq %r15, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x50(%rsp), %xmm1
movss 0x8(%rsp), %xmm2
movss 0xa0(%rsp), %xmm3
movl %eax, %esi
callq 0x12060
movaps 0xb0(%rsp), %xmm14
movaps 0x10(%rsp), %xmm12
movaps 0x20(%rsp), %xmm7
unpcklps 0xd0(%rsp), %xmm7       # xmm7 = xmm7[0],mem[0],xmm7[1],mem[1]
movaps %xmm7, 0x20(%rsp)
unpcklps %xmm14, %xmm12          # xmm12 = xmm12[0],xmm14[0],xmm12[1],xmm14[1]
movaps %xmm12, 0x10(%rsp)
movss 0x8f4(%r14), %xmm0
movss %xmm0, 0x30(%rsp)
movss 0x914(%r14), %xmm0
movl %ebp, %edi
callq 0x13e60
movq %r15, %rdi
movaps 0x90(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movss 0x30(%rsp), %xmm2
movl %eax, %esi
callq 0x12de0
movss 0x8f4(%r14), %xmm0
movss %xmm0, 0x30(%rsp)
movss 0x914(%r14), %xmm0
movl 0x870(%r14), %edi
callq 0x13e60
movq %r15, %rdi
movaps 0x90(%rsp), %xmm0
movaps 0x80(%rsp), %xmm1
movss 0x30(%rsp), %xmm2
movl %eax, %esi
callq 0x12de0
leaq 0x8(%r12), %rsi
cmpl $0x1, (%r12)
movss 0x914(%r14), %xmm0
jne 0x4a27b
movss 0x23669(%rip), %xmm1    # 0x6d8a8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %eax
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x23648(%rip), %xmm0    # 0x6d8a4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movq %r15, %rdi
movaps 0x10(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
callq 0x134d0
jmp 0x4a296
movl (%rsi), %edi
callq 0x13e60
movq %r15, %rdi
movaps 0x10(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movl %eax, %esi
callq 0x13dd0
movq 0xae8(%r14), %rax
testq %rax, %rax
je 0x4a2ae
movq 0xad8(%r14), %rsi
movq %r15, %rdi
callq *%rax
movss 0xc(%rsp), %xmm1
movss %xmm1, (%rbx)
xorl %eax, %eax
movss 0x4c(%rsp), %xmm0
ucomiss %xmm1, %xmm0
setne %al
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
divss %xmm9, %xmm3
cvttps2dq %xmm3, %xmm3
cvtdq2ps %xmm3, %xmm3
movaps 0x23285(%rip), %xmm5    # 0x6d570
xorps %xmm3, %xmm5
movaps %xmm6, 0xa0(%rsp)
xorps %xmm6, %xmm6
cmpltss %xmm4, %xmm6
andps %xmm6, %xmm3
andnps %xmm5, %xmm6
orps %xmm3, %xmm6
movss 0x20(%rsp), %xmm4
mulss %xmm4, %xmm6
movss 0xc(%rsp), %xmm3
addss %xmm6, %xmm3
movaps 0xa0(%rsp), %xmm6
minss %xmm2, %xmm3
movss 0x10(%rsp), %xmm5
movaps %xmm5, %xmm2
maxss %xmm3, %xmm2
movss %xmm2, 0xc(%rsp)
subss %xmm5, %xmm2
divss %xmm4, %xmm2
movaps %xmm2, %xmm4
mulss %xmm9, %xmm4
addss %xmm11, %xmm4
movss %xmm4, 0x10c(%r12)
jmp 0x49ded
movaps %xmm9, %xmm4
jmp 0x49ea7