#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*/ g3dDrawRectangle(double, double, double, double, float *,
                                    float *);
void scnDrawBG(void) {
  float color1[4] = {0.3, 0.3, 0.4, 1.0};
  float color2[4] = {0.0, 0.0, 0.0, 1.0};
  g3dDrawRectangle(0.0, 0.0, 1.0, 0.5, color1, color2);
  g3dDrawRectangle(0.0, 0.5, 1.0, 1.0, color2, color2);
}


x86 assembly (clang, -O0):
<scnDrawBG>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0xef1(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xeee(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    0xeeb(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xee8(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    -0x10(%rbp),%rdi
lea    -0x20(%rbp),%rsi
xorps  %xmm1,%xmm1
movsd  0xeb1(%rip),%xmm2
movsd  0xea1(%rip),%xmm3
movaps %xmm1,%xmm0
call   1030 <g3dDrawRectangle@plt>
lea    -0x20(%rbp),%rdi
lea    -0x20(%rbp),%rsi
xorps  %xmm0,%xmm0
movsd  0xe86(%rip),%xmm1
movsd  0xe86(%rip),%xmm3
movaps %xmm3,%xmm2
call   1030 <g3dDrawRectangle@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<scnDrawBG>:
push   %rbx
sub    $0x20,%rsp
movaps 0xef4(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xef8(%rip),%xmm0
movaps %xmm0,(%rsp)
movsd  0xecc(%rip),%xmm2
movsd  0xecc(%rip),%xmm3
lea    0x10(%rsp),%rdi
mov    %rsp,%rbx
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    %rbx,%rsi
call   1030 <g3dDrawRectangle@plt>
xorps  %xmm0,%xmm0
movsd  0xeab(%rip),%xmm1
movsd  0xe9b(%rip),%xmm2
movaps %xmm2,%xmm3
mov    %rbx,%rdi
mov    %rbx,%rsi
call   1030 <g3dDrawRectangle@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.scnDrawBG.color1 = [4 x float] [float 0x3FD3333340000000, float 0x3FD3333340000000, float 0x3FD99999A0000000, float 1.000000e+00]
@__const.scnDrawBG.color2 = [4 x float] [float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00]
define void @scnDrawBG() {
%1 = alloca [4 x float]
%2 = alloca [4 x float]
%3 = bitcast [4 x float]* %1 to i8*
%4 = bitcast [4 x float]* %2 to i8*
%5 = getelementptr inbounds [4 x float], [4 x float]* %1, i64 0, i64 0
%6 = getelementptr inbounds [4 x float], [4 x float]* %2, i64 0, i64 0
%7 = call i32 @g3dDrawRectangle(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00, double 5.000000e-01, float* %5, float* %6)
%8 = getelementptr inbounds [4 x float], [4 x float]* %2, i64 0, i64 0
%9 = getelementptr inbounds [4 x float], [4 x float]* %2, i64 0, i64 0
%10 = call i32 @g3dDrawRectangle(double 0.000000e+00, double 5.000000e-01, double 1.000000e+00, double 1.000000e+00, float* %8, float* %9)
ret void
}

LLVM IR (-O2):
@__const.scnDrawBG.color1 = [4 x float] [float 0x3FD3333340000000, float 0x3FD3333340000000, float 0x3FD99999A0000000, float 1.000000e+00]
@__const.scnDrawBG.color2 = [4 x float] [float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00]
define void @scnDrawBG() {
%1 = alloca [4 x float]
%2 = alloca [4 x float]
%3 = bitcast [4 x float]* %1 to i8*
%4 = bitcast [4 x float]* %2 to i8*
%5 = getelementptr inbounds [4 x float], [4 x float]* %1, i64 0, i64 0
%6 = getelementptr inbounds [4 x float], [4 x float]* %2, i64 0, i64 0
%7 = call i32 @g3dDrawRectangle(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00, double 5.000000e-01, float* %5, float* %6)
%8 = call i32 @g3dDrawRectangle(double 0.000000e+00, double 5.000000e-01, double 1.000000e+00, double 1.000000e+00, float* %6, float* %6)
ret void
}