// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebx
movq %rdi, %r14
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movl 0x9953d(%rip), %ebp     # 0xa4250
movl $0x3, %r15d
cmpl $0x3, %ebp
je 0xad73
cmpb $0x0, 0x9952f(%rip)     # 0xa4254
jne 0xad68
callq 0x26136
movaps (%rsp), %xmm1
movaps 0x10(%rsp), %xmm2
callq 0x320c1
testb %al, %al
je 0xad68
xorl %edi, %edi
callq 0x2615e
movl $0x2, %r15d
testb %al, %al
jne 0xad73
xorl %edi, %edi
callq 0x2bd0b
movl $0x1, %r15d
testb %al, %al
je 0xad73
xorb $0x1, %bl
jmp 0xae99
movl %ebp, %r15d
testl %ebp, %ebp
je 0xae99
cmpb $0x1, 0x994db(%rip)     # 0xa4255
jne 0xad84
movl 0x9965e(%rip), %ebp     # 0xa43e0
jmp 0xad9d
callq 0x6a3c
movl 0x99651(%rip), %ebp     # 0xa43e0
cmpb $0x0, 0x994bf(%rip)     # 0xa4255
jne 0xad9d
callq 0x6a3c
leal (%r15,%r15,2), %r12d
movslq %r12d, %rax
leaq 0x994e5(%rip), %r13     # 0xa4290
movl 0x120(%r13,%rax,4), %edi
callq 0x4144d
movss 0x98670(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movl %eax, %r15d
cmpb $0x0, 0x99484(%rip)     # 0xa4255
jne 0xadd8
callq 0x6a3c
leal 0x49(%r12), %eax
cltq
movl (%r13,%rax,4), %edi
callq 0x4144d
movss 0x9863f(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movl %ebp, %edi
movl %r15d, %esi
movl %eax, %edx
callq 0x7ee9
movl $0x3, %edi
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0xa726
movaps %xmm0, 0x10(%rsp)
movaps %xmm1, (%rsp)
cmpb $0x1, 0x99425(%rip)     # 0xa4255
jne 0xae3a
movl 0x995b0(%rip), %ebp     # 0xa43e8
jmp 0xae53
callq 0x6a3c
movl 0x995a3(%rip), %ebp     # 0xa43e8
cmpb $0x0, 0x99409(%rip)     # 0xa4255
jne 0xae53
callq 0x6a3c
addl $0x4a, %r12d
movslq %r12d, %rax
movl (%r13,%rax,4), %edi
callq 0x4144d
movss 0x985c4(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movq %r14, %rdi
movaps 0x10(%rsp), %xmm0
movaps (%rsp), %xmm1
movl %ebp, %esi
movl %eax, %edx
callq 0xa506
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x1, 0x993b5(%rip)     # 0xa4255
jne 0xaeb8
movl 0x99538(%rip), %ebp     # 0xa43e0
xorl %eax, %eax
testb %bl, %bl
movl $0x6, %r15d
cmovel %eax, %r15d
jmp 0xaedf
callq 0x6a3c
movl 0x9951d(%rip), %ebp     # 0xa43e0
xorl %eax, %eax
testb %bl, %bl
movl $0x6, %r15d
cmovel %eax, %r15d
cmpb $0x0, 0x9937d(%rip)     # 0xa4255
jne 0xaedf
callq 0x6a3c
movl %r15d, %eax
leaq 0x993a7(%rip), %r12     # 0xa4290
movl 0x120(%r12,%rax,4), %edi
callq 0x4144d
movss 0x98532(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movl %eax, %r15d
cmpb $0x0, 0x99346(%rip)     # 0xa4255
jne 0xaf16
callq 0x6a3c
testb %bl, %bl
movl $0x13c, %eax            # imm = 0x13C
movl $0x124, %ecx            # imm = 0x124
cmovnel %eax, %ecx
movl (%rcx,%r12), %edi
callq 0x4144d
movss 0x984fa(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movl %ebp, %edi
movl %r15d, %esi
movl %eax, %edx
callq 0x7ee9
movl $0x3, %edi
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0xa726
movaps %xmm0, 0x10(%rsp)
movaps %xmm1, (%rsp)
cmpb $0x1, 0x992e0(%rip)     # 0xa4255
jne 0xaf90
movl 0x9946b(%rip), %ebp     # 0xa43e8
testb %bl, %bl
movl $0x8, %eax
movl $0x2, %r15d
cmovnel %eax, %r15d
jmp 0xafba
callq 0x6a3c
movl 0x9944d(%rip), %ebp     # 0xa43e8
testb %bl, %bl
movl $0x8, %eax
movl $0x2, %r15d
cmovnel %eax, %r15d
cmpb $0x0, 0x992a2(%rip)     # 0xa4255
jne 0xafba
callq 0x6a3c
movl %r15d, %eax
movl 0x120(%r12,%rax,4), %edi
jmp 0xae5f