// File: /workspace/github_c_makefile_star2_O1/arkanis[P]process-map/./deps/raygui.h
// Function: GuiImageButtonEx
bool GuiImageButtonEx(Rectangle bounds, const char *text, Texture2D texture, Rectangle texSource)
{
    GuiControlState state = guiState;
    bool clicked = 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 if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON)) clicked = true;
            else state = GUI_STATE_FOCUSED;
        }
    }
    //--------------------------------------------------------------------

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

    if (text != NULL) GuiDrawText(text, GetTextBounds(BUTTON, bounds), GuiGetStyle(BUTTON, TEXT_ALIGNMENT), Fade(GetColor(GuiGetStyle(BUTTON, TEXT + (state*3))), guiAlpha));
    if (texture.id > 0) DrawTextureRec(texture, texSource, RAYGUI_CLITERAL(Vector2){ bounds.x + bounds.width/2 - texSource.width/2, bounds.y + bounds.height/2 - texSource.height/2 }, Fade(GetColor(GuiGetStyle(BUTTON, TEXT + (state*3))), guiAlpha));
    //------------------------------------------------------------------

    return clicked;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movaps %xmm3, 0x40(%rsp)
movaps %xmm2, 0x70(%rsp)
movq %rdi, %r13
movaps %xmm1, 0x20(%rsp)
movaps %xmm0, 0x30(%rsp)
movl 0x9d6d2(%rip), %ebx     # 0xa7250
cmpl $0x3, %ebx
jne 0x9b8a
movl $0x3, %ebx
jmp 0x9bc4
cmpb $0x0, 0x9d6c3(%rip)     # 0xa7254
jne 0x9bc4
callq 0x2867d
movaps 0x30(%rsp), %xmm1
movaps 0x20(%rsp), %xmm2
callq 0x34d6b
testb %al, %al
je 0x9bc4
xorl %r14d, %r14d
xorl %edi, %edi
callq 0x286ba
testb %al, %al
je 0x9d9d
movl $0x2, %ebx
jmp 0x9bc7
xorl %r14d, %r14d
cmpb $0x0, 0x9d687(%rip)     # 0xa7255
jne 0x9bd5
callq 0x6a18
movl 0x9d7a5(%rip), %ebp     # 0xa7380
leal (%rbx,%rbx,2), %r12d
cmpb $0x0, 0x9d66f(%rip)     # 0xa7255
jne 0x9bed
callq 0x6a18
movslq %r12d, %rax
leaq 0x9d699(%rip), %rbx     # 0xa7290
movl 0xc0(%rbx,%rax,4), %edi
callq 0x44152
movss 0x9c825(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movl %eax, %r15d
cmpb $0x0, 0x9d639(%rip)     # 0xa7255
jne 0x9c23
callq 0x6a18
leal 0x31(%r12), %eax
cltq
movl (%rbx,%rax,4), %edi
callq 0x44152
movss 0x9c7f6(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movaps 0x30(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movl %ebp, %edi
movl %r15d, %esi
movl %eax, %edx
callq 0x7546
testq %r13, %r13
je 0x9cd0
movl $0x2, %edi
movaps 0x30(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
callq 0x982d
movaps %xmm0, 0x60(%rsp)
movaps %xmm1, 0x50(%rsp)
cmpb $0x0, 0x9d5d4(%rip)     # 0xa7255
jne 0x9c88
callq 0x6a18
movl 0x9d6fa(%rip), %ebp     # 0xa7388
cmpb $0x0, 0x9d5c0(%rip)     # 0xa7255
jne 0x9c9c
callq 0x6a18
leal 0x32(%r12), %eax
cltq
movl (%rbx,%rax,4), %edi
callq 0x44152
movss 0x9c77d(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movq %r13, %rdi
movaps 0x60(%rsp), %xmm0
movaps 0x50(%rsp), %xmm1
movl %ebp, %esi
movl %eax, %edx
callq 0x95ee
leaq 0xc0(%rsp), %r15
cmpl $0x0, (%r15)
je 0x9d88
movss 0x5e326(%rip), %xmm0    # 0x68010
movaps 0x20(%rsp), %xmm3
movaps %xmm3, %xmm5
mulss %xmm0, %xmm5
movaps 0x30(%rsp), %xmm4
addss %xmm4, %xmm5
movaps 0x40(%rsp), %xmm2
movaps %xmm2, %xmm1
mulss %xmm0, %xmm1
subss %xmm1, %xmm5
shufps $0x55, %xmm4, %xmm4     # xmm4 = xmm4[1,1,1,1]
shufps $0x55, %xmm3, %xmm3     # xmm3 = xmm3[1,1,1,1]
mulss %xmm0, %xmm3
addss %xmm4, %xmm3
movaps %xmm2, %xmm1
shufps $0x55, %xmm2, %xmm1     # xmm1 = xmm1[1,1],xmm2[1,1]
mulss %xmm0, %xmm1
subss %xmm1, %xmm3
unpcklps %xmm3, %xmm5            # xmm5 = xmm5[0],xmm3[0],xmm5[1],xmm3[1]
movaps %xmm5, 0x20(%rsp)
cmpb $0x0, 0x9d518(%rip)     # 0xa7255
jne 0x9d44
callq 0x6a18
addl $0x32, %r12d
movslq %r12d, %rax
movl (%rbx,%rax,4), %edi
callq 0x44152
movss 0x9c6d5(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movl 0x10(%r15), %ecx
movl %ecx, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
movaps 0x70(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movaps 0x20(%rsp), %xmm2
movl %eax, %edi
callq 0x42bb5
movl %r14d, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %edi, %edi
callq 0x2e875
movl %eax, %r14d
testb %al, %al
movl $0x1, %eax
cmovnel %ebx, %eax
movl %eax, %ebx
jmp 0x9bc7