#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_PROJECTION;
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ glMatrixMode(int /*<<< orphan*/);
int /*<<< orphan*/ glOrtho(float, float, float, float, float, float);
int /*<<< orphan*/ glPushMatrix();
void pushOrthoView(float left, float right, float bottom, float top,
                   float znear, float zfar) {
  glPushMatrix();
  glLoadIdentity();
  glMatrixMode(GL_PROJECTION);
  glPushMatrix();
  glLoadIdentity();
  glOrtho(left, right, bottom, top, znear, zfar);
}


x86 assembly (clang, -O0):
<pushOrthoView>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  %xmm4,-0x14(%rbp)
movss  %xmm5,-0x18(%rbp)
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
mov    $0x0,%al
call   1050 <glLoadIdentity@plt>
mov    0x2e65(%rip),%rax
mov    (%rax),%edi
call   1030 <glMatrixMode@plt>
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
mov    $0x0,%al
call   1050 <glLoadIdentity@plt>
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x10(%rbp),%xmm3
movss  -0x14(%rbp),%xmm4
movss  -0x18(%rbp),%xmm5
call   1040 <glOrtho@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pushOrthoView>:
sub    $0x18,%rsp
movss  %xmm5,0x14(%rsp)
movss  %xmm4,0x10(%rsp)
movss  %xmm3,0xc(%rsp)
movss  %xmm2,0x8(%rsp)
movss  %xmm1,0x4(%rsp)
movss  %xmm0,(%rsp)
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
xor    %eax,%eax
call   1050 <glLoadIdentity@plt>
mov    0x2e64(%rip),%rax
mov    (%rax),%edi
call   1030 <glMatrixMode@plt>
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
xor    %eax,%eax
call   1050 <glLoadIdentity@plt>
movss  (%rsp),%xmm0
movss  0x4(%rsp),%xmm1
movss  0x8(%rsp),%xmm2
movss  0xc(%rsp),%xmm3
movss  0x10(%rsp),%xmm4
movss  0x14(%rsp),%xmm5
add    $0x18,%rsp
jmp    1040 <glOrtho@plt>

LLVM IR (-O0):
@GL_PROJECTION = global i32 0
define void @pushOrthoView(float %0, float %1, float %2, float %3, float %4, float %5) {
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
store float %0, float* %7
store float %1, float* %8
store float %2, float* %9
store float %3, float* %10
store float %4, float* %11
store float %5, float* %12
%13 = call i32 (...) @glPushMatrix()
%14 = call i32 (...) @glLoadIdentity()
%15 = load i32, i32* @GL_PROJECTION
%16 = call i32 @glMatrixMode(i32 %15)
%17 = call i32 (...) @glPushMatrix()
%18 = call i32 (...) @glLoadIdentity()
%19 = load float, float* %7
%20 = load float, float* %8
%21 = load float, float* %9
%22 = load float, float* %10
%23 = load float, float* %11
%24 = load float, float* %12
%25 = call i32 @glOrtho(float %19, float %20, float %21, float %22, float %23, float %24)
ret void
}

LLVM IR (-O2):
@GL_PROJECTION = global i32 0
define void @pushOrthoView(float %0, float %1, float %2, float %3, float %4, float %5) {
%7 = tail call i32 (...) @glPushMatrix()
%8 = tail call i32 (...) @glLoadIdentity()
%9 = load i32, i32* @GL_PROJECTION
%10 = tail call i32 @glMatrixMode(i32 %9)
%11 = tail call i32 (...) @glPushMatrix()
%12 = tail call i32 (...) @glLoadIdentity()
%13 = tail call i32 @glOrtho(float %0, float %1, float %2, float %3, float %4, float %5)
ret void
}