// File: /workspace/github_c_makefile_star2_O1/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 %xmm4, 0x20(%rsp)
movss %xmm3, (%rsp)
movss %xmm2, 0x3c(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
movaps %xmm1, 0x40(%rsp)
movaps %xmm0, 0x10(%rsp)
movl 0x99d54(%rip), %r13d    # 0xa7250
cmpb $0x0, 0x99d52(%rip)     # 0xa7255
jne 0xd50a
callq 0x6a18
xorps %xmm0, %xmm0
cvtsi2ssl 0x99f8b(%rip), %xmm0 # 0xa74a0
movss %xmm0, 0x70(%rsp)
cmpb $0x0, 0x99d33(%rip)     # 0xa7255
jne 0xd529
callq 0x6a18
xorps %xmm0, %xmm0
cvtsi2ssl 0x99f6c(%rip), %xmm0 # 0xa74a0
movss %xmm0, 0x60(%rsp)
cmpb $0x0, 0x99d14(%rip)     # 0xa7255
jne 0xd548
callq 0x6a18
xorps %xmm0, %xmm0
cvtsi2ssl 0x99f5d(%rip), %xmm0 # 0xa74b0
movss %xmm0, 0x50(%rsp)
movaps 0x40(%rsp), %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movaps %xmm0, 0x80(%rsp)
cmpb $0x0, 0x99ce4(%rip)     # 0xa7255
jne 0xd578
callq 0x6a18
movl 0x99f22(%rip), %eax     # 0xa74a0
addl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movaps 0x80(%rsp), %xmm1
subss %xmm0, %xmm1
cmpb $0x0, 0x99cbb(%rip)     # 0xa7255
jne 0xd5b1
movaps %xmm1, 0x90(%rsp)
callq 0x6a18
movaps 0x90(%rsp), %xmm1
movl 0x99ef9(%rip), %eax     # 0xa74b0
addl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
subss %xmm0, %xmm1
movq %xmm1, %xmm2            # xmm2 = xmm1[0],zero
xorps %xmm0, %xmm0
shufps $0xe2, %xmm0, %xmm2     # xmm2 = xmm2[2,0],xmm0[2,3]
cmpl $0x3, %r13d
je 0xd62a
movss 0x20(%rsp), %xmm0
subss (%rsp), %xmm0
movss 0x3c(%rsp), %xmm3
divss %xmm0, %xmm3
cmpb $0x0, 0x99c64(%rip)     # 0xa7255
jne 0xd60a
movaps %xmm2, (%rsp)
movaps %xmm3, 0x20(%rsp)
callq 0x6a18
movaps 0x20(%rsp), %xmm3
movaps (%rsp), %xmm2
movl 0x99e90(%rip), %eax     # 0xa74a0
addl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movaps 0x40(%rsp), %xmm1
subss %xmm0, %xmm1
mulss %xmm1, %xmm3
movss %xmm3, %xmm2            # xmm2 = xmm3[0],xmm2[1,2,3]
movaps %xmm2, (%rsp)
cmpb $0x0, 0x99c20(%rip)     # 0xa7255
jne 0xd63c
callq 0x6a18
movaps 0x10(%rsp), %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movaps %xmm0, 0x20(%rsp)
movl 0x99e50(%rip), %ebp     # 0xa74a0
leal (%r13,%r13,2), %r15d
cmpb $0x0, 0x99bf9(%rip)     # 0xa7255
jne 0xd663
callq 0x6a18
movslq %r15d, %rax
leaq 0x99c23(%rip), %r12     # 0xa7290
movl 0x1e0(%r12,%rax,4), %edi
callq 0x44152
movss 0x98dae(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movaps 0x10(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movl %ebp, %edi
movl %eax, %esi
xorl %edx, %edx
callq 0x7546
testl $0xfffffffd, %r13d      # imm = 0xFFFFFFFD
je 0xd6c7
cmpl $0x1, %r13d
jne 0xd734
cmpb $0x0, 0x99b9d(%rip)     # 0xa7255
jne 0xd6bf
callq 0x6a18
movl 0x99dbf(%rip), %edi     # 0xa7484
jmp 0xd6db
cmpb $0x0, 0x99b87(%rip)     # 0xa7255
jne 0xd6d5
callq 0x6a18
movl 0x99db1(%rip), %edi     # 0xa748c
callq 0x44152
movss 0x98d48(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
cmpl $0x1000000, %eax        # imm = 0x1000000
jb 0xd734
movss 0x60(%rsp), %xmm1
addss 0x20(%rsp), %xmm1
addss 0x50(%rsp), %xmm1
movss 0x70(%rsp), %xmm0
addss 0x10(%rsp), %xmm0
cvttss2si %xmm0, %edi
cvttss2si %xmm1, %esi
movaps (%rsp), %xmm0
cvttss2si %xmm0, %edx
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
cvttss2si %xmm0, %ecx
movl %eax, %r8d
callq 0x31115
testq %r14, %r14
je 0xd864
movq %r14, %rdi
callq 0x7821
cvtsi2ss %eax, %xmm4
cmpb $0x0, 0x99b05(%rip)     # 0xa7255
movaps %xmm4, 0x60(%rsp)
jne 0xd761
callq 0x6a18
movaps 0x60(%rsp), %xmm4
xorps %xmm1, %xmm1
cvtsi2ssl 0x99b64(%rip), %xmm1 # 0xa72d0
movaps 0x10(%rsp), %xmm3
subss %xmm4, %xmm3
cmpb $0x0, 0x99ad9(%rip)     # 0xa7255
jne 0xd79a
movaps %xmm1, (%rsp)
movaps %xmm3, 0x50(%rsp)
callq 0x6a18
movaps 0x60(%rsp), %xmm4
movaps 0x50(%rsp), %xmm3
movaps (%rsp), %xmm1
xorps %xmm0, %xmm0
cvtsi2ssl 0x99cff(%rip), %xmm0 # 0xa74a4
movlhps %xmm4, %xmm1            # xmm1 = xmm1[0],xmm4[0]
subss %xmm0, %xmm3
movss 0x5a85c(%rip), %xmm2    # 0x68010
mulss 0x80(%rsp), %xmm2
addss 0x20(%rsp), %xmm2
cmpb $0x0, 0x99a8b(%rip)     # 0xa7255
jne 0xd7f2
movaps %xmm1, (%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x50(%rsp)
callq 0x6a18
movaps 0x60(%rsp), %xmm4
movaps 0x50(%rsp), %xmm3
movaps 0x70(%rsp), %xmm2
movaps (%rsp), %xmm1
shufps $0xe2, %xmm4, %xmm1     # xmm1 = xmm1[2,0],xmm4[2,3]
movaps %xmm1, (%rsp)
movl 0x99ad0(%rip), %eax     # 0xa72d0
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
subss %xmm0, %xmm2
movlhps %xmm3, %xmm2            # xmm2 = xmm2[0],xmm3[0]
shufps $0xe2, %xmm3, %xmm2     # xmm2 = xmm2[2,0],xmm3[2,3]
movaps %xmm2, 0x70(%rsp)
cmpb $0x0, 0x99a2e(%rip)     # 0xa7255
jne 0xd82e
callq 0x6a18
leal 0x7a(%r15), %eax
cltq
movl (%r12,%rax,4), %edi
callq 0x44152
movss 0x98beb(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movq %r14, %rdi
movaps 0x70(%rsp), %xmm0
movaps (%rsp), %xmm1
movl $0x2, %esi
movl %eax, %edx
callq 0x95ee
testq %rbx, %rbx
je 0xd992
movq %rbx, %rdi
callq 0x7821
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movaps %xmm0, (%rsp)
cmpb $0x0, 0x999ce(%rip)     # 0xa7255
jne 0xd88e
callq 0x6a18
xorps %xmm3, %xmm3
cvtsi2ssl 0x99a37(%rip), %xmm3 # 0xa72d0
movaps 0x40(%rsp), %xmm0
addss 0x10(%rsp), %xmm0
movaps %xmm0, 0x40(%rsp)
cmpb $0x0, 0x999a5(%rip)     # 0xa7255
jne 0xd8c1
movaps %xmm3, 0x10(%rsp)
callq 0x6a18
movaps 0x10(%rsp), %xmm3
xorps %xmm0, %xmm0
cvtsi2ssl 0x99bd8(%rip), %xmm0 # 0xa74a4
unpcklpd (%rsp), %xmm3           # xmm3 = xmm3[0],mem[0]
movaps 0x80(%rsp), %xmm2
mulss 0x5a72f(%rip), %xmm2    # 0x68010
movaps 0x40(%rsp), %xmm1
addss %xmm0, %xmm1
movaps %xmm1, 0x40(%rsp)
movaps 0x20(%rsp), %xmm0
addss %xmm2, %xmm0
movaps %xmm0, 0x20(%rsp)
cmpb $0x0, 0x99951(%rip)     # 0xa7255
jne 0xd915
movaps %xmm3, 0x10(%rsp)
callq 0x6a18
movaps 0x10(%rsp), %xmm3
shufps $0xe2, (%rsp), %xmm3    # xmm3 = xmm3[2,0],mem[2,3]
movaps %xmm3, 0x10(%rsp)
movl 0x999ab(%rip), %eax     # 0xa72d0
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
movaps 0x20(%rsp), %xmm1
subss %xmm0, %xmm1
movaps 0x40(%rsp), %xmm0
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
shufps $0xe2, %xmm0, %xmm1     # xmm1 = xmm1[2,0],xmm0[2,3]
movaps %xmm1, 0x20(%rsp)
cmpb $0x0, 0x998ff(%rip)     # 0xa7255
jne 0xd95d
callq 0x6a18
addl $0x7a, %r15d
movslq %r15d, %rax
movl (%r12,%rax,4), %edi
callq 0x44152
movss 0x98abb(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movq %rbx, %rdi
movaps 0x20(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
xorl %esi, %esi
movl %eax, %edx
callq 0x95ee
movss 0x3c(%rsp), %xmm0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq