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

    Rectangle textBounds = { 0 };

    if (text != NULL)
    {
        textBounds.width = (float)GetTextWidth(text);
        textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
        textBounds.x = bounds.x + bounds.width + GuiGetStyle(CHECKBOX, TEXT_PADDING);
        textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2;
        if (GuiGetStyle(CHECKBOX, TEXT_ALIGNMENT) == GUI_TEXT_ALIGN_LEFT) textBounds.x = bounds.x - textBounds.width - GuiGetStyle(CHECKBOX, TEXT_PADDING);
    }

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

        Rectangle totalBounds = {
            (GuiGetStyle(CHECKBOX, TEXT_ALIGNMENT) == GUI_TEXT_ALIGN_LEFT)? textBounds.x : bounds.x,
            bounds.y,
            bounds.width + textBounds.width + GuiGetStyle(CHECKBOX, TEXT_PADDING),
            bounds.height,
        };

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

            if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON)) checked = !checked;
        }
    }
    //--------------------------------------------------------------------

    // Draw control
    //--------------------------------------------------------------------
    GuiDrawRectangle(bounds, GuiGetStyle(CHECKBOX, BORDER_WIDTH), Fade(GetColor(GuiGetStyle(CHECKBOX, BORDER + (state*3))), guiAlpha), BLANK);

    if (checked)
    {
        Rectangle check = { bounds.x + GuiGetStyle(CHECKBOX, BORDER_WIDTH) + GuiGetStyle(CHECKBOX, CHECK_PADDING),
                            bounds.y + GuiGetStyle(CHECKBOX, BORDER_WIDTH) + GuiGetStyle(CHECKBOX, CHECK_PADDING),
                            bounds.width - 2*(GuiGetStyle(CHECKBOX, BORDER_WIDTH) + GuiGetStyle(CHECKBOX, CHECK_PADDING)),
                            bounds.height - 2*(GuiGetStyle(CHECKBOX, BORDER_WIDTH) + GuiGetStyle(CHECKBOX, CHECK_PADDING)) };
        GuiDrawRectangle(check, 0, BLANK, Fade(GetColor(GuiGetStyle(CHECKBOX, TEXT + state*3)), guiAlpha));
    }

    if (text != NULL) GuiDrawText(text, textBounds, (GuiGetStyle(CHECKBOX, TEXT_ALIGNMENT) == GUI_TEXT_ALIGN_RIGHT)? GUI_TEXT_ALIGN_LEFT : GUI_TEXT_ALIGN_RIGHT, Fade(GetColor(GuiGetStyle(LABEL, TEXT + (state*3))), guiAlpha));
    //--------------------------------------------------------------------

    return checked;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movb %sil, %al
movlpd %xmm0, -0x10(%rbp)
movlpd %xmm1, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
movl 0xbf469(%rip), %eax     # 0xca0e0
movl %eax, -0x20(%rbp)
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x6060
cmpq $0x0, -0x18(%rbp)
je 0xad7d
movq -0x18(%rbp), %rdi
callq 0x7af0
cvtsi2ss %eax, %xmm0
movss %xmm0, -0x28(%rbp)
xorl %edi, %edi
movl $0x10, %esi
callq 0x6f90
cvtsi2ss %eax, %xmm0
movss %xmm0, -0x24(%rbp)
movss -0x10(%rbp), %xmm0
addss -0x8(%rbp), %xmm0
movss %xmm0, -0x80(%rbp)
movl $0x6, %edi
movl $0xd, %esi
callq 0x6f90
movss -0x80(%rbp), %xmm0
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x30(%rbp)
movss -0xc(%rbp), %xmm0
movss -0x4(%rbp), %xmm1
movss 0x8130a(%rip), %xmm2    # 0x8c008
divss %xmm2, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x7c(%rbp)
xorl %edi, %edi
movl $0x10, %esi
callq 0x6f90
movss -0x7c(%rbp), %xmm0
movl $0x2, %ecx
cltd
idivl %ecx
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x2c(%rbp)
movl $0x6, %edi
movl $0xe, %esi
callq 0x6f90
cmpl $0x0, %eax
jne 0xad7b
movss -0x10(%rbp), %xmm0
subss -0x28(%rbp), %xmm0
movss %xmm0, -0x84(%rbp)
movl $0x6, %edi
movl $0xd, %esi
callq 0x6f90
movss -0x84(%rbp), %xmm0
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x30(%rbp)
jmp 0xad7d
cmpl $0x3, -0x20(%rbp)
je 0xae8c
testb $0x1, 0xbf356(%rip)     # 0xca0e4
jne 0xae8c
callq 0x2dd60
movlpd %xmm0, -0x38(%rbp)
leaq -0x48(%rbp), %rax
movq %rax, -0x90(%rbp)
movl $0x6, %edi
movl $0xe, %esi
callq 0x6f90
cmpl $0x0, %eax
jne 0xadcc
movss -0x30(%rbp), %xmm0
movss %xmm0, -0x94(%rbp)
jmp 0xadd9
movss -0x10(%rbp), %xmm0
movss %xmm0, -0x94(%rbp)
movq -0x90(%rbp), %rax
movss -0x94(%rbp), %xmm0
movss %xmm0, (%rax)
movss -0xc(%rbp), %xmm0
movss %xmm0, -0x44(%rbp)
movss -0x8(%rbp), %xmm0
movss -0x28(%rbp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x98(%rbp)
movl $0x6, %edi
movl $0xd, %esi
callq 0x6f90
movss -0x98(%rbp), %xmm0
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x40(%rbp)
movss -0x4(%rbp), %xmm0
movss %xmm0, -0x3c(%rbp)
movsd -0x38(%rbp), %xmm0
movsd -0x48(%rbp), %xmm1
movsd -0x40(%rbp), %xmm2
callq 0x3e640
testb $0x1, %al
jne 0xae54
jmp 0xae8a
xorl %edi, %edi
callq 0x2ddd0
testb $0x1, %al
jne 0xae61
jmp 0xae6a
movl $0x2, -0x20(%rbp)
jmp 0xae71
movl $0x1, -0x20(%rbp)
xorl %edi, %edi
callq 0x34c30
testb $0x1, %al
jne 0xae7e
jmp 0xae88
movb -0x19(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x19(%rbp)
jmp 0xae8a
jmp 0xae8c
movl $0x6, %edi
movl %edi, -0xa0(%rbp)
movl $0xc, %esi
callq 0x6f90
movl -0xa0(%rbp), %edi
movl %eax, -0x9c(%rbp)
movl -0x20(%rbp), %ecx
movl %ecx, %eax
leal (%rax,%rax,2), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x50(%rbp)
movss 0xbd544(%rip), %xmm0    # 0xc8410
movl -0x50(%rbp), %edi
callq 0x51fa0
movl -0x9c(%rbp), %edi
movl %eax, -0x4c(%rbp)
movb $0x0, -0x54(%rbp)
movb $0x0, -0x53(%rbp)
movb $0x0, -0x52(%rbp)
movb $0x0, -0x51(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x8(%rbp), %xmm1
movl -0x4c(%rbp), %esi
movl -0x54(%rbp), %edx
callq 0x77c0
testb $0x1, -0x19(%rbp)
je 0xb0d7
movss -0x10(%rbp), %xmm0
movss %xmm0, -0xcc(%rbp)
movl $0x6, %edi
movl %edi, -0xa8(%rbp)
movl $0xc, %esi
movl %esi, -0xb8(%rbp)
callq 0x6f90
movss -0xcc(%rbp), %xmm0
movl -0xa8(%rbp), %edi
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0xc8(%rbp)
movl $0x10, %esi
movl %esi, -0xb0(%rbp)
callq 0x6f90
movss -0xc8(%rbp), %xmm0
movl -0xb8(%rbp), %esi
movl -0xa8(%rbp), %edi
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x64(%rbp)
movss -0xc(%rbp), %xmm0
movss %xmm0, -0xc4(%rbp)
callq 0x6f90
movss -0xc4(%rbp), %xmm0
movl -0xb0(%rbp), %esi
movl -0xa8(%rbp), %edi
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0xc0(%rbp)
callq 0x6f90
movss -0xc0(%rbp), %xmm0
movl -0xb8(%rbp), %esi
movl -0xa8(%rbp), %edi
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x60(%rbp)
movss -0x8(%rbp), %xmm0
movss %xmm0, -0xbc(%rbp)
callq 0x6f90
movl -0xb0(%rbp), %esi
movl -0xa8(%rbp), %edi
movl %eax, -0xb4(%rbp)
callq 0x6f90
movss -0xbc(%rbp), %xmm0
movl -0xb8(%rbp), %esi
movl -0xa8(%rbp), %edi
movl %eax, %ecx
movl -0xb4(%rbp), %eax
addl %ecx, %eax
addl %eax, %eax
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x5c(%rbp)
movss -0x4(%rbp), %xmm0
movss %xmm0, -0xac(%rbp)
callq 0x6f90
movl -0xb0(%rbp), %esi
movl -0xa8(%rbp), %edi
movl %eax, -0xa4(%rbp)
callq 0x6f90
movss -0xac(%rbp), %xmm0
movl -0xa8(%rbp), %edi
movl %eax, %ecx
movl -0xa4(%rbp), %eax
addl %ecx, %eax
addl %eax, %eax
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x58(%rbp)
movb $0x0, -0x68(%rbp)
movb $0x0, -0x67(%rbp)
movb $0x0, -0x66(%rbp)
movb $0x0, -0x65(%rbp)
movl -0x20(%rbp), %ecx
movl %ecx, %eax
leal 0x2(%rax,%rax,2), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x70(%rbp)
movss 0xbd35b(%rip), %xmm0    # 0xc8410
movl -0x70(%rbp), %edi
callq 0x51fa0
movl %eax, -0x6c(%rbp)
movsd -0x64(%rbp), %xmm0
movsd -0x5c(%rbp), %xmm1
movl -0x68(%rbp), %esi
movl -0x6c(%rbp), %edx
xorl %edi, %edi
callq 0x77c0
cmpq $0x0, -0x18(%rbp)
je 0xb158
movq -0x18(%rbp), %rax
movq %rax, -0xd8(%rbp)
movl $0x6, %edi
movl $0xe, %esi
callq 0x6f90
subl $0x2, %eax
setne %al
movzbl %al, %eax
addl %eax, %eax
movl %eax, -0xd0(%rbp)
movl -0x20(%rbp), %ecx
movl %ecx, %eax
leal 0x2(%rax,%rax,2), %esi
movl $0x1, %edi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x78(%rbp)
movss 0xbd2e2(%rip), %xmm0    # 0xc8410
movl -0x78(%rbp), %edi
callq 0x51fa0
movq -0xd8(%rbp), %rdi
movl -0xd0(%rbp), %esi
movl %eax, -0x74(%rbp)
movsd -0x30(%rbp), %xmm0
movsd -0x28(%rbp), %xmm1
movl -0x74(%rbp), %edx
callq 0x9cf0
movb -0x19(%rbp), %al
andb $0x1, %al
addq $0xe0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)