#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*/ GL_LIGHTING;
int /*<<< orphan*/ GL_QUADS;
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glDisable(int /*<<< orphan*/);
int /*<<< orphan*/ glEnable(int /*<<< orphan*/);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glVertex3f(double, double, double);
void drawFloor(void) {
  glDisable(GL_LIGHTING);
  glBegin(GL_QUADS);
  glVertex3f(-18.0, 0.0, 27.0);
  glVertex3f(27.0, 0.0, 27.0);
  glVertex3f(27.0, 0.0, -18.0);
  glVertex3f(-18.0, 0.0, -18.0);
  glEnd();
  glEnable(GL_LIGHTING);
}


x86 assembly (clang, -O0):
<drawFloor>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e7d(%rip),%rax
mov    (%rax),%edi
call   1060 <glDisable@plt>
mov    0x2e7f(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
movsd  0xe88(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  0xe85(%rip),%xmm2
call   1030 <glVertex3f@plt>
movsd  0xe78(%rip),%xmm2
xorps  %xmm1,%xmm1
movaps %xmm2,%xmm0
call   1030 <glVertex3f@plt>
movsd  0xe65(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  0xe52(%rip),%xmm2
call   1030 <glVertex3f@plt>
movsd  0xe45(%rip),%xmm2
xorps  %xmm1,%xmm1
movaps %xmm2,%xmm0
call   1030 <glVertex3f@plt>
mov    $0x0,%al
call   1050 <glEnd@plt>
mov    0x2e04(%rip),%rax
mov    (%rax),%edi
call   1040 <glEnable@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawFloor>:
push   %rbx
mov    0x2e80(%rip),%rbx
mov    (%rbx),%edi
call   1060 <glDisable@plt>
mov    0x2e82(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
movsd  0xe8b(%rip),%xmm0
movsd  0xe8b(%rip),%xmm2
xorps  %xmm1,%xmm1
call   1030 <glVertex3f@plt>
xorps  %xmm1,%xmm1
movsd  0xe78(%rip),%xmm0
movaps %xmm0,%xmm2
call   1030 <glVertex3f@plt>
xorps  %xmm1,%xmm1
movsd  0xe65(%rip),%xmm0
movsd  0xe55(%rip),%xmm2
call   1030 <glVertex3f@plt>
xorps  %xmm1,%xmm1
movsd  0xe45(%rip),%xmm0
movaps %xmm0,%xmm2
call   1030 <glVertex3f@plt>
xor    %eax,%eax
call   1050 <glEnd@plt>
mov    (%rbx),%edi
pop    %rbx
jmp    1040 <glEnable@plt>

LLVM IR (-O0):
@GL_LIGHTING = global i32 0
@GL_QUADS = global i32 0
define void @drawFloor() {
%1 = load i32, i32* @GL_LIGHTING
%2 = call i32 @glDisable(i32 %1)
%3 = load i32, i32* @GL_QUADS
%4 = call i32 @glBegin(i32 %3)
%5 = call i32 @glVertex3f(double -1.800000e+01, double 0.000000e+00, double 2.700000e+01)
%6 = call i32 @glVertex3f(double 2.700000e+01, double 0.000000e+00, double 2.700000e+01)
%7 = call i32 @glVertex3f(double 2.700000e+01, double 0.000000e+00, double -1.800000e+01)
%8 = call i32 @glVertex3f(double -1.800000e+01, double 0.000000e+00, double -1.800000e+01)
%9 = call i32 (...) @glEnd()
%10 = load i32, i32* @GL_LIGHTING
%11 = call i32 @glEnable(i32 %10)
ret void
}

LLVM IR (-O2):
@GL_LIGHTING = global i32 0
@GL_QUADS = global i32 0
define void @drawFloor() {
%1 = load i32, i32* @GL_LIGHTING
%2 = tail call i32 @glDisable(i32 %1)
%3 = load i32, i32* @GL_QUADS
%4 = tail call i32 @glBegin(i32 %3)
%5 = tail call i32 @glVertex3f(double -1.800000e+01, double 0.000000e+00, double 2.700000e+01)
%6 = tail call i32 @glVertex3f(double 2.700000e+01, double 0.000000e+00, double 2.700000e+01)
%7 = tail call i32 @glVertex3f(double 2.700000e+01, double 0.000000e+00, double -1.800000e+01)
%8 = tail call i32 @glVertex3f(double -1.800000e+01, double 0.000000e+00, double -1.800000e+01)
%9 = tail call i32 (...) @glEnd()
%10 = load i32, i32* @GL_LIGHTING
%11 = tail call i32 @glEnable(i32 %10)
ret void
}