#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_QUADS;
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glVertex3f(int, int, int);
int /*<<< orphan*/ popView();
int /*<<< orphan*/ pushOrthoView(int /*<<< orphan*/, int, int /*<<< orphan*/,
                                 int, int /*<<< orphan*/, int);
void drawFarRect(void) {
  pushOrthoView(0, 1, 0, 1, 0, 1);
  glBegin(GL_QUADS);
  glVertex3f(0, 0, -1);
  glVertex3f(1, 0, -1);
  glVertex3f(1, 1, -1);
  glVertex3f(0, 1, -1);
  glEnd();
  popView();
}


x86 assembly (clang, -O0):
<drawFarRect>:
push   %rbp
mov    %rsp,%rbp
xor    %r8d,%r8d
mov    $0x1,%r9d
mov    %r8d,%edi
mov    %r9d,%esi
mov    %r8d,%edx
mov    %r9d,%ecx
call   1030 <pushOrthoView@plt>
mov    0x2e73(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
xor    %esi,%esi
mov    $0xffffffff,%edx
mov    %esi,%edi
call   1040 <glVertex3f@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    $0xffffffff,%edx
call   1040 <glVertex3f@plt>
mov    $0x1,%esi
mov    $0xffffffff,%edx
mov    %esi,%edi
call   1040 <glVertex3f@plt>
xor    %edi,%edi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1040 <glVertex3f@plt>
mov    $0x0,%al
call   1050 <glEnd@plt>
mov    $0x0,%al
call   1060 <popView@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawFarRect>:
push   %rax
xor    %edi,%edi
mov    $0x1,%esi
xor    %edx,%edx
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <pushOrthoView@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xffffffff,%edx
call   1040 <glVertex3f@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    $0xffffffff,%edx
call   1040 <glVertex3f@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1040 <glVertex3f@plt>
xor    %edi,%edi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1040 <glVertex3f@plt>
xor    %eax,%eax
call   1050 <glEnd@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <popView@plt>

LLVM IR (-O0):
@GL_QUADS = global i32 0
define void @drawFarRect() {
%1 = call i32 @pushOrthoView(i32 0, i32 1, i32 0, i32 1, i32 0, i32 1)
%2 = load i32, i32* @GL_QUADS
%3 = call i32 @glBegin(i32 %2)
%4 = call i32 @glVertex3f(i32 0, i32 0, i32 -1)
%5 = call i32 @glVertex3f(i32 1, i32 0, i32 -1)
%6 = call i32 @glVertex3f(i32 1, i32 1, i32 -1)
%7 = call i32 @glVertex3f(i32 0, i32 1, i32 -1)
%8 = call i32 (...) @glEnd()
%9 = call i32 (...) @popView()
ret void
}

LLVM IR (-O2):
@GL_QUADS = global i32 0
define void @drawFarRect() {
%1 = tail call i32 @pushOrthoView(i32 0, i32 1, i32 0, i32 1, i32 0, i32 1)
%2 = load i32, i32* @GL_QUADS
%3 = tail call i32 @glBegin(i32 %2)
%4 = tail call i32 @glVertex3f(i32 0, i32 0, i32 -1)
%5 = tail call i32 @glVertex3f(i32 1, i32 0, i32 -1)
%6 = tail call i32 @glVertex3f(i32 1, i32 1, i32 -1)
%7 = tail call i32 @glVertex3f(i32 0, i32 1, i32 -1)
%8 = tail call i32 (...) @glEnd()
%9 = tail call i32 (...) @popView()
ret void
}