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

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

        // Check toggle button state
        if (CheckCollisionPointRec(mousePoint, bounds))
        {
            if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) state = GUI_STATE_PRESSED;
            else if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON))
            {
                state = GUI_STATE_NORMAL;
                active = !active;
            }
            else state = GUI_STATE_FOCUSED;
        }
    }
    //--------------------------------------------------------------------

    // Draw control
    //--------------------------------------------------------------------
    if (state == GUI_STATE_NORMAL)
    {
        GuiDrawRectangle(bounds, GuiGetStyle(TOGGLE, BORDER_WIDTH), Fade(GetColor(GuiGetStyle(TOGGLE, (active? BORDER_COLOR_PRESSED : (BORDER + state*3)))), guiAlpha), Fade(GetColor(GuiGetStyle(TOGGLE, (active? BASE_COLOR_PRESSED : (BASE + state*3)))), guiAlpha));
        GuiDrawText(text, GetTextBounds(TOGGLE, bounds), GuiGetStyle(TOGGLE, TEXT_ALIGNMENT), Fade(GetColor(GuiGetStyle(TOGGLE, (active? TEXT_COLOR_PRESSED : (TEXT + state*3)))), guiAlpha));
    }
    else
    {
        GuiDrawRectangle(bounds, GuiGetStyle(TOGGLE, BORDER_WIDTH), Fade(GetColor(GuiGetStyle(TOGGLE, BORDER + state*3)), guiAlpha), Fade(GetColor(GuiGetStyle(TOGGLE, BASE + state*3)), guiAlpha));
        GuiDrawText(text, GetTextBounds(TOGGLE, bounds), GuiGetStyle(TOGGLE, TEXT_ALIGNMENT), Fade(GetColor(GuiGetStyle(TOGGLE, TEXT + state*3)), guiAlpha));
    }
    //--------------------------------------------------------------------

    return active;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movb %sil, %al
movlpd %xmm0, -0x10(%rbp)
movlpd %xmm1, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
movl 0xbfb09(%rip), %eax     # 0xca0e0
movl %eax, -0x20(%rbp)
cmpl $0x3, -0x20(%rbp)
je 0xa650
testb $0x1, 0xbfafd(%rip)     # 0xca0e4
jne 0xa650
callq 0x2dd60
movlpd %xmm0, -0x28(%rbp)
movsd -0x28(%rbp), %xmm0
movsd -0x10(%rbp), %xmm1
movsd -0x8(%rbp), %xmm2
callq 0x3e640
testb $0x1, %al
jne 0xa60d
jmp 0xa64e
xorl %edi, %edi
callq 0x2ddd0
testb $0x1, %al
jne 0xa61a
jmp 0xa623
movl $0x2, -0x20(%rbp)
jmp 0xa64c
xorl %edi, %edi
callq 0x34c30
testb $0x1, %al
jne 0xa630
jmp 0xa643
movl $0x0, -0x20(%rbp)
movb -0x19(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x19(%rbp)
jmp 0xa64a
movl $0x1, -0x20(%rbp)
jmp 0xa64c
jmp 0xa64e
jmp 0xa650
cmpl $0x0, -0x20(%rbp)
jne 0xa7cb
movl $0x3, %edi
movl $0xc, %esi
callq 0x6f90
movl %eax, -0x7c(%rbp)
testb $0x1, -0x19(%rbp)
je 0xa67c
movl $0x6, %eax
movl %eax, -0x80(%rbp)
jmp 0xa686
imull $0x3, -0x20(%rbp), %eax
addl $0x0, %eax
movl %eax, -0x80(%rbp)
movl -0x80(%rbp), %esi
movl $0x3, %edi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x30(%rbp)
movss 0xbdd6b(%rip), %xmm0    # 0xc8410
movl -0x30(%rbp), %edi
callq 0x51fa0
movl %eax, -0x2c(%rbp)
testb $0x1, -0x19(%rbp)
je 0xa6c3
movl $0x7, %eax
movl %eax, -0x84(%rbp)
jmp 0xa6d0
imull $0x3, -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %esi
movl $0x3, %edi
movl %edi, -0x94(%rbp)
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x38(%rbp)
movss 0xbdd18(%rip), %xmm0    # 0xc8410
movl -0x38(%rbp), %edi
callq 0x51fa0
movl -0x7c(%rbp), %edi
movl %eax, -0x34(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x8(%rbp), %xmm1
movl -0x2c(%rbp), %esi
movl -0x34(%rbp), %edx
callq 0x77c0
movl -0x94(%rbp), %edi
movq -0x18(%rbp), %rax
movq %rax, -0x90(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x8(%rbp), %xmm1
callq 0x9f70
movlpd %xmm0, -0x48(%rbp)
movlpd %xmm1, -0x40(%rbp)
movl $0x3, %edi
movl $0xe, %esi
callq 0x6f90
movl %eax, -0x88(%rbp)
testb $0x1, -0x19(%rbp)
je 0xa76d
movl $0x8, %eax
movl %eax, -0x98(%rbp)
jmp 0xa77a
imull $0x3, -0x20(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x98(%rbp)
movl -0x98(%rbp), %esi
movl $0x3, %edi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x50(%rbp)
movss 0xbdc74(%rip), %xmm0    # 0xc8410
movl -0x50(%rbp), %edi
callq 0x51fa0
movq -0x90(%rbp), %rdi
movl -0x88(%rbp), %esi
movl %eax, -0x4c(%rbp)
movsd -0x48(%rbp), %xmm0
movsd -0x40(%rbp), %xmm1
movl -0x4c(%rbp), %edx
callq 0x9cf0
jmp 0xa8f2
movl $0x3, %edi
movl %edi, -0xac(%rbp)
movl $0xc, %esi
callq 0x6f90
movl -0xac(%rbp), %edi
movl %eax, -0xb0(%rbp)
movl -0x20(%rbp), %ecx
movl %ecx, %eax
leal (%rax,%rax,2), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x58(%rbp)
movss 0xbdc05(%rip), %xmm0    # 0xc8410
movl -0x58(%rbp), %edi
callq 0x51fa0
movl -0xac(%rbp), %edi
movl %eax, -0x54(%rbp)
movl -0x20(%rbp), %ecx
movl %ecx, %eax
leal 0x1(%rax,%rax,2), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x60(%rbp)
movss 0xbdbd4(%rip), %xmm0    # 0xc8410
movl -0x60(%rbp), %edi
callq 0x51fa0
movl -0xb0(%rbp), %edi
movl %eax, -0x5c(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x8(%rbp), %xmm1
movl -0x54(%rbp), %esi
movl -0x5c(%rbp), %edx
callq 0x77c0
movl -0xac(%rbp), %edi
movq -0x18(%rbp), %rax
movq %rax, -0xa8(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x8(%rbp), %xmm1
callq 0x9f70
movl -0xac(%rbp), %edi
movlpd %xmm0, -0x70(%rbp)
movlpd %xmm1, -0x68(%rbp)
movl $0xe, %esi
callq 0x6f90
movl -0xac(%rbp), %edi
movl %eax, -0x9c(%rbp)
movl -0x20(%rbp), %ecx
movl %ecx, %eax
leal 0x2(%rax,%rax,2), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x78(%rbp)
movss 0xbdb48(%rip), %xmm0    # 0xc8410
movl -0x78(%rbp), %edi
callq 0x51fa0
movq -0xa8(%rbp), %rdi
movl -0x9c(%rbp), %esi
movl %eax, -0x74(%rbp)
movsd -0x70(%rbp), %xmm0
movsd -0x68(%rbp), %xmm1
movl -0x74(%rbp), %edx
callq 0x9cf0
movb -0x19(%rbp), %al
andb $0x1, %al
addq $0xb0, %rsp
popq %rbp
retq