// File: /workspace/github_c_makefile_star2_O3/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 0x9c646(%rip), %r15d    # 0xa4250
cmpl $0x3, %r15d
jne 0x7c18
movl $0x3, %r15d
jmp 0x7c51
cmpb $0x0, 0x9c635(%rip)     # 0xa4254
jne 0x7c51
callq 0x26136
movaps (%rsp), %xmm1
movaps 0x10(%rsp), %xmm2
callq 0x320c1
testb %al, %al
je 0x7c51
xorl %edi, %edi
callq 0x2615e
movzbl %al, %r15d
incl %r15d
xorl %edi, %edi
callq 0x2bd0b
movl %eax, %ebp
jmp 0x7c53
xorl %ebp, %ebp
cmpb $0x1, 0x9c5fb(%rip)     # 0xa4255
jne 0x7c65
movl 0x9c71d(%rip), %r14d    # 0xa4380
jmp 0x7c7f
callq 0x6a3c
movl 0x9c70f(%rip), %r14d    # 0xa4380
cmpb $0x0, 0x9c5dd(%rip)     # 0xa4255
jne 0x7c7f
callq 0x6a3c
leal (%r15,%r15,2), %r12d
movslq %r12d, %rax
leaq 0x9c603(%rip), %r13     # 0xa4290
movl 0xc0(%r13,%rax,4), %edi
callq 0x4144d
movss 0x9b78e(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movl %eax, %r15d
cmpb $0x0, 0x9c5a2(%rip)     # 0xa4255
jne 0x7cba
callq 0x6a3c
leal 0x31(%r12), %eax
cltq
movl (%r13,%rax,4), %edi
callq 0x4144d
movss 0x9b75d(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movl %r14d, %edi
movl %r15d, %esi
movl %eax, %edx
callq 0x7ee9
movl $0x2, %edi
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0xa726
movaps %xmm0, 0x10(%rsp)
movaps %xmm1, (%rsp)
cmpb $0x1, 0x9c542(%rip)     # 0xa4255
jne 0x7d1e
movl 0x9c66c(%rip), %r14d    # 0xa4388
jmp 0x7d38
callq 0x6a3c
movl 0x9c65e(%rip), %r14d    # 0xa4388
cmpb $0x0, 0x9c524(%rip)     # 0xa4255
jne 0x7d38
callq 0x6a3c
addl $0x32, %r12d
movslq %r12d, %rax
movl (%r13,%rax,4), %edi
callq 0x4144d
movss 0x9b6df(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movq %rbx, %rdi
movaps 0x10(%rsp), %xmm0
movaps (%rsp), %xmm1
movl %r14d, %esi
movl %eax, %edx
callq 0xa506
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq