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

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

        // Check button 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
    //--------------------------------------------------------------------
    GuiDrawRectangle(bounds, GuiGetStyle(BUTTON, BORDER_WIDTH), Fade(GetColor(GuiGetStyle(BUTTON, BORDER + (state*3))), guiAlpha), Fade(GetColor(GuiGetStyle(BUTTON, BASE + (state*3))), guiAlpha));
    GuiDrawText(text, GetTextBounds(BUTTON, bounds), GuiGetStyle(BUTTON, TEXT_ALIGNMENT), Fade(GetColor(GuiGetStyle(BUTTON, TEXT + (state*3))), guiAlpha));
    //------------------------------------------------------------------

    return pressed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movl 0x9ffe5(%rip), %r15d    # 0xa7250
cmpl $0x3, %r15d
jne 0x7279
movl $0x3, %r15d
jmp 0x72b2
cmpb $0x0, 0x9ffd4(%rip)     # 0xa7254
jne 0x72b2
callq 0x2867d
movaps (%rsp), %xmm1
movaps 0x10(%rsp), %xmm2
callq 0x34d6b
testb %al, %al
je 0x72b2
xorl %edi, %edi
callq 0x286ba
movzbl %al, %r15d
incl %r15d
xorl %edi, %edi
callq 0x2e875
movl %eax, %ebp
jmp 0x72b4
xorl %ebp, %ebp
cmpb $0x0, 0x9ff9a(%rip)     # 0xa7255
jne 0x72c2
callq 0x6a18
movl 0xa00b7(%rip), %r14d    # 0xa7380
leal (%r15,%r15,2), %r12d
cmpb $0x0, 0x9ff81(%rip)     # 0xa7255
jne 0x72db
callq 0x6a18
movslq %r12d, %rax
leaq 0x9ffab(%rip), %r13     # 0xa7290
movl 0xc0(%r13,%rax,4), %edi
callq 0x44152
movss 0x9f136(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movl %eax, %r15d
cmpb $0x0, 0x9ff4a(%rip)     # 0xa7255
jne 0x7312
callq 0x6a18
leal 0x31(%r12), %eax
cltq
movl (%r13,%rax,4), %edi
callq 0x44152
movss 0x9f105(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movl %r14d, %edi
movl %r15d, %esi
movl %eax, %edx
callq 0x7546
movl $0x2, %edi
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0x982d
movaps %xmm0, 0x10(%rsp)
movaps %xmm1, (%rsp)
cmpb $0x0, 0x9feea(%rip)     # 0xa7255
jne 0x7372
callq 0x6a18
movl 0xa000f(%rip), %r14d    # 0xa7388
cmpb $0x0, 0x9fed5(%rip)     # 0xa7255
jne 0x7387
callq 0x6a18
addl $0x32, %r12d
movslq %r12d, %rax
movl (%r13,%rax,4), %edi
callq 0x44152
movss 0x9f090(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movq %rbx, %rdi
movaps 0x10(%rsp), %xmm0
movaps (%rsp), %xmm1
movl %r14d, %esi
movl %eax, %edx
callq 0x95ee
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq