#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ UI_Text_Paint(int, int, float, float *, char const *,
                                 int /*<<< orphan*/, int /*<<< orphan*/,
                                 int /*<<< orphan*/);
void CG_DrawSmallString(int x, int y, const char *s, float alpha) {
  float color[4];
  color[0] = color[1] = color[2] = 1.0;
  color[3] = alpha;
  UI_Text_Paint(x, y, 0.3f, color, s, 0, 0, 0);
}


x86 assembly (clang, -O0):
<CG_DrawSmallString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
movss  0xed5(%rip),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  0xec8(%rip),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  0xebb(%rip),%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
lea    -0x30(%rbp),%rdx
mov    -0x10(%rbp),%rcx
movss  0xe92(%rip),%xmm0
xor    %r9d,%r9d
mov    %r9d,%r8d
movl   $0x0,(%rsp)
call   1030 <UI_Text_Paint@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CG_DrawSmallString>:
sub    $0x28,%rsp
mov    %rdx,%rcx
movl   $0x3f800000,0x18(%rsp)
3f
movabs $0x3f8000003f800000,%rax
mov    %rax,0x10(%rsp)
movss  %xmm0,0x1c(%rsp)
movl   $0x0,(%rsp)
movss  0xebd(%rip),%xmm0
lea    0x10(%rsp),%rdx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <UI_Text_Paint@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
define void @CG_DrawSmallString(i32 %0, i32 %1, i8* %2, float %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca float
%9 = alloca [4 x float]
store i32 %0, i32* %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store float %3, float* %8
%10 = getelementptr inbounds [4 x float], [4 x float]* %9, i64 0, i64 2
store float 1.000000e+00, float* %10
%11 = getelementptr inbounds [4 x float], [4 x float]* %9, i64 0, i64 1
store float 1.000000e+00, float* %11
%12 = getelementptr inbounds [4 x float], [4 x float]* %9, i64 0, i64 0
store float 1.000000e+00, float* %12
%13 = load float, float* %8
%14 = getelementptr inbounds [4 x float], [4 x float]* %9, i64 0, i64 3
store float %13, float* %14
%15 = load i32, i32* %5
%16 = load i32, i32* %6
%17 = getelementptr inbounds [4 x float], [4 x float]* %9, i64 0, i64 0
%18 = load i8*, i8** %7
%19 = call i32 @UI_Text_Paint(i32 %15, i32 %16, float 0x3FD3333340000000, float* %17, i8* %18, i32 0, i32 0, i32 0)
ret void
}

LLVM IR (-O2):
define void @CG_DrawSmallString(i32 %0, i32 %1, i8* %2, float %3) {
%5 = alloca [4 x float]
%6 = bitcast [4 x float]* %5 to i8*
%7 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 2
store float 1.000000e+00, float* %7
%8 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 1
store float 1.000000e+00, float* %8
%9 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 0
store float 1.000000e+00, float* %9
%10 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 3
store float %3, float* %10
%11 = call i32 @UI_Text_Paint(i32 %0, i32 %1, float 0x3FD3333340000000, float* %9, i8* %2, i32 0, i32 0, i32 0)
ret void
}