#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 */
typedef double GLfloat;
typedef int /*<<< orphan*/ GLUquadricObj;

/* Variables and functions */
int /*<<< orphan*/ GLU_FILL;
int /*<<< orphan*/ GLU_SMOOTH;
int /*<<< orphan*/ GL_BLEND;
int /*<<< orphan*/ GL_DIFFUSE;
int /*<<< orphan*/ GL_FRONT;
int /*<<< orphan*/ GL_ONE;
int /*<<< orphan*/ GL_SHININESS;
int /*<<< orphan*/ GL_SPECULAR;
int /*<<< orphan*/ GL_SRC_ALPHA;
int /*<<< orphan*/ glBlendFunc(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ glDisable(int /*<<< orphan*/);
int /*<<< orphan*/ glEnable(int /*<<< orphan*/);
int /*<<< orphan*/ glMaterialf(int /*<<< orphan*/, int /*<<< orphan*/, int);
int /*<<< orphan*/ glMaterialfv(int /*<<< orphan*/, int /*<<< orphan*/,
                                double *);
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glRotatef(int, int /*<<< orphan*/, int, int /*<<< orphan*/);
int /*<<< orphan*/ glScaled(int, int, int);
int /*<<< orphan*/ *gluNewQuadric();
int /*<<< orphan*/ gluQuadricDrawStyle(int /*<<< orphan*/ *,
                                       int /*<<< orphan*/);
int /*<<< orphan*/ gluQuadricNormals(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ glutSolidCube(int);
void myDrawGoal(void) {
  GLUquadricObj *qobj;
  GLfloat diffSofa[] = {0.83, 0.44, 0.03, 1.0};
  GLfloat spec[] = {0.0, 0.0, 0.0, 1.0};
  qobj = gluNewQuadric();
  gluQuadricDrawStyle(qobj, GLU_FILL);
  gluQuadricNormals(qobj, GLU_SMOOTH);
  glMaterialfv(GL_FRONT, GL_DIFFUSE, diffSofa);
  glMaterialfv(GL_FRONT, GL_SPECULAR, spec);
  glMaterialf(GL_FRONT, GL_SHININESS, 10);
  glEnable(GL_BLEND);
  glBlendFunc(GL_SRC_ALPHA, GL_ONE);
  glPushMatrix();
  glRotatef(90, 0, 1, 0);
  glScaled(14, 10, 11);
  glutSolidCube(1);
  glPopMatrix();
  glDisable(GL_BLEND);
}


x86 assembly (clang, -O0):
<myDrawGoal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0xe21(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe1e(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xe1b(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe18(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xe15(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xe12(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xe0f(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe0c(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   1050 <gluNewQuadric@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2d62(%rip),%rax
mov    (%rax),%esi
call   10a0 <gluQuadricDrawStyle@plt>
mov    -0x8(%rbp),%rdi
mov    0x2d70(%rip),%rax
mov    (%rax),%esi
call   10c0 <gluQuadricNormals@plt>
mov    0x2d72(%rip),%rax
mov    (%rax),%edi
mov    0x2d31(%rip),%rax
mov    (%rax),%esi
lea    -0x30(%rbp),%rdx
call   10e0 <glMaterialfv@plt>
mov    0x2d57(%rip),%rax
mov    (%rax),%edi
mov    0x2d5e(%rip),%rax
mov    (%rax),%esi
lea    -0x50(%rbp),%rdx
call   10e0 <glMaterialfv@plt>
mov    0x2d3c(%rip),%rax
mov    (%rax),%edi
mov    0x2d4b(%rip),%rax
mov    (%rax),%esi
mov    $0xa,%edx
call   1040 <glMaterialf@plt>
mov    0x2d18(%rip),%rax
mov    (%rax),%edi
call   1060 <glEnable@plt>
mov    0x2cea(%rip),%rax
mov    (%rax),%edi
mov    0x2ce9(%rip),%rax
mov    (%rax),%esi
call   1030 <glBlendFunc@plt>
mov    $0x0,%al
call   10b0 <glPushMatrix@plt>
mov    $0x5a,%edi
xor    %ecx,%ecx
mov    $0x1,%edx
mov    %ecx,%esi
call   10f0 <glRotatef@plt>
mov    $0xe,%edi
mov    $0xa,%esi
mov    $0xb,%edx
call   1090 <glScaled@plt>
mov    $0x1,%edi
call   1070 <glutSolidCube@plt>
mov    $0x0,%al
call   1080 <glPopMatrix@plt>
mov    0x2cb4(%rip),%rax
mov    (%rax),%edi
call   10d0 <glDisable@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<myDrawGoal>:
push   %rbx
sub    $0x40,%rsp
movaps 0xe34(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe18(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe3c(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe20(%rip),%xmm0
movaps %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <gluNewQuadric@plt>
mov    %rax,%rbx
mov    0x2d93(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   10a0 <gluQuadricDrawStyle@plt>
mov    0x2da2(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   10c0 <gluQuadricNormals@plt>
mov    0x2da1(%rip),%rbx
mov    (%rbx),%edi
mov    0x2d60(%rip),%rax
mov    (%rax),%esi
lea    0x20(%rsp),%rdx
call   10e0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x2d93(%rip),%rax
mov    (%rax),%esi
mov    %rsp,%rdx
call   10e0 <glMaterialfv@plt>
mov    (%rbx),%edi
mov    0x2d88(%rip),%rax
mov    (%rax),%esi
mov    $0xa,%edx
call   1040 <glMaterialf@plt>
mov    0x2d55(%rip),%rbx
mov    (%rbx),%edi
call   1060 <glEnable@plt>
mov    0x2d27(%rip),%rax
mov    (%rax),%edi
mov    0x2d26(%rip),%rax
mov    (%rax),%esi
call   1030 <glBlendFunc@plt>
xor    %eax,%eax
call   10b0 <glPushMatrix@plt>
mov    $0x5a,%edi
xor    %esi,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
call   10f0 <glRotatef@plt>
mov    $0xe,%edi
mov    $0xa,%esi
mov    $0xb,%edx
call   1090 <glScaled@plt>
mov    $0x1,%edi
call   1070 <glutSolidCube@plt>
xor    %eax,%eax
call   1080 <glPopMatrix@plt>
mov    (%rbx),%edi
call   10d0 <glDisable@plt>
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.myDrawGoal.diffSofa = [4 x double] [double 8.300000e-01, double 4.400000e-01, double 3.000000e-02, double 1.000000e+00]
@__const.myDrawGoal.spec = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@GLU_FILL = global i32 0
@GLU_SMOOTH = global i32 0
@GL_FRONT = global i32 0
@GL_DIFFUSE = global i32 0
@GL_SPECULAR = global i32 0
@GL_SHININESS = global i32 0
@GL_BLEND = global i32 0
@GL_SRC_ALPHA = global i32 0
@GL_ONE = global i32 0
define void @myDrawGoal() {
%1 = alloca i32*
%2 = alloca [4 x double]
%3 = alloca [4 x double]
%4 = bitcast [4 x double]* %2 to i8*
%5 = bitcast [4 x double]* %3 to i8*
%6 = call i32* (...) @gluNewQuadric()
store i32* %6, i32** %1
%7 = load i32*, i32** %1
%8 = load i32, i32* @GLU_FILL
%9 = call i32 @gluQuadricDrawStyle(i32* %7, i32 %8)
%10 = load i32*, i32** %1
%11 = load i32, i32* @GLU_SMOOTH
%12 = call i32 @gluQuadricNormals(i32* %10, i32 %11)
%13 = load i32, i32* @GL_FRONT
%14 = load i32, i32* @GL_DIFFUSE
%15 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%16 = call i32 @glMaterialfv(i32 %13, i32 %14, double* %15)
%17 = load i32, i32* @GL_FRONT
%18 = load i32, i32* @GL_SPECULAR
%19 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 0
%20 = call i32 @glMaterialfv(i32 %17, i32 %18, double* %19)
%21 = load i32, i32* @GL_FRONT
%22 = load i32, i32* @GL_SHININESS
%23 = call i32 @glMaterialf(i32 %21, i32 %22, i32 10)
%24 = load i32, i32* @GL_BLEND
%25 = call i32 @glEnable(i32 %24)
%26 = load i32, i32* @GL_SRC_ALPHA
%27 = load i32, i32* @GL_ONE
%28 = call i32 @glBlendFunc(i32 %26, i32 %27)
%29 = call i32 (...) @glPushMatrix()
%30 = call i32 @glRotatef(i32 90, i32 0, i32 1, i32 0)
%31 = call i32 @glScaled(i32 14, i32 10, i32 11)
%32 = call i32 @glutSolidCube(i32 1)
%33 = call i32 (...) @glPopMatrix()
%34 = load i32, i32* @GL_BLEND
%35 = call i32 @glDisable(i32 %34)
ret void
}

LLVM IR (-O2):
@__const.myDrawGoal.diffSofa = [4 x double] [double 8.300000e-01, double 4.400000e-01, double 3.000000e-02, double 1.000000e+00]
@__const.myDrawGoal.spec = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00]
@GLU_FILL = global i32 0
@GLU_SMOOTH = global i32 0
@GL_FRONT = global i32 0
@GL_DIFFUSE = global i32 0
@GL_SPECULAR = global i32 0
@GL_SHININESS = global i32 0
@GL_BLEND = global i32 0
@GL_SRC_ALPHA = global i32 0
@GL_ONE = global i32 0
define void @myDrawGoal() {
%1 = alloca [4 x double]
%2 = alloca [4 x double]
%3 = bitcast [4 x double]* %1 to i8*
%4 = bitcast [4 x double]* %2 to i8*
%5 = tail call i32* (...) @gluNewQuadric()
%6 = load i32, i32* @GLU_FILL
%7 = tail call i32 @gluQuadricDrawStyle(i32* %5, i32 %6)
%8 = load i32, i32* @GLU_SMOOTH
%9 = tail call i32 @gluQuadricNormals(i32* %5, i32 %8)
%10 = load i32, i32* @GL_FRONT
%11 = load i32, i32* @GL_DIFFUSE
%12 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%13 = call i32 @glMaterialfv(i32 %10, i32 %11, double* %12)
%14 = load i32, i32* @GL_FRONT
%15 = load i32, i32* @GL_SPECULAR
%16 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%17 = call i32 @glMaterialfv(i32 %14, i32 %15, double* %16)
%18 = load i32, i32* @GL_FRONT
%19 = load i32, i32* @GL_SHININESS
%20 = call i32 @glMaterialf(i32 %18, i32 %19, i32 10)
%21 = load i32, i32* @GL_BLEND
%22 = call i32 @glEnable(i32 %21)
%23 = load i32, i32* @GL_SRC_ALPHA
%24 = load i32, i32* @GL_ONE
%25 = call i32 @glBlendFunc(i32 %23, i32 %24)
%26 = call i32 (...) @glPushMatrix()
%27 = call i32 @glRotatef(i32 90, i32 0, i32 1, i32 0)
%28 = call i32 @glScaled(i32 14, i32 10, i32 11)
%29 = call i32 @glutSolidCube(i32 1)
%30 = call i32 (...) @glPopMatrix()
%31 = load i32, i32* @GL_BLEND
%32 = call i32 @glDisable(i32 %31)
ret void
}