// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movlpd %xmm0, -0x10(%rbp)
movlpd %xmm1, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movss %xmm2, -0x24(%rbp)
movss %xmm3, -0x28(%rbp)
movss %xmm4, -0x2c(%rbp)
movl 0xbbc4e(%rip), %eax     # 0xca0e0
movl %eax, -0x30(%rbp)
movss -0x10(%rbp), %xmm0
movss %xmm0, -0xbc(%rbp)
movl $0x5, %edi
movl $0xc, %esi
callq 0x6f90
movss -0xbc(%rbp), %xmm0
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x40(%rbp)
movss -0xc(%rbp), %xmm0
movss %xmm0, -0xb8(%rbp)
movl $0x5, %edi
movl $0xc, %esi
callq 0x6f90
movss -0xb8(%rbp), %xmm0
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0xb4(%rbp)
movl $0x5, %edi
movl $0x10, %esi
callq 0x6f90
movss -0xb4(%rbp), %xmm0
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x3c(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0x38(%rbp)
movss -0x4(%rbp), %xmm0
movss %xmm0, -0xb0(%rbp)
movl $0x5, %edi
movl $0xc, %esi
callq 0x6f90
movss -0xb0(%rbp), %xmm0
shll %eax
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0xac(%rbp)
movl $0x5, %edi
movl $0x10, %esi
callq 0x6f90
movss -0xac(%rbp), %xmm0
shll %eax
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x34(%rbp)
cmpl $0x3, -0x30(%rbp)
je 0xe5e2
movss -0x24(%rbp), %xmm0
movss -0x2c(%rbp), %xmm1
subss -0x28(%rbp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -0xc0(%rbp)
movss -0x8(%rbp), %xmm0
movss %xmm0, -0xc4(%rbp)
movl $0x5, %edi
movl $0xc, %esi
callq 0x6f90
movss -0xc4(%rbp), %xmm1
movss -0xc0(%rbp), %xmm0
shll %eax
cvtsi2ss %eax, %xmm2
subss %xmm2, %xmm1
mulss %xmm1, %xmm0
movss %xmm0, -0x38(%rbp)
movl $0x5, %edi
movl %edi, -0xcc(%rbp)
movl $0xc, %esi
callq 0x6f90
movl -0xcc(%rbp), %edi
movl %eax, -0xc8(%rbp)
movl -0x30(%rbp), %ecx
movl %ecx, %eax
leal (%rax,%rax,2), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x48(%rbp)
movss 0xb9dee(%rip), %xmm0    # 0xc8410
movl -0x48(%rbp), %edi
callq 0x51fa0
movl -0xc8(%rbp), %edi
movl %eax, -0x44(%rbp)
movb $0x0, -0x4c(%rbp)
movb $0x0, -0x4b(%rbp)
movb $0x0, -0x4a(%rbp)
movb $0x0, -0x49(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x8(%rbp), %xmm1
movl -0x44(%rbp), %esi
movl -0x4c(%rbp), %edx
callq 0x77c0
cmpl $0x0, -0x30(%rbp)
je 0xe664
cmpl $0x2, -0x30(%rbp)
jne 0xe6b9
movb $0x0, -0x50(%rbp)
movb $0x0, -0x4f(%rbp)
movb $0x0, -0x4e(%rbp)
movb $0x0, -0x4d(%rbp)
movl $0x5, %edi
movl $0x7, %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x58(%rbp)
movss 0xb9d7b(%rip), %xmm0    # 0xc8410
movl -0x58(%rbp), %edi
callq 0x51fa0
movl %eax, -0x54(%rbp)
movsd -0x40(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
movl -0x50(%rbp), %esi
movl -0x54(%rbp), %edx
xorl %edi, %edi
callq 0x77c0
jmp 0xe711
cmpl $0x1, -0x30(%rbp)
jne 0xe70f
movb $0x0, -0x5c(%rbp)
movb $0x0, -0x5b(%rbp)
movb $0x0, -0x5a(%rbp)
movb $0x0, -0x59(%rbp)
movl $0x5, %esi
movl %esi, %edi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x64(%rbp)
movss 0xb9d23(%rip), %xmm0    # 0xc8410
movl -0x64(%rbp), %edi
callq 0x51fa0
movl %eax, -0x60(%rbp)
movsd -0x40(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
movl -0x5c(%rbp), %esi
movl -0x60(%rbp), %edx
xorl %edi, %edi
callq 0x77c0
jmp 0xe711
cmpq $0x0, -0x18(%rbp)
je 0xe84d
xorps %xmm0, %xmm0
movaps %xmm0, -0x80(%rbp)
movq -0x18(%rbp), %rdi
callq 0x7af0
cvtsi2ss %eax, %xmm0
movss %xmm0, -0x78(%rbp)
xorl %edi, %edi
movl %edi, -0xe8(%rbp)
movl $0x10, %esi
movl %esi, -0xe4(%rbp)
callq 0x6f90
cvtsi2ss %eax, %xmm0
movss %xmm0, -0x74(%rbp)
movss -0x10(%rbp), %xmm0
movss -0x78(%rbp), %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0xec(%rbp)
movl $0x5, %edi
movl %edi, -0xdc(%rbp)
movl $0xd, %esi
callq 0x6f90
movss -0xec(%rbp), %xmm0
movl -0xe8(%rbp), %edi
movl -0xe4(%rbp), %esi
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x80(%rbp)
movss -0xc(%rbp), %xmm0
movss -0x4(%rbp), %xmm1
movss 0x7d860(%rip), %xmm2    # 0x8c014
mulss %xmm2, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0xe0(%rbp)
callq 0x6f90
movss -0xe0(%rbp), %xmm0
movl -0xdc(%rbp), %edi
movl %eax, %ecx
shrl $0x1f, %ecx
addl %ecx, %eax
sarl %eax
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x7c(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xd8(%rbp)
movl -0x30(%rbp), %ecx
movl %ecx, %eax
leal 0x2(%rax,%rax,2), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x88(%rbp)
movss 0xb9bf5(%rip), %xmm0    # 0xc8410
movl -0x88(%rbp), %edi
callq 0x51fa0
movq -0xd8(%rbp), %rdi
movl %eax, -0x84(%rbp)
movsd -0x80(%rbp), %xmm0
movsd -0x78(%rbp), %xmm1
movl -0x84(%rbp), %edx
movl $0x2, %esi
callq 0x9cf0
cmpq $0x0, -0x20(%rbp)
je 0xe99b
xorps %xmm0, %xmm0
movaps %xmm0, -0xa0(%rbp)
movq -0x20(%rbp), %rdi
callq 0x7af0
cvtsi2ss %eax, %xmm0
movss %xmm0, -0x98(%rbp)
xorl %edi, %edi
movl %edi, -0x108(%rbp)
movl $0x10, %esi
movl %esi, -0x104(%rbp)
callq 0x6f90
cvtsi2ss %eax, %xmm0
movss %xmm0, -0x94(%rbp)
movss -0x10(%rbp), %xmm0
movss -0x8(%rbp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x10c(%rbp)
movl $0x5, %edi
movl %edi, -0xfc(%rbp)
movl $0xd, %esi
callq 0x6f90
movss -0x10c(%rbp), %xmm0
movl -0x108(%rbp), %edi
movl -0x104(%rbp), %esi
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0xa0(%rbp)
movss -0xc(%rbp), %xmm0
movss -0x4(%rbp), %xmm1
movss 0x7d718(%rip), %xmm2    # 0x8c014
mulss %xmm2, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x100(%rbp)
callq 0x6f90
movss -0x100(%rbp), %xmm0
movl -0xfc(%rbp), %edi
movl %eax, %ecx
shrl $0x1f, %ecx
addl %ecx, %eax
sarl %eax
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x9c(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xf8(%rbp)
movl -0x30(%rbp), %ecx
movl %ecx, %eax
leal 0x2(%rax,%rax,2), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0xa8(%rbp)
movss 0xb9aaa(%rip), %xmm0    # 0xc8410
movl -0xa8(%rbp), %edi
callq 0x51fa0
movq -0xf8(%rbp), %rdi
movl %eax, -0xa4(%rbp)
movsd -0xa0(%rbp), %xmm0
movsd -0x98(%rbp), %xmm1
movl -0xa4(%rbp), %edx
xorl %esi, %esi
callq 0x9cf0
movss -0x24(%rbp), %xmm0
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopl (%rax)