// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_progress
NK_LIB void
nk_draw_progress(struct nk_command_buffer *out, nk_flags state,
    const struct nk_style_progress *style, const struct nk_rect *bounds,
    const struct nk_rect *scursor, nk_size value, nk_size max)
{
    const struct nk_style_item *background;
    const struct nk_style_item *cursor;

    NK_UNUSED(max);
    NK_UNUSED(value);

    /* select correct colors/images to draw */
    if (state & NK_WIDGET_STATE_ACTIVED) {
        background = &style->active;
        cursor = &style->cursor_active;
    } else if (state & NK_WIDGET_STATE_HOVER){
        background = &style->hover;
        cursor = &style->cursor_hover;
    } else {
        background = &style->normal;
        cursor = &style->cursor_normal;
    }

    /* draw background */
    switch(background->type) {
        case NK_STYLE_ITEM_IMAGE:
            nk_draw_image(out, *bounds, &background->data.image, nk_rgb_factor(nk_white, style->color_factor));
            break;
        case NK_STYLE_ITEM_NINE_SLICE:
            nk_draw_nine_slice(out, *bounds, &background->data.slice, nk_rgb_factor(nk_white, style->color_factor));
            break;
        case NK_STYLE_ITEM_COLOR:
            nk_fill_rect(out, *bounds, style->rounding, nk_rgb_factor(background->data.color, style->color_factor));
            nk_stroke_rect(out, *bounds, style->rounding, style->border, nk_rgb_factor(style->border_color, style->color_factor));
            break;
    }

    /* draw cursor */
    switch(cursor->type) {
        case NK_STYLE_ITEM_IMAGE:
            nk_draw_image(out, *scursor, &cursor->data.image, nk_rgb_factor(nk_white, style->color_factor));
            break;
        case NK_STYLE_ITEM_NINE_SLICE:
            nk_draw_nine_slice(out, *scursor, &cursor->data.slice, nk_rgb_factor(nk_white, style->color_factor));
            break;
        case NK_STYLE_ITEM_COLOR:
            nk_fill_rect(out, *scursor, style->rounding, nk_rgb_factor(cursor->data.color, style->color_factor));
            nk_stroke_rect(out, *scursor, style->rounding, style->border, nk_rgb_factor(style->border_color, style->color_factor));
            break;
    }
}

// Assembly:
subq $0x138, %rsp            # imm = 0x138
movq 0x140(%rsp), %rax
movq %rdi, 0x130(%rsp)
movl %esi, 0x12c(%rsp)
movq %rdx, 0x120(%rsp)
movq %rcx, 0x118(%rsp)
movq %r8, 0x110(%rsp)
movq %r9, 0x108(%rsp)
movl 0x12c(%rsp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x8b689
movq 0x120(%rsp), %rax
addq $0x50, %rax
movq %rax, 0x100(%rsp)
movq 0x120(%rsp), %rax
addq $0xd0, %rax
movq %rax, 0xf8(%rsp)
jmp 0x8b6ec
movl 0x12c(%rsp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x8b6c4
movq 0x120(%rsp), %rax
addq $0x28, %rax
movq %rax, 0x100(%rsp)
movq 0x120(%rsp), %rax
addq $0xa8, %rax
movq %rax, 0xf8(%rsp)
jmp 0x8b6ea
movq 0x120(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0x120(%rsp), %rax
addq $0x80, %rax
movq %rax, 0xf8(%rsp)
jmp 0x8b6ec
movq 0x100(%rsp), %rax
movl (%rax), %eax
movl %eax, 0xd4(%rsp)
testl %eax, %eax
je 0x8b83e
jmp 0x8b707
movl 0xd4(%rsp), %eax
subl $0x1, %eax
je 0x8b72a
jmp 0x8b715
movl 0xd4(%rsp), %eax
subl $0x2, %eax
je 0x8b7b4
jmp 0x8b954
movq 0x130(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0x100(%rsp), %rax
addq $0x8, %rax
movq %rax, 0xc0(%rsp)
movq 0x120(%rsp), %rax
movss 0x114(%rax), %xmm0
movl 0x25b3c(%rip), %edi     # 0xb12b0
callq 0x15100
movq 0xb8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movl %eax, %ecx
movq 0xc8(%rsp), %rax
movl %ecx, 0xf4(%rsp)
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
movl 0xf4(%rsp), %edx
callq 0x14690
jmp 0x8b954
movq 0x130(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x100(%rsp), %rax
addq $0x8, %rax
movq %rax, 0xa8(%rsp)
movq 0x120(%rsp), %rax
movss 0x114(%rax), %xmm0
movl 0x25ab2(%rip), %edi     # 0xb12b0
callq 0x15100
movq 0xa0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movl %eax, %ecx
movq 0xb0(%rsp), %rax
movl %ecx, 0xf0(%rsp)
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
movl 0xf0(%rsp), %edx
callq 0x152a0
jmp 0x8b954
movq 0x130(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x120(%rsp), %rcx
movq 0x100(%rsp), %rax
movss 0xfc(%rcx), %xmm0
movss %xmm0, 0x7c(%rsp)
movss 0x114(%rcx), %xmm0
movl 0x8(%rax), %edi
callq 0x15100
movq 0x70(%rsp), %rdi
movss 0x7c(%rsp), %xmm2
movl %eax, %ecx
movq 0x80(%rsp), %rax
movl %ecx, 0xec(%rsp)
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
movl 0xec(%rsp), %esi
callq 0x13f10
movq 0x130(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x120(%rsp), %rax
movss 0xfc(%rax), %xmm0
movss %xmm0, 0x90(%rsp)
movss 0x100(%rax), %xmm0
movss %xmm0, 0x94(%rsp)
movss 0x114(%rax), %xmm0
movl 0x78(%rax), %edi
callq 0x15100
movq 0x88(%rsp), %rdi
movss 0x90(%rsp), %xmm2
movss 0x94(%rsp), %xmm3
movl %eax, %ecx
movq 0x98(%rsp), %rax
movl %ecx, 0xe8(%rsp)
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
movl 0xe8(%rsp), %esi
callq 0x13070
movq 0xf8(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x6c(%rsp)
testl %eax, %eax
je 0x8ba75
jmp 0x8b96c
movl 0x6c(%rsp), %eax
subl $0x1, %eax
je 0x8b985
jmp 0x8b977
movl 0x6c(%rsp), %eax
subl $0x2, %eax
je 0x8b9fd
jmp 0x8bb6d
movq 0x130(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0xf8(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x58(%rsp)
movq 0x120(%rsp), %rax
movss 0x114(%rax), %xmm0
movl 0x258ea(%rip), %edi     # 0xb12b0
callq 0x15100
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rsi
movl %eax, %ecx
movq 0x60(%rsp), %rax
movl %ecx, 0xe4(%rsp)
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
movl 0xe4(%rsp), %edx
callq 0x14690
jmp 0x8bb6d
movq 0x130(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0xf8(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x40(%rsp)
movq 0x120(%rsp), %rax
movss 0x114(%rax), %xmm0
movl 0x25872(%rip), %edi     # 0xb12b0
callq 0x15100
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
movl %eax, %ecx
movq 0x48(%rsp), %rax
movl %ecx, 0xe0(%rsp)
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
movl 0xe0(%rsp), %edx
callq 0x152a0
jmp 0x8bb6d
movq 0x130(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x120(%rsp), %rcx
movq 0xf8(%rsp), %rax
movss 0xfc(%rcx), %xmm0
movss %xmm0, 0x14(%rsp)
movss 0x114(%rcx), %xmm0
movl 0x8(%rax), %edi
callq 0x15100
movq 0x8(%rsp), %rdi
movss 0x14(%rsp), %xmm2
movl %eax, %ecx
movq 0x18(%rsp), %rax
movl %ecx, 0xdc(%rsp)
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
movl 0xdc(%rsp), %esi
callq 0x13f10
movq 0x130(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x120(%rsp), %rax
movss 0xfc(%rax), %xmm0
movss %xmm0, 0x28(%rsp)
movss 0x100(%rax), %xmm0
movss %xmm0, 0x2c(%rsp)
movss 0x114(%rax), %xmm0
movl 0x78(%rax), %edi
callq 0x15100
movq 0x20(%rsp), %rdi
movss 0x28(%rsp), %xmm2
movss 0x2c(%rsp), %xmm3
movl %eax, %ecx
movq 0x30(%rsp), %rax
movl %ecx, 0xd8(%rsp)
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
movl 0xd8(%rsp), %esi
callq 0x13070
addq $0x138, %rsp            # imm = 0x138
retq
nopw %cs:(%rax,%rax)