#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_CULL_FACE;
int /*<<< orphan*/ draw_part(int);
int /*<<< orphan*/ glEnable(int /*<<< orphan*/);
int /*<<< orphan*/ glTranslatef(double, double, double);
int /*<<< orphan*/ groen_texture();
void draw_logo(void) {
  groen_texture();
  glEnable(GL_CULL_FACE);
  glTranslatef(-2.8, 0.0, 0.0);
  draw_part(0);
  glTranslatef(-12.0, 4.3, 0.0);
  draw_part(1);
  glTranslatef(7.3, 0.0, 0.0);
  draw_part(2);
  glTranslatef(5.4, 0.0, 0.0);
  draw_part(3);
  glTranslatef(5.4, 0.0, 0.0);
  draw_part(4);
  glTranslatef(7.4, 0.0, 0.0);
  draw_part(5);
  glTranslatef(6.8, 0.0, 0.0);
  draw_part(6);
}


x86 assembly (clang, -O0):
<draw_logo>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <groen_texture@plt>
mov    0x2e8e(%rip),%rax
mov    (%rax),%edi
call   1040 <glEnable@plt>
movsd  0xecf(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1060 <glTranslatef@plt>
xor    %edi,%edi
call   1030 <draw_part@plt>
movsd  0xea5(%rip),%xmm0
movsd  0xea5(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1060 <glTranslatef@plt>
mov    $0x1,%edi
call   1030 <draw_part@plt>
movsd  0xe7b(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1060 <glTranslatef@plt>
mov    $0x2,%edi
call   1030 <draw_part@plt>
movsd  0xe56(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1060 <glTranslatef@plt>
mov    $0x3,%edi
call   1030 <draw_part@plt>
movsd  0xe39(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1060 <glTranslatef@plt>
mov    $0x4,%edi
call   1030 <draw_part@plt>
movsd  0xe14(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1060 <glTranslatef@plt>
mov    $0x5,%edi
call   1030 <draw_part@plt>
movsd  0xdef(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1060 <glTranslatef@plt>
mov    $0x6,%edi
call   1030 <draw_part@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_logo>:
push   %rax
xor    %eax,%eax
call   1050 <groen_texture@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%edi
call   1040 <glEnable@plt>
movsd  0xea2(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1060 <glTranslatef@plt>
xor    %edi,%edi
call   1030 <draw_part@plt>
movsd  0xe90(%rip),%xmm0
movsd  0xe90(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1060 <glTranslatef@plt>
mov    $0x1,%edi
call   1030 <draw_part@plt>
movsd  0xe7e(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1060 <glTranslatef@plt>
mov    $0x2,%edi
call   1030 <draw_part@plt>
movsd  0xe69(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1060 <glTranslatef@plt>
mov    $0x3,%edi
call   1030 <draw_part@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
movsd  0xe46(%rip),%xmm0
call   1060 <glTranslatef@plt>
mov    $0x4,%edi
call   1030 <draw_part@plt>
movsd  0xe37(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1060 <glTranslatef@plt>
mov    $0x5,%edi
call   1030 <draw_part@plt>
movsd  0xe22(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1060 <glTranslatef@plt>
mov    $0x6,%edi
pop    %rax
jmp    1030 <draw_part@plt>

LLVM IR (-O0):
@GL_CULL_FACE = global i32 0
define void @draw_logo() {
%1 = call i32 (...) @groen_texture()
%2 = load i32, i32* @GL_CULL_FACE
%3 = call i32 @glEnable(i32 %2)
%4 = call i32 @glTranslatef(double -2.800000e+00, double 0.000000e+00, double 0.000000e+00)
%5 = call i32 @draw_part(i32 0)
%6 = call i32 @glTranslatef(double -1.200000e+01, double 4.300000e+00, double 0.000000e+00)
%7 = call i32 @draw_part(i32 1)
%8 = call i32 @glTranslatef(double 7.300000e+00, double 0.000000e+00, double 0.000000e+00)
%9 = call i32 @draw_part(i32 2)
%10 = call i32 @glTranslatef(double 5.400000e+00, double 0.000000e+00, double 0.000000e+00)
%11 = call i32 @draw_part(i32 3)
%12 = call i32 @glTranslatef(double 5.400000e+00, double 0.000000e+00, double 0.000000e+00)
%13 = call i32 @draw_part(i32 4)
%14 = call i32 @glTranslatef(double 7.400000e+00, double 0.000000e+00, double 0.000000e+00)
%15 = call i32 @draw_part(i32 5)
%16 = call i32 @glTranslatef(double 6.800000e+00, double 0.000000e+00, double 0.000000e+00)
%17 = call i32 @draw_part(i32 6)
ret void
}

LLVM IR (-O2):
@GL_CULL_FACE = global i32 0
define void @draw_logo() {
%1 = tail call i32 (...) @groen_texture()
%2 = load i32, i32* @GL_CULL_FACE
%3 = tail call i32 @glEnable(i32 %2)
%4 = tail call i32 @glTranslatef(double -2.800000e+00, double 0.000000e+00, double 0.000000e+00)
%5 = tail call i32 @draw_part(i32 0)
%6 = tail call i32 @glTranslatef(double -1.200000e+01, double 4.300000e+00, double 0.000000e+00)
%7 = tail call i32 @draw_part(i32 1)
%8 = tail call i32 @glTranslatef(double 7.300000e+00, double 0.000000e+00, double 0.000000e+00)
%9 = tail call i32 @draw_part(i32 2)
%10 = tail call i32 @glTranslatef(double 5.400000e+00, double 0.000000e+00, double 0.000000e+00)
%11 = tail call i32 @draw_part(i32 3)
%12 = tail call i32 @glTranslatef(double 5.400000e+00, double 0.000000e+00, double 0.000000e+00)
%13 = tail call i32 @draw_part(i32 4)
%14 = tail call i32 @glTranslatef(double 7.400000e+00, double 0.000000e+00, double 0.000000e+00)
%15 = tail call i32 @draw_part(i32 5)
%16 = tail call i32 @glTranslatef(double 6.800000e+00, double 0.000000e+00, double 0.000000e+00)
%17 = tail call i32 @draw_part(i32 6)
ret void
}