// File: /workspace/github_c_makefile_star2_O2/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 $0x98, %rsp
movl %ecx, 0x60(%rsp)
movq %rdx, %r15
movq %rsi, %rbp
movq %rdi, %r14
testq %rdi, %rdi
jne 0x467a7
movq 0x3e86e(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x23580(%rip), %rsi     # 0x69d0c
leaq 0x23597(%rip), %rdx     # 0x69d2a
movl $0x6513, %ecx           # imm = 0x6513
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
testq %rbp, %rbp
jne 0x467d8
movq 0x3e83d(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x2354f(%rip), %rsi     # 0x69d0c
leaq 0x23566(%rip), %rdx     # 0x69d2a
movl $0x6514, %ecx           # imm = 0x6514
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movq 0x4780(%r14), %r12
testq %r12, %r12
jne 0x46817
movq 0x3e805(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x23517(%rip), %rsi     # 0x69d0c
leaq 0x2352e(%rip), %rdx     # 0x69d2a
movl $0x6515, %ecx           # imm = 0x6515
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movq 0x4780(%r14), %r12
cmpq $0x0, 0xa8(%r12)
jne 0x46861
movq 0x3e7c7(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x234d9(%rip), %rsi     # 0x69d0c
leaq 0x234f0(%rip), %rdx     # 0x69d2a
xorl %r13d, %r13d
movl $0x6516, %ecx           # imm = 0x6516
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movq 0x4780(%r14), %r12
testq %r12, %r12
je 0x46d8e
xorl %r13d, %r13d
testq %rbp, %rbp
je 0x46d8e
movq 0xa8(%r12), %rbx
testq %rbx, %rbx
je 0x46d8e
leaq 0x88(%rsp), %rdi
movq %r14, %rsi
callq 0x12990
movl %eax, %r13d
testl %eax, %eax
je 0x46d8e
cmpl $0x1, %r13d
jne 0x468ac
xorl %r13d, %r13d
testb $0x10, 0x5(%rbx)
cmoveq %r14, %r13
jmp 0x468af
xorl %r13d, %r13d
movq (%rbp), %rdx
movsd 0x90(%rsp), %xmm0
movaps %xmm0, 0x10(%rsp)
movss 0xbf0(%r14), %xmm0
movss 0xbfc(%r14), %xmm2
movss 0xc00(%r14), %xmm1
unpcklps %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
addps %xmm2, %xmm0
movaps %xmm0, %xmm2
addps %xmm0, %xmm2
testq %rdx, %rdx
js 0x468f7
cvtsi2ss %rdx, %xmm3
jmp 0x4690e
movq %rdx, %rax
shrq %rax
movl %edx, %ecx
andl $0x1, %ecx
orq %rax, %rcx
cvtsi2ss %rcx, %xmm3
addss %xmm3, %xmm3
movsd 0x88(%rsp), %xmm1
movaps %xmm1, 0x30(%rsp)
movaps %xmm2, %xmm1
maxps 0x10(%rsp), %xmm1
testq %r15, %r15
movq %rbp, 0x78(%rsp)
js 0x46935
cvtsi2ss %r15, %xmm4
jmp 0x4694d
movq %r15, %rax
shrq %rax
movl %r15d, %ecx
andl $0x1, %ecx
orq %rax, %rcx
cvtsi2ss %rcx, %xmm4
addss %xmm4, %xmm4
movaps %xmm4, 0x50(%rsp)
addps 0x30(%rsp), %xmm0
subps %xmm2, %xmm1
cmpq %r15, %rdx
cmovbq %rdx, %r15
movl 0x2598(%r14), %ebp
andl $0x2, %ebp
orl $0x4, %ebp
movl %ebp, 0x2598(%r14)
cmpl $0x0, 0x60(%rsp)
movaps %xmm0, 0x60(%rsp)
movq %rdx, 0x80(%rsp)
movaps %xmm1, 0x40(%rsp)
movaps %xmm3, 0x20(%rsp)
je 0x46ab8
testq %r13, %r13
je 0x46ab8
movl 0x104(%r13), %ebx
pushq $0x1
popq %rdx
movq %r13, %rdi
xorl %esi, %esi
callq 0x12750
movl %eax, 0xc(%rsp)
movq %r13, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0x143d0
testl %eax, %eax
je 0x469dc
movl $0x12, 0x2598(%r14)
pushq $0x12
popq %rbp
testl %ebx, %ebx
je 0x46a6a
cmpl $0x0, 0xc(%rsp)
je 0x46a6a
movss 0x144(%r13), %xmm0
movaps 0x60(%rsp), %xmm2
subss %xmm2, %xmm0
xorps %xmm1, %xmm1
maxss %xmm1, %xmm0
movaps 0x40(%rsp), %xmm3
divss %xmm3, %xmm0
movaps 0x50(%rsp), %xmm4
mulss %xmm4, %xmm0
maxss %xmm0, %xmm1
cmpltss %xmm4, %xmm0
andps %xmm0, %xmm1
andnps %xmm4, %xmm0
orps %xmm1, %xmm0
cvttss2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subss 0x1fe18(%rip), %xmm0    # 0x66854
cvttss2si %xmm0, %r15
andq %rcx, %r15
orq %rax, %r15
movss 0x1fde1(%rip), %xmm0    # 0x66830
mulss %xmm3, %xmm0
addss %xmm2, %xmm0
movss %xmm0, 0x10c(%r13)
orl $0x22, %ebp
movl %ebp, 0x2598(%r14)
testb $0x10, %bpl
je 0x46a86
movq %r13, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0x13d20
testl %eax, %eax
je 0x46aa7
movq %r13, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0x13d20
testl %eax, %eax
je 0x46aa0
pushq $0x40
jmp 0x46aa9
movaps 0x20(%rsp), %xmm3
jmp 0x46ab8
pushq $0x8
popq %rax
movaps 0x20(%rsp), %xmm3
orl %eax, %ebp
movl %ebp, 0x2598(%r14)
addq $0x68, %r12
leaq 0xaf0(%r14), %rbx
movq 0xc18(%r14), %rax
testq %rax, %rax
je 0x46ae7
movq 0xc10(%r14), %rsi
movq %r12, %rdi
callq *%rax
movaps 0x20(%rsp), %xmm3
movl 0x2598(%r14), %ebp
xorl %eax, %eax
testb $0x10, %bpl
movl $0x80, %ecx
movl $0xa8, %edx
cmoveq %rcx, %rdx
pushq $0x28
popq %rcx
cmoveq %rax, %rcx
testb $0x20, %bpl
movl $0xd0, %r13d
cmoveq %rdx, %r13
divss 0x50(%rsp), %xmm3
pushq $0x50
popq %rax
cmoveq %rcx, %rax
leaq (%rbx,%rax), %rbp
addq %rbx, %r13
movl (%rbx,%rax), %eax
testl %eax, %eax
je 0x46ba5
cmpl $0x2, %eax
je 0x46b6f
cmpl $0x1, %eax
jne 0x46c3c
addq $0x8, %rbp
movss 0xc04(%r14), %xmm0
pushq $-0x1
popq %rdi
movaps %xmm3, 0x20(%rsp)
callq 0x140a0
movq %r12, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movq %rbp, %rsi
movl %eax, %edx
callq 0x13660
jmp 0x46c37
addq $0x8, %rbp
movss 0xc04(%r14), %xmm0
pushq $-0x1
popq %rdi
movaps %xmm3, 0x20(%rsp)
callq 0x140a0
movq %r12, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movq %rbp, %rsi
movl %eax, %edx
callq 0x14230
jmp 0x46c37
movss 0xbec(%r14), %xmm0
movss %xmm0, 0x50(%rsp)
movss 0xc04(%r14), %xmm0
movl 0x8(%rbp), %edi
movaps %xmm3, 0x20(%rsp)
callq 0x140a0
movq %r12, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movss 0x50(%rsp), %xmm2
movl %eax, %esi
callq 0x12f00
movss 0xbec(%r14), %xmm0
movss %xmm0, 0x50(%rsp)
movss 0xbf0(%r14), %xmm0
movss %xmm0, 0xc(%rsp)
movss 0xc04(%r14), %xmm0
movl 0xb68(%r14), %edi
callq 0x140a0
movq %r12, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movss 0x50(%rsp), %xmm2
movss 0xc(%rsp), %xmm3
movl %eax, %esi
callq 0x12070
movaps 0x20(%rsp), %xmm3
movaps 0x40(%rsp), %xmm1
mulss %xmm3, %xmm1
movl (%r13), %eax
testl %eax, %eax
je 0x46ccc
cmpl $0x2, %eax
movq 0x78(%rsp), %rbx
je 0x46c96
cmpl $0x1, %eax
jne 0x46d64
addq $0x8, %r13
movss 0xc04(%r14), %xmm0
pushq $-0x1
popq %rdi
movaps %xmm1, 0x40(%rsp)
callq 0x140a0
movq %r12, %rdi
movaps 0x60(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movq %r13, %rsi
movl %eax, %edx
callq 0x13660
jmp 0x46d64
addq $0x8, %r13
movss 0xc04(%r14), %xmm0
pushq $-0x1
popq %rdi
movaps %xmm1, 0x40(%rsp)
callq 0x140a0
movq %r12, %rdi
movaps 0x60(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movq %r13, %rsi
movl %eax, %edx
callq 0x14230
jmp 0x46d64
movss 0xbec(%r14), %xmm0
movss %xmm0, 0x10(%rsp)
movss 0xc04(%r14), %xmm0
movl 0x8(%r13), %edi
movaps %xmm1, 0x40(%rsp)
callq 0x140a0
movq %r12, %rdi
movaps 0x60(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movss 0x10(%rsp), %xmm2
movl %eax, %esi
callq 0x12f00
movss 0xbec(%r14), %xmm0
movss %xmm0, 0x10(%rsp)
movss 0xbf0(%r14), %xmm0
movss %xmm0, 0x30(%rsp)
movss 0xc04(%r14), %xmm0
movl 0xb68(%r14), %edi
callq 0x140a0
movq %r12, %rdi
movaps 0x60(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movss 0x10(%rsp), %xmm2
movss 0x30(%rsp), %xmm3
movl %eax, %esi
callq 0x12070
movq 0x78(%rsp), %rbx
movq 0xc20(%r14), %rax
testq %rax, %rax
je 0x46d7c
movq 0xc10(%r14), %rsi
movq %r12, %rdi
callq *%rax
movq %r15, (%rbx)
xorl %r13d, %r13d
cmpq 0x80(%rsp), %r15
setne %r13b
movl %r13d, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq