// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/./deps/raygui.h
// Function: GuiProgressBar
float GuiProgressBar(Rectangle bounds, const char *textLeft, const char *textRight, float value, float minValue, float maxValue)
{
    GuiControlState state = guiState;

    Rectangle progress = { bounds.x + GuiGetStyle(PROGRESSBAR, BORDER_WIDTH),
                           bounds.y + GuiGetStyle(PROGRESSBAR, BORDER_WIDTH) + GuiGetStyle(PROGRESSBAR, PROGRESS_PADDING), 0,
                           bounds.height - 2*GuiGetStyle(PROGRESSBAR, BORDER_WIDTH) - 2*GuiGetStyle(PROGRESSBAR, PROGRESS_PADDING) };

    // Update control
    //--------------------------------------------------------------------
    if (state != GUI_STATE_DISABLED) progress.width = ((float)(value/(maxValue - minValue))*(float)(bounds.width - 2*GuiGetStyle(PROGRESSBAR, BORDER_WIDTH)));
    //--------------------------------------------------------------------

    // Draw control
    //--------------------------------------------------------------------
    GuiDrawRectangle(bounds, GuiGetStyle(PROGRESSBAR, BORDER_WIDTH), Fade(GetColor(GuiGetStyle(PROGRESSBAR, BORDER + (state*3))), guiAlpha), BLANK);

    // Draw slider internal progress bar (depends on state)
    if ((state == GUI_STATE_NORMAL) || (state == GUI_STATE_PRESSED)) GuiDrawRectangle(progress, 0, BLANK, Fade(GetColor(GuiGetStyle(PROGRESSBAR, BASE_COLOR_PRESSED)), guiAlpha));
    else if (state == GUI_STATE_FOCUSED) GuiDrawRectangle(progress, 0, BLANK, Fade(GetColor(GuiGetStyle(PROGRESSBAR, TEXT_COLOR_FOCUSED)), guiAlpha));

    // Draw left/right text if provided
    if (textLeft != NULL)
    {
        Rectangle textBounds = { 0 };
        textBounds.width = (float)GetTextWidth(textLeft);  // TODO: Consider text icon
        textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
        textBounds.x = bounds.x - textBounds.width - GuiGetStyle(PROGRESSBAR, TEXT_PADDING);
        textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2;

        GuiDrawText(textLeft, textBounds, GUI_TEXT_ALIGN_RIGHT, Fade(GetColor(GuiGetStyle(PROGRESSBAR, TEXT + (state*3))), guiAlpha));
    }

    if (textRight != NULL)
    {
        Rectangle textBounds = { 0 };
        textBounds.width = (float)GetTextWidth(textRight);  // TODO: Consider text icon
        textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
        textBounds.x = bounds.x + bounds.width + GuiGetStyle(PROGRESSBAR, TEXT_PADDING);
        textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2;

        GuiDrawText(textRight, textBounds, GUI_TEXT_ALIGN_LEFT, Fade(GetColor(GuiGetStyle(PROGRESSBAR, TEXT + (state*3))), guiAlpha));
    }
    //--------------------------------------------------------------------

    return value;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movss %xmm2, 0x2c(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, %xmm2
shufps $0x55, %xmm0, %xmm2     # xmm2 = xmm2[1,1],xmm0[1,1]
movl 0x956d4(%rip), %r13d    # 0xa4250
cmpb $0x1, 0x956d2(%rip)     # 0xa4255
movaps %xmm1, 0x70(%rsp)
movaps %xmm1, %xmm0
shufps $0x55, %xmm1, %xmm0     # xmm0 = xmm0[1,1],xmm1[1,1]
movaps %xmm0, 0x60(%rsp)
jne 0xeb9e
movl 0x95904(%rip), %ebp     # 0xa44a0
jmp 0xebd6
movss %xmm3, 0x50(%rsp)
movss %xmm4, (%rsp)
movaps %xmm2, 0x10(%rsp)
callq 0x6a3c
movl 0x958e7(%rip), %ebp     # 0xa44a0
cmpb $0x1, 0x95695(%rip)     # 0xa4255
jne 0xec9e
movaps 0x10(%rsp), %xmm2
movss (%rsp), %xmm4
movss 0x50(%rsp), %xmm3
movd %ebp, %xmm0
cvtdq2ps %xmm0, %xmm0
shufps $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movaps %xmm2, 0x10(%rsp)
movaps 0x30(%rsp), %xmm1
movlhps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0]
shufps $0xe2, %xmm1, %xmm2     # xmm2 = xmm2[2,0],xmm1[2,3]
addps %xmm0, %xmm2
movl %ebp, %eax
xorps %xmm0, %xmm0
cvtsi2ssl 0x958ae(%rip), %xmm0 # 0xa44b0
movaps %xmm2, %xmm5
shufps $0x55, %xmm2, %xmm5     # xmm5 = xmm5[1,1],xmm2[1,1]
addl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
addss %xmm0, %xmm5
movaps %xmm5, 0x80(%rsp)
movaps 0x60(%rsp), %xmm5
subss %xmm1, %xmm5
movb $0x1, %al
movl 0x95881(%rip), %ecx     # 0xa44b0
addl %ecx, %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
subss %xmm0, %xmm5
movq %xmm5, %xmm5            # xmm5 = xmm5[0],zero
xorps %xmm0, %xmm0
shufps $0xe2, %xmm0, %xmm5     # xmm5 = xmm5[2,0],xmm0[2,3]
cmpl $0x3, %r13d
movaps %xmm2, 0x40(%rsp)
jne 0xec63
movaps %xmm5, (%rsp)
testb $0x1, %al
jne 0xed1e
jmp 0xed26
subss %xmm3, %xmm4
movss 0x2c(%rsp), %xmm2
divss %xmm4, %xmm2
testb $0x1, %al
je 0xecda
movl 0x95825(%rip), %eax     # 0xa44a0
addl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movaps 0x70(%rsp), %xmm1
subss %xmm0, %xmm1
mulss %xmm1, %xmm2
movss %xmm2, %xmm5            # xmm5 = xmm2[0],xmm5[1,2,3]
movaps %xmm5, (%rsp)
jmp 0xed1e
callq 0x6a3c
movl 0x957f7(%rip), %eax     # 0xa44a0
movd %ebp, %xmm0
movd %eax, %xmm1
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
cvtdq2ps %xmm0, %xmm2
addps 0x30(%rsp), %xmm2
cmpb $0x1, 0x95591(%rip)     # 0xa4255
jne 0xf127
movss (%rsp), %xmm4
movss 0x50(%rsp), %xmm3
jmp 0xebf7
movaps %xmm5, (%rsp)
movaps %xmm2, 0x50(%rsp)
callq 0x6a3c
movl 0x957b2(%rip), %eax     # 0xa44a0
addl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movaps 0x70(%rsp), %xmm1
subss %xmm0, %xmm1
movaps 0x50(%rsp), %xmm2
mulss %xmm1, %xmm2
movaps (%rsp), %xmm0
movss %xmm2, %xmm0            # xmm0 = xmm2[0],xmm0[1,2,3]
movaps %xmm0, (%rsp)
cmpb $0x0, 0x95539(%rip)     # 0xa4255
je 0xed26
movl 0x9577c(%rip), %ebp     # 0xa44a0
jmp 0xed3f
callq 0x6a3c
movl 0x9576f(%rip), %ebp     # 0xa44a0
cmpb $0x0, 0x9551d(%rip)     # 0xa4255
jne 0xed3f
callq 0x6a3c
leal (%r13,%r13,2), %r15d
movslq %r15d, %rax
leaq 0x95542(%rip), %r12     # 0xa4290
movl 0x1e0(%r12,%rax,4), %edi
callq 0x4144d
movss 0x946cd(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movaps 0x30(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movl %ebp, %edi
movl %eax, %esi
xorl %edx, %edx
callq 0x7ee9
testl $0xfffffffd, %r13d      # imm = 0xFFFFFFFD
je 0xeda4
cmpl $0x1, %r13d
jne 0xedfa
cmpb $0x0, 0x954c0(%rip)     # 0xa4255
jne 0xed9c
callq 0x6a3c
movl 0x956e2(%rip), %edi     # 0xa4484
jmp 0xedb8
cmpb $0x0, 0x954aa(%rip)     # 0xa4255
jne 0xedb2
callq 0x6a3c
movl 0x956d4(%rip), %edi     # 0xa448c
callq 0x4144d
movss 0x9466b(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
cmpl $0x1000000, %eax        # imm = 0x1000000
jb 0xedfa
cvttss2si 0x40(%rsp), %edi
cvttss2si 0x80(%rsp), %esi
movaps (%rsp), %xmm0
cvttss2si %xmm0, %edx
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
cvttss2si %xmm0, %ecx
movl %eax, %r8d
callq 0x2e4dc
testq %r14, %r14
je 0xeeec
movq %r14, %rdi
callq 0x81f3
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
cmpb $0x1, 0x9543c(%rip)     # 0xa4255
jne 0xee34
xorps %xmm0, %xmm0
cvtsi2ssl 0x954aa(%rip), %xmm0 # 0xa42d0
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
shufps $0xe2, %xmm1, %xmm0     # xmm0 = xmm0[2,0],xmm1[2,3]
movaps %xmm0, 0x40(%rsp)
jmp 0xee65
movaps %xmm1, (%rsp)
callq 0x6a3c
movaps (%rsp), %xmm1
xorps %xmm0, %xmm0
cvtsi2ssl 0x95484(%rip), %xmm0 # 0xa42d0
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
shufps $0xe2, %xmm1, %xmm0     # xmm0 = xmm0[2,0],xmm1[2,3]
movaps %xmm0, 0x40(%rsp)
cmpb $0x1, 0x953f6(%rip)     # 0xa4255
jne 0xeff7
movaps 0x30(%rsp), %xmm2
subss %xmm1, %xmm2
xorps %xmm0, %xmm0
cvtsi2ssl 0x9562b(%rip), %xmm0 # 0xa44a4
subss %xmm0, %xmm2
movss 0x56187(%rip), %xmm1    # 0x6500c
mulss 0x60(%rsp), %xmm1
addss 0x10(%rsp), %xmm1
movl 0x95439(%rip), %eax     # 0xa42d0
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
subss %xmm0, %xmm1
movlhps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0]
shufps $0xe2, %xmm2, %xmm1     # xmm1 = xmm1[2,0],xmm2[2,3]
movaps %xmm1, (%rsp)
leal 0x7a(%r15), %eax
cltq
movl (%r12,%rax,4), %edi
callq 0x4144d
movss 0x94563(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movq %r14, %rdi
movaps (%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movl $0x2, %esi
movl %eax, %edx
callq 0xa506
testq %rbx, %rbx
je 0xefdf
movq %rbx, %rdi
callq 0x81f3
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
cmpb $0x1, 0x9534a(%rip)     # 0xa4255
jne 0xef25
xorps %xmm0, %xmm0
cvtsi2ssl 0x953b8(%rip), %xmm0 # 0xa42d0
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
shufps $0xe2, %xmm1, %xmm0     # xmm0 = xmm0[2,0],xmm1[2,3]
movaps %xmm0, (%rsp)
jmp 0xef55
movaps %xmm1, (%rsp)
callq 0x6a3c
xorps %xmm0, %xmm0
cvtsi2ssl 0x95397(%rip), %xmm0 # 0xa42d0
movaps (%rsp), %xmm1
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
shufps $0xe2, %xmm1, %xmm0     # xmm0 = xmm0[2,0],xmm1[2,3]
movaps %xmm0, (%rsp)
cmpb $0x1, 0x95306(%rip)     # 0xa4255
jne 0xf08f
movaps 0x30(%rsp), %xmm0
addss 0x70(%rsp), %xmm0
xorps %xmm2, %xmm2
cvtsi2ssl 0x95539(%rip), %xmm2 # 0xa44a4
addss %xmm0, %xmm2
movaps 0x60(%rsp), %xmm0
mulss 0x56090(%rip), %xmm0    # 0x6500c
movaps 0x10(%rsp), %xmm1
addss %xmm0, %xmm1
movl 0x95345(%rip), %eax     # 0xa42d0
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
subss %xmm0, %xmm1
movlhps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0]
shufps $0xe2, %xmm2, %xmm1     # xmm1 = xmm1[2,0],xmm2[2,3]
movaps %xmm1, 0x10(%rsp)
addl $0x7a, %r15d
movslq %r15d, %rax
movl (%r12,%rax,4), %edi
callq 0x4144d
movss 0x9446d(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movq %rbx, %rdi
movaps 0x10(%rsp), %xmm0
movaps (%rsp), %xmm1
xorl %esi, %esi
movl %eax, %edx
callq 0xa506
movss 0x2c(%rsp), %xmm0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x6a3c
xorps %xmm0, %xmm0
cvtsi2ssl 0x9549d(%rip), %xmm0 # 0xa44a4
movaps 0x30(%rsp), %xmm2
subss (%rsp), %xmm2
subss %xmm0, %xmm2
movss 0x55fef(%rip), %xmm1    # 0x6500c
mulss 0x60(%rsp), %xmm1
addss 0x10(%rsp), %xmm1
cmpb $0x1, 0x95225(%rip)     # 0xa4255
je 0xee91
movaps %xmm1, (%rsp)
movaps %xmm2, 0x80(%rsp)
callq 0x6a3c
movl 0x95283(%rip), %eax     # 0xa42d0
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
movaps (%rsp), %xmm1
subss %xmm0, %xmm1
movaps 0x80(%rsp), %xmm0
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
shufps $0xe2, %xmm0, %xmm1     # xmm1 = xmm1[2,0],xmm0[2,3]
movaps %xmm1, (%rsp)
cmpb $0x0, 0x951d6(%rip)     # 0xa4255
jne 0xeeb6
callq 0x6a3c
jmp 0xeeb6
callq 0x6a3c
xorps %xmm2, %xmm2
cvtsi2ssl 0x95405(%rip), %xmm2 # 0xa44a4
movaps 0x70(%rsp), %xmm1
addss 0x30(%rsp), %xmm1
movaps 0x60(%rsp), %xmm0
mulss 0x55f55(%rip), %xmm0    # 0x6500c
addss %xmm1, %xmm2
movaps 0x10(%rsp), %xmm1
addss %xmm0, %xmm1
cmpb $0x1, 0x9518a(%rip)     # 0xa4255
je 0xef85
movaps %xmm1, 0x10(%rsp)
movaps %xmm2, 0x30(%rsp)
callq 0x6a3c
movl 0x951ea(%rip), %eax     # 0xa42d0
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
movaps 0x10(%rsp), %xmm1
subss %xmm0, %xmm1
movaps 0x30(%rsp), %xmm0
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
shufps $0xe2, %xmm0, %xmm1     # xmm1 = xmm1[2,0],xmm0[2,3]
movaps %xmm1, 0x10(%rsp)
cmpb $0x0, 0x9513e(%rip)     # 0xa4255
jne 0xefab
callq 0x6a3c
jmp 0xefab
movaps %xmm2, 0x40(%rsp)
callq 0x6a3c
movaps 0x40(%rsp), %xmm2
xorps %xmm0, %xmm0
cvtsi2ssl 0x9536f(%rip), %xmm0 # 0xa44b0
movaps %xmm2, %xmm1
shufps $0x55, %xmm2, %xmm1     # xmm1 = xmm1[1,1],xmm2[1,1]
addss %xmm0, %xmm1
movaps %xmm1, 0x80(%rsp)
cmpb $0x1, 0x950fa(%rip)     # 0xa4255
jne 0xf179
movl 0x9533d(%rip), %eax     # 0xa44a0
addl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movaps 0x60(%rsp), %xmm5
subss %xmm0, %xmm5
movb $0x1, %al
jmp 0xf1c1
callq 0x6a3c
movl 0x9531c(%rip), %eax     # 0xa44a0
addl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movaps 0x60(%rsp), %xmm5
subss %xmm0, %xmm5
movb $0x1, %al
cmpb $0x0, 0x950b6(%rip)     # 0xa4255
jne 0xf1bc
movaps %xmm5, 0x90(%rsp)
callq 0x6a3c
movaps 0x90(%rsp), %xmm5
movb 0x95099(%rip), %al      # 0xa4255
movaps 0x40(%rsp), %xmm2
movss (%rsp), %xmm4
movss 0x50(%rsp), %xmm3
jmp 0xec29