// File: /workspace/github_c_makefile_star2_O0/arkanis[P]process-map/./deps/raygui.h
// Function: GuiDrawText
static void GuiDrawText(const char *text, Rectangle bounds, int alignment, Color tint)
{
    #define TEXT_VALIGN_PIXEL_OFFSET(h)  ((int)h%2)     // Vertical alignment for pixel perfect

    if ((text != NULL) && (text[0] != '\0'))
    {
        int iconId = 0;
        text = GetTextIcon(text, &iconId);  // Check text for icon and move cursor

        // Get text position depending on alignment and iconId
        //---------------------------------------------------------------------------------
        #define ICON_TEXT_PADDING   4

        Vector2 position = { bounds.x, bounds.y };

        // NOTE: We get text size after icon been processed
        int textWidth = GetTextWidth(text);
        int textHeight = GuiGetStyle(DEFAULT, TEXT_SIZE);

#if defined(RAYGUI_SUPPORT_ICONS)
        if (iconId >= 0)
        {
            textWidth += RICON_SIZE;

            // WARNING: If only icon provided, text could be pointing to eof character!
            if ((text != NULL) && (text[0] != '\0')) textWidth += ICON_TEXT_PADDING;
        }
#endif
        // Check guiTextAlign global variables
        switch (alignment)
        {
            case GUI_TEXT_ALIGN_LEFT:
            {
                position.x = bounds.x;
                position.y = bounds.y + bounds.height/2 - textHeight/2 + TEXT_VALIGN_PIXEL_OFFSET(bounds.height);
            } break;
            case GUI_TEXT_ALIGN_CENTER:
            {
                position.x = bounds.x + bounds.width/2 - textWidth/2;
                position.y = bounds.y + bounds.height/2 - textHeight/2 + TEXT_VALIGN_PIXEL_OFFSET(bounds.height);
            } break;
            case GUI_TEXT_ALIGN_RIGHT:
            {
                position.x = bounds.x + bounds.width - textWidth;
                position.y = bounds.y + bounds.height/2 - textHeight/2 + TEXT_VALIGN_PIXEL_OFFSET(bounds.height);
            } break;
            default: break;
        }

        // NOTE: Make sure we get pixel-perfect coordinates,
        // In case of decimals we got weird text positioning
        position.x = (float)((int)position.x);
        position.y = (float)((int)position.y);
        //---------------------------------------------------------------------------------

        // Draw text (with icon if available)
        //---------------------------------------------------------------------------------
#if defined(RAYGUI_SUPPORT_ICONS)
        if (iconId >= 0)
        {
            // NOTE: We consider icon height, probably different than text size
            GuiDrawIcon(iconId, RAYGUI_CLITERAL(Vector2){ position.x, bounds.y + bounds.height/2 - RICON_SIZE/2 + TEXT_VALIGN_PIXEL_OFFSET(bounds.height) }, 1, tint);
            position.x += (RICON_SIZE + ICON_TEXT_PADDING);
        }
#endif
        DrawTextEx(guiFont, text, position, (float)GuiGetStyle(DEFAULT, TEXT_SIZE), (float)GuiGetStyle(DEFAULT, TEXT_SPACING), tint);
        //---------------------------------------------------------------------------------
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movlpd %xmm0, -0x10(%rbp)
movlpd %xmm1, -0x8(%rbp)
movl %edx, -0x14(%rbp)
movq %rdi, -0x20(%rbp)
movl %esi, -0x24(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x9f58
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x9f58
movl $0x0, -0x28(%rbp)
movq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x17310
movq %rax, -0x20(%rbp)
movss -0x10(%rbp), %xmm0
movss %xmm0, -0x30(%rbp)
movss -0xc(%rbp), %xmm0
movss %xmm0, -0x2c(%rbp)
movq -0x20(%rbp), %rdi
callq 0x7af0
movl %eax, -0x34(%rbp)
xorl %edi, %edi
movl $0x10, %esi
callq 0x6f90
movl %eax, -0x38(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x3c(%rbp)
testl %eax, %eax
je 0x9d98
jmp 0x9d7d
movl -0x3c(%rbp), %eax
subl $0x1, %eax
je 0x9dee
jmp 0x9d87
movl -0x3c(%rbp), %eax
subl $0x2, %eax
je 0x9e69
jmp 0x9eca
movss -0x10(%rbp), %xmm0
movss %xmm0, -0x30(%rbp)
movss -0xc(%rbp), %xmm0
movss -0x4(%rbp), %xmm1
movss 0x82254(%rip), %xmm2    # 0x8c008
divss %xmm2, %xmm1
addss %xmm1, %xmm0
movl -0x38(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
cvttss2si -0x4(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cvtsi2ss %edx, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x2c(%rbp)
jmp 0x9ecc
movss -0x10(%rbp), %xmm0
movss -0x8(%rbp), %xmm1
movss 0x82208(%rip), %xmm2    # 0x8c008
divss %xmm2, %xmm1
addss %xmm1, %xmm0
movl -0x34(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x30(%rbp)
movss -0xc(%rbp), %xmm0
movss -0x4(%rbp), %xmm1
movss 0x821d6(%rip), %xmm2    # 0x8c008
divss %xmm2, %xmm1
addss %xmm1, %xmm0
movl -0x38(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
cvttss2si -0x4(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cvtsi2ss %edx, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x2c(%rbp)
jmp 0x9ecc
movss -0x10(%rbp), %xmm0
addss -0x8(%rbp), %xmm0
cvtsi2ssl -0x34(%rbp), %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x30(%rbp)
movss -0xc(%rbp), %xmm0
movss -0x4(%rbp), %xmm1
movss 0x82175(%rip), %xmm2    # 0x8c008
divss %xmm2, %xmm1
addss %xmm1, %xmm0
movl -0x38(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
cvttss2si -0x4(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cvtsi2ss %edx, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x2c(%rbp)
jmp 0x9ecc
jmp 0x9ecc
movss -0x30(%rbp), %xmm0
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
movss %xmm0, -0x30(%rbp)
movss -0x2c(%rbp), %xmm0
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
movss %xmm0, -0x2c(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
xorl %edi, %edi
movl %edi, -0x4c(%rbp)
movl $0x10, %esi
callq 0x6f90
movl -0x4c(%rbp), %edi
cvtsi2ss %eax, %xmm0
movss %xmm0, -0x40(%rbp)
movl $0x11, %esi
callq 0x6f90
movq -0x48(%rbp), %rdi
movss -0x40(%rbp), %xmm1
cvtsi2ss %eax, %xmm2
movsd -0x30(%rbp), %xmm0
movl -0x14(%rbp), %esi
movups 0xc01d1(%rip), %xmm3    # 0xca108
movq %rsp, %rax
movups %xmm3, 0x20(%rax)
movups 0xc01b3(%rip), %xmm3    # 0xca0f8
movups %xmm3, 0x10(%rax)
movups 0xc0198(%rip), %xmm3    # 0xca0e8
movups %xmm3, (%rax)
callq 0x654f0
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)