// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0xb0, %rsp
leaq 0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
movlpd %xmm0, -0x10(%rbp)
movlpd %xmm1, -0x8(%rbp)
movlpd %xmm2, -0x20(%rbp)
movlpd %xmm3, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movl 0xbfd9f(%rip), %eax     # 0xca0e0
movl %eax, -0x2c(%rbp)
movb $0x0, -0x2d(%rbp)
cmpl $0x3, -0x2c(%rbp)
je 0xa3b1
testb $0x1, 0xbfd8f(%rip)     # 0xca0e4
jne 0xa3b1
callq 0x2dd60
movlpd %xmm0, -0x38(%rbp)
movsd -0x38(%rbp), %xmm0
movsd -0x10(%rbp), %xmm1
movsd -0x8(%rbp), %xmm2
callq 0x3e640
testb $0x1, %al
jne 0xa37b
jmp 0xa3af
xorl %edi, %edi
callq 0x2ddd0
testb $0x1, %al
jne 0xa388
jmp 0xa391
movl $0x2, -0x2c(%rbp)
jmp 0xa3ad
xorl %edi, %edi
callq 0x34c30
testb $0x1, %al
jne 0xa39e
jmp 0xa3a4
movb $0x1, -0x2d(%rbp)
jmp 0xa3ab
movl $0x1, -0x2c(%rbp)
jmp 0xa3ad
jmp 0xa3af
jmp 0xa3b1
movl $0x2, %edi
movl %edi, -0x80(%rbp)
movl $0xc, %esi
callq 0x6f90
movl -0x80(%rbp), %edi
movl %eax, -0x7c(%rbp)
movl -0x2c(%rbp), %ecx
movl %ecx, %eax
leal (%rax,%rax,2), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x40(%rbp)
movss 0xbe028(%rip), %xmm0    # 0xc8410
movl -0x40(%rbp), %edi
callq 0x51fa0
movl -0x80(%rbp), %edi
movl %eax, -0x3c(%rbp)
movl -0x2c(%rbp), %ecx
movl %ecx, %eax
leal 0x1(%rax,%rax,2), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x48(%rbp)
movss 0xbdffa(%rip), %xmm0    # 0xc8410
movl -0x48(%rbp), %edi
callq 0x51fa0
movl -0x7c(%rbp), %edi
movl %eax, -0x44(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x8(%rbp), %xmm1
movl -0x3c(%rbp), %esi
movl -0x44(%rbp), %edx
callq 0x77c0
cmpq $0x0, -0x28(%rbp)
je 0xa4d9
movq -0x28(%rbp), %rax
movq %rax, -0x90(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x8(%rbp), %xmm1
movl $0x2, %edi
movl %edi, -0x94(%rbp)
callq 0x9f70
movl -0x94(%rbp), %edi
movlpd %xmm0, -0x58(%rbp)
movlpd %xmm1, -0x50(%rbp)
movl $0xe, %esi
callq 0x6f90
movl -0x94(%rbp), %edi
movl %eax, -0x84(%rbp)
movl -0x2c(%rbp), %ecx
movl %ecx, %eax
leal 0x2(%rax,%rax,2), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x60(%rbp)
movss 0xbdf61(%rip), %xmm0    # 0xc8410
movl -0x60(%rbp), %edi
callq 0x51fa0
movq -0x90(%rbp), %rdi
movl -0x84(%rbp), %esi
movl %eax, -0x5c(%rbp)
movsd -0x58(%rbp), %xmm0
movsd -0x50(%rbp), %xmm1
movl -0x5c(%rbp), %edx
callq 0x9cf0
movq -0x78(%rbp), %rax
cmpl $0x0, (%rax)
jbe 0xa598
movss -0x10(%rbp), %xmm0
movss -0x8(%rbp), %xmm1
movss 0x81b1c(%rip), %xmm3    # 0x8c014
mulss %xmm3, %xmm1
addss %xmm1, %xmm0
movss -0x18(%rbp), %xmm1
movss 0x81b13(%rip), %xmm2    # 0x8c020
mulss %xmm2, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x68(%rbp)
movss -0xc(%rbp), %xmm0
movss -0x4(%rbp), %xmm1
mulss %xmm3, %xmm1
addss %xmm1, %xmm0
movss -0x14(%rbp), %xmm1
mulss %xmm2, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x64(%rbp)
movl -0x2c(%rbp), %ecx
movl %ecx, %eax
leal 0x2(%rax,%rax,2), %esi
movl $0x2, %edi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x70(%rbp)
movss 0xbdead(%rip), %xmm0    # 0xc8410
movl -0x70(%rbp), %edi
callq 0x51fa0
movq -0x78(%rbp), %rcx
movl %eax, -0x6c(%rbp)
movsd -0x20(%rbp), %xmm0
movsd -0x18(%rbp), %xmm1
movsd -0x68(%rbp), %xmm2
movl -0x6c(%rbp), %edi
movl 0x10(%rcx), %edx
movq %rsp, %rax
movl %edx, 0x10(%rax)
movups (%rcx), %xmm3
movups %xmm3, (%rax)
callq 0x508d0
movb -0x2d(%rbp), %al
andb $0x1, %al
addq $0xb0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)