// File: /workspace/github_c_makefile_star2_O1/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, 0x40(%rsp)
movss %xmm1, 0x60(%rsp)
movq %rsi, %rbx
movss %xmm0, 0x10(%rsp)
movq %rdi, %r14
testq %rdi, %rdi
jne 0x4a5bf
movq 0x3da56(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x277e8(%rip), %rsi     # 0x71d8c
leaq 0x277ff(%rip), %rdx     # 0x71daa
movl $0x6464, %ecx           # imm = 0x6464
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x4a5f5
movq 0x3da20(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x277b2(%rip), %rsi     # 0x71d8c
leaq 0x277c9(%rip), %rdx     # 0x71daa
movl $0x6465, %ecx           # imm = 0x6465
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x4a632
movq 0x3d9e3(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x27775(%rip), %rsi     # 0x71d8c
leaq 0x2778c(%rip), %rdx     # 0x71daa
movl $0x6466, %ecx           # imm = 0x6466
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %rbx, %rbx
jne 0x4a663
movq 0x3d9b2(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x27744(%rip), %rsi     # 0x71d8c
leaq 0x2775b(%rip), %rdx     # 0x71daa
movl $0x6467, %ecx           # imm = 0x6467
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
xorl %eax, %eax
testq %r14, %r14
je 0x4af58
movq 0x4780(%r14), %r15
testq %r15, %r15
je 0x4af58
testq %rbx, %rbx
sete %cl
movq 0xa8(%r15), %r13
testq %r13, %r13
sete %dl
orb %cl, %dl
jne 0x4af58
leaq 0xd0(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
testl %eax, %eax
je 0x4af58
xorl %r12d, %r12d
cmpl $0x3, %eax
je 0x4a6c2
testb $0x10, 0x5(%r13)
cmoveq %r14, %r12
movss (%rbx), %xmm3
addq $0x68, %r15
movsd 0xd0(%rsp), %xmm7
movsd 0xd8(%rsp), %xmm0
movsd 0x8fc(%r14), %xmm1
addps %xmm1, %xmm7
movaps %xmm1, %xmm2
shufps $0x55, %xmm1, %xmm2     # xmm2 = xmm2[1,1],xmm1[1,1]
addss %xmm2, %xmm2
movaps %xmm1, %xmm8
addss %xmm1, %xmm8
addss 0x90c(%r14), %xmm8
unpcklps %xmm2, %xmm8            # xmm8 = xmm8[0],xmm2[0],xmm8[1],xmm2[1]
maxps %xmm0, %xmm8
addps %xmm1, %xmm1
subps %xmm1, %xmm8
cmpl $0x0, 0x91c(%r14)
movss %xmm3, 0x3c(%rsp)
je 0x4a820
movq 0x168(%r14), %rbp
movaps %xmm8, 0x50(%rsp)
shufps $0x55, %xmm8, %xmm8     # xmm8 = xmm8[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 %xmm7, 0x20(%rsp)
movaps %xmm7, %xmm0
movaps %xmm8, 0x70(%rsp)
movaps %xmm8, %xmm1
xorl %ecx, %ecx
movq %r12, %r9
callq 0x40888
movss 0x3c(%rsp), %xmm0
movaps %xmm0, %xmm1
testl %eax, %eax
je 0x4a78c
movaps %xmm0, %xmm1
subss 0x40(%rsp), %xmm1
movss %xmm1, 0xc(%rsp)
movaps 0x20(%rsp), %xmm0
movaps %xmm0, %xmm2
addss 0x50(%rsp), %xmm2
movaps 0x70(%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 0x40888
testl %eax, %eax
je 0x4a7e1
movss 0xc(%rsp), %xmm3
addss 0x40(%rsp), %xmm3
jmp 0x4a7e7
movss 0xc(%rsp), %xmm3
movaps 0x20(%rsp), %xmm7
movaps %xmm7, %xmm0
movaps 0x70(%rsp), %xmm2
addss %xmm2, %xmm0
movss 0x904(%r14), %xmm1
addss %xmm1, %xmm0
movss %xmm0, %xmm7            # xmm7 = xmm0[0],xmm7[1,2,3]
addss %xmm1, %xmm1
addss %xmm2, %xmm2
addss %xmm1, %xmm2
movaps 0x50(%rsp), %xmm8
subss %xmm2, %xmm8
movss 0x60(%rsp), %xmm0
movaps %xmm0, %xmm1
movss 0x10(%rsp), %xmm4
maxss %xmm4, %xmm1
minss %xmm0, %xmm4
minss %xmm1, %xmm3
movaps %xmm4, %xmm0
maxss %xmm3, %xmm0
movaps %xmm1, %xmm3
subss %xmm4, %xmm3
movss 0x40(%rsp), %xmm2
divss %xmm2, %xmm3
movss %xmm0, 0xc(%rsp)
movaps %xmm0, %xmm5
movss %xmm4, 0x10(%rsp)
subss %xmm4, %xmm5
divss %xmm2, %xmm5
movsd 0x90c(%r14), %xmm9
movaps %xmm9, %xmm14
shufps $0x55, %xmm9, %xmm14    # xmm14 = xmm14[1,1],xmm9[1,1]
movss 0x2402b(%rip), %xmm10   # 0x6e8b0
movaps %xmm9, %xmm13
mulss %xmm10, %xmm13
movaps %xmm13, %xmm11
addss %xmm7, %xmm11
movaps %xmm7, %xmm0
shufps $0x55, %xmm7, %xmm0     # xmm0 = xmm0[1,1],xmm7[1,1]
movaps %xmm8, %xmm6
subps %xmm9, %xmm6
movaps %xmm6, %xmm2
divss %xmm3, %xmm2
mulss %xmm2, %xmm5
addss %xmm11, %xmm5
movss %xmm5, 0x60(%rsp)
movaps %xmm8, %xmm15
shufps $0x55, %xmm8, %xmm15    # xmm15 = xmm15[1,1],xmm8[1,1]
movaps %xmm15, %xmm12
mulss %xmm10, %xmm12
addss %xmm0, %xmm12
movaps %xmm14, %xmm3
mulss %xmm10, %xmm3
movl 0x2598(%r14), %eax
andl $0x2, %eax
orl $0x4, %eax
movl %eax, 0x2598(%r14)
testq %r12, %r12
je 0x4a903
cmpl $0x0, 0x104(%r12)
setne %al
jmp 0x4a905
xorl %eax, %eax
subss %xmm3, %xmm12
movss 0x60(%rsp), %xmm3
subss %xmm13, %xmm3
testq %r12, %r12
je 0x4a966
movss 0x10c(%r12), %xmm4
xorl %ecx, %ecx
ucomiss %xmm3, %xmm4
jb 0x4a968
movaps %xmm9, %xmm5
addss %xmm3, %xmm5
ucomiss %xmm4, %xmm5
jbe 0x4a968
movss 0x110(%r12), %xmm4
xorl %ecx, %ecx
ucomiss %xmm12, %xmm4
jb 0x4a968
movaps %xmm14, %xmm5
addss %xmm12, %xmm5
ucomiss %xmm4, %xmm5
jbe 0x4a968
cmpl $0x1, 0x104(%r12)
sete %cl
jmp 0x4a968
xorl %ecx, %ecx
andb %cl, %al
cmpb $0x1, %al
jne 0x4aa3f
movss 0x144(%r12), %xmm4
movss 0x23f2c(%rip), %xmm5    # 0x6e8b0
mulss %xmm9, %xmm5
addss %xmm3, %xmm5
subss %xmm5, %xmm4
movl $0x22, 0x2598(%r14)
movaps 0x23bcd(%rip), %xmm3    # 0x6e570
xorps %xmm4, %xmm3
maxss %xmm4, %xmm3
ucomiss %xmm2, %xmm3
jb 0x4aa3f
divss %xmm2, %xmm3
cvttps2dq %xmm3, %xmm3
cvtdq2ps %xmm3, %xmm3
movaps 0x23bab(%rip), %xmm5    # 0x6e570
xorps %xmm3, %xmm5
movaps %xmm13, 0x90(%rsp)
movaps %xmm6, %xmm13
xorps %xmm6, %xmm6
cmpltss %xmm4, %xmm6
andps %xmm6, %xmm3
andnps %xmm5, %xmm6
orps %xmm3, %xmm6
movss 0x40(%rsp), %xmm4
mulss %xmm4, %xmm6
movss 0xc(%rsp), %xmm3
addss %xmm6, %xmm3
movaps %xmm13, %xmm6
movaps 0x90(%rsp), %xmm13
minss %xmm1, %xmm3
movss 0x10(%rsp), %xmm5
movaps %xmm5, %xmm1
maxss %xmm3, %xmm1
movss %xmm1, 0xc(%rsp)
subss %xmm5, %xmm1
divss %xmm4, %xmm1
mulss %xmm2, %xmm1
addss %xmm11, %xmm1
movss %xmm1, 0x60(%rsp)
movss %xmm1, 0x10c(%r12)
movaps 0x23b2a(%rip), %xmm3    # 0x6e570
xorps %xmm9, %xmm3
testq %r12, %r12
je 0x4aa93
movss 0x144(%r12), %xmm1
ucomiss %xmm11, %xmm1
jb 0x4aa93
movaps %xmm11, %xmm2
addss %xmm6, %xmm2
ucomiss %xmm1, %xmm2
jbe 0x4aa93
movss 0x148(%r12), %xmm1
ucomiss %xmm0, %xmm1
jb 0x4aa93
movaps %xmm0, %xmm2
addss %xmm15, %xmm2
ucomiss %xmm1, %xmm2
jbe 0x4aa93
movl $0x12, 0x2598(%r14)
movl 0x2598(%r14), %eax
testb $0x10, %al
jne 0x4aae4
testq %r12, %r12
je 0x4ab34
movss 0x14c(%r12), %xmm1
ucomiss %xmm11, %xmm1
jb 0x4ab34
movaps %xmm11, %xmm2
addss %xmm6, %xmm2
ucomiss %xmm1, %xmm2
jbe 0x4ab34
movss 0x150(%r12), %xmm1
ucomiss %xmm0, %xmm1
jb 0x4ab34
addss %xmm15, %xmm0
movl $0x40, %ecx
ucomiss %xmm1, %xmm0
ja 0x4ab2b
jmp 0x4ab34
movl $0x8, %ecx
testq %r12, %r12
je 0x4ab2b
movss 0x14c(%r12), %xmm1
ucomiss %xmm11, %xmm1
jb 0x4ab2b
movaps %xmm11, %xmm2
addss %xmm6, %xmm2
ucomiss %xmm1, %xmm2
jbe 0x4ab2b
movss 0x150(%r12), %xmm1
ucomiss %xmm0, %xmm1
jb 0x4ab2b
movaps %xmm0, %xmm2
addss %xmm15, %xmm2
ucomiss %xmm1, %xmm2
ja 0x4aa9e
orl %ecx, %eax
movl %eax, 0x2598(%r14)
mulss 0x23d74(%rip), %xmm3    # 0x6e8b0
movq 0xae0(%r14), %rax
testq %rax, %rax
movaps %xmm9, 0x70(%rsp)
movaps %xmm12, 0xa0(%rsp)
je 0x4abf1
movq 0xad8(%r14), %rsi
movq %r15, %rdi
movaps %xmm7, 0x20(%rsp)
movaps %xmm8, 0x50(%rsp)
movaps %xmm11, 0x40(%rsp)
movaps %xmm3, 0x10(%rsp)
movaps %xmm14, 0x80(%rsp)
movaps %xmm15, 0xb0(%rsp)
movaps %xmm6, 0xe0(%rsp)
movaps %xmm13, 0x90(%rsp)
callq *%rax
movaps 0x90(%rsp), %xmm13
movaps 0xe0(%rsp), %xmm6
movaps 0xb0(%rsp), %xmm15
movaps 0x80(%rsp), %xmm14
movaps 0x10(%rsp), %xmm3
movaps 0xa0(%rsp), %xmm12
movaps 0x40(%rsp), %xmm11
movss 0x23cd0(%rip), %xmm10   # 0x6e8b0
movaps 0x70(%rsp), %xmm9
movaps 0x50(%rsp), %xmm8
movaps 0x20(%rsp), %xmm7
shufps $0x1, %xmm6, %xmm8      # xmm8 = xmm8[1,0],xmm6[0,0]
addss 0x60(%rsp), %xmm3
movl 0x2598(%r14), %eax
testb $0x20, %al
jne 0x4ac1f
testb $0x10, %al
jne 0x4ac33
leaq 0x7e8(%r14), %rsi
movl $0x878, %r12d           # imm = 0x878
movl $0x864, %eax            # imm = 0x864
jmp 0x4ac45
leaq 0x838(%r14), %rsi
movl $0x8c8, %r12d           # imm = 0x8C8
movl $0x86c, %eax            # imm = 0x86C
jmp 0x4ac45
leaq 0x810(%r14), %rsi
movl $0x8a0, %r12d           # imm = 0x8A0
movl $0x868, %eax            # imm = 0x868
addss %xmm13, %xmm7
shufps $0xe2, %xmm6, %xmm8     # xmm8 = xmm8[2,0],xmm6[2,3]
addq %r14, %r12
movl (%r14,%rax), %ebp
mulss %xmm10, %xmm14
addss %xmm12, %xmm14
movaps %xmm15, %xmm0
divss 0x23ce4(%rip), %xmm0    # 0x6e950
addss %xmm14, %xmm0
divss 0x23c52(%rip), %xmm15   # 0x6e8cc
movaps %xmm15, %xmm1
movlhps %xmm6, %xmm1            # xmm1 = xmm1[0],xmm6[0]
shufps $0xe2, %xmm6, %xmm1     # xmm1 = xmm1[2,0],xmm6[2,3]
movaps %xmm1, 0x90(%rsp)
mulss %xmm9, %xmm10
addss %xmm3, %xmm10
subss %xmm11, %xmm10
unpcklps %xmm0, %xmm11           # xmm11 = xmm11[0],xmm0[0],xmm11[1],xmm0[1]
unpcklps %xmm15, %xmm10          # xmm10 = xmm10[0],xmm15[0],xmm10[1],xmm15[1]
movl (%rsi), %eax
testl %eax, %eax
movaps %xmm10, 0x60(%rsp)
movaps %xmm11, 0x40(%rsp)
je 0x4ad74
cmpl $0x2, %eax
je 0x4ad1e
cmpl $0x1, %eax
jne 0x4ae31
movss 0x914(%r14), %xmm0
movss 0x23bdf(%rip), %xmm1    # 0x6e8b8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %eax
addq $0x8, %rsi
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x23bba(%rip), %xmm0    # 0x6e8b4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movq %r15, %rdi
movaps %xmm7, %xmm0
movaps %xmm8, %xmm1
movaps %xmm3, 0x10(%rsp)
callq 0x134d0
jmp 0x4ae23
movss 0x914(%r14), %xmm0
movss 0x23b89(%rip), %xmm1    # 0x6e8b8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %eax
addq $0x8, %rsi
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x23b64(%rip), %xmm0    # 0x6e8b4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movq %r15, %rdi
movaps %xmm7, %xmm0
movaps %xmm8, %xmm1
movaps %xmm3, 0x10(%rsp)
callq 0x13fe0
jmp 0x4ae23
movss 0x8f4(%r14), %xmm0
movss %xmm0, 0x80(%rsp)
movss 0x914(%r14), %xmm0
movl 0x8(%rsi), %edi
movaps %xmm7, 0x20(%rsp)
movaps %xmm8, 0x50(%rsp)
movaps %xmm3, 0x10(%rsp)
callq 0x13e60
movq %r15, %rdi
movaps 0x20(%rsp), %xmm0
movaps 0x50(%rsp), %xmm1
movss 0x80(%rsp), %xmm2
movl %eax, %esi
callq 0x12de0
movss 0x8f4(%r14), %xmm0
movss %xmm0, 0x80(%rsp)
movss 0x8f0(%r14), %xmm0
movss %xmm0, 0xb0(%rsp)
movss 0x914(%r14), %xmm0
movl 0x860(%r14), %edi
callq 0x13e60
movq %r15, %rdi
movaps 0x20(%rsp), %xmm0
movaps 0x50(%rsp), %xmm1
movss 0x80(%rsp), %xmm2
movss 0xb0(%rsp), %xmm3
movl %eax, %esi
callq 0x12060
movaps 0x10(%rsp), %xmm3
movaps 0xa0(%rsp), %xmm12
unpcklps %xmm12, %xmm3           # xmm3 = xmm3[0],xmm12[0],xmm3[1],xmm12[1]
movaps %xmm3, 0x10(%rsp)
movss 0x8f4(%r14), %xmm0
movss %xmm0, 0x20(%rsp)
movss 0x914(%r14), %xmm0
movl %ebp, %edi
callq 0x13e60
movq %r15, %rdi
movaps 0x40(%rsp), %xmm0
movaps 0x90(%rsp), %xmm1
movss 0x20(%rsp), %xmm2
movl %eax, %esi
callq 0x12de0
movss 0x8f4(%r14), %xmm0
movss %xmm0, 0x20(%rsp)
movss 0x914(%r14), %xmm0
movl 0x870(%r14), %edi
callq 0x13e60
movq %r15, %rdi
movaps 0x40(%rsp), %xmm0
movaps 0x60(%rsp), %xmm1
movss 0x20(%rsp), %xmm2
movl %eax, %esi
callq 0x12de0
leaq 0x8(%r12), %rsi
cmpl $0x1, (%r12)
movss 0x914(%r14), %xmm0
jne 0x4af0d
movss 0x239e7(%rip), %xmm1    # 0x6e8b8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %eax
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x239c6(%rip), %xmm0    # 0x6e8b4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movq %r15, %rdi
movaps 0x10(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
callq 0x134d0
jmp 0x4af28
movl (%rsi), %edi
callq 0x13e60
movq %r15, %rdi
movaps 0x10(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movl %eax, %esi
callq 0x13dd0
movq 0xae8(%r14), %rax
testq %rax, %rax
je 0x4af40
movq 0xad8(%r14), %rsi
movq %r15, %rdi
callq *%rax
movss 0xc(%rsp), %xmm1
movss %xmm1, (%rbx)
xorl %eax, %eax
movss 0x3c(%rsp), %xmm0
ucomiss %xmm1, %xmm0
setne %al
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq