// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_progress
NK_API nk_bool
nk_progress(struct nk_context *ctx, nk_size *cur, nk_size max, nk_bool is_modifyable)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_style *style;
    struct nk_input *in;

    struct nk_rect bounds;
    enum nk_widget_layout_states state;
    nk_size old_value;

    NK_ASSERT(ctx);
    NK_ASSERT(cur);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current || !ctx->current->layout || !cur)
        return 0;

    win = ctx->current;
    style = &ctx->style;
    layout = win->layout;
    state = nk_widget(&bounds, ctx);
    if (!state) return 0;

    in = (state == NK_WIDGET_ROM || state == NK_WIDGET_DISABLED || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    old_value = *cur;
    *cur = nk_do_progress(&ctx->last_widget_state, &win->buffer, bounds,
            *cur, max, is_modifyable, &style->progress, in);
    return (*cur != old_value);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
testq %rdi, %rdi
jne 0x4a44a
movq 0x3cbcb(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2696d(%rip), %rsi     # 0x70d9c
leaq 0x26984(%rip), %rdx     # 0x70dba
movl $0x6513, %ecx           # imm = 0x6513
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq %r12, 0x10(%rsp)
testq %r12, %r12
jne 0x4a480
movq 0x3cb95(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x26937(%rip), %rsi     # 0x70d9c
leaq 0x2694e(%rip), %rdx     # 0x70dba
movl $0x6514, %ecx           # imm = 0x6514
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r14), %r12
testq %r12, %r12
jne 0x4a4bf
movq 0x3cb5d(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x268ff(%rip), %rsi     # 0x70d9c
leaq 0x26916(%rip), %rdx     # 0x70dba
movl $0x6515, %ecx           # imm = 0x6515
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r14), %r12
cmpq $0x0, 0xa8(%r12)
jne 0x4a509
movq 0x3cb1f(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x268c1(%rip), %rsi     # 0x70d9c
leaq 0x268d8(%rip), %rdx     # 0x70dba
xorl %r13d, %r13d
movl $0x6516, %ecx           # imm = 0x6516
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r14), %r12
testq %r12, %r12
je 0x4ab48
xorl %r13d, %r13d
cmpq $0x0, 0x10(%rsp)
je 0x4ab48
movq 0xa8(%r12), %rbx
testq %rbx, %rbx
je 0x4ab48
leaq 0x78(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
movl %eax, %r13d
testl %eax, %eax
je 0x4ab48
xorl %eax, %eax
cmpl $0x1, %r13d
jne 0x4a551
testb $0x10, 0x5(%rbx)
cmoveq %r14, %rax
movq 0x10(%rsp), %rcx
movq (%rcx), %rbx
movsd 0x80(%rsp), %xmm1
movaps %xmm1, %xmm0
shufps $0x55, %xmm1, %xmm0     # xmm0 = xmm0[1,1],xmm1[1,1]
movss 0xbf0(%r14), %xmm6
movss 0xbfc(%r14), %xmm3
movss 0xc00(%r14), %xmm2
unpcklps %xmm6, %xmm3            # xmm3 = xmm3[0],xmm6[0],xmm3[1],xmm6[1]
unpcklps %xmm2, %xmm6            # xmm6 = xmm6[0],xmm2[0],xmm6[1],xmm2[1]
addps %xmm3, %xmm6
movaps %xmm6, %xmm2
addss %xmm6, %xmm2
movaps %xmm6, %xmm3
shufps $0x55, %xmm6, %xmm3     # xmm3 = xmm3[1,1],xmm6[1,1]
addss %xmm3, %xmm3
testq %rbx, %rbx
js 0x4a5ab
cvtsi2ss %rbx, %xmm7
jmp 0x4a5c2
movq %rbx, %rcx
shrq %rcx
movl %ebx, %edx
andl $0x1, %edx
orq %rcx, %rdx
cvtsi2ss %rdx, %xmm7
addss %xmm7, %xmm7
movsd 0x78(%rsp), %xmm10
movaps %xmm2, %xmm11
maxss %xmm1, %xmm11
movaps %xmm3, %xmm9
maxss %xmm0, %xmm9
testq %r15, %r15
js 0x4a5e7
cvtsi2ss %r15, %xmm8
jmp 0x4a600
movq %r15, %rcx
shrq %rcx
movl %r15d, %edx
andl $0x1, %edx
orq %rcx, %rdx
cvtsi2ss %rdx, %xmm8
addss %xmm8, %xmm8
addps %xmm10, %xmm6
subss %xmm2, %xmm11
subss %xmm3, %xmm9
cmpq %r15, %rbx
cmovbq %rbx, %r15
movl 0x2598(%r14), %ecx
andl $0x2, %ecx
orl $0x4, %ecx
movl %ecx, 0x2598(%r14)
testl %ebp, %ebp
movaps %xmm6, 0x60(%rsp)
movaps %xmm9, 0x40(%rsp)
je 0x4a7d0
testq %rax, %rax
je 0x4a7d0
movl 0x104(%rax), %edx
movss 0x10c(%rax), %xmm2
xorl %esi, %esi
ucomiss %xmm6, %xmm2
jb 0x4a697
movaps %xmm6, %xmm3
addss %xmm11, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x4a697
movss 0x110(%rax), %xmm2
movaps %xmm6, %xmm3
shufps $0x55, %xmm6, %xmm3     # xmm3 = xmm3[1,1],xmm6[1,1]
movaps %xmm3, %xmm4
addss %xmm9, %xmm4
cmpleps %xmm2, %xmm3
cmpltps %xmm4, %xmm2
andps %xmm3, %xmm2
movd %xmm2, %edi
cmpl $0x1, %edx
sete %sil
andb %dil, %sil
movss 0x144(%rax), %xmm3
ucomiss %xmm10, %xmm3
movaps %xmm10, %xmm2
addss %xmm1, %xmm2
jb 0x4a6e1
ucomiss %xmm3, %xmm2
jbe 0x4a6e1
movss 0x148(%rax), %xmm4
movaps %xmm10, %xmm5
shufps $0x55, %xmm10, %xmm5    # xmm5 = xmm5[1,1],xmm10[1,1]
ucomiss %xmm5, %xmm4
jb 0x4a6e1
addss %xmm0, %xmm5
ucomiss %xmm4, %xmm5
jbe 0x4a6e1
movl $0x12, 0x2598(%r14)
movl $0x12, %ecx
testl %edx, %edx
sete %dl
xorb $0x1, %sil
orb %dl, %sil
jne 0x4a75a
subss %xmm6, %xmm3
xorps %xmm4, %xmm4
maxss %xmm4, %xmm3
divss %xmm11, %xmm3
mulss %xmm8, %xmm3
maxss %xmm3, %xmm4
cmpltss %xmm8, %xmm3
andps %xmm3, %xmm4
andnps %xmm8, %xmm3
orps %xmm4, %xmm3
cvttss2si %xmm3, %rdx
movq %rdx, %rsi
sarq $0x3f, %rsi
subss 0x23198(%rip), %xmm3    # 0x6d8c4
cvttss2si %xmm3, %r15
andq %rsi, %r15
orq %rdx, %r15
movss 0x23161(%rip), %xmm3    # 0x6d8a0
mulss %xmm11, %xmm3
addss %xmm6, %xmm3
movss %xmm3, 0x10c(%rax)
orl $0x22, %ecx
movl %ecx, 0x2598(%r14)
movss 0x14c(%rax), %xmm3
testb $0x10, %cl
jne 0x4a798
ucomiss %xmm10, %xmm3
jb 0x4a7d0
ucomiss %xmm3, %xmm2
jbe 0x4a7d0
movss 0x150(%rax), %xmm2
movaps %xmm10, %xmm3
shufps $0x55, %xmm10, %xmm3    # xmm3 = xmm3[1,1],xmm10[1,1]
ucomiss %xmm3, %xmm2
jb 0x4a7d0
addss %xmm0, %xmm3
movl $0x40, %edx
ucomiss %xmm2, %xmm3
ja 0x4a7c7
jmp 0x4a7d0
ucomiss %xmm10, %xmm3
movl $0x8, %edx
jb 0x4a7c7
ucomiss %xmm3, %xmm2
jbe 0x4a7c7
movss 0x150(%rax), %xmm4
movaps %xmm10, %xmm5
shufps $0x55, %xmm10, %xmm5    # xmm5 = xmm5[1,1],xmm10[1,1]
ucomiss %xmm5, %xmm4
jb 0x4a7c7
addss %xmm0, %xmm5
ucomiss %xmm4, %xmm5
ja 0x4a767
orl %edx, %ecx
movl %ecx, 0x2598(%r14)
divss %xmm8, %xmm7
addq $0x68, %r12
leaq 0xaf0(%r14), %rbp
movq 0xc18(%r14), %rax
testq %rax, %rax
je 0x4a829
movq 0xc10(%r14), %rsi
movq %r12, %rdi
movaps %xmm7, (%rsp)
movaps %xmm1, 0x20(%rsp)
movaps %xmm10, 0x50(%rsp)
movaps %xmm11, 0x30(%rsp)
callq *%rax
movaps 0x30(%rsp), %xmm11
movaps 0x50(%rsp), %xmm10
movaps 0x20(%rsp), %xmm1
movaps (%rsp), %xmm7
movl 0x2598(%r14), %ecx
xorl %eax, %eax
testb $0x10, %cl
movl $0x80, %edx
movl $0xa8, %esi
cmoveq %rdx, %rsi
movl $0x28, %edx
cmoveq %rax, %rdx
testb $0x20, %cl
movl $0xd0, %r13d
cmoveq %rsi, %r13
mulss %xmm11, %xmm7
movl $0x50, %eax
cmoveq %rdx, %rax
leaq (%rax,%rbp), %rsi
addq %rbp, %r13
movl (%rbp,%rax), %eax
testl %eax, %eax
je 0x4a925
cmpl $0x2, %eax
je 0x4a8d3
cmpl $0x1, %eax
jne 0x4a9c5
movss 0xc04(%r14), %xmm0
movss 0x23016(%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 0x22ff1(%rip), %xmm0    # 0x6d8a4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movq %r12, %rdi
movaps %xmm10, %xmm0
movaps %xmm7, (%rsp)
callq 0x134d0
jmp 0x4a9c1
movss 0xc04(%r14), %xmm0
movss 0x22fc4(%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 0x22f9f(%rip), %xmm0    # 0x6d8a4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movq %r12, %rdi
movaps %xmm10, %xmm0
movaps %xmm7, (%rsp)
callq 0x13fe0
jmp 0x4a9c1
movss 0xbec(%r14), %xmm0
movss %xmm0, 0x30(%rsp)
movss 0xc04(%r14), %xmm0
movl 0x8(%rsi), %edi
movaps %xmm7, (%rsp)
movaps %xmm1, 0x20(%rsp)
movaps %xmm10, 0x50(%rsp)
callq 0x13e60
movq %r12, %rdi
movaps 0x50(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movss 0x30(%rsp), %xmm2
movl %eax, %esi
callq 0x12de0
movss 0xbec(%r14), %xmm0
movss %xmm0, 0x30(%rsp)
movss 0xbf0(%r14), %xmm0
movss %xmm0, 0x1c(%rsp)
movss 0xc04(%r14), %xmm0
movl 0xb68(%r14), %edi
callq 0x13e60
movq %r12, %rdi
movaps 0x50(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movss 0x30(%rsp), %xmm2
movss 0x1c(%rsp), %xmm3
movl %eax, %esi
callq 0x12060
movaps (%rsp), %xmm7
unpcklps 0x40(%rsp), %xmm7       # xmm7 = xmm7[0],mem[0],xmm7[1],mem[1]
movl (%r13), %eax
testl %eax, %eax
je 0x4aa8e
cmpl $0x2, %eax
je 0x4aa39
cmpl $0x1, %eax
movaps 0x60(%rsp), %xmm0
jne 0x4ab1e
movss 0xc04(%r14), %xmm2
movss 0x22eae(%rip), %xmm1    # 0x6d8a8
mulss %xmm2, %xmm1
cvttss2si %xmm1, %eax
addq $0x8, %r13
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x22e89(%rip), %xmm2    # 0x6d8a4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movq %r12, %rdi
movaps %xmm7, %xmm1
movq %r13, %rsi
callq 0x134d0
jmp 0x4ab1e
movss 0xc04(%r14), %xmm0
movss 0x22e5e(%rip), %xmm1    # 0x6d8a8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %eax
addq $0x8, %r13
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x22e39(%rip), %xmm0    # 0x6d8a4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movq %r12, %rdi
movaps 0x60(%rsp), %xmm0
movaps %xmm7, %xmm1
movq %r13, %rsi
callq 0x13fe0
jmp 0x4ab1e
movss 0xbec(%r14), %xmm0
movss %xmm0, 0x40(%rsp)
movss 0xc04(%r14), %xmm0
movl 0x8(%r13), %edi
movaps %xmm7, (%rsp)
callq 0x13e60
movq %r12, %rdi
movaps 0x60(%rsp), %xmm0
movaps (%rsp), %xmm1
movss 0x40(%rsp), %xmm2
movl %eax, %esi
callq 0x12de0
movss 0xbec(%r14), %xmm0
movss %xmm0, 0x40(%rsp)
movss 0xbf0(%r14), %xmm0
movss %xmm0, 0x20(%rsp)
movss 0xc04(%r14), %xmm0
movl 0xb68(%r14), %edi
callq 0x13e60
movq %r12, %rdi
movaps 0x60(%rsp), %xmm0
movaps (%rsp), %xmm1
movss 0x40(%rsp), %xmm2
movss 0x20(%rsp), %xmm3
movl %eax, %esi
callq 0x12060
movq 0xc20(%r14), %rax
testq %rax, %rax
je 0x4ab36
movq 0xc10(%r14), %rsi
movq %r12, %rdi
callq *%rax
movq 0x10(%rsp), %rax
movq %r15, (%rax)
xorl %r13d, %r13d
cmpq %rbx, %r15
setne %r13b
movl %r13d, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq