// File: /workspace/github_c_makefile_star2_O1/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, %rbx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x4b04f
movq 0x3cfc8(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x26d59(%rip), %rsi     # 0x71d8c
leaq 0x26d70(%rip), %rdx     # 0x71daa
movl $0x6513, %ecx           # imm = 0x6513
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %rbx, %rbx
jne 0x4b082
movq 0x3cf95(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x26d26(%rip), %rsi     # 0x71d8c
leaq 0x26d3d(%rip), %rdx     # 0x71daa
movl $0x6514, %ecx           # imm = 0x6514
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x4b0ba
movq 0x3cf5d(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x26cee(%rip), %rsi     # 0x71d8c
leaq 0x26d05(%rip), %rdx     # 0x71daa
movl $0x6515, %ecx           # imm = 0x6515
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x4b0f9
movq 0x3cf1e(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x26caf(%rip), %rsi     # 0x71d8c
leaq 0x26cc6(%rip), %rdx     # 0x71daa
movl $0x6516, %ecx           # imm = 0x6516
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
xorl %eax, %eax
testq %r14, %r14
je 0x4b74c
movq 0x4780(%r14), %r12
testq %r12, %r12
je 0x4b74c
testq %rbx, %rbx
sete %cl
movq 0xa8(%r12), %r13
testq %r13, %r13
sete %dl
orb %cl, %dl
jne 0x4b74c
leaq 0x78(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
testl %eax, %eax
je 0x4b74c
cmpl $0x1, %eax
jne 0x4b157
xorl %eax, %eax
testb $0x10, 0x5(%r13)
cmoveq %r14, %rax
jmp 0x4b159
xorl %eax, %eax
movq (%rbx), %rdi
movsd 0x80(%rsp), %xmm8
movaps %xmm8, %xmm0
shufps $0x55, %xmm8, %xmm0     # xmm0 = xmm0[1,1],xmm8[1,1]
movss 0xbf0(%r14), %xmm6
movss 0xbfc(%r14), %xmm1
movss 0xc00(%r14), %xmm2
unpcklps %xmm6, %xmm1            # xmm1 = xmm1[0],xmm6[0],xmm1[1],xmm6[1]
unpcklps %xmm2, %xmm6            # xmm6 = xmm6[0],xmm2[0],xmm6[1],xmm2[1]
addps %xmm1, %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 %rdi, %rdi
js 0x4b1b1
cvtsi2ss %rdi, %xmm7
jmp 0x4b1c8
movq %rdi, %rcx
shrq %rcx
movl %edi, %edx
andl $0x1, %edx
orq %rcx, %rdx
cvtsi2ss %rdx, %xmm7
addss %xmm7, %xmm7
movsd 0x78(%rsp), %xmm10
movaps %xmm2, %xmm11
maxss %xmm8, %xmm11
movaps %xmm3, %xmm9
maxss %xmm0, %xmm9
testq %r15, %r15
js 0x4b1f0
xorps %xmm1, %xmm1
cvtsi2ss %r15, %xmm1
jmp 0x4b20b
movq %r15, %rcx
shrq %rcx
movl %r15d, %edx
andl $0x1, %edx
orq %rcx, %rdx
xorps %xmm1, %xmm1
cvtsi2ss %rdx, %xmm1
addss %xmm1, %xmm1
addps %xmm10, %xmm6
subss %xmm2, %xmm11
subss %xmm3, %xmm9
cmpq %r15, %rdi
cmovbq %rdi, %r15
movl 0x2598(%r14), %ecx
andl $0x2, %ecx
orl $0x4, %ecx
movl %ecx, 0x2598(%r14)
testl %ebp, %ebp
movaps %xmm6, 0x50(%rsp)
movaps %xmm8, 0x10(%rsp)
movaps %xmm9, 0x60(%rsp)
je 0x4b3e4
testq %rax, %rax
je 0x4b3e4
movl 0x104(%rax), %ecx
movss 0x10c(%rax), %xmm2
xorl %edx, %edx
ucomiss %xmm6, %xmm2
jb 0x4b2a7
movaps %xmm6, %xmm3
addss %xmm11, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x4b2a7
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, %esi
cmpl $0x1, %ecx
sete %dl
andb %sil, %dl
movss 0x144(%rax), %xmm3
ucomiss %xmm10, %xmm3
movaps %xmm10, %xmm2
addss %xmm8, %xmm2
jb 0x4b2ed
ucomiss %xmm3, %xmm2
jbe 0x4b2ed
movss 0x148(%rax), %xmm4
movaps %xmm10, %xmm5
shufps $0x55, %xmm10, %xmm5    # xmm5 = xmm5[1,1],xmm10[1,1]
ucomiss %xmm5, %xmm4
jb 0x4b2ed
addss %xmm0, %xmm5
ucomiss %xmm4, %xmm5
jbe 0x4b2ed
movl $0x12, 0x2598(%r14)
testl %ecx, %ecx
sete %cl
xorb $0x1, %dl
orb %cl, %dl
jne 0x4b35f
subss %xmm6, %xmm3
xorps %xmm4, %xmm4
maxss %xmm4, %xmm3
divss %xmm11, %xmm3
mulss %xmm1, %xmm3
maxss %xmm3, %xmm4
cmpltss %xmm1, %xmm3
andps %xmm3, %xmm4
andnps %xmm1, %xmm3
orps %xmm4, %xmm3
cvttss2si %xmm3, %rcx
movq %rcx, %rdx
subss 0x235a5(%rip), %xmm3    # 0x6e8d4
sarq $0x3f, %rdx
cvttss2si %xmm3, %r15
andq %rdx, %r15
orq %rcx, %r15
movss 0x2356a(%rip), %xmm3    # 0x6e8b0
mulss %xmm11, %xmm3
addss %xmm6, %xmm3
movss %xmm3, 0x10c(%rax)
orb $0x22, 0x2598(%r14)
movl 0x2598(%r14), %ecx
testb $0x10, %cl
jne 0x4b3a4
movss 0x14c(%rax), %xmm3
ucomiss %xmm10, %xmm3
jb 0x4b3e4
ucomiss %xmm3, %xmm2
jbe 0x4b3e4
movss 0x150(%rax), %xmm2
movaps %xmm10, %xmm3
shufps $0x55, %xmm10, %xmm3    # xmm3 = xmm3[1,1],xmm10[1,1]
ucomiss %xmm3, %xmm2
jb 0x4b3e4
addss %xmm0, %xmm3
movl $0x40, %edx
ucomiss %xmm2, %xmm3
ja 0x4b3db
jmp 0x4b3e4
movss 0x14c(%rax), %xmm3
ucomiss %xmm10, %xmm3
movl $0x8, %edx
jb 0x4b3db
ucomiss %xmm3, %xmm2
jbe 0x4b3db
movss 0x150(%rax), %xmm3
movaps %xmm10, %xmm4
shufps $0x55, %xmm10, %xmm4    # xmm4 = xmm4[1,1],xmm10[1,1]
ucomiss %xmm4, %xmm3
jb 0x4b3db
addss %xmm0, %xmm4
ucomiss %xmm3, %xmm4
ja 0x4b36b
orl %edx, %ecx
movl %ecx, 0x2598(%r14)
movq %rdi, %rbp
divss %xmm1, %xmm7
addq $0x68, %r12
movq 0xc18(%r14), %rax
testq %rax, %rax
je 0x4b427
movq 0xc10(%r14), %rsi
movq %r12, %rdi
movaps %xmm7, (%rsp)
movaps %xmm10, 0x40(%rsp)
movaps %xmm11, 0x30(%rsp)
callq *%rax
movaps 0x30(%rsp), %xmm11
movaps 0x40(%rsp), %xmm10
movaps (%rsp), %xmm7
movl 0x2598(%r14), %eax
testb $0x10, %al
movl $0xb70, %ecx            # imm = 0xB70
movl $0xb98, %edx            # imm = 0xB98
cmoveq %rcx, %rdx
movl $0xaf0, %ecx            # imm = 0xAF0
movl $0xb18, %esi            # imm = 0xB18
cmoveq %rcx, %rsi
testb $0x20, %al
movl $0xbc0, %r13d           # imm = 0xBC0
cmoveq %rdx, %r13
mulss %xmm11, %xmm7
movl $0xb40, %eax            # imm = 0xB40
cmoveq %rsi, %rax
leaq (%r14,%rax), %rsi
addq %r14, %r13
movl (%r14,%rax), %eax
testl %eax, %eax
je 0x4b535
cmpl $0x2, %eax
je 0x4b4de
cmpl $0x1, %eax
movaps 0x10(%rsp), %xmm1
jne 0x4b5d0
movss 0xc04(%r14), %xmm0
movss 0x2341b(%rip), %xmm2    # 0x6e8b8
mulss %xmm0, %xmm2
cvttss2si %xmm2, %eax
addq $0x8, %rsi
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x233f6(%rip), %xmm0    # 0x6e8b4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movq %r12, %rdi
movaps %xmm10, %xmm0
movaps %xmm7, (%rsp)
callq 0x134d0
jmp 0x4b5cc
movss 0xc04(%r14), %xmm0
movss 0x233c9(%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 0x233a4(%rip), %xmm0    # 0x6e8b4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movq %r12, %rdi
movaps %xmm10, %xmm0
movaps 0x10(%rsp), %xmm1
movaps %xmm7, (%rsp)
callq 0x13fe0
jmp 0x4b5cc
movss 0xbec(%r14), %xmm0
movss %xmm0, 0x30(%rsp)
movss 0xc04(%r14), %xmm0
movl 0x8(%rsi), %edi
movaps %xmm7, (%rsp)
movaps %xmm10, 0x40(%rsp)
callq 0x13e60
movq %r12, %rdi
movaps 0x40(%rsp), %xmm0
movaps 0x10(%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, 0x2c(%rsp)
movss 0xc04(%r14), %xmm0
movl 0xb68(%r14), %edi
callq 0x13e60
movq %r12, %rdi
movaps 0x40(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movss 0x30(%rsp), %xmm2
movss 0x2c(%rsp), %xmm3
movl %eax, %esi
callq 0x12060
movaps (%rsp), %xmm7
unpcklps 0x60(%rsp), %xmm7       # xmm7 = xmm7[0],mem[0],xmm7[1],mem[1]
movl (%r13), %eax
testl %eax, %eax
je 0x4b699
cmpl $0x2, %eax
je 0x4b644
cmpl $0x1, %eax
movaps 0x50(%rsp), %xmm0
jne 0x4b729
movss 0xc04(%r14), %xmm2
movss 0x232b3(%rip), %xmm1    # 0x6e8b8
mulss %xmm2, %xmm1
cvttss2si %xmm1, %eax
addq $0x8, %r13
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x2328e(%rip), %xmm2    # 0x6e8b4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movq %r12, %rdi
movaps %xmm7, %xmm1
movq %r13, %rsi
callq 0x134d0
jmp 0x4b729
movss 0xc04(%r14), %xmm0
movss 0x23263(%rip), %xmm1    # 0x6e8b8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %eax
addq $0x8, %r13
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x2323e(%rip), %xmm0    # 0x6e8b4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movq %r12, %rdi
movaps 0x50(%rsp), %xmm0
movaps %xmm7, %xmm1
movq %r13, %rsi
callq 0x13fe0
jmp 0x4b729
movss 0xbec(%r14), %xmm0
movss %xmm0, 0x10(%rsp)
movss 0xc04(%r14), %xmm0
movl 0x8(%r13), %edi
movaps %xmm7, (%rsp)
callq 0x13e60
movq %r12, %rdi
movaps 0x50(%rsp), %xmm0
movaps (%rsp), %xmm1
movss 0x10(%rsp), %xmm2
movl %eax, %esi
callq 0x12de0
movss 0xbec(%r14), %xmm0
movss %xmm0, 0x10(%rsp)
movss 0xbf0(%r14), %xmm0
movss %xmm0, 0x60(%rsp)
movss 0xc04(%r14), %xmm0
movl 0xb68(%r14), %edi
callq 0x13e60
movq %r12, %rdi
movaps 0x50(%rsp), %xmm0
movaps (%rsp), %xmm1
movss 0x10(%rsp), %xmm2
movss 0x60(%rsp), %xmm3
movl %eax, %esi
callq 0x12060
movq 0xc20(%r14), %rax
testq %rax, %rax
je 0x4b741
movq 0xc10(%r14), %rsi
movq %r12, %rdi
callq *%rax
movq %r15, (%rbx)
xorl %eax, %eax
cmpq %rbp, %r15
setne %al
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq