// File: /workspace/github_c_makefile_star2_O2/arkanis[P]process-map/./deps/raygui.h
// Function: GuiLabelButton
bool GuiLabelButton(Rectangle bounds, const char *text)
{
    GuiControlState state = guiState;
    bool pressed = false;

    // NOTE: We force bounds.width to be all text
    float textWidth = MeasureTextEx(guiFont, text, (float)GuiGetStyle(DEFAULT, TEXT_SIZE), (float)GuiGetStyle(DEFAULT, TEXT_SPACING)).x;
    if (bounds.width < textWidth) bounds.width = textWidth;

    // Update control
    //--------------------------------------------------------------------
    if ((state != GUI_STATE_DISABLED) && !guiLocked)
    {
        Vector2 mousePoint = GetMousePosition();

        // Check checkbox state
        if (CheckCollisionPointRec(mousePoint, bounds))
        {
            if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) state = GUI_STATE_PRESSED;
            else state = GUI_STATE_FOCUSED;

            if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON)) pressed = true;
        }
    }
    //--------------------------------------------------------------------

    // Draw control
    //--------------------------------------------------------------------
    GuiDrawText(text, GetTextBounds(LABEL, bounds), GuiGetStyle(LABEL, TEXT_ALIGNMENT), Fade(GetColor(GuiGetStyle(LABEL, TEXT + (state*3))), guiAlpha));
    //--------------------------------------------------------------------

    return pressed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rdi, %rbx
movaps %xmm1, 0x30(%rsp)
movaps %xmm0, 0x50(%rsp)
movl 0x92271(%rip), %r12d    # 0x9b280
xorl %ebp, %ebp
pushq $0x10
popq %rsi
xorl %edi, %edi
callq 0x6e93
cvtsi2ss %eax, %xmm0
movss %xmm0, 0x4c(%rsp)
pushq $0x11
popq %rsi
xorl %edi, %edi
callq 0x6e93
cvtsi2ss %eax, %xmm1
movups 0x9226e(%rip), %xmm0    # 0x9b2a8
movups %xmm0, 0x20(%rsp)
movups 0x92252(%rip), %xmm0    # 0x9b298
movups %xmm0, 0x10(%rsp)
movups 0x92236(%rip), %xmm0    # 0x9b288
movups %xmm0, (%rsp)
movq %rbx, %rdi
movss 0x4c(%rsp), %xmm0
callq 0x44746
movaps 0x30(%rsp), %xmm1
ucomiss %xmm1, %xmm0
ja 0x9071
movaps %xmm1, %xmm0
shufps $0x1, %xmm0, %xmm1      # xmm1 = xmm1[1,0],xmm0[0,0]
shufps $0xe2, %xmm0, %xmm1     # xmm1 = xmm1[2,0],xmm0[2,3]
cmpl $0x3, %r12d
jne 0x9085
pushq $0x3
popq %r12
jmp 0x90cf
cmpb $0x0, 0x921f8(%rip)     # 0x9b284
je 0x9092
xorl %ebp, %ebp
jmp 0x90cf
movaps %xmm1, 0x30(%rsp)
callq 0x1fd8b
movaps 0x50(%rsp), %xmm1
movaps 0x30(%rsp), %xmm2
callq 0x2a643
testb %al, %al
je 0x90c8
xorl %edi, %edi
callq 0x1fdb3
movzbl %al, %r12d
incl %r12d
xorl %edi, %edi
callq 0x245dd
movl %eax, %ebp
jmp 0x90ca
xorl %ebp, %ebp
movaps 0x30(%rsp), %xmm1
pushq $0x1
popq %r14
movl %r14d, %edi
movaps 0x50(%rsp), %xmm0
callq 0x8f04
movaps %xmm0, 0x30(%rsp)
movaps %xmm1, 0x50(%rsp)
pushq $0xe
popq %rsi
movl %r14d, %edi
callq 0x6e93
movl %eax, %r15d
leal (%r12,%r12,2), %esi
addl $0x2, %esi
movl %r14d, %edi
callq 0x6e93
movl %eax, %edi
callq 0x38400
movss 0x9132a(%rip), %xmm0    # 0x9a440
movl %eax, %edi
callq 0x380d5
movq %rbx, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x50(%rsp), %xmm1
movl %r15d, %esi
movl %eax, %edx
callq 0x8d31
movl %ebp, %eax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq